<?php
/**
 * The template part for displaying portfolio archive
 */

	global $wp_query;



	$settings = array(
		'query' => $wp_query,
		'portfolio-style' => financity_get_option('general', 'archive-portfolio-style', 'medium'),
		'thumbnail-size' => financity_get_option('general', 'archive-portfolio-thumbnail-size', 'full'),
		'portfolio-grid-text-align' => financity_get_option('general', 'archive-portfolio-grid-text-align', 'left'),
		'portfolio-grid-style' => financity_get_option('general', 'archive-portfolio-grid-style', 'normal'),
		'enable-portfolio-tag' => financity_get_option('general', 'archive-enable-portfolio-tag', 'enable'),
		'portfolio-medium-size' => financity_get_option('general', 'archive-portfolio-medium-size', 'small'),
		'portfolio-medium-style' => financity_get_option('general', 'archive-portfolio-medium-style', 'switch'),
		'hover' => financity_get_option('general', 'archive-portfolio-hover', 'icon'),
		'column-size' => financity_get_option('general', 'archive-portfolio-column-size', '20'),
		'excerpt' => financity_get_option('general', 'archive-portfolio-excerpt', 'specify-number'),
		'excerpt-number' => financity_get_option('general', 'archive-portfolio-excerpt-number', '55'),

		'paged' => (get_query_var('paged'))? get_query_var('paged') : 1,
		'pagination' => 'page',
		'pagination-style' => financity_get_option('general', 'pagination-style', 'round'),
		'pagination-align' => financity_get_option('general', 'pagination-align', 'right'),

	);

	echo '<div class="financity-content-area" >';
	if( is_tax('portfolio_category') ){
		$tax_description = term_description(NULL, 'portfolio_category');
		if( !empty($tax_description) ){
			echo '<div class="financity-archive-taxonomy-description financity-item-pdlr" >' . $tax_description . '</div>';
		}
	}else if( is_tax('portfolio_tag') ){
		$tax_description = term_description(NULL, 'portfolio_tag');
		if( !empty($tax_description) ){
			echo '<div class="financity-archive-taxonomy-description financity-item-pdlr" >' . $tax_description . '</div>';
		}
	}

	echo gdlr_core_pb_element_portfolio::get_content($settings);
	echo '</div>'; // financity-content-area