Make WordPress Themes

source: anima/1.1.2/sidebar-right.php

Last change on this file was 91053, checked in by themedropbox, 8 years ago

New version of Anima - 1.1.2

File size: 1.1 KB
Line 
1<?php
2/**
3 * The Sidebar that is normally displayed on the right side (Secondary).
4 *
5 * @package Anima
6 */
7?>
8
9<aside id="secondary" class="widget-area sidey" role="complementary" <?php cryout_schema_microdata( 'sidebar' );?>>
10        <?php cryout_before_secondary_widgets_hook(); ?>
11
12        <?php if ( is_active_sidebar( 'sidebar-1' ) ) :
13                dynamic_sidebar( 'sidebar-1' );
14                          else:
15                          if ( current_user_can( 'edit_theme_options' ) ) { ?>
16                                <section class="widget-container widget-placeholder">
17                                        <h3 class="widget-title"><?php _e( 'Right Sidebar', 'anima' ); ?></h3>
18                                        <p>
19                                                <?php
20                                                                printf( __( 'You currently have no widgets set in this sidebar. You can add widgets via the <a href="%s">Dashboard</a>.', 'anima' ), esc_url( admin_url() . "widgets.php" ) ); echo "<br/>";
21                                                                printf( __( 'To hide this sidebar, switch to a different Layout via the <a href="%s">Theme Customizations</a>.', 'anima' ), esc_url( admin_url() . "customize.php" ) );
22                                                ?>
23                                        </p>
24                                </section>
25                        <?php }
26                        if ( is_active_sidebar( 'sidebar-1' ) ) {
27                                dynamic_sidebar( 'sidebar-1' );
28                        } ?>
29
30        <?php endif; ?>
31
32        <?php cryout_after_primary_widgets_hook(); ?>
33</aside>
Note: See TracBrowser for help on using the repository browser.