Click2Customer_Reviews - Version 1.0.5

Version Notes

Initial Release

Download this release

Release Info

Developer Magento Core Team
Extension Click2Customer_Reviews
Version 1.0.5
Comparing to
See all releases


Code changes from version 1.0.4 to 1.0.5

app/code/community/Click2Customer/Reviews/Block/Reviews/Category.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Click2Customer_Reviews_Block_Reviews_Category extends Mage_Core_Block_Text {
3
+ protected function _loadCache() {
4
+ return false;
5
+ }
6
+
7
+ protected function _saveCache($data) {
8
+ return $this;
9
+ }
10
+
11
+ function _toHtml() {
12
+ $config = Mage::getSingleton('analytics/config');
13
+ $accountId = $config->getAccountId();
14
+ $html = '<script type="text/javascript">';
15
+ $html .='
16
+ c2cQuery(document).ready(function() {
17
+ c2cQuery(\'#c2c_prod_review\').c2cReviews({
18
+ show: 10,
19
+ type: \'product\',
20
+ key: _ss_category,
21
+ template: \'reviews\'
22
+ });
23
+ c2cQuery(\'#c2c_review_form\').c2cReviewForm({
24
+ cat_code: _ss_category
25
+ })
26
+ });
27
+ ';
28
+ $html .= '</script>';
29
+ return $html;
30
+ }
31
+ }
app/code/community/Click2Customer/Reviews/Block/Reviews/Product.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Click2Customer_Reviews_Block_Reviews_Product extends Mage_Core_Block_Text {
3
+ protected function _loadCache() {
4
+ return false;
5
+ }
6
+
7
+ protected function _saveCache($data) {
8
+ return $this;
9
+ }
10
+
11
+ function _toHtml() {
12
+ $config = Mage::getSingleton('analytics/config');
13
+ $accountId = $config->getAccountId();
14
+ $html = '<script type="text/javascript">';
15
+ $html .='
16
+ c2cQuery(document).ready(function() {
17
+ c2cQuery(\'#c2c_prod_review\').c2cReviews({
18
+ show: 10,
19
+ type: \'product\',
20
+ key: _ss_item_code,
21
+ template: \'reviews\'
22
+ });
23
+ c2cQuery(\'#c2c_review_form\').c2cReviewForm({
24
+ prod_code: _ss_item_code
25
+ })
26
+ });
27
+ ';
28
+ $html .= '</script>';
29
+ return $html;
30
+ }
31
+ }
app/code/community/Click2Customer/Reviews/etc/config.xml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <modules>
4
+ <Click2Customer_Reviews>
5
+ <version>1.0</version>
6
+ </Click2Customer_Reviews>
7
+ </modules>
8
+ <global>
9
+ <blocks>
10
+ <click2customer_reviews>
11
+ <class>Click2Customer_Reviews_Block</class>
12
+ </click2customer_reviews>
13
+ </blocks>
14
+ <helpers>
15
+ <click2customer_reviews>
16
+ <class>Click2Customer_Reviews_Helper</class>
17
+ </click2customer_reviews>
18
+ </helpers>
19
+ </global>
20
+ <frontend>
21
+ <layout>
22
+ <updates>
23
+ <clickcustomer_reviews module="Click2Customer_Reviews">
24
+ <file>click2customer_reviews.xml</file>
25
+ </clickcustomer_reviews>
26
+ </updates>
27
+ </layout>
28
+ </frontend>
29
+ </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Click2Customer_Reviews</name>
4
- <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/mit-license.php">MIT License</license>
7
  <channel>community</channel>
@@ -11,8 +11,8 @@
11
  <notes>Initial Release</notes>
12
  <authors><author><name>Click2Customer</name><user>auto-converted</user><email>info@click-2-customer.com</email></author></authors>
13
  <date>2011-08-09</date>
14
- <time>13:59:54</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Click2Customer_Reviews.xml" hash="fc459e05e755ea04b148fd1de47d6583"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="click2customer_reviews.xml" hash="890dda400a5ba38ec083b1cb6d1edf70"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><package><name>Click2Customer_Analytics</name><channel>community</channel><min>1.0.0</min><max>2.0.0</max></package></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Click2Customer_Reviews</name>
4
+ <version>1.0.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/mit-license.php">MIT License</license>
7
  <channel>community</channel>
11
  <notes>Initial Release</notes>
12
  <authors><author><name>Click2Customer</name><user>auto-converted</user><email>info@click-2-customer.com</email></author></authors>
13
  <date>2011-08-09</date>
14
+ <time>14:32:14</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="Click2Customer_Reviews.xml" hash="fc459e05e755ea04b148fd1de47d6583"/></dir></target><target name="magecommunity"><dir name="Click2Customer"><dir name="Reviews"><dir name="Block"><dir name="Reviews"><file name="Category.php" hash="db4fe37b91338e55003d1109788fc924"/><file name="Product.php" hash="3ca79b7203d7a70581b5c85ad337bad7"/></dir></dir><dir name="etc"><file name="config.xml" hash="25cd0e42d0b99c9760c51218627124cd"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="click2customer_reviews.xml" hash="890dda400a5ba38ec083b1cb6d1edf70"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><package><name>Click2Customer_Analytics</name><channel>community</channel><min>1.0.0</min><max>2.0.0</max></package></required></dependencies>
18
  </package>