Konark

Amadeus content.php

Sep 21st, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.59 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template part for displaying content
  4. *
  5. * @package Amadeus
  6. */
  7. ?>
  8.  
  9. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  10.     <?php if ( has_post_thumbnail() && ( get_theme_mod( 'index_feat_image' ) != 1 ) ) : ?>
  11.     <div class="entry-thumb">
  12.         <?php the_post_thumbnail( 'amadeus-entry-thumb' ); ?>
  13.         <div class="entry-thumb-inner">
  14.         </div>
  15.         <a class="thumb-icon" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" ><i class="fa fa-send"></i></a>
  16.     </div>
  17.     <?php endif; ?>
  18.  
  19.     <div class="post-inner">
  20.         <header class="entry-header">
  21.             <?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
  22.  
  23.             <?php if ( 'post' == get_post_type() && ! get_theme_mod( 'meta_index' ) ) : ?>
  24.             <div class="entry-meta">
  25.                 <?php amadeus_posted_on(); ?>
  26.             </div><!-- .entry-meta -->
  27.             <?php endif; ?>
  28.         </header><!-- .entry-header -->
  29.  
  30.         <div class="entry-content">
  31.             <?php if ( (get_theme_mod( 'full_content' ) == 1) ) : ?>
  32.                 <?php
  33.                 the_content(
  34.                     sprintf(
  35.                         /* translators: Title of the post */
  36.                          __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'amadeus' ),
  37.                         the_title( '<span class="screen-reader-text">"', '"</span>', false )
  38.                     )
  39.                 );
  40.                 ?>
  41.             <?php else : ?>
  42.                 <?php the_excerpt(); ?>
  43.             <?php endif; ?>
  44.  
  45.             <?php
  46.                 wp_link_pages(
  47.                     array(
  48.                         'before' => '<div class="page-links">' . __( 'Pages:', 'amadeus' ),
  49.                         'after'  => '</div>',
  50.                     )
  51.                 );
  52.             ?>
  53.         </div><!-- .entry-content -->
  54.     </div>
  55. </article><!-- #post-## -->
Advertisement
Add Comment
Please, Sign In to add comment