Beispiel #1
0
<footer id="main-footer" class="main-footer">
    <?php 
if (!is_404()) {
    get_sidebar('footer');
}
//Add footer sidebar
?>

    <div id="footer-bottom">
        <div class="row">
            <div class="large-4 columns">
               <?php 
echo __MAXFLAT::option('title_tagline_footer');
?>

            </div>
            <div class="large-12 columns footer-navigation">
                <?php 
wp_nav_menu(array('theme_location' => 'footer_pages', 'container' => false, 'depth' => 1));
?>

            </div>
        </div>
    </div>
</footer>
    <?php 
wp_footer();
?>

</body>
</html>
Beispiel #2
0
</head>

<body <?php 
body_class();
?>
>
<?php 
maxflat_lt_ie7_info();
//display info if IE lower than 7
?>

<div class="top-bar-outer">
	<?php 
//fixed top bar option
$fixed = __MAXFLAT::option('project_fixed_topbar');
?>


<div id="top-bar" class="top-bar home-border<?php 
get_header_fixed_class();
?>
">

	<div class="row">
		<div class="columns large-4 medium-3  small-6">
            <?php 
/**
 * Add Theme logo : template_tags
 */
maxflat_logo();
/**
Retrieves project_fixed_top bar option and get fixed class
*/
function get_header_fixed_class()
{
    $fixed = __MAXFLAT::option('project_fixed_topbar');
    echo $fixed == '1' ? ' smartlib-fixed-top-bar' : '';
}
echo get_class_of_component('menu');
?>
">
<nav id="site-navigation" class="main-navigation hide-for-small" role="navigation">

<a class="assistive-text" href="#content"
		title="<?php 
esc_attr_e('Skip to content', 'maxflat');
?>
"><?php 
_e('Skip to content', 'maxflat');
?>
</a>
	<?php 
//fixed menu option
$fixed = __MAXFLAT::option('maxflat_menu_fixed');
?>

<div class="maxflat-nav-menu <?php 
echo $fixed == '1' ? ' fixed-menu' : '';
?>
">
	<?php 
wp_nav_menu(array('theme_location' => 'categories', 'container' => false));
?>

</div>
</nav>

<!-- #site-navigation -->