Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.16.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : sidebar.php
<?php
/**
 * The sidebar containing the sidebar right (Sidebar 1).
 *
 */
global $liviza_theme_options;
if( is_page() ){
	$sidebar_right      = 'sidebar-right-page';
	$sidebar_right_page = get_post_meta($post->ID,'_themestek_page_options_rightsidebar',true);
	if( trim($sidebar_right_page)!='' ){ $sidebar_right = trim($sidebar_right_page); }
	// The Events Calendar
	if( function_exists('tribe_is_upcoming') ){
		if (get_post_type()=='tribe_events'){
			$events_sidebar = !empty($liviza_theme_options['sidebar_events']) ? esc_html($liviza_theme_options['sidebar_events']) : 'no' ; // Global settings
			if( $events_sidebar=='right' ){
				$sidebar_right = 'sidebar-events';
			}
		}
	}
} elseif( is_home() || is_single() ){
	$pageid   = get_option('page_for_posts');
	$postType = 'page';
	if( is_single() ){
		global $post;
		$pageid   = $post->ID;
		$postType = 'post';
	}
	$sidebar_right      = 'sidebar-right-blog';
	$sidebar_right_blog = get_post_meta( $pageid ,'_themestek_'.$postType.'_options_rightsidebar',true);
	if( trim($sidebar_right_blog)!='' ){ $sidebar_right = trim($sidebar_right_blog); }
	// The Events Calendar
	if( function_exists('tribe_is_upcoming') ){
		if ( get_post_type() == 'tribe_events' || tribe_is_upcoming() || tribe_is_month() || tribe_is_by_date() || tribe_is_day() || is_single('tribe_events')){
			$events_sidebar = ( isset($liviza_theme_options['sidebar_events']) && trim($liviza_theme_options['sidebar_events'])!='' ) ? esc_html($liviza_theme_options['sidebar_events']) : 'no' ; // Global settings
			if( $events_sidebar=='right' ){
				$sidebar_right = 'sidebar-events';
			}
		}
	}
} elseif( is_search() ) {
	$sidebar_right = 'sidebar-right-search';
} elseif( function_exists('is_bbpress') && is_bbpress() ) {
	$bbpressSidebar = isset($liviza_theme_options['sidebar_bbpress']) ? esc_html($liviza_theme_options['sidebar_bbpress']) : 'right' ;
	if( $bbpressSidebar=='right' ){
		$sidebar_right = 'sidebar-bbpress';
	}
} elseif( (function_exists('tribe_is_upcoming')) && (get_post_type() == 'tribe_events' || tribe_is_upcoming() || tribe_is_month() || tribe_is_by_date() || tribe_is_day() || is_single('tribe_events'))){
	$sidebar_right = 'sidebar-events';
} else {
	$sidebar_right = esc_html($liviza_theme_options['sidebar_post']); // Global settings
	$sidebar_right = 'sidebar-right-blog';
	$sidebar_right_post = get_post_meta($post->ID,'_themestek_post_options_rightsidebar',true);
	if( trim($sidebar_right_post)!='' ){ $sidebar_right = trim($sidebar2_post); }
}
?>
<aside id="sidebar-right" class="widget-area col-md-3 col-lg-3 col-xs-12 sidebar" role="complementary">
	<?php dynamic_sidebar( $sidebar_right ); ?>
</aside><!-- #sidebar-right -->
© 2025 XylotrechusZ