📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 13:57:35
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
template-parts
/
content
✏️
Editing: content-single.php
<?php /** * Template part for displaying posts in loop * * @package Case-Themes */ $post_tag = berich()->get_theme_opt( 'post_tag', true ); $post_navigation = berich()->get_theme_opt( 'post_navigation', false ); $post_social_share = berich()->get_theme_opt( 'post_social_share', false ); $tags_list = get_the_tag_list(); $sg_post_title = berich()->get_theme_opt('sg_post_title', 'default'); $sg_featured_img_size = berich()->get_theme_opt('sg_featured_img_size', '1200x672'); $post_author_info = berich()->get_theme_opt( 'post_author_info', false ); $post_date = berich()->get_theme_opt( 'post_date', true ); $post_category = berich()->get_theme_opt( 'post_category', true ); ?> <article id="pxl-post-<?php the_ID(); ?>" <?php post_class('pxl---post'); ?>> <?php if(is_singular('post') && $sg_post_title == 'custom_text') { ?> <h2 class="pxl-item--title"> <?php the_title(); ?> </h2> <?php } ?> <?php if (has_post_thumbnail()) { $img = pxl_get_image_by_size( array( 'attach_id' => get_post_thumbnail_id($post->ID), 'thumb_size' => $sg_featured_img_size, ) ); $thumbnail = $img['thumbnail']; $thumbnail_url = $img['url']; ?> <div class="pxl-item--image bg-image" style="background-image: url(<?php echo esc_url($thumbnail_url); ?>);"> <div class="pxl-item--holder"> <?php if($post_date) : ?> <div class="pxl-item--date"> <div class="pxl-date--inner"> <span><?php echo get_the_date('d'); ?></span> <span><?php echo get_the_date('M, Y'); ?></span> </div> </div> <?php endif; ?> <?php if($post_category) : ?> <div class="pxl-item--category"> <?php the_terms( get_the_ID(), 'category', '', ', ' ); ?> </div> <?php endif; ?> <h2 class="pxl-item--title"><?php the_title(); ?></h2> <?php berich()->blog->get_post_metas(); ?> </div> </div> <?php } ?> <div class="pxl-item--content clearfix"> <?php the_content(); wp_link_pages( array( 'before' => '<div class="page-links">', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', ) ); ?> </div> <?php if($post_tag && $tags_list || $post_social_share ) : ?> <div class="pxl--post-footer"> <?php if($post_tag) { berich()->blog->get_tagged_in(); } ?> <?php if($post_social_share) { berich()->blog->get_socials_share(); } ?> </div> <?php endif; ?> <?php if($post_author_info) { berich()->blog->get_post_author_info(); } ?> <?php if($post_navigation) { berich()->blog->get_post_nav(); } ?> </article><!-- #post -->
💾 Save Changes
❌ Cancel