Magmodules_Trustpilot - Version 1.1.0

Version Notes

First stable release

Download this release

Release Info

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


Code changes from version 1.0.1 to 1.1.0

Files changed (24) hide show
  1. app/code/local/Magmodules/Trustpilot/Block/Adminhtml/Widget/Form/Note.php +27 -0
  2. app/code/local/Magmodules/Trustpilot/Block/Custom.php +83 -8
  3. app/code/local/Magmodules/Trustpilot/Block/Sidebar.php +11 -97
  4. app/code/local/Magmodules/Trustpilot/Block/Snippets.php +0 -47
  5. app/code/local/Magmodules/Trustpilot/Helper/Data.php +160 -13
  6. app/code/local/Magmodules/Trustpilot/Model/Reviews.php +5 -0
  7. app/code/local/Magmodules/Trustpilot/Model/Stats.php +3 -0
  8. app/{design/frontend/base/default/template/magmodules/trustpilot/widget/custom.phtml → code/local/Magmodules/Trustpilot/Model/System/Config/Flushcache.php} +8 -19
  9. app/code/local/Magmodules/Trustpilot/controllers/Adminhtml/TrustpilotreviewsController.php +6 -6
  10. app/code/local/Magmodules/Trustpilot/etc/config.xml +1 -1
  11. app/code/local/Magmodules/Trustpilot/etc/system.xml +220 -25
  12. app/design/frontend/base/default/template/magmodules/trustpilot/sidebar/left.phtml +7 -9
  13. app/design/frontend/base/default/template/magmodules/trustpilot/sidebar/right.phtml +6 -8
  14. app/design/frontend/base/default/template/magmodules/trustpilot/widget/medium.phtml +50 -0
  15. app/design/frontend/base/default/template/magmodules/trustpilot/widget/richsnippets.phtml +0 -41
  16. app/design/frontend/base/default/template/magmodules/trustpilot/widget/sidebar.phtml +106 -0
  17. app/design/frontend/base/default/template/magmodules/trustpilot/widget/small.phtml +38 -0
  18. app/locale/en_US/Magmodules_Trustpilot.csv +12 -3
  19. app/locale/nl_NL/Magmodules_Trustpilot.csv +12 -3
  20. package.xml +4 -4
  21. skin/frontend/base/default/magmodules/trustpilot/images/bkg_rating.gif +0 -0
  22. skin/frontend/base/default/magmodules/trustpilot/richsnippets.css +6 -7
  23. skin/frontend/base/default/magmodules/trustpilot/sidebar.css +346 -185
  24. skin/frontend/base/default/magmodules/trustpilot/style.css +143 -60
app/code/local/Magmodules/Trustpilot/Block/Adminhtml/Widget/Form/Note.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magmodules.eu - http://www.magmodules.eu - info@magmodules.eu
4
+ * =============================================================
5
+ * NOTICE OF LICENSE [Single domain license]
6
+ * This source file is subject to the EULA that is
7
+ * available through the world-wide-web at:
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/
15
+ * =============================================================
16
+ */
17
+
18
+ class Magmodules_Trustpilot_Block_Adminhtml_Widget_Form_Note extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
19
+
20
+ public function render(Varien_Data_Form_Element_Abstract $element) {
21
+ $useContainerId = $element->getData('use_container_id');
22
+ return sprintf('<tr id="row_%s"><td colspan="5" class="label" style="margin-bottom: 10px;">%s</td></tr>',
23
+ $element->getHtmlId(), $element->getLabel()
24
+ );
25
+ }
26
+
27
+ }
app/code/local/Magmodules/Trustpilot/Block/Custom.php CHANGED
@@ -22,18 +22,93 @@
22
  class Magmodules_Trustpilot_Block_Custom extends Mage_Core_Block_Template {
23
 
24
  protected function _construct() {
25
- if(Mage::getStoreConfig('trustpilot/general/enabled')) {
26
- $this->setTrustpilotEnabled(1);
27
- } else {
28
- $this->setTrustpilotEnabled(0);
29
- }
30
-
31
- parent::_construct();
32
- $this->setTemplate('magmodules/trustpilot/widget/custom.phtml');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  }
34
 
35
  public function getTrustpilotData() {
36
  return $this->helper('trustpilot')->getTotalScore();
37
  }
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  }
22
  class Magmodules_Trustpilot_Block_Custom extends Mage_Core_Block_Template {
23
 
24
  protected function _construct() {
25
+
26
+ $blockType = $this->getData("blocktype");
27
+ $blockTypeTemplate = '';
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);
37
+ $this->setReviews($sidebarreviews);
38
+ $blockTypeTemplate = 'magmodules/trustpilot/widget/sidebar.phtml';
39
+ }
40
+
41
+ }
42
+
43
+ if($blockType == 'medium') {
44
+
45
+ $total = $this->getTotalScore();
46
+ $enabled = $this->getBlockEnabled('medium');
47
+
48
+ if($total && $enabled) {
49
+ $this->setTotals($total);
50
+ $blockTypeTemplate = 'magmodules/trustpilot/widget/medium.phtml';
51
+ }
52
+
53
+ }
54
+
55
+ if($blockType == 'small') {
56
+
57
+ $total = $this->getTotalScore();
58
+ $enabled = $this->getBlockEnabled('small');
59
+
60
+ if($total && $enabled) {
61
+ $this->setTotals($total);
62
+ $blockTypeTemplate = 'magmodules/trustpilot/widget/small.phtml';
63
+ }
64
+
65
+ }
66
+
67
+ if($blockTypeTemplate) {
68
+ parent::_construct();
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);
104
+ }
105
+
106
+ public function getShowStars($type) {
107
+ return $this->helper('trustpilot')->getShowStars($type);
108
+ }
109
+
110
+ public function getLatestReview() {
111
+ return $this->helper('trustpilot')->getLatestReview();
112
+ }
113
+
114
  }
app/code/local/Magmodules/Trustpilot/Block/Sidebar.php CHANGED
@@ -15,116 +15,30 @@
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
 
22
  class Magmodules_Trustpilot_Block_Sidebar extends Mage_Core_Block_Template {
23
 
24
- protected function _construct() {
25
- parent::_construct();
26
  }
27
 
28
- function getSidebarCollection($sidebar) {
29
-
30
- $enabled = '';
31
- $qty = '5';
32
-
33
- if(Mage::getStoreConfig('trustpilot/general/enabled')):
34
- if($sidebar == 'left'):
35
- $qty = Mage::getStoreConfig('trustpilot/sidebar/left_qty');
36
- $enabled = Mage::getStoreConfig('trustpilot/sidebar/left');
37
- endif;
38
- if($sidebar == 'right'):
39
- $qty = Mage::getStoreConfig('trustpilot/sidebar/right_qty');
40
- $enabled = Mage::getStoreConfig('trustpilot/sidebar/right');
41
- endif;
42
- endif;
43
-
44
- if($enabled):
45
- $shop_id = Mage::getStoreConfig('trustpilot/general/api_id');
46
- $collection = Mage::getModel("trustpilot/reviews")->getCollection();
47
- $collection->setOrder('date_created', 'DESC');
48
- $collection->addFieldToFilter('status',1);
49
- $collection->addFieldToFilter('sidebar',1);
50
- $collection->addFieldToFilter('shop_id', array('eq'=> array($shop_id)));
51
- $collection->setPageSize($qty);
52
- $collection->load();
53
- return $collection;
54
- else:
55
- return false;
56
- endif;
57
- }
58
-
59
- function formatContent($sidebarreview, $sidebar = 'left') {
60
-
61
- $content = $sidebarreview->getContent();
62
-
63
- if($sidebar == 'left'):
64
- $char_limit = Mage::getStoreConfig('trustpilot/sidebar/left_lenght');
65
- endif;
66
- if($sidebar == 'right'):
67
- $char_limit = Mage::getStoreConfig('trustpilot/sidebar/right_lenght');
68
- endif;
69
-
70
- $content = Mage::helper('core/string')->truncate($content, $char_limit, ' ...', $_remainder, false);
71
- $content .= ' <a href="' . $sidebarreview->getUrl() . '" target="_blank">' . $this->__('Read More') . '</a>';
72
- return $content;
73
-
74
  }
75
 
76
- function getReviewsUrl($sidebar = 'left') {
77
-
78
- if($sidebar == 'left'):
79
- $link = Mage::getStoreConfig('trustpilot/sidebar/left_link');
80
- endif;
81
- if($sidebar == 'right'):
82
- $link = Mage::getStoreConfig('trustpilot/sidebar/left_right');
83
- endif;
84
-
85
- if($link == 'internal'):
86
- $url = $this->getUrl('trustpilot');
87
- endif;
88
- if($link == 'external'):
89
- $url = Mage::getStoreConfig('trustpilot/general/url');
90
- endif;
91
-
92
- if($url) {
93
- return $url;
94
- } else {
95
- return '#';
96
- }
97
-
98
  }
99
 
100
- public function getSnippetsEnabled($sidebar = 'left') {
101
-
102
- if($sidebar == 'left'):
103
- $enabled = Mage::getStoreConfig('trustpilot/sidebar/left_snippets');
104
- endif;
105
- if($sidebar == 'right'):
106
- $enabled = Mage::getStoreConfig('trustpilot/sidebar/right_snippets');
107
- endif;
108
-
109
- $homepage = Mage::getBlockSingleton('page/html_header')->getIsHomePage();
110
-
111
- if($enabled && $homepage) {
112
- return true;
113
- } else {
114
- return false;
115
- }
116
  }
117
 
118
- public function getSidebarStyle($sidebar = 'left') {
119
-
120
- if($sidebar == 'left'):
121
- $style = Mage::getStoreConfig('trustpilot/sidebar/left_style');
122
- endif;
123
- if($sidebar == 'right'):
124
- $style = Mage::getStoreConfig('trustpilot/sidebar/right_style');
125
- endif;
126
-
127
- return $style;
128
  }
129
 
130
  public function getTotalScore() {
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
 
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
 
28
+ function formatContent($sidebarreview, $sidebar) {
29
+ return $this->helper('trustpilot')->formatContent($sidebarreview, $sidebar);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  }
31
 
32
+ function getReviewsUrl($type) {
33
+ return $this->helper('trustpilot')->getReviewsUrl($type);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
35
 
36
+ public function getSnippetsEnabled($sidebar) {
37
+ return $this->helper('trustpilot')->getSnippetsEnabled($sidebar);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  }
39
 
40
+ public function getSidebarStyle($sidebar) {
41
+ return $this->helper('trustpilot')->getStyle($sidebar);
 
 
 
 
 
 
 
 
42
  }
43
 
44
  public function getTotalScore() {
app/code/local/Magmodules/Trustpilot/Block/Snippets.php DELETED
@@ -1,47 +0,0 @@
1
- <?php
2
- /**
3
- * Magmodules.eu - http://www.magmodules.eu
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to info@magmodules.eu so we can send you a copy immediately.
14
- *
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
-
22
- class Magmodules_Trustpilot_Block_Snippets extends Mage_Core_Block_Template {
23
-
24
- protected function _construct() {
25
- if(Mage::getStoreConfig('trustpilot/general/enabled')) {
26
- $this->setSnippetsEnabled(1);
27
- } else {
28
- $this->setSnippetsEnabled(0);
29
- }
30
-
31
- parent::_construct();
32
- $this->setTemplate('magmodules/trustpilot/widget/richsnippets.phtml');
33
- }
34
-
35
- public function getSnippets() {
36
- return $this->helper('trustpilot')->getTotalScore();
37
- }
38
-
39
- public function getHtmlStars($rating) {
40
- return $this->helper('trustpilot')->getHtmlStars($rating);
41
- }
42
-
43
- public function getExternalLink() {
44
- return $this->helper('trustpilot')->getExternalLink();
45
- }
46
-
47
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Magmodules/Trustpilot/Helper/Data.php CHANGED
@@ -34,21 +34,168 @@ class Magmodules_Trustpilot_Helper_Data extends Mage_Core_Helper_Abstract {
34
  }
35
  }
36
 
37
- function getExternalLink() {
38
- if(Mage::getStoreConfig('trustpilot/general/url')) {
39
- return Mage::helper('trustpilot')->__('on') . ' <a href="' . Mage::getStoreConfig('trustpilot/general/url'). '" target="_blank">Trustpilot.nl</a>';
40
- } else {
41
- return false;
42
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  }
44
 
45
- function getHtmlStars($rating)
46
- {
47
- $perc = $rating;
48
- $html = '<div class="rating-box">';
49
- $html .= ' <div class="rating" style="width:' . $perc . '%"></div>';
50
- $html .= '</div>';
51
- return $html;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
 
54
  }
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
+ }
48
+
49
+ public function getSnippetsEnabled($type = 'block') {
50
+ switch ($type) {
51
+ case 'left':
52
+ return Mage::getStoreConfig('trustpilot/sidebar/left_snippets');
53
+ break;
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':
61
+ return Mage::getStoreConfig('trustpilot/block/small_snippets');
62
+ break;
63
+ case 'medium':
64
+ return Mage::getStoreConfig('trustpilot/block/medium_snippets');
65
+ break;
66
+ }
67
  }
68
 
69
+ public function getShowStars($type = 'small') {
70
+ switch ($type) {
71
+ case 'small':
72
+ return Mage::getStoreConfig('trustpilot/block/small_stars');
73
+ break;
74
+ case 'medium':
75
+ return Mage::getStoreConfig('trustpilot/block/medium_stars');
76
+ break;
77
+ }
78
+ }
79
+
80
+ function getReviewsUrl($type) {
81
+ switch ($type) {
82
+ case 'left':
83
+ $link = Mage::getStoreConfig('trustpilot/sidebar/left_link');
84
+ break;
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':
92
+ $link = Mage::getStoreConfig('trustpilot/block/small_link');
93
+ break;
94
+ case 'medium':
95
+ $link = Mage::getStoreConfig('trustpilot/block/medium_link');
96
+ break;
97
+ }
98
+ if($link == 'internal') {
99
+ return Mage::getBaseUrl() . '/trustpilot';
100
+ }
101
+ if($link == 'external') {
102
+ return Mage::getStoreConfig('trustpilot/general/url');
103
+ }
104
+ return false;
105
+ }
106
+
107
+ function getSidebarCollection($sidebar) {
108
+
109
+ $enabled = ''; $qty = '5';
110
+
111
+ if(Mage::getStoreConfig('trustpilot/general/enabled')) {
112
+ if($sidebar == 'left') {
113
+ $qty = Mage::getStoreConfig('trustpilot/sidebar/left_qty');
114
+ $enabled = Mage::getStoreConfig('trustpilot/sidebar/left');
115
+ }
116
+ if($sidebar == 'right') {
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
+ }
124
+ }
125
+
126
+ if($enabled) {
127
+ $shop_id = Mage::getStoreConfig('trustpilot/general/api_id');
128
+ $reviews = Mage::getModel("trustpilot/reviews")->getCollection();
129
+ $reviews->setOrder('date_created', 'DESC');
130
+ $reviews->addFieldToFilter('status',1);
131
+ $reviews->addFieldToFilter('sidebar',1);
132
+ $reviews->addFieldToFilter('shop_id', array('eq'=> array($shop_id)));
133
+ $reviews->setPageSize($qty);
134
+ $reviews->load();
135
+ return $reviews;
136
+ }
137
+
138
+ return false;
139
+ }
140
+
141
+ function getLatestReview() {
142
+ if(Mage::getStoreConfig('trustpilot/block/medium_review')) {
143
+ $shop_id = Mage::getStoreConfig('trustpilot/general/api_id');
144
+ $review = Mage::getModel("trustpilot/reviews")->getCollection();
145
+ $review->setOrder('date_created', 'DESC');
146
+ $review->addFieldToFilter('status',1);
147
+ $review->addFieldToFilter('content', array('notnull' => true));
148
+ $review->addFieldToFilter('shop_id', array('eq'=> array($shop_id)));
149
+ return $review->getFirstItem();
150
+ }
151
+ return false;
152
+ }
153
+
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') {
168
+ $char_limit = Mage::getStoreConfig('trustpilot/block/medium_lenght');
169
+ }
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
  }
177
+
178
+ public function getBlockEnabled($type) {
179
+ if(Mage::getStoreConfig('trustpilot/general/enabled')) {
180
+ switch ($type) {
181
+ case 'left':
182
+ return Mage::getStoreConfig('trustpilot/sidebar/left');
183
+ break;
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':
191
+ return Mage::getStoreConfig('trustpilot/block/small');
192
+ break;
193
+ case 'medium':
194
+ return Mage::getStoreConfig('trustpilot/block/medium');
195
+ break;
196
+ }
197
+ }
198
+ return false;
199
+ }
200
 
201
  }
app/code/local/Magmodules/Trustpilot/Model/Reviews.php CHANGED
@@ -126,6 +126,11 @@ class Magmodules_Trustpilot_Model_Reviews extends Mage_Core_Model_Abstract {
126
  $result['review_updates'] = $updates;
127
  $result['review_new'] = $new;
128
  $result['company'] = $company;
 
 
 
 
 
129
  return $result;
130
  }
131
 
126
  $result['review_updates'] = $updates;
127
  $result['review_new'] = $new;
128
  $result['company'] = $company;
129
+
130
+ if($new) {
131
+ Mage::app()->cleanCache('trustpilot_block');
132
+ }
133
+
134
  return $result;
135
  }
136
 
app/code/local/Magmodules/Trustpilot/Model/Stats.php CHANGED
@@ -65,6 +65,9 @@ class Magmodules_Trustpilot_Model_Stats extends Mage_Core_Model_Abstract {
65
  ->setHuman($human)
66
  ->setStarsUrl($stars_url)
67
  ->save();
 
 
 
68
  return true;
69
  } else {
70
  return false;
65
  ->setHuman($human)
66
  ->setStarsUrl($stars_url)
67
  ->save();
68
+
69
+ Mage::app()->cleanCache('trustpilot_block');
70
+
71
  return true;
72
  } else {
73
  return false;
app/{design/frontend/base/default/template/magmodules/trustpilot/widget/custom.phtml → code/local/Magmodules/Trustpilot/Model/System/Config/Flushcache.php} RENAMED
@@ -1,7 +1,6 @@
1
  <?php
2
  /**
3
- * Magmodules.eu
4
- * http://www.magmodules.eu
5
  *
6
  * NOTICE OF LICENSE
7
  *
@@ -16,24 +15,14 @@
16
  * @category Magmodules
17
  * @package Magmodules_Trustpilot
18
  * @author Magmodules <info@magmodules.eu)
19
- * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
 
23
- // Load data
24
- $enabled = $this->getTrustpilotEnabled();
25
- $data = $this->getTrustpilotData();
26
 
27
- // All available data
28
- $company = $data->getCompany();
29
- $percentage = $data->getPercentage();
30
-
31
- ?>
32
- <?php if($enabled) { ?>
33
- <div class="trustpilot-custom">
34
- <div class="client">Client rating <?php echo $company; ?></div>
35
- <div class="rating-box">
36
- <div class="rating" style="width:<?php echo $percentage; ?>%"> </div>
37
- </div>
38
- </div>
39
- <?php } ?>
1
  <?php
2
  /**
3
+ * Magmodules.eu - http://www.magmodules.eu
 
4
  *
5
  * NOTICE OF LICENSE
6
  *
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
 
22
+ class Magmodules_Trustpilot_Model_System_Config_Flushcache extends Mage_Core_Model_Config_Data {
 
 
23
 
24
+ protected function _afterSave() {
25
+ Mage::app()->cleanCache('trustpilot_block');
26
+ }
27
+
28
+ }
 
 
 
 
 
 
 
 
app/code/local/Magmodules/Trustpilot/controllers/Adminhtml/TrustpilotreviewsController.php CHANGED
@@ -52,15 +52,10 @@ class Magmodules_Trustpilot_Adminhtml_TrustpilotreviewsController extends Mage_A
52
  Mage::getSingleton('adminhtml/session')->addError(Mage::helper('trustpilot')->__('Webwinkel ID %s: no updates found, feed is empty or not foud!', $api_id));
53
  }
54
  }
 
55
  $this->_redirect('adminhtml/system_config/edit/section/trustpilot');
56
  }
57
 
58
- public function testapiAction() {
59
- Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('trustpilot')->__('TODO: repsonse code van de API', $xml));
60
- Mage::getSingleton('adminhtml/session')->addError(Mage::helper('trustpilot')->__('TODO: repsonse code van de API', $xml));
61
- $this->_redirect('adminhtml/system_config/edit/section/trustpilot');
62
- }
63
-
64
  public function massDisableAction() {
65
  $reviewIds = $this->getRequest()->getParam('reviewids');
66
  if(!is_array($reviewIds)) {
@@ -76,6 +71,7 @@ class Magmodules_Trustpilot_Adminhtml_TrustpilotreviewsController extends Mage_A
76
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
77
  }
78
  }
 
79
  $this->_redirect('*/*/index');
80
  }
81
 
@@ -94,6 +90,7 @@ class Magmodules_Trustpilot_Adminhtml_TrustpilotreviewsController extends Mage_A
94
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
95
  }
96
  }
 
97
  $this->_redirect('*/*/index');
98
  }
99
 
@@ -112,6 +109,7 @@ class Magmodules_Trustpilot_Adminhtml_TrustpilotreviewsController extends Mage_A
112
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
113
  }
114
  }
 
115
  $this->_redirect('*/*/index');
116
  }
117
 
@@ -130,6 +128,7 @@ class Magmodules_Trustpilot_Adminhtml_TrustpilotreviewsController extends Mage_A
130
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
131
  }
132
  }
 
133
  $this->_redirect('*/*/index');
134
  }
135
 
@@ -141,6 +140,7 @@ class Magmodules_Trustpilot_Adminhtml_TrustpilotreviewsController extends Mage_A
141
  $i++;
142
  }
143
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('trustpilot')->__('Succefully deleted all %s saved review(s).', $i));
 
144
  $this->_redirect('*/*/index');
145
  }
146
 
52
  Mage::getSingleton('adminhtml/session')->addError(Mage::helper('trustpilot')->__('Webwinkel ID %s: no updates found, feed is empty or not foud!', $api_id));
53
  }
54
  }
55
+ Mage::app()->cleanCache('trustpilot_block');
56
  $this->_redirect('adminhtml/system_config/edit/section/trustpilot');
57
  }
58
 
 
 
 
 
 
 
59
  public function massDisableAction() {
60
  $reviewIds = $this->getRequest()->getParam('reviewids');
61
  if(!is_array($reviewIds)) {
71
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
72
  }
73
  }
74
+ Mage::app()->cleanCache('trustpilot_block');
75
  $this->_redirect('*/*/index');
76
  }
77
 
90
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
91
  }
92
  }
93
+ Mage::app()->cleanCache('trustpilot_block');
94
  $this->_redirect('*/*/index');
95
  }
96
 
109
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
110
  }
111
  }
112
+ Mage::app()->cleanCache('trustpilot_block');
113
  $this->_redirect('*/*/index');
114
  }
115
 
128
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
129
  }
130
  }
131
+ Mage::app()->cleanCache('trustpilot_block');
132
  $this->_redirect('*/*/index');
133
  }
134
 
140
  $i++;
141
  }
142
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('trustpilot')->__('Succefully deleted all %s saved review(s).', $i));
143
+ Mage::app()->cleanCache('trustpilot_block');
144
  $this->_redirect('*/*/index');
145
  }
146
 
app/code/local/Magmodules/Trustpilot/etc/config.xml CHANGED
@@ -24,7 +24,7 @@
24
  <config>
25
  <modules>
26
  <Magmodules_Trustpilot>
27
- <version>1.0.1</version>
28
  </Magmodules_Trustpilot>
29
  </modules>
30
  <global>
24
  <config>
25
  <modules>
26
  <Magmodules_Trustpilot>
27
+ <version>1.1.0</version>
28
  </Magmodules_Trustpilot>
29
  </modules>
30
  <global>
app/code/local/Magmodules/Trustpilot/etc/system.xml CHANGED
@@ -78,6 +78,7 @@
78
  <label>Enabled</label>
79
  <frontend_type>select</frontend_type>
80
  <source_model>adminhtml/system_config_source_yesno</source_model>
 
81
  <sort_order>1</sort_order>
82
  <show_in_default>1</show_in_default>
83
  <show_in_website>1</show_in_website>
@@ -253,7 +254,6 @@
253
  <show_in_website>1</show_in_website>
254
  <show_in_store>1</show_in_store>
255
  <depends><left>1</left></depends>
256
- <comment>You can only activate the Rich Snippets when this block is shown on your Homepage only</comment>
257
  </left_snippets>
258
  <right_heading translate="label">
259
  <label>Right Sidebar</label>
@@ -313,7 +313,7 @@
313
  <depends><right>1</right></depends>
314
  </right_style>
315
  <right_snippets translate="label">
316
- <label>Add to Sidebar Homepage</label>
317
  <frontend_type>select</frontend_type>
318
  <source_model>adminhtml/system_config_source_yesno</source_model>
319
  <sort_order>66</sort_order>
@@ -321,10 +321,225 @@
321
  <show_in_website>1</show_in_website>
322
  <show_in_store>1</show_in_store>
323
  <depends><right>1</right></depends>
324
- <comment>You can only activate the Rich Snippets when this block is shown on your Homepage only</comment>
325
  </right_snippets>
326
  </fields>
327
  </sidebar>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
328
  <overview translate="label">
329
  <label>Trustpilot Overview Page</label>
330
  <frontend_type>text</frontend_type>
@@ -371,17 +586,7 @@
371
  <show_in_store>1</show_in_store>
372
  <tooltip>Comma Separated, as: 10,20,30</tooltip>
373
  <depends><enabled>1</enabled></depends>
374
- </paging_settings>
375
- <!--<add_toplink translate="label">
376
- <label>Add a link to toplink</label>
377
- <frontend_type>select</frontend_type>
378
- <source_model>adminhtml/system_config_source_enabledisable</source_model>
379
- <sort_order>4</sort_order>
380
- <show_in_default>1</show_in_default>
381
- <show_in_website>1</show_in_website>
382
- <show_in_store>1</show_in_store>
383
- </add_toplink>-->
384
-
385
  <meta_title translate="lable">
386
  <label>Meta Title</label>
387
  <frontend_type>text</frontend_type>
@@ -450,17 +655,7 @@
450
  <depends><enabled>1</enabled></depends>
451
  </clean_days>
452
  </fields>
453
- </log>
454
- <snippets translate="label">
455
- <label>Trustpilot Custom Blocks</label>
456
- <frontend_type>text</frontend_type>
457
- <sort_order>10</sort_order>
458
- <show_in_default>1</show_in_default>
459
- <show_in_website>1</show_in_website>
460
- <show_in_store>1</show_in_store>
461
- <expanded>1</expanded>
462
- <comment><![CDATA[<p>The extension comes with two coded blocks.<br>With this blocks you can add your store rating in a Static block or CMS page.</p><p><br><strong>The Rich Snippets Block.<br></strong>Show your Store-rating with this block and generate results in the Google Search Engine Results better known as Rich Snippets.<br>Paste the code below at the desired location using a Static Block or a CMS page.</p><p>Code: {{block type="trustpilot/snippets" name="trustpilotsnippets"}}</p><p><br><strong>Custom Block.</strong><br>With this block you can create custom block for footer of header, you can paste the code below at the desired location using a Static Block or a CMS page.<br>To edit this block you need to edit the .phtml file located in the following path: app/design/frontend/base/default/template/magmodules/trustpilot/widget/custom.phtml</p><p>Code: {{block type="trustpilot/custom" name="trustpilot"}}</p>]]></comment>
463
- </snippets>
464
  </groups>
465
  </trustpilot>
466
  </sections>
78
  <label>Enabled</label>
79
  <frontend_type>select</frontend_type>
80
  <source_model>adminhtml/system_config_source_yesno</source_model>
81
+ <backend_model>trustpilot/system_config_flushcache</backend_model>
82
  <sort_order>1</sort_order>
83
  <show_in_default>1</show_in_default>
84
  <show_in_website>1</show_in_website>
254
  <show_in_website>1</show_in_website>
255
  <show_in_store>1</show_in_store>
256
  <depends><left>1</left></depends>
 
257
  </left_snippets>
258
  <right_heading translate="label">
259
  <label>Right Sidebar</label>
313
  <depends><right>1</right></depends>
314
  </right_style>
315
  <right_snippets translate="label">
316
+ <label>Add Rich Snippets</label>
317
  <frontend_type>select</frontend_type>
318
  <source_model>adminhtml/system_config_source_yesno</source_model>
319
  <sort_order>66</sort_order>
321
  <show_in_website>1</show_in_website>
322
  <show_in_store>1</show_in_store>
323
  <depends><right>1</right></depends>
 
324
  </right_snippets>
325
  </fields>
326
  </sidebar>
327
+ <block translate="label">
328
+ <label>Trustpilot Blocks</label>
329
+ <frontend_type>text</frontend_type>
330
+ <sort_order>5</sort_order>
331
+ <show_in_default>1</show_in_default>
332
+ <show_in_website>1</show_in_website>
333
+ <show_in_store>1</show_in_store>
334
+ <expanded>1</expanded>
335
+ <fields>
336
+ <sidebar_heading translate="label">
337
+ <label>Sidebar Style Block</label>
338
+ <frontend_model>trustpilot/adminhtml_widget_form_heading</frontend_model>
339
+ <sort_order>10</sort_order>
340
+ <show_in_default>1</show_in_default>
341
+ <show_in_website>1</show_in_website>
342
+ <show_in_store>1</show_in_store>
343
+ </sidebar_heading>
344
+ <sidebar_note translate="label">
345
+ <label><![CDATA[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"}}]]></label>
346
+ <frontend_model>trustpilot/adminhtml_widget_form_note</frontend_model>
347
+ <sort_order>11</sort_order>
348
+ <show_in_default>1</show_in_default>
349
+ <show_in_website>1</show_in_website>
350
+ <show_in_store>1</show_in_store>
351
+ </sidebar_note>
352
+ <sidebar translate="label">
353
+ <label>Enabled</label>
354
+ <frontend_type>select</frontend_type>
355
+ <source_model>adminhtml/system_config_source_yesno</source_model>
356
+ <sort_order>12</sort_order>
357
+ <show_in_default>1</show_in_default>
358
+ <show_in_website>1</show_in_website>
359
+ <show_in_store>1</show_in_store>
360
+ </sidebar>
361
+ <sidebar_qty translate="label">
362
+ <label>Number of Reviews</label>
363
+ <validate>validate-number</validate>
364
+ <frontend_type>text</frontend_type>
365
+ <sort_order>13</sort_order>
366
+ <show_in_default>1</show_in_default>
367
+ <show_in_website>1</show_in_website>
368
+ <show_in_store>1</show_in_store>
369
+ <depends><sidebar>1</sidebar></depends>
370
+ </sidebar_qty>
371
+ <sidebar_lenght translate="label">
372
+ <label>Length of Reviews</label>
373
+ <validate>validate-number</validate>
374
+ <frontend_type>text</frontend_type>
375
+ <sort_order>14</sort_order>
376
+ <show_in_default>1</show_in_default>
377
+ <show_in_website>1</show_in_website>
378
+ <show_in_store>1</show_in_store>
379
+ <depends><sidebar>1</sidebar></depends>
380
+ </sidebar_lenght>
381
+ <sidebar_link translate="label">
382
+ <label>Link to</label>
383
+ <frontend_type>select</frontend_type>
384
+ <source_model>trustpilot/system_config_source_sidebarlink</source_model>
385
+ <sort_order>15</sort_order>
386
+ <show_in_default>1</show_in_default>
387
+ <show_in_website>1</show_in_website>
388
+ <show_in_store>1</show_in_store>
389
+ <depends><sidebar>1</sidebar></depends>
390
+ </sidebar_link>
391
+ <sidebar_style translate="label">
392
+ <label>Sidebar Style</label>
393
+ <frontend_type>select</frontend_type>
394
+ <source_model>trustpilot/system_config_source_sidebarstyle</source_model>
395
+ <sort_order>16</sort_order>
396
+ <show_in_default>1</show_in_default>
397
+ <show_in_website>1</show_in_website>
398
+ <show_in_store>1</show_in_store>
399
+ <depends><sidebar>1</sidebar></depends>
400
+ </sidebar_style>
401
+ <sidebar_snippets translate="label">
402
+ <label>Add Rich Snippets</label>
403
+ <frontend_type>select</frontend_type>
404
+ <source_model>adminhtml/system_config_source_yesno</source_model>
405
+ <sort_order>17</sort_order>
406
+ <show_in_default>1</show_in_default>
407
+ <show_in_website>1</show_in_website>
408
+ <show_in_store>1</show_in_store>
409
+ <depends><sidebar>1</sidebar></depends>
410
+ </sidebar_snippets>
411
+ <small_heading translate="label">
412
+ <label>Small Block</label>
413
+ <frontend_model>trustpilot/adminhtml_widget_form_heading</frontend_model>
414
+ <sort_order>20</sort_order>
415
+ <show_in_default>1</show_in_default>
416
+ <show_in_website>1</show_in_website>
417
+ <show_in_store>1</show_in_store>
418
+ </small_heading>
419
+ <small_note translate="label">
420
+ <label><![CDATA[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"}}]]></label>
421
+ <frontend_model>trustpilot/adminhtml_widget_form_note</frontend_model>
422
+ <sort_order>21</sort_order>
423
+ <show_in_default>1</show_in_default>
424
+ <show_in_website>1</show_in_website>
425
+ <show_in_store>1</show_in_store>
426
+ </small_note>
427
+ <small translate="label">
428
+ <label>Enabled</label>
429
+ <frontend_type>select</frontend_type>
430
+ <source_model>adminhtml/system_config_source_yesno</source_model>
431
+ <sort_order>22</sort_order>
432
+ <show_in_default>1</show_in_default>
433
+ <show_in_website>1</show_in_website>
434
+ <show_in_store>1</show_in_store>
435
+ </small>
436
+ <small_stars translate="label">
437
+ <label>Show stars</label>
438
+ <frontend_type>select</frontend_type>
439
+ <source_model>adminhtml/system_config_source_yesno</source_model>
440
+ <sort_order>23</sort_order>
441
+ <show_in_default>1</show_in_default>
442
+ <show_in_website>1</show_in_website>
443
+ <show_in_store>1</show_in_store>
444
+ <depends><small>1</small></depends>
445
+ </small_stars>
446
+ <small_link translate="label">
447
+ <label>Link to</label>
448
+ <frontend_type>select</frontend_type>
449
+ <source_model>trustpilot/system_config_source_sidebarlink</source_model>
450
+ <sort_order>24</sort_order>
451
+ <show_in_default>1</show_in_default>
452
+ <show_in_website>1</show_in_website>
453
+ <show_in_store>1</show_in_store>
454
+ <depends><small>1</small></depends>
455
+ </small_link>
456
+ <small_snippets translate="label">
457
+ <label>Add Rich Snippets</label>
458
+ <frontend_type>select</frontend_type>
459
+ <source_model>adminhtml/system_config_source_yesno</source_model>
460
+ <sort_order>25</sort_order>
461
+ <show_in_default>1</show_in_default>
462
+ <show_in_website>1</show_in_website>
463
+ <show_in_store>1</show_in_store>
464
+ <depends><small>1</small></depends>
465
+ </small_snippets>
466
+ <medium_heading translate="label">
467
+ <label>Medium Block</label>
468
+ <frontend_model>trustpilot/adminhtml_widget_form_heading</frontend_model>
469
+ <sort_order>30</sort_order>
470
+ <show_in_default>1</show_in_default>
471
+ <show_in_website>1</show_in_website>
472
+ <show_in_store>1</show_in_store>
473
+ </medium_heading>
474
+ <medium_note translate="label">
475
+ <label><![CDATA[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"}}]]></label>
476
+ <frontend_model>trustpilot/adminhtml_widget_form_note</frontend_model>
477
+ <sort_order>31</sort_order>
478
+ <show_in_default>1</show_in_default>
479
+ <show_in_website>1</show_in_website>
480
+ <show_in_store>1</show_in_store>
481
+ </medium_note>
482
+ <medium translate="label">
483
+ <label>Enabled</label>
484
+ <frontend_type>select</frontend_type>
485
+ <source_model>adminhtml/system_config_source_yesno</source_model>
486
+ <sort_order>32</sort_order>
487
+ <show_in_default>1</show_in_default>
488
+ <show_in_website>1</show_in_website>
489
+ <show_in_store>1</show_in_store>
490
+ </medium>
491
+ <medium_stars translate="label">
492
+ <label>Show stars</label>
493
+ <frontend_type>select</frontend_type>
494
+ <source_model>adminhtml/system_config_source_yesno</source_model>
495
+ <sort_order>33</sort_order>
496
+ <show_in_default>1</show_in_default>
497
+ <show_in_website>1</show_in_website>
498
+ <show_in_store>1</show_in_store>
499
+ <depends><medium>1</medium></depends>
500
+ </medium_stars>
501
+ <medium_link translate="label">
502
+ <label>Link to</label>
503
+ <frontend_type>select</frontend_type>
504
+ <source_model>trustpilot/system_config_source_sidebarlink</source_model>
505
+ <sort_order>34</sort_order>
506
+ <show_in_default>1</show_in_default>
507
+ <show_in_website>1</show_in_website>
508
+ <show_in_store>1</show_in_store>
509
+ <depends><medium>1</medium></depends>
510
+ </medium_link>
511
+ <medium_review translate="label">
512
+ <label>Add latest review</label>
513
+ <frontend_type>select</frontend_type>
514
+ <source_model>adminhtml/system_config_source_yesno</source_model>
515
+ <sort_order>35</sort_order>
516
+ <show_in_default>1</show_in_default>
517
+ <show_in_website>1</show_in_website>
518
+ <show_in_store>1</show_in_store>
519
+ <depends><medium>1</medium></depends>
520
+ </medium_review>
521
+ <medium_lenght translate="label">
522
+ <label>Length of Reviews</label>
523
+ <validate>validate-number</validate>
524
+ <frontend_type>text</frontend_type>
525
+ <sort_order>36</sort_order>
526
+ <show_in_default>1</show_in_default>
527
+ <show_in_website>1</show_in_website>
528
+ <show_in_store>1</show_in_store>
529
+ <depends><medium>1</medium></depends>
530
+ </medium_lenght>
531
+ <medium_snippets translate="label">
532
+ <label>Add Rich Snippets</label>
533
+ <frontend_type>select</frontend_type>
534
+ <source_model>adminhtml/system_config_source_yesno</source_model>
535
+ <sort_order>37</sort_order>
536
+ <show_in_default>1</show_in_default>
537
+ <show_in_website>1</show_in_website>
538
+ <show_in_store>1</show_in_store>
539
+ <depends><medium>1</medium></depends>
540
+ </medium_snippets>
541
+ </fields>
542
+ </block>
543
  <overview translate="label">
544
  <label>Trustpilot Overview Page</label>
545
  <frontend_type>text</frontend_type>
586
  <show_in_store>1</show_in_store>
587
  <tooltip>Comma Separated, as: 10,20,30</tooltip>
588
  <depends><enabled>1</enabled></depends>
589
+ </paging_settings>
 
 
 
 
 
 
 
 
 
 
590
  <meta_title translate="lable">
591
  <label>Meta Title</label>
592
  <frontend_type>text</frontend_type>
655
  <depends><enabled>1</enabled></depends>
656
  </clean_days>
657
  </fields>
658
+ </log>
 
 
 
 
 
 
 
 
 
 
659
  </groups>
660
  </trustpilot>
661
  </sections>
app/design/frontend/base/default/template/magmodules/trustpilot/sidebar/left.phtml CHANGED
@@ -16,7 +16,7 @@
16
  * @category Magmodules
17
  * @package Magmodules_Trustpilot
18
  * @author Magmodules <info@magmodules.eu)
19
- * @copyright Copyright (c) 2014 (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');
@@ -28,17 +28,16 @@
28
  <div class="tp-box" id="tp-iframe-widget">
29
  <header>
30
  <?php if($this->getSnippetsEnabled('left')): ?>
31
- <div itemscope itemtype="http://schema.org/LocalBusiness">
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>
38
- <p itemprop="name" class="company-name"><?php echo $total->getCompany(); ?></p>
39
  </div>
40
  <?php else: ?>
41
- <h1><?php echo $total->getHuman(); ?></h1>
42
  <img class="trustpilot-topstar" src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/>
43
  <p class="review-count"><?php echo $this->__('%s customers have written a review on Trustpilot', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?>
44
  <?php endif ?>
@@ -50,7 +49,7 @@
50
  <article>
51
  <img class="trustpilot-smallstar" src="<?php echo $sidebarreview->getStarsUrlSmall(); ?>" alt="review stars"/>
52
  <time datetime="<?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?>"><?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?></time>
53
- <h3><?php echo $sidebarreview->getTitle(); ?></h3>
54
  <p class="desc"><?php echo $content; ?></p>
55
  <img src="<?php echo $sidebarreview->getUserImage(); ?>" alt="<?php echo $sidebarreview->getUserName(); ?>" class="user-img" />
56
  <p class="author">
@@ -60,7 +59,7 @@
60
  </article>
61
  <?php endforeach; ?>
62
  </section>
63
- <a class="truspilotbox-footer" href="<?php echo $this->getReviewsUrl(); ?>" target="_blank"><img src="<?php echo $this->getSkinUrl('magmodules/trustpilot/images/logo.png'); ?>" class="trustpilot-logo-footer"></a>
64
  </div>
65
  </div>
66
  <?php else: ?>
@@ -70,14 +69,13 @@
70
  </div>
71
  <?php if($total->getPercentage() > 0): ?>
72
  <?php if($this->getSnippetsEnabled('left')): ?>
73
- <div class="block-content" itemscope itemtype="http://schema.org/LocalBusiness">
74
  <div class="trustpilot-human"><?php echo $total->getHuman(); ?></div>
75
  <img src="<?php echo $total->getStarsUrl(); ?>" alt="review stars" class="trustpilot-stars"/>
76
  <div class="total-block-text" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
77
  <p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">10.00</span></strong></p>
78
  <p class="based-on"><?php echo $this->__('Based on %s reviews', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
79
  </div>
80
- <p itemprop="name" class="company-name"><?php echo $total->getCompany(); ?></p>
81
  </div>
82
  <?php else: ?>
83
  <div class="block-content">
@@ -101,7 +99,7 @@
101
  </div>
102
  <?php endforeach; ?>
103
  <div class="block-content">
104
- <a href="<?php echo $this->getReviewsUrl(); ?>"><img src="<?php echo $this->getSkinUrl('magmodules/trustpilot/images/logo.png'); ?>" class="trustpilot-logo">
105
  </div>
106
  </div>
107
  <?php endif; ?>
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
  $sidebarreviews = $this->getSidebarCollection('left');
28
  <div class="tp-box" id="tp-iframe-widget">
29
  <header>
30
  <?php if($this->getSnippetsEnabled('left')): ?>
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>
 
38
  </div>
39
  <?php else: ?>
40
+ <h6><?php echo $total->getHuman(); ?></h6>
41
  <img class="trustpilot-topstar" src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/>
42
  <p class="review-count"><?php echo $this->__('%s customers have written a review on Trustpilot', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?>
43
  <?php endif ?>
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">
59
  </article>
60
  <?php endforeach; ?>
61
  </section>
62
+ <a class="truspilotbox-footer" href="<?php echo $this->getReviewsUrl('left'); ?>" 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: ?>
69
  </div>
70
  <?php if($total->getPercentage() > 0): ?>
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>
78
  </div>
 
79
  </div>
80
  <?php else: ?>
81
  <div class="block-content">
99
  </div>
100
  <?php endforeach; ?>
101
  <div class="block-content">
102
+ <a href="<?php echo $this->getReviewsUrl('left'); ?>"><img src="<?php echo $this->getSkinUrl('magmodules/trustpilot/images/logo.png'); ?>" class="trustpilot-logo">
103
  </div>
104
  </div>
105
  <?php endif; ?>
app/design/frontend/base/default/template/magmodules/trustpilot/sidebar/right.phtml CHANGED
@@ -16,7 +16,7 @@
16
  * @category Magmodules
17
  * @package Magmodules_Trustpilot
18
  * @author Magmodules <info@magmodules.eu)
19
- * @copyright Copyright (c) 2014 (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');
@@ -28,17 +28,16 @@
28
  <div class="tp-box" id="tp-iframe-widget">
29
  <header>
30
  <?php if($this->getSnippetsEnabled('right')): ?>
31
- <div itemscope itemtype="http://schema.org/LocalBusiness">
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>
38
- <p itemprop="name" class="company-name"><?php echo $total->getCompany(); ?></p>
39
  </div>
40
  <?php else: ?>
41
- <h1><?php echo $total->getHuman(); ?></h1>
42
  <img class="trustpilot-topstar" src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/>
43
  <p class="review-count"><?php echo $this->__('%s customers have written a review on Trustpilot', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?>
44
  <?php endif ?>
@@ -60,7 +59,7 @@
60
  </article>
61
  <?php endforeach; ?>
62
  </section>
63
- <a class="truspilotbox-footer" href="<?php echo $this->getReviewsUrl(); ?>" target="_blank"><img src="<?php echo $this->getSkinUrl('magmodules/trustpilot/images/logo.png'); ?>" class="trustpilot-logo-footer"></a>
64
  </div>
65
  </div>
66
  <?php else: ?>
@@ -70,14 +69,13 @@
70
  </div>
71
  <?php if($total->getPercentage() > 0): ?>
72
  <?php if($this->getSnippetsEnabled('right')): ?>
73
- <div class="block-content" itemscope itemtype="http://schema.org/LocalBusiness">
74
  <div class="trustpilot-human"><?php echo $total->getHuman(); ?></div>
75
  <img src="<?php echo $total->getStarsUrl(); ?>" alt="review stars" class="trustpilot-stars"/>
76
  <div class="total-block-text" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
77
  <p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">10.00</span></strong></p>
78
  <p class="based-on"><?php echo $this->__('Based on %s reviews', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
79
  </div>
80
- <p itemprop="name" class="company-name"><?php echo $total->getCompany(); ?></p>
81
  </div>
82
  <?php else: ?>
83
  <div class="block-content">
@@ -101,7 +99,7 @@
101
  </div>
102
  <?php endforeach; ?>
103
  <div class="block-content">
104
- <a href="<?php echo $this->getReviewsUrl(); ?>"><img src="<?php echo $this->getSkinUrl('magmodules/trustpilot/images/logo.png'); ?>" class="trustpilot-logo">
105
  </div>
106
  </div>
107
  <?php endif; ?>
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
  $sidebarreviews = $this->getSidebarCollection('right');
28
  <div class="tp-box" id="tp-iframe-widget">
29
  <header>
30
  <?php if($this->getSnippetsEnabled('right')): ?>
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>
 
38
  </div>
39
  <?php else: ?>
40
+ <strong><?php echo $total->getHuman(); ?></strong>
41
  <img class="trustpilot-topstar" src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/>
42
  <p class="review-count"><?php echo $this->__('%s customers have written a review on Trustpilot', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?>
43
  <?php endif ?>
59
  </article>
60
  <?php endforeach; ?>
61
  </section>
62
+ <a class="truspilotbox-footer" href="<?php echo $this->getReviewsUrl('right'); ?>" 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: ?>
69
  </div>
70
  <?php if($total->getPercentage() > 0): ?>
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>
78
  </div>
 
79
  </div>
80
  <?php else: ?>
81
  <div class="block-content">
99
  </div>
100
  <?php endforeach; ?>
101
  <div class="block-content">
102
+ <a href="<?php echo $this->getReviewsUrl('right'); ?>"><img src="<?php echo $this->getSkinUrl('magmodules/trustpilot/images/logo.png'); ?>" class="trustpilot-logo">
103
  </div>
104
  </div>
105
  <?php endif; ?>
app/design/frontend/base/default/template/magmodules/trustpilot/widget/medium.phtml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magmodules.eu
4
+ * http://www.magmodules.eu
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to info@magmodules.eu so we can send you a copy immediately.
15
+ *
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
+ $total = $this->getTotals();
23
+ ?>
24
+ <div class="trustpilot-medium-widget">
25
+ <div class="trustpilot-medium-widget-content">
26
+ <?php if($this->getSnippetsEnabled('medium')) { ?>
27
+ <div itemscope itemtype="http://schema.org/WebPage">
28
+ <a href="<?php echo $this->getReviewsUrl('medium'); ?>"><img src="<?php echo $this->getSkinUrl('magmodules/trustpilot/images/logo.png'); ?>" class="trustpilot-medium-image"></a>
29
+ <p class="client-details-summary"><?php echo $total->getHuman(); ?></p>
30
+ <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
31
+ <?php if($this->getShowStars('medium')) { ?><img src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/><?php } ?>
32
+ <p class="trustpilot-text"><?php echo $this->__('Reviews from customers: %s - <a href="%s">%s reviews</a>', '<strong><span itemprop="ratingValue">' . round($total->getStarsQty(),1) . '</span>/<span itemprop="bestRating">10</span></strong>', $this->getReviewsUrl('medium'), '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
33
+ <?php if($review = $this->getLatestReview()) { ?>
34
+ <?php echo $review->getTitle() . '. ' . $this->formatContent($review, 'medium'); ?>
35
+ <p class="client-details"><?php echo $review->getUserName() . ', ' . Mage::helper('core')->formatDate($review->getDateCreated(), 'medium', false) . ' ' . $review->getCity(); ?></p>
36
+ <?php } ?>
37
+ </div>
38
+ </div>
39
+ <?php } else { ?>
40
+ <a href="<?php echo $link; ?>"><img src="<?php echo $this->getSkinUrl('magmodules/trustpilot/images/logo.png'); ?>" class="trustpilot-medium-image"></a>
41
+ <p class="client-details-summary"><?php echo $total->getHuman(); ?></p>
42
+ <?php if($this->getShowStars('medium')) { ?><img src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/><?php } ?>
43
+ <p class="trustpilot-text"><?php echo $this->__('Reviews from customers: %s - <a href="%s">%s reviews</a>', '<strong>' . round($total->getStarsQty(),1) . '/10</strong>', $this->getReviewsUrl('medium'), $total->getVotes()); ?></p>
44
+ <?php if($review = $this->getLatestReview()) { ?>
45
+ <?php echo $review->getTitle() . '. ' . $this->formatContent($review, 'medium'); ?>
46
+ <p class="client-details"><?php echo $review->getUserName() . ', ' . Mage::helper('core')->formatDate($review->getDateCreated(), 'medium', false) . ' ' . $review->getCity(); ?></p>
47
+ <?php } ?>
48
+ <?php } ?>
49
+ </div>
50
+ </div>
app/design/frontend/base/default/template/magmodules/trustpilot/widget/richsnippets.phtml DELETED
@@ -1,41 +0,0 @@
1
- <?php
2
- /**
3
- * Magmodules.eu
4
- * http://www.magmodules.eu
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to info@magmodules.eu so we can send you a copy immediately.
15
- *
16
- * @category Magmodules
17
- * @package Magmodules_Trustpilot
18
- * @author Magmodules <info@magmodules.eu)
19
- * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
20
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
- */
22
- ?>
23
- <?php if(($this->getSnippetsEnabled()) && ($snippets = $this->getSnippets())) { ?>
24
- <?php if(Mage::getBlockSingleton('page/html_header')->getIsHomePage()) { ?>
25
- <div class="trustpilot-snippets">
26
- <?php echo $this->getHtmlStars($snippets->getPercentage()); ?>
27
- <div itemscope="itemscope" itemtype="http://schema.org/Product">
28
- <meta itemprop="name" content="<?php echo $snippets->getCompany(); ?>">
29
- <div itemprop="aggregateRating" itemscope="itemscope" itemtype="http://schema.org/AggregateRating">
30
- <meta itemprop="bestRating" content="100">
31
- <p><?php echo Mage::helper('trustpilot')->__('Rating %s based on %s customer reviews', '<span itemprop="ratingValue">' . $snippets->getPercentage() . '</span>%', '<span itemprop="reviewCount">' . $snippets->getVotes() . '</span>') ?> <?php echo $this->getExternalLink(); ?> </p>
32
- </div>
33
- </div>
34
- </div>
35
- <?php } else { ?>
36
- <div class="trustpilot-snippets">
37
- <?php echo $this->getHtmlStars($snippets->getPercentage()); ?>
38
- <p><?php echo Mage::helper('trustpilot')->__('Rating %s based on %s customer reviews', '<span>' . $snippets->getPercentage() . '</span>%', '<span>' . $snippets->getVotes() . '</span>') ?> <?php echo $this->getExternalLink(); ?> </p>
39
- </div>
40
- <?php } ?>
41
- <?php } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/magmodules/trustpilot/widget/sidebar.phtml ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magmodules.eu
4
+ * http://www.magmodules.eu
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to info@magmodules.eu so we can send you a copy immediately.
15
+ *
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
+ $sidebarreviews = $this->getReviews();
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>
38
+ </div>
39
+ <?php else: ?>
40
+ <h6><?php echo $total->getHuman(); ?></h6>
41
+ <img class="trustpilot-topstar" src="<?php echo $total->getStarsUrl(); ?>" alt="stars"/>
42
+ <p class="review-count"><?php echo $this->__('%s customers have written a review on Trustpilot', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?>
43
+ <?php endif ?>
44
+ </header>
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>
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">
56
+ <?php echo $sidebarreview->getUserName(); ?><br />
57
+ <?php echo $sidebarreview->getCity(); ?>
58
+ </p>
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: ?>
66
+ <div class="block trustpilot-sidebar">
67
+ <div class="block-title">
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"/>
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>
78
+ </div>
79
+ </div>
80
+ <?php else: ?>
81
+ <div class="block-content">
82
+ <div class="trustpilot-human"><?php echo $total->getHuman(); ?></div>
83
+ <img src="<?php echo $total->getStarsUrl(); ?>" alt="review stars" class="trustpilot-stars"/>
84
+ <div class="total-block-text">
85
+ <p><strong><?php echo $total->getStarsQty(); ?> / 10.00</strong></p>
86
+ <p class="based-on"><?php echo $this->__('Based on %s reviews', '<span>' . $total->getVotes() . '</span>'); ?></p>
87
+ </div>
88
+ </div>
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>
96
+ <span class="rating-name"><?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?></span>
97
+ <img src="<?php echo $sidebarreview->getStarsUrlSmall(); ?>" alt="review stars" class="trustpilot-review-stars"/>
98
+ </div>
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; ?>
106
+ </div>
app/design/frontend/base/default/template/magmodules/trustpilot/widget/small.phtml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magmodules.eu
4
+ * http://www.magmodules.eu
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to info@magmodules.eu so we can send you a copy immediately.
15
+ *
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
+ $total = $this->getTotals();
23
+ ?>
24
+ <div class="trustpilot-small-widget">
25
+ <?php if($this->getSnippetsEnabled('small')) { ?>
26
+ <div itemscope itemtype="http://schema.org/WebPage">
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>
app/locale/en_US/Magmodules_Trustpilot.csv CHANGED
@@ -1,4 +1,3 @@
1
-
2
  "(more)","(more)"
3
  "%s review(s) updated","%s review(s) updated"
4
  "%s customers have written a review on Trustpilot","%s customers have written a review on Trustpilot"
@@ -7,6 +6,7 @@
7
  "Add Rich Snippets","Add Rich Snippets"
8
  "Add to Sidebar","Add to Sidebar"
9
  "Add to Sidebar Homepage","Add to Sidebar Homepage"
 
10
  "Aftersales","Aftersales"
11
  "API CREDENTIALS","API CREDENTIALS"
12
  "Api URL","Api URL"
@@ -74,6 +74,7 @@
74
  "Manual","Manual"
75
  "Manage Reviews","Manage Reviews"
76
  "Manage Log","Manage Logs"
 
77
  "Maximum Delay","Maximum Delay"
78
  "Meta Data","Meta Data"
79
  "Meta Description","Meta Description"
@@ -98,18 +99,23 @@
98
  "Remind Delay,"Remind Delay"
99
  "Resend if Double","Resend if Double"
100
  "Reviews per page","Reviews per page"
101
- "Rich Snippets is a schema.org markup that makes it possible to give richer and more specific information. <br/> The Rich Snippets will show your store rating in the google search engine results. <br/><br/>Use: {{block type=""trustpilot/snippets"" name=""webwinkelsnippets""}} to call the block on the homepage.<br/><br/>","Rich Snippets is a schema.org markup that makes it possible to give richer and more specific information. <br/> The Rich Snippets will show your store rating in the google search engine results. <br/><br/>Use: {{block type=""trustpilot/snippets"" name=""webwinkelsnippets""}} to call the block on the homepage.<br/><br/>"
102
  "Right Sidebar","Right Sidebar"
103
  "Select the schedule for automatic updating","Select the schedule for automatic updating"
104
  "Set to invisible","Set to invisible"
105
  "Set to visible","Set to visible"
106
  "Shop","Shop",
107
  "Show Sidebar","Show Sidebar"
 
 
108
  "Show the latest reviews directly in the right or left area of your store to gain trust and directly show your client reviews.<br/><br/>","Show the latest reviews directly in the right or left area of your store to gain trust and directly show your client reviews.<br/><br/>"
109
  "Showing the sidebar ensures a higher confidence. Visitors also do not have to leave to check the reviews which increases your conversion.","Showing the sidebar ensures a higher confidence. Visitors also do not have to leave to check the reviews which increases your conversion."
110
  "Showing the sidebar ensures a higher confidence. Visitors can read the reviews without leaving the store.","Showing the sidebar ensures a higher confidence. Visitors can read the reviews without leaving the store."
 
 
111
  "Sidebar","Sidebar"
112
  "Sidebar Position","Sidebar Position"
 
113
  "Specify at which status you want to send the invitation. Default is ""Completed""","Specify at which status you want to send the invitation. Default is ""Completed""."
114
  "Succefully deleted all %s saved review(s).","Succefully deleted all %s saved review(s)."
115
  "The Feedback Company","The Feedback Company"
@@ -133,4 +139,7 @@
133
  "Webwinkel ID %s:","Webwinkel ID %s:"
134
  "Webwinkel ID %s: no updates found, feed is empty or not foud!","Webwinkel ID %s: no updates found, feed is empty or not foud!"
135
  "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","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"
136
- "You can only activate the Rich Snippets when this block is shown on your Homepage only","You can only activate the Rich Snippets when this block is shown on your Homepage only"
 
 
 
 
1
  "(more)","(more)"
2
  "%s review(s) updated","%s review(s) updated"
3
  "%s customers have written a review on Trustpilot","%s customers have written a review on Trustpilot"
6
  "Add Rich Snippets","Add Rich Snippets"
7
  "Add to Sidebar","Add to Sidebar"
8
  "Add to Sidebar Homepage","Add to Sidebar Homepage"
9
+ "Add latest review","Add latest review"
10
  "Aftersales","Aftersales"
11
  "API CREDENTIALS","API CREDENTIALS"
12
  "Api URL","Api URL"
74
  "Manual","Manual"
75
  "Manage Reviews","Manage Reviews"
76
  "Manage Log","Manage Logs"
77
+ "Medium Block","Medium Block"
78
  "Maximum Delay","Maximum Delay"
79
  "Meta Data","Meta Data"
80
  "Meta Description","Meta Description"
99
  "Remind Delay,"Remind Delay"
100
  "Resend if Double","Resend if Double"
101
  "Reviews per page","Reviews per page"
102
+ "Reviews from customers: %s - <a href=""%s"">%s reviews</a>","Reviews from customers: %s - <a href=""%s"">%s reviews</a>"
103
  "Right Sidebar","Right Sidebar"
104
  "Select the schedule for automatic updating","Select the schedule for automatic updating"
105
  "Set to invisible","Set to invisible"
106
  "Set to visible","Set to visible"
107
  "Shop","Shop",
108
  "Show Sidebar","Show Sidebar"
109
+ "Show logo","Show logo"
110
+ "Show stars","Show stars"
111
  "Show the latest reviews directly in the right or left area of your store to gain trust and directly show your client reviews.<br/><br/>","Show the latest reviews directly in the right or left area of your store to gain trust and directly show your client reviews.<br/><br/>"
112
  "Showing the sidebar ensures a higher confidence. Visitors also do not have to leave to check the reviews which increases your conversion.","Showing the sidebar ensures a higher confidence. Visitors also do not have to leave to check the reviews which increases your conversion."
113
  "Showing the sidebar ensures a higher confidence. Visitors can read the reviews without leaving the store.","Showing the sidebar ensures a higher confidence. Visitors can read the reviews without leaving the store."
114
+ "Sidebar Style Block","Sidebar Style Block"
115
+ "Small Block","Small Block"
116
  "Sidebar","Sidebar"
117
  "Sidebar Position","Sidebar Position"
118
+ "Sidebar Style","Sidebar Stijl"
119
  "Specify at which status you want to send the invitation. Default is ""Completed""","Specify at which status you want to send the invitation. Default is ""Completed""."
120
  "Succefully deleted all %s saved review(s).","Succefully deleted all %s saved review(s)."
121
  "The Feedback Company","The Feedback Company"
139
  "Webwinkel ID %s:","Webwinkel ID %s:"
140
  "Webwinkel ID %s: no updates found, feed is empty or not foud!","Webwinkel ID %s: no updates found, feed is empty or not foud!"
141
  "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","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"
142
+ "You can only activate the Rich Snippets when this block is shown on your Homepage only","You can only activate the Rich Snippets when this block is shown on your Homepage only"
143
+ "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""}}","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""}}"
144
+ "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""}},"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""}}
145
+ "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""}}","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""}}"
app/locale/nl_NL/Magmodules_Trustpilot.csv CHANGED
@@ -6,6 +6,7 @@
6
  "Add Rich Snippets","Voeg Rich Snippets toe"
7
  "Add to Sidebar","Voeg toe aan sidebar"
8
  "Add to Sidebar Homepage","Voeg toe aan homepage sidebar"
 
9
  "Aftersales","Aftersales"
10
  "API CREDENTIALS","API Gegevens"
11
  "Api URL","Api URL"
@@ -74,6 +75,7 @@
74
  "Magento Style","Magento Stijl"
75
  "Magmodules","Magmodules"
76
  "Manual","Handleiding"
 
77
  "Meta Data","Meta data"
78
  "Meta Description","Meta omschrijving"
79
  "Meta Keywords","Meta zoekwoorden"
@@ -95,21 +97,25 @@
95
  "Read More","Lees meer"
96
  "Remove from Sidebar","Verwijder uit sidebar"
97
  "Reviews per page","Beoordelingen per pagina"
98
- "Rich Snippets is a schema.org markup that makes it possible to give richer and more specific information. <br/> The Rich Snippets will show your store rating in the google search engine results. <br/><br/>Use: {{block type=""trustpilot/snippets"" name=""webwinkelsnippets""}} to call the block on the homepage.<br/><br/>","Rich Snippets is a schema.org markup that makes it possible to give richer and more specific information. <br/> The Rich Snippets will show your store rating in the google search engine results. <br/><br/>Use: {{block type=""trustpilot/snippets"" name=""webwinkelsnippets""}} to call the block on the homepage.<br/><br/>"
99
  "Right Sidebar","Rechter sidebar"
100
  "Select the schedule for automatic updating","Selecteer de tijd voor het automatisch bijwerken"
101
  "Set to invisible","Maak ontzichtbaar"
102
  "Set to visible","Maak zichtbaar"
103
  "Shop","Winkel",
104
  "Show Sidebar","Toon Sidebar"
 
 
105
  "Show the latest reviews directly in the right or left area of your store to gain trust and directly show your client reviews.<br/><br/>","Show the latest reviews directly in the right or left area of your store to gain trust and directly show your client reviews.<br/><br/>"
106
  "Showing the sidebar ensures a higher confidence. Visitors also do not have to leave to check the reviews which increases your conversion.","Showing the sidebar ensures a higher confidence. Visitors also do not have to leave to check the reviews which increases your conversion."
107
  "Showing the sidebar ensures a higher confidence. Visitors can read the reviews without leaving the store.","Showing the sidebar ensures a higher confidence. Visitors can read the reviews without leaving the store."
108
  "Sidebar","Sidebar"
109
  "Sidebar Position","Sidebar Positie"
 
 
110
  "Specify at which status you want to send the invitation. Default is ""Completed""","Specificeer de status waarnaar de uitnodiging verstuurd kan worden, standaard is dit ""Completed""."
111
  "Succefully deleted all %s saved review(s).","Alle %s opgeslagen beoordelingen zijn verwijdert."
112
- "<p>The extension comes with two coded blocks.<br>With this blocks you can add your store rating in a Static block or CMS page.</p><p><br><strong>The Rich Snippets Block.<br></strong>Show your Store-rating with this block and generate results in the Google Search Engine Results better known as Rich Snippets.<br>Paste the code below at the desired location using a Static Block or a CMS page.</p><p>Code: {{block type=""trustpilot/snippets"" name=""trustpilotsnippets""}}</p><p><br><strong>Custom Block.</strong><br>With this block you can create custom block for footer of header, you can paste the code below at the desired location using a Static Block or a CMS page.<br>To edit this block you need to edit the .phtml file located in the following path: app/design/frontend/base/default/template/magmodules/trustpilot/widget/custom.phtml</p><p>Code: {{block type=""trustpilot/custom"" name=""trustpilot""}}</p>","<p>Deze extensie komt met 2 verschillende blokken<br>With this blocks you can add your store rating in a Static block or CMS page.</p><p><br><strong>Het Rich Snippets blok.</strong><br></strong>Toon de webwinkel-waardering met in blok en genereer hiermee de zogenaamde Rich Snippets waarbij de winkelbeoordelingen worden getoond in de Zoekmachine resultaten van bijvoorbeeld Google. Plaat de onderstaande code op de gewenste plaats in een statische blok of een CMS-pagina.</p> <p><strong>De code: </strong>{{block type=""trustpilot/snippets"" name=""trustpilotsnippets""}}</p><p><br><strong>Custom blok.</strong><br>Met dit custom blok is het mogelijk om eenvoudig een eigen blok creëren met daarin verschillende waardes als het aantal klanbeoordelingen, bedrijfsnaam en gemiddelde rating. Plaats de onderstaande code op de gewenste plek in een statisch blok of een CMS-pagina. Om dit blok naar wens te bewerken en eventueel aan te vullen met de geweneste informatie is het mogelijk om het .phtml bestand aan te passen. Deze is te vinden via de volgende path: app/design/frontend/base/default/template/magmodules/webwinkelconnect/widget/custom.phtml </p><p><strong>De code:</strong> {{block type=""trustpilot/custom"" name=""trustpilot""}}</p>"
113
  "The position of the sidebar","De positie van de sidebar"
114
  "This will ensure that the customer receives the invitation shortly after receiving the product and not before. This increases the opportunity that the client will share his experience.","Creëer een vertraging om er zeker van te zijn dat de klant het product heeft ontvangen en/of heeft gebruikt, op deze manier is de kans groter dat de klant daadwerkelijk de bevindingen gaat delen."
115
  "To display the latest reviews in your store, you must import the reviews. This can be done automatically or manually.","Om de beoordelingen te tonen dien je deze eerst te importeren, dit kan handmatig en automatisch."
@@ -129,4 +135,7 @@
129
  "Webwinkel ID %s:","Webwinkel ID %s:"
130
  "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."
131
  "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."
132
- "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."
 
 
 
6
  "Add Rich Snippets","Voeg Rich Snippets toe"
7
  "Add to Sidebar","Voeg toe aan sidebar"
8
  "Add to Sidebar Homepage","Voeg toe aan homepage sidebar"
9
+ "Add latest review","Voeg laatste beoordeling toe"
10
  "Aftersales","Aftersales"
11
  "API CREDENTIALS","API Gegevens"
12
  "Api URL","Api URL"
75
  "Magento Style","Magento Stijl"
76
  "Magmodules","Magmodules"
77
  "Manual","Handleiding"
78
+ "Medium Block","Medium Blok"
79
  "Meta Data","Meta data"
80
  "Meta Description","Meta omschrijving"
81
  "Meta Keywords","Meta zoekwoorden"
97
  "Read More","Lees meer"
98
  "Remove from Sidebar","Verwijder uit sidebar"
99
  "Reviews per page","Beoordelingen per pagina"
100
+ "Reviews from customers: %s - <a href=""%s"">%s reviews</a>","Beoordeling door klanten: %s - <a href=""%s"">%s beoordelingen</a>"
101
  "Right Sidebar","Rechter sidebar"
102
  "Select the schedule for automatic updating","Selecteer de tijd voor het automatisch bijwerken"
103
  "Set to invisible","Maak ontzichtbaar"
104
  "Set to visible","Maak zichtbaar"
105
  "Shop","Winkel",
106
  "Show Sidebar","Toon Sidebar"
107
+ "Show logo","Toon logo"
108
+ "Show stars","Toon sterren"
109
  "Show the latest reviews directly in the right or left area of your store to gain trust and directly show your client reviews.<br/><br/>","Show the latest reviews directly in the right or left area of your store to gain trust and directly show your client reviews.<br/><br/>"
110
  "Showing the sidebar ensures a higher confidence. Visitors also do not have to leave to check the reviews which increases your conversion.","Showing the sidebar ensures a higher confidence. Visitors also do not have to leave to check the reviews which increases your conversion."
111
  "Showing the sidebar ensures a higher confidence. Visitors can read the reviews without leaving the store.","Showing the sidebar ensures a higher confidence. Visitors can read the reviews without leaving the store."
112
  "Sidebar","Sidebar"
113
  "Sidebar Position","Sidebar Positie"
114
+ "Sidebar Style Block","Sidebar Stijl Blok"
115
+ "Small Block","Klein Blok"
116
  "Specify at which status you want to send the invitation. Default is ""Completed""","Specificeer de status waarnaar de uitnodiging verstuurd kan worden, standaard is dit ""Completed""."
117
  "Succefully deleted all %s saved review(s).","Alle %s opgeslagen beoordelingen zijn verwijdert."
118
+ "Sidebar Style","Sidebar Stijl"
119
  "The position of the sidebar","De positie van de sidebar"
120
  "This will ensure that the customer receives the invitation shortly after receiving the product and not before. This increases the opportunity that the client will share his experience.","Creëer een vertraging om er zeker van te zijn dat de klant het product heeft ontvangen en/of heeft gebruikt, op deze manier is de kans groter dat de klant daadwerkelijk de bevindingen gaat delen."
121
  "To display the latest reviews in your store, you must import the reviews. This can be done automatically or manually.","Om de beoordelingen te tonen dien je deze eerst te importeren, dit kan handmatig en automatisch."
135
  "Webwinkel ID %s:","Webwinkel ID %s:"
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.0.1</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>2014-12-18</date>
14
- <time>08:28:25</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"/></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="a2f14b2502a879da72df3b54cef4283e"/><file name="Reviews.php" hash="d7d571bbad61d22a5c0cd842dacc33ec"/><file name="Sidebar.php" hash="56dc441e0d0769444c4c106ef40781cc"/><file name="Snippets.php" hash="8815c37edc5e51ae01cec6cd3dff88a8"/></dir><dir name="Helper"><file name="Data.php" hash="f5d74e0ccd5062f07bc8b57c20597fce"/></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></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="57ddcf0cfbcedeb0bd5b626a2b6b2386"/><file name="Stats.php" hash="e53dee77eecd84273b43c97faca66bff"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="TrustpilotlogController.php" hash="42cb795593c0db3fece3eee848b4ce7d"/><file name="TrustpilotreviewsController.php" hash="fa2539b9dfb1157541db36a281e34155"/></dir><file name="IndexController.php" hash="fa12a86ff5ddf21351ed23da4e594eb6"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0ecaeda62a21023b1fe4cb0a598c632a"/><file name="config.xml" hash="ba5fc024cec1f2e068374a64896eb183"/><file name="system.xml" hash="53ddc7609a6fb19ff928d8ad2b2733a0"/></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="26e7ce8a05e7356acd0010bb86b0abaf"/><file name="right.phtml" hash="cba95201d3427d811462adfd0249e295"/></dir><dir name="widget"><file name="custom.phtml" hash="3d201adffc83966bb60c224065dbf37f"/><file name="richsnippets.phtml" hash="502fd9b73332add8dda57107e7b108ec"/></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="a427e1c2077c159c2dcddc36cac256fe"/></dir><dir name="nl_NL"><file name="Magmodules_Trustpilot.csv" hash="19b05f50ce3432fb6c9d04e4f56ff5cd"/></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="greystar.png" hash="ab99888c7a8f47826ad7a83bcabf9130"/><file name="logo.png" hash="7dc164baee77a185d41abfa3f72b1f8a"/><file name="star.png" hash="647c77f0ef881fb2a90a4f53f70d75fa"/></dir><file name="richsnippets.css" hash="ff523f98d2edbcd62143d9f09e504f22"/><file name="sidebar.css" hash="30faade2dd8e470e7ff680f78d19462b"/><file name="style.css" hash="b9e1a386f033380394aa9f8431df9f79"/></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.0</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-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>
skin/frontend/base/default/magmodules/trustpilot/images/bkg_rating.gif ADDED
Binary file
skin/frontend/base/default/magmodules/trustpilot/richsnippets.css CHANGED
@@ -21,12 +21,11 @@
21
 
22
  .trustpilot-snippets .rating-box {
23
  float: left;
24
- margin-right: 4px;
25
- margin-top: 0px;
26
- width:69px;
27
- height:13px;
28
- font-size:0;
29
- line-height:0;
30
  background:url('images/bkg_rating.gif') 0 0 repeat-x;
31
  text-indent:-999em;
32
  overflow:hidden;
@@ -34,7 +33,7 @@
34
 
35
  .trustpilot-snippets-snippets .rating {
36
  float:left;
37
- height:13px;
38
  background:url('images/bkg_rating.gif') 0 100% repeat-x;
39
  }
40
 
21
 
22
  .trustpilot-snippets .rating-box {
23
  float: left;
24
+ margin-right: 5px;
25
+ margin-top: 5px;
26
+ width: 60px;
27
+ height: 13px;
28
+ font-size:0;
 
29
  background:url('images/bkg_rating.gif') 0 0 repeat-x;
30
  text-indent:-999em;
31
  overflow:hidden;
33
 
34
  .trustpilot-snippets-snippets .rating {
35
  float:left;
36
+ height: 9px;
37
  background:url('images/bkg_rating.gif') 0 100% repeat-x;
38
  }
39
 
skin/frontend/base/default/magmodules/trustpilot/sidebar.css CHANGED
@@ -13,299 +13,460 @@
13
  * @license http://www.magmodules.eu/license-agreement/
14
  * =============================================================
15
  */
16
-
17
  .trustpilot-sidebar-block-yes {
18
  }
19
 
20
  .trustpilot-sidebar-block {
21
- padding: 0px;
22
  }
23
 
24
- .truspilotbox-toptitle {
25
- background-color: #DDDDDD;
26
- padding: 5px 10px;
27
- font-size: 15px;
28
- font-weight: 700;
29
- color: #444444;
30
  }
31
 
32
  .trustpilot-topstar {
33
- margin-left: auto;
34
- margin-right: auto;
35
- margin-top: -6px;
36
  }
37
 
38
  .trustpilot-smallstar {
39
- float:left;
40
  }
41
 
42
- .truspilotbox-footer {
43
- background-color: #DDDDDD;
44
- display: block;
45
- padding: 10px 5px 5px 10px;
46
- margin-top: -13px;
47
  }
48
 
49
  .trustpilot-logo-footer {
50
- width:100px;
51
  }
52
 
53
- .trustpilot-sidebar-block .rating-name {
54
- font-style: italic;
55
- vertical-align: middle;
56
  }
57
 
58
- img.trustpilot-logo {
59
- display: block;
60
- margin: 0 auto;
61
  }
62
 
63
  img.trustpilot-stars {
64
- display: block;
65
- margin: 0 auto;
66
  }
67
 
68
- img.trustpilot-review-stars{
69
- float: right;
70
- margin-top: 2px;
71
  }
72
 
73
  .trustpilot-human {
74
- font-size: 20px;
75
- text-align: center;
76
- margin-bottom: 5px;
77
  }
78
 
79
- .trustpilot-sidebar-block .rating-empty { float: right; display: block; width: 80px; height: 16px; background: url('./images/star.png') 0 -16px; margin-right: 5px; }
80
- .trustpilot-sidebar-block .rating-star-1 { float: left; display: block; width: 16px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
81
- .trustpilot-sidebar-block .rating-star-2 { float: left; display: block; width: 32px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
82
- .trustpilot-sidebar-block .rating-star-3 { float: left; display: block; width: 48px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
83
- .trustpilot-sidebar-block .rating-star-4 { float: left; display: block; width: 64px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
84
- .trustpilot-sidebar-block .rating-star-5 { float: left; display: block; width: 80px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
 
86
  /** big review stars **/
87
- .block-content p.company-name { text-align: center; margin: 5px auto; font-size: 11px; }
88
- .total-block-text { border-bottom: 1px solid #ccc; padding-bottom: 5px; }
89
- .total-block-text p { text-align: center; padding-top: 5px; margin-bottom: 2px; font-size: 18px; }
90
- .total-block-text p.based-on { text-align: center; padding-top: 0px; font-size: 11px; font-style: italic; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
 
92
  .truspilotbox {
93
- margin-bottom: 10px;
94
- padding-right: 3px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  }
96
- .truspilotbox p:first-letter, .truspilotbox h3:first-letter {
97
- text-transform: capitalize;
 
98
  }
99
 
100
- .truspilotbox p.r-l,p.r-s, .truspilotbox a#footer span.logo {
101
- background:url(//s.trustpilot.com/images/tpelements/trustpilotbox/sprite.png) no-repeat;
102
  }
103
 
104
- .truspilotbox p.r-l { display:inline-block; width:113px; height:21px; }
105
- .truspilotbox p.r-s { display:inline-block; width:64px; height:12px; float:left; }
106
- .truspilotbox p.l-s0 { background-position:-2px -2px; }
107
- .truspilotbox p.l-s1 { background-position:-2px -27px; }
108
- .truspilotbox p.l-s2 { background-position:-2px -52px; }
109
- .truspilotbox p.l-s3 { background-position:-2px -77px; }
110
- .truspilotbox p.l-s4 { background-position:-2px -102px; }
111
- .truspilotbox p.l-s5 { background-position:-2px -127px; }
112
- .truspilotbox p.s-s0 { background-position:-2px -151px; }
113
- .truspilotbox p.s-s1 { background-position:-2px -166px; }
114
- .truspilotbox p.s-s2 { background-position:-2px -181px; }
115
- .truspilotbox p.s-s3 { background-position:-2px -196px; }
116
- .truspilotbox p.s-s4 { background-position:-2px -211px; }
117
- .truspilotbox p.s-s5 { background-position:-2px -226px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
118
 
119
  .truspilotbox p {
120
- line-height: 125%;
121
- color: #444;
122
  }
123
 
124
  .truspilotbox .tp-box {
125
- background:#FFFFFF;
126
- border:1px solid #444444;
127
- -webkit-border-top-left-radius: 5px;
128
- -moz-border-radius-topleft: 5px;
129
- border-radius-top-left: 5px;
130
- -webkit-border-top-right-radius: 5px;
131
- -moz-border-radius-topright: 5px;
132
- border-radius-top-right: 5px;
133
- -webkit-border-bottom-right-radius: 5px;
134
- -moz-border-radius-bottomright: 5px;
135
- border-radius-bottom-right: 5px;
136
- -webkit-border-bottom-left-radius: 5px;
137
- -moz-border-radius-bottomleft: 5px;
138
- border-radius-bottom-left: 5px;
139
  display:block;
140
  position:relative;
141
- width: 100%;
142
- overflow: hidden;
143
  }
144
 
145
- .truspilotbox .tp-box:hover{
146
- cursor:pointer;
147
  }
148
 
149
  .truspilotbox header {
150
- -webkit-border-top-left-radius: 5px;
151
- -moz-border-radius-topleft: 5px;
152
- border-radius-top-left: 5px;
153
- -webkit-border-top-right-radius: 5px;
154
- -moz-border-radius-topright: 5px;
155
- border-radius-top-right: 5px;
156
  text-align:center;
157
- padding: 10px 10px 12px;
158
- display:block;
159
  }
160
 
161
- .truspilotbox header h1 {
162
- text-align:center;
163
- font-size: 23px;
164
- font-family: 'Helvetica Neue', Arial, sans-serif;
165
- color: #444444;
166
- font-weight: bold;
167
- text-transform: none;
168
  }
169
 
170
  .truspilotbox div.stars {
171
- margin:5px 0 0;
172
- text-align:center;
173
  }
174
 
175
- .truspilotbox header p.review-count {
176
- margin: 7px 0 0;
177
- text-align:center;
178
- font-size: 11px;
179
- padding: 0 10px;
180
  }
181
 
182
  .truspilotbox h2#header-reviews {
183
- background:#DDDDDD;
184
- font-size:1.273em;
185
- font-weight:700;
186
- color:#444444;
187
- padding:5px 10px;
188
  }
189
 
190
-
191
  .truspilotbox section.reviews {
192
- height:none;
193
- display:block;
194
- overflow-y:auto;
195
- margin:0 ;
196
- padding:10px 10px 0;
197
  }
198
 
199
-
200
  .truspilotbox section.reviews article {
201
- display:block;
202
- border-bottom:1px solid #DDDDDD;
203
- margin:0 0 12px;
204
- padding:0 0 12px;
205
- float:left;
206
- width:100%;
207
- *width:auto;
208
- text-align: left;
209
  }
210
 
211
  .truspilotbox section.reviews article a {
212
- color:#CE5600;
213
  }
214
 
215
  .truspilotbox section.reviews article.last-child {
216
- border-bottom: none;
217
  }
218
 
219
  .truspilotbox time {
220
- display:inline-block;
221
- float:right;
222
- -moz-opacity:0.6;
223
- opacity:0.6;
224
- margin-top:-2px;
225
- font-family: 'Helvetica Neue', Arial, sans-serif;
226
- font-size: 11px;
227
  }
228
 
229
  .truspilotbox h3 {
230
- clear:both;
231
- color:#444444;
232
- font-size: 12px;
233
- font-weight:700;
234
- padding:6px 0 0;
235
- *padding:0;
236
- font-family: 'Helvetica Neue', Arial, sans-serif;
237
- text-transform: none;
238
  }
239
 
240
  .truspilotbox p.desc {
241
- padding:0 0 8px;
242
- font-size: 11px;
243
- font-family: 'Helvetica Neue', Arial, sans-serif;
244
- text-align: left;
245
  }
246
 
247
  .truspilotbox img.user-img {
248
- float:left;
249
- padding:0 6px 0 0;
250
  }
251
 
252
  .truspilotbox p.author {
253
- font-style:italic;
254
- font-family: 'Helvetica Neue', Arial, sans-serif;
255
- font-size: 12px;
256
- margin-top: 15px;
257
- margin-bottom: 0px;
258
- color: #444;
259
  }
260
 
261
  .truspilotbox a#footer {
262
- background:#DDDDDD;
263
- display:block;
264
- -webkit-border-bottom-right-radius: 5px;
265
- -moz-border-radius-bottomright: 5px;
266
- border-radius-bottom-right: 5px;
267
-
268
- -webkit-border-bottom-left-radius: 5px;
269
- -moz-border-radius-bottomleft: 5px;
270
- border-radius-bottom-left: 5px;
271
- font-size:11px;
272
- font-weight:700;
273
- width:100%;
274
- padding:0 0 4px;
275
- text-transform:uppercase;
276
- text-decoration:none;
277
  }
278
 
279
  .truspilotbox a#footer span {
280
- display:inline-block;
281
- margin:5px 0 0;
282
- font-size:11px;
283
- line-height:12px;
284
  }
285
 
286
- .truspilotbox a#footer span.trust, .truspilotbox a#footer span.pilot{
287
- position:relative;top:-1px;
288
- *top:2px;
289
- _top:-1px;
 
290
  }
291
 
292
  .truspilotbox a#footer span.trust {
293
- color:#000;
294
- margin:0 0 0 4px;
295
  }
296
 
297
  .truspilotbox a#footer span.pilot {
298
- color:#444;
299
  }
300
 
301
  .truspilotbox a#footer span.logo {
302
- background-position: -2px -265px;
303
- height:12px; width:12px;
304
- margin:6px 0 0 10px;
 
305
  }
306
 
307
  .truspilotbox div.clear {
308
- clear:both;
309
- font-size:1px;
310
- height:20px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
311
  }
13
  * @license http://www.magmodules.eu/license-agreement/
14
  * =============================================================
15
  */
 
16
  .trustpilot-sidebar-block-yes {
17
  }
18
 
19
  .trustpilot-sidebar-block {
20
+ padding:0
21
  }
22
 
23
+ .truspilotbox-toptitle {
24
+ background-color:#DDD;
25
+ padding:5px 10px;
26
+ font-size:15px;
27
+ font-weight:700;
28
+ color:#444
29
  }
30
 
31
  .trustpilot-topstar {
32
+ margin-left:auto;
33
+ margin-right:auto;
34
+ margin-top:-6px
35
  }
36
 
37
  .trustpilot-smallstar {
38
+ float:left
39
  }
40
 
41
+ .truspilotbox-footer {
42
+ background-color:#DDD;
43
+ display:block;
44
+ padding:10px 5px 5px 10px;
45
+ margin-top:-13px
46
  }
47
 
48
  .trustpilot-logo-footer {
49
+ width:100px
50
  }
51
 
52
+ .trustpilot-sidebar-block .rating-name {
53
+ font-style:italic;
54
+ vertical-align:middle
55
  }
56
 
57
+ img.trustpilot-logo {
58
+ display:block;
59
+ margin:0 auto
60
  }
61
 
62
  img.trustpilot-stars {
63
+ display:block;
64
+ margin:0 auto
65
  }
66
 
67
+ img.trustpilot-review-stars {
68
+ float:right;
69
+ margin-top:2px
70
  }
71
 
72
  .trustpilot-human {
73
+ font-size:20px;
74
+ text-align:center;
75
+ margin-bottom:5px
76
  }
77
 
78
+ .trustpilot-sidebar-block .rating-empty {
79
+ float:right;
80
+ display:block;
81
+ width:80px;
82
+ height:16px;
83
+ background:url(./images/star.png) 0 -16px;
84
+ margin-right:5px
85
+ }
86
+
87
+ .trustpilot-sidebar-block .rating-star-1 {
88
+ float:left;
89
+ display:block;
90
+ width:16px;
91
+ height:16px;
92
+ background:url(./images/star.png) 0 0;
93
+ margin-right:5px
94
+ }
95
+
96
+ .trustpilot-sidebar-block .rating-star-2 {
97
+ float:left;
98
+ display:block;
99
+ width:32px;
100
+ height:16px;
101
+ background:url(./images/star.png) 0 0;
102
+ margin-right:5px
103
+ }
104
+
105
+ .trustpilot-sidebar-block .rating-star-3 {
106
+ float:left;
107
+ display:block;
108
+ width:48px;
109
+ height:16px;
110
+ background:url(./images/star.png) 0 0;
111
+ margin-right:5px
112
+ }
113
+
114
+ .trustpilot-sidebar-block .rating-star-4 {
115
+ float:left;
116
+ display:block;
117
+ width:64px;
118
+ height:16px;
119
+ background:url(./images/star.png) 0 0;
120
+ margin-right:5px
121
+ }
122
+
123
+ .trustpilot-sidebar-block .rating-star-5 {
124
+ float:left;
125
+ display:block;
126
+ width:80px;
127
+ height:16px;
128
+ background:url(./images/star.png) 0 0;
129
+ margin-right:5px
130
+ }
131
 
132
  /** big review stars **/
133
+ .block-content p.company-name {
134
+ text-align:center;
135
+ margin:5px auto;
136
+ font-size:11px
137
+ }
138
+
139
+ .total-block-text {
140
+ border-bottom:1px solid #ccc;
141
+ padding-bottom:5px
142
+ }
143
+
144
+ .total-block-text p {
145
+ text-align:center;
146
+ padding-top:5px;
147
+ margin-bottom:2px;
148
+ font-size:18px
149
+ }
150
+
151
+ .total-block-text p.based-on {
152
+ text-align:center;
153
+ padding-top:0;
154
+ font-size:11px;
155
+ font-style:italic
156
+ }
157
 
158
  .truspilotbox {
159
+ margin-bottom:10px;
160
+ padding-right:3px
161
+ }
162
+
163
+ .truspilotbox p:first-letter,.truspilotbox h3:first-letter {
164
+ text-transform:capitalize
165
+ }
166
+
167
+ .truspilotbox p.r-l,p.r-s,.truspilotbox a#footer span.logo {
168
+ background:url(//s.trustpilot.com/images/tpelements/trustpilotbox/sprite.png) no-repeat
169
+ }
170
+
171
+ .truspilotbox p.r-l {
172
+ display:inline-block;
173
+ width:113px;
174
+ height:21px
175
+ }
176
+
177
+ .truspilotbox p.r-s {
178
+ display:inline-block;
179
+ width:64px;
180
+ height:12px;
181
+ float:left
182
+ }
183
+
184
+ .truspilotbox p.l-s0 {
185
+ background-position:-2px -2px
186
+ }
187
+
188
+ .truspilotbox p.l-s1 {
189
+ background-position:-2px -27px
190
+ }
191
+
192
+ .truspilotbox p.l-s2 {
193
+ background-position:-2px -52px
194
  }
195
+
196
+ .truspilotbox p.l-s3 {
197
+ background-position:-2px -77px
198
  }
199
 
200
+ .truspilotbox p.l-s4 {
201
+ background-position:-2px -102px
202
  }
203
 
204
+ .truspilotbox p.l-s5 {
205
+ background-position:-2px -127px
206
+ }
207
+
208
+ .truspilotbox p.s-s0 {
209
+ background-position:-2px -151px
210
+ }
211
+
212
+ .truspilotbox p.s-s1 {
213
+ background-position:-2px -166px
214
+ }
215
+
216
+ .truspilotbox p.s-s2 {
217
+ background-position:-2px -181px
218
+ }
219
+
220
+ .truspilotbox p.s-s3 {
221
+ background-position:-2px -196px
222
+ }
223
+
224
+ .truspilotbox p.s-s4 {
225
+ background-position:-2px -211px
226
+ }
227
+
228
+ .truspilotbox p.s-s5 {
229
+ background-position:-2px -226px
230
+ }
231
 
232
  .truspilotbox p {
233
+ line-height:125%;
234
+ color:#444
235
  }
236
 
237
  .truspilotbox .tp-box {
238
+ background:#FFF;
239
+ border:1px solid #444;
240
+ -webkit-border-top-left-radius:5px;
241
+ -moz-border-radius-topleft:5px;
242
+ border-radius-top-left:5px;
243
+ -webkit-border-top-right-radius:5px;
244
+ -moz-border-radius-topright:5px;
245
+ border-radius-top-right:5px;
246
+ -webkit-border-bottom-right-radius:5px;
247
+ -moz-border-radius-bottomright:5px;
248
+ border-radius-bottom-right:5px;
249
+ -webkit-border-bottom-left-radius:5px;
250
+ -moz-border-radius-bottomleft:5px;
251
+ border-radius-bottom-left:5px;
252
  display:block;
253
  position:relative;
254
+ width:100%;
255
+ overflow:hidden
256
  }
257
 
258
+ .truspilotbox .tp-box:hover {
259
+ cursor:pointer
260
  }
261
 
262
  .truspilotbox header {
263
+ -webkit-border-top-left-radius:5px;
264
+ -moz-border-radius-topleft:5px;
265
+ border-radius-top-left:5px;
266
+ -webkit-border-top-right-radius:5px;
267
+ -moz-border-radius-topright:5px;
268
+ border-radius-top-right:5px;
269
  text-align:center;
270
+ padding:10px 10px 12px;
271
+ display:block
272
  }
273
 
274
+ .truspilotbox header h1 {
275
+ text-align:center;
276
+ font-size:23px;
277
+ font-family:'Helvetica Neue',Arial,sans-serif;
278
+ color:#444;
279
+ font-weight:700;
280
+ text-transform:none
281
  }
282
 
283
  .truspilotbox div.stars {
284
+ margin:5px 0 0;
285
+ text-align:center
286
  }
287
 
288
+ .truspilotbox header p.review-count {
289
+ margin:7px 0 0;
290
+ text-align:center;
291
+ font-size:11px;
292
+ padding:0 10px
293
  }
294
 
295
  .truspilotbox h2#header-reviews {
296
+ background:#DDD;
297
+ font-size:1.273em;
298
+ font-weight:700;
299
+ color:#444;
300
+ padding:5px 10px
301
  }
302
 
 
303
  .truspilotbox section.reviews {
304
+ height:none;
305
+ display:block;
306
+ overflow-y:auto;
307
+ margin:0;
308
+ padding:10px 10px 0
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 {
323
+ color:#CE5600
324
  }
325
 
326
  .truspilotbox section.reviews article.last-child {
327
+ border-bottom:none
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
  }
339
 
340
  .truspilotbox h3 {
341
+ clear:both;
342
+ color:#444;
343
+ font-size:12px;
344
+ font-weight:700;
345
+ padding:6px 0 0;
346
+ *padding:0;
347
+ font-family:'Helvetica Neue',Arial,sans-serif;
348
+ text-transform:none
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
356
  }
357
 
358
  .truspilotbox img.user-img {
359
+ float:left;
360
+ padding:0 6px 0 0
361
  }
362
 
363
  .truspilotbox p.author {
364
+ font-style:italic;
365
+ font-family:'Helvetica Neue',Arial,sans-serif;
366
+ font-size:12px;
367
+ margin-top:15px;
368
+ margin-bottom:0;
369
+ color:#444
370
  }
371
 
372
  .truspilotbox a#footer {
373
+ background:#DDD;
374
+ display:block;
375
+ -webkit-border-bottom-right-radius:5px;
376
+ -moz-border-radius-bottomright:5px;
377
+ border-radius-bottom-right:5px;
378
+ -webkit-border-bottom-left-radius:5px;
379
+ -moz-border-radius-bottomleft:5px;
380
+ border-radius-bottom-left:5px;
381
+ font-size:11px;
382
+ font-weight:700;
383
+ width:100%;
384
+ padding:0 0 4px;
385
+ text-transform:uppercase;
386
+ text-decoration:none
 
387
  }
388
 
389
  .truspilotbox a#footer span {
390
+ display:inline-block;
391
+ margin:5px 0 0;
392
+ font-size:11px;
393
+ line-height:12px
394
  }
395
 
396
+ .truspilotbox a#footer span.trust,.truspilotbox a#footer span.pilot {
397
+ position:relative;
398
+ top:-1px;
399
+ *top:2px;
400
+ _top:-1px
401
  }
402
 
403
  .truspilotbox a#footer span.trust {
404
+ color:#000;
405
+ margin:0 0 0 4px
406
  }
407
 
408
  .truspilotbox a#footer span.pilot {
409
+ color:#444
410
  }
411
 
412
  .truspilotbox a#footer span.logo {
413
+ background-position:-2px -265px;
414
+ height:12px;
415
+ width:12px;
416
+ margin:6px 0 0 10px
417
  }
418
 
419
  .truspilotbox div.clear {
420
+ clear:both;
421
+ font-size:1px;
422
+ height:20px
423
+ }
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 {
445
+ font-weight:700
446
+ }
447
+
448
+ /* MEDIUM WIDGET */
449
+ .trustpilot-medium-widget {
450
+ background-color:#fff;
451
+ border-radius:5px;
452
+ border:1px solid #ECECEC;
453
+ width:100%;
454
+ height:100%
455
+ }
456
+
457
+ .trustpilot-medium-widget-content {
458
+ padding:5%
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
  }
skin/frontend/base/default/magmodules/trustpilot/style.css CHANGED
@@ -13,107 +13,190 @@
13
  * @license http://www.magmodules.eu/license-agreement/
14
  * =============================================================
15
  */
16
-
17
  .trustpilot {
18
  }
19
 
20
  .trustpilot h1 {
21
- float: left;
22
- width: 50%;
23
  }
24
 
25
  .trustpilot .button {
26
- float: right;
27
  }
28
 
29
  .trustpilot .about-trustpilot {
30
- float: left;
31
- width: 70%;
32
  }
33
 
34
  .trustpilot .stats-trustpilot {
35
- float: right;
36
- width: 30%;
37
- text-align: center;
38
  }
39
 
40
  .trustpilot .ratingblock-trustpilot {
41
- width: 60px;
42
- height: 60px;
43
- padding: 4px 0px 0px 3px;
44
- font-weight: bold;
45
- font-size: 13px;
46
- margin: 6px auto;
47
- border-radius: 70px;
48
- border: 4px solid white;
49
- box-shadow: 1px 1px 3px #CCCCCC;
50
  }
51
 
52
  .trustpilot .content-trustpilot {
53
- overflow: auto;
54
- width: 100%;
55
- margin-bottom: 5px;
56
  }
57
 
58
  .trustpilot .review-list {
59
- margin-bottom: 25px;
60
- margin-top: 10px;
61
  }
62
 
63
- .trustpilot .review-list h3 {
64
- width: 80%;
65
- float: left;
66
  }
67
 
68
  .trustpilot .review-header {
69
- clear: both;
70
- border-bottom: 1px solid #e0e0e0;
71
- width: 100%;
72
- height: 25px;
73
  }
74
 
75
- .trustpilot ul.overall li {
76
- float: right;
77
  }
78
 
79
- .trustpilot ul.summary-index {
80
- display: table;
81
- list-style-type: none;
82
  }
83
 
84
- .trustpilot ul.summary-index li {
85
- display: table-cell;
86
- padding: 5px 5px 5px 10px;
87
  }
88
 
89
  .trustpilot ul.summary-index li.head {
90
- padding: 10px 5px 5px 5px;
91
- border-bottom:1px dotted #e0e0e0;
92
  }
93
 
94
- .trustpilot ul.experience {
95
- width: 100%;
96
- padding: 10px;
97
-
98
  }
99
 
100
  .trustpilot .rating-name {
101
- font-weight: bold;
102
- display: block;
103
- margin-bottom: 2px;
104
  }
105
 
106
  /* INDEX REVIEW LIST */
107
- .review-list .rating-empty { float: left; display: block; width: 80px; height: 16px; background: url('./images/star.png') 0 -16px; margin-right: 5px; }
108
-
109
- .review-list .rating-star-1 { float: left; display: block; width: 16px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
110
- .review-list .rating-star-2 { float: left; display: block; width: 32px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
111
- .review-list .rating-star-3 { float: left; display: block; width: 48px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
112
- .review-list .rating-star-4 { float: left; display: block; width: 64px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
113
- .review-list .rating-star-5 { float: left; display: block; width: 80px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
114
-
115
- .review-list .rating-greystar-1 { float: left; display: block; width: 16px; height: 16px; background: url('./images/greystar.png') 0 0; margin-right: 5px; }
116
- .review-list .rating-greystar-2 { float: left; display: block; width: 32px; height: 16px; background: url('./images/greystar.png') 0 0; margin-right: 5px; }
117
- .review-list .rating-greystar-3 { float: left; display: block; width: 48px; height: 16px; background: url('./images/greystar.png') 0 0; margin-right: 5px; }
118
- .review-list .rating-greystar-4 { float: left; display: block; width: 64px; height: 16px; background: url('./images/greystar.png') 0 0; margin-right: 5px; }
119
- .review-list .rating-greystar-5 { float: left; display: block; width: 80px; height: 16px; background: url('./images/greystar.png') 0 0; margin-right: 5px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  * @license http://www.magmodules.eu/license-agreement/
14
  * =============================================================
15
  */
 
16
  .trustpilot {
17
  }
18
 
19
  .trustpilot h1 {
20
+ float:left;
21
+ width:50%
22
  }
23
 
24
  .trustpilot .button {
25
+ float:right
26
  }
27
 
28
  .trustpilot .about-trustpilot {
29
+ float:left;
30
+ width:70%
31
  }
32
 
33
  .trustpilot .stats-trustpilot {
34
+ float:right;
35
+ width:30%;
36
+ text-align:center
37
  }
38
 
39
  .trustpilot .ratingblock-trustpilot {
40
+ width:60px;
41
+ height:60px;
42
+ padding:4px 0 0 3px;
43
+ font-weight:700;
44
+ font-size:13px;
45
+ margin:6px auto;
46
+ border-radius:70px;
47
+ border:4px solid #fff;
48
+ box-shadow:1px 1px 3px #CCC
49
  }
50
 
51
  .trustpilot .content-trustpilot {
52
+ overflow:auto;
53
+ width:100%;
54
+ margin-bottom:5px
55
  }
56
 
57
  .trustpilot .review-list {
58
+ margin-bottom:25px;
59
+ margin-top:10px
60
  }
61
 
62
+ .trustpilot .review-list h3 {
63
+ width:80%;
64
+ float:left
65
  }
66
 
67
  .trustpilot .review-header {
68
+ clear:both;
69
+ border-bottom:1px solid #e0e0e0;
70
+ width:100%;
71
+ height:25px
72
  }
73
 
74
+ .trustpilot ul.overall li {
75
+ float:right
76
  }
77
 
78
+ .trustpilot ul.summary-index {
79
+ display:table;
80
+ list-style-type:none
81
  }
82
 
83
+ .trustpilot ul.summary-index li {
84
+ display:table-cell;
85
+ padding:5px 5px 5px 10px
86
  }
87
 
88
  .trustpilot ul.summary-index li.head {
89
+ padding:10px 5px 5px;
90
+ border-bottom:1px dotted #e0e0e0
91
  }
92
 
93
+ .trustpilot ul.experience {
94
+ width:100%;
95
+ padding:10px
 
96
  }
97
 
98
  .trustpilot .rating-name {
99
+ font-weight:700;
100
+ display:block;
101
+ margin-bottom:2px
102
  }
103
 
104
  /* INDEX REVIEW LIST */
105
+ .review-list .rating-empty {
106
+ float:left;
107
+ display:block;
108
+ width:80px;
109
+ height:16px;
110
+ background:url(./images/star.png) 0 -16px;
111
+ margin-right:5px
112
+ }
113
+
114
+ .review-list .rating-star-1 {
115
+ float:left;
116
+ display:block;
117
+ width:16px;
118
+ height:16px;
119
+ background:url(./images/star.png) 0 0;
120
+ margin-right:5px
121
+ }
122
+
123
+ .review-list .rating-star-2 {
124
+ float:left;
125
+ display:block;
126
+ width:32px;
127
+ height:16px;
128
+ background:url(./images/star.png) 0 0;
129
+ margin-right:5px
130
+ }
131
+
132
+ .review-list .rating-star-3 {
133
+ float:left;
134
+ display:block;
135
+ width:48px;
136
+ height:16px;
137
+ background:url(./images/star.png) 0 0;
138
+ margin-right:5px
139
+ }
140
+
141
+ .review-list .rating-star-4 {
142
+ float:left;
143
+ display:block;
144
+ width:64px;
145
+ height:16px;
146
+ background:url(./images/star.png) 0 0;
147
+ margin-right:5px
148
+ }
149
+
150
+ .review-list .rating-star-5 {
151
+ float:left;
152
+ display:block;
153
+ width:80px;
154
+ height:16px;
155
+ background:url(./images/star.png) 0 0;
156
+ margin-right:5px
157
+ }
158
+
159
+ .review-list .rating-greystar-1 {
160
+ float:left;
161
+ display:block;
162
+ width:16px;
163
+ height:16px;
164
+ background:url(./images/greystar.png) 0 0;
165
+ margin-right:5px
166
+ }
167
+
168
+ .review-list .rating-greystar-2 {
169
+ float:left;
170
+ display:block;
171
+ width:32px;
172
+ height:16px;
173
+ background:url(./images/greystar.png) 0 0;
174
+ margin-right:5px
175
+ }
176
+
177
+ .review-list .rating-greystar-3 {
178
+ float:left;
179
+ display:block;
180
+ width:48px;
181
+ height:16px;
182
+ background:url(./images/greystar.png) 0 0;
183
+ margin-right:5px
184
+ }
185
+
186
+ .review-list .rating-greystar-4 {
187
+ float:left;
188
+ display:block;
189
+ width:64px;
190
+ height:16px;
191
+ background:url(./images/greystar.png) 0 0;
192
+ margin-right:5px
193
+ }
194
+
195
+ .review-list .rating-greystar-5 {
196
+ float:left;
197
+ display:block;
198
+ width:80px;
199
+ height:16px;
200
+ background:url(./images/greystar.png) 0 0;
201
+ margin-right:5px
202
+ }