PageRenderTime 41ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/themes/OneMozilla/content-single.php

https://github.com/fvignals/One-Mozilla-blog
PHP | 38 lines | 34 code | 4 blank | 0 comment | 8 complexity | 795d6a449426b8302241cc2c1883f41f MD5 | raw file
  1. <?php $theme_options = onemozilla_get_theme_options(); ?>
  2. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  3. <header class="entry-header">
  4. <h1 class="entry-title"><?php the_title(); ?></h1>
  5. <?php if ( 'post' == get_post_type() ) : ?>
  6. <p class="entry-posted">
  7. <time class="published" title="<?php the_time('Y-m-d\TH:i:sP'); ?>" datetime="<?php the_time('Y-m-d\TH:i:sP'); ?>">
  8. <a class="posted-month" href="<?php echo get_month_link(get_the_time('Y'), get_the_time('m')); ?>" title="<?php printf( __( 'See all posts from %s', 'onemozilla' ), get_the_time('F, Y') ); ?>"><?php strftime(the_time('M')); ?></a>
  9. <span class="posted-date"><?php the_time('j'); ?></span>
  10. <a class="posted-year" href="<?php echo get_year_link(get_the_time('Y'), get_the_time('y')); ?>" title="<?php printf( __( 'See all posts from %s', 'onemozilla' ), get_the_time('Y') ); ?>"><?php the_time('Y'); ?></a>
  11. </time>
  12. </p>
  13. <?php endif; ?>
  14. </header><!-- .entry-header -->
  15. <div class="entry-content">
  16. <?php edit_post_link( __( 'Edit Post', 'onemozilla' ), '<p class="edit">', '</p>' ); ?>
  17. <?php if (has_post_thumbnail()) { the_post_thumbnail('thumbnail', array('alt' => "", 'title' => "")); } ?>
  18. <?php the_content(); ?>
  19. <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'onemozilla' ) . '</span>', 'after' => '</div>' ) ); ?>
  20. </div><!-- .entry-content -->
  21. <footer class="entry-meta">
  22. <?php if ( $theme_options['share_posts'] == 1 ) : ?>
  23. <div class="share">
  24. <div class="socialshare" data-type="small-bubbles"></div>
  25. </div>
  26. <?php endif; ?>
  27. <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
  28. <?php if (has_tag()) : ?>
  29. <p class="meta"><b><?php _e('Tags','onemozilla'); ?>:</b> <?php $tags_list = the_tags('',', ',''); ?></p>
  30. <?php endif; ?>
  31. <p class="meta"><b><?php _e('Categories','onemozilla'); ?>:</b> <?php the_category(', ') ?></p>
  32. <?php endif; ?>
  33. </footer><!-- .entry-meta -->
  34. </article><!-- #post -->