| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * The sidebar containing the main widget area. |
|---|
| 4 | * |
|---|
| 5 | * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials |
|---|
| 6 | * |
|---|
| 7 | * @package Astra |
|---|
| 8 | * @since 1.0.0 |
|---|
| 9 | */ |
|---|
| 10 | |
|---|
| 11 | $sidebar = apply_filters( 'astra_get_sidebar', 'sidebar-1' ); |
|---|
| 12 | |
|---|
| 13 | ?> |
|---|
| 14 | |
|---|
| 15 | <div itemtype="http://schema.org/WPSideBar" itemscope="itemscope" id="secondary" <?php astra_secondary_class(); ?> role="complementary"> |
|---|
| 16 | |
|---|
| 17 | <div class="sidebar-main"> |
|---|
| 18 | |
|---|
| 19 | <?php astra_sidebars_before(); ?> |
|---|
| 20 | |
|---|
| 21 | <?php if ( is_active_sidebar( $sidebar ) ) : ?> |
|---|
| 22 | |
|---|
| 23 | <?php dynamic_sidebar( $sidebar ); ?> |
|---|
| 24 | |
|---|
| 25 | <?php endif; ?> |
|---|
| 26 | |
|---|
| 27 | <?php astra_sidebars_after(); ?> |
|---|
| 28 | |
|---|
| 29 | </div><!-- .sidebar-main --> |
|---|
| 30 | </div><!-- #secondary --> |
|---|
Note: See
TracBrowser for help on using the repository browser.