PATH:
home
/
letacommog
/
metras
/
wp-content
/
themes
/
betheme
<?php /** * The Page Sidebar containing the widget area. * * @package Betheme * @author Muffin group * @link http://muffingroup.com */ $sidebars = mfn_opts_get( 'sidebars' ); $sidebar = $sidebar2 = ''; // sidebar 1 -------------------------------------------------------- if( get_post_type() == 'page' && mfn_opts_get( 'single-page-sidebar' ) ){ // Theme Options | Single - Page $sidebar = trim( mfn_opts_get( 'single-page-sidebar' ) ); } elseif( get_post_type() == 'post' && is_single() && mfn_opts_get( 'single-sidebar' ) ){ // Theme Options | Single - Post $sidebar = trim( mfn_opts_get( 'single-sidebar' ) ); } elseif( get_post_type() == 'portfolio' && is_single() && mfn_opts_get( 'single-portfolio-sidebar' ) ){ // Theme Options | Single - Portfolio $sidebar = trim( mfn_opts_get( 'single-portfolio-sidebar' ) ); } elseif( is_array( $sidebars ) ) { // Post Meta $sidebar = get_post_meta( mfn_ID(), 'mfn-post-sidebar', true ); if( $sidebar || $sidebar === '0' ){ $sidebar = $sidebars[ $sidebar ]; } } if( $_GET && key_exists( 'mfn-s', $_GET ) ){ $sidebar = esc_html( $_GET[ 'mfn-s' ] ); // demo } // sidebar 2 -------------------------------------------------------- if( get_post_type() == 'page' && mfn_opts_get( 'single-page-sidebar2' ) ){ // Theme Options | Single - Page $sidebar2 = trim( mfn_opts_get( 'single-page-sidebar2' ) ); } elseif( get_post_type() == 'post' && is_single() && mfn_opts_get( 'single-sidebar2' ) ){ // Theme Options | Single - Post $sidebar2 = trim( mfn_opts_get( 'single-sidebar2' ) ); } elseif( get_post_type() == 'portfolio' && is_single() && mfn_opts_get( 'single-portfolio-sidebar2' ) ){ // Theme Options | Single - Portfolio $sidebar2 = trim( mfn_opts_get( 'single-portfolio-sidebar2' ) ); } elseif( is_array( $sidebars ) ) { // Post Meta $sidebar2 = get_post_meta( mfn_ID(), 'mfn-post-sidebar2', true ); if( $sidebar2 || $sidebar2 === '0' ){ $sidebar2 = $sidebars[ $sidebar2 ]; } } if( $_GET && key_exists( 'mfn-s2', $_GET ) ){ $sidebar2 = esc_html( $_GET[ 'mfn-s2' ] ); // demo } // echo ------------------------------------------------------------- if( mfn_sidebar_classes() ){ echo '<div class="sidebar sidebar-1 four columns">'; echo '<div class="widget-area clearfix '. mfn_opts_get( 'sidebar-lines' ) .'">'; if( function_exists( 'is_buddypress' ) && is_buddypress() && is_active_sidebar( 'buddy' ) ){ dynamic_sidebar( 'buddy' ); } elseif( ! dynamic_sidebar( $sidebar ) ){ mfn_nosidebar(); } echo '</div>'; echo '</div>'; // both sidebars if( mfn_sidebar_classes( true ) ){ echo '<div class="sidebar sidebar-2 four columns">'; echo '<div class="widget-area clearfix '. mfn_opts_get( 'sidebar-lines' ) .'">'; if ( ! dynamic_sidebar( $sidebar2 ) ) mfn_nosidebar(); echo '</div>'; echo '</div>'; } }
[+]
..
[+]
plugins
[-] screenshot.png
[edit]
[+]
js
[-] comments.php
[edit]
[+]
muffin-options
[+]
includes
[-] search.php
[edit]
[-] sidebar-blog.php
[edit]
[-] wpml-config.xml
[edit]
[+]
demos
[+]
vc_templates
[-] under-construction.php
[edit]
[-] style-one.php
[edit]
[-] 404.php
[edit]
[+]
images
[-] single.php
[edit]
[-] sidebar-taxonomy.php
[edit]
[-] style-static.css
[edit]
[-] searchform.php
[edit]
[-] header.php
[edit]
[-] rtl.css
[edit]
[-] page.php
[edit]
[+]
css
[-] bbpress.php
[edit]
[-] readme.txt
[edit]
[-] functions.php
[edit]
[+]
bbpress
[-] footer.php
[edit]
[-] single-portfolio.php
[edit]
[-] style-responsive.php
[edit]
[-] template-sitemap.php
[edit]
[-] style-colors.php
[edit]
[+]
fonts
[-] template-portfolio.php
[edit]
[+]
assets
[+]
languages
[+]
tribe-events
[-] template-archives.php
[edit]
[+]
functions
[-] index.php
[edit]
[-] style.css
[edit]
[-] changelog.html
[edit]
[+]
woocommerce
[-] template-blank.php
[edit]
[-] taxonomy-portfolio-types.php
[edit]
[-] style.php
[edit]
[-] header-shop.php
[edit]
[-] single-download.php
[edit]
[-] single-attachment.php
[edit]
[-] sidebar.php
[edit]