Advertisement
sarahn

robvens.com_single.php

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