Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template part for displaying single posts.
- *
- * @link https://codex.wordpress.org/Template_Hierarchy
- *
- * @package Acme Themes
- * @subpackage Weblog
- */
- $no_image ='';
- if( !has_post_thumbnail() ){
- $no_image = 'acme-no-image';
- }
- ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class($no_image); ?>>
- <!--post thumbnal options-->
- <?php
- if( has_post_thumbnail() ){
- ?>
- <div class="single-feat clearfix">
- <figure class="single-thumb single-thumb-full">
- <?php
- $thumbnail = 'full';
- the_post_thumbnail( $thumbnail );
- ?>
- </figure>
- <div class="entry-meta">
- <?php weblog_posted_on(); ?>
- </div><!-- .entry-meta -->
- </div><!-- .single-feat-->
- <?php
- }
- ?>
- <?php
- if( !( has_post_thumbnail() ) ){
- ?>
- <div class="entry-meta">
- <?php weblog_posted_on(); ?>
- </div><!-- .entry-meta -->
- <?php
- }
- ?>
- <header class="entry-header">
- <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
- </header><!-- .entry-header -->
- <footer class="entry-footer">
- <?php weblog_entry_footer(); ?>
- </footer><!-- .entry-footer -->
- <div class="clearfix"></div>
- <div class="entry-content">
- <?php the_content(); ?>
- <?php
- wp_link_pages( array(
- 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'weblog' ),
- 'after' => '</div>',
- ) );
- ?>
- </div><!-- .entry-content -->
- </article><!-- #post-## -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement