<?php
/**
 * Created by PhpStorm.
 * User: phuongth
 * Date: 3/19/15
 * Time: 5:31 PM
 */
$terms = get_terms(
    G5PLUS_PORTFOLIO_CATEGORY_TAXONOMY,
    array(
        'include', explode(",",$portfolio_taxonomy_ids),
        'hide_empty' => 0,
        'orderby' => 'ASC')
);

$col_class = '';
$col_class = 'wolverine-col-md-' . $column;
$data_section_id = uniqid();
?>
<div
    class="portfolio overflow-hidden <?php echo esc_attr($g5plus_animation . ' ' . $styles_animation . ' ' . $paging_style) ?>"
    id="portfolio-<?php echo esc_attr($data_section_id) ?>">
    <div class="portfolio-wrapper <?php echo sprintf('%s %s', $padding, $layout_type) ?>" data-columns="<?php echo esc_attr($column) ?>">
        <?php
        $index = 0;
        foreach ( $terms as $term ) {
            $index++;
            include(plugin_dir_path(__FILE__) . '/loop/one-page-item.php');
        }
        ?>
    </div>

</div>

<script type="text/javascript">
    (function ($) {
        "use strict";
        $(document).ready(function () {
            <?php if (g5framework_is_enable_hover_dir($overlay_style)) {?>
            $('.portfolio-item.hover-dir > div.entry-thumbnail').hoverdir();
            <?php } ?>
        })

    })(jQuery);
</script>


