Sid Gifari From Gifari Industries - BD Cyber Security Team
Home
/
home
/
drleilu
/
www
/
wp-content
/
themes
/
luxia
/
template-parts
/
✏️
Editing: content-image.php
<?php /** * Displays Image Post Format Content * * @package image */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="bsingle__post mb-50"> <div class="news-text news-text2"> <div class="bsingle__post-thumb"> <div class="fancybox-img"> <?php $thumb_id = get_post_thumbnail_id(); $thumb_url_array = wp_get_attachment_image_src( $thumb_id, 'full', true ); $thumb_url = $thumb_url_array[0]; ?> <a href="<?php echo esc_url( $thumb_url ); ?>" class="fancybox"> <?php if (has_post_thumbnail()) : the_post_thumbnail( 'luxia-featured-large', array( 'alt' => get_the_title() ) ); else : endif; ?> </a> </div> </div> <div class="bsingle__content"> <div class="entry-excerpt"> <div class="row"> <div class="col-md-12"> <div class="meta-info"> <ul> <li> <i class="far fa-user"></i><?php esc_html_e( 'By', 'luxia' ); ?> <?php the_author(); ?> </li> <li><i class="far fa-comments"></i> <?php echo comments_number(__('No Comments', 'luxia'), __('1 Comment', 'luxia'), __('% Comments', 'luxia'));?> </li> </ul> </div> </div> </div> <?php if ( is_singular() ) : the_title( '<h2 class="single">', '</h2>' ); else : the_title( '<h2 class="single"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); endif; if ( 'post' === get_post_type() ) : ?> <?php endif; ?> <?php if (is_single() ) { the_content(); } elseif ( is_search() OR is_archive() ) {?> <p> <?php echo substr(get_the_excerpt(), 0 ,180); ?> <div class="row"> <div class="col-md-6"> <div class="blog__btn"> <a href="<?php the_permalink(); ?>" class="btn"><?php esc_html_e( 'Read More', 'luxia' ); ?></a> </div> </div> </div> <?php } else { if ($post) { ?> <p> <?php echo substr(get_the_excerpt(), 0 ,365); ?> </p> <div class="text-box"> <div class="row"> <div class="col-md-6"> <div class="blog__btn"> <a href="<?php the_permalink(); ?>" class="btn"><?php esc_html_e( 'Read More', 'luxia' ); ?></a> </div> </div> </div> </div> <?php } else { the_content(); } } ?> </div><!-- .entry-content --> </div> </div> </div> </article>
💾 Save
❌ Cancel