function set_up_auto_updater() { $forceUpdate = get_option('force-jetpack-update'); if ($forceUpdate != get_current_jetpack_version()) { update_option('force-jetpack-update', 'just-updated'); } $beta_type = get_option('jp_beta_type'); if ($beta_type == 'rc_only') { $json_url = 'http://betadownload.jetpack.me/rc/rc.json'; } else { $json_url = 'http://betadownload.jetpack.me/jetpack-bleeding-edge.json'; } do_action('add_debug_info', $json_url, 'json_url'); require 'plugin-updates/plugin-update-checker.php'; $JetpackBeta = PucFactory::buildUpdateChecker($json_url, WP_PLUGIN_DIR . '/jetpack/jetpack.php', 'jetpack', '0.01'); // Allows us to update the Jetpack Beta tool by updating GitHub $className = PucFactory::getLatestClassVersion('PucGitHubChecker'); $myUpdateChecker = new $className('https://github.com/Automattic/jetpack-beta/', __FILE__, 'master'); $jp_beta_autoupdate = get_option('jp_beta_autoupdate'); if ($jp_beta_autoupdate != 'no') { function auto_update_jetpack_beta($update, $item) { // Array of plugin slugs to always auto-update $plugins = array('jetpack'); if (in_array($item->slug, $plugins)) { return true; // Always update plugins in this array } else { return $update; // Else, use the normal API response to decide whether to update or not } } add_filter('auto_update_plugin', 'auto_update_jetpack_beta', 10, 2); } }
public function __construct() { if (is_admin()) { $this->loadSettings(); } //Capture request arguments before WP has had a chance to apply magic quotes. $this->get = $_GET; $this->post = $this->originalPost = $_POST; if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) { $this->post = stripslashes_deep($this->post); $this->get = stripslashes_deep($this->get); } add_action('wp_before_admin_bar_render', array($this, 'filterAdminBar'), self::ADMIN_BAR_FILTER_PRIORITY); add_action('admin_menu', array($this, 'addEditorPage')); if (!defined('IS_DEMO_MODE') && !defined('IS_MASTER_MODE')) { //Add-ons are updated separately from the main plugin, but use the same license details. require WS_ADMIN_BAR_EDITOR_DIR . '/includes/plugin-updates/plugin-update-checker.php'; $this->updateChecker = PucFactory::buildUpdateChecker('http://adminmenueditor.com/?get_metadata_for=wp-toolbar-editor', WS_ADMIN_BAR_EDITOR_FILE, 'wp-toolbar-editor', 12, 'ws_abe_external_updates'); if (isset($GLOBALS['ameProLicenseManager'])) { $this->ameLicenseManager = $GLOBALS['ameProLicenseManager']; $this->updateChecker->addQueryArgFilter(array($this, 'filterUpdateChecks')); $downloadFilter = array($this, 'filterUpdateDownloadUrl'); $this->updateChecker->addFilter('request_info_result', $downloadFilter, 20); $this->updateChecker->addFilter('pre_inject_update', $downloadFilter); $this->updateChecker->addFilter('pre_inject_info', $downloadFilter); } } }
/** * Checks for plugin updates. */ public function check_for_updates($plugin_file, $plugin_slug = null) { if (empty($plugin_slug)) { $plugin_slug = static::$plugin_slug; } // Debug //var_dump($this->path('vendor') . '/yahnis-elsts/plugin-update-checker/plugin-update-checker.php');die(); require_once $this->path('vendor') . '/yahnis-elsts/plugin-update-checker/plugin-update-checker.php'; $MyUpdateChecker = \PucFactory::buildUpdateChecker($this->get_update_url($plugin_slug), $plugin_file, $plugin_slug); }
public function __construct($slug, $dir, $file, $debug = false) { $this->slug = $slug; $this->debug = $debug; $this->license_server_url = 'http://lic.codemshop.com/manager_' . $this->rev; $this->update_server_url = 'http://lic.codemshop.com/update'; require 'plugin-updates/plugin-update-checker.php'; $license_info = get_option('msl_license_' . $this->slug, null); if ($license_info) { $license_info = json_decode($license_info); } $this->update_checker = PucFactory::buildUpdateChecker($this->update_server_url . '?action=get_metadata&slug=' . $this->slug . '&license_key=' . ($license_info ? $license_info->license_key : '') . '&activation_key=' . ($license_info ? $license_info->activation_key : '') . '&domain=' . ($license_info ? $license_info->site_url : ''), $file, $this->slug); add_action("in_plugin_update_message-" . basename($dir) . '/' . basename($file), array($this, "in_plugin_update_message"), 10, 2); add_action('wp_ajax_msl_activation_' . $this->slug, array(&$this, 'msl_activation')); add_action('wp_ajax_msl_verify_' . $this->slug, array(&$this, 'msl_verify')); add_action('wp_ajax_msl_reset_' . $this->slug, array(&$this, 'msl_reset')); add_action('admin_enqueue_scripts', array(&$this, 'admin_enqueue_scripts')); }
/** * Init the plugin */ function __construct() { // Pagination settings. Not a public setting. define('WPVQ_QUIZ_PER_PAGE', 25); // Default Settings // No i18n outside this function, defines need to be here. define('WPVQ_PROGRESSBAR_COLOR', "#2bc253"); define('WPVQ_WAIT_TRIVIA_PAGE', 1000); define('WPVQ_TWITTER_HASHTAG', '#wpquiz'); define('WPVQ_SCROLL_OFFSET', 0); define('WPVQ_SCROLL_SPEED', 750); define('WPVQ_SHARE_PERSO_LOCAL', __("I'm %%personality%%", 'wpvq')); define('WPVQ_SHARE_PERSO_SIMPLE', __("I'm %%personality%%, and you ?", 'wpvq')); define('WPVQ_SHARE_PERSO_FB_TITLE', __("I'm %%personality%%, and you ?", 'wpvq')); define('WPVQ_SHARE_PERSO_FB_DESC', "%%details%%"); define('WPVQ_SHARE_TRIVIA_LOCAL', __("I got %%score%% of %%total%% right", 'wpvq')); define('WPVQ_SHARE_TRIVIA_SIMPLE', __("I got %%score%% of %%total%% right, and you ?", 'wpvq')); define('WPVQ_SHARE_TRIVIA_FB_TITLE', __("I got %%score%% of %%total%% right, and you ?", 'wpvq')); define('WPVQ_SHARE_TRIVIA_FB_DESC', "%%details%%"); // Admin Notice for ADDONS PAGE // Created on WPVQInitController.php if (!get_option('wpvq_notice_addons_1') == 1) { add_action('admin_notices', 'wpvq_notice_addons_1'); } function wpvq_notice_addons_1() { ?> <div class="updated wpvq-wpvq_notice_addons_1"> <h3><?php _e("SOMETHING NEW is happening with WP Viral Quiz !", 'wpvq'); ?> </h3> <p> <?php _e("Discover the <strong>new \"Awesome Addons\" page</strong>, and add new features to your quizzes.", 'wpvq'); ?> </p> <p> <a href="<?php echo admin_url('admin.php?page=wp-viral-quiz-addons'); ?> "> <button class="button button-primary"><?php _e("Cool, hide this message and show me !", 'wpvq'); ?> </button> </a> </p> </div> <?php } // Update mechanism $updateChecker = PucFactory::buildUpdateChecker('http://wpvq.institut-pandore.com/update.php', __FILE__, 'wp-viral-quiz', 24); $updateChecker->addQueryArgFilter(array($this, 'addSecretKeyForUpdate')); // Admin Menu Page add_action('admin_menu', array($this, 'options_pages')); // Install + Uninstall register_activation_hook(__FILE__, array($this, 'install')); register_uninstall_hook(__FILE__, array('WPViralQuiz', 'uninstall')); // Custom script JS add_action('admin_enqueue_scripts', array($this, 'load_custom_wpviral_script')); // Create Shortcode add_shortcode('viralQuiz', array('WPVQShortcode', 'viralQuiz')); add_shortcode('viralQuizResults', array('WPVQShortcodeResults', 'viralQuizResults')); add_shortcode('viralQuizAnalytics', array('WPVQShortcodeAnalytics', 'viralQuizAnalytics')); add_action('init', array('WPVQShortcode', 'register_scripts')); add_action('wp_footer', array('WPVQShortcode', 'print_scripts')); add_action('init', array('WPVQShortcodeResults', 'register_scripts')); add_action('wp_footer', array('WPVQShortcodeResults', 'print_scripts')); // — Ajax Shortcode add_action('wp_ajax_choose_truefalse', array('WPVQShortcode', 'chooseTrueFalse')); add_action('wp_ajax_nopriv_choose_truefalse', array('WPVQShortcode', 'chooseTrueFalse')); add_action('wp_ajax_get_truefalse_appreciation', array('WPVQShortcode', 'getTrueFalseAppreciation')); add_action('wp_ajax_nopriv_get_truefalse_appreciation', array('WPVQShortcode', 'getTrueFalseAppreciation')); add_action('wp_ajax_choose_personality', array('WPVQShortcode', 'choosePersonality')); add_action('wp_ajax_nopriv_choose_personality', array('WPVQShortcode', 'choosePersonality')); add_action('wp_ajax_submit_informations', array('WPVQShortcode', 'submitInformations')); add_action('wp_ajax_nopriv_submit_informations', array('WPVQShortcode', 'submitInformations')); // - Ajax for quiz import add_action('wp_ajax_wpvq_import_quiz', array('WPVQGame', 'ajaxImport')); // - Ajax for Aweber creds add_action('wp_ajax_wpvq_generate_aweber_creds', array('WPVQMailingAPI', 'generateAweberCreds')); // i18n support add_action('plugins_loaded', array($this, 'wpvq_load_textdomain')); // Image Size for Answer add_action('after_setup_theme', array($this, 'wpvq_create_thumbnail')); // Image Size for Answer add_action('init', array($this, 'wpvq_update_sql')); // Settings Page add_action('admin_init', 'wpvq_settings_init'); // Prevent from rocketload / minification $options = get_option('wpvq_settings'); if (!isset($options['wpvq_checkbox_do_minify'])) { add_filter('clean_url', array($this, 'rocket_loader_attributes'), 11, 1); } // Create new post with quiz shortcode add_filter('default_content', array($this, 'wpvq_default_editor_content_shortcode')); add_filter('default_title', array($this, 'wpvq_default_editor_content_title')); }
function slate_pro_plugins_loaded() { global $slate_pro_settings; // Translations load_plugin_textdomain('slate-pro', false, dirname(plugin_basename(__FILE__)) . '/languages/'); // Update DB slate_pro_check_db(); // Update Version slate_pro_check_version(); // Auto Update require __DIR__ . '/inc/plugin-update-checker.php'; $slateUpdateCheck = PucFactory::buildUpdateChecker('http://updates.sevenbold.com/update.php', __FILE__); function slate_license_key($query) { if (is_multisite() && is_plugin_active_for_network('slate-pro-admin/slate-pro-admin.php')) { $slate_pro_license = get_site_option('slate_pro_license'); } else { $slate_pro_license = get_option('slate_pro_license'); } $query['key'] = esc_attr($slate_pro_license['licenseKey']); $query['email'] = get_bloginfo('admin_email'); $query['website'] = home_url(); return $query; } $slateUpdateCheck->addQueryArgFilter('slate_license_key'); // Admin Menu Permissions $menu_permission = slate_pro_get_user_permission(); if (!empty($menu_permission)) { if (!empty($slate_pro_settings['adminMenuPermissions'][$menu_permission]) && 'on' === $slate_pro_settings['adminMenuPermissions'][$menu_permission]) { add_action('admin_menu', 'slate_pro_hide_admin_menus', 999); } } // Slate Pro Plugin Permissions $plugin_permission = slate_pro_get_user_permission(); if (!empty($plugin_permission)) { if (!empty($slate_pro_settings['userPermissions'][$plugin_permission]) && 'on' === $slate_pro_settings['userPermissions'][$plugin_permission]) { add_action('admin_menu', 'slate_pro_hide_plugin_menu'); add_action('admin_head', 'slate_pro_hide_plugin'); } } }
define('IS_ADMIN', is_admin()); } define('IS_NOT_ADMIN', !IS_ADMIN); // Define paths define('AERIA_DIR', rtrim(plugin_dir_path(__FILE__), '/') . '/'); define('AERIA_URL', rtrim(plugins_url('aeria'), '/') . '/'); define('AERIA_HOME_URL', home_url('/')); define('AERIA_RESOURCE_DIR', AERIA_DIR . 'resources/'); define('AERIA_PLUGINS_URL', AERIA_DIR . 'plugins/'); define('AERIA_RESOURCE_URL', AERIA_URL . 'resources/'); define('THEME_DIR', get_stylesheet_directory() . '/'); // Polyfills include AERIA_DIR . 'lib/legacy.php'; // Autoupdate include __DIR__ . '/lib/plugin-update-checker.php'; PucFactory::buildUpdateChecker('https://raw.githubusercontent.com/CaffeinaLab/aeria/master/metadata.json', __FILE__, 'aeria'); // Register autoloader spl_autoload_register(function ($class) { return is_file($class_file = AERIA_DIR . 'classes/' . $class . '.php') ? include $class_file : false; }); // Tools: Icon function icon($name) { return strpos($name, 'http') === 0 ? $name : AERIA_RESOURCE_URL . 'icons/' . $name . '.png'; } // Create ralations table on register register_activation_hook(__FILE__, function () { global $wpdb; $table_name = $wpdb->prefix . 'aeria_relations'; $wpdb->query("CREATE TABLE IF NOT EXISTS {$table_name} (\n\t\t`id_1` int(11) unsigned NOT NULL,\n\t\t`id_2` int(11) unsigned NOT NULL,\n\t\t`type` VARCHAR(50) NOT NULL,\n\t\tPRIMARY KEY (id_1,id_2,type)\n\t) DEFAULT CHARSET=utf8;"); });
} } function gc_php_version_notice() { echo '<div class="error">'; echo '<p>' . __('Your version of PHP is below the minimum version of PHP required by Gold Cart. Please contact your host and request that your version be upgraded to 5.3 or later.', 'wpsc_gold_cart') . '</p>'; echo '</div>'; } // //check if newer version is available $license_key = get_option('activation_key'); $license_key = !empty($license_key) ? trim($license_key) : false; if ($license_key) { // setup the updater require 'plugin-update/plugin-update-checker.php'; $MyUpdateChecker = PucFactory::buildUpdateChecker('http://updates.wpecommerce.org/?action=get_metadata&slug=gold-cart', __FILE__); //Add the license key to query arguments. $MyUpdateChecker->addQueryArgFilter('gc_filter_update_checks'); function gc_filter_update_checks($queryArgs) { global $license_key; $license_name = get_option('activation_name'); $queryArgs = array('activation_key' => $license_key, 'activation_name' => $license_name); return $queryArgs; } } // /** * Tell people to register Gold Cart after activation */ if ($gold_shpcrt_active == 'false') {
<?php /** * Plugin Name: Mondo Booking * Plugin URI: * Description: Mondo Booking plugin. * Version: 0.3 * Author: Oscar Heller * Author URI: http://mondomediaworks.com * License: GPL2 */ defined('ABSPATH') or die('Access denied.'); require 'plugin-updates/plugin-update-checker.php'; $MyUpdateChecker = PucFactory::buildUpdateChecker('http://srmeowmeow.github.io/metadata.json', __FILE__); include dirname(__FILE__) . '/includes/widgets.php';
/* Plugin Name: Ridiculously Responsive Social Sharing Buttons Plugin URI: https://github.com/ericakfranz/rrssb/ Description: Ridiculously Responsive Social Sharing Buttons adapted from https://github.com/kni-labs/rrssb. Version: 2.2.1 Author: Erica Franz Author URI: https://fatpony.me/ Date: 23 August 2015 License: GNU General Public License (GPL) version 3 License URI: https://www.gnu.org/licenses/gpl.html */ include 'rrssb_admin.php'; /* Automatic Plugin Update Checker */ require 'plugin-update-checker/plugin-update-checker.php'; $myUpdateChecker = PucFactory::buildUpdateChecker('https://github.com/ericakfranz/rrssb/metadata.json', __FILE__, 'rrssb'); /* On Activation & Decativation */ function activate_rrssb() { add_option('show_twitter', 1); add_option('show_facebook', 1); add_option('show_google', 1); add_option('show_github', 1); add_option('show_email', 1); add_option('show_linkedin', 0); add_option('show_reddit', 0); add_option('show_pocket', 0); add_option('show_instagram', 0); add_option('show_pinterest', 0); add_option('show_tumblr', 0); add_option('show_youtube', 0);
require_once plugin_dir_path(__FILE__) . 'includes/class-ktzagcplugin-deactivator.php'; Ktzagcplugin_Deactivator::deactivate(); } register_activation_hook(__FILE__, 'activate_ktzagcplugin'); register_deactivation_hook(__FILE__, 'deactivate_ktzagcplugin'); /** * The core plugin class that is used to define internationalization, * admin-specific hooks, and public-facing site hooks. */ require plugin_dir_path(__FILE__) . 'includes/class-ktzagcplugin.php'; /** * Automatic Update With Self Hosting * http://w-shadow.com/blog/2010/09/02/automatic-updates-for-any-plugin/ */ require plugin_dir_path(__FILE__) . 'update/plugin-update-checker.php'; $MyUpdateChecker = PucFactory::buildUpdateChecker('http://www.kentooz.com/files/ktzagcplugin/ktzagcplgnautomaticly.json', __FILE__, 'ktzagcplugin'); /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. * * @since 1.0.0 */ function run_ktzagcplugin() { $plugin = new Ktzagcplugin(); $plugin->run(); } run_ktzagcplugin();
<?php /* Plugin Name: Slides Custom Post Type Plugin URI: http://conversioninsights.net Description: Adds a "Slides" post type to be used in the theme. Version: 2.04 Author: Tyler Young Author URI: http://conversioninsights.net */ require_once 'plugin-updates/plugin-update-checker.php'; require_once 'lib/constants.php'; require_once 'lib/utils.php'; require_once 'lib/createPostType.php'; require_once 'lib/displayPostType.php'; $UpdateChecker = PucFactory::buildUpdateChecker('http://ci-modern-accounting-firm.mystagingwebsite.com/downloads/plugins/slides-cpt_version_metadata.json', __FILE__, 'ci-slides-cpt', 720); add_filter('rwmb_meta_boxes', 'ciSlidesRegisterMetaBoxes'); function ciSlidesRegisterMetaBoxes($meta_boxes) { /** * Prefix of meta keys (optional) * Use underscore (_) at the beginning to make keys hidden * Alt.: You also can make prefix empty to disable it */ // Better has an underscore as last sign $prefix = (defined('CI_THEME_PREFIX') ? CI_THEME_PREFIX : 'ci') . '_'; // Meta box for the slides custom post type $meta_boxes[] = array('id' => 'slides-only', 'title' => __('Slide options', 'conversion-insights-shared'), 'pages' => array(CI_SLIDE_TYPE), 'context' => 'normal', 'priority' => 'high', 'autosave' => true, 'fields' => array(array('name' => __('Position of caption:', 'conversion-insights-shared'), 'id' => "{$prefix}caption_position", 'type' => 'select', 'options' => array('center' => __('Center', 'conversion-insights-shared'), 'left' => __('Left', 'conversion-insights-shared'), 'right' => __('Right', 'conversion-insights-shared'), 'none' => __('Not displayed', 'conversion-insights-shared')), 'multiple' => false, 'std' => 'center', 'desc' => __('<strong>Note:</strong> On very small screens, all captions will be centered, with a transparent background.', 'conversion-insights-shared')), array('name' => __('Caption background color', 'conversion-insights-shared'), 'id' => "{$prefix}caption_bg", 'type' => 'color', 'desc' => __('<strong>Only</strong> applies to left- or right-positioned captions. Defaults to the secondary background color.', 'conversion-insights-shared')), array('name' => __('Darken slide image?', 'conversion-insights-shared'), 'id' => "{$prefix}darken_slide", 'desc' => __('If checked, image will be darkened 30% (useful for making white text readable over bright images)', 'conversion-insights-shared'), 'type' => 'checkbox', 'std' => 1), array('name' => __('Link slide to this URL:', 'conversion-insights-shared'), 'id' => "{$prefix}link", 'desc' => __('Leave blank for no link.', 'conversion-insights-shared'), 'type' => 'text', 'std' => '', 'clone' => false))); return $meta_boxes; }
<?php /** * @package gUtmWp * @author Grom <*****@*****.**> * @version 1.0 */ /* Plugin Name: Google UTM WP Plugin URI: https://github.com/Revolife/gUtmWp Description: Determine the Google UTM (Urchin Tracking Module) tails. Version: 1.0.1 Author: Grom Author URI: https://revolife.com License: GPL2 */ defined('DS') or define('DS', DIRECTORY_SEPARATOR); defined('gUtmpWp_PLUG_PATH') or define('gUtmpWp_PLUG_PATH', dirname(__FILE__)); require gUtmpWp_PLUG_PATH . DS . 'plugin-update-checker' . DS . 'plugin-update-checker.php'; $MyUpdateChecker = PucFactory::buildUpdateChecker('http://update.wp.alphaspace.pro/?action=get_metadata§ion=plugin&slug=' . basename(dirname(__FILE__)), __FILE__, basename(dirname(__FILE__))); require_once gUtmpWp_PLUG_PATH . DS . 'core' . DS . 'gutm.php'; require_once gUtmpWp_PLUG_PATH . DS . 'core' . DS . 'gutmwp.php'; gUtmWp::start();
<?php /* Plugin Name: Spit It Out Description: Provides different ways to display various developer-useful information about the theme page Version: 2.2 Author: Christy.pw Author URI: http://christy.pw Plugin URI: http://christy.pw/web-mobile/wordpress-plugins/spit-it-out/ */ defined('ABSPATH') or die('No script kiddies please!'); ///////////////////////////////////////////////////////////////////// //region updater service require 'plugin-updates/plugin-update-checker.php'; $ExampleUpdateChecker = PucFactory::buildUpdateChecker('http://wpplugs.stellarstudios.net/spit-it-out/info.json', __FILE__); //endregion // the options we want to offer // they will be stored in the database as an array under 'spititout' in the options table // the descriptions are for the settings page // the stored array will actually resemble: /* array ( 'active' -> '1', 'templatefile' -> '0' ) */ global $spittio_save_as; // the `option_name` field in the `wp_options` table $spittio_save_as = 'spititout'; global $spitio_option_list; $spitio_option_list = array(array('description' => 'Spit It Out Overlay Active', 'db_name' => 'active', 'init' => '0'), array('description' => 'Current Template File Name', 'db_name' => 'templatefile', 'init' => '0'), array('description' => 'Current Query', 'db_name' => 'currentquery', 'init' => '1'), array('description' => '$wp_rewrite->rules', 'db_name' => 'rewriterules', 'init' => '1'), array('description' => '$_SERVER', 'db_name' => 'server', 'init' => '0'), array('description' => '$_REQUEST', 'db_name' => 'request', 'init' => '0'), array('description' => '$_FILES', 'db_name' => 'files', 'init' => '0'), array('description' => '$_SESSION', 'db_name' => 'session', 'init' => '0'), array('description' => 'Last Error that Occurred', 'db_name' => 'error', 'init' => '0'));
define('WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins'); } $wp_dir = __FILE__; $wp_dir = str_replace("\\", "/", $wp_dir); $wp_dir = explode("/", $wp_dir); $index = count($wp_dir) - 2; $pluginfolder = $wp_dir[$index]; $url = WP_PLUGIN_URL; if (substr_count(admin_url(), "https://") > 0 && substr_count($url, "https://") <= 0) { $url = str_replace("http://", "https://", $url); } define('IMSCPB_SLUG', $pluginfolder); define('IMSCPB_DIR', WP_PLUGIN_DIR . "/" . $pluginfolder); define('IMSCPB_URL', $url . "/" . $pluginfolder); require_once 'functions/plugin-update-checker.php'; $imscpb_uc = PucFactory::buildUpdateChecker('http://wpprofitbuilder.com/download/profit_builder_lite/profit_builder_lite.json', IMSCPB_FILE, 'profit-builder-lite', 12); global $pbuilder; $pbuilder = new ProfitBuilder(IMSCPB_FILE); class ProfitBuilder { var $main, $path, $name, $url, $menu_controls, $row_controls, $shortcodes, $rows, $icons, $showall, $yoast, $hideifs, $groups; var $standard_fonts = array("Arial", "Arial+Black", "Tahoma", "Trebuchet+MS", "Verdana", "Century+Gothic", "Geneva", "Lucida", "Lucida+Sans", "Lucida+Grande", "Courier", "Courier+New", "Georgia", "Times", "Times+New+Roman", "MS+Serif", "New+York", "Palatino", "Palatino+Linotype", "Courier", "Courier+New", "Lucida+Console", "Monaco", "Helvetica", "Impact"); var $standard_fonts_variants = array("regular", "italic"); function __construct($file) { $this->main = $file; $this->set_memory_limit(); $this->init(); return $this; } function init()
5.1 - Functions -------------------------------------------*/ require_once plugin_dir_path(__FILE__) . '/functions/global.php'; /*------------------------------------------- 5.2 - Register: CSS -------------------------------------------*/ require_once plugin_dir_path(__FILE__) . '/functions/register-css.php'; /*------------------------------------------- 5.3 - Register: JS -------------------------------------------*/ require_once plugin_dir_path(__FILE__) . '/functions/register-js.php'; /*------------------------------------------- 5.4 - Update Checker -------------------------------------------*/ require plugin_dir_path(__FILE__) . '/assets/plugins/update-checker/plugin-update-checker.php'; $MyUpdateChecker = PucFactory::buildUpdateChecker('http://repo.strictthemes.com/?action=get_metadata&slug=stkit', __FILE__, 'stkit'); /*= 6 =========================================== C O M P O N E N T S Includings ===============================================*/ /*------------------------------------------- 6.1 - Shortcodes -------------------------------------------*/ if ($st_Options['shortcodes']['status']) { if (empty($st_Settings['shortcodes']) || isset($st_Settings['shortcodes']) && $st_Settings['shortcodes'] != 'no') { require_once plugin_dir_path(__FILE__) . '/components/shortcodes/component.php'; } } /*-------------------------------------------
$class_path = 'class-' . strtolower(str_replace('_', '-', $class_name)); $app_file = LUUP_SRC . DS . 'helper' . DS . $class_path . '.php'; if (file_exists($app_file)) { require_once $app_file; } } } /** * Autoloader */ add_action('woocommerce_init', 'init_luup_classes', 0); function init_luup_classes() { spl_autoload_register('WC_LUUP_Autoloader::includes_loader'); spl_autoload_register('WC_LUUP_Autoloader::api_loader'); spl_autoload_register('WC_LUUP_Autoloader::helper_loader'); } /** * Add payment gateways */ add_filter('woocommerce_payment_gateways', 'add_luup_gateways'); function add_luup_gateways($methods) { $methods[] = new WC_LUUP_COPYandPAY(); $methods[] = new WC_LUUP_PayPal(); return $methods; } //auto updating require 'plugin-update-checker/plugin-update-checker.php'; $myUpdateChecker = PucFactory::buildUpdateChecker('https://moreniche.com/development/wordpress/updates/woocommerce-luup.json', __FILE__);
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require 'plugin-updates/plugin-update-checker.php'; $MyUpdateChecker = PucFactory::buildUpdateChecker('http://updates.kprl.se/kprl/partner-list/kprl-partner-list.json', __FILE__, 'kprl-partner-list'); //core-files include 'core/functions.php'; include 'core/options.php'; //custom post types include 'cpt/partners.php'; //taxonomies include 'taxonomies/categories.php'; include 'taxonomies/groups.php'; //views // partnerlist_views_add( ID, "NAME", "DESCRIPTION" ); partnerlist_views_add(1, "Grid", "Visa som rutnätsmönster"); partnerlist_views_add(2, "Carousel", "Visa som carousel"); partnerlist_views_add(3, "List", "Visa som lista"); partnerlist_views_add(3, "Scroller", "Visa som scroller"); //widgets
var_dump($prdctfltr_global); ?> </div> <?php } function redirect_double_taxonomy($redirect, $request) { if (self::$settings['permalink_structure'] !== '' && (is_shop() || is_product_taxonomy()) !== false && strpos($request, 'product_cat=') > 0) { return $request; } return $redirect; } function remove_single_redirect() { return false; } } add_action('woocommerce_init', array('WC_Prdctfltr', 'init')); include_once 'lib/pf-characteristics.php'; include_once 'lib/pf-widget.php'; include_once 'lib/pf-shortcode.php'; include_once 'lib/pf-variable-override.php'; if (is_admin()) { include_once 'lib/pf-settings.php'; //include_once ( 'lib/pf-attribute-thumbnails.php' ); $purchase_code = get_option('wc_settings_prdctfltr_purchase_code', ''); if ($purchase_code) { require 'lib/update/plugin-update-checker.php'; $pf_check = PucFactory::buildUpdateChecker('http://mihajlovicnenad.com/envato/verify_json.php?k=' . $purchase_code, __FILE__); } }
/** * HideMyWP::__construct() * * @return */ function __construct() { //Let's start, Bismillah! register_activation_hook(__FILE__, array(&$this, 'on_activate_callback')); register_deactivation_hook(__FILE__, array(&$this, 'on_deactivate_callback')); $can_deactive = false; if (isset($_COOKIE['hmwp_can_deactivate']) && substr(NONCE_SALT, 0, 8) == $_COOKIE['hmwp_can_deactivate']) { $can_deactive = true; } //Fix a WP problem caused by filters order for deactivation if (isset($_GET['action']) && $_GET['action'] == 'deactivate' && isset($_GET['plugin']) && $_GET['plugin'] == self::main_file && is_admin() && $can_deactive) { update_option(self::slug . '_undo', get_option(self::slug)); delete_option(self::slug); } if (isset($_POST['action']) && $_POST['action'] == 'deactivate-selected' || isset($_POST['action2']) && $_POST['action2'] == 'deactivate-selected' && is_admin() && $can_deactive) { $plugins = isset($_POST['checked']) ? (array) $_POST['checked'] : array(); foreach ($plugins as $plugin) { if ($plugin == self::main_file) { delete_option(self::slug); } } } include_once 'lib/class.helper.php'; $this->h = new PP_Helper(self::slug, self::ver); $this->h->check_versions('5.0', '3.4'); if (is_admin() || $can_deactive) { $this->h->register_messages(); } $sub_installation = trim(str_replace(home_url(), '', site_url()), ' /'); if ($sub_installation && substr($sub_installation, 0, 4) != 'http') { $this->sub_folder = $sub_installation . '/'; } $this->is_subdir_mu = false; if (is_multisite()) { $this->is_subdir_mu = true; } if (defined('SUBDOMAIN_INSTALL') && SUBDOMAIN_INSTALL || defined('VHOST') && VHOST == 'yes') { $this->is_subdir_mu = false; } if (is_multisite() && !$this->sub_folder && $this->is_subdir_mu) { $this->sub_folder = ltrim(parse_url(trim(get_blog_option(BLOG_ID_CURRENT_SITE, 'home'), '/') . '/', PHP_URL_PATH), '/'); } if (is_multisite() && !$this->blog_path && $this->is_subdir_mu) { global $current_blog; $this->blog_path = str_replace($this->sub_folder, '', $current_blog->path); //has / } if (is_admin()) { include_once 'lib/class.settings-api.php'; add_action('init', array(&$this, 'register_settings'), 5); } if (is_multisite()) { $this->options = get_blog_option(BLOG_ID_CURRENT_SITE, self::slug); } else { $this->options = get_option(self::slug); } if ($this->opt('enable_ids')) { include_once 'lib/mute-screamer/mute-screamer.php'; } add_filter('pp_settings_api_filter', array(&$this, 'pp_settings_api_filter'), 100, 1); add_action('pp_settings_api_reset', array(&$this, 'pp_settings_api_reset'), 100, 1); add_action('init', array(&$this, 'init'), 1); add_action('wp', array(&$this, 'wp')); add_action('generate_rewrite_rules', array(&$this, 'add_rewrite_rules')); add_filter('404_template', array(&$this, 'custom_404_page'), 10, 1); add_filter('the_content', array(&$this, 'post_filter')); add_action('admin_notices', array(&$this, 'admin_notices')); if ((is_admin() || $can_deactive) && $this->opt('li')) { require 'lib/plugin-updates/plugin-update-checker.php'; $HMWP_UpdateChecker = PucFactory::buildUpdateChecker('http://api.wpwave.com/hide_my_wp.json', __FILE__, 'hide_my_wp', 120); $HMWP_UpdateChecker->addQueryArgFilter(array(&$this, 'update_attr')); } if (is_multisite()) { add_action('network_admin_notices', array(&$this, 'admin_notices')); } if ($this->opt('antispam')) { add_action('pre_comment_on_post', array(&$this, 'spam_blocker'), 1); } if ($this->opt('replace_mode') == 'quick' && !is_admin()) { //root add_filter('plugins_url', array(&$this, 'partial_filter'), 1000, 1); add_filter('bloginfo', array(&$this, 'partial_filter'), 1000, 1); add_filter('stylesheet_directory_uri', array(&$this, 'partial_filter'), 1000, 1); add_filter('template_directory_uri', array(&$this, 'partial_filter'), 1000, 1); add_filter('script_loader_src', array(&$this, 'partial_filter'), 1000, 1); add_filter('style_loader_src', array(&$this, 'partial_filter'), 1000, 1); add_filter('stylesheet_uri', array(&$this, 'partial_filter'), 1000, 1); add_filter('includes_url', array(&$this, 'partial_filter'), 1000, 1); add_filter('bloginfo_url', array(&$this, 'partial_filter'), 1000, 1); if (!$this->is_permalink()) { add_filter('author_link', array(&$this, 'partial_filter'), 1000, 1); add_filter('post_link', array(&$this, 'partial_filter'), 1000, 1); add_filter('page_link', array(&$this, 'partial_filter'), 1000, 1); add_filter('attachment_link', array(&$this, 'partial_filter'), 1000, 1); add_filter('post_type_link', array(&$this, 'partial_filter'), 1000, 1); add_filter('get_pagenum_link', array(&$this, 'partial_filter'), 1000, 1); add_filter('category_link', array(&$this, 'partial_filter'), 1000, 1); add_filter('tag_link', array(&$this, 'partial_filter'), 1000, 1); add_filter('feed_link', array(&$this, 'partial_filter'), 1000, 1); add_filter('category_feed_link', array(&$this, 'partial_filter'), 1000, 1); add_filter('tag_feed_link', array(&$this, 'partial_filter'), 1000, 1); add_filter('taxonomy_feed_link', array(&$this, 'partial_filter'), 1000, 1); add_filter('author_feed_link', array(&$this, 'partial_filter'), 1000, 1); add_filter('the_feed_link', array(&$this, 'partial_filter'), 1000, 1); } } if ($this->opt('email_from_name')) { add_filter('wp_mail_from_name', array(&$this, 'email_from_name')); } if ($this->opt('email_from_address')) { add_filter('wp_mail_from', array(&$this, 'email_from_address')); } if ($this->opt('hide_wp_login')) { add_action('site_url', array(&$this, 'add_login_key_to_action_from'), 101, 4); remove_action('template_redirect', 'wp_redirect_admin_locations', 1000); add_filter('login_url', array(&$this, 'add_key_login_to_url'), 101, 2); add_filter('logout_url', array(&$this, 'add_key_login_to_url'), 101, 2); add_filter('lostpassword_url', array(&$this, 'add_key_login_to_url'), 101, 2); add_filter('register', array(&$this, 'add_key_login_to_url'), 101, 2); add_filter('wp_logout', array(&$this, 'correct_logout_redirect'), 101, 2); add_filter('wp_redirect', array(&$this, 'add_key_login_to_url'), 101, 2); } // if (!is_admin()){ add_action('after_setup_theme', array(&$this, 'ob_starter'), -100001); // add_action('shutdown', create_function('', 'return ob_end_flush();')); // } // Fix hyper_cache problem! if (WP_CACHE && function_exists('hyper_cache_sanitize_uri')) { add_filter('cache_buffer', array(&$this, 'global_html_filter'), -100); } // Fix wp-rocket_cache problem! if (WP_CACHE && defined('WP_ROCKET_VERSION')) { add_filter('rocket_buffer', array(&$this, 'global_html_filter'), -100); } add_action('admin_enqueue_scripts', array($this, 'admin_css_js')); // add_action( 'wp_enqueue_scripts', array( $this, 'css_js' ) ); if (function_exists('bp_is_current_component')) { add_action('bp_uri', array($this, 'bp_uri')); } if ($this->opt('replace_wpnonce')) { if (isset($_GET['_nonce'])) { $_GET['_wpnonce'] = $_GET['_nonce']; } if (isset($_POST['_nonce'])) { $_POST['_wpnonce'] = $_POST['_nonce']; } $this->preg_replace_old[] = "/('|\")_wpnonce('|\")/"; $this->preg_replace_new[] = "'_nonce'"; } }
} } add_filter('pp_settings_api_filter', array(&$this, 'pp_settings_api_filter'), 100, 1); add_action('pp_settings_api_reset', array(&$this, 'pp_settings_api_reset'), 100, 1); add_action('init', array(&$this, 'init'), 1); add_action('wp', array(&$this, 'wp')); add_action('generate_rewrite_rules', array(&$this, 'add_rewrite_rules')); add_filter('404_template', array(&$this, 'custom_404_page'), 10, 1); add_filter('the_content', array(&$this, 'post_filter')); add_action('admin_notices', array(&$this, 'admin_notices')); if (isset($_GET['die_message']) && is_admin()) { add_action('admin_init', array(&$this, 'die_message'), 1000); } if ((is_admin() || $can_deactive) && $this->opt('li')) { require 'lib/plugin-updates/plugin-update-checker.php'; $HMWP_UpdateChecker = PucFactory::buildUpdateChecker('http://api.wpwave.com/hide_my_wp.json', __FILE__, 'hide_my_wp', 120); $HMWP_UpdateChecker->addQueryArgFilter(array(&$this, 'update_attr')); } //compatibility with social login if ($this->opt('disable_directory_listing')) { defined('WORDPRESS_SOCIAL_LOGIN_PLUGIN_URL') || define('WORDPRESS_SOCIAL_LOGIN_PLUGIN_URL', plugins_url() . '/wordpress-social-login'); defined('WORDPRESS_SOCIAL_LOGIN_HYBRIDAUTH_ENDPOINT_URL') || define('WORDPRESS_SOCIAL_LOGIN_HYBRIDAUTH_ENDPOINT_URL', WORDPRESS_SOCIAL_LOGIN_PLUGIN_URL . '/hybridauth/index.php'); } if (is_multisite()) { add_action('network_admin_notices', array(&$this, 'admin_notices')); } if ($this->opt('antispam')) { add_action('pre_comment_on_post', array(&$this, 'spam_blocker'), 1); add_action('comment_form_default_fields', array(&$this, 'spam_blocker_fake_field'), 1000); } if (!$can_deactive && $this->h->ends_with($_SERVER['PHP_SELF'], 'customize.php')) {
/** * The code that runs during plugin deactivation. */ require_once plugin_dir_path(__FILE__) . 'includes/class-phtpb-deactivator.php'; /** This action is documented in includes/class-phtpb-activator.php */ register_activation_hook(__FILE__, array('PeHaa_Themes_Page_Builder_Activator', 'activate')); /** This action is documented in includes/class-phtpb-deactivator.php */ register_deactivation_hook(__FILE__, array('PeHaa_Themes_Page_Builder_Deactivator', 'deactivate')); /** * The core plugin class that is used to define internationalization, * dashboard-specific hooks, and public-facing site hooks. */ require_once plugin_dir_path(__FILE__) . 'includes/class-phtpb.php'; /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. * * @since 1.0.0 */ function run_phtpb() { $plugin = new PeHaa_Themes_Page_Builder(); $plugin->run(); } run_phtpb(); require 'plugin-update-checker/plugin-update-checker.php'; $myUpdateChecker = PucFactory::buildUpdateChecker('http://wp-plugins.pehaa.com/pht-page-builder/metadata.json', __FILE__);
wp_enqueue_script('media-upload'); wp_enqueue_style('wp-color-picker'); wp_register_script('jquery-validation-plugin', '//ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js'); wp_register_script('jquery-validation-additional-methods-plugin', '//jqueryvalidation.org/files/dist/additional-methods.min.js'); wp_enqueue_script($this->name . '-admin', $this->plugin_url . 'js/admin.js', array('jquery', 'jquery-validation-plugin', 'jquery-validation-additional-methods-plugin', 'jquery-ui-tooltip', 'jquery-ui-core', 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-accordion', 'wp-color-picker'), false, false); wp_localize_script($this->name . '-admin', 'tc_vars', array('ajaxUrl' => admin_url('admin-ajax.php', is_ssl() ? 'https' : 'http'), 'animated_transitions' => apply_filters('tc_animated_transitions', true), 'delete_confirmation_message' => __('Please confirm that you want to delete it permanently?', 'tc'), 'order_status_changed_message' => __('Order status changed successfully.', 'tc'))); wp_enqueue_script($this->name . '-chosen', $this->plugin_url . 'js/chosen.jquery.min.js', array($this->name . '-admin'), false, false); wp_enqueue_style($this->name . '-admin', $this->plugin_url . 'css/admin.css', array(), $this->version); wp_enqueue_style($this->name . '-admin-jquery-ui', '//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css', array(), $this->version); wp_enqueue_style($this->name . '-chosen', $this->plugin_url . 'css/chosen.min.css', array(), $this->version); wp_enqueue_script($this->name . '-simple-dtpicker', $this->plugin_url . 'js/jquery.simple-dtpicker.js', array('jquery'), $this->version); wp_enqueue_style($this->name . '-simple-dtpicker', $this->plugin_url . 'css/jquery.simple-dtpicker.css', array(), $this->version); wp_enqueue_style('font-awesome', $this->plugin_url . '/css/font-awesome.min.css', array(), $this->version); } } global $tc, $license_key; $tc = new TC(); } $tc_general_settings = get_option('tc_general_setting', false); if (!defined('TC_NU')) { //updates are allowed $license_key = defined('TC_LCK') && TC_LCK !== '' ? TC_LCK : (isset($tc_general_settings['license_key']) && $tc_general_settings['license_key'] !== '' ? $tc_general_settings['license_key'] : ''); $addon_slug = 'tickera'; if ($license_key !== '') { $updater_file = $tc->plugin_dir . 'includes/plugin-update-checker/plugin-update-checker.php'; if (file_exists($updater_file)) { require_once $updater_file; $tc_plugin_update_checker = PucFactory::buildUpdateChecker('https://tickera.com/update/?action=get_metadata&slug=' . $addon_slug, __FILE__, $addon_slug, 1); } } }
<?php /* Plugin Name: Photo Gallery SA Plugin URI: http://ayarmas:164f11@ayarmas.surgeonsadvisor.com Description: Medical Photo Gallery that groups patients with their related procedures. Author: Angel Yarmas Version: 1.0 */ // Load the auto-update class require 'plugin-update-checker/plugin-update-checker.php'; $myUpdateChecker = PucFactory::buildUpdateChecker('http://*****:*****@ayarmas.surgeonsadvisor.com/update.json', __FILE__); // Create Photo gallery function pgsa_create_posttype() { // Register custom post type register_post_type('photo-gallery', array('labels' => array('name' => __('Photo Gallery'), 'singular_name' => __('Photo Gallery'), 'all_items' => __('All Patients'), 'name_admin_bar' => __('Patient'), 'edit_item' => __('Edit Patient'), 'view_item' => __('View Patient')), 'public' => true, 'has_archive' => true, 'menu_icon' => 'dashicons-format-gallery', 'supports' => array('title'), 'hierarchical' => true, 'cptp_permalink_structure' => "/%procedures%/case-%post_id%")); // Register taxonomy register_taxonomy('procedures', 'photo-gallery', array('hierarchical' => true, 'labels' => array('name' => __('Procedures'), 'add_new_item' => 'Add a New Procedure'), 'query_var' => true, 'show_admin_column' => true, 'public' => true, 'has_archive' => true, 'show_ui' => true, 'rewrite' => array('slug' => 'photo-gallery'))); } add_action('init', 'pgsa_create_posttype'); // Remove custom taxonomy base slug in Permalinks function taxonomy_slug_rewrite($wp_rewrite) { $rules = array(); // get all custom taxonomies $taxonomies = get_taxonomies(array('_builtin' => false), 'objects'); // get all custom post types $post_types = get_post_types(array('public' => true, '_builtin' => false), 'objects'); foreach ($post_types as $post_type) { foreach ($taxonomies as $taxonomy) {
/** * Install AutoUpdates */ public function enableAutoUpdates() { // This buyer is already checked $isChecked = get_option($this->slugfy('is-checked')); // Check if it's checked if ($isChecked) { // Requiring library require $this->path('inc/updater/plugin-update-checker.php', true); // Instantiating it $updateChecker = PucFactory::buildUpdateChecker($this->config['updatesURL'], $this->config['file'], $this->config['fullSlug']); } // end if; }
/** * Load and initialize the plugin update checker. * * @since 1.3 */ public static function init_update_checker() { require_once dirname(__FILE__) . '/libraries/plugin-update-checker.php'; self::$plugin_update_checker = PucFactory::buildUpdateChecker('https://tablepress.org/downloads/extensions/update-check/' . self::$slug . '.json', __FILE__); }
<?php add_action("ps_extras", "show_simpli_iframe"); function show_simpli_iframe() { echo '<iframe name="simpli" style="height: 700px; width: 100%" src="http://simpli.padsquad.com" frameborder="0" scrolling="no" id="iframe"/>'; } add_action("ps_beta_fields", "show_beta_fields"); function show_beta_fields() { add_settings_field("ps_beta_toggle", "Beta", "beta_radio", "psplugin_advanced", "section_advanced"); register_setting("section_advanced", "ps_command_line_beta"); register_setting("section_advanced", "ps_beta_toggle"); } require 'plugin-updates/plugin-update-checker.php'; if (get_option("ps_beta_toggle") == "on") { update_option("ps_update_url", 'http://asset.padsquad.com/wpplugin/update_beta.json'); $MyUpdateChecker = PucFactory::buildUpdateChecker(get_option("ps_update_url"), plugin_dir_path(__FILE__) . "padsquad.php", 'padsquad'); } else { update_option("ps_update_url", 'http://asset.padsquad.com/wpplugin/update.json'); $MyUpdateChecker = PucFactory::buildUpdateChecker(get_option("ps_update_url"), plugin_dir_path(__FILE__) . "padsquad.php", 'padsquad'); }
/** * Update CX and check for new updates from Screets Server * * @access public * @return void */ function update() { require CX_PATH . '/core/update/checker.php'; // Check new update from Screets Server $checker = PucFactory::buildUpdateChecker('http://screets.com/api/wp-updater/?action=get_metadata&slug=screets-cx', __FILE__, 'screets-cx'); }
//Enable browser caching. header('Cache-Control: public'); header('Expires: Thu, 31 Dec ' . date('Y', strtotime('+1 year')) . ' 23:59:59 GMT'); header('Pragma: cache'); echo $custom_menu['color_css']; exit; } } if (isset($wp_menu_editor) && !defined('WP_UNINSTALL_PLUGIN')) { //Initialize extras $wsMenuEditorExtras = new wsMenuEditorExtras($wp_menu_editor); } if (!defined('IS_DEMO_MODE') && !defined('IS_MASTER_MODE')) { //Load the custom update checker (requires PHP 5) if (version_compare(PHP_VERSION, '5.0.0', '>=') && isset($wp_menu_editor)) { require dirname(__FILE__) . '/plugin-updates/plugin-update-checker.php'; $ameProUpdateChecker = PucFactory::buildUpdateChecker('http://adminmenueditor.com/?get_metadata_for=admin-menu-editor-pro', $wp_menu_editor->plugin_file, 'admin-menu-editor-pro', 12, 'ame_pro_external_updates', 'admin-menu-editor-mu.php'); //Hack. See PluginUpdateChecker::installHooks(). function wsDisableAmeCron() { wp_clear_scheduled_hook('check_plugin_updates-admin-menu-editor-pro'); } register_deactivation_hook($wp_menu_editor->plugin_file, 'wsDisableAmeCron'); } //Load the license manager. require dirname(__FILE__) . '/license-manager/LicenseManager.php'; $ameProLicenseManager = new Wslm_LicenseManagerClient(array('api_url' => 'http://adminmenueditor.com/licensing_api/', 'product_slug' => 'admin-menu-editor-pro', 'license_scope' => Wslm_LicenseManagerClient::LICENSE_SCOPE_NETWORK, 'update_checker' => isset($ameProUpdateChecker) ? $ameProUpdateChecker : null)); if (isset($wp_menu_editor)) { $ameLicensingUi = new Wslm_BasicPluginLicensingUI($ameProLicenseManager, $wp_menu_editor->plugin_file); } }
function __construct() { include_once ESSB3_PLUGIN_ROOT . 'lib/essb-core-includes.php'; // begin plugin front end code execution $this->essb_resource_builder = ESSBResourceBuilder::get_instance(); $this->essb = ESSBCore::get_instance(); // loading social share optimization only when it is active if (defined('ESSB3_SSO_ACTIVE')) { ESSBSocialShareOptimization::get_instance(); } if (defined('ESSB3_SSA_ACTIVE')) { $tracker = ESSBSocialShareAnalytics::get_instance(); $this->essb_resource_builder->add_js($tracker->generate_tracker_code(), true, 'essb-stats-tracker'); } if (defined('ESSB3_AFTERSHARE_ACTIVE')) { $essb_asc = ESSBAfterCloseShare3::get_instance(); foreach ($essb_asc->resource_files as $key => $object) { $this->essb_resource_builder->add_static_resource($object["file"], $object["key"], $object["type"]); } foreach ($essb_asc->js_code as $key => $code) { $this->essb_resource_builder->add_js($code, false, 'essbasc_custom' . $key); } foreach ($essb_asc->social_apis as $key => $code) { $this->essb_resource_builder->add_social_api($key); } } if (defined('ESSB3_LOVEYOU_ACTIVE')) { $essb_loveyou = ESSBNetworks_LoveThis::get_instance(); $this->essb_resource_builder->add_js($essb_loveyou->generate_js_code(), true, 'essb-loveyou-code'); } if (defined('ESSB3_IMAGESHARE_ACTIVE')) { ESSBSocialImageShare::get_instance(); $this->essb_resource_builder->add_css(ESSBResourceBuilderSnippets::css_build_imageshare_customizer(), 'essb-imageshare-customizer', 'footer'); } if (defined('ESSB3_SOCIALPROFILES_ACTIVE')) { ESSBSocialProfiles::get_instance(); $this->essb_resource_builder->add_static_resource(ESSB3_PLUGIN_URL . '/assets/css/essb-profiles.css', 'easy-social-share-buttons-profles', 'css'); } if (defined('ESSB3_SOCIALFANS_ACTIVE')) { ESSBSocialFansCounter::get_instance(); $this->essb_resource_builder->add_css(ESSBResourceBuilderSnippets::css_build_fanscounter_customizer(), 'essb-fanscounter-customizer', 'footer'); } if (defined('ESSB3_NATIVE_ACTIVE')) { // Social Privacy Buttons when active include resources $essb_spb = ESSBSocialPrivacyNativeButtons::get_instance(); ESSBNativeButtonsHelper::$essb_spb = $essb_spb; foreach ($essb_spb->resource_files as $key => $object) { $this->essb_resource_builder->add_static_resource($object["file"], $object["key"], $object["type"]); } foreach (ESSBSkinnedNativeButtons::get_assets() as $key => $object) { $this->essb_resource_builder->add_static_resource($object["file"], $object["key"], $object["type"]); } $this->essb_resource_builder->add_css(ESSBSkinnedNativeButtons::generate_skinned_custom_css(), 'essb-skinned-native-buttons'); // asign instance of native buttons privacy class to helper // register active social network apis foreach (ESSBNativeButtonsHelper::get_list_of_social_apis() as $key => $code) { $this->essb_resource_builder->add_social_api($key); } } if (is_admin()) { include_once ESSB3_PLUGIN_ROOT . 'lib/admin/essb-admin-includes.php'; ESSBAdminControler::get_instance(); $exist_user_purchase_code = ESSBOptionValuesHelper::options_value($essb_options, 'purchase_code'); if (!empty($exist_user_purchase_code) || defined('ESSB3_THEME_INTEGRATED')) { include ESSB3_PLUGIN_ROOT . 'lib/external/autoupdate/plugin-update-checker.php'; // @since 1.3.3 // autoupdate // activating autoupdate option $essb_autoupdate = PucFactory::buildUpdateChecker('http://update.creoworx.com/essb3/', __FILE__, 'easy-social-share-buttons3'); // @since 1.3.7.2 - update to avoid issues with other plugins that uses same // method function addSecretKeyESSB3($query) { global $exist_user_purchase_code; $query['license'] = $exist_user_purchase_code; return $query; } $essb_autoupdate->addQueryArgFilter('addSecretKeyESSB3'); } } }