Преглед изворни кода

updating bylines so they are easier to read

Special thanks to @joseluis for this pull request.
Eddie Machado пре 11 година
родитељ
комит
cede2ce03a

+ 9 - 4
archive.php

@@ -45,12 +45,17 @@
 
 
 							<article id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article">
 							<article id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article">
 
 
-								<header class="article-header">
+								<header class="entry-header article-header">
 
 
 									<h3 class="h2 entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
 									<h3 class="h2 entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
-									<p class="byline vcard"><?php
-										printf(__( 'Posted', 'bonestheme' ) . ' <time class="updated" datetime="%1$s" itemprop="datePublished">%2$s</time> ' . __('by', 'bonestheme' ) . ' <span class="author">%3$s</span> <span class="amp">&</span> ' . __('filed under', 'bonestheme') .  ' %4$s.', get_the_time('Y-m-j'), get_the_time(__( 'F jS, Y', 'bonestheme' )), get_the_author_link( get_the_author_meta( 'ID' ) ), get_the_category_list(', '));
-									?></p>
+									<p class="byline entry-meta vcard">
+										<?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                  							     /* the time the post was published */
+                  							     '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
+                       								/* the author of the post */
+                       								'<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                    							); ?>
+									</p>
 
 
 								</header>
 								</header>
 
 

+ 7 - 2
index.php

@@ -13,8 +13,13 @@
 								<header class="article-header">
 								<header class="article-header">
 
 
 									<h1 class="h2 entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
 									<h1 class="h2 entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
-									<p class="byline vcard">
-                                        <?php printf( __( 'Posted <time class="updated" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
+									<p class="byline entry-meta vcard">
+                                        				<?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                       								/* the time the post was published */
+                       								'<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
+                       								/* the author of the post */
+                       								'<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                    							); ?>
 									</p>
 									</p>
 
 
 								</header>
 								</header>

+ 6 - 1
post-formats/format-aside.php

@@ -7,7 +7,12 @@
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 
 
                   <p class="byline entry-meta vcard">
                   <p class="byline entry-meta vcard">
-                    <?php printf( __( 'Posted <time class="updated entry-time" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author entry-author" itemprop="author" itemscope itemptype="http://schema.org/Person">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
+                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                       /* the time the post was published */
+                       '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
+                       /* the author of the post */
+                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                    ); ?>
                   </p>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>

+ 6 - 1
post-formats/format-audio.php

@@ -7,7 +7,12 @@
                   <h1 class="entry-title single-title" itemprop="name"><?php the_title(); ?></h1>
                   <h1 class="entry-title single-title" itemprop="name"><?php the_title(); ?></h1>
 
 
                   <p class="byline entry-meta vcard">
                   <p class="byline entry-meta vcard">
-                    <?php printf( __( 'Posted <time class="updated entry-time" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author entry-author" itemprop="author" itemscope itemptype="http://schema.org/Person">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
+                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                       /* the time the post was published */
+                       '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
+                       /* the author of the post */
+                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                    ); ?>
                   </p>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>

+ 6 - 1
post-formats/format-chat.php

@@ -7,7 +7,12 @@
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 
 
                   <p class="byline vcard">
                   <p class="byline vcard">
-                    <?php printf( __( 'Posted <time class="updated" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
+                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                       /* the time the post was published */
+                       '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
+                       /* the author of the post */
+                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                    ); ?>
                   </p>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>

+ 6 - 1
post-formats/format-gallery.php

@@ -7,7 +7,12 @@
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 
 
                   <p class="byline vcard">
                   <p class="byline vcard">
-                    <?php printf( __( 'Posted <time class="updated" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
+                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                       /* the time the post was published */
+                       '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
+                       /* the author of the post */
+                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                    ); ?>
                   </p>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>

+ 6 - 1
post-formats/format-image.php

@@ -7,7 +7,12 @@
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 
 
                   <p class="byline vcard">
                   <p class="byline vcard">
-                    <?php printf( __( 'Posted <time class="updated" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
+                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                       /* the time the post was published */
+                       '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
+                       /* the author of the post */
+                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                    ); ?>
                   </p>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>

+ 6 - 1
post-formats/format-link.php

@@ -7,7 +7,12 @@
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 
 
                   <p class="byline vcard">
                   <p class="byline vcard">
-                    <?php printf( __( 'Posted <time class="updated" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
+                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                       /* the time the post was published */
+                       '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
+                       /* the author of the post */
+                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                    ); ?>
                   </p>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>

+ 6 - 1
post-formats/format-quote.php

@@ -7,7 +7,12 @@
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 
 
                   <p class="byline vcard">
                   <p class="byline vcard">
-                    <?php printf( __( 'Posted <time class="updated" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
+                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                       /* the time the post was published */
+                       '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
+                       /* the author of the post */
+                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                    ); ?>
                   </p>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>

+ 6 - 1
post-formats/format-status.php

@@ -7,7 +7,12 @@
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 
 
                   <p class="byline vcard">
                   <p class="byline vcard">
-                    <?php printf( __( 'Posted <time class="updated" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
+                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                       /* the time the post was published */
+                       '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
+                       /* the author of the post */
+                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                    ); ?>
                   </p>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>

+ 6 - 1
post-formats/format-video.php

@@ -7,7 +7,12 @@
                   <h1 class="entry-title single-title" itemprop="name"><?php the_title(); ?></h1>
                   <h1 class="entry-title single-title" itemprop="name"><?php the_title(); ?></h1>
 
 
                   <p class="byline entry-meta vcard">
                   <p class="byline entry-meta vcard">
-                    <?php printf( __( 'Posted <time class="updated entry-time" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author entry-author" itemprop="author" itemscope itemptype="http://schema.org/Person">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
+                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                       /* the time the post was published */
+                       '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
+                       /* the author of the post */
+                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                    ); ?>
                   </p>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>

+ 8 - 1
post-formats/format.php

@@ -21,7 +21,14 @@
                   <h1 class="entry-title single-title" itemprop="headline" rel="bookmark"><?php the_title(); ?></h1>
                   <h1 class="entry-title single-title" itemprop="headline" rel="bookmark"><?php the_title(); ?></h1>
 
 
                   <p class="byline entry-meta vcard">
                   <p class="byline entry-meta vcard">
-                    <?php printf( __( 'Posted <time class="updated entry-time" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author entry-author" itemprop="author" itemscope itemptype="http://schema.org/Person">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
+
+                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                       /* the time the post was published */
+                       '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
+                       /* the author of the post */
+                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                    ); ?>
+
                   </p>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>

+ 12 - 7
search.php

@@ -11,13 +11,18 @@
 
 
 							<article id="post-<?php the_ID(); ?>" <?php post_class('cf'); ?> role="article">
 							<article id="post-<?php the_ID(); ?>" <?php post_class('cf'); ?> role="article">
 
 
-								<header class="article-header">
-
-									<h3 class="search-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
-
-                  <p class="byline vcard">
-                    <?php printf( __( 'Posted <time class="updated" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
-                  </p>
+								<header class="entry-header article-header">
+
+									<h3 class="search-title entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
+
+                  						<p class="byline entry-meta vcard">
+                    							<?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                   							    /* the time the post was published */
+                   							    '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
+                      							    /* the author of the post */
+                       							    '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                    							); ?>
+                  						</p>
 
 
 								</header>
 								</header>