function zn_woocommerce_before_main_content() { $page_option = zget_option('show_oblique_heder', 'zn_woocommerce_options', false, 'yes'); $separator_top = zn_get_top_separator(array('show' => $page_option)); // SHOW THE HEADER $css_class = zget_option('woocommerce_header_ustyle', 'zn_woocommerce_options') ? zget_option('woocommerce_header_ustyle', 'zn_woocommerce_options') : ''; $title = zget_option('woocommerce_title_text', 'zn_woocommerce_options'); $description = zget_option('woocommerce_description_text', 'zn_woocommerce_options'); $background = zget_option('woocommerce_header_bkg_img', 'zn_woocommerce_options'); zn_get_header(array('title' => $title, 'class' => $css_class, 'description' => $description, 'background' => $background)); // Check to see if the page has a sidebar or not $main_class = zn_get_content_class('shop_sidebar'); $zn_config['sidebar'] = false; if (strpos($main_class, 'sidebar_right') !== false || strpos($main_class, 'sidebar_left') !== false) { $zn_config['sidebar'] = true; } $zn_config['size'] = $zn_config['sidebar'] ? 'col-sm-9' : 'col-sm-12'; $columns = zget_option('shop_columns', 'zn_woocommerce_options', false, '3'); $icon = zget_option('shop_icon', 'zn_woocommerce_options', false, array('unicode' => 'ue874', 'family' => 'eleganticons')); $icon = !empty($icon['family']) ? '<div class="sectionIcon" ' . zn_generate_icon($icon) . '></div>' : ''; ?> <section class="obliqueCut lightSection <?php echo $separator_top['class']; ?> <?php echo 'zn_shop_columns' . $columns; ?> paddingBottom200 shop_page"> <?php echo $separator_top['svg']; ?> <?php echo $icon; ?> <div class="container"> <div class="row"> <div class="<?php echo $main_class; ?> "> <?php }
get_header(); // Check to see if the page has a sidebar or not $main_class = zn_get_content_class('blog_sidebar'); if (strpos($main_class, 'sidebar_right') !== false || strpos($main_class, 'sidebar_left') !== false) { $zn_config['sidebar'] = true; } else { $zn_config['sidebar'] = false; } // GET BLOG STYLE $zn_config['size'] = $zn_config['sidebar'] ? 'col-sm-9' : 'col-sm-12'; $zn_config['columns'] = ''; // SUBHEADER $css_class = zget_option('header_ustyle', 'general_options') ? zget_option('header_ustyle', 'general_options') : ''; $title = zn_archive_title(); $description = false; zn_get_header(array('title' => $title, 'class' => $css_class, 'description' => $description)); // SHOW OBLIQUE UNDER SUBHEADER ? $separator_top = zn_get_top_separator(); ?> <!--Blog section--> <section id="search_page" class="obliqueCut lightSection <?php echo $separator_top['class']; ?> paddingBottom200"> <?php echo $separator_top['svg']; ?> <div class="sectionIcon zn_icon icon_search_alt"></div>
<?php get_header(); ?> <!--Sub header--> <?php zn_get_header(); ?> <!--END Sub header--> <?php $page_option = zget_option('show_oblique_heder', 'page_options', false, 'yes'); $separator_top = zn_get_top_separator(array('show' => $page_option)); $icon = get_post_meta(get_the_ID(), 'page_icon', true); if (isset($icon['family']) && !empty($icon['family'])) { $page_icon = '<div class="sectionIcon" ' . zn_generate_icon($icon) . '></div>'; } elseif (isset($icon['family']) && empty($icon['family'])) { $page_icon = ''; } else { $page_icon = '<div class="sectionIcon zn_icon icon_ribbon_alt"></div>'; } ?> <!--Page section--> <section class="obliqueCut lightSection <?php echo $separator_top['class']; ?> paddingBottom200"> <?php echo $separator_top['svg'];
get_header(); ?> <!--Sub header--> <?php global $zn_config; // Check if this is the normal archive or it is a taxonomy archive $archive_type = is_tax(); // Load isotope wp_enqueue_script('isotope'); $css_class = zget_option('port_header_ustyle', 'portfolio_options') ? zget_option('port_header_ustyle', 'portfolio_options') : ''; $title = $archive_type ? zn_archive_title() : zget_option('portfolio_title_text', 'portfolio_options'); $description = $archive_type ? false : zget_option('portfolio_description_text', 'portfolio_options'); $background = zget_option('port_header_bkg_img', 'portfolio_options'); zn_get_header(array('title' => $title, 'class' => $css_class, 'description' => $description, 'background' => $background)); ?> <!--END Sub header--> <?php $page_option = zget_option('show_oblique_heder', 'portfolio_options', false, 'yes'); $separator_top = zn_get_top_separator(array('show' => $page_option)); $portfolio_icon_opt = zget_option('portfolio_archive_icon', 'portfolio_options'); $portfolio_icon = !empty($portfolio_icon_opt['family']) ? '<div class="sectionIcon " ' . zn_generate_icon($portfolio_icon_opt) . '></div>' : ''; ?> <!--Blog section--> <section id="ZnPortfolio" class="obliqueCut <?php echo $separator_top['class']; ?> paddingBottom200">