Esempio n. 1
0
function pagelines_head_common()
{
    /*
    	Title Metatag
    */
    echo "\n<title>";
    if (pagelines_bbpress_forum()) {
        bb_title();
    } elseif (pagelines_is_buddypress_page()) {
        bp_page_title();
    } else {
        if (is_front_page()) {
            echo get_bloginfo('name');
        } else {
            wp_title('');
        }
    }
    echo "</title>\n";
    if (!VDEV) {
        echo "<!-- Platform WordPress Framework By PageLines - www.PageLines.com -->\n\n";
    }
    /*
    	Meta Images
    */
    if (pagelines_option('pagelines_favicon')) {
        echo '<link rel="shortcut icon" href="' . pagelines_option('pagelines_favicon') . '" type="image/x-icon" />';
    }
    if (pagelines_option('pagelines_touchicon')) {
        echo '<link rel="apple-touch-icon" href="' . pagelines_option('pagelines_touchicon') . '" />';
    }
    ?>
 
<meta http-equiv="Content-Type" content="<?php 
    bloginfo('html_type');
    ?>
; charset=<?php 
    bloginfo('charset');
    ?>
" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<meta name="generator" content="WordPress <?php 
    bloginfo('version');
    // For stats in WordPress
    ?>
" /> 
<link rel="pingback" href="<?php 
    bloginfo('pingback_url');
    ?>
" />
<?php 
    if (pagelines_option('gfonts')) {
        ?>
	<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php 
        print_pagelines_option('gfonts_families', 'molengo');
        ?>
">
<?php 
    }
    if (pagelines_bbpress_forum()) {
        // Load bbPress headers
        bb_feed_head();
        bb_head();
        echo '<link rel="stylesheet" href="';
        bb_stylesheet_uri();
        echo '" type="text/css" />';
        // Enqueued Stuff doesn't show in bbPress
        // So we have to load the CSS manually....
        if (VPRO) {
            echo '<link rel="stylesheet" id="pagelines-pro-css" href="';
            echo PAGELINES_PRO_ROOT . '/pro.css';
            echo '" type="text/css" />';
        }
        echo '<link rel="stylesheet" id="pagelines-bbpress-css" href="';
        bloginfo('stylesheet_url');
        echo '" type="text/css" />';
    }
    if (VPRO) {
        wp_register_style('pagelines-pro', PAGELINES_PRO_ROOT . '/pro.css', array(), CORE_VERSION, 'all');
        wp_enqueue_style('pagelines-pro');
    }
    wp_register_style('pagelines-stylesheet', get_bloginfo('stylesheet_url'), array(), CORE_VERSION, 'all');
    wp_enqueue_style('pagelines-stylesheet');
    // Queue Common Javascript Libraries
    wp_enqueue_script("jquery");
    if (is_single() || is_page()) {
        wp_enqueue_script('comment-reply');
    }
    // This makes the comment box appear where the ‘reply to this comment’ link is
}
Esempio n. 2
0
if ('rtl' == bb_get_option('text_direction')) {
    ?>
	<link rel="stylesheet" href="<?php 
    bb_stylesheet_uri('rtl');
    ?>
" type="text/css" />
<?php 
}
?>

<?php 
bb_feed_head();
?>

<?php 
bb_head();
?>

</head>
<body id="<?php 
bb_location();
?>
">
	<div id="wrapper">
		<div id="header" role="banner">
			<h1><a href="<?php 
bb_uri();
?>
"><?php 
bb_option('name');
?>
/**
 * 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
}