• File: content-single.php
  • Full Path: /home/slvgwrnz/public_html/woocommerce/content-single.php
  • Date Modified: 02/02/2025 10:15 PM
  • File size: 2.76 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
/**
 * Template part for displaying single posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Prinox
 */

?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <div class="inner-box">

        <?php if(has_post_thumbnail()):?>
            <div class="image">
                <?php the_post_thumbnail('prinox-img-size-6');?>
                <div class="post-date"><?php echo wp_kses( get_the_date('d'), true ); ?> <br> <?php echo wp_kses( get_the_date('M'), true ); ?></div>
            </div>
        <?php endif;?>

        <div class="lower-content">
            <div class="tags">
                <?php prinox_entry_footer();?>
            </div>
            <ul class="post-meta d-flex align-items-center flex-wrap">
                <li><span class="author"><?php prinox_author_avatars(26);?></span> <?php the_author()?> <?php if(function_exists('prinox_ready_time_ago')){?> 
                    / <span><?php echo prinox_ready_time_ago();?></span> 
                <?php }?> </li>
                <li><span class="icon flaticon-bubble-chat"></span><?php echo esc_attr(get_comments_number());?></li>
                <li><span class="icon flaticon-clock"></span><?php echo prinox_reading_time();?></li>
            </ul>
            <div class="entry-content">
                <?php
                    the_content(
                        sprintf(
                            wp_kses(
                                /* translators: %s: Name of current post. Only visible to screen readers */
                                __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'prinox' ),
                                array(
                                    'span' => array(
                                        'class' => array(),
                                    ),
                                )
                            ),
                            wp_kses_post( get_the_title() )
                        )
                    );

                    wp_link_pages(
                        array(
                            'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'prinox' ),
                            'after'  => '</div>',
                        )
                    );
                ?>
            </div>            
        </div>
    </div>
    <div class="post-share-options">
        <div class="post-share-inner clearfix">
            <div class="tags-box">
                <?php prinox_entry_footer_two();?>
            </div>
            <?php if(function_exists('prinox_post_share')){
                prinox_post_share();
            }?>
        </div>
    </div>
</article><!-- #post-<?php the_ID(); ?> -->