File "content-single.php"
Full Path: /home/warrior1/public_html/wp-content-20241001222009/themes/ecommerce-market/template-parts/content-single.php
File size: 1.74 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Template part for displaying page content in single.php
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package eCommerce_Market
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'post-item' ); ?>>
<?php
if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta">
<?php ecommerce_market_posted_on(); ?>
</div><!-- .entry-meta -->
<?php
endif;
?>
<div class="entry-meta post-details">
<?php ecommerce_market_categories_list(); ?>
<?php ecommerce_market_author_info(); ?>
</div>
<header class="entry-header">
<?php
if ( is_singular() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
else :
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
endif;
?>
</header><!-- .entry-header -->
<?php if ( has_post_thumbnail() ) : ?>
<figure class="post-image">
<?php the_post_thumbnail(); ?>
</figure>
<?php endif;?>
<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>', 'ecommerce-market' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
) );
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'ecommerce-market' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php ecommerce_market_entry_footer(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->