Advertisement
sarahn

robvens.com_single.php

Nov 13th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div id="system">
  2.  
  3.     <?php if (have_posts()) : ?>
  4.         <?php while (have_posts()) : the_post();
  5. $duplicate_class = !empty(get_post_meta($post->ID, '_icl_lang_duplicate_of', true)) ? ' duplicate_post': NULL; ?>
  6.        
  7.         <article class="item" data-permalink="<?php the_permalink(); ?>">
  8.        
  9.             <?php if (has_post_thumbnail()) : ?>
  10.                 <?php
  11.                 $width = get_option('thumbnail_size_w'); //get the width of the thumbnail setting
  12.                 $height = get_option('thumbnail_size_h'); //get the height of the thumbnail setting
  13.                 ?>
  14.                 <?php the_post_thumbnail(array($width, $height), array('class' => 'size-auto')); ?>
  15.             <?php endif; ?>
  16.  
  17.             <header>
  18.        
  19.                 <h1 class="title"><?php the_title(); ?></h1>
  20.    
  21.                 <p class="meta">
  22.                     <?php
  23.                         $date = '<time datetime="'.get_the_date('Y-m-d').'" pubdate>'.get_the_date().'</time>';
  24.                         printf(__('Written by %s on %s. Posted in %s', 'warp'), '<a href="'.get_author_posts_url(get_the_author_meta('ID')).'" title="'.get_the_author().'">'.get_the_author().'</a>', $date, get_the_category_list(', '));
  25.                     ?>
  26.                 </p>
  27.  
  28.             </header>
  29.  
  30.             <div class="content clearfix<?php echo $duplicate_class; ?>"><?php the_content(''); ?></div>
  31.  
  32.             <?php the_tags('<p class="taxonomy">'.__('Tags: ', 'warp'), ', ', '</p>'); ?>
  33.  
  34.             <?php edit_post_link(__('Edit this post.', 'warp'), '<p class="edit">','</p>'); ?>
  35.            
  36.             <?php if (pings_open()) : ?>
  37.             <p class="trackback"><?php printf(__('<a href="%s">Trackback</a> from your site.', 'warp'), get_trackback_url()); ?></p>
  38.             <?php endif; ?>
  39.  
  40.             <?php if (get_the_author_meta('description')) : ?>
  41.             <section class="author-box clearfix">
  42.        
  43.                 <?php echo get_avatar(get_the_author_meta('user_email')); ?>
  44.                
  45.                 <h3 class="name"><?php the_author(); ?></h3>
  46.                
  47.                 <div class="description"><?php the_author_meta('description'); ?></div>
  48.  
  49.             </section>
  50.             <?php endif; ?>
  51.            
  52.             <?php comments_template(); ?>
  53.  
  54.         </article>
  55.  
  56.         <?php endwhile; ?>
  57.     <?php endif; ?>
  58.  
  59. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement