Esempio n. 1
0
 public static function frontend_css()
 {
     if (!self::is_page()) {
         return false;
     }
     wp_enqueue_style(__CLASS__, theme_features::get_theme_addons_css(__DIR__), 'frontend', theme_file_timestamp::get_timestamp());
 }
 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');
 }
Esempio n. 3
0
 public static function frontend_css()
 {
     if (!self::is_page()) {
         return false;
     }
     $tabs = self::get_tabs();
     $tab_active = get_query_var('tab');
     switch ($tab_active) {
         case 'avatar':
             wp_enqueue_style(__CLASS__ . '-' . $tab_active, theme_features::get_theme_addons_css(__DIR__, $tab_active), 'frontend', theme_file_timestamp::get_timestamp());
             wp_enqueue_style(__CLASS__ . '-cropper', theme_features::get_theme_addons_css(__DIR__, 'cropper'), 'frontend', theme_file_timestamp::get_timestamp());
             break;
     }
 }
Esempio n. 4
0
 public static function frontend_css()
 {
     if (!theme_cache::is_singular('post') || !self::is_enabled()) {
         return false;
     }
     wp_enqueue_style(__CLASS__, theme_features::get_theme_addons_css(__DIR__), 'frontend', theme_file_timestamp::get_timestamp());
 }
 public static function backend_css()
 {
     wp_register_style(__CLASS__ . '-backend', theme_features::get_theme_addons_css(__DIR__, 'backend'), false, theme_file_timestamp::get_timestamp());
     wp_enqueue_style(__CLASS__ . '-backend');
 }
    /**
     * Load style
     * 
     * 
     * @return string HTML
     * @version 1.0.0
     * 
     */
    public static function backend_css()
    {
        ?>
		<link href="<?php 
        echo theme_features::get_theme_addons_css(__DIR__, 'backend', true);
        ?>
" rel="stylesheet"  media="all"/>
		<?php 
    }
Esempio n. 7
0
 public static function add_editor_style()
 {
     add_editor_style([theme_features::get_theme_addons_css(__DIR__, 'editor', true)]);
 }