Skip to content

Commit

Permalink
4.2.5
Browse files Browse the repository at this point in the history
Rich Snippet : replace itemtype to Product
  • Loading branch information
conseilgouz committed Mar 1, 2024
1 parent 40848aa commit 36b8131
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 13 deletions.
Binary file modified packages/plg_extravote_ajax.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions packages/plg_extravote_ajax/extravote.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<extension version="5.0" type="plugin" group="ajax" method="upgrade">
<name>PLG_AJAX_EXTRAVOTE</name>
<author>Conseilgouz</author>
<creationDate>2024-02-29</creationDate>
<creationDate>2024-03-01</creationDate>
<copyright>Copyright (C) 2022 ConseilGouz. All rights reserved.</copyright>
<license>GNU General Public License version 3 or later; see LICENSE.txt</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>https://www.conseilgouz.com</authorUrl>
<version>4.2.4</version>
<version>4.2.5</version>
<description>PLG_AJAX_EXTRAVOTE_XML_DESCRIPTION</description>
<scriptfile>extravote.scriptfile.php</scriptfile>
<namespace path="src">ConseilGouz\Plugin\Ajax\Extravote</namespace>
Expand Down
Binary file modified packages/plg_extravote_content.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions packages/plg_extravote_content/extravote.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<extension version="4.0" type="plugin" group="content" method="upgrade">
<extension version="5.0" type="plugin" group="content" method="upgrade">
<name>PLG_CONTENT_EXTRAVOTE</name>
<author>ConseilGouz</author>
<creationDate>2024-02-29</creationDate>
<creationDate>2024-03-01</creationDate>
<copyright>Copyright (C) 2024 Conseilgouz. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>https://www.conseilgouz.com</authorUrl>
<version>4.2.4</version>
<version>4.2.5</version>
<description>PLG_CONTENT_EXTRAVOTE_XML_DESCRIPTION</description>
<namespace path="src">ConseilGouz\Plugin\Content\Extravote</namespace>
<scriptfile>extravote.scriptfile.php</scriptfile>
Expand Down
13 changes: 7 additions & 6 deletions packages/plg_extravote_content/src/Extension/Extravote.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,19 @@ protected function plgContentExtraVoteStars( $id, $rating_sum, $rating_count, $x
$html .="
</".$container.">";
if ($add_snippets) {
$html .= "<div class=\"visually-hidden\" itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\">";
$html .= "<div itemprop=\"itemReviewed\" itemscope itemtype=\"https://schema.org/WebApplication\">";
$html .= "<div class=\"visually-hidden\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Product\">";
$html .= "<span itemprop=\"name\">".$this->article_title."</span>";
$html .= "<span itemprop=\"operatingSystem\">Joomla</span>";
$html .= "<div itemprop=\"offers\" itemscope itemtype=\"https://schema.org/Offer\"><span itemprop=\"price\">0</span></div>";
$html .= "</div>";
$html .= "<div class=\"visually-hidden\" itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\">";
// $html .= "<div itemprop=\"itemReviewed\" itemscope itemtype=\"https://schema.org/WebApplication\">";
// $html .= "<span itemprop=\"operatingSystem\">Joomla</span>";
// $html .= "<div itemprop=\"offers\" itemscope itemtype=\"https://schema.org/Offer\"><span itemprop=\"price\">0</span></div>";
// $html .= "</div>";
$html .= "<meta itemprop=\"ratingCount\" content=\"".$rating_count."\" />";
$html .= "<meta itemprop=\"ratingCount\" content=\"".$rating_count."\" />";
$html .= "<meta itemprop=\"ratingValue\" content=\"".$rating."\" />";
$html .= "<meta itemprop=\"bestRating\" content=\"5\" />";
$html .= "<meta itemprop=\"worstRating\" content=\"1\" />";
$html .= "</div>";
$html .= "</div></div>";
}
return $html;
}
Expand Down
4 changes: 2 additions & 2 deletions pkg_extravote.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
type="package" method="upgrade">
<name>ExtraVote</name>
<author>Conseilgouz</author>
<creationDate>2024-02-29</creationDate>
<creationDate>2024-03-01</creationDate>
<packagename>extravote</packagename>
<copyright>Copyright (C) 2024 Conseilgouz. All rights reserved.</copyright>
<license>GNU General Public License version 3 or later; see LICENSE.txt</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>https://www.conseilgouz.com</authorUrl>
<version>4.2.4</version>
<version>4.2.5</version>
<description>Extravote provides the ajax, 5 star rating feature to your Joomla Content.</description>
<files folder="packages">
<file type="plugin" id="extravote" group="content">plg_extravote_content.zip</file>
Expand Down
11 changes: 11 additions & 0 deletions pkg_extravote_changelog.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<changelogs>
<changelog>
<element>extravote</element>
<type>package</type>
<version>4.2.5</version>
<note>
<item>Update : 01/03/2024</item>
</note>
<fix>
<item>Rich Snippet : replace itemtype to Product</item>
</fix>
</changelog>
<changelog>
<element>extravote</element>
<type>package</type>
Expand Down

0 comments on commit 36b8131

Please sign in to comment.