Пример #1
0
 function x_masthead_class()
 {
     $navbar_positioning = x_get_navbar_positioning();
     $logo_nav_layout = x_get_logo_navigation_layout();
     if ($logo_nav_layout == 'stacked' && ($navbar_positioning == 'static-top' || $navbar_positioning == 'fixed-top')) {
         $output = 'masthead masthead-stacked';
     } else {
         $output = 'masthead masthead-inline';
     }
     echo $output;
 }
Пример #2
0
<?php

// =============================================================================
// VIEWS/GLOBAL/_NAVBAR.PHP
// -----------------------------------------------------------------------------
// Outputs the navbar.
// =============================================================================
$navbar_position = x_get_navbar_positioning();
$logo_nav_layout = x_get_logo_navigation_layout();
$is_one_page_nav = x_is_one_page_navigation();
?>

<?php 
if (($navbar_position == 'static-top' || $navbar_position == 'fixed-top' || $is_one_page_nav) && $logo_nav_layout == 'stacked') {
    ?>

  <div class="x-logobar">
    <div class="x-logobar-inner">
      <div class="x-container max width">
        <?php 
    x_get_view('global', '_brand');
    ?>
      </div>
    </div>
  </div>

  <div class="x-navbar-wrap">
    <div class="<?php 
    x_navbar_class();
    ?>
">