1313
1414get_header (); ?>
1515
16- <div class="row">
17- <section id="primary" class="site-content columns">
18- <main id="content" role="main">
16+ <div class="grid-container">
17+ <div class="grid-x grid-padding-x">
18+ <section id="primary" class="auto cell site-content">
19+ <main id="content" role="main">
1920
20- <?php if ( have_posts () ) : ?>
21+ <?php if ( have_posts () ) : ?>
2122
22- <?php
23- /* Queue the first post, that way we know
24- * what author we're dealing with (if that is the case).
25- *
26- * We reset this later so we can run the loop
27- * properly with a call to rewind_posts().
28- */
29- the_post ();
30- ?>
23+ <?php
24+ /* Queue the first post, that way we know
25+ * what author we're dealing with (if that is the case).
26+ *
27+ * We reset this later so we can run the loop
28+ * properly with a call to rewind_posts().
29+ */
30+ the_post ();
31+ ?>
3132
32- <header class="archive-header">
33- <h1 class="archive-title"><?php printf ( __ ( 'Author Archives: %s ' , 'cornerstone ' ), '<span class="vcard"><a class="url fn n" href=" ' . esc_url ( get_author_posts_url ( get_the_author_meta ( "ID " ) ) ) . '" title=" ' . esc_attr ( get_the_author () ) . '" rel="me"> ' . get_the_author () . '</a></span> ' ); ?> </h1>
34- </header><?php // .archive-header ?>
33+ <header class="archive-header">
34+ <h1 class="archive-title"><?php printf ( __ ( 'Author Archives: %s ' , 'cornerstone ' ), '<span class="vcard"><a class="url fn n" href=" ' . esc_url ( get_author_posts_url ( get_the_author_meta ( "ID " ) ) ) . '" title=" ' . esc_attr ( get_the_author () ) . '" rel="me"> ' . get_the_author () . '</a></span> ' ); ?> </h1>
35+ </header><?php // .archive-header ?>
3536
36- <?php
37- /* Since we called the_post() above, we need to
38- * rewind the loop back to the beginning that way
39- * we can run the loop properly, in full.
40- */
41- rewind_posts ();
42- ?>
37+ <?php
38+ /* Since we called the_post() above, we need to
39+ * rewind the loop back to the beginning that way
40+ * we can run the loop properly, in full.
41+ */
42+ rewind_posts ();
43+ ?>
4344
44- <?php
45- // If a user has filled out their description, show a bio on their entries.
46- if ( get_the_author_meta ( 'description ' ) ) : ?>
47- <div class="author-info">
48- <div class="author-avatar">
49- <?php echo get_avatar ( get_the_author_meta ( 'user_email ' ), apply_filters ( 'cornerstone_author_bio_avatar_size ' , 60 ) ); ?>
50- </div><?php // .author-avatar ?>
51- <div class="author-description">
52- <h2><?php printf ( __ ( 'About %s ' , 'cornerstone ' ), get_the_author () ); ?> </h2>
53- <p><?php the_author_meta ( 'description ' ); ?> </p>
54- </div><?php // .author-description ?>
55- </div><?php // .author-info ?>
56- <?php endif ; ?>
45+ <?php
46+ // If a user has filled out their description, show a bio on their entries.
47+ if ( get_the_author_meta ( 'description ' ) ) : ?>
48+ <div class="author-info">
49+ <div class="author-avatar">
50+ <?php echo get_avatar ( get_the_author_meta ( 'user_email ' ), apply_filters ( 'cornerstone_author_bio_avatar_size ' , 60 ) ); ?>
51+ </div><?php // .author-avatar ?>
52+ <div class="author-description">
53+ <h2><?php printf ( __ ( 'About %s ' , 'cornerstone ' ), get_the_author () ); ?> </h2>
54+ <p><?php the_author_meta ( 'description ' ); ?> </p>
55+ </div><?php // .author-description ?>
56+ </div><?php // .author-info ?>
57+ <?php endif ; ?>
5758
58- <?php /* Start the Loop */ ?>
59- <?php while ( have_posts () ) : the_post (); ?>
60- <?php get_template_part ( 'template-parts/content ' , get_post_format () ); ?>
61- <?php endwhile ; ?>
59+ <?php /* Start the Loop */ ?>
60+ <?php while ( have_posts () ) : the_post (); ?>
61+ <?php get_template_part ( 'template-parts/content ' , get_post_format () ); ?>
62+ <?php endwhile ; ?>
6263
63- <?php else : ?>
64- <?php get_template_part ( 'template-parts/content ' , 'none ' ); ?>
65- <?php endif ; ?>
64+ <?php else : ?>
65+ <?php get_template_part ( 'template-parts/content ' , 'none ' ); ?>
66+ <?php endif ; ?>
6667
67- </main><?php // #content ?>
68- </section><?php // #primary ?>
68+ </main><?php // #content ?>
69+ </section><?php // #primary ?>
6970
70- <?php get_sidebar (); ?>
71+ <?php get_sidebar (); ?>
72+ </div>
7173</div>
7274<?php get_footer (); ?>
0 commit comments