Make WordPress Themes

source: lightning/13.8.0/sidebar.php

Last change on this file was 139911, checked in by themedropbox, 5 years ago

New version of Lightning - 13.3.1

File size: 630 bytes
Line 
1<?php
2if ( is_active_sidebar( 'common-side-top-widget-area' ) ) {
3        dynamic_sidebar( 'common-side-top-widget-area' );
4}
5
6if ( 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
19if ( 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.