reviewscouk_reviews - Version 0.3.2

Version Notes

- Bugfixes

Download this release

Release Info

Developer Reviews.co.uk
Extension reviewscouk_reviews
Version 0.3.2
Comparing to
See all releases


Code changes from version 0.3.1 to 0.3.2

app/design/frontend/base/default/template/reviews/product_reviews_widget.phtml CHANGED
@@ -1,7 +1,6 @@
1
  <?php
2
-
3
-
4
  $enabled = Mage::getStoreConfig('reviewscouk_reviews_settings/widget/product_widget_enabled', Mage::app()->getStore());
 
5
  $colour = Mage::getStoreConfig('reviewscouk_reviews_settings/widget/product_widget_colour', Mage::app()->getStore());
6
  $store_id = Mage::getStoreConfig('reviewscouk_reviews_settings/api/reviews_store_id', Mage::app()->getStore());
7
  $region = Mage::getStoreConfig('reviewscouk_reviews_settings/api/reviews_region', Mage::app()->getStore());
@@ -20,8 +19,7 @@ if(!preg_match('/^#[a-f0-9]{6}$/i', $colour)) $colour = '#5db11f';
20
 
21
 
22
  <!-- Only Display this if enabled -->
23
- <?php if ($enabled) : ?>
24
-
25
  <script src="https://<?php echo $api_url ?>/product/dist.js"></script>
26
  <div id="widget"></div>
27
  <script type="text/javascript">
@@ -39,6 +37,18 @@ if(!preg_match('/^#[a-f0-9]{6}$/i', $colour)) $colour = '#5db11f';
39
  showAvatars: true
40
  });
41
  </script>
 
42
 
43
- <?php endif ?>
 
 
 
 
 
 
 
 
 
 
 
44
 
1
  <?php
 
 
2
  $enabled = Mage::getStoreConfig('reviewscouk_reviews_settings/widget/product_widget_enabled', Mage::app()->getStore());
3
+ $rich_snippets_enabled = Mage::getStoreConfig('reviewscouk_reviews_settings/rich_snippet/rich_snippet_enabled', Mage::app()->getStore());
4
  $colour = Mage::getStoreConfig('reviewscouk_reviews_settings/widget/product_widget_colour', Mage::app()->getStore());
5
  $store_id = Mage::getStoreConfig('reviewscouk_reviews_settings/api/reviews_store_id', Mage::app()->getStore());
6
  $region = Mage::getStoreConfig('reviewscouk_reviews_settings/api/reviews_region', Mage::app()->getStore());
19
 
20
 
21
  <!-- Only Display this if enabled -->
22
+ <?php if ($enabled): ?>
 
23
  <script src="https://<?php echo $api_url ?>/product/dist.js"></script>
24
  <div id="widget"></div>
25
  <script type="text/javascript">
37
  showAvatars: true
38
  });
39
  </script>
40
+ <?php endif; ?>
41
 
42
+ <?php
43
+ if($rich_snippets_enabled):
44
+ ?>
45
+ <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
46
+ <span itemprop="itemReviewed"><?php echo Mage::registry('current_product')->getName(); ?></span>
47
+ has a rating of <span itemprop="ratingValue">{{ product.metafields.reviewscouk.rating }}</span> stars
48
+ based on <span itemprop="ratingCount">{{ product.metafields.reviewscouk.total }}</span> reviews.
49
+ </div>
50
+ </div>
51
+ <?php
52
+ endif;
53
+ ?>
54
 
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>reviewscouk_reviews</name>
4
- <version>0.3.1</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Reviews.co.uk Integration Plugin</summary>
10
  <description>Reviews.co.uk Integration Plugin</description>
11
- <notes>- Added Export Feature</notes>
12
  <authors><author><name>Liam Keily</name><user>Liam</user><email>liam@reviews.co.uk</email></author></authors>
13
- <date>2015-08-19</date>
14
- <time>13:35:42</time>
15
- <contents><target name="magecommunity"><dir name="Reviewscouk"><dir name="Reviews"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Region.php" hash="65d7d2f061114099282e40a5353dc6a9"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="b799266bdb83494aaf103f5a308bd3ee"/></dir><dir name="Model"><file name="Observer-old.php" hash="b378d06cbae23376c960db51114ac2f0"/><file name="Observer.php" hash="24927a792c86115e774e08cc660af929"/><file name=".Observer.php.swm" hash="02ddb0f09bf6b144c0fb63d157596deb"/><file name=".Observer.php.swn" hash="42613171fa8b52e174f0cc188a202098"/><file name=".Observer.php.swo" hash="cfcd157014f360e61dbbb96aaa62daa0"/><file name=".Observer.php.swp" hash="f6e08ade29379e201ae96a92903f2c34"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ReviewsController.php" hash="8ef86ec4317fe210c6526c6c30187a44"/></dir><file name="IndexController.php" hash="795248e5f8bd32b1a8a1b94a655e7074"/></dir><dir name="etc"><file name="adminhtml.xml" hash="c34c86777be121695f3a73726c51a64a"/><file name="config.xml" hash="ef58f1834e635ebb685ea32d36838209"/><file name="system.xml" hash="5b598caaa570bd6823653ae60eaa72d5"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Reviewscouk_Reviews.xml" hash="347761ff6c475622697073d62f52e014"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="reviews"><file name="dashboard.phtml" hash="925eeb5ee6bee1c7bf973f60008c1f3f"/><file name="export.phtml" hash="ab1225207cd4631941735c9a99594b65"/><file name=".dashboard.phtml.swp" hash="a611a1078c915c459d205799b79ce51c"/></dir></dir><dir name="layout"><file name="reviews_admin.xml" hash="3cdd4facfeb240634d81843cae1a5325"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="reviews_layout.xml" hash="dbe6efb46b1b965aefacf71d0dd11e77"/></dir><dir name="template"><dir name="reviews"><file name="product_reviews_widget.phtml" hash="af01312fc9486b6080834567e0f37fb1"/><file name=".product_reviews_widget.phtml.swo" hash="a99aa2bf6db44be4aec81fa191793094"/><file name=".product_reviews_widget.phtml.swp" hash="5ba6464961b6ad42427db5a59c5fa7e5"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>reviewscouk_reviews</name>
4
+ <version>0.3.2</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Reviews.co.uk Integration Plugin</summary>
10
  <description>Reviews.co.uk Integration Plugin</description>
11
+ <notes>- Bugfixes</notes>
12
  <authors><author><name>Liam Keily</name><user>Liam</user><email>liam@reviews.co.uk</email></author></authors>
13
+ <date>2015-09-04</date>
14
+ <time>11:38:09</time>
15
+ <contents><target name="magecommunity"><dir name="Reviewscouk"><dir name="Reviews"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Region.php" hash="65d7d2f061114099282e40a5353dc6a9"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="b799266bdb83494aaf103f5a308bd3ee"/></dir><dir name="Model"><file name="Observer-old.php" hash="b378d06cbae23376c960db51114ac2f0"/><file name="Observer.php" hash="6d03f143367bf29478a79e5fd3987e85"/><file name=".Observer.php.swm" hash="02ddb0f09bf6b144c0fb63d157596deb"/><file name=".Observer.php.swn" hash="42613171fa8b52e174f0cc188a202098"/><file name=".Observer.php.swo" hash="cfcd157014f360e61dbbb96aaa62daa0"/><file name=".Observer.php.swp" hash="f6e08ade29379e201ae96a92903f2c34"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ReviewsController.php" hash="8ef86ec4317fe210c6526c6c30187a44"/></dir><file name="IndexController.php" hash="7007f3bed91c42e2f128f0c00f65937e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="c34c86777be121695f3a73726c51a64a"/><file name="config.xml" hash="4433c04293b6ee55f74e086c978aa71b"/><file name="system.xml" hash="5062c2b34061dacf47e14e467dd6a36b"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Reviewscouk_Reviews.xml" hash="347761ff6c475622697073d62f52e014"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="reviews"><file name="dashboard.phtml" hash="925eeb5ee6bee1c7bf973f60008c1f3f"/><file name="export.phtml" hash="ab1225207cd4631941735c9a99594b65"/><file name=".dashboard.phtml.swp" hash="a611a1078c915c459d205799b79ce51c"/></dir></dir><dir name="layout"><file name="reviews_admin.xml" hash="3cdd4facfeb240634d81843cae1a5325"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="reviews_layout.xml" hash="dbe6efb46b1b965aefacf71d0dd11e77"/></dir><dir name="template"><dir name="reviews"><file name="product_reviews_widget.phtml" hash="b3bd788c0e851ec407b0f0643932712f"/><file name=".product_reviews_widget.phtml.swo" hash="a99aa2bf6db44be4aec81fa191793094"/><file name=".product_reviews_widget.phtml.swp" hash="5ba6464961b6ad42427db5a59c5fa7e5"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>