1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| <?php
/**
* The template for displaying all pages.
*
* @package Theme Freesia
* @subpackage ShoppingCart
* @since ShoppingCart 1.0
*/
get_header();
$shoppingcart_settings = shoppingcart_get_theme_options();
$shoppingcart_display_page_single_featured_image = $shoppingcart_settings['shoppingcart_display_page_single_featured_image'];?>
<div class="wrap">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<header class="page-header">
<?php if ( is_front_page()) : ?>
<h2 class="page-title"><?php the_title();?></h2>
<!-- .page-title -->
<?php else : ?>
<h1 class="page-title"><?php the_title();?></h1>
<!-- .page-title -->
<?php endif; ?>
<?php shoppingcart_breadcrumb(); ?><!-- .breadcrumb -->
</header><!-- .page-header -->
<?php
if( have_posts() ) {
while( have_posts() ) {
the_post(); ?>
<article id="page-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if(has_post_thumbnail() && $shoppingcart_display_page_single_featured_image == 0 ){ ?>
<div class="post-image-content">
<figure class="post-featured-image">
<?php the_post_thumbnail(); ?>
</figure>
</div><!-- end.post-image-content -->
<?php } ?>
<div class="entry-content">
<?php the_content(); ?>
</div> <!-- entry-content clearfix-->
<?php
wp_link_pages( array(
'before' => '<div style="clear: both;"></div><div class="pagination clearfix">'.esc_html__( 'Pages:', 'shoppingcart' ),
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '%',
'echo' => 1
) );
comments_template(); ?>
</article>
<?php }
} else { ?>
<h1 class="entry-title"> <?php esc_html_e( 'No Posts Found.', 'shoppingcart' ); ?> </h1>
<?php
} ?>
</main><!-- end #main -->
</div> <!-- #primary -->
<?php
get_sidebar();
?>
</div><!-- end .wrap -->
<?php
get_footer(); |
Partager