HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/ys.sopklm.shop/wp-content/themes/botiga/sidebar.php
<?php

/**
 * The sidebar containing the main widget area
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package Botiga
 */

$botiga_sidebar_id = '';

if (is_home() && !is_front_page()) {
	$botiga_sidebar_id = get_theme_mod('blog_archive_sidebar', 'sidebar-1');
} elseif (is_singular()) {
	$botiga_sidebar_mod  = get_theme_mod('blog_single_sidebar', 'sidebar-1');
	$botiga_sidebar_meta = get_post_meta(get_the_ID(), '_botiga_sidebar', true);
	$botiga_sidebar_id   = (!empty($botiga_sidebar_meta)) ? $botiga_sidebar_meta : $botiga_sidebar_mod;
}

if (empty($botiga_sidebar_id)) {
	$botiga_sidebar_id = 'sidebar-1';
}

$botiga_custom_sidebars = json_decode(get_theme_mod('custom_sidebars', '[]'), true);

if (!empty($botiga_custom_sidebars)) {
	foreach ($botiga_custom_sidebars as $botiga_custom_sidebar) {
		if (!empty($botiga_custom_sidebar['conditions']) && botiga_get_display_conditions($botiga_custom_sidebar['conditions'], false)) {
			$botiga_sidebar_id = sanitize_key($botiga_custom_sidebar['name']);
		}
	}
}

if (!is_active_sidebar($botiga_sidebar_id)) {
	return;
}

?>

<aside id="secondary" class="widget-area" <?php botiga_schema( 'sidebar' ); ?>>
	<?php 
	/**
	 * Hook 'botiga_before_sidebar'
	 *
	 * @since 1.0.0
	 */
	do_action('botiga_before_sidebar'); ?>
	<?php dynamic_sidebar($botiga_sidebar_id); ?>
	<?php 
	/**
	 * Hook 'botiga_after_sidebar'
	 *
	 * @since 1.0.0
	 */
	do_action('botiga_after_sidebar'); ?>
</aside><!-- #secondary -->