Advertisement
Guest User

part.php

a guest
Nov 23rd, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.85 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The default template for displaying content. Used for both single and index/archive/search.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage villenoir
  7.  */
  8. ?>
  9.  
  10. <?php global $blog_list_thumbnail, $blog_list_content, $blog_layout; ?>
  11.  
  12. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13.        
  14.  
  15.         <?php villenoir_post_thumbnail(); ?>
  16.  
  17.         <?php if ( !is_single() ) : ?>
  18.         <header class="entry-header">
  19.             <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
  20.         </header><!-- .entry-header -->
  21.         <?php endif; ?>
  22.  
  23.         <div class="post-meta">
  24.         <?php villenoir_posted_on_summary(); ?>
  25.         </div>
  26.  
  27.         <?php if ( is_single() ) : ?>
  28.         <div class="entry-content">
  29.             <?php
  30.             /* translators: %s: Name of current post */
  31.             the_content( sprintf(
  32.                 esc_html__( 'Continue reading %s', 'villenoir' ),
  33.                 the_title( '<span class="screen-reader-text">', '</span>', false )
  34.             ) );
  35.  
  36.             wp_link_pages( array(
  37.                 'before'      => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'villenoir' ) . '</span>',
  38.                 'after'       => '</div>',
  39.                 'link_before' => '<span>',
  40.                 'link_after'  => '</span>',
  41.                 'pagelink'    => '<span class="screen-reader-text">' . esc_html__( 'Page', 'villenoir' ) . ' </span>%',
  42.                 'separator'   => '<span class="screen-reader-text">, </span>',
  43.             ) );
  44.         ?>
  45.         </div><!-- .entry-content -->
  46.  
  47.         <?php else: ?>
  48.  
  49.         <div class="entry-summary">
  50.             <?php the_excerpt(); ?>
  51.         </div><!-- .entry-summary -->
  52.        
  53.         <?php endif; ?>
  54.  
  55.         <?php if ( is_single() ) : ?>
  56.         <footer class="entry-meta">
  57.             <?php villenoir_entry_meta(); ?>
  58.             <?php edit_post_link( esc_html__( 'Edit', 'villenoir' ), '<span class="edit-link">', '</span>' ); ?>
  59.         </footer><!-- .entry-meta -->
  60.         <?php endif; ?>
  61.  
  62.  
  63. </article><!-- article -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement