Beispiel #1
0
    /**
     * Avada Side Header Template Function
     * @return void
     */
    function avada_side_header()
    {
        $queried_object_id = get_queried_object_id();
        if (!is_page_template('blank.php') && get_post_meta($queried_object_id, 'pyre_display_header', true) != 'no') {
            /**
             * avada_before_header_wrapper hook
             */
            do_action('avada_before_header_wrapper');
            if (fusion_get_theme_option('sticky_header_logo')) {
                $sticky_header_logo = true;
            } else {
                $sticky_header_logo = false;
            }
            if (fusion_get_theme_option('mobile_logo')) {
                $mobile_logo = true;
            } else {
                $mobile_logo = false;
            }
            ?>
		<div id="side-header-sticky"></div>
		<div id="side-header" class="<?php 
            echo sprintf('clearfix fusion-mobile-menu-design-%s fusion-sticky-logo-%s fusion-mobile-logo-%s fusion-sticky-menu-%s', strtolower(fusion_get_theme_option('mobile_menu_design')), $sticky_header_logo, $mobile_logo, has_nav_menu('sticky_navigation'));
            if (fusion_get_theme_option('header_shadow')) {
                ?>
 header-shadow<?php 
            }
            ?>
">
			<div class="side-header-wrapper">
				<?php 
            /**
             * avada_header_inner_before
             */
            do_action('avada_header_inner_before');
            if (fusion_get_theme_option('mobile_logo')) {
                $mobile_logo = true;
            } else {
                $mobile_logo = false;
            }
            ?>
				<div class="side-header-content <?php 
            echo sprintf('fusion-logo-%s fusion-mobile-logo-%s', strtolower(fusion_get_theme_option('logo_alignment')), $mobile_logo);
            ?>
">
					<?php 
            avada_logo();
            ?>
				</div>
				<div class="fusion-main-menu-container <?php 
            echo sprintf('fusion-logo-menu-%s', strtolower(fusion_get_theme_option('logo_alignment')));
            ?>
">

					<?php 
            avada_main_menu();
            ?>
				</div>
				<?php 
            if (fusion_get_theme_option('header_v4_content') == 'Tagline And Search' || fusion_get_theme_option('header_v4_content') == 'Search') {
                ?>
					<div class="fusion-secondary-menu-search"><div class="fusion-secondary-menu-search-inner"><?php 
                get_search_form();
                ?>
</div></div>
				<?php 
            }
            if (fusion_get_theme_option('header_left_content') != 'Leave Empty' || fusion_get_theme_option('header_right_content') != 'Leave Empty') {
                $content_1 = avada_secondary_header_content('header_left_content');
                $content_2 = avada_secondary_header_content('header_right_content');
                ?>
				<div class="side-header-content side-header-content-1-2">
					<?php 
                if ($content_1) {
                    ?>
						<div class="side-header-content-1 fusion-clearfix"><?php 
                    echo $content_1;
                    ?>
</div>
					<?php 
                }
                ?>
					<?php 
                if ($content_2) {
                    ?>
						<div class="side-header-content-2 fusion-clearfix"><?php 
                    echo $content_2;
                    ?>
</div>
					<?php 
                }
                ?>
				</div>
				<?php 
            }
            ?>
				<?php 
            if (fusion_get_theme_option('header_v4_content') != 'None') {
                ?>
				<div class="side-header-content side-header-content-3">
					<?php 
                avada_header_content_3();
                ?>
				</div>
				<?php 
            }
            /**
             * avada_header_inner_after
             */
            do_action('avada_header_inner_after');
            ?>
			</div>
		</div>
		<?php 
            /**
             * avada_after_header_wrapper hook
             */
            do_action('avada_after_header_wrapper');
        }
    }
Beispiel #2
0
    /**
     * Avada Side Header Template Function
     * @return void
     */
    function avada_side_header()
    {
        $queried_object_id = get_queried_object_id();
        if (!is_page_template('blank.php') && 'no' != get_post_meta($queried_object_id, 'pyre_display_header', true)) {
            ?>

			<?php 
            /**
             * avada_before_header_wrapper hook
             */
            do_action('avada_before_header_wrapper');
            $sticky_header_logo = Avada()->settings->get('sticky_header_logo') ? true : false;
            $mobile_logo = Avada()->settings->get('mobile_logo') ? true : false;
            ?>
			<div id="side-header-sticky"></div>
			<div id="side-header" class="clearfix fusion-mobile-menu-design-<?php 
            echo strtolower(Avada()->settings->get('mobile_menu_design'));
            ?>
 fusion-sticky-logo-<?php 
            echo $sticky_header_logo;
            ?>
 fusion-mobile-logo-<?php 
            echo $mobile_logo;
            ?>
 fusion-sticky-menu-<?php 
            echo has_nav_menu('sticky_navigation');
            echo Avada()->settings->get('header_shadow') ? ' header-shadow' : '';
            ?>
">
				<div class="side-header-wrapper">
					<?php 
            /**
             * avada_header_inner_before
             */
            do_action('avada_header_inner_before');
            ?>
					<?php 
            $mobile_logo = Avada()->settings->get('mobile_logo') ? true : false;
            ?>
					<div class="side-header-content fusion-logo-<?php 
            echo strtolower(Avada()->settings->get('logo_alignment'));
            ?>
 fusion-mobile-logo-<?php 
            echo $mobile_logo;
            ?>
">
						<?php 
            avada_logo();
            ?>
					</div>
					<div class="fusion-main-menu-container fusion-logo-menu-<?php 
            echo strtolower(Avada()->settings->get('logo_alignment'));
            ?>
">
						<?php 
            avada_main_menu();
            ?>
					</div>

					<?php 
            if ('Tagline And Search' == Avada()->settings->get('header_v4_content') || 'Search' == Avada()->settings->get('header_v4_content')) {
                ?>
						<div class="fusion-secondary-menu-search">
							<div class="fusion-secondary-menu-search-inner"><?php 
                get_search_form();
                ?>
</div>
						</div>
					<?php 
            }
            ?>

					<?php 
            if ('Leave Empty' != Avada()->settings->get('header_left_content') || 'Leave Empty' != Avada()->settings->get('header_right_content')) {
                ?>
						<?php 
                $content_1 = avada_secondary_header_content('header_left_content');
                ?>
						<?php 
                $content_2 = avada_secondary_header_content('header_right_content');
                ?>

						<div class="side-header-content side-header-content-1-2">
							<?php 
                if ($content_1) {
                    ?>
								<div class="side-header-content-1 fusion-clearfix"><?php 
                    echo $content_1;
                    ?>
</div>
							<?php 
                }
                ?>
							<?php 
                if ($content_2) {
                    ?>
								<div class="side-header-content-2 fusion-clearfix"><?php 
                    echo $content_2;
                    ?>
</div>
							<?php 
                }
                ?>
						</div>
					<?php 
            }
            ?>

					<?php 
            if ('None' != Avada()->settings->get('header_v4_content')) {
                ?>
						<div class="side-header-content side-header-content-3">
							<?php 
                avada_header_content_3();
                ?>
						</div>
					<?php 
            }
            ?>

					<?php 
            /**
             * avada_header_inner_after
             */
            do_action('avada_header_inner_after');
            ?>
				</div>
			</div>
			<?php 
            /**
             * avada_after_header_wrapper hook
             */
            do_action('avada_after_header_wrapper');
            ?>
		<?php 
        }
    }
Beispiel #3
0
        ?>
</div>
				<?php 
    }
    ?>
			</div>
		<?php 
}
?>

		<?php 
if ('None' != Avada()->settings->get('header_v4_content')) {
    ?>
			<div class="side-header-content side-header-content-3">
				<?php 
    avada_header_content_3();
    ?>
			</div>
		<?php 
}
?>

		<?php 
/**
 * avada_header_inner_after
 */
do_action('avada_header_inner_after');
?>
	</div>
	<div class="side-header-background"></div>
	<div class="side-header-border"></div>