Преглед на файлове

adding some advanced schema

mostly itemtype and itemscope
this can be easily customized if you’re in the mood
Eddie Machado преди 11 години
родител
ревизия
28ef88e3d6
променени са 4 файла, в които са добавени 21 реда и са изтрити 21 реда
  1. 5 5
      post-formats/format-aside.php
  2. 5 5
      post-formats/format-audio.php
  3. 6 6
      post-formats/format-video.php
  4. 5 5
      post-formats/format.php

+ 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>
 
-                  <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>
 
                 </header> <?php // end article header ?>
@@ -38,7 +38,7 @@
                   ?>
                 </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>' ); ?>
 
                 </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">
 
-                  <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>
 
                 </header> <?php // end article header ?>
 
-                <section class="entry-content cf" itemprop="articleBody">
+                <section class="entry-content cf" itemprop="description">
                   <?php
                     // the content (pretty self explanatory huh)
                     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>
 
                 </header> <?php // end article header ?>
 
-                <section class="entry-content cf" itemprop="articleBody">
+                <section class="entry-content cf" itemprop="description">
                   <?php
                     // the content (pretty self explanatory huh)
                     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>
 
                 </header> <?php // end article header ?>