<?php
/*
* This template controlls the portfolio overview pages:
* 4,3 2 and 1 Column Portfolios are generated by this file in conjunction with includes/loop-portfolio.php
*
* This file is called by the includes/helper_template.php file if the users applied a portfolio page to this page
* All logic checks are located in includes/helper_template.php function avia_get_template()
*/
global $avia_config;
/*
* get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
*/
get_header();
if(empty($avia_config['portfolio_columns'])) $avia_config['portfolio_columns'] = 4;
$description = is_tag() ? tag_description() : category_description();
avia_template_set_page_layout(false, $avia_config['portfolio_layout']);
?>
<!-- ####### MAIN CONTAINER ####### -->
<div class='container_wrap <?php echo $avia_config['layout']; ?>' id='main'>
<div class='container container-portfolio-size-<?php echo $avia_config['portfolio_columns']; ?>'>
<?php avia_title(); ?>
<div class='content <?php echo $avia_config['content_class']; ?> units template-portfolio-overview content portfolio-size-<?php echo $avia_config['portfolio_columns']; ?>'>
<?php
echo $description;
/* Run the loop to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-portfolio.php and that will be used instead.
*/
get_template_part( 'includes/loop', 'portfolio' );
?>
<!--end content-->
</div>
<?php
wp_reset_query();
if(strpos($avia_config['layout'], 'sidebar') !== false)
{
//get the sidebar
$avia_config['currently_viewing'] = 'page';
get_sidebar();
}
?>
</div><!--end container-->
</div>
<!-- ####### END MAIN CONTAINER ####### -->
<?php get_footer(); ?>