示例#1
0
	<?php 
    wp_nav_menu(array('theme_location' => 'formats', 'container' => 'nav', 'container_id' => 'menu-formats', 'container_class' => 'menu', 'menu_id' => 'menu-formats-items', 'menu_class' => 'menu-items', 'depth' => 1, 'link_before' => '<span class="screen-reader-text">', 'link_after' => '</span>', 'fallback_cb' => ''));
    ?>

<?php 
} else {
    // If there's not a 'formats' menu.
    ?>

	<nav id="menu-formats" class="menu">

		<ul id="menu-formats-items" class="menu-items">

			<?php 
    if ($url = hybrid_get_blog_url()) {
        // Check for blog URL.
        ?>

				<li class="menu-item-blog <?php 
        echo is_home() ? 'current-menu-item' : '';
        ?>
">
					<a href="<?php 
        echo esc_url($url);
        ?>
" title="<?php 
        _e('Articles', 'socially-awkward');
        ?>
">
						<span class="screen-reader-text"><?php 
/**
 * @since      0.1.0
 * @deprecated 1.0.0
 */
function socially_awkward_get_blog_url()
{
    _deprecated_function(__FUNCTION__, '1.0.0', 'hybrid_get_blog_url()');
    return hybrid_get_blog_url();
}