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

/wp-content/themes/spun/content-link.php

https://bitbucket.org/broderboy/shannonbroder-wordpress
PHP | 50 lines | 41 code | 5 blank | 4 comment | 5 complexity | e710273793af6f0c07cee4710ba77eeb MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0, AGPL-1.0
  1. <?php
  2. /**
  3. * @package Spun
  4. */
  5. $format = get_post_format();
  6. ?>
  7. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  8. <header class="entry-header">
  9. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  10. </header><!-- .entry-header -->
  11. <div class="link-icon">
  12. <span class="screen-reader-text"><?php _e( 'Link', 'spun' ); ?></span>
  13. </div>
  14. <div class="entry-content">
  15. <?php the_content(); ?>
  16. </div><!-- .entry-content -->
  17. <footer class="entry-meta">
  18. <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
  19. <span class="comments-link">
  20. <a href="#comments-toggle">
  21. <span class="tail"></span>
  22. <?php echo comments_number( __( '+', 'spun' ), __( '1', 'spun' ), __( '%', 'spun' ) ); ?>
  23. </a>
  24. </span>
  25. <?php endif; ?>
  26. <div class="entry-meta-wrapper">
  27. <span class="post-date">
  28. <?php spun_posted_on(); ?>
  29. </span>
  30. <span class="entry-format">
  31. <a href="<?php echo esc_url( get_post_format_link( $format ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'spun' ), get_post_format_string( $format ) ) ); ?>"><?php echo get_post_format_string( $format ); ?></a>
  32. </span>
  33. <?php
  34. /* translators: used between list items, there is a space after the comma */
  35. $tags_list = get_the_tag_list( '', __( ', ', 'spun' ) );
  36. if ( $tags_list ) :
  37. ?>
  38. <span class="tags-links">
  39. <?php printf( __( '%1$s', 'spun' ), $tags_list ); ?>
  40. </span>
  41. <?php endif; // End if $tags_list ?>
  42. <?php edit_post_link( __( 'Edit', 'spun' ), '<span class="edit-link">', '</span>' ); ?>
  43. </div>
  44. </footer><!-- .entry-meta -->
  45. </article><!-- #post-<?php the_ID(); ?> -->