PageRenderTime 38ms CodeModel.GetById 11ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://github.com/Bochet/festival_lgbt
PHP | 46 lines | 35 code | 5 blank | 6 comment | 4 complexity | 12004fe6cda7ed6e68f21f40e9174dfc MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * The template for displaying Image Posts
  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(); ?>" title="<?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 photo">
  19. <div class="content">
  20. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'esquire' ) ); ?>
  21. <?php wp_link_pages( array( 'before' => '<p class="page-link"><span>' . __( 'Pages:', 'esquire' ) . '</span>', 'after' => '</p>' ) ); ?>
  22. </div><!-- .content -->
  23. <?php comments_template( '', true ); ?>
  24. <div class="meta bar">
  25. <p class="permalink">
  26. <?php if ( ! is_page() ) : ?>
  27. <a href="<?php the_permalink(); ?>"><span rel="<?php the_time( get_option( 'date_format' ) ); ?>"><?php printf( __( '%1$s ago', 'esquire' ), human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) ); ?></span></a>
  28. <?php endif; ?>
  29. <a href="<?php echo wp_get_shortlink(); ?> " class="shorturl"><span><?php _e( 'Short URL', 'esquire' ); ?></span></a>
  30. <?php comments_popup_link( '<span>' . __( 'Comments', 'esquire' ) . '</span>', '<span>' . __( '1 Comment', 'esquire' ) . '</span>', '<span>' . __( '% Comments', 'esquire' ) . '</span>', 'comment-count', '' ); ?>
  31. <?php edit_post_link( __( 'Edit', 'esquire' ) ); ?>
  32. </p>
  33. <div class="tagbar">
  34. <?php if ( 1 != esquire_category_counter() ) : ?>
  35. <p class="tags cats"><?php the_category( '<span>/</span>' ); ?></p>
  36. <?php endif; ?>
  37. <?php the_tags( '<p class="tags">', '<span>/</span>', '</p>' ); ?>
  38. </div><!-- .tagbar -->
  39. </div><!-- .meta .bar -->
  40. </div><!-- .postbody .text -->
  41. </div><!-- .post -->