Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php // No poner esta linea
- // orbital/inc/extras.php line 102 copiar desde aquí
- if (!function_exists('orbital_check_sidebar_class')) :
- function orbital_check_sidebar_class($classes)
- {
- if (orbital_check_woocommerce()) {
- if (!is_active_sidebar('shop') && is_woocommerce()) {
- $classes[] = 'no-sidebar';
- } elseif (is_woocommerce()) {
- return $classes;
- }
- }
- if (
- !is_active_sidebar('pages') && is_page()
- || !is_active_sidebar('posts') && is_single()
- || !is_active_sidebar('archives') && is_archive()
- || !is_active_sidebar('page-home') && is_home()
- || !is_active_sidebar('pilar') && is_page_template('templates/page-pilar.php')
- || !orbital_get_option_page('sidebar')
- ) {
- $classes[] = 'no-sidebar';
- }
- return $classes;
- }
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement