Exemplo n.º 1
0
?>
 class="no-js"> <!--<![endif]-->
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="https://html5shim.googlecode.com/svn/trunk/html5.js">
      </script>
    <![endif]-->
<head>
<meta charset="<?php 
bloginfo('charset');
?>
" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php 
if (is_front_page()) {
    echo pb_get_seo_meta_elements();
    echo pb_get_microdata_elements();
} else {
    echo pb_get_microdata_elements();
}
?>
<link rel="shortcut icon" href="<?php 
bloginfo('stylesheet_directory');
?>
/favicon.ico" />
<title><?php 
global $page, $paged;
wp_title('|', true, 'right');
bloginfo('name');
// Add the blog description for the home/front page.
$site_description = get_bloginfo('description', 'display');
Exemplo n.º 2
0
function pressbooks_theme_add_metadata()
{
    if (is_front_page()) {
        echo pb_get_seo_meta_elements();
        echo pb_get_microdata_elements();
    } else {
        echo pb_get_microdata_elements();
    }
}