Пример #1
0
?>
		<div class="container">
			<div class="row header__content header-content">
				<div class="col-xs-10 header__col header-content-col <?php 
echo Habakiri::is_one_row_header() ? 'col-md-4' : 'col-md-12';
?>
">
					<div class="site-branding">
						<h1 class="site-branding__heading"><?php 
Habakiri::the_logo();
?>
</h1>
					<!-- end .site-branding --></div>
				<!-- end .col-md-4 --></div>
				<div class="col-xs-2 header__col header-content-col <?php 
echo Habakiri::is_one_row_header() ? 'col-md-8' : 'col-md-12';
?>
 global-nav-wrapper clearfix">
					<?php 
do_action('habakiri_before_global_navigation');
?>
					<nav class="global-nav" role="navigation">
						<?php 
wp_nav_menu(array('theme_location' => 'global-nav', 'depth' => 0));
?>
					<!-- end .global-nav --></nav>
					<?php 
do_action('habakiri_after_global_navigation');
?>
					<div id="responsive-btn" class="hidden-md hidden-lg"></div>
				<!-- end .col-md-8 --></div>
Пример #2
0
 /**
  * Return size of the global navigation wrapper
  *
  * @return string
  */
 public static function get_gnav_size()
 {
     $gnav_breakpoint = Habakiri::get('gnav_breakpoint');
     if (!$gnav_breakpoint) {
         return;
     }
     if (Habakiri::is_one_row_header()) {
         return 'col-' . $gnav_breakpoint . '-8';
     }
     return 'col-' . $gnav_breakpoint . '-12';
 }