Esempio n. 1
0
 *	Header 9
 *	------------------------------------------------
 * 	Copyright Swift Ideas 2015 - http://www.swiftideas.com
 *
 *	Output for header-2
 *
 */
$header_right_output = sf_header_aux('right');
?>

<header id="header" class="clearfix">
	<div class="container">
		<div class="row">
		
		<?php 
echo sf_logo('col-sm-4 logo-left');
?>
		
		<div class="header-right col-sm-8">
			<?php 
echo $header_right_output;
?>
		</div>
		
		</div> <!-- CLOSE .row -->
	</div> <!-- CLOSE .container -->
</header>

<div id="main-nav" class="sticky-header">
	<?php 
echo sf_main_menu('main-navigation', 'full');
Esempio n. 2
0
<?php

/*
 *
 *	Header Vertical
 *	------------------------------------------------
 * 	Copyright Swift Ideas 2015 - http://www.swiftideas.com
 *
 *	Output for header-vert
 *
 */
?>

<header id="header" class="clearfix">
	<?php 
echo sf_logo('logo-center');
?>
</header>

<div id="vertical-nav" class="vertical-menu">
	<?php 
echo sf_main_menu('main-navigation', 'vertical');
?>
</div>
Esempio n. 3
0
    function sf_mobile_header()
    {
        global $woocommerce, $sf_options;
        $mobile_header_layout = $sf_options['mobile_header_layout'];
        $mobile_top_text = __($sf_options['mobile_top_text'], 'swiftframework');
        $mobile_menu_icon = apply_filters('sf_mobile_menu_icon', '<span class="menu-bars"></span>');
        $mobile_cart_icon = apply_filters('sf_mobile_cart_icon', '<i class="ss-cart"></i>');
        $mobile_show_cart = $sf_options['mobile_show_cart'];
        $mobile_header_class = "";
        $mobile_header_output = "";
        if (sf_theme_supports('hamburger-css')) {
            $mobile_menu_type = "slideout";
            $hamburger_class = 'hamburger--3dx';
            if (isset($sf_options['mobile_menu_type'])) {
                $mobile_menu_type = $sf_options['mobile_menu_type'];
            }
            if ($mobile_menu_type == "overlay") {
                $hamburger_class = 'hamburger--3dy';
            }
            $mobile_menu_link = '<button class="hamburger mobile-menu-link ' . $hamburger_class . '" type="button">
				  <span class="hamburger-box">
				    <span class="hamburger-inner"></span>
				  </span>
				</button>';
        } else {
            $mobile_menu_link = '<a href="#" class="mobile-menu-link menu-bars-link">' . $mobile_menu_icon . '</a>';
        }
        $mobile_cart_link = '<a href="#" class="mobile-cart-link">' . $mobile_cart_icon . '</a>';
        if (sf_theme_opts_name() == "sf_atelier_options" || sf_theme_opts_name() == "sf_uplift_options") {
            $mobile_cart_link = '<nav class="std-menu float-alt-menu">' . "\n";
            $mobile_cart_link .= '<ul class="menu">' . "\n";
            $mobile_cart_link .= sf_get_cart();
            $mobile_cart_link .= '</ul>' . "\n";
            $mobile_cart_link .= '</nav>' . "\n";
        }
        if ($mobile_top_text != "") {
            $mobile_header_output .= '<div id="mobile-top-text">' . do_shortcode($mobile_top_text) . '</div>';
        }
        $mobile_header_output .= '<header id="mobile-header" class="mobile-' . $mobile_header_layout . ' clearfix">' . "\n";
        if ($mobile_header_layout == "right-logo") {
            $mobile_header_output .= '<div class="mobile-header-opts">';
            $mobile_header_output .= $mobile_menu_link . "\n";
            if ($mobile_show_cart && $woocommerce != "") {
                $mobile_header_output .= $mobile_cart_link . "\n";
            }
            $mobile_header_output .= '</div>';
            $mobile_header_output .= sf_logo('logo-right', 'mobile-logo');
        } else {
            if ($mobile_header_layout == "center-logo") {
                $mobile_header_output .= '<div class="mobile-header-opts opts-left">';
                $mobile_header_output .= $mobile_menu_link . "\n";
                $mobile_header_output .= '</div>';
                $mobile_header_output .= sf_logo('logo-center', 'mobile-logo');
                $mobile_header_output .= '<div class="mobile-header-opts opts-right">';
                if ($mobile_show_cart && $woocommerce != "") {
                    $mobile_header_output .= $mobile_cart_link . "\n";
                }
                $mobile_header_output .= '</div>';
            } else {
                if ($mobile_header_layout == "center-logo-alt") {
                    $mobile_header_output .= '<div class="mobile-header-opts opts-left">';
                    if ($mobile_show_cart && $woocommerce != "") {
                        $mobile_header_output .= $mobile_cart_link . "\n";
                    }
                    $mobile_header_output .= '</div>';
                    $mobile_header_output .= sf_logo('logo-center', 'mobile-logo');
                    $mobile_header_output .= '<div class="mobile-header-opts opts-right">';
                    $mobile_header_output .= $mobile_menu_link . "\n";
                    $mobile_header_output .= '</div>';
                } else {
                    $mobile_header_output .= sf_logo('logo-left', 'mobile-logo');
                    $mobile_header_output .= '<div class="mobile-header-opts">';
                    $mobile_header_output .= $mobile_menu_link . "\n";
                    if ($mobile_show_cart && $woocommerce != "") {
                        $mobile_header_output .= $mobile_cart_link . "\n";
                    }
                    $mobile_header_output .= '</div>';
                }
            }
        }
        $mobile_header_output .= '</header>' . "\n";
        echo $mobile_header_output;
    }
Esempio n. 4
0
$header_left_output = sf_header_aux('left');
$header_right_output = sf_header_aux('right');
?>

<header id="header" class="clearfix">
	<div class="container">
		<div class="row">
	
			<div class="header-left col-sm-4">
				<?php 
echo $header_left_output;
?>
			</div>
	
			<?php 
echo sf_logo('col-sm-4 logo-center');
?>
	
			<div class="header-right col-sm-4">
				<?php 
echo $header_right_output;
?>
			</div>
	
		</div> <!-- CLOSE .row -->
	</div> <!-- CLOSE .container -->
</header>

<div id="main-nav" class="sticky-header center-menu">
	<?php 
echo sf_main_menu('main-navigation', 'full');
Esempio n. 5
0
 function sf_header($header_layout)
 {
     // VARIABLES
     $options = get_option('sf_dante_options');
     $show_cart = $options['show_cart'];
     $show_wishlist = $options['show_wishlist'];
     $header_left_text = __($options['header_left_text'], 'swiftframework');
     $header_output = $main_menu = '';
     if ($header_layout == "header-1") {
         $header_output .= '<header id="header" class="clearfix">' . "\n";
         $header_output .= '<div class="container">' . "\n";
         $header_output .= '<div class="row">' . "\n";
         $header_output .= '<div class="header-left col-sm-4">' . do_shortcode($header_left_text) . '</div>' . "\n";
         $header_output .= sf_logo('col-sm-4 logo-center');
         $header_output .= '<div class="header-right col-sm-4">' . sf_aux_links('header-menu', TRUE, "header-1") . '</div>' . "\n";
         $header_output .= '</div> <!-- CLOSE .row -->' . "\n";
         $header_output .= '</div> <!-- CLOSE .container -->' . "\n";
         $header_output .= '</header>' . "\n";
         $header_output .= '<div id="main-nav" class="sticky-header">' . "\n";
         $header_output .= sf_main_menu('main-navigation', 'full');
         $header_output .= '</div>' . "\n";
     } else {
         if ($header_layout == "header-2") {
             $header_output .= '<header id="header" class="clearfix">' . "\n";
             $header_output .= '<div class="container">' . "\n";
             $header_output .= '<div class="row">' . "\n";
             $header_output .= sf_logo('col-sm-4 logo-left');
             $header_output .= '<div class="header-right col-sm-8">' . sf_aux_links('header-menu', FALSE, "header-1") . '</div>' . "\n";
             $header_output .= '</div> <!-- CLOSE .row -->' . "\n";
             $header_output .= '</div> <!-- CLOSE .container -->' . "\n";
             $header_output .= '</header>' . "\n";
             $header_output .= '<div id="main-nav" class="sticky-header">' . "\n";
             $header_output .= sf_main_menu('main-navigation', 'full');
             $header_output .= '</div>' . "\n";
         } else {
             if ($header_layout == "header-3") {
                 $header_output .= '<header id="header" class="clearfix">' . "\n";
                 $header_output .= '<div class="container header-container sticky-header">' . "\n";
                 $header_output .= '<div class="row">' . "\n";
                 $header_output .= sf_logo('logo-left');
                 $header_output .= '<div class="header-right">';
                 $header_output .= sf_main_menu('main-navigation', 'with-search');
                 $header_output .= '</div>' . "\n";
                 $header_output .= '</div> <!-- CLOSE .row -->' . "\n";
                 $header_output .= '</div> <!-- CLOSE .container -->' . "\n";
                 $header_output .= '</header>' . "\n";
             } else {
                 if ($header_layout == "header-4") {
                     $header_output .= '<header id="header" class="clearfix">' . "\n";
                     $header_output .= sf_top_header();
                     $header_output .= '<div class="container header-container sticky-header">' . "\n";
                     $header_output .= '<div class="row">' . "\n";
                     $header_output .= sf_logo('logo-left');
                     $header_output .= '<div class="header-right">';
                     $header_output .= sf_main_menu('main-navigation', 'with-search');
                     $header_output .= '</div>' . "\n";
                     $header_output .= '</div> <!-- CLOSE .row -->' . "\n";
                     $header_output .= '</div> <!-- CLOSE .container -->' . "\n";
                     $header_output .= '</header>' . "\n";
                 } else {
                     if ($header_layout == "header-5") {
                         $header_output .= '<header id="header" class="clearfix">' . "\n";
                         $header_output .= '<div class="container sticky-header">' . "\n";
                         $header_output .= '<div class="row">' . "\n";
                         $header_output .= sf_logo('logo-left');
                         $header_output .= '<div class="header-right">';
                         $header_output .= sf_main_menu('main-navigation', 'with-search');
                         $header_output .= '</div>' . "\n";
                         $header_output .= '</div> <!-- CLOSE .row -->' . "\n";
                         $header_output .= '</div> <!-- CLOSE .container -->' . "\n";
                         $header_output .= '</header>' . "\n";
                     } else {
                         if ($header_layout == "header-6") {
                             $header_output .= '<header id="header" class="sticky-header clearfix">' . "\n";
                             $header_output .= '<div class="container">' . "\n";
                             $header_output .= '<div class="row">' . "\n";
                             $header_output .= sf_logo('logo-left');
                             $header_output .= '<div class="header-right">' . sf_main_menu('main-navigation', 'with-search') . '</div>' . "\n";
                             $header_output .= '</div> <!-- CLOSE .row -->' . "\n";
                             $header_output .= '</div> <!-- CLOSE .container -->' . "\n";
                             $header_output .= '</header>' . "\n";
                         } else {
                             $header_output .= '<header id="header" class="clearfix">' . "\n";
                             $header_output .= sf_top_header();
                             $header_output .= '<div class="sticky-header">' . "\n";
                             $header_output .= '<div class="container header-container">' . "\n";
                             $header_output .= '<div class="row">' . "\n";
                             $header_output .= sf_logo('logo-left');
                             $header_output .= '<div class="header-right">' . sf_main_menu('main-navigation', 'with-search') . '</div>' . "\n";
                             $header_output .= '</div> <!-- CLOSE .row -->' . "\n";
                             $header_output .= '</div> <!-- CLOSE .container -->' . "\n";
                             $header_output .= '</div>' . "\n";
                             $header_output .= '</header>' . "\n";
                         }
                     }
                 }
             }
         }
     }
     // HEADER RETURN
     return $header_output;
 }