Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
lynchestinegroup.com
/
wp-content
/
themes
/
koncrete
/
template-parts
/
project
/
Editing: content-project-1.php
<?php /** * @author RadiusTheme * @since 1.0 * @version 1.0 */ namespace radiustheme\Koncrete; use WP_Query; $prefix = Constants::$theme_prefix; $thumb_size = "{$prefix}-size2"; $col_class = Helper::has_sidebar() ? 'col-md-6' : 'col-md-6 col-lg-4'; ?> <section class="project-wrap-layout4"> <div class=""> <div class="isotope-wrap"> <div class="text-center"> <div class="isotope-classes-tab isotop-btn1"> <a class="current nav-item" data-filter="*"><?php esc_html_e( 'All Projects', 'koncrete' );?></a> <?php $terms = get_terms( $prefix . '_project_category' ); $count = count( $terms ); ?> <?php if ( $count ): ?> <?php foreach ( $terms as $term ): ?> <a class="nav-item" data-filter=".<?php echo esc_attr($term->slug); ?>"><?php echo esc_html( $term->name ); ?></a> <?php endforeach ?> <?php endif ?> </div> </div> <div class="row featuredContainer"> <?php while ( have_posts() ) : the_post(); $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 . ' '; } } $thumb = Helper::generate_thumbnail_image( get_the_ID(), $thumb_size ); $post_class = $col_class . " $term_string"; ?> <div id="post-<?php the_ID(); ?>" <?php post_class($post_class); ?>> <div class="project-box-layout2"> <?php if ($thumb): ?> <div class="item-img"> <img src="<?php echo esc_url($thumb); ?>" alt="<?php the_title_attribute(); ?>"> <div class="item-btn-wrap1"> <a href="<?php the_permalink(); ?>" class="item-btn"><i class="flaticon-link-interface-symbol-of-chain-in-diagonal"></i></a> </div> </div> <?php endif ?> <div class="item-content"> <h3 class="title text-row-1"> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </h3> <?php if ($project_type = get_post_meta( get_the_ID(), "{$prefix}_project_type", true )): ?> <span class="subtitle"><?php echo esc_html($project_type); ?></span> <?php endif ?> </div> </div> </div> <?php endwhile; ?> </div> </div> <div class="pagination-layout1"> <?php get_template_part( 'template-parts/pagination' ) ?> </div> </div> </section>
Save
Cancel