Advertisement
jegtheme

review-header.php

Jun 25th, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.73 KB | None | 0 0
  1. <header class="post-header clearfix">
  2.     <?php if(!vp_option('joption.hide_review_topbar', 0)) { ?>
  3.     <div class="post-top-meta clearfix">
  4.         <?php echo jeg_review_build_breadcrumb(); ?>
  5.         <time class="post-date" itemprop="dateCreated" datetime="<?php echo get_the_time("Y-m-d H:i:s"); ?>"><?php echo get_the_time("l, F jS, Y") ?></time>
  6.         <meta itemprop="datePublished" content="<?php echo get_the_time("Y-m-d H:i:s"); ?>">
  7.     </div>
  8.     <?php } ?>
  9.     <div class="post-header-container">
  10.         <h1 class="post-title" itemprop="name"><?php the_title(); ?></h1>
  11.         <?php if(!vp_option('joption.hide_review_meta', false)) : ?>
  12.             <div class="post-bottom-meta">
  13.                 <span class="post-author"><a itemprop="author" href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php echo apply_filters('jeg_get_author_name', null); ?></a></span>
  14.                 <time class="post-date" itemprop="dateCreated" datetime="<?php echo get_the_time("Y-m-d H:i:s"); ?>"><?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . __(' ago', 'jeg_textdomain') ?></time>
  15.                 <?php if ( comments_open() ) {
  16.                     var_dump(get_comments_number());
  17.                     ?>
  18.                     <span class="post-total-comment"><a href="<?php echo ( get_comments_number() == 0 )?  "#response"  : "#comments" ?>"><?php comments_number(__( 'No Comment Yet', 'jeg_textdomain'), __('1 Comment', 'jeg_textdomain'), __('% Comments', 'jeg_textdomain')); ?></a></span>
  19.                     <meta itemprop="interactionCount" content="UserComments:<?php echo get_comments_number(); ?>"/>
  20.                 <?php } ?>
  21.             </div>
  22.         <?php endif; ?>
  23.     </div>
  24. </header>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement