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