Changeset 2153620
- Timestamp:
- 09/09/2019 02:43:02 PM (6 years ago)
- Location:
- schema-app-structured-data-for-schemaorg
- Files:
-
- 26 added
- 7 edited
-
tags/1.14.1 (added)
-
tags/1.14.1/css (added)
-
tags/1.14.1/css/schemaStyle.css (added)
-
tags/1.14.1/data (added)
-
tags/1.14.1/data/tree.jsonld (added)
-
tags/1.14.1/hunch-schema.php (added)
-
tags/1.14.1/js (added)
-
tags/1.14.1/js/schema.js (added)
-
tags/1.14.1/js/schemaAdmin.js (added)
-
tags/1.14.1/js/schemaEditor.js (added)
-
tags/1.14.1/lib (added)
-
tags/1.14.1/lib/HunchSchema (added)
-
tags/1.14.1/lib/HunchSchema/Author.php (added)
-
tags/1.14.1/lib/HunchSchema/Blog.php (added)
-
tags/1.14.1/lib/HunchSchema/Category.php (added)
-
tags/1.14.1/lib/HunchSchema/Page.php (added)
-
tags/1.14.1/lib/HunchSchema/Post.php (added)
-
tags/1.14.1/lib/HunchSchema/Search.php (added)
-
tags/1.14.1/lib/HunchSchema/Tag.php (added)
-
tags/1.14.1/lib/HunchSchema/Thing.php (added)
-
tags/1.14.1/lib/SchemaEditor.php (added)
-
tags/1.14.1/lib/SchemaFront.php (added)
-
tags/1.14.1/lib/SchemaServer.php (added)
-
tags/1.14.1/lib/SchemaSettings.php (added)
-
tags/1.14.1/lib/classmap.php (added)
-
tags/1.14.1/readme.txt (added)
-
trunk/hunch-schema.php (modified) (1 diff)
-
trunk/lib/HunchSchema/Blog.php (modified) (2 diffs)
-
trunk/lib/HunchSchema/Category.php (modified) (1 diff)
-
trunk/lib/HunchSchema/Post.php (modified) (1 diff)
-
trunk/lib/HunchSchema/Tag.php (modified) (2 diffs)
-
trunk/lib/SchemaEditor.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
schema-app-structured-data-for-schemaorg/trunk/hunch-schema.php
r2129926 r2153620 5 5 * Plugin URI: http://www.schemaapp.com 6 6 * Description: This plugin adds http://schema.org structured data to your website 7 * Version: 1.14. 07 * Version: 1.14.1 8 8 * Author: Hunch Manifest 9 9 * Author URI: https://www.hunchmanifest.com -
schema-app-structured-data-for-schemaorg/trunk/lib/HunchSchema/Blog.php
r2074727 r2153620 26 26 27 27 28 $ blogPost = array();28 $hasPart = array(); 29 29 30 while ( have_posts()) : the_post();30 while ( have_posts() ) : the_post(); 31 31 32 $blogPost[] = array ( 33 '@type' => ! empty( $this->Settings['SchemaDefaultTypePost'] ) ? $this->Settings['SchemaDefaultTypePost'] : 'BlogPosting', 34 '@id' => get_the_permalink(), 35 'headline' => get_the_title(), 36 'url' => get_the_permalink(), 37 'datePublished' => get_the_date( 'Y-m-d' ), 38 'dateModified' => get_the_modified_date( 'Y-m-d' ), 39 'mainEntityOfPage' => get_the_permalink(), 40 'author' => $this->getAuthor(), 41 'publisher' => $this->getPublisher(), 42 'image' => $this->getImage(), 43 'wordCount' => str_word_count( get_the_content() ), 44 'keywords' => $this->getTags(), 45 'commentCount' => get_comments_number(), 46 'comment' => $this->getComments(), 32 $part = array( 33 '@type' => ! empty( $this->Settings['SchemaDefaultTypePost'] ) ? $this->Settings['SchemaDefaultTypePost'] : 'BlogPosting', 34 '@id' => get_the_permalink(), 35 'headline' => get_the_title(), 36 'url' => get_the_permalink(), 37 'datePublished' => get_the_date( 'Y-m-d' ), 38 'dateModified' => get_the_modified_date( 'Y-m-d' ), 39 'mainEntityOfPage' => get_the_permalink(), 40 'author' => $this->getAuthor(), 41 'publisher' => $this->getPublisher(), 42 'image' => $this->getImage(), 43 'wordCount' => str_word_count( get_the_content() ), 44 'keywords' => $this->getTags(), 47 45 ); 46 47 if ( get_comments_number() && empty( $this->Settings['SchemaHideComments'] ) ) { 48 $part['commentCount'] = get_comments_number(); 49 $part['comment'] = $this->getComments(); 50 } 51 52 $hasPart[] = $part; 48 53 49 54 endwhile; … … 60 65 61 66 if ( ! empty( $this->Settings['SchemaDefaultTypePost'] ) ) { 62 $this->schema['hasPart'] = $ blogPost;67 $this->schema['hasPart'] = $hasPart; 63 68 } else { 64 $this->schema['blogPost'] = $ blogPost;69 $this->schema['blogPost'] = $hasPart; 65 70 } 66 71 -
schema-app-structured-data-for-schemaorg/trunk/lib/HunchSchema/Category.php
r2074727 r2153620 15 15 $hasPart = array(); 16 16 17 while ( have_posts()) : the_post();17 while ( have_posts() ) : the_post(); 18 18 19 $hasPart[] = array 20 ( 21 '@type' => ! empty( $this->Settings['SchemaDefaultTypePost'] ) ? $this->Settings['SchemaDefaultTypePost'] : 'BlogPosting', 22 '@id' => get_the_permalink(), 23 'headline' => get_the_title(), 24 'url' => get_the_permalink(), 25 'datePublished' => get_the_date('Y-m-d'), 26 'dateModified' => get_the_modified_date('Y-m-d'), 27 'mainEntityOfPage' => get_the_permalink(), 28 'author' => $this->getAuthor(), 29 'publisher' => $this->getPublisher(), 30 'image' => $this->getImage(), 31 'keywords' => $this->getTags(), 32 'commentCount' => get_comments_number(), 33 'comment' => $this->getComments(), 34 ); 19 $part = array( 20 '@type' => ! empty( $this->Settings['SchemaDefaultTypePost'] ) ? $this->Settings['SchemaDefaultTypePost'] : 'BlogPosting', 21 '@id' => get_the_permalink(), 22 'headline' => get_the_title(), 23 'url' => get_the_permalink(), 24 'datePublished' => get_the_date('Y-m-d'), 25 'dateModified' => get_the_modified_date('Y-m-d'), 26 'mainEntityOfPage' => get_the_permalink(), 27 'author' => $this->getAuthor(), 28 'publisher' => $this->getPublisher(), 29 'image' => $this->getImage(), 30 'keywords' => $this->getTags(), 31 ); 32 33 if ( get_comments_number() && empty( $this->Settings['SchemaHideComments'] ) ) { 34 $part['commentCount'] = get_comments_number(); 35 $part['comment'] = $this->getComments(); 36 } 37 38 $hasPart[] = $part; 35 39 36 40 endwhile; 37 41 38 42 39 $this->schema = array 40 ( 41 '@context' => 'http://schema.org/', 43 $this->schema = array( 44 '@context' => 'http://schema.org/', 42 45 '@type' => $this->schemaType, 43 46 '@id' => get_category_link( get_query_var( 'cat' ) ) . '#' . $this->schemaType, -
schema-app-structured-data-for-schemaorg/trunk/lib/HunchSchema/Post.php
r2074727 r2153620 14 14 15 15 16 $this->schema['@type'] = ! empty( $this->Settings['SchemaDefaultTypePost'] ) ? $this->Settings['SchemaDefaultTypePost'] : 'BlogPosting'; 16 $this->schemaType = ! empty( $this->Settings['SchemaDefaultTypePost'] ) ? $this->Settings['SchemaDefaultTypePost'] : 'BlogPosting'; 17 $this->schema['@type'] = $this->schemaType; 17 18 $this->schema['@id'] = get_permalink() . '#' . $this->schema['@type']; 18 19 -
schema-app-structured-data-for-schemaorg/trunk/lib/HunchSchema/Tag.php
r2074727 r2153620 12 12 public $schemaType = "CollectionPage"; 13 13 14 public function getResource( $pretty = false ) 15 { 14 public function getResource( $pretty = false ) { 16 15 $hasPart = array(); 17 16 18 17 while ( have_posts() ) : the_post(); 19 18 20 $hasPart[] = array 21 ( 19 $part = array( 22 20 '@type' => ! empty( $this->Settings['SchemaDefaultTypePost'] ) ? $this->Settings['SchemaDefaultTypePost'] : 'BlogPosting', 23 21 '@id' => get_the_permalink(), … … 31 29 'image' => $this->getImage(), 32 30 'keywords' => $this->getTags(), 33 'commentCount' => get_comments_number(),34 'comment' => $this->getComments(),35 31 ); 32 33 if ( get_comments_number() && empty( $this->Settings['SchemaHideComments'] ) ) { 34 $part['commentCount'] = get_comments_number(); 35 $part['comment'] = $this->getComments(); 36 } 37 38 $hasPart[] = $part; 36 39 37 40 endwhile; 38 41 39 42 40 $this->schema = array 41 ( 43 $this->schema = array( 42 44 '@context' => 'http://schema.org/', 43 45 '@type' => $this->schemaType, -
schema-app-structured-data-for-schemaorg/trunk/lib/SchemaEditor.php
r1976919 r2153620 117 117 <button id="extendSchema" value="Extend Markup"><a target="_blank" href="#">Add to <?php echo $schemaObj->schemaType; ?> Default Markup</a></button> 118 118 <?php endif; ?> 119 <input type="hidden" id="resourceURI" value="<?php echo get_permalink($post->ID); ?> "/>119 <input type="hidden" id="resourceURI" value="<?php echo get_permalink($post->ID); ?>#<?php print $schemaObj->schemaType; ?>"/> 120 120 <textarea id="resourceData" style="display:none"><?php echo esc_attr($jsonLd); ?></textarea> 121 121 <?php -
schema-app-structured-data-for-schemaorg/trunk/readme.txt
r2129926 r2153620 9 9 Requires PHP: 5.4 10 10 Tested up to: 5.2 11 Stable tag: 1.14. 011 Stable tag: 1.14.1 12 12 License: GPL2 13 13 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 87 87 == Changelog == 88 88 89 = 1.14.1 = 90 - Fix, Remove comment schema setting for archive pages 91 89 92 = 1.14.0 = 90 93 - Feature, Added webhook support for schema data events which will update markup cache in realtime … … 380 383 == Upgrade Notice == 381 384 382 = 1.14. 0=383 - Added webhook support for schema data events, WC migrate license web service385 = 1.14.1 = 386 - Remove comment schema setting for archive pages
Note: See TracChangeset
for help on using the changeset viewer.