/** * Creates object * @param string $theme * @param string $metadataUrl * @param bool $enableAutomaticChecking */ public function __construct($theme, $metadataUrl = null, $enableAutomaticChecking = true) { $metadataUrl = $metadataUrl ? $metadataUrl : 'http://update.themeforest.createit.pl'; parent::__construct($theme, $metadataUrl, $enableAutomaticChecking); $this->addQueryArgFilter(array($this, 'filterQuery')); $this->license = ct_get_option(self::LICENSE_KEY); add_filter('update_theme_complete_actions', array($this, 'themeUpdate')); }
} /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php'; /** * Content Importer */ require get_template_directory() . '/importer/load.php'; require get_template_directory() . '/inc/beaver-builder-modules/beaver-builder-modules.php'; /* * Auto-check theme udpates */ //Initialize the update checker. require 'theme-update-checker.php'; $update_checker = new ThemeUpdateChecker('TESSERACT', 'https://s3-us-west-2.amazonaws.com/updates.tyler.com/TESSERACT/version.json'); if (false) { $update_checker->checkForUpdates(); } /* check if a plugin exists in the plugins directory and if it's already active */ function is_plugin_installed($slug) { $plugins = get_plugins(); foreach ($plugins as $plugin_key => $plugin_info) { if (preg_match("/^{$slug}\\//", $plugin_key)) { return is_plugin_active($plugin_key); } } return false; } function display_notice()
function mandisphotography_theme_update() { require 'inc/theme-update-checker.php'; $mandisphotography_update_checker = new ThemeUpdateChecker('mandisphotography', 'http://www.royens.com/themes/mandisphotography-updates/info.json'); $mandisphotography_update_checker->requestUpdate(); }