• 1.
    <?php
  • 2.
    /**
  • 3.
     * The Sidebar containing the main widget areas.
  • 4.
     *
  • 5.
     * @package SimpleMag
  • 6.
     * @since 	SimpleMag 1.4
  • 7.
    **/
  • 8.
    global $ti_option;
  • 9.
    ?>
  • 10.
     
  • 11.
        <aside class="sidebar<?php if ( $ti_option['site_sidebar_behaviour'] == 1 ) { echo ' sidebar-mobile'; } ?>" role="complementary">
  • 12.
    	<?php
  • 13.
    		if ( is_page() && !is_page_template( 'page-composer.php' )) { // Output sidebar for pages besides homepage
  • 14.
    			if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar( 'Pages ') ) {
  • 15.
    				dynamic_sidebar( 'Pages' );
  • 16.
    			}
  • 17.
    		} else { // Output sidebar for categories and posts
  • 18.
    			if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar( 'Magazine' ) ) {
  • 19.
    				dynamic_sidebar( 'Magazine' );
  • 20.
    			}
  • 21.
    		}
  • 22.
        ?>
  • 23.
        </aside><!-- .sidebar -->
<?php /** * The Sidebar containing the main widget areas. * * @package SimpleMag * @since SimpleMag 1.4 **/ global $ti_option; ?> <aside class="sidebar<?php if ( $ti_option['site_sidebar_behaviour'] == 1 ) { echo ' sidebar-mobile'; } ?>" role="complementary"> <?php if ( is_page() && !is_page_template( 'page-composer.php' )) { // Output sidebar for pages besides homepage if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar( 'Pages ') ) { dynamic_sidebar( 'Pages' ); } } else { // Output sidebar for categories and posts if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar( 'Magazine' ) ) { dynamic_sidebar( 'Magazine' ); } } ?> </aside><!-- .sidebar -->

Copy Code to Clipboard Raw

Sign-in or Create a Free Account.

Snippi uses Twitter or Facebook to register and create accounts. Registration will enable you to keep track of your snippets. We never spam your timeline or wall. Ever.

Sign-in with Facebook Sign-in with Twitter