<?php
/**
 * Easy Digital Downloads Theme Updater
 *
 * @package Onefold
 */

// Includes the files needed for the theme updater
if ( ! class_exists( 'EDD_Theme_Updater_Admin' ) ) {
	include( dirname( __FILE__ ) . '/theme-updater-admin.php' );
}

// Loads the updater classes
$updater = new EDD_Theme_Updater_Admin(

	// Config settings
	$config = array(
		'remote_api_url' => 'https://themepalace.com', // Site where EDD is hosted
		'item_name'      => 'Onefold Pro', // Name of theme
		'theme_slug'     => 'onefold-pro', // Theme slug
		'version'        => '2.2', // The current version of this theme
		'author'         => 'WEN Themes', // The author of this theme
		'download_id'    => '', // Optional, used for generating a license renewal link
		'renew_url'      => 'https://themepalace.com/my-account' // Optional, allows for a custom license renewal link
	),

	// Strings
	$strings = array(
		'theme-license'             => __( 'Theme License', 'onefold-pro' ),
		'enter-key'                 => __( 'Enter your theme license key.', 'onefold-pro' ),
		'license-key'               => __( 'License Key', 'onefold-pro' ),
		'license-action'            => __( 'License Action', 'onefold-pro' ),
		'deactivate-license'        => __( 'Deactivate License', 'onefold-pro' ),
		'activate-license'          => __( 'Activate License', 'onefold-pro' ),
		'status-unknown'            => __( 'License status is unknown.', 'onefold-pro' ),
		'renew'                     => __( 'Renew?', 'onefold-pro' ),
		'unlimited'                 => __( 'unlimited', 'onefold-pro' ),
		'license-key-is-active'     => __( 'License key is active.', 'onefold-pro' ),
		'expires%s'                 => __( 'Expires %s.', 'onefold-pro' ),
		'%1$s/%2$-sites'            => __( 'You have %1$s / %2$s sites activated.', 'onefold-pro' ),
		'license-key-expired-%s'    => __( 'License key expired %s.', 'onefold-pro' ),
		'license-key-expired'       => __( 'License key has expired.', 'onefold-pro' ),
		'license-keys-do-not-match' => __( 'License keys do not match.', 'onefold-pro' ),
		'license-is-inactive'       => __( 'License is inactive.', 'onefold-pro' ),
		'license-key-is-disabled'   => __( 'License key is disabled.', 'onefold-pro' ),
		'site-is-inactive'          => __( 'Site is inactive.', 'onefold-pro' ),
		'license-status-unknown'    => __( 'License status is unknown.', 'onefold-pro' ),
		'update-notice'             => __( "Updating this theme will lose any customizations you have made. 'Cancel' to stop, 'OK' to update.", 'onefold-pro' ),
		'update-available'          => __('<strong>%1$s %2$s</strong> is available. <a href="%3$s" class="thickbox" title="%4$s">Check out what\'s new</a> or <a href="%5$s"%6$s>update now</a>.', 'onefold-pro' ),
		'key-not-activated'         => __( '%1$s License Key has not been activated, so the theme is inactive. %2$sClick here%3$s to activate the license key and the theme.', 'onefold-pro' ),
		'get-license-key'           => __( 'Get API key from %s.', 'onefold-pro' ),
		'theme-palace'              => __( 'Theme Palace', 'onefold-pro' ),
	)

);
