Plugin Directory

Changeset 1320016


Ignore:
Timestamp:
01/02/2016 08:13:46 PM (10 years ago)
Author:
mampf
Message:

Deploy from Git

Location:
wp-jsonld/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-jsonld/trunk/readme.txt

    r1320002 r1320016  
    77Requires at least: 4.0
    88Tested up to: 4.4
    9 Stable tag: 0.2.4
     9Stable tag: 0.3.1
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2121    missing tags, putting objects into fields instead of just URLs for images, and implementing for more than just
    2222    articles.
     23
     24Also, this plugin plays nicely with [YASR - yet another star rating](https://de.wordpress.org/plugins/yet-another-stars-rating/). It will
     25remove yasr's invalid jsonld-syntax and instead use YASRs rating.
     26
     27All requests are being cached and purged on page update/edit etc.
    2328
    2429= Original description =
     
    50553. That’s it.
    5156
    52 **Compatibility.** This version requires php 5.4 for some options of json_encode. If you encounter any problems with the plugin you should check your web hotel’s php version.
     57**Compatibility.** This version requires php 5.4 for some options of json\_encode. If you encounter any problems with the plugin you should check your web hotel’s php version.
    5358
    5459== Frequently Asked Questions == ==
     
    7378== Changelog ==
    7479
     80= 0.3 =
     81* Use transients for caching.
     82* Use tag 'aggregateRating' if YSSR is installed.
     83
    7584= 0.2 =
    7685* Extended the functionality a bit and completely refactored the code to make it much more readable.
  • wp-jsonld/trunk/wp-jsonld.php

    r1320002 r1320016  
    6868
    6969    /**
    70      * createAuthor - create Author Markup
     70     * create_author_entity( - create Author Markup
    7171     *
    7272     * @param bool|FALSE $isParent
    7373     */
    74     function createAuthor($isParent = false) {
     74    function create_author_entity($isParent = false) {
    7575        $auId = get_the_author_meta( 'ID' );
    7676        $author = new Author($isParent);
     
    172172
    173173    function create_jsonld_author() {
    174         $markup = $this->createAuthor(true);
     174        $markup = $this->create_author_entity(true);
    175175        //$markup->mainEntityOfPage = createMainEntity('WebPage', $markup->url);
    176176        //$markup->generatedAt = date('Y-m-d H:i:s');
     
    213213    function create_jsonld_blogposting() {
    214214        $markup = $this->createBlogPosting(true);
    215         $markup->author = $this->createAuthor();
     215        $markup->author = $this->create_author_entity();
    216216        $markup->publisher = $this->createOrganization();
    217217        $markup->image = $this->createImage();
     
    271271
    272272        // if markup found, insert.
    273         if (!null === $markup) {
     273        if (null !== $markup) {
    274274            echo '<script type="application/ld+json">'
    275275                . $markup
Note: See TracChangeset for help on using the changeset viewer.