Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
lynchestinegroup.com
/
wp-content
/
themes
/
koncrete
/
template-parts
/
service
/
Editing: content-service-3.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-4'; ?> <section class="service-wrap-layout7"> <div class=""> <div class="row"> <?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); } $excerpt = get_the_excerpt(get_the_ID()); $content = Helper::generate_excerpt(get_post(), 11, '...'); ?> <div id="post-<?php the_ID(); ?>" <?php post_class( $col_class ); ?> > <div class="service-box-layout6"> <?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 ?> <div class="item-content"> <h3><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h3> <p><?php echo esc_html( $content ); ?></p> <a href="<?php the_permalink() ?>" class="item-btn"><?php esc_html_e( 'DETAILS', 'koncrete' );?></a> </div> </div> </div> <?php endwhile; ?> </div> <div class="pagination-layout1"> <?php get_template_part( 'template-parts/pagination' ) ?> </div> </div> </section>
Save
Cancel