function init() { remove_action('bb_init', 'bb_register_default_views'); bb_register_view('no-replies', __('Without Replies'), array('post_count' => 1, 'started' => '<' . gmdate('YmdH', time() - 7200))); bb_register_view('untagged', __('Without Tags'), array('tag_count' => 0)); add_filter('style_loader_src', array(&$this, 'style_loader_src')); add_action('bb_head', 'wp_print_styles'); add_filter('bb_get_theme_uri', array(&$this, 'bb_get_theme_uri')); wp_enqueue_style('guangzhou', bb_get_stylesheet_uri(), array(), $this->version(), 'all'); wp_enqueue_style('guangzhou-skin', bb_get_active_theme_uri() . 'skins/brown/style.css', array('guangzhou'), $this->version(), 'all'); }
function bb_stylesheet_uri($stylesheet = '') { echo esc_html(bb_get_stylesheet_uri($stylesheet)); }
/** * 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 }