Exemplo n.º 1
0
/**
*
* @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());
    }
}
/**
 * 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
}
Exemplo n.º 3
0
function pagelines_get_childcss()
{
    if (!is_admin() && is_child_theme()) {
        wp_enqueue_style('DMS-theme', get_bloginfo('stylesheet_url'), array(), pagelines_get_style_ver(), 'all');
    }
}