PageRenderTime 52ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/themes/agregador-fdi/partials/content-single.php

https://github.com/rafapires/festival-de-ideias
PHP | 62 lines | 42 code | 10 blank | 10 comment | 3 complexity | 8a33061cca0b777b10bed468010a510d MD5 | raw file
Possible License(s): GPL-3.0, AGPL-1.0
  1. <?php
  2. /** content-single.php
  3. *
  4. * The template for displaying content in the single.php template
  5. *
  6. * @author Konstantin Obenland
  7. * @package The Bootstrap
  8. * @since 1.0.0 - 07.02.2012
  9. */
  10. tha_entry_before(); ?>
  11. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  12. <?php tha_entry_top(); ?>
  13. <header class="page-header">
  14. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  15. <div class="entry-meta"><?php the_bootstrap_posted_on(); ?></div><!-- .entry-meta -->
  16. </header><!-- .entry-header -->
  17. <div class="entry-content clearfix">
  18. <?php
  19. the_content();
  20. the_bootstrap_link_pages(); ?>
  21. </div><!-- .entry-content -->
  22. <footer class="entry-footer">
  23. <?php
  24. $categories_list = get_the_category_list( _x( ', ', 'used between list items, there is a space after the comma', 'the-bootstrap' ) );
  25. $tags_list = get_the_tag_list( '', _x( ', ', 'used between list items, there is a space after the comma', 'the-bootstrap' ) );
  26. if ( $categories_list )
  27. printf( '<span class="cat-links block">' . __( 'Posted in %1$s.', 'the-bootstrap' ) . '</span>', $categories_list );
  28. if ( $tags_list )
  29. printf( '<span class="tag-links block">' . __( 'Tagged %1$s.', 'the-bootstrap' ) . '</span>', $tags_list );
  30. ?>
  31. </footer><!-- .entry-footer -->
  32. <?php tha_entry_bottom(); ?>
  33. </article><!-- #post-<?php the_ID(); ?> -->
  34. <?php tha_entry_after();
  35. if ( get_the_author_meta( 'description' ) AND is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?>
  36. <aside id="author-info" class="row">
  37. <h2 class="span8"><?php printf( __( 'About %s', 'the-bootstrap' ), get_the_author() ); ?></h2>
  38. <div id="author-avatar" class="span1">
  39. <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'the_bootstrap_author_bio_avatar_size', 70 ) ); ?>
  40. </div><!-- #author-avatar -->
  41. <div id="author-description" class="span7">
  42. <?php the_author_meta( 'description' ); ?>
  43. <div id="author-link">
  44. <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
  45. <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'the-bootstrap' ), get_the_author() ); ?>
  46. </a>
  47. </div><!-- #author-link -->
  48. </div><!-- #author-description -->
  49. </aside><!-- #author-info -->
  50. <?php endif;
  51. /* End of file content-single.php */
  52. /* Location: ./wp-content/themes/the-bootstrap/partials/content-single.php */