Răsfoiți Sursa

replacing pubdate as it's not in the spec

we replaced it with itemprop="datePublished"
Eddie Machado 11 ani în urmă
părinte
comite
8b3610d4e8

+ 1 - 1
archive-custom_type.php

@@ -30,7 +30,7 @@
 
 
 									<h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
 									<h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
 									<p class="byline vcard"><?php
 									<p class="byline vcard"><?php
-										printf( __( 'Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>', 'bonestheme' ), get_the_time( 'Y-m-j' ), get_the_time( __( 'F jS, Y', 'bonestheme' ) ), get_author_posts_url( get_the_author_meta( 'ID' ) ));
+										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( __( 'F jS, Y', 'bonestheme' ) ), get_author_posts_url( get_the_author_meta( 'ID' ) ));
 									?></p>
 									?></p>
 
 
 								</header>
 								</header>

+ 1 - 1
archive.php

@@ -49,7 +49,7 @@
 
 
 									<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
 									<p class="byline vcard"><?php
-										printf(__( 'Posted', 'bonestheme' ) . ' <time class="updated" datetime="%1$s" pubdate>%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(', '));
+										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>
 
 
 								</header>
 								</header>

+ 1 - 1
index.php

@@ -14,7 +14,7 @@
 
 
 									<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">
 									<p class="byline vcard">
-                                        <?php printf( __( 'Posted <time class="updated" datetime="%1$s" pubdate>%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 <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>
 									</p>
 
 
 								</header>
 								</header>

+ 1 - 1
page-custom.php

@@ -30,7 +30,7 @@
 									<h1 class="page-title"><?php the_title(); ?></h1>
 									<h1 class="page-title"><?php the_title(); ?></h1>
 
 
 									<p class="byline vcard">
 									<p class="byline vcard">
-										<?php printf( __( 'Posted <time class="updated" datetime="%1$s" pubdate>%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 <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>
 									</p>
 
 
 
 

+ 1 - 1
page.php

@@ -15,7 +15,7 @@
 									<h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
 									<h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
 
 
 									<p class="byline vcard">
 									<p class="byline vcard">
-										<?php printf( __( 'Posted <time class="updated" datetime="%1$s" pubdate>%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 <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>
 									</p>
 
 
 								</header> <?php // end article header ?>
 								</header> <?php // end article header ?>

+ 2 - 2
post-formats/format-aside.php

@@ -7,7 +7,7 @@
                   <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" pubdate>%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 <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>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>
@@ -45,4 +45,4 @@
 
 
                 <?php comments_template(); ?>
                 <?php comments_template(); ?>
 
 
-              </article> <?php // end article ?>
+              </article> <?php // end article ?>

+ 2 - 2
post-formats/format-audio.php

@@ -7,7 +7,7 @@
                   <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" pubdate>%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 <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>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>
@@ -45,4 +45,4 @@
 
 
                 <?php comments_template(); ?>
                 <?php comments_template(); ?>
 
 
-              </article> <?php // end article ?>
+              </article> <?php // end article ?>

+ 2 - 2
post-formats/format-chat.php

@@ -7,7 +7,7 @@
                   <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" pubdate>%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 <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>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>
@@ -45,4 +45,4 @@
 
 
                 <?php comments_template(); ?>
                 <?php comments_template(); ?>
 
 
-              </article> <?php // end article ?>
+              </article> <?php // end article ?>

+ 2 - 2
post-formats/format-gallery.php

@@ -7,7 +7,7 @@
                   <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" pubdate>%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 <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>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>
@@ -45,4 +45,4 @@
 
 
                 <?php comments_template(); ?>
                 <?php comments_template(); ?>
 
 
-              </article> <?php // end article ?>
+              </article> <?php // end article ?>

+ 2 - 2
post-formats/format-image.php

@@ -7,7 +7,7 @@
                   <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" pubdate>%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 <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>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>
@@ -45,4 +45,4 @@
 
 
                 <?php comments_template(); ?>
                 <?php comments_template(); ?>
 
 
-              </article> <?php // end article ?>
+              </article> <?php // end article ?>

+ 2 - 2
post-formats/format-link.php

@@ -7,7 +7,7 @@
                   <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" pubdate>%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 <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>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>
@@ -48,4 +48,4 @@
 
 
                 <?php comments_template(); ?>
                 <?php comments_template(); ?>
 
 
-              </article> <?php // end article ?>
+              </article> <?php // end article ?>

+ 2 - 2
post-formats/format-quote.php

@@ -7,7 +7,7 @@
                   <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" pubdate>%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 <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>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>
@@ -48,4 +48,4 @@
 
 
                 <?php comments_template(); ?>
                 <?php comments_template(); ?>
 
 
-              </article> <?php // end article ?>
+              </article> <?php // end article ?>

+ 2 - 2
post-formats/format-status.php

@@ -7,7 +7,7 @@
                   <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" pubdate>%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 <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>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>
@@ -45,4 +45,4 @@
 
 
                 <?php comments_template(); ?>
                 <?php comments_template(); ?>
 
 
-              </article> <?php // end article ?>
+              </article> <?php // end article ?>

+ 2 - 2
post-formats/format-video.php

@@ -7,7 +7,7 @@
                   <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" pubdate>%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 <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>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>
@@ -45,4 +45,4 @@
 
 
                 <?php comments_template(); ?>
                 <?php comments_template(); ?>
 
 
-              </article> <?php // end article ?>
+              </article> <?php // end article ?>

+ 2 - 2
post-formats/format.php

@@ -21,7 +21,7 @@
                   <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" pubdate>%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 <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>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>
@@ -62,4 +62,4 @@
 
 
                 <?php comments_template(); ?>
                 <?php comments_template(); ?>
 
 
-              </article> <?php // end article ?>
+              </article> <?php // end article ?>

+ 2 - 2
search.php

@@ -16,7 +16,7 @@
 									<h3 class="search-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
 									<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">
                   <p class="byline vcard">
-                    <?php printf( __( 'Posted <time class="updated" datetime="%1$s" pubdate>%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 <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>
                   </p>
 
 
 								</header>
 								</header>
@@ -27,7 +27,7 @@
 								</section>
 								</section>
 
 
 								<footer class="article-footer">
 								<footer class="article-footer">
-									
+
 									<?php if(get_the_category_list(', ') != ''): ?>
 									<?php if(get_the_category_list(', ') != ''): ?>
                   					<?php printf( __( 'Filed under: %1$s', 'bonestheme' ), get_the_category_list(', ') ); ?>
                   					<?php printf( __( 'Filed under: %1$s', 'bonestheme' ), get_the_category_list(', ') ); ?>
                   					<?php endif; ?>
                   					<?php endif; ?>

+ 1 - 1
single-custom_type.php

@@ -31,7 +31,7 @@
 
 
 									<h1 class="single-title custom-post-type-title"><?php the_title(); ?></h1>
 									<h1 class="single-title custom-post-type-title"><?php the_title(); ?></h1>
 									<p class="byline vcard"><?php
 									<p class="byline vcard"><?php
-										printf( __( 'Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme' ), get_the_time( 'Y-m-j' ), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) ), get_the_term_list( $post->ID, 'custom_cat', ' ', ', ', '' ) );
+										printf( __( 'Posted <time class="updated" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme' ), get_the_time( 'Y-m-j' ), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) ), get_the_term_list( $post->ID, 'custom_cat', ' ', ', ', '' ) );
 									?></p>
 									?></p>
 
 
 								</header>
 								</header>

+ 1 - 1
taxonomy-custom_cat.php

@@ -30,7 +30,7 @@
 
 
 									<h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
 									<h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
 									<p class="byline vcard"><?php
 									<p class="byline vcard"><?php
-										printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link(), get_the_term_list( get_the_ID(), 'custom_cat', "", ", ", "" ));
+										printf(__('Posted <time class="updated" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link(), get_the_term_list( get_the_ID(), 'custom_cat', "", ", ", "" ));
 									?></p>
 									?></p>
 
 
 								</header>
 								</header>