Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
lynchestinegroup.com
/
wp-content
/
themes
/
koncrete
/
template-parts
/
testimony
/
Editing: content-testimony-1.php
<?php /** * @author RadiusTheme * @since 1.0 * @version 1.0 */ namespace radiustheme\Koncrete; $prefix = Constants::$theme_prefix; $thumb_size = "{$prefix}-size4"; $post_class = Helper::has_sidebar() ? 'col-md-6 col-lg-4' : 'col-md-6 col-lg-4 col-xl-3'; ?> <section class="all-testimonial-wrap"> <div class="container"> <div class="row"> <div class="col-12"> <div class="all-testimonial-box"> <?php $testimony_list_title = RDTheme::$options['testimony_list_title'] ; $testimony_list_subtitle = RDTheme::$options['testimony_list_subtitle'] ; $has_star = RDTheme::$options['testimony_has_star'] == 'on' ? true : false ; ?> <?php if ( $testimony_list_title || $testimony_list_subtitle ): ?> <div class="section-header"> <?php if ($testimony_list_title): ?> <h3 class="title title-bar-xl1"><?php echo esc_html( $testimony_list_title ); ?></h3> <?php endif ?> <?php if ( $testimony_list_subtitle ): ?> <p><?php echo esc_html( $testimony_list_subtitle ); ?></p> <?php endif ?> </div> <?php endif ?> <?php while ( have_posts() ) : the_post(); ?> <?php $post = get_post(); $img = Helper::generate_thumbnail_image( $post, $thumb_size ); $designation = get_post_meta( $post->ID, "{$prefix}_tes_designation", true ); $rating = get_post_meta( $post->ID, "{$prefix}_rating", true ); $nonrating = 5 - (int)$rating ; ?> <div class="all-testimonial-box-list"> <div class="media media-none-mb"> <div class="item-img"> <img src="<?php echo esc_html( $img ); ?>" alt="<?php echo esc_attr( $post->post_title ); ?>" class="media-img-auto"> <h3 class="title"><?php echo esc_html( $post->post_title ); ?></h3> <div class="subtitle"><?php echo esc_html( $designation ); ?></div> </div> <div class="media-body"> <div class="item-content"> <p> <?php echo wp_kses_post( $post->post_content ); ?> <span></span> </p> <div class="rating-block"> <?php if ($has_star): ?> <ul class="item-rating"> <?php foreach (range(1, $rating) as $key): ?> <li class="has-rating"><i class="fa fa-star"></i></li> <?php endforeach; ?> <?php for ($i=1; $i <= $nonrating; $i++): ?> <li class="nonrating"><i class="fa fa-star"></i></li> <?php endfor; ?> </ul> <?php endif ?> </div> </div> </div> </div> </div> <?php endwhile ?> </div> </div> <div class="col-12"> <div class="pagination-layout1"> <?php get_template_part( 'template-parts/pagination' ) ?> </div> </div> </div> </div> </section>
Save
Cancel