PageRenderTime 76ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/esquire/content.php

https://github.com/Bochet/festival_lgbt
PHP | 47 lines | 36 code | 5 blank | 6 comment | 4 complexity | 3c409787bb85c52c05a31f1c2cc7890a MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * The default template for displaying content
  4. *
  5. * @package Esquire
  6. * @since Esquire 1.0
  7. */
  8. ?>
  9. <div <?php post_class(); ?>>
  10. <?php if ( ! is_page() ) : ?>
  11. <div class="datebox">
  12. <a href="<?php the_permalink(); ?>" ttitle="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'esquire' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
  13. <p class="day"><?php the_time( 'd' ); ?></p>
  14. <p class="month"><?php the_time( 'M' ); ?></p>
  15. </a>
  16. </div>
  17. <?php endif; ?>
  18. <div class="postbody text">
  19. <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'esquire' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  20. <div class="content">
  21. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'esquire' ) ); ?>
  22. <?php wp_link_pages( array( 'before' => '<p class="page-link"><span>' . __( 'Pages:', 'esquire' ) . '</span>', 'after' => '</p>' ) ); ?>
  23. </div>
  24. <?php comments_template( '', true ); ?>
  25. <div class="meta bar">
  26. <p class="permalink">
  27. <?php if ( ! is_page() ) : ?>
  28. <a href="<?php the_permalink(); ?>"><span rel="<?php the_date(); ?>"><?php printf( __( '%1$s ago', 'esquire' ), human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) ); ?></span></a>
  29. <?php endif; ?>
  30. <a href="<?php echo wp_get_shortlink(); ?> " class="shorturl"><span><?php _e( 'Short URL', 'esquire' ); ?></span></a>
  31. <?php comments_popup_link( '<span>' . __( 'Comments', 'esquire' ) . '</span>', '<span>' . __( '1 Comment', 'esquire' ) . '</span>', '<span>' . __( '% Comments', 'esquire' ) . '</span>', 'comment-count', '' ); ?>
  32. <?php edit_post_link( __( 'Edit', 'esquire' ) ); ?>
  33. </p>
  34. <div class="tagbar">
  35. <?php if ( 1 != esquire_category_counter() ) : ?>
  36. <p class="tags cats"><?php the_category( '<span>/</span>' ); ?></p>
  37. <?php endif; ?>
  38. <?php the_tags( '<p class="tags">', '<span>/</span>', '</p>' ); ?>
  39. </div><!-- .tagbar -->
  40. </div><!-- .meta .bar -->
  41. </div><!-- .postbody .text -->
  42. </div><!-- .post -->