function section_styles(){ pagelines_load_css( $this->base_url . '/brandnav.css', 'brandnav'); if(pagelines('enable_drop_down')){ wp_register_style('superfish', self::$nav_url . '/superfish.css', array(), CORE_VERSION, 'screen'); wp_enqueue_style( 'superfish' ); } }
/** * PageLines <head> Includes * */ function pagelines_head_common(){ pagelines_register_hook('pagelines_code_before_head'); // Hook printf('<meta http-equiv="Content-Type" content="%s; charset=%s" />', get_bloginfo('html_type'), get_bloginfo('charset')); pagelines_title_tag(); if(!VDEV) echo "<!-- Platform WordPress Framework By PageLines - www.PageLines.com -->\n"; /* Meta Images */ if(pagelines_option('pagelines_favicon')) printf('<link rel="shortcut icon" href="%s" type="image/x-icon" />%s', pagelines_option('pagelines_favicon'), "\n"); if(pagelines_option('pagelines_touchicon')) printf('<link rel="apple-touch-icon" href="%s" />%s', pagelines_option('pagelines_touchicon'), "\n"); if(!apply_filters( 'pagelines_xfn', '' )) echo '<link rel="profile" href="http://gmpg.org/xfn/11" />'."\n"; // bbPress Header... doesn't support hooks, or they need to be reloaded. if( pagelines_bbpress_forum() ){ pagelines_load_css( bb_get_stylesheet_uri(), 'pagelines-bbpress', CORE_VERSION); bb_feed_head(); bb_head(); } // Get Pro Styles if(VPRO) pagelines_load_css_relative('pro/pro.css', 'pagelines-pro'); // Get Main Styles pagelines_load_css( get_bloginfo('stylesheet_url'), 'pagelines-stylesheet', pagelines_get_style_ver()); // RTL Language Support if(is_rtl()) pagelines_load_css_relative( 'rtl.css', 'pagelines-rtl'); // Queue Common Javascript Libraries wp_enqueue_script("jquery"); // Fix IE and special handling pagelines_fix_ie(); // Cufon replacement pagelines_font_replacement(); // Headerscripts option > custom code print_pagelines_option('headerscripts'); // Header Scripts Input Option }
/** * * Loading CSS using relative path to theme root. This allows dynamic versioning, overriding in child theme * * @package Platform * @since 1.4.0 * */ function pagelines_load_css_relative($relative_style_url, $id) { $rurl = '/' . $relative_style_url; if (file_exists(STYLESHEETPATH . $rurl)) { $date_modified = filemtime(STYLESHEETPATH . $rurl); $cache_ver = str_replace('.', '', CHILD_VERSION) . '-' . date('mdyGis', $date_modified); pagelines_load_css(CHILD_URL . $rurl, $id, $cache_ver); } elseif (file_exists(TEMPLATEPATH . $rurl)) { $date_modified = filemtime(TEMPLATEPATH . $rurl); $cache_ver = str_replace('.', '', CORE_VERSION) . '-' . date('mdyGis', $date_modified); pagelines_load_css(PARENT_URL . $rurl, $id, $cache_ver); } }
/** * * @TODO do * */ function pagelines_get_childcss() { if (!is_admin() && is_child_theme()) { pagelines_load_css(get_bloginfo('stylesheet_url'), 'pagelines-child-stylesheet', pagelines_get_style_ver()); } }
/** * * Loading CSS using relative path to theme root. This allows dynamic versioning, overriding in child theme * * @package PageLines Framework * @since 1.4.0 * */ function pagelines_load_css_relative($relative_style_url, $id) { $rurl = '/' . $relative_style_url; if (is_file(get_stylesheet_directory() . $rurl)) { $cache_ver = pl_cache_version(get_stylesheet_directory() . $rurl); pagelines_load_css(PL_CHILD_URL . $rurl, $id, $cache_ver); } elseif (is_file(get_template_directory() . $rurl)) { $cache_ver = pl_cache_version(get_template_directory() . $rurl); pagelines_load_css(PL_PARENT_URL . $rurl, $id, $cache_ver); } }