Advertisement
mayo7

Untitled

Sep 26th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. <?php
  2. /**
  3. * Classic post style title and meta partial template - called from content.php
  4. */
  5. ?>
  6. <div class="heading cf">
  7. <?php
  8. $tag = 'h1';
  9. if (!is_single() OR is_front_page()) {
  10. $tag = 'h2';
  11. }
  12. ?>
  13.  
  14. <<?php echo $tag; ?> class="post-title item fn" itemprop="name headline">
  15. <?php if (!is_front_page() && is_singular()): the_title(); else: ?>
  16.  
  17. <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark">
  18. <?php the_title(); ?></a>
  19.  
  20. <?php endif;?>
  21. </<?php echo $tag; ?>>
  22.  
  23. <a href="<?php comments_link(); ?>" class="comments"><i class="fa fa-comments-o"></i> <?php echo get_comments_number(); ?></a>
  24.  
  25. </div>
  26.  
  27. <div class="post-meta cf">
  28. <span class="posted-by"><?php _ex('By', 'Post Meta', 'bunyad'); ?>
  29. <span class="reviewer" itemprop="author"><?php the_author_posts_link(); ?></span>
  30. </span>
  31.  
  32. <span class="posted-on"><?php _ex('on', 'Post Meta', 'bunyad'); ?>
  33. <span class="dtreviewed">
  34. <time class="value-title" datetime="<?php echo esc_attr(get_the_time(DATE_W3C)); ?>" title="<?php
  35. echo esc_attr(get_the_time('Y-m-d')); ?>" itemprop="datePublished"><?php echo esc_html(get_post_meta(get_the_ID(), 'event_date', true)); ?></time>
  36. </span>
  37. </span>
  38.  
  39. <span class="cats"><?php echo get_the_category_list(__(', ', 'bunyad')); ?></span>
  40.  
  41. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement