| Line | |
|---|
| 1 | <?php |
|---|
| 2 | if ( is_active_sidebar( 'common-side-top-widget-area' ) ) { |
|---|
| 3 | dynamic_sidebar( 'common-side-top-widget-area' ); |
|---|
| 4 | } |
|---|
| 5 | |
|---|
| 6 | if ( is_front_page() ) { |
|---|
| 7 | if ( is_active_sidebar( 'front-side-top-widget-area' ) ) { |
|---|
| 8 | dynamic_sidebar( 'front-side-top-widget-area' ); |
|---|
| 9 | } |
|---|
| 10 | } else { |
|---|
| 11 | // Display post type widget area |
|---|
| 12 | $postType = lightning_get_post_type(); |
|---|
| 13 | $widdget_area_name = $postType['slug'] . '-side-widget-area'; |
|---|
| 14 | if ( is_active_sidebar( $widdget_area_name ) ) { |
|---|
| 15 | dynamic_sidebar( $widdget_area_name ); |
|---|
| 16 | } |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | if ( is_active_sidebar( 'common-side-bottom-widget-area' ) ) { |
|---|
| 20 | dynamic_sidebar( 'common-side-bottom-widget-area' ); |
|---|
| 21 | } |
|---|
Note: See
TracBrowser for help on using the repository browser.