function et_page_config() { $layout = array('sidebar' => 'left', 'sidebar-size' => 3, 'content-size' => 9, 'heading' => true, 'slider' => false, 'sidebar-name' => '', 'breadcrumb' => 'default', 'breadcrumb_image' => '', 'widgetarea' => ''); $page_id = et_get_page_id(); // Get settings from Theme Options $layout['sidebar'] = etheme_get_option('blog_sidebar'); $layout['breadcrumb'] = etheme_get_option('breadcrumb_type'); if (class_exists('WooCommerce') && (is_shop() || is_product_category() || is_product_tag() || is_tax('brand'))) { $layout['sidebar'] = etheme_get_option('grid_sidebar'); if (etheme_get_option('prodcuts_per_row') == 6 || etheme_get_option('shop_full_width')) { $layout['sidebar'] = 'without'; } } // Get specific custom options from meta boxes for this $page_id $page_breadcrumb = etheme_get_custom_field('breadcrumb_type', $page_id); $page_breadcrumb_image = etheme_get_custom_field('custom_breadcrumbs_image', $page_id); $page_sidebar = etheme_get_custom_field('sidebar_state', $page_id); $sidebar_width = etheme_get_custom_field('sidebar_width', $page_id); $widgetarea = etheme_get_custom_field('widget_area', $page_id); $slider = etheme_get_custom_field('page_slider', $page_id); $heading = etheme_get_custom_field('page_heading', $page_id); if (!empty($page_sidebar) && $page_sidebar != 'default') { $layout['sidebar'] = $page_sidebar; } if (!empty($sidebar_width) && $sidebar_width != 'default') { $layout['sidebar-size'] = $sidebar_width; } if (!empty($page_breadcrumb) && $page_breadcrumb != 'default') { $layout['breadcrumb'] = $page_breadcrumb; } if (!empty($page_breadcrumb_image) && $page_breadcrumb_image != 'x') { $layout['breadcrumb_image'] = $page_breadcrumb_image; } if (!empty($widgetarea) && $widgetarea != 'default') { $layout['widgetarea'] = $widgetarea; } if (!empty($slider) && $slider != 'no_slider') { $layout['slider'] = $slider; } if (!empty($heading) && $heading != 'enable') { $layout['heading'] = $heading; } // Thats all about custom options for the particular page if (class_exists('WooCommerce') && is_singular("product")) { $layout['sidebar'] = etheme_get_option('single_sidebar'); } if (!$layout['sidebar'] || $layout['sidebar'] == 'without' || $layout['sidebar'] == 'no_sidebar') { $layout['sidebar-size'] = 0; } if ($layout['sidebar-size'] == 0) { $layout['sidebar'] == 'without'; } $layout['content-size'] = 12 - $layout['sidebar-size']; $layout['sidebar-class'] = 'col-md-' . $layout['sidebar-size']; $layout['content-class'] = 'col-md-' . $layout['content-size']; if ($layout['sidebar'] == 'left') { $layout['sidebar-class'] .= ' col-md-pull-' . $layout['content-size']; $layout['content-class'] .= ' col-md-push-' . $layout['sidebar-size']; } return apply_filters('et_page_config', $layout); }
<?php $ht = $class = ''; $ht = apply_filters('custom_header_filter', $ht); $page_id = et_get_page_id(); $hstrucutre = etheme_get_header_structure($ht); $page_slider = etheme_get_custom_field('page_slider', $page_id); if (etheme_get_option('header_transparent')) { $class .= ' header-transparent'; } ?> <div class="header-wrapper header-type-<?php echo $ht . ' ' . $class; ?> "> <?php if (etheme_get_option('header_type') == 'vertical' || etheme_get_option('header_type') == 'vertical2') { ?> <div class="header-content nano-content"> <?php } ?> <?php get_template_part('headers/parts/top-bar', $hstrucutre); ?> <header class="header main-header"> <div class="header-top"> <div class="container">
<?php global $etheme_responsive; $fd = etheme_get_option('footer_demo'); $fbg = etheme_get_option('footer_bg'); $fcolor = etheme_get_option('footer_text_color'); $ft = ''; $ft = apply_filters('custom_footer_filter', $ft); $custom_footer = etheme_get_custom_field('custom_footer', et_get_page_id()); ?> <?php if ($custom_footer != 'without') { ?> <?php if ((is_active_sidebar('footer1') || $fd) && empty($custom_footer)) { ?> <div class="footer-top footer-top-<?php echo esc_attr($ft); ?> "> <div class="container"> <?php if (!is_active_sidebar('footer1')) { ?> <?php if ($fd) { etheme_footer_demo('footer1'); } ?> <?php