reviewscouk_reviews - Version 0.9.0

Version Notes

- Added Rating Snippet

- Code Refactor

- Simplified Queue Invitations Settings

- Allow Custom CSS for Product Widget

Download this release

Release Info

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


Code changes from version 0.8.1 to 0.9.0

app/design/adminhtml/default/default/template/reviews/dashboard.phtml CHANGED
@@ -3,10 +3,7 @@ $store_id = Mage::getStoreConfig('reviewscouk_reviews_settings/api/reviews_store
3
  $apikey = Mage::getStoreConfig('reviewscouk_reviews_settings/api/reviews_api_key');
4
  $region = Mage::getStoreConfig('reviewscouk_reviews_settings/api/reviews_region');
5
 
6
- $url = 'https://dash.reviews.co.uk';
7
- if($region == 'US'){
8
- $url = 'https://dash.review.io';
9
- }
10
  ?>
11
 
12
  <iframe src="<?php echo $url; ?>/login/api?store=<?php echo $store_id;?>&apikey=<?php echo $apikey; ?>" style="border:3px solid green;height:600px;width:100%;"></iframe>
3
  $apikey = Mage::getStoreConfig('reviewscouk_reviews_settings/api/reviews_api_key');
4
  $region = Mage::getStoreConfig('reviewscouk_reviews_settings/api/reviews_region');
5
 
6
+ $url = Mage::helper('reviewshelper')->getReviewsUrl('dash');
 
 
 
7
  ?>
8
 
9
  <iframe src="<?php echo $url; ?>/login/api?store=<?php echo $store_id;?>&apikey=<?php echo $apikey; ?>" style="border:3px solid green;height:600px;width:100%;"></iframe>
app/design/frontend/base/default/layout/reviews_layout.xml CHANGED
@@ -2,12 +2,12 @@
2
  <layout>
3
  <catalog_product_view>
4
  <reference name="content">
5
- <block type="page/html" name="product_reviews_widget" template="reviews/product_reviews_widget.phtml" after="-" />
6
  </reference>
7
  </catalog_product_view>
8
  <default>
9
  <reference name="before_body_end">
10
- <block type="core/template" name="reviews_rich_snippet" template="reviews/rich_snippet.phtml" />
11
  </reference>
12
  </default>
13
  </layout>
2
  <layout>
3
  <catalog_product_view>
4
  <reference name="content">
5
+ <block type="reviews/widget" name="product_reviews_widget" template="reviews/product_reviews_widget.phtml" after="-" />
6
  </reference>
7
  </catalog_product_view>
8
  <default>
9
  <reference name="before_body_end">
10
+ <block type="reviews/footer" name="reviews_footer" template="reviews/footer.phtml" />
11
  </reference>
12
  </default>
13
  </layout>
app/design/frontend/base/default/template/reviews/footer.phtml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!-- Rich Snippet -->
2
+ <?php
3
+ echo $this->includeRichSnippet();
4
+ echo $this->includeRatingSnippet();
app/design/frontend/base/default/template/reviews/product_reviews_widget.phtml CHANGED
@@ -1,5 +1,2 @@
1
  <?php
2
- $enabled = Mage::getStoreConfig('reviewscouk_reviews_settings/widget/product_widget_enabled', Mage::app()->getStore());
3
- if ($enabled){
4
- echo Mage::helper('reviewshelper')->getProductWidget();
5
- }
1
  <?php
2
+ echo $this->includeProductWidget();
 
 
 
app/design/frontend/base/default/template/reviews/rich_snippet.phtml DELETED
@@ -1,4 +0,0 @@
1
- <!-- Rich Snippet -->
2
- <?php
3
- echo Mage::helper('reviewshelper')->autoRichSnippet();
4
- ?>
 
 
 
 
package.xml CHANGED
@@ -1,18 +1,24 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>reviewscouk_reviews</name>
4
- <version>0.8.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>Force Product Widget To Bottom</notes>
 
 
 
 
 
 
12
  <authors><author><name>Reviews.co.uk</name><user>Reviews</user><email>support@reviews.co.uk</email></author></authors>
13
- <date>2016-07-15</date>
14
- <time>11:21:38</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"/><file name="Widget.php" hash="c7571f25487b816796e3bf7b8c502f44"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="a5c33a7d0958a9b224e52b2fa2811242"/></dir><dir name="Model"><file name="Observer.php" hash="625a3b0d0cccb42e8204568df78ce7d5"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ReviewsController.php" hash="c39e013894681ece3d886041637cc1da"/></dir><file name="IndexController.php" hash="d6512ab7645eab3c191763ee217bfc61"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1ef6673386095b6c8a7a7aefb654951b"/><file name="config.xml" hash="afb980810ed18c9519ce79de487498e3"/><file name="system.xml" hash="e1bd10da3775fc2e9516e31c159657ca"/></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"/></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="2b1883be07a02d65796650af5b59caa2"/></dir><dir name="template"><dir name="reviews"><file name="product_reviews_widget.phtml" hash="3847d66e58638813eb3391c1fc49a683"/><file name="rich_snippet.phtml" hash="6e9381dc88d32275f36a53017d04e06e"/><file name=".DS_Store" hash="4fe84b7db7aa067d7fd4b3ee082e4b2f"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_GB"><file name="Reviewscouk_Reviews.csv" hash="4a64b1cd02c3e438d8489e36580dec0c"/></dir><dir name="fr_FR"><file name="Reviewscouk_Reviews.csv" hash="6c21952ba2444d065a431fb147234f07"/></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.9.0</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 Rating Snippet&#xD;
12
+ &#xD;
13
+ - Code Refactor&#xD;
14
+ &#xD;
15
+ - Simplified Queue Invitations Settings&#xD;
16
+ &#xD;
17
+ - Allow Custom CSS for Product Widget</notes>
18
  <authors><author><name>Reviews.co.uk</name><user>Reviews</user><email>support@reviews.co.uk</email></author></authors>
19
+ <date>2016-09-19</date>
20
+ <time>15:25:20</time>
21
+ <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"/><file name="Widget.php" hash="c7571f25487b816796e3bf7b8c502f44"/></dir></dir></dir></dir></dir><dir name="Block"><dir name="Product"><file name="List.php" hash="e432011288d163af62ebbce453969229"/><file name="View.php" hash="3850b0bcd31de618a3bf994927294941"/></dir><dir name="Reviews"><file name="Abstract.php" hash="136c477dbaf15a03ed85094fe51215af"/><file name="Footer.php" hash="cdff7f5653c39eb914001baa360d801f"/><file name="Widget.php" hash="cc99629e1a3c9176bb437513922cad4d"/></dir></dir><dir name="Helper"><file name="Data.php" hash="38f24a5a533aaa919dbc8d1719390cf9"/></dir><dir name="Model"><file name="Observer.php" hash="f6a1b04aab1b62bd0abec9d4ee03b07f"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ReviewsController.php" hash="ea297b3b825bb1da0ef38b0056dfb586"/></dir><file name="IndexController.php" hash="13610d3e17b5968f085a105c2d1e2cbf"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1b00f41cb67c0881ae79f5eebbe10c80"/><file name="config.xml" hash="7793777e8f07777158f8fb48533fc3e3"/><file name="system.xml" hash="15212b04e0f7e3198d17b204af09938a"/></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="8b69a8f8bf0c4e5ed3cfa84be1e4fbc6"/><file name="export.phtml" hash="ab1225207cd4631941735c9a99594b65"/></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="c7c097057d3b1e8ded388c79de2aabd2"/></dir><dir name="template"><dir name="reviews"><file name="footer.phtml" hash="db67a709fd03f2f2209686edfcbd2ece"/><file name="product_reviews_widget.phtml" hash="e680260cdfb9e3baacec767de39dae4b"/><file name=".DS_Store" hash="4fe84b7db7aa067d7fd4b3ee082e4b2f"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_GB"><file name="Reviewscouk_Reviews.csv" hash="4a64b1cd02c3e438d8489e36580dec0c"/></dir><dir name="fr_FR"><file name="Reviewscouk_Reviews.csv" hash="6c21952ba2444d065a431fb147234f07"/></dir></target></contents>
22
  <compatible/>
23
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
24
  </package>