daily pastebin goal
50%
SHARE
TWEET

post-header.php

jegtheme Jun 25th, 2015 251 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <header class="post-header clearfix">
  2.     <?php if(!vp_option('joption.hide_post_topbar', 0)) { ?>
  3.     <div class="post-top-meta clearfix">
  4.         <?php echo jeg_build_breadcrumb(); ?>
  5.         <div class="post-date">
  6.             <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>
  7.             <meta itemprop="datePublished" content="<?php echo get_the_time("Y-m-d H:i:s"); ?>">
  8.         </div>
  9.     </div>
  10.     <?php } ?>
  11.     <div class="post-header-container">
  12.         <h1 class="post-title" itemprop="name"><?php the_title(); ?></h1>
  13.         <?php if(!vp_option('joption.hide_post_meta', false)) : ?>
  14.             <div class="post-bottom-meta">
  15.                 <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>
  16.                 <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>
  17.                 <?php if ( comments_open() ) {
  18.                     $commenttype = apply_filters('jeg_comment_type', vp_option('joption.comment_type', 'wordpress'));
  19.                     if ($commenttype === 'wordpress') {
  20.                 ?>
  21.                         <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>
  22.                         <meta itemprop="interactionCount" content="UserComments:<?php echo get_comments_number(); ?>"/>
  23.                 <?php
  24.                         } else {
  25.                             echo '<span class="post-total-comment"><a href="#comments">' . __('Comment', 'jeg_textdomain') . '</a></span>';
  26.                         }
  27.                     }
  28.                 ?>
  29.             </div>
  30.         <?php endif; ?>
  31.     </div>
  32. </header>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top