| Server IP : 213.132.209.36 / Your IP : 216.73.216.116 Web Server : Apache System : Linux nemesis.hostmywebsite.nl 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64 User : mondzorgheijs-christ_wldd0lu9v4a ( 10047) PHP Version : 8.0.30 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/mondzorgheijs-christenhusz.nl/httpdocs/wp-content/themes/christenhusz22/ |
Upload File : |
<?php
/**
* The template for the sidebar.
*
* @package Salient WordPress Theme
* @version 9.0.2
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( function_exists( 'dynamic_sidebar' ) ) {
global $post;
global $woocommerce;
$posttype = get_post_type( $post );
if ( ( ( is_archive() ) || ( is_author() ) || ( is_category() ) || ( is_home() ) || ( is_single() ) || ( is_tag() ) ) && ( $posttype === 'post' ) ) {
dynamic_sidebar( 'Blog Sidebar' );
} elseif ( $woocommerce && is_shop() || $woocommerce && is_product_category() || $woocommerce && is_product_tag() || $woocommerce && is_product() ) {
dynamic_sidebar( 'WooCommerce Sidebar' );
} else {
dynamic_sidebar( 'Page Sidebar' );
}
}