-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsidebar.php
37 lines (32 loc) · 878 Bytes
/
sidebar.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
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package kadence
*/
namespace Kadence;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! kadence()->has_sidebar() ) {
return;
}
kadence()->print_styles( 'kadence-sidebar' );
?>
<aside id="secondary" role="complementary" class="primary-sidebar widget-area <?php echo esc_attr( kadence()->sidebar_id_class() ); ?> sidebar-link-style-<?php echo esc_attr( kadence()->option( 'sidebar_link_style' ) ); ?>">
<div class="sidebar-inner-wrap">
<?php
/**
* Hook for before sidebar.
*/
do_action( 'kadence_before_sidebar' );
kadence()->display_sidebar();
/**
* Hook for after sidebar.
*/
do_action( 'kadence_after_sidebar' );
?>
</div>
</aside><!-- #secondary -->