forked from themebeans/mark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.php
More file actions
58 lines (45 loc) · 1.93 KB
/
sidebar.php
File metadata and controls
58 lines (45 loc) · 1.93 KB
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
<?php
/**
* The sidebar containing the flyout widget area.
*
* @package Mark
*/
?>
<div id="nav-close" class="nav-close-overlay"></div>
<aside id="secondary" class="sidebar <?php if ( ! is_active_sidebar( 'sidebar-1' ) ) { echo 'no-widget-area'; }; ?>">
<div class="sidebar--section">
<div class="sidebar--section-inner">
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<nav id="site-navigation" class="main-navigation nav primary" aria-label="<?php esc_attr_e( 'Primary Menu', 'mark' ); ?>">
<?php
wp_nav_menu( array(
'theme_location' => 'primary',
'menu_class' => 'primary-menu',
'depth' => '1',
) );
?>
</nav><!-- .main-navigation -->
<?php endif;
/**
* We're onlying displaying the social navigation if the option is selected in the Customizer.
*/
if ( get_theme_mod( 'nav_social_icons' ) || is_customize_preview() ) :
/*
* If selected in the Customizer.
* The visibility classes area used to show/hide the elements in the Customizer live preview.
*/
$visibility = ( false == get_theme_mod( 'nav_social_icons' ) ) ? 'hidden' : ''; ?>
<div class="sidebar-social <?php echo esc_html($visibility); ?>">
<?php mark_social_navigation(); ?>
</div>
<?php endif; ?>
</div>
</div>
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<div class="sidebar--section widget-area">
<div class="sidebar--section-inner">
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</div>
</div>
<?php endif; ?>
</aside><!-- .sidebar -->