public static function frontend_seajs_alias(array $alias = []) { if (self::is_enabled() && theme_cache::is_singular()) { $alias[self::$iden] = theme_features::get_theme_addons_js(__DIR__); } return $alias; }
function admin_enqueues($hook_suffix) { if ($hook_suffix != $this->menu_id) { return; } // WordPress 3.1 vs older version compatibility if (wp_script_is('jquery-ui-widget', 'registered')) { wp_enqueue_script('jquery-ui-progressbar', theme_features::get_theme_addons_js(__FILE__, 'jquery-ui/jquery.ui.progressbar.min'), array('jquery-ui-core', 'jquery-ui-widget'), '1.8.6'); } else { wp_enqueue_script('jquery-ui-progressbar', theme_features::get_theme_addons_js(__DIR__, 'jquery-ui/jquery.ui.progressbar.min.1.7.2'), array('jquery-ui-core'), '1.7.2'); } wp_enqueue_style('jquery-ui-regenthumbs', theme_features::get_theme_addons_css(__DIR__, 'jquery-ui-1.7.2.custom'), [], '1.7.2'); }
public static function frontend_seajs_alias(array $alias = []) { if (!theme_cache::is_singular('post')) { return $alias; } $alias[__CLASS__] = theme_features::get_theme_addons_js(__DIR__); return $alias; }
public static function wp_enqueue_script() { if (!self::is_page()) { return false; } $tabs = self::get_tabs(); $tab_active = get_query_var('tab'); if ($tab_active === 'avatar') { wp_enqueue_script(__CLASS__ . '-cropper', theme_features::get_theme_addons_js(__DIR__, 'cropper.min'), null, theme_file_timestamp::get_timestamp(), true); } }
public static function frontend_seajs_alias(array $alias = []) { if (self::is_page()) { $alias[__CLASS__] = theme_features::get_theme_addons_js(__DIR__); } return $alias; }
public static function customizer_live_preview() { wp_enqueue_script(__CLASS__, theme_features::get_theme_addons_js(__DIR__, 'customizer-live-preview'), ['customize-preview'], theme_file_timestamp::get_timestamp(), true); }
public static function frontend_seajs_alias(array $alias = []) { if (self::can_comment()) { $alias[self::$iden] = theme_features::get_theme_addons_js(__DIR__); } return $alias; }
public static function js() { ?> seajs.use('<?php echo theme_features::get_theme_addons_js(__DIR__); ?> ',function(m){ /** alipay */ m.alipay.config.lang.M00001 = '<?php echo esc_js(sprintf(___('Donate to INN STUDIO (%s)'), theme_features::get_theme_info('name'))); ?> '; m.alipay.config.lang.M00002 = '<?php echo esc_js(___('Message for INN STUDIO:')); ?> '; /** paypal */ m.paypal.config.lang.M00001 = '<?php echo esc_js(sprintf(___('Donate to INN STUDIO (%s)'), theme_features::get_theme_info('name'))); ?> '; m.init(); }); <?php }
public static function backend_seajs_alias(array $alias = []) { $alias[__CLASS__] = theme_features::get_theme_addons_js(__DIR__, 'backend'); return $alias; }
public static function frontend_seajs_alias(array $alias = []) { if (theme_cache::is_user_logged_in() || !theme_cache::is_page(self::$page_slug)) { return $alias; } $alias[self::$iden] = theme_features::get_theme_addons_js(__DIR__); return $alias; }