contributors.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * Template Name: Contributor Page
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Fourteen
  7. * @since Twenty Fourteen 1.0
  8. */
  9. get_header(); ?>
  10. <div id="main-content" class="main-content">
  11. <?php
  12. if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
  13. // Include the featured content template.
  14. get_template_part( 'featured-content' );
  15. }
  16. ?>
  17. <div id="primary" class="content-area">
  18. <div id="content" class="site-content" role="main">
  19. <?php
  20. // Start the Loop.
  21. while ( have_posts() ) : the_post();
  22. ?>
  23. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  24. <?php
  25. the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' );
  26. // Output the authors list.
  27. twentyfourteen_list_authors();
  28. edit_post_link( __( 'Edit', 'twentyfourteen' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' );
  29. ?>
  30. </article><!-- #post-## -->
  31. <?php
  32. // If comments are open or we have at least one comment, load up the comment template.
  33. if ( comments_open() || get_comments_number() ) {
  34. comments_template();
  35. }
  36. endwhile;
  37. ?>
  38. </div><!-- #content -->
  39. </div><!-- #primary -->
  40. </div><!-- #main-content -->
  41. <?php
  42. get_sidebar();
  43. get_footer();