PageRenderTime 43ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/toolbox/content-aside.php

https://bitbucket.org/lgorence/quickpress
PHP | 36 lines | 25 code | 3 blank | 8 comment | 6 complexity | 189f855252759db6553398879c1b2cda MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, AGPL-1.0
  1. <?php
  2. /**
  3. * The template for displaying posts in the Aside Post Format on index and archive pages
  4. *
  5. * Learn more: http://codex.wordpress.org/Post_Formats
  6. *
  7. * @package Toolbox
  8. * @since Toolbox 1.0
  9. */
  10. ?>
  11. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  12. <header class="entry-header">
  13. <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'toolbox' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  14. </header><!-- .entry-header -->
  15. <?php if ( is_search() ) : // Only display Excerpts for search pages ?>
  16. <div class="entry-summary">
  17. <?php the_excerpt(); ?>
  18. </div><!-- .entry-summary -->
  19. <?php else : ?>
  20. <div class="entry-content">
  21. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'toolbox' ) ); ?>
  22. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'toolbox' ), 'after' => '</div>' ) ); ?>
  23. </div><!-- .entry-content -->
  24. <?php endif; ?>
  25. <footer class="entry-meta">
  26. <?php toolbox_posted_on(); ?>
  27. <?php if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) : ?>
  28. <span class="sep"> | </span>
  29. <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'toolbox' ), __( '1 Comment', 'toolbox' ), __( '% Comments', 'toolbox' ) ); ?></span>
  30. <?php endif; ?>
  31. <?php edit_post_link( __( 'Edit', 'toolbox' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
  32. </footer><!-- #entry-meta -->
  33. </article><!-- #post-<?php the_ID(); ?> -->