'; dynamic_sidebar('blogpost-sidebar'); echo ''; } } // Get the blogpage sidebar if (is_home()) { if ($autoservice_theme_options['blogpage_layout'] == 'right-sidebar' || $autoservice_theme_options['blogpage_layout'] == 'left-sidebar') { echo ''; } } // Get the archives sidebar if (is_archive() && !is_shop() && !is_product_category() || is_search() ) { if ($autoservice_theme_options['archive_layout'] == 'right-sidebar' || $autoservice_theme_options['archive_layout'] == 'left-sidebar') { echo ''; } } if (function_exists('is_woocommerce')) { // Get woocommerce archives sidebar if (is_shop() || is_product_category() || is_product_tag()) { if ($autoservice_theme_options['archives_woo_layout'] == 'right-sidebar' || $autoservice_theme_options['archives_woo_layout'] == 'left-sidebar') { echo ''; } } } if (function_exists('is_woocommerce')) { // Get woocommerce products sidebar if (is_product()) { if ($autoservice_theme_options['products_woo_layout'] == 'right-sidebar' || $autoservice_theme_options['products_woo_layout'] == 'left-sidebar') { echo ''; } } }}/*--------------------------------------------------------------# Add sidebar body class--------------------------------------------------------------*/// BlogPost Body-Class Functionfunction autoservice_sidebar_layout_blogpost() {global $autoservice_theme_options; if( $autoservice_theme_options['blog_layout'] == 'right-sidebar' ) { $classes = 'right-sidebar'; } elseif( $autoservice_theme_options['blog_layout'] == 'left-sidebar' ) { $classes = 'left-sidebar'; } else { $classes = 'no-sidebar'; }return $classes;}// BlogPage Body-Class Functionfunction autoservice_sidebar_layout_blogpage() {global $autoservice_theme_options; // BlogPost Body Class if( $autoservice_theme_options['blogpage_layout'] == 'right-sidebar' ) { $classes = 'right-sidebar'; } elseif( $autoservice_theme_options['blogpage_layout'] == 'left-sidebar' ) { $classes = 'left-sidebar'; } else { $classes = 'no-sidebar'; }return $classes;}// Archives Body-Class Functionfunction autoservice_sidebar_layout_archives() {global $autoservice_theme_options; // BlogPost Body Class if( $autoservice_theme_options['archive_layout'] == 'right-sidebar' ) { $classes = 'right-sidebar'; } elseif( $autoservice_theme_options['archive_layout'] == 'left-sidebar' ) { $classes = 'left-sidebar'; } else { $classes = 'no-sidebar'; }return $classes;}// WooCommerce Archives Body-Class Functionfunction autoservice_sidebar_layout_woo_archives() {global $autoservice_theme_options; // BlogPost Body Class if ($autoservice_theme_options['archives_woo_layout'] == 'right-sidebar') { $classes = 'right-sidebar'; } elseif ($autoservice_theme_options['archives_woo_layout'] == 'left-sidebar') { $classes = 'left-sidebar'; } else { $classes = 'no-sidebar'; }return $classes;}// WooCommerce Products Body-Class Functionfunction autoservice_sidebar_layout_woo_products() {global $autoservice_theme_options; // BlogPost Body Class if ($autoservice_theme_options['products_woo_layout'] == 'right-sidebar') { $classes = 'right-sidebar'; } elseif ($autoservice_theme_options['products_woo_layout'] == 'left-sidebar') { $classes = 'left-sidebar'; } else { $classes = 'no-sidebar'; }return $classes;}

Arcar