-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsidebar-shop.php
More file actions
40 lines (33 loc) · 844 Bytes
/
sidebar-shop.php
File metadata and controls
40 lines (33 loc) · 844 Bytes
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
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package ThemeGrill
* @subpackage Suffice
* @since Suffice 1.0.0
*/
/**
* Let's bail out when this sidebar is of no use
*
* 1. When there is no widget added in the sidebar area
* 2. When the layout is chosen as the full width layout
*/
if ( ( suffice_get_current_layout( ) === 'full-width' ) || ( ! is_active_sidebar( 'sidebar-shop' ) ) ) {
return;
}
?>
<aside id="secondary" class="widget-area" role="complementary">
<?php
/**
* suffice_before_sidebar hook
*/
do_action( 'suffice_before_sidebar' ); ?>
<?php dynamic_sidebar( 'sidebar-shop' ); ?>
<?php
/**
* suffice_after_sidebar hook
*/
do_action( 'suffice_after_sidebar' ); ?>
</aside><!-- #secondary -->