Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
lynchestinegroup.com
/
wp-content
/
themes
/
koncrete
/
template-parts
/
project
/
Editing: content-project-3.php
<?php /** * @author RadiusTheme * @since 1.0 * @version 1.0 */ namespace radiustheme\Koncrete; $prefix = Constants::$theme_prefix; $thumb_size = "{$prefix}-size3"; $col_class = Helper::has_sidebar() ? 'col-md-6' : 'col-xl-3 col-md-6 col-12'; ?> <section class="project-wrap-layout6"> <div class="container-fluid"> <div class="row gutters-4 justify-content-center"> <?php while ( have_posts() ) : the_post(); ?> <?php $thumb = Helper::generate_thumbnail_image( get_the_ID(), $thumb_size ); $terms_array = get_the_terms( get_the_ID(), $prefix . '_project_category' ); $term_string = ''; if ( is_array( $terms_array ) ) { foreach ($terms_array as $term) { $term_string .= $term->slug . ', '; } } $term_string = ucwords($term_string); $term_string = rtrim(trim($term_string), ','); ?> <div id="post-<?php the_ID(); ?>" <?php post_class( $col_class ); ?>> <div class="project-box-layout5"> <div class="item-img"> <img src="<?php echo esc_url($thumb) ?>" alt="<?php the_title_attribute(); ?>" class="img-fluid"> <div class="item-content"> <div class="item-content-inner"> <h3 class="title"> <a href="<?php the_permalink() ?>"><?php the_title(); ?></a> </h3> <div class="item-date"> <?php echo esc_html($term_string); ?> </div> <a href="<?php the_permalink() ?>" class="item-icon"> <i class="flaticon-right-arrow"></i> </a> </div> </div> </div> </div> </div> <?php endwhile; ?> </div> <div class="pagination-layout1"> <?php get_template_part( 'template-parts/pagination' ) ?> </div> </div> </section>
Save
Cancel