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

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

// Loads the updater classes
$updater = new AWAIKEN_Theme_Updater_Admin(
	// Config settings
	array(
		'remote_api_url' => 'https://awaikenthemes.com/', // Site where EDD is hosted
		'tf_pc_val_api_url' => 'https://awaikenthemes.com/wp-json/themeforest/v1/validate-purchase', // Site where EDD is hosted
		'item_name'      => AWAIKEN_ITEM_NAME, // Name of theme
		'theme_slug'     => AWAIKEN_THEME_SLUG, // Theme slug
		'version'        => wp_get_theme( get_template() )->get( 'Version' ), // The current version of this theme
		'author'         => 'Awaiken', // The author of this theme
		'download_id'    => '', // Optional, used for generating a license renewal link
		'renew_url'      => '', // Optional, allows for a custom license renewal link
		'beta'           => false, // Optional, set to true to opt into beta versions
		'item_id'        => AWAIKEN_ITEM_ID,
	),
	// Strings
	array(
		'activate-license-info'     => __( 'Please activate the theme license key to proceed.', 'netto' ),
		'maybe-later-btn'    	 => __( 'Maybe Later', 'netto' ),
		'dismiss-notice-btn'    	 => __( 'Dismiss this notice', 'netto' ),
		'theme-license'             => __( 'Theme License', 'netto' ),
		'enter-key-tf'              => __( 'Enter your Item Purchase Code. <a href="%s" rel="noopener noreferrer" target="_blank">Refer to the article for instructions on where to find it</a>.', 'netto' ),
		'enter-key'                 => __( 'Enter your theme license key.', 'netto' ),
		'license-key'               => __( 'License Key', 'netto' ),
		'license-buyer-email'       => __( 'Email', 'netto' ),
		'license-action'            => __( 'License Action', 'netto' ),
		'deactivate-license'        => __( 'Deactivate License', 'netto' ),
		'activate-license'          => __( 'Activate License', 'netto' ),
		'status-unknown'            => __( 'License status is unknown.', 'netto' ),
		'renew'                     => __( 'Renew?', 'netto' ),
		'unlimited'                 => __( 'unlimited', 'netto' ),
		'license-key-is-active'     => __( 'License key is active.', 'netto' ),
		/* translators: the license expiration date */
		'expires%s'                 => __( 'Expires %s.', 'netto' ),
		'expires-never'             => __( 'Lifetime License.', 'netto' ),
		/* translators: 1. the number of sites activated 2. the total number of activations allowed. */
		'%1$s/%2$-sites'            => __( 'You have %1$s / %2$s sites activated.', 'netto' ),
		'activation-limit'          => __( 'Your license key has reached its activation limit.', 'netto' ),
		/* translators: the license expiration date */
		'license-key-expired-%s'    => __( 'License key expired %s.', 'netto' ),
		'license-key-expired'       => __( 'License key has expired.', 'netto' ),
		/* translators: the license expiration date */
		'license-expired-on'        => __( 'Your license key expired on %s.', 'netto' ),
		'license-keys-do-not-match' => __( 'License keys do not match.', 'netto' ),
		'license-is-inactive'       => __( 'License is inactive.', 'netto' ),
		'license-key-is-disabled'   => __( 'License key is disabled.', 'netto' ),
		'license-key-invalid'       => __( 'Invalid license.', 'netto' ),
		'site-is-inactive'          => __( 'Your license is not active for this URL.', 'netto' ),
		/* translators: the theme name */
		'item-mismatch'             => __( 'This appears to be an invalid license key for %s.', 'netto' ),
		'license-status-unknown'    => __( 'License status is unknown.', 'netto' ),
		'update-notice'             => __( "Updating this theme will lose any customizations you have made. 'Cancel' to stop, 'OK' to update.", 'netto' ),
		'error-generic'             => __( 'An error occurred, please try again.', 'netto' ),
		'pending-active'            => __( 'Click the Activate License button to activate the license.', 'netto' ),
	)
);
