-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar-right.php
executable file
·36 lines (31 loc) · 1.26 KB
/
sidebar-right.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
<?php
/**
* The Sidebar that is normally displayed on the right side (Secondary).
*
* @package Septera
*/
?>
<?php if ( is_active_sidebar( 'sidebar-1' ) || current_user_can( 'edit_theme_options' ) ): ?>
<aside id="secondary" class="widget-area sidey" role="complementary" <?php cryout_schema_microdata( 'sidebar' );?>>
<?php cryout_before_secondary_widgets_hook(); ?>
<?php if ( is_active_sidebar( 'sidebar-1' ) ) :
dynamic_sidebar( 'sidebar-1' );
else:
if ( current_user_can( 'edit_theme_options' ) ) { ?>
<section class="widget-container widget-placeholder">
<h3 class="widget-title"><?php _e( 'Right Sidebar', 'septera' ); ?></h3>
<p>
<?php
printf( __( 'You currently have no widgets set in this sidebar. You can add widgets via the <a href="%s">Dashboard</a>.', 'septera' ), esc_url( admin_url() . "widgets.php" ) ); echo "<br/>";
printf( __( 'To hide this sidebar, switch to a different Layout via the <a href="%s">Theme Customizations</a>.', 'septera' ), esc_url( admin_url() . "customize.php" ) );
?>
</p>
</section>
<?php }
if ( is_active_sidebar( 'sidebar-1' ) ) {
dynamic_sidebar( 'sidebar-1' );
} ?>
<?php endif; ?>
<?php cryout_after_primary_widgets_hook(); ?>
</aside>
<?php endif;