-
Notifications
You must be signed in to change notification settings - Fork 17
/
sidebar.php
41 lines (25 loc) · 950 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
38
39
40
41
<?php
/**
* Sidebar.
*
* @package Page Builder Framework
*/
defined( 'ABSPATH' ) || die( "Can't access directly" );
$sidebar = apply_filters( 'wpbf_do_sidebar', 'sidebar-1' );
?>
<div class="wpbf-medium-1-3 wpbf-sidebar-wrapper">
<?php do_action( 'wpbf_before_sidebar' ); ?>
<aside id="sidebar" class="wpbf-sidebar" itemscope="itemscope" itemtype="https://schema.org/WPSideBar">
<?php do_action( 'wpbf_sidebar_open' ); ?>
<?php if ( ! dynamic_sidebar( $sidebar ) ) { ?>
<?php if ( current_user_can( 'edit_theme_options' ) ) { ?>
<div class="widget no-widgets">
<?php _e( 'Your Sidebar Widgets will appear here.', 'page-builder-framework' ); ?><br>
<a href='<?php echo esc_url( admin_url( 'widgets.php' ) ); ?>'><?php _e( 'Add Widgets', 'page-builder-framework' ); ?></a>
</div>
<?php } ?>
<?php } ?>
<?php do_action( 'wpbf_sidebar_close' ); ?>
</aside>
<?php do_action( 'wpbf_after_sidebar' ); ?>
</div>