Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
lynchestinegroup.com
/
wp-content
/
themes
/
koncrete
/
template-parts
/
project
/
Editing: content-project-2.php
<?php /** * @author RadiusTheme * @since 1.0 * @version 1.0 */ namespace radiustheme\Koncrete; $prefix = Constants::$theme_prefix; $thumb_size = "{$prefix}-size3"; ?> <div class="project-wrap-layout5"> <div class=""> <div class="row"> <?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-lg-6 col-12' ); ?>> <div class="project-box-layout4"> <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 mb-2"> <a href="<?php the_permalink() ?>"><?php the_title(); ?></a> </h3> <div class="subtitle-block"> <?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> </div>
Save
Cancel