Advertisement
kpfdigital

Template Part

Feb 13th, 2017
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.72 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The default template for displaying content of single posts.
  4.  */
  5. ?>
  6. <article id="post-<?php the_ID(); ?>" <?php post_class(themeblvd_get_att('class')); ?>>
  7.  
  8.     <?php if ( ! themeblvd_get_att('epic_thumb') && ! has_post_format('quote') ) : ?>
  9.         <header class="entry-header<?php if ( themeblvd_get_att('show_meta') ) echo ' has-meta'; ?>">
  10.  
  11.             <?php if ( ! has_post_format('aside') ) : ?>
  12.                 <h1 class="entry-title">
  13.                     <?php themeblvd_the_title(); ?>
  14.                 </h1>
  15.             <?php endif; ?>
  16.  
  17.             <?php if ( themeblvd_get_att('show_meta') ) : ?>
  18.                 <div class="meta-wrapper">
  19.                     <?php themeblvd_blog_meta(); ?>
  20.                 </div><!-- .meta-wrapper (end) -->
  21.             <?php endif; ?>
  22.  
  23.         </header><!-- .entry-header -->
  24.     <?php endif; ?>
  25.  
  26.     <?php if ( has_post_format('gallery') && ! themeblvd_get_att('epic_thumb') ) : ?>
  27.  
  28.         <div class="featured-item featured-gallery popout">
  29.             <?php themeblvd_gallery_slider(); ?>
  30.         </div><!-- .featured-gallery (end) -->
  31.  
  32.     <?php elseif ( has_post_format('video') ) : ?>
  33.  
  34.         <div class="featured-item featured-video popout">
  35.             <?php themeblvd_content_video(); ?>
  36.         </div><!-- .featured-video (end) -->
  37.  
  38.     <?php elseif ( has_post_format('audio') && themeblvd_get_att('thumbs') && ! themeblvd_get_att('epic_thumb') ) : ?>
  39.  
  40.         <div class="featured-item featured-audio popout">
  41.             <?php themeblvd_content_audio(); ?>
  42.         </div><!-- .featured-audio (end) -->
  43.  
  44.     <?php elseif ( has_post_format('quote') && ! themeblvd_get_att('epic_thumb') ) : ?>
  45.  
  46.         <?php if ( themeblvd_get_att('show_meta') ) : ?>
  47.             <header class="entry-header quote">
  48.                 <div class="meta-wrapper">
  49.                     <?php themeblvd_blog_meta(); ?>
  50.                 </div><!-- .meta-wrapper (end) -->
  51.             </header><!-- .entry-header -->
  52.         <?php endif; ?>
  53.  
  54.         <div class="featured-item featured-quote bg-primary">
  55.             <?php themeblvd_content_quote(); ?>
  56.         </div><!-- .featured-quote (end) -->
  57.  
  58.     <?php elseif ( has_post_thumbnail() && themeblvd_get_att('thumbs') && ! themeblvd_get_att('epic_thumb') ) : ?>
  59.  
  60.         <div class="featured-item featured-image standard popout">
  61.             <?php themeblvd_the_post_thumbnail(); ?>
  62.         </div><!-- .featured-item (end) -->
  63.  
  64.     <?php endif; ?>
  65.  
  66.     <div class="entry-content clearfix">
  67.  
  68.  
  69.  
  70. <!-- WANT TO PUT MY ACF FIELDS HERE -->
  71.  
  72.  
  73.  
  74.         <?php the_content(); ?>
  75.                
  76.        
  77.         <?php edit_post_link( themeblvd_get_local( 'edit_post' ), '<p class="edit-link">', '</p>' ); ?>
  78.     </div><!-- .entry-content -->
  79.  
  80.     <?php if ( is_single() ) : ?>
  81.         <?php wp_link_pages( array( 'before' => '<div class="page-link">' . themeblvd_get_local('pages').': ', 'after' => '</div>' ) ); ?>
  82.     <?php endif; ?>
  83.  
  84.     <?php if ( themeblvd_get_att('show_sub_meta') ) : ?>
  85.         <?php themeblvd_blog_sub_meta(); ?>
  86.     <?php endif; ?>
  87.  
  88. </article><!-- #post-<?php the_ID(); ?> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement