Пример #1
0
        } else {
            ?>
    <div class="widescreen-hero loading hero-<?php 
            the_ID();
            ?>
" data-bg="<?php 
            echo $image_url[0];
            ?>
">
    <?php 
        }
        ?>
    
        <div class="inner page-width">
            <h3 class="home-title"><span><?php 
        echo smamo_newlines(get_post_meta(get_the_ID(), 'slide_title', true), 'span');
        ?>
</span></h3>
        </div>
    <?php 
        if (get_post_meta(get_the_ID(), 'slide_href', true) !== '') {
            ?>
        </a>
    <?php 
        } else {
            ?>
    </div>
    <?php 
        }
        ?>
    <?php 
Пример #2
0
<header id="site-header" class="site-header">
	<div class="inner">
        <div class="tiny-logo">
            <a  href="<?php 
echo bloginfo('url');
?>
" title="<?php 
echo bloginfo('name');
?>
">
                <img src="<?php 
echo get_theme_mod('logo_small');
?>
"/>
            </a>
        </div>
        <a class="hamburger" href="#" nofollow>
            <?php 
include get_template_directory() . '/statics/icons/menu.svg';
?>
            <?php 
include get_template_directory() . '/statics/icons/close.svg';
?>
        </a>	
	</div>
	<?php 
$main_menu_args = array('theme_location' => 'main-menu', 'menu' => '', 'container' => 'nav', 'container_class' => 'main-menu', 'echo' => false, 'fallback_cb' => false, 'before' => '', 'after' => '', 'link_before' => '<span>', 'link_after' => '</span>', 'items_wrap' => '<ul>%3$s</ul>', 'depth' => 0, 'walker' => '');
echo smamo_newlines(wp_nav_menu($main_menu_args), 'span');
?>
</header>