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