| Server IP : 213.132.222.41 / Your IP : 216.73.216.254 Web Server : Apache System : Linux plesk4.nlhosting.net 6.1.0-0.deb11.50-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1~deb11u1 (2026-07-02) x86_64 User : thecovenant ( 10927) PHP Version : 8.3.32 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/thecovenant.nl/httpdocs/wp-content/themes/salient/ |
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' );
}
}