Exemplo n.º 1
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();
    ?>
">
Exemplo n.º 2
0
 function x_navbar_class()
 {
     switch (x_get_navbar_positioning()) {
         case 'fixed-left':
             $output = 'x-navbar x-navbar-fixed-left';
             break;
         case 'fixed-right':
             $output = 'x-navbar x-navbar-fixed-right';
             break;
         default:
             $output = 'x-navbar';
             break;
     }
     echo $output;
 }
Exemplo n.º 3
0
$x_site_link_color_hover = get_theme_mod('x_site_link_color_hover') == '' ? '#d80f0f' : get_theme_mod('x_site_link_color_hover');
//
// Remove 'italic' from setting output if it exsists to provide us with just
// the weight to work with.
//
$x_body_font_is_italic = strpos($x_body_font_weight_and_style, 'italic');
$x_logo_font_is_italic = strpos($x_logo_font_weight_and_style, 'italic');
$x_navbar_font_is_italic = strpos($x_navbar_font_weight_and_style, 'italic');
$x_headings_font_is_italic = strpos($x_headings_font_weight_and_style, 'italic');
$x_body_font_weight = $x_body_font_is_italic ? str_replace('italic', '', $x_body_font_weight_and_style) : $x_body_font_weight_and_style;
$x_logo_font_weight = $x_logo_font_is_italic ? str_replace('italic', '', $x_logo_font_weight_and_style) : $x_logo_font_weight_and_style;
$x_navbar_font_weight = $x_navbar_font_is_italic ? str_replace('italic', '', $x_navbar_font_weight_and_style) : $x_navbar_font_weight_and_style;
$x_headings_font_weight = $x_headings_font_is_italic ? str_replace('italic', '', $x_headings_font_weight_and_style) : $x_headings_font_weight_and_style;
// Header
// =============================================================================
$x_navbar_positioning = x_get_navbar_positioning();
$x_logo_adjust_navbar_top = get_theme_mod('x_logo_adjust_navbar_top');
$x_logo_adjust_navbar_side = get_theme_mod('x_logo_adjust_navbar_side');
$x_logo_navigation_layout = get_theme_mod('x_logo_navigation_layout') == '' ? 'inline' : get_theme_mod('x_logo_navigation_layout');
$x_logobar_adjust_spacing_top = get_theme_mod('x_logobar_adjust_spacing_top') == '' ? '15' : get_theme_mod('x_logobar_adjust_spacing_top');
$x_logobar_adjust_spacing_bottom = get_theme_mod('x_logobar_adjust_spacing_bottom') == '' ? '15' : get_theme_mod('x_logobar_adjust_spacing_bottom');
$x_navbar_width = get_theme_mod('x_navbar_width');
$x_navbar_height = get_theme_mod('x_navbar_height') == '' ? '90' : get_theme_mod('x_navbar_height');
$x_navbar_adjust_links_top = get_theme_mod('x_navbar_adjust_links_top') == '' ? '34' : get_theme_mod('x_navbar_adjust_links_top');
$x_navbar_adjust_links_side = get_theme_mod('x_navbar_adjust_links_side');
$x_navbar_adjust_button = get_theme_mod('x_navbar_adjust_button') == '' ? '20' : get_theme_mod('x_navbar_adjust_button');
$x_navbar_adjust_button_size = get_theme_mod('x_navbar_adjust_button_size') == '' ? '24' : get_theme_mod('x_navbar_adjust_button_size');
$x_header_widget_areas = x_header_widget_areas_count();
$x_widgetbar_button_background = get_theme_mod('x_widgetbar_button_background');
$x_widgetbar_button_background_hover = get_theme_mod('x_widgetbar_button_background_hover');
// Buttons