Пример #1
0
	<div id="socket-footer">
		<div class="container">
			<div class="row">
				<div class="<?php 
if (has_nav_menu('social') || has_nav_menu('footer')) {
    echo 'col-sm-4 ';
} else {
    echo 'col-lg-12 text-center ';
}
?>
col-copyright">
					<p>&copy; <?php 
echo date('Y');
?>
 - <?php 
echo get_bootplate_formal_name();
?>
.</p>
				</div>
				<?php 
// Social Links Menu
if (has_nav_menu('social')) {
    echo '<div class="col-sm-8 col-links links-social"><ul class="list-inline">';
    wp_nav_menu(array('menu' => 'social', 'theme_location' => 'social', 'depth' => 0, 'link_before' => '<span class="sr-only screen-reader-text">', 'link_after' => '</span>', 'container' => '', 'menu_class' => 'list-inline', 'items_wrap' => '%3$s', 'fallback_cb' => false));
    echo '</ul></div>';
}
// Regular Text Links Menu
if (has_nav_menu('footer') && !has_nav_menu('social')) {
    echo '<div class="col-sm-8 col-links links-footer"><ul class="list-inline">';
    wp_nav_menu(array('menu' => 'footer', 'theme_location' => 'footer', 'depth' => 0, 'container' => '', 'menu_class' => '', 'items_wrap' => '%3$s', 'fallback_cb' => false));
    echo '</ul></div>';
Пример #2
0
 function bootplate_meta()
 {
     if (!have_seo()) {
         // Let's do the work
         global $post, $page;
         $metadescription = bootplate_get_meta_description();
         echo '<meta name="description" content="' . $metadescription . '" />' . "\r\n";
         echo '	<meta name="author" content="' . get_bootplate_formal_name() . '" />' . "\r\n";
         echo '	<meta itemprop="name" content="' . esc_url(get_home_url()) . '" />' . "\r\n";
         echo '	<meta itemprop="description" content="' . $metadescription . '" />' . "\r\n";
         echo '	<meta property="og:site_name" content="' . get_bloginfo('name') . '" />' . "\r\n";
         echo '	<meta property="og:title" content="' . esc_url(get_home_url()) . '" />' . "\r\n";
         echo '	<meta property="og:description" content="' . $metadescription . '" />' . "\r\n";
         echo '	<meta property="og:url" content="' . get_home_url() . '" />' . "\r\n";
         echo '	<meta name="apple-mobile-web-app-capable" content="yes">' . "\r\n";
         echo '	<meta name="apple-mobile-web-app-status-bar-style" content="black">' . "\r\n";
         echo '	<meta name="apple-mobile-web-app-title" content="' . get_bloginfo('name') . '">' . "\r\n";
         echo '	<meta name="robots" content="noodp"/>' . "\r\n";
     } else {
         // Let the plugin do the work, but add the apple-mobile-web-app stuff
         echo '<meta name="apple-mobile-web-app-capable" content="yes">' . "\r\n";
         echo '	<meta name="apple-mobile-web-app-status-bar-style" content="black">' . "\r\n";
         echo '	<meta name="apple-mobile-web-app-title" content="' . get_bloginfo('name') . '">' . "\r\n";
     }
 }