-
Notifications
You must be signed in to change notification settings - Fork 0
/
header-11.php
86 lines (64 loc) · 1.92 KB
/
header-11.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
/**
* Pixel8es Header Main
*
* Main Header with logo left and Nav Right
*
* @author Theme Innwit
* @version 1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
$flyin_sidebar = composer_get_option_value( 'flyin_sidebar', 'off' );
$composer_prefix = composer_get_prefix();
if ( $composer_prefix != '' ) {
$composer_id = get_the_ID();
${'composer_'.$composer_prefix.'display_menu'} = composer_get_meta_value( $composer_id, '_amz_display_menu', 'default', 'display_menu', 'show' ); // id, meta_key, meta_default, themeoption_key, themeoption_default
}
?>
<header class="header">
<div class="container">
<div id="inner-header" class="wrap clearfix">
<?php echo composer_get_logo(); ?>
<?php if( ${'composer_'.$composer_prefix.'display_menu'} != 'hide' ) { ?>
<div class="pix-menu">
<div class="pix-menu-trigger">
<span class="mobile-menu"><?php esc_html_e( 'Menu', 'composer' ); ?></span>
</div>
</div>
<?php } ?>
<?php if( 'on' === $flyin_sidebar ){ ?>
<div class="pix-flyin-sidebar">
<div class="pix-flyin-trigger">
<span><?php esc_html_e( 'Flyin Sidebar', 'composer' ); ?></span>
</div>
</div>
<?php } ?>
<div class="widget-right">
<?php
$main_sorter = array(
"left" => array (
"placebo" => "placebo", //REQUIRED!
),
"right" => array (
"placebo" => "placebo", //REQUIRED!
)
);
$main_sorter_right = composer_get_option_array_value('main_sorter','right', $main_sorter['right'] );
foreach ( $main_sorter_right as $key => $value ) {
composer_display_header_elements( $key, 'default-header-lang', 'page-top-main' );
}
?>
</div>
<nav class="main-nav">
<?php composer_main_nav(); ?>
<div class="nav-dash">
<div class="nav-trigger">
<span class="mobile-menu">Menu</span>
</div>
</div>
</nav>
</div>
</div>
</header>