Make WordPress Themes

source: lightning/6.6.3/sidebar.php

Last change on this file was 104480, checked in by themedropbox, 7 years ago

New version of Lightning - 6.6.3

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