Răsfoiți Sursa

adding some advanced schema

mostly itemtype and itemscope
this can be easily customized if you’re in the mood
Eddie Machado 11 ani în urmă
părinte
comite
28ef88e3d6

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

@@ -1,13 +1,13 @@
 
 
 
 
-              <article id="post-<?php the_ID(); ?>" <?php post_class('cf'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
+              <article id="post-<?php the_ID(); ?>" <?php post_class('cf'); ?> role="article" itemscope itemprop="blogPost" itemtype="http://schema.org/BlogPosting">
 
 
-                <header class="article-header">
+                <header class="article-header entry-header">
 
 
                   <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">
-                    <?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 <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' ) )); ?>
                   </p>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>
@@ -38,7 +38,7 @@
                   ?>
                   ?>
                 </section> <?php // end article section ?>
                 </section> <?php // end article section ?>
 
 
-                <footer class="article-footer">
+                <footer class="article-footer entry-footer">
                   <?php the_tags( '<p class="tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?>
                   <?php the_tags( '<p class="tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?>
 
 
                 </footer> <?php // end article footer ?>
                 </footer> <?php // end article footer ?>

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

@@ -1,18 +1,18 @@
 
 
 
 
-              <article id="post-<?php the_ID(); ?>" <?php post_class('cf'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
+              <article id="post-<?php the_ID(); ?>" <?php post_class('cf'); ?> role="article" itemscope itemtype="http://schema.org/AudioObject">
 
 
                 <header class="article-header">
                 <header class="article-header">
 
 
-                  <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
+                  <h1 class="entry-title single-title" itemprop="name"><?php the_title(); ?></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 <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' ) )); ?>
                   </p>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>
 
 
-                <section class="entry-content cf" itemprop="articleBody">
+                <section class="entry-content cf" itemprop="description">
                   <?php
                   <?php
                     // the content (pretty self explanatory huh)
                     // the content (pretty self explanatory huh)
                     the_content();
                     the_content();

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

@@ -1,18 +1,18 @@
 
 
 
 
-              <article id="post-<?php the_ID(); ?>" <?php post_class('cf'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
+              <article id="post-<?php the_ID(); ?>" <?php post_class('cf'); ?> role="article" itemscope itemtype="http://schema.org/VideoObject">
 
 
-                <header class="article-header">
+                <header class="article-header entry-header">
 
 
-                  <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
+                  <h1 class="entry-title single-title" itemprop="name"><?php the_title(); ?></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 <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' ) )); ?>
                   </p>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>
 
 
-                <section class="entry-content cf" itemprop="articleBody">
+                <section class="entry-content cf" itemprop="description">
                   <?php
                   <?php
                     // the content (pretty self explanatory huh)
                     // the content (pretty self explanatory huh)
                     the_content();
                     the_content();

+ 5 - 5
post-formats/format.php

@@ -14,14 +14,14 @@
                 */
                 */
               ?>
               ?>
 
 
-              <article id="post-<?php the_ID(); ?>" <?php post_class('cf'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
+              <article id="post-<?php the_ID(); ?>" <?php post_class('cf'); ?> role="article" itemscope itemprop="blogPost" itemtype="http://schema.org/BlogPosting">
 
 
-                <header class="article-header">
+                <header class="article-header entry-header">
 
 
-                  <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
+                  <h1 class="entry-title single-title" itemprop="headline" rel="bookmark"><?php the_title(); ?></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 <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' ) )); ?>
                   </p>
                   </p>
 
 
                 </header> <?php // end article header ?>
                 </header> <?php // end article header ?>