Magmodules_Trustpilot - Version 1.1.1

Version Notes

First stable release

Download this release

Release Info

Developer Magento Core Team
Extension Magmodules_Trustpilot
Version 1.1.1
Comparing to
See all releases


Code changes from version 1.1.0 to 1.1.1

app/code/local/Magmodules/Trustpilot/Block/Adminhtml/Widget/Form/Note.php CHANGED
@@ -8,7 +8,7 @@
8
  * http://www.magmodules.eu/license-agreement/
9
  * =============================================================
10
  * @category Magmodules
11
- * @package Magmodules_Googleshopping
12
  * @author Magmodules <info@magmodules.eu>
13
  * @copyright Copyright (c) 2015 (http://www.magmodules.eu)
14
  * @license http://www.magmodules.eu/license-agreement/
8
  * http://www.magmodules.eu/license-agreement/
9
  * =============================================================
10
  * @category Magmodules
11
+ * @package Magmodules_Trustpilot
12
  * @author Magmodules <info@magmodules.eu>
13
  * @copyright Copyright (c) 2015 (http://www.magmodules.eu)
14
  * @license http://www.magmodules.eu/license-agreement/
app/code/local/Magmodules/Trustpilot/Block/Custom.php CHANGED
@@ -28,9 +28,9 @@ class Magmodules_Trustpilot_Block_Custom extends Mage_Core_Block_Template {
28
 
29
  if($blockType == 'sidebar') {
30
 
31
- $total = $this->getTotalScore();
32
  $enabled = $this->getBlockEnabled('sidebar');
33
- $sidebarreviews = $this->getSidebarCollection('block');
34
 
35
  if($total && $enabled && $sidebarreviews) {
36
  $this->setTotals($total);
@@ -42,7 +42,7 @@ class Magmodules_Trustpilot_Block_Custom extends Mage_Core_Block_Template {
42
 
43
  if($blockType == 'medium') {
44
 
45
- $total = $this->getTotalScore();
46
  $enabled = $this->getBlockEnabled('medium');
47
 
48
  if($total && $enabled) {
@@ -54,7 +54,7 @@ class Magmodules_Trustpilot_Block_Custom extends Mage_Core_Block_Template {
54
 
55
  if($blockType == 'small') {
56
 
57
- $total = $this->getTotalScore();
58
  $enabled = $this->getBlockEnabled('small');
59
 
60
  if($total && $enabled) {
@@ -69,35 +69,23 @@ class Magmodules_Trustpilot_Block_Custom extends Mage_Core_Block_Template {
69
  $this->setTemplate($blockTypeTemplate);
70
  }
71
 
72
- }
73
-
74
- public function getTrustpilotData() {
75
- return $this->helper('trustpilot')->getTotalScore();
76
- }
77
-
78
- function getSidebarCollection($sidebar) {
79
- return $this->helper('trustpilot')->getSidebarCollection($sidebar);
80
  }
81
 
82
- function formatContent($sidebarreview, $sidebar) {
83
- return $this->helper('trustpilot')->formatContent($sidebarreview, $sidebar);
84
  }
85
 
86
  function getReviewsUrl($type) {
87
  return $this->helper('trustpilot')->getReviewsUrl($type);
88
  }
89
 
90
- public function getSnippetsEnabled($sidebar) {
91
- return $this->helper('trustpilot')->getSnippetsEnabled($sidebar);
92
  }
93
 
94
- public function getSidebarStyle($sidebar) {
95
- return $this->helper('trustpilot')->getStyle($sidebar);
96
  }
97
-
98
- public function getTotalScore() {
99
- return $this->helper('trustpilot')->getTotalScore();
100
- }
101
 
102
  public function getBlockEnabled($type) {
103
  return $this->helper('trustpilot')->getBlockEnabled($type);
28
 
29
  if($blockType == 'sidebar') {
30
 
31
+ $total = $this->helper('trustpilot')->getTotalScore();
32
  $enabled = $this->getBlockEnabled('sidebar');
33
+ $sidebarreviews = $this->helper('trustpilot')->getSidebarCollection('sidebar');
34
 
35
  if($total && $enabled && $sidebarreviews) {
36
  $this->setTotals($total);
42
 
43
  if($blockType == 'medium') {
44
 
45
+ $total = $this->helper('trustpilot')->getTotalScore();
46
  $enabled = $this->getBlockEnabled('medium');
47
 
48
  if($total && $enabled) {
54
 
55
  if($blockType == 'small') {
56
 
57
+ $total = $this->helper('trustpilot')->getTotalScore();
58
  $enabled = $this->getBlockEnabled('small');
59
 
60
  if($total && $enabled) {
69
  $this->setTemplate($blockTypeTemplate);
70
  }
71
 
 
 
 
 
 
 
 
 
72
  }
73
 
74
+ function formatContent($sidebarreview, $type) {
75
+ return $this->helper('trustpilot')->formatContent($sidebarreview, $type);
76
  }
77
 
78
  function getReviewsUrl($type) {
79
  return $this->helper('trustpilot')->getReviewsUrl($type);
80
  }
81
 
82
+ public function getSnippetsEnabled($type) {
83
+ return $this->helper('trustpilot')->getSnippetsEnabled($type);
84
  }
85
 
86
+ public function getSidebarStyle($type) {
87
+ return $this->helper('trustpilot')->getStyle($type);
88
  }
 
 
 
 
89
 
90
  public function getBlockEnabled($type) {
91
  return $this->helper('trustpilot')->getBlockEnabled($type);
app/code/local/Magmodules/Trustpilot/Block/Sidebar.php CHANGED
@@ -21,7 +21,7 @@
21
 
22
  class Magmodules_Trustpilot_Block_Sidebar extends Mage_Core_Block_Template {
23
 
24
- function getSidebarCollection($sidebar) {
25
  return $this->helper('trustpilot')->getSidebarCollection($sidebar);
26
  }
27
 
21
 
22
  class Magmodules_Trustpilot_Block_Sidebar extends Mage_Core_Block_Template {
23
 
24
+ function getReviews($sidebar) {
25
  return $this->helper('trustpilot')->getSidebarCollection($sidebar);
26
  }
27
 
app/code/local/Magmodules/Trustpilot/Helper/Data.php CHANGED
@@ -15,7 +15,7 @@
15
  * @category Magmodules
16
  * @package Magmodules_Trustpilot
17
  * @author Magmodules <info@magmodules.eu)
18
- * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
 
@@ -27,21 +27,21 @@ class Magmodules_Trustpilot_Helper_Data extends Mage_Core_Helper_Abstract {
27
  $review_stats = Mage::getModel('trustpilot/stats')->load($shop_id, 'shop_id');
28
  if($review_stats->getScore() > 0) {
29
  $review_stats->setPercentage($review_stats->getScore());
30
- $review_stats->setStarsQty(number_format(($review_stats->getScore() / 10), 2, '.', ''));
31
  return $review_stats;
32
  } else {
33
  return false;
34
  }
35
  }
36
 
37
- public function getStyle($type = 'block') {
38
  if($type == 'left') {
39
  return Mage::getStoreConfig('trustpilot/sidebar/left_style');
40
  }
41
  if($type == 'right') {
42
  return Mage::getStoreConfig('trustpilot/sidebar/right_style');
43
  }
44
- if($type == 'block') {
45
  return Mage::getStoreConfig('trustpilot/block/sidebar_style');
46
  }
47
  }
@@ -54,7 +54,7 @@ class Magmodules_Trustpilot_Helper_Data extends Mage_Core_Helper_Abstract {
54
  case 'right':
55
  return Mage::getStoreConfig('trustpilot/sidebar/right_snippets');
56
  break;
57
- case 'block':
58
  return Mage::getStoreConfig('trustpilot/block/sidebar_snippets');
59
  break;
60
  case 'small':
@@ -85,7 +85,7 @@ class Magmodules_Trustpilot_Helper_Data extends Mage_Core_Helper_Abstract {
85
  case 'right':
86
  $link = Mage::getStoreConfig('trustpilot/sidebar/right_link');
87
  break;
88
- case 'block':
89
  $link = Mage::getStoreConfig('trustpilot/block/sidebar_link');
90
  break;
91
  case 'small':
@@ -96,7 +96,7 @@ class Magmodules_Trustpilot_Helper_Data extends Mage_Core_Helper_Abstract {
96
  break;
97
  }
98
  if($link == 'internal') {
99
- return Mage::getBaseUrl() . '/trustpilot';
100
  }
101
  if($link == 'external') {
102
  return Mage::getStoreConfig('trustpilot/general/url');
@@ -117,7 +117,7 @@ class Magmodules_Trustpilot_Helper_Data extends Mage_Core_Helper_Abstract {
117
  $qty = Mage::getStoreConfig('trustpilot/sidebar/right_qty');
118
  $enabled = Mage::getStoreConfig('trustpilot/sidebar/right');
119
  }
120
- if($sidebar == 'block') {
121
  $qty = Mage::getStoreConfig('trustpilot/block/sidebar_qty');
122
  $enabled = Mage::getStoreConfig('trustpilot/block/sidebar');
123
  }
@@ -154,14 +154,15 @@ class Magmodules_Trustpilot_Helper_Data extends Mage_Core_Helper_Abstract {
154
  function formatContent($sidebarreview, $sidebar = 'left') {
155
 
156
  $content = $sidebarreview->getContent();
157
-
 
158
  if($sidebar == 'left') {
159
  $char_limit = Mage::getStoreConfig('trustpilot/sidebar/left_lenght');
160
  }
161
  if($sidebar == 'right') {
162
  $char_limit = Mage::getStoreConfig('trustpilot/sidebar/right_lenght');
163
  }
164
- if($sidebar == 'block') {
165
  $char_limit = Mage::getStoreConfig('trustpilot/block/sidebar_lenght');
166
  }
167
  if($sidebar == 'medium') {
@@ -170,7 +171,7 @@ class Magmodules_Trustpilot_Helper_Data extends Mage_Core_Helper_Abstract {
170
 
171
  if($char_limit > 1) {
172
  $content = Mage::helper('core/string')->truncate($content, $char_limit, ' ...', $_remainder, false);
173
- $content .= ' <a href="' . $sidebarreview->getUrl() . '" target="_blank">' . $this->__('Read More') . '</a>';
174
  }
175
  return $content;
176
  }
@@ -184,7 +185,7 @@ class Magmodules_Trustpilot_Helper_Data extends Mage_Core_Helper_Abstract {
184
  case 'right':
185
  return Mage::getStoreConfig('trustpilot/sidebar/right');
186
  break;
187
- case 'block':
188
  return Mage::getStoreConfig('trustpilot/block/sidebar');
189
  break;
190
  case 'small':
15
  * @category Magmodules
16
  * @package Magmodules_Trustpilot
17
  * @author Magmodules <info@magmodules.eu)
18
+ * @copyright Copyright (c) 2015 (http://www.magmodules.eu)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
 
27
  $review_stats = Mage::getModel('trustpilot/stats')->load($shop_id, 'shop_id');
28
  if($review_stats->getScore() > 0) {
29
  $review_stats->setPercentage($review_stats->getScore());
30
+ $review_stats->setStarsQty(number_format(($review_stats->getScore() / 10), 1, '.', ''));
31
  return $review_stats;
32
  } else {
33
  return false;
34
  }
35
  }
36
 
37
+ public function getStyle($type = 'sidebar') {
38
  if($type == 'left') {
39
  return Mage::getStoreConfig('trustpilot/sidebar/left_style');
40
  }
41
  if($type == 'right') {
42
  return Mage::getStoreConfig('trustpilot/sidebar/right_style');
43
  }
44
+ if($type == 'sidebar') {
45
  return Mage::getStoreConfig('trustpilot/block/sidebar_style');
46
  }
47
  }
54
  case 'right':
55
  return Mage::getStoreConfig('trustpilot/sidebar/right_snippets');
56
  break;
57
+ case 'sidebar':
58
  return Mage::getStoreConfig('trustpilot/block/sidebar_snippets');
59
  break;
60
  case 'small':
85
  case 'right':
86
  $link = Mage::getStoreConfig('trustpilot/sidebar/right_link');
87
  break;
88
+ case 'sidebar':
89
  $link = Mage::getStoreConfig('trustpilot/block/sidebar_link');
90
  break;
91
  case 'small':
96
  break;
97
  }
98
  if($link == 'internal') {
99
+ return Mage::getBaseUrl() . 'trustpilot';
100
  }
101
  if($link == 'external') {
102
  return Mage::getStoreConfig('trustpilot/general/url');
117
  $qty = Mage::getStoreConfig('trustpilot/sidebar/right_qty');
118
  $enabled = Mage::getStoreConfig('trustpilot/sidebar/right');
119
  }
120
+ if($sidebar == 'sidebar') {
121
  $qty = Mage::getStoreConfig('trustpilot/block/sidebar_qty');
122
  $enabled = Mage::getStoreConfig('trustpilot/block/sidebar');
123
  }
154
  function formatContent($sidebarreview, $sidebar = 'left') {
155
 
156
  $content = $sidebarreview->getContent();
157
+ $char_limit = '';
158
+
159
  if($sidebar == 'left') {
160
  $char_limit = Mage::getStoreConfig('trustpilot/sidebar/left_lenght');
161
  }
162
  if($sidebar == 'right') {
163
  $char_limit = Mage::getStoreConfig('trustpilot/sidebar/right_lenght');
164
  }
165
+ if($sidebar == 'sidebar') {
166
  $char_limit = Mage::getStoreConfig('trustpilot/block/sidebar_lenght');
167
  }
168
  if($sidebar == 'medium') {
171
 
172
  if($char_limit > 1) {
173
  $content = Mage::helper('core/string')->truncate($content, $char_limit, ' ...', $_remainder, false);
174
+ $content .= ' <a href="' . $sidebarreview->getUrl() . '" target="_blank" class="more-truspilot-reviews">' . $this->__('Read More') . '</a>';
175
  }
176
  return $content;
177
  }
185
  case 'right':
186
  return Mage::getStoreConfig('trustpilot/sidebar/right');
187
  break;
188
+ case 'sidebar':
189
  return Mage::getStoreConfig('trustpilot/block/sidebar');
190
  break;
191
  case 'small':
app/code/local/Magmodules/Trustpilot/etc/adminhtml.xml CHANGED
@@ -1,8 +1,7 @@
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
- * Magmodules.eu
5
- * http://www.magmodules.eu
6
  *
7
  * NOTICE OF LICENSE
8
  *
@@ -17,7 +16,7 @@
17
  * @category Magmodules
18
  * @package Magmodules_Trustpilot
19
  * @author Magmodules <info@magmodules.eu)
20
- * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
21
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
22
  */
23
  -->
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
+ * Magmodules.eu - http://www.magmodules.eu
 
5
  *
6
  * NOTICE OF LICENSE
7
  *
16
  * @category Magmodules
17
  * @package Magmodules_Trustpilot
18
  * @author Magmodules <info@magmodules.eu)
19
+ * @copyright Copyright (c) 2015 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
  -->
app/code/local/Magmodules/Trustpilot/etc/config.xml CHANGED
@@ -1,6 +1,5 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- <?php
4
  /**
5
  * Magmodules.eu - http://www.magmodules.eu
6
  *
@@ -17,14 +16,14 @@
17
  * @category Magmodules
18
  * @package Magmodules_Trustpilot
19
  * @author Magmodules <info@magmodules.eu)
20
- * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
21
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
22
  */
23
  -->
24
  <config>
25
  <modules>
26
  <Magmodules_Trustpilot>
27
- <version>1.1.0</version>
28
  </Magmodules_Trustpilot>
29
  </modules>
30
  <global>
1
  <?xml version="1.0"?>
2
  <!--
 
3
  /**
4
  * Magmodules.eu - http://www.magmodules.eu
5
  *
16
  * @category Magmodules
17
  * @package Magmodules_Trustpilot
18
  * @author Magmodules <info@magmodules.eu)
19
+ * @copyright Copyright (c) 2015 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
  -->
23
  <config>
24
  <modules>
25
  <Magmodules_Trustpilot>
26
+ <version>1.1.1</version>
27
  </Magmodules_Trustpilot>
28
  </modules>
29
  <global>
app/code/local/Magmodules/Trustpilot/etc/system.xml CHANGED
@@ -1,8 +1,7 @@
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
- * Magmodules.eu
5
- * http://www.magmodules.eu
6
  *
7
  * NOTICE OF LICENSE
8
  *
@@ -17,7 +16,7 @@
17
  * @category Magmodules
18
  * @package Magmodules_Trustpilot
19
  * @author Magmodules <info@magmodules.eu)
20
- * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
21
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
22
  */
23
  -->
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
+ * Magmodules.eu - http://www.magmodules.eu
 
5
  *
6
  * NOTICE OF LICENSE
7
  *
16
  * @category Magmodules
17
  * @package Magmodules_Trustpilot
18
  * @author Magmodules <info@magmodules.eu)
19
+ * @copyright Copyright (c) 2015 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
  -->
app/design/frontend/base/default/layout/magmodules_trustpilot.xml CHANGED
@@ -2,7 +2,7 @@
2
  <layout version="0.1.0">
3
  <default>
4
  <reference name="head">
5
- <action method="addCss"><stylesheet>magmodules/trustpilot/sidebar.css</stylesheet></action>
6
  </reference>
7
  <reference name="left">
8
  <block type="trustpilot/sidebar" name="left.trustpilot" template="magmodules/trustpilot/sidebar/left.phtml" />
@@ -28,9 +28,4 @@
28
  <remove name="right.trustpilot" />
29
  </reference>
30
  </trustpilot_index_index>
31
- <cms_index_index>
32
- <reference name="head">
33
- <action method="addCss"><stylesheet>magmodules/trustpilot/richsnippets.css</stylesheet></action>
34
- </reference>
35
- </cms_index_index>
36
  </layout>
2
  <layout version="0.1.0">
3
  <default>
4
  <reference name="head">
5
+ <action method="addCss" ifconfig="trustpilot/general/enabled"><stylesheet>magmodules/trustpilot/sidebar.css</stylesheet></action>
6
  </reference>
7
  <reference name="left">
8
  <block type="trustpilot/sidebar" name="left.trustpilot" template="magmodules/trustpilot/sidebar/left.phtml" />
28
  <remove name="right.trustpilot" />
29
  </reference>
30
  </trustpilot_index_index>
 
 
 
 
 
31
  </layout>
app/design/frontend/base/default/template/magmodules/trustpilot/sidebar/left.phtml CHANGED
@@ -19,7 +19,7 @@
19
  * @copyright Copyright (c) 2015 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
- $sidebarreviews = $this->getSidebarCollection('left');
23
  $total = $this->getTotalScore();
24
  ?>
25
  <?php if($sidebarreviews && $total): ?>
@@ -31,7 +31,7 @@
31
  <div itemscope itemtype="http://schema.org/WebPage">
32
  <h6><?php echo $total->getHuman(); ?></h6>
33
  <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
34
- <img src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/>
35
  <p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">10.00</span></strong></p>
36
  <p class="review-count"><?php echo $this->__('%s customers have written a review on Trustpilot', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?>
37
  </div>
@@ -47,9 +47,9 @@
47
  <?php $i=0; foreach($sidebarreviews as $sidebarreview): ?>
48
  <?php $content = $this->formatContent($sidebarreview, 'left'); ?>
49
  <article>
50
- <img class="trustpilot-smallstar" src="<?php echo $sidebarreview->getStarsUrlSmall(); ?>" alt="review stars"/>
51
  <time datetime="<?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?>"><?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?></time>
52
- <strong><?php echo $sidebarreview->getTitle(); ?></strong>
 
53
  <p class="desc"><?php echo $content; ?></p>
54
  <img src="<?php echo $sidebarreview->getUserImage(); ?>" alt="<?php echo $sidebarreview->getUserName(); ?>" class="user-img" />
55
  <p class="author">
@@ -71,7 +71,7 @@
71
  <?php if($this->getSnippetsEnabled('left')): ?>
72
  <div class="block-content" itemscope itemtype="http://schema.org/WebPage">
73
  <div class="trustpilot-human"><?php echo $total->getHuman(); ?></div>
74
- <img src="<?php echo $total->getStarsUrl(); ?>" alt="review stars" class="trustpilot-stars"/>
75
  <div class="total-block-text" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
76
  <p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">10.00</span></strong></p>
77
  <p class="based-on"><?php echo $this->__('Based on %s reviews', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
19
  * @copyright Copyright (c) 2015 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
+ $sidebarreviews = $this->getReviews('left');
23
  $total = $this->getTotalScore();
24
  ?>
25
  <?php if($sidebarreviews && $total): ?>
31
  <div itemscope itemtype="http://schema.org/WebPage">
32
  <h6><?php echo $total->getHuman(); ?></h6>
33
  <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
34
+ <img class="trustpilot-rating-image" src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/>
35
  <p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">10.00</span></strong></p>
36
  <p class="review-count"><?php echo $this->__('%s customers have written a review on Trustpilot', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?>
37
  </div>
47
  <?php $i=0; foreach($sidebarreviews as $sidebarreview): ?>
48
  <?php $content = $this->formatContent($sidebarreview, 'left'); ?>
49
  <article>
 
50
  <time datetime="<?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?>"><?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?></time>
51
+ <img class="trustpilot-smallstar" src="<?php echo $sidebarreview->getStarsUrlSmall(); ?>" alt="review stars"/>
52
+ <div class="trustpilot-review-title"><?php echo $sidebarreview->getTitle(); ?></div>
53
  <p class="desc"><?php echo $content; ?></p>
54
  <img src="<?php echo $sidebarreview->getUserImage(); ?>" alt="<?php echo $sidebarreview->getUserName(); ?>" class="user-img" />
55
  <p class="author">
71
  <?php if($this->getSnippetsEnabled('left')): ?>
72
  <div class="block-content" itemscope itemtype="http://schema.org/WebPage">
73
  <div class="trustpilot-human"><?php echo $total->getHuman(); ?></div>
74
+ <img class="trustpilot-rating-image" src="<?php echo $total->getStarsUrl(); ?>" alt="review stars" class="trustpilot-stars"/>
75
  <div class="total-block-text" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
76
  <p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">10.00</span></strong></p>
77
  <p class="based-on"><?php echo $this->__('Based on %s reviews', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
app/design/frontend/base/default/template/magmodules/trustpilot/sidebar/right.phtml CHANGED
@@ -19,7 +19,7 @@
19
  * @copyright Copyright (c) 2015 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
- $sidebarreviews = $this->getSidebarCollection('right');
23
  $total = $this->getTotalScore();
24
  ?>
25
  <?php if($sidebarreviews && $total): ?>
@@ -31,7 +31,7 @@
31
  <div itemscope itemtype="http://schema.org/WebPage">
32
  <h6><?php echo $total->getHuman(); ?></h6>
33
  <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
34
- <img src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/>
35
  <p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">10.00</span></strong></p>
36
  <p class="review-count"><?php echo $this->__('%s customers have written a review on Trustpilot', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?>
37
  </div>
@@ -47,9 +47,9 @@
47
  <?php $i=0; foreach($sidebarreviews as $sidebarreview): ?>
48
  <?php $content = $this->formatContent($sidebarreview, 'right'); ?>
49
  <article>
50
- <img class="trustpilot-smallstar" src="<?php echo $sidebarreview->getStarsUrlSmall(); ?>" alt="review stars"/>
51
  <time datetime="<?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?>"><?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?></time>
52
- <h3><?php echo $sidebarreview->getTitle(); ?></h3>
 
53
  <p class="desc"><?php echo $content; ?></p>
54
  <img src="<?php echo $sidebarreview->getUserImage(); ?>" alt="<?php echo $sidebarreview->getUserName(); ?>" class="user-img" />
55
  <p class="author">
@@ -71,7 +71,7 @@
71
  <?php if($this->getSnippetsEnabled('right')): ?>
72
  <div class="block-content" itemscope itemtype="http://schema.org/WebPage">
73
  <div class="trustpilot-human"><?php echo $total->getHuman(); ?></div>
74
- <img src="<?php echo $total->getStarsUrl(); ?>" alt="review stars" class="trustpilot-stars"/>
75
  <div class="total-block-text" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
76
  <p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">10.00</span></strong></p>
77
  <p class="based-on"><?php echo $this->__('Based on %s reviews', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
19
  * @copyright Copyright (c) 2015 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
+ $sidebarreviews = $this->getReviews('right');
23
  $total = $this->getTotalScore();
24
  ?>
25
  <?php if($sidebarreviews && $total): ?>
31
  <div itemscope itemtype="http://schema.org/WebPage">
32
  <h6><?php echo $total->getHuman(); ?></h6>
33
  <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
34
+ <img class="trustpilot-rating-image" src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/>
35
  <p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">10.00</span></strong></p>
36
  <p class="review-count"><?php echo $this->__('%s customers have written a review on Trustpilot', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?>
37
  </div>
47
  <?php $i=0; foreach($sidebarreviews as $sidebarreview): ?>
48
  <?php $content = $this->formatContent($sidebarreview, 'right'); ?>
49
  <article>
 
50
  <time datetime="<?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?>"><?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?></time>
51
+ <img class="trustpilot-smallstar" src="<?php echo $sidebarreview->getStarsUrlSmall(); ?>" alt="review stars"/>
52
+ <div class="trustpilot-review-title"><?php echo $sidebarreview->getTitle(); ?></div>
53
  <p class="desc"><?php echo $content; ?></p>
54
  <img src="<?php echo $sidebarreview->getUserImage(); ?>" alt="<?php echo $sidebarreview->getUserName(); ?>" class="user-img" />
55
  <p class="author">
71
  <?php if($this->getSnippetsEnabled('right')): ?>
72
  <div class="block-content" itemscope itemtype="http://schema.org/WebPage">
73
  <div class="trustpilot-human"><?php echo $total->getHuman(); ?></div>
74
+ <img class="trustpilot-rating-image" src="<?php echo $total->getStarsUrl(); ?>" alt="review stars" class="trustpilot-stars"/>
75
  <div class="total-block-text" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
76
  <p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">10.00</span></strong></p>
77
  <p class="based-on"><?php echo $this->__('Based on %s reviews', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
app/design/frontend/base/default/template/magmodules/trustpilot/widget/sidebar.phtml CHANGED
@@ -23,15 +23,15 @@
23
  $total = $this->getTotals();
24
  ?>
25
  <div>
26
- <?php if($this->getSidebarStyle('left') == 'trustpilot'): ?>
27
  <div class="truspilotbox">
28
  <div class="tp-box" id="tp-iframe-widget">
29
  <header>
30
- <?php if($this->getSnippetsEnabled('block')): ?>
31
  <div itemscope itemtype="http://schema.org/WebPage">
32
  <h6><?php echo $total->getHuman(); ?></h6>
33
  <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
34
- <img src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/>
35
  <p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">10.00</span></strong></p>
36
  <p class="review-count"><?php echo $this->__('%s customers have written a review on Trustpilot', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?>
37
  </div>
@@ -45,7 +45,7 @@
45
  <div class="truspilotbox-toptitle"><?php echo $this->__('Latest reviews'); ?></div>
46
  <section class="reviews">
47
  <?php $i=0; foreach($sidebarreviews as $sidebarreview): ?>
48
- <?php $content = $this->formatContent($sidebarreview, 'block'); ?>
49
  <article>
50
  <img class="trustpilot-smallstar" src="<?php echo $sidebarreview->getStarsUrlSmall(); ?>" alt="review stars"/>
51
  <time datetime="<?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?>"><?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?></time>
@@ -59,7 +59,7 @@
59
  </article>
60
  <?php endforeach; ?>
61
  </section>
62
- <a class="truspilotbox-footer" href="<?php echo $this->getReviewsUrl('block'); ?>" target="_blank"><img src="<?php echo $this->getSkinUrl('magmodules/trustpilot/images/logo.png'); ?>" class="trustpilot-logo-footer"></a>
63
  </div>
64
  </div>
65
  <?php else: ?>
@@ -68,7 +68,7 @@
68
  <strong><span><?php echo $this->__('Trustpilot') ?></span></strong>
69
  </div>
70
  <?php if($total->getPercentage() > 0): ?>
71
- <?php if($this->getSnippetsEnabled('block')): ?>
72
  <div class="block-content" itemscope itemtype="http://schema.org/WebPage">
73
  <div class="trustpilot-human"><?php echo $total->getHuman(); ?></div>
74
  <img src="<?php echo $total->getStarsUrl(); ?>" alt="review stars" class="trustpilot-stars"/>
@@ -89,7 +89,7 @@
89
  <?php endif; ?>
90
  <?php endif; ?>
91
  <?php $i=0; foreach($sidebarreviews as $sidebarreview): ?>
92
- <?php $content = $this->formatContent($sidebarreview, 'block'); ?>
93
  <div class="block-content">
94
  <div class="trustpilot-sidebar-block">
95
  <p><u><?php echo $sidebarreview->getUserName(); ?></u>: "<?php echo $content; ?>"</p>
@@ -99,7 +99,7 @@
99
  </div>
100
  <?php endforeach; ?>
101
  <div class="block-content">
102
- <a href="<?php echo $this->getReviewsUrl('block'); ?>"><img src="<?php echo $this->getSkinUrl('magmodules/trustpilot/images/logo.png'); ?>" class="trustpilot-logo">
103
  </div>
104
  </div>
105
  <?php endif; ?>
23
  $total = $this->getTotals();
24
  ?>
25
  <div>
26
+ <?php if($this->getSidebarStyle('sidebar') == 'trustpilot'): ?>
27
  <div class="truspilotbox">
28
  <div class="tp-box" id="tp-iframe-widget">
29
  <header>
30
+ <?php if($this->getSnippetsEnabled('sidebar')): ?>
31
  <div itemscope itemtype="http://schema.org/WebPage">
32
  <h6><?php echo $total->getHuman(); ?></h6>
33
  <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
34
+ <img class="trustpilot-ratingbox" src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/>
35
  <p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">10.00</span></strong></p>
36
  <p class="review-count"><?php echo $this->__('%s customers have written a review on Trustpilot', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?>
37
  </div>
45
  <div class="truspilotbox-toptitle"><?php echo $this->__('Latest reviews'); ?></div>
46
  <section class="reviews">
47
  <?php $i=0; foreach($sidebarreviews as $sidebarreview): ?>
48
+ <?php $content = $this->formatContent($sidebarreview, 'sidebar'); ?>
49
  <article>
50
  <img class="trustpilot-smallstar" src="<?php echo $sidebarreview->getStarsUrlSmall(); ?>" alt="review stars"/>
51
  <time datetime="<?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?>"><?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?></time>
59
  </article>
60
  <?php endforeach; ?>
61
  </section>
62
+ <a class="truspilotbox-footer" href="<?php echo $this->getReviewsUrl('sidebar'); ?>" target="_blank"><img src="<?php echo $this->getSkinUrl('magmodules/trustpilot/images/logo.png'); ?>" class="trustpilot-logo-footer"></a>
63
  </div>
64
  </div>
65
  <?php else: ?>
68
  <strong><span><?php echo $this->__('Trustpilot') ?></span></strong>
69
  </div>
70
  <?php if($total->getPercentage() > 0): ?>
71
+ <?php if($this->getSnippetsEnabled('sidebar')): ?>
72
  <div class="block-content" itemscope itemtype="http://schema.org/WebPage">
73
  <div class="trustpilot-human"><?php echo $total->getHuman(); ?></div>
74
  <img src="<?php echo $total->getStarsUrl(); ?>" alt="review stars" class="trustpilot-stars"/>
89
  <?php endif; ?>
90
  <?php endif; ?>
91
  <?php $i=0; foreach($sidebarreviews as $sidebarreview): ?>
92
+ <?php $content = $this->formatContent($sidebarreview, 'sidebar'); ?>
93
  <div class="block-content">
94
  <div class="trustpilot-sidebar-block">
95
  <p><u><?php echo $sidebarreview->getUserName(); ?></u>: "<?php echo $content; ?>"</p>
99
  </div>
100
  <?php endforeach; ?>
101
  <div class="block-content">
102
+ <a href="<?php echo $this->getReviewsUrl('sidebar'); ?>"><img src="<?php echo $this->getSkinUrl('magmodules/trustpilot/images/logo.png'); ?>" class="trustpilot-logo"></a>
103
  </div>
104
  </div>
105
  <?php endif; ?>
app/design/frontend/base/default/template/magmodules/trustpilot/widget/small.phtml CHANGED
@@ -27,12 +27,12 @@
27
  <div class="trustpilot-small-score">
28
  <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
29
  <?php if($this->getShowStars('small')) { ?><img class="trustpilot-small-image" src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/><?php } ?>
30
- <p class="trustpilot-small-text"><?php echo $this->__('Reviews from customers: %s - <a href="%s">%s reviews</a>', '<span itemprop="ratingValue">' . round($total->getStarsQty(),1) . '</span>/<span itemprop="bestRating">10</span>', $this->getReviewsUrl('medium'), '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
31
  </div>
32
  </div>
33
  </div>
34
  <?php } else { ?>
35
  <?php if($this->getShowStars('small')) { ?><img src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/><?php } ?>
36
- <p class="trustpilot-small-text"><?php echo $this->__('Reviews from customers: %s - <a href="%s">%s reviews</a>', round($total->getStarsQty(),1) . '/10', $this->getReviewsUrl('medium'), $total->getVotes()); ?></p>
37
  <?php } ?>
38
- </div>
27
  <div class="trustpilot-small-score">
28
  <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
29
  <?php if($this->getShowStars('small')) { ?><img class="trustpilot-small-image" src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/><?php } ?>
30
+ <p class="trustpilot-small-text"><?php echo $this->__('Reviews from customers: %s - <a href="%s">%s reviews</a>', '<span itemprop="ratingValue">' . round($total->getStarsQty(),1) . '</span>/<span itemprop="bestRating">10</span>', $this->getReviewsUrl('small'), '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
31
  </div>
32
  </div>
33
  </div>
34
  <?php } else { ?>
35
  <?php if($this->getShowStars('small')) { ?><img src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/><?php } ?>
36
+ <p class="trustpilot-small-text"><?php echo $this->__('Reviews from customers: %s - <a href="%s">%s reviews</a>', round($total->getStarsQty(),1) . '/10', $this->getReviewsUrl('small'), $total->getVotes()); ?></p>
37
  <?php } ?>
38
+ </div>
app/locale/nl_NL/Magmodules_Trustpilot.csv CHANGED
@@ -136,6 +136,6 @@
136
  "Webwinkel ID %s: no updates found, feed is empty or not foud!","Webwinkel ID %s: geen updates gevonden, de feed is leeg of kan niet worden gelezen."
137
  "Your Trustpilot ID can be found on http://b2b.trustpilot.com/Modules/Plugins. Go to Integrations -> JSON Feed. The Trustpilot ID is the number within the feed url, e.g. http://s.trustpilot.com/tpelements/917278/f.json.gz would give ID: 917278","U kunt uw Trustpilot ID vinden op http://b2b.trustpilot.com/Modules/Plugins. Ga naar intergratie -> JSON Feed. UW Trustpilot ID is het nummer wat getoond wordt in de Feed URL, bv http://s.trustpilot.com/tpelements/917278/f.json.gz zou betekenen dat uw Trustpilot ID: 917278 is."
138
  "You can only activate the Rich Snippets when this block is shown on your Homepage only","De Rich Snippets kunnen alleen geactiveerd worden wanneer het homepage blok is toegevoegd, de code staat onderaan deze pagina."
139
- "You can add this custom block by pasting the following code in your CMS page or Static Block. <br/>{{block type=""trustpilot/custom"" name=""trustpilot"" blocktype=""sidebar""}}","Het is mogelijk om dit blok te plaatsen in een pagina of statisch blok door de volgende code toe te voegen:<br/>{{block type=""trustpilot/custom"" name=""trustpilot"" blocktype="sidebar""}}"
140
  "You can add this custom block by pasting the following code in your CMS page or Static Block.<br/>{{block type=""trustpilot/custom"" name=""trustpilot"" blocktype=""small""}}","Het is mogelijk om dit blok te plaatsen in een pagina of statisch blok door de volgende code toe te voegen:<br/>{{block type=""trustpilot/custom"" name=""trustpilot"" blocktype=""small""}}"
141
  "You can add this custom block by pasting the following code in your CMS page or Static Block.<br/>{{block type=""trustpilot/custom"" name=""trustpilot"" blocktype=""medium""}}","Het is mogelijk om dit blok te plaatsen in een pagina of statisch blok door de volgende code toe te voegen:<br/>{{block type=""trustpilot/custom"" name=""trustpilot"" blocktype=""medium""}}"
136
  "Webwinkel ID %s: no updates found, feed is empty or not foud!","Webwinkel ID %s: geen updates gevonden, de feed is leeg of kan niet worden gelezen."
137
  "Your Trustpilot ID can be found on http://b2b.trustpilot.com/Modules/Plugins. Go to Integrations -> JSON Feed. The Trustpilot ID is the number within the feed url, e.g. http://s.trustpilot.com/tpelements/917278/f.json.gz would give ID: 917278","U kunt uw Trustpilot ID vinden op http://b2b.trustpilot.com/Modules/Plugins. Ga naar intergratie -> JSON Feed. UW Trustpilot ID is het nummer wat getoond wordt in de Feed URL, bv http://s.trustpilot.com/tpelements/917278/f.json.gz zou betekenen dat uw Trustpilot ID: 917278 is."
138
  "You can only activate the Rich Snippets when this block is shown on your Homepage only","De Rich Snippets kunnen alleen geactiveerd worden wanneer het homepage blok is toegevoegd, de code staat onderaan deze pagina."
139
+ "You can add this custom block by pasting the following code in your CMS page or Static Block. <br/>{{block type=""trustpilot/custom"" name=""trustpilot"" blocktype=""sidebar""}}","Het is mogelijk om dit blok te plaatsen in een pagina of statisch blok door de volgende code toe te voegen:<br/>{{block type=""trustpilot/custom"" name=""trustpilot"" blocktype=""sidebar""}}"
140
  "You can add this custom block by pasting the following code in your CMS page or Static Block.<br/>{{block type=""trustpilot/custom"" name=""trustpilot"" blocktype=""small""}}","Het is mogelijk om dit blok te plaatsen in een pagina of statisch blok door de volgende code toe te voegen:<br/>{{block type=""trustpilot/custom"" name=""trustpilot"" blocktype=""small""}}"
141
  "You can add this custom block by pasting the following code in your CMS page or Static Block.<br/>{{block type=""trustpilot/custom"" name=""trustpilot"" blocktype=""medium""}}","Het is mogelijk om dit blok te plaatsen in een pagina of statisch blok door de volgende code toe te voegen:<br/>{{block type=""trustpilot/custom"" name=""trustpilot"" blocktype=""medium""}}"
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Magmodules_Trustpilot</name>
4
- <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license/>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Connect your Magento shop to The Feedback Company</description>
11
  <notes>First stable release</notes>
12
  <authors><author><name>Magmodules</name><user>auto-converted</user><email>info@magmodules.nl</email></author></authors>
13
- <date>2015-03-25</date>
14
- <time>11:25:51</time>
15
- <contents><target name="magelocal"><dir name="Magmodules"><dir name="Trustpilot"><dir name="Block"><dir name="Adminhtml"><dir name="Trustpilotlog"><file name="Grid.php" hash="1d0393c4292c5b6bf924b1d898fe1489"/></dir><dir name="Trustpilotreviews"><dir name="Renderer"><file name="Experience.php" hash="56cd001e25933e6f717b8bbadfdfcdc1"/></dir><file name="Grid.php" hash="de8e87e480fd17ca720bb889eb41984d"/></dir><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="f88e0b904b4fdfe6c499c67ee63bf4cd"/></dir><dir name="Form"><file name="Heading.php" hash="d4240108d265b16e30f98aa02d89fdc2"/><file name="Note.php" hash="55f468c2c1e9866d8a788a52694bc18d"/></dir><dir name="Grid"><file name="Log.php" hash="58591e425491b28ab6f9a7406417bcfa"/><file name="Seconds.php" hash="62bd740dc21beb7eb9f8ff246100472f"/><file name="Stars.php" hash="a18d4771c304e9f2fc3976730df2e046"/></dir><dir name="Info"><file name="Info.php" hash="049b0544b16972242dac36c54e81a175"/></dir></dir><file name="Trustpilotlog.php" hash="69a09905d4e8f4e53f5e3baaedc2d629"/><file name="Trustpilotreviews.php" hash="6c846808a318948c1230d51cb1a0cd1b"/></dir><file name="Custom.php" hash="20ed8660f1b964008f473c35f55a6c5a"/><file name="Reviews.php" hash="d7d571bbad61d22a5c0cd842dacc33ec"/><file name="Sidebar.php" hash="6d92c2b7523df28ec2cc9e6309c87142"/></dir><dir name="Helper"><file name="Data.php" hash="a478fcc82e88deb33ed08923e78f95b0"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="67a8cc90f0373834af154b78ba1d221c"/></dir><dir name="Reviews"><file name="Collection.php" hash="575e14b7bb94d7caf36b11163a25415d"/></dir><dir name="Stats"><file name="Collection.php" hash="f46da181a9ea2ee4def015cf38b1506d"/></dir><file name="Log.php" hash="ba3cb0ec65bfd14bfd5c500c6cc1be97"/><file name="Reviews.php" hash="ed6eba1a4a104578009a14f712b88d95"/><file name="Stats.php" hash="83ef36cc25b1bdcea3bb68725b2777d8"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Cronfrequency.php" hash="1b0d3fbb6471391d5f5bb63191f5950a"/><file name="Orderstatus.php" hash="cc0f2903f29abb21bf27be1cba911c74"/><file name="Position.php" hash="990add06e5acc227e9f2603d4c7448ae"/><file name="Sidebarlink.php" hash="fa59946b89bdf5cd3939978860706bf9"/><file name="Sidebarstyle.php" hash="a6daee24f617f127dae491af9f8b3d75"/></dir><file name="Flushcache.php" hash="f6d470c805c174534da779cfc57c6c21"/></dir></dir><file name="Api.php" hash="f1b9146e1ca19d4be86897ad126381aa"/><file name="Log.php" hash="1081140ad66a8de337a700cfdf0b2ea7"/><file name="Observer.php" hash="44277db1b4ec0e9fbd1cb1d433f21733"/><file name="Reviews.php" hash="582dfaf3313f223d93067e1f34faab3b"/><file name="Stats.php" hash="6c8ac63386177694c179b981fa424382"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="TrustpilotlogController.php" hash="42cb795593c0db3fece3eee848b4ce7d"/><file name="TrustpilotreviewsController.php" hash="f30c89ea023f7a6853adc46992398728"/></dir><file name="IndexController.php" hash="fa12a86ff5ddf21351ed23da4e594eb6"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0ecaeda62a21023b1fe4cb0a598c632a"/><file name="config.xml" hash="1abccd8bd5b444ab0a9c05186e3f91b4"/><file name="system.xml" hash="c6d9140ca1b538b6a6298ee52c301cc7"/></dir><dir name="sql"><dir name="trustpilot_setup"><file name="mysql4-install-0.9.0.php" hash="7033a3cb0486d615e5f77dac7ba9fd63"/><file name="mysql4-upgrade-0.9.0-1.0.0.php" hash="054e4cfe0524f75ab08458146665738c"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="magmodules_trustpilot.xml" hash="a0c6f67972408bcc01d798d7ad6a3ed9"/></dir><dir name="template"><dir name="magmodules"><dir name="trustpilot"><dir name="sidebar"><file name="left.phtml" hash="70cd3384cf08dd21a3aa84e04f105573"/><file name="right.phtml" hash="b1670d723035184b9eba69fadd2d884e"/></dir><dir name="widget"><file name="medium.phtml" hash="1ec450fa4a651b341041274b10bfa15c"/><file name="sidebar.phtml" hash="301229efc9e6b7f8668347576b8f906d"/><file name="small.phtml" hash="4e41aab08b1d0191ccf4644f4d284fd5"/></dir><file name="index.phtml" hash="c9f93beeddd9a6676112f0f6dbc63b8b"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="magmodules_trustpilot.xml" hash="285cf7890eed0dbf4cb79fc5342fc7d2"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magmodules_Trustpilot.xml" hash="ef276abf28d9d1a59cab187ea5e68c2b"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magmodules_Trustpilot.csv" hash="43b62da5910383251d93dfd6c41373d9"/></dir><dir name="nl_NL"><file name="Magmodules_Trustpilot.csv" hash="fbce70f9e3717207618e53158efa2fbb"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magmodules"><dir name="trustpilot"><dir name="images"><file name="5-stars-empty.png" hash="799c499ca785331e7e69d892df52dd48"/><file name="5-stars-full.png" hash="1d06151a2c4da6bb71381538c8a903a5"/><file name="bkg_rating.gif" hash="0efa835d6b68d7f8042170b182ace2a9"/><file name="greystar.png" hash="ab99888c7a8f47826ad7a83bcabf9130"/><file name="logo.png" hash="7dc164baee77a185d41abfa3f72b1f8a"/><file name="star.png" hash="647c77f0ef881fb2a90a4f53f70d75fa"/></dir><file name="richsnippets.css" hash="10513a90a15d0c4783d887ccd75c5109"/><file name="sidebar.css" hash="2951f8873b8d44322271e7f4ed5aee70"/><file name="style.css" hash="a04d3806a7179c927977ce78b5d0a03e"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="magmodules"><dir name="trustpilot"><file name="grid.css" hash="90a8ac7d668d2ea9a7dc84632e639847"/><file name="star.png" hash="4beacfb62ebdd5feecd946494e895f4c"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Magmodules_Trustpilot</name>
4
+ <version>1.1.1</version>
5
  <stability>stable</stability>
6
  <license/>
7
  <channel>community</channel>
10
  <description>Connect your Magento shop to The Feedback Company</description>
11
  <notes>First stable release</notes>
12
  <authors><author><name>Magmodules</name><user>auto-converted</user><email>info@magmodules.nl</email></author></authors>
13
+ <date>2015-04-02</date>
14
+ <time>08:23:44</time>
15
+ <contents><target name="magelocal"><dir name="Magmodules"><dir name="Trustpilot"><dir name="Block"><dir name="Adminhtml"><dir name="Trustpilotlog"><file name="Grid.php" hash="1d0393c4292c5b6bf924b1d898fe1489"/></dir><dir name="Trustpilotreviews"><dir name="Renderer"><file name="Experience.php" hash="56cd001e25933e6f717b8bbadfdfcdc1"/></dir><file name="Grid.php" hash="de8e87e480fd17ca720bb889eb41984d"/></dir><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="f88e0b904b4fdfe6c499c67ee63bf4cd"/></dir><dir name="Form"><file name="Heading.php" hash="d4240108d265b16e30f98aa02d89fdc2"/><file name="Note.php" hash="c363887b1db75d441ba7128034e409f0"/></dir><dir name="Grid"><file name="Log.php" hash="58591e425491b28ab6f9a7406417bcfa"/><file name="Seconds.php" hash="62bd740dc21beb7eb9f8ff246100472f"/><file name="Stars.php" hash="a18d4771c304e9f2fc3976730df2e046"/></dir><dir name="Info"><file name="Info.php" hash="049b0544b16972242dac36c54e81a175"/></dir></dir><file name="Trustpilotlog.php" hash="69a09905d4e8f4e53f5e3baaedc2d629"/><file name="Trustpilotreviews.php" hash="6c846808a318948c1230d51cb1a0cd1b"/></dir><file name="Custom.php" hash="b303aedb6d0ced8b478fd55f0c0499d0"/><file name="Reviews.php" hash="d7d571bbad61d22a5c0cd842dacc33ec"/><file name="Sidebar.php" hash="f12a9967e54beddceca9a237da83fe2b"/></dir><dir name="Helper"><file name="Data.php" hash="a77b3dc5b5129d99a06804d215645274"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="67a8cc90f0373834af154b78ba1d221c"/></dir><dir name="Reviews"><file name="Collection.php" hash="575e14b7bb94d7caf36b11163a25415d"/></dir><dir name="Stats"><file name="Collection.php" hash="f46da181a9ea2ee4def015cf38b1506d"/></dir><file name="Log.php" hash="ba3cb0ec65bfd14bfd5c500c6cc1be97"/><file name="Reviews.php" hash="ed6eba1a4a104578009a14f712b88d95"/><file name="Stats.php" hash="83ef36cc25b1bdcea3bb68725b2777d8"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Cronfrequency.php" hash="1b0d3fbb6471391d5f5bb63191f5950a"/><file name="Orderstatus.php" hash="cc0f2903f29abb21bf27be1cba911c74"/><file name="Position.php" hash="990add06e5acc227e9f2603d4c7448ae"/><file name="Sidebarlink.php" hash="fa59946b89bdf5cd3939978860706bf9"/><file name="Sidebarstyle.php" hash="a6daee24f617f127dae491af9f8b3d75"/></dir><file name="Flushcache.php" hash="f6d470c805c174534da779cfc57c6c21"/></dir></dir><file name="Api.php" hash="f1b9146e1ca19d4be86897ad126381aa"/><file name="Log.php" hash="1081140ad66a8de337a700cfdf0b2ea7"/><file name="Observer.php" hash="44277db1b4ec0e9fbd1cb1d433f21733"/><file name="Reviews.php" hash="582dfaf3313f223d93067e1f34faab3b"/><file name="Stats.php" hash="6c8ac63386177694c179b981fa424382"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="TrustpilotlogController.php" hash="42cb795593c0db3fece3eee848b4ce7d"/><file name="TrustpilotreviewsController.php" hash="f30c89ea023f7a6853adc46992398728"/></dir><file name="IndexController.php" hash="fa12a86ff5ddf21351ed23da4e594eb6"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4b8f2002f6905226d5409ebf0b912dd1"/><file name="config.xml" hash="f91f4f9caf584d45a80e7e5d34f24496"/><file name="system.xml" hash="e02933773e83f67f9287de953530f5e6"/></dir><dir name="sql"><dir name="trustpilot_setup"><file name="mysql4-install-0.9.0.php" hash="7033a3cb0486d615e5f77dac7ba9fd63"/><file name="mysql4-upgrade-0.9.0-1.0.0.php" hash="054e4cfe0524f75ab08458146665738c"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="magmodules_trustpilot.xml" hash="a1dffcc86459d9490ec683df022eaf5b"/></dir><dir name="template"><dir name="magmodules"><dir name="trustpilot"><dir name="sidebar"><file name="left.phtml" hash="36591ffafce93778eda8c8907cb4d025"/><file name="right.phtml" hash="8df2dfe5c37647a69bd1238a755110a3"/></dir><dir name="widget"><file name="medium.phtml" hash="1ec450fa4a651b341041274b10bfa15c"/><file name="sidebar.phtml" hash="758cd44c121c4e2d7feec7e1b947670f"/><file name="small.phtml" hash="107cfe25aa2c92d6811db88786092bdb"/></dir><file name="index.phtml" hash="c9f93beeddd9a6676112f0f6dbc63b8b"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="magmodules_trustpilot.xml" hash="285cf7890eed0dbf4cb79fc5342fc7d2"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magmodules_Trustpilot.xml" hash="ef276abf28d9d1a59cab187ea5e68c2b"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magmodules_Trustpilot.csv" hash="43b62da5910383251d93dfd6c41373d9"/></dir><dir name="nl_NL"><file name="Magmodules_Trustpilot.csv" hash="b5727a43e1ddc9e17728228589b9dc30"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magmodules"><dir name="trustpilot"><dir name="images"><file name="5-stars-empty.png" hash="799c499ca785331e7e69d892df52dd48"/><file name="5-stars-full.png" hash="1d06151a2c4da6bb71381538c8a903a5"/><file name="bkg_rating.gif" hash="0efa835d6b68d7f8042170b182ace2a9"/><file name="greystar.png" hash="ab99888c7a8f47826ad7a83bcabf9130"/><file name="logo.png" hash="7dc164baee77a185d41abfa3f72b1f8a"/><file name="star.png" hash="647c77f0ef881fb2a90a4f53f70d75fa"/></dir><file name="richsnippets.css" hash="10513a90a15d0c4783d887ccd75c5109"/><file name="sidebar.css" hash="8daee00a13286a5c587215f12292c3eb"/><file name="style.css" hash="67216df1d18af5834abe798268cc9c0b"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="magmodules"><dir name="trustpilot"><file name="grid.css" hash="90a8ac7d668d2ea9a7dc84632e639847"/><file name="star.png" hash="4beacfb62ebdd5feecd946494e895f4c"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
skin/frontend/base/default/magmodules/trustpilot/sidebar.css CHANGED
@@ -35,7 +35,12 @@
35
  }
36
 
37
  .trustpilot-smallstar {
38
- float:left
 
 
 
 
 
39
  }
40
 
41
  .truspilotbox-footer {
@@ -301,7 +306,6 @@ img.trustpilot-review-stars {
301
  }
302
 
303
  .truspilotbox section.reviews {
304
- height:none;
305
  display:block;
306
  overflow-y:auto;
307
  margin:0;
@@ -309,14 +313,14 @@ img.trustpilot-review-stars {
309
  }
310
 
311
  .truspilotbox section.reviews article {
312
- display:block;
313
  border-bottom:1px solid #DDD;
314
  margin:0 0 12px;
315
  padding:0 0 12px;
316
  float:left;
317
  width:100%;
318
- *width:auto;
319
- text-align:left
 
320
  }
321
 
322
  .truspilotbox section.reviews article a {
@@ -328,11 +332,9 @@ img.trustpilot-review-stars {
328
  }
329
 
330
  .truspilotbox time {
331
- display:inline-block;
332
  float:right;
333
  -moz-opacity:.6;
334
  opacity:.6;
335
- margin-top:-2px;
336
  font-family:'Helvetica Neue',Arial,sans-serif;
337
  font-size:11px
338
  }
@@ -349,7 +351,7 @@ img.trustpilot-review-stars {
349
  }
350
 
351
  .truspilotbox p.desc {
352
- padding:0 0 8px;
353
  font-size:11px;
354
  font-family:'Helvetica Neue',Arial,sans-serif;
355
  text-align:left
@@ -357,7 +359,7 @@ img.trustpilot-review-stars {
357
 
358
  .truspilotbox img.user-img {
359
  float:left;
360
- padding:0 6px 0 0
361
  }
362
 
363
  .truspilotbox p.author {
@@ -424,21 +426,20 @@ img.trustpilot-review-stars {
424
 
425
  /* SMALL WIDGET */
426
  .trustpilot-small-widget {
427
- height: 5px;
428
- width:225px
429
  }
430
 
431
  .trustpilot-small-image {
432
- float: left;
433
- width: 88px;
 
434
  }
435
 
436
  .trustpilot-small-score {
437
- width: 350px;
438
  }
439
 
440
  .trustpilot-small-text {
441
- float: right;
442
  }
443
 
444
  .review-count {
@@ -459,14 +460,19 @@ img.trustpilot-review-stars {
459
  }
460
 
461
  .trustpilot-medium-image {
462
- float:right;
463
  }
464
 
465
  .client-details {
466
- font-weight:bold;
467
- margin-top: 5px;
 
 
 
 
468
  }
469
 
470
- .client-details-summary {
471
- font-size:14px;
 
472
  }
35
  }
36
 
37
  .trustpilot-smallstar {
38
+ }
39
+
40
+ .trustpilot-review-title {
41
+ font-weight:800;
42
+ line-height:normal;
43
+ margin-top:5px
44
  }
45
 
46
  .truspilotbox-footer {
306
  }
307
 
308
  .truspilotbox section.reviews {
 
309
  display:block;
310
  overflow-y:auto;
311
  margin:0;
313
  }
314
 
315
  .truspilotbox section.reviews article {
 
316
  border-bottom:1px solid #DDD;
317
  margin:0 0 12px;
318
  padding:0 0 12px;
319
  float:left;
320
  width:100%;
321
+ *width:/* text-align:left
322
+ */
323
+ auto
324
  }
325
 
326
  .truspilotbox section.reviews article a {
332
  }
333
 
334
  .truspilotbox time {
 
335
  float:right;
336
  -moz-opacity:.6;
337
  opacity:.6;
 
338
  font-family:'Helvetica Neue',Arial,sans-serif;
339
  font-size:11px
340
  }
351
  }
352
 
353
  .truspilotbox p.desc {
354
+ padding:5px 2px 5px 0;
355
  font-size:11px;
356
  font-family:'Helvetica Neue',Arial,sans-serif;
357
  text-align:left
359
 
360
  .truspilotbox img.user-img {
361
  float:left;
362
+ padding:0 5px 0 0
363
  }
364
 
365
  .truspilotbox p.author {
426
 
427
  /* SMALL WIDGET */
428
  .trustpilot-small-widget {
429
+ /* height: 35px; */
430
+ /* width: 400px; */
431
  }
432
 
433
  .trustpilot-small-image {
434
+ float:left;
435
+ width:85px;
436
+ margin-right:10px
437
  }
438
 
439
  .trustpilot-small-score {
 
440
  }
441
 
442
  .trustpilot-small-text {
 
443
  }
444
 
445
  .review-count {
460
  }
461
 
462
  .trustpilot-medium-image {
463
+ float:right
464
  }
465
 
466
  .client-details {
467
+ font-weight:700;
468
+ margin-top:5px
469
+ }
470
+
471
+ .client-details-summary {
472
+ font-size:14px
473
  }
474
 
475
+ .trustpilot-rating-image {
476
+ margin:0 auto;
477
+ padding:5px 0
478
  }
skin/frontend/base/default/magmodules/trustpilot/style.css CHANGED
@@ -17,8 +17,7 @@
17
  }
18
 
19
  .trustpilot h1 {
20
- float:left;
21
- width:50%
22
  }
23
 
24
  .trustpilot .button {
@@ -199,4 +198,4 @@
199
  height:16px;
200
  background:url(./images/greystar.png) 0 0;
201
  margin-right:5px
202
- }
17
  }
18
 
19
  .trustpilot h1 {
20
+ float:left
 
21
  }
22
 
23
  .trustpilot .button {
198
  height:16px;
199
  background:url(./images/greystar.png) 0 0;
200
  margin-right:5px
201
+ }