Ejemplo n.º 1
0
<?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'];
?>
 function get_the_archive_title()
 {
     return zn_archive_title();
 }
<?php

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'];
?>