| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- get_header();
- taskereasy_blog_banner();
- $portfoliotype = taskereasy_get_config('portfolio_type');
- ?>
- <section id="portfolio" class="section-padding">
- <div class="container">
- <div class="portfolioFilter">
- <ul>
- <li><a href="#" data-filter="*" class="current"><?php echo esc_html__('All', 'taskereasy') ?></a></li>
- <?php
- $terms = get_terms( 'portfoliocategories', 'orderby=asc&hide_empty=0' );
- foreach($terms as $term){ ?>
- <li><a href="#" data-filter=".<?php echo esc_js($term->name); ?>"><?php echo esc_html($term->name); ?></a></li>
- <?php } ?>
- </ul>
- </div>
- <?php if($portfoliotype == 'col-three') { ?>
- </div> <!---container close on col-three -->
- <?php } ?>
- <div class="portfolioContainer <?php echo esc_attr($portfoliotype); ?>">
- <?php if(have_posts()) {
- $count = 0;
- while(have_posts()){
- the_post();
- $termname = array();
- $terms = get_the_terms( '', 'portfoliocategories' );
- if ( !empty( $terms ) ) {
- foreach ($terms as $term) {
- $termname[] = $term->name;
- }
- } ?>
- <div class="portfolio-grid <?php echo implode(' ', $termname); ?>">
- <a href="<?php echo get_the_permalink(); ?>" class="link">
- <?php if(has_post_thumbnail()){ ?>
- <?php the_post_thumbnail(); ?>
- <?php } ?>
- <span class="img-mask lt"></span>
- <span class="img-mask rt"></span>
- <span class="img-mask lb"></span>
- <span class="img-mask rb"></span>
- <span class="title"><?php the_title(); ?></span>
- <span class="description"><?php echo taskereasy_custom_excerpt_length(20); ?></span>
- <span class="more"><?php echo esc_html__('More', 'taskereasy'); ?> <i class="fa fa-angle-right"></i></span>
- </a>
- </div>
- <?php $count++;
- }
- } ?>
- </div>
- <?php if($portfoliotype != 'col-three') { ?>
- </div> <!---container close on col-three -->
- <?php } ?>
- </section>
- <?php
- get_footer();
- ?>
|