Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
lynchestinegroup.com
/
wp-content
/
themes
/
koncrete
/
template-parts
/
service
/
Editing: content-service-2.php
<?php /** * @author RadiusTheme * @since 1.0 * @version 1.0 */ namespace radiustheme\Koncrete; $prefix = Constants::$theme_prefix; $thumb_size = "{$prefix}-size4"; $col_class = Helper::has_sidebar() ? 'col-md-6' : 'col-lg-3 col-sm-6 col-12'; ?> <section class="service-wrap-layout3"> <div class=""> <div class="row gutters-5"> <?php while ( have_posts() ) : the_post(); ?> <?php $thumb = Helper::generate_thumbnail_image( get_the_ID(), $thumb_size ); $service_icon = get_post_meta( get_the_ID(), "{$prefix}_service_icon", true ); $service_image = get_post_meta( get_the_ID(), "{$prefix}_service_image", true ); $service_image_hover_state = get_post_meta( get_the_ID(), "{$prefix}_service_image_hover", true ); $service_image_hover_state = $service_image_hover_state ? $service_image_hover_state : $service_image; if ($service_image) { $thumb = Helper::generate_thumbnail_image_by_attachment_id($service_image, $thumb_size); $thumb_hover = Helper::generate_thumbnail_image_by_attachment_id($service_image_hover_state, $thumb_size); } ?> <div id="post-<?php the_ID(); ?>" <?php post_class( $col_class ); ?> > <div class="service-box-layout4"> <div class="item-content"> <?php if ($service_image): ?> <div class="item-img" class="img-responsive"> <div class="service-icon-image"> <img class="img-responsive service-image-normal-state" src="<?php echo esc_url( $thumb ); ?>"> <img class="img-responsive service-image-hover-state" src="<?php echo esc_url( $thumb_hover ); ?>"> </div> </div> <?php else: ?> <div class="item-icon"> <i class="<?php echo esc_attr( $service_icon ); ?>"></i> </div> <?php endif ?> <h4><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4> </div> </div> </div> <?php endwhile; ?> </div> <div class="pagination-layout1"> <?php get_template_part( 'template-parts/pagination' ) ?> </div> </div> </section>
Save
Cancel