Ejemplo n.º 1
0
/**
 * Display title tag with contents.
 *
 * @ignore
 * @since 0.0.1
 * @access private
 *
 * @see hq_title()
 */
function _hq_render_title_tag()
{
    if (!current_theme_supports('title-tag')) {
        return;
    }
    // This can only work internally on hq_head.
    if (!did_action('hq_head') && !doing_action('hq_head')) {
        return;
    }
    echo '<title>' . hq_title('|', false, 'right') . "</title>\n";
}
Ejemplo n.º 2
0
<!--[if !(IE 6) & !(IE 7) & !(IE 8)]><!-->
<html <?php 
language_attributes();
?>
>
<!--<![endif]-->
<head>
<meta charset="<?php 
bloginfo('charset');
?>
" />
<meta name="viewport" content="width=device-width" />
<title><?php 
// Print the <title> tag based on what is being viewed.
global $page, $paged;
hq_title('|', true, 'right');
// Add the blog name.
bloginfo('name');
// Add the blog description for the home/front page.
$site_description = get_bloginfo('description', 'display');
if ($site_description && (is_home() || is_front_page())) {
    echo " | {$site_description}";
}
// Add a page number if necessary:
if (($paged >= 2 || $page >= 2) && !is_404()) {
    echo esc_html(' | ' . sprintf(__('Page %s', 'hivequeentheme'), max($paged, $page)));
}
?>
</title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php