Dolphin_ScrollUp - Version 1.0.2

Version Notes

This extension is compatible with Magento CE 1.4 to 1.7.

Download this release

Release Info

Developer Magento Core Team
Extension Dolphin_ScrollUp
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/Dolphin/Respondereview/Block/Adminhtml/Review/Edit/Form.php DELETED
@@ -1,25 +0,0 @@
1
- <?php
2
- class Dolphin_Respondereview_Block_Adminhtml_Review_Edit_Form extends Mage_Adminhtml_Block_Review_Edit_Form
3
- {
4
- protected function _prepareForm()
5
- {
6
- parent::_prepareForm();
7
- if(($id = $this->getRequest()->getParam('id')) != null){
8
- $review = Mage::getModel('review/review')->load($id);
9
- if($review->getData('customer_id') != null){
10
- $form = $this->getForm();
11
- $fieldset = $form->addFieldset('responde_review', array('legend' => Mage::helper('review')->__('Responde to review'), 'class' => 'fieldset-wide'));
12
- $respondeButton = $fieldset->addField('respondereview', 'button', array(
13
- 'value' => Mage::helper('review')->__('Responde'),
14
- 'class' => 'scalable add',
15
- 'onclick' => "$('responseMessage').setStyle({display:'block'}); $$('label[for=\'responseMessage\']')[0].setStyle({display:'block'});"
16
- ));
17
- $respondeButton->setAfterElementHtml('<style type="text/css">.form-list td.label label[for="responseMessage"]{display:none;} #responseMessage{display:none;}</style>');
18
- $fieldset->addField('responseMessage', 'textarea', array(
19
- 'label' => Mage::helper('review')->__('Message'),
20
- 'name' => 'responseMessage'
21
- ));
22
- }
23
- }
24
- }
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Dolphin/Respondereview/Model/Observer.php DELETED
@@ -1,45 +0,0 @@
1
- <?php
2
- class Dolphin_Respondereview_Model_Observer
3
- {
4
- const XML_PATH_EMAIL_RECIPIENT = 'catalog/respondereview/recipient_email';
5
- const XML_PATH_EMAIL_SENDER = 'catalog/respondereview/sender_email_identity';
6
- const XML_PATH_EMAIL_TEMPLATE = 'catalog/respondereview/email_template';
7
-
8
- public function sendReviewResponse($observer)
9
- {
10
- $request = Mage::app()->getFrontController()->getRequest();
11
- $post = $request->getPost();
12
- if(isset($post['responseMessage']) && $post['responseMessage'] != null){
13
- $review = Mage::getModel('review/review')->load($request->getParam('id'));
14
- $data = array();
15
- $data['nickname'] = $review->getData('nickname');
16
- $data['comment'] = $post['responseMessage'];
17
- $email = Mage::getModel('customer/customer')->load($review->getData('customer_id'))->getEmail();
18
- $product = Mage::getModel('catalog/product')->load($review->getData('entity_pk_value'));
19
- if($product){
20
- $data['productname'] = $product->getName();
21
- $data['producturl'] = $product->getProductUrl();
22
- }
23
- $postObject = new Varien_Object();
24
- $postObject->setData($data);
25
- $translate = Mage::getSingleton('core/translate');
26
- /* @var $translate Mage_Core_Model_Translate */
27
- $translate->setTranslateInline(false);
28
-
29
- $mailTemplate = Mage::getModel('core/email_template');
30
- /* @var $mailTemplate Mage_Core_Model_Email_Template */
31
- $mailTemplate->setDesignConfig(array('area' => 'frontend'))
32
- ->setReplyTo(Mage::getStoreConfig(self::XML_PATH_EMAIL_RECIPIENT))
33
- ->sendTransactional(
34
- Mage::getStoreConfig(self::XML_PATH_EMAIL_TEMPLATE),
35
- Mage::getStoreConfig(self::XML_PATH_EMAIL_SENDER),
36
- $email,
37
- null,
38
- array('data' => $postObject)
39
- );
40
- $translate->setTranslateInline(true);
41
- }
42
- return;
43
- }
44
- }
45
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Dolphin/Respondereview/controllers/Adminhtml/ReviewController.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- include_once 'Mage/Adminhtml/controller/Catalog/Product/ReviewController.php';
3
- class Dolphin_Respondereview_Adminhtml_ReviewController extends Mage_Adminhtml_Catalog_Product_ReviewController
4
- {
5
- public function editAction()
6
- {
7
- echo "asdasda";
8
- exit;
9
- }
10
- }
 
 
 
 
 
 
 
 
 
 
app/code/community/Dolphin/Respondereview/etc/adminhtml.xml DELETED
@@ -1,23 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <acl>
4
- <resources>
5
- <admin>
6
- <children>
7
- <system>
8
- <children>
9
- <config>
10
- <children>
11
- <respondereview translate="title" module="respondereview">
12
- <title>Responde Review Extension</title>
13
- <sort_order>0</sort_order>
14
- </respondereview>
15
- </children>
16
- </config>
17
- </children>
18
- </system>
19
- </children>
20
- </admin>
21
- </resources>
22
- </acl>
23
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Dolphin/Respondereview/etc/config.xml DELETED
@@ -1,80 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <config>
3
- <modules>
4
- <Dolphin_Respondereview>
5
- <version>1.0.0</version>
6
- </Dolphin_Respondereview>
7
- </modules>
8
- <global>
9
- <blocks>
10
- <respondereview>
11
- <class>Dolphin_Respondereview_Block</class>
12
- </respondereview>
13
- <adminhtml>
14
- <rewrite>
15
- <review_edit_form>Dolphin_Respondereview_Block_Adminhtml_Review_Edit_Form</review_edit_form>
16
- </rewrite>
17
- </adminhtml>
18
- </blocks>
19
- <rewrite>
20
- <respondereview_admin_review>
21
- <from><![CDATA[#^/adminhtml/catalog_product_review/#]]></from>
22
- <to>/respondereview/adminhtml_review</to>
23
- </respondereview_admin_review>
24
- </rewrite>
25
- <models>
26
- <respondereview>
27
- <class>Dolphin_Respondereview_Model</class>
28
- </respondereview>
29
- </models>
30
- <template>
31
- <email>
32
- <catalog_respondereview_email_template translate="label" module="respondereview">
33
- <label>Responde Review</label>
34
- <file>respondereview.html</file>
35
- <type>html</type>
36
- </catalog_respondereview_email_template>
37
- </email>
38
- </template>
39
- </global>
40
- <adminhtml>
41
- <layout>
42
- <updates>
43
- <respondereview>
44
- <file>respondereview.xml</file>
45
- </respondereview>
46
- </updates>
47
- </layout>
48
- <events>
49
- <controller_action_postdispatch_adminhtml_catalog_product_review_save>
50
- <observers>
51
- <rr_send_response_postdispatch>
52
- <type>singleton</type>
53
- <class>respondereview/observer</class>
54
- <method>sendReviewResponse</method>
55
- </rr_send_response_postdispatch>
56
- </observers>
57
- </controller_action_postdispatch_adminhtml_catalog_product_review_save>
58
- </events>
59
- </adminhtml>
60
- <admin>
61
- <routers>
62
- <respondereview>
63
- <use>admin</use>
64
- <args>
65
- <module>Dolphin_Respondereview</module>
66
- <frontName>respondereview</frontName>
67
- </args>
68
- </respondereview>
69
- </routers>
70
- </admin>
71
- <default>
72
- <catalog>
73
- <respondereview>
74
- <reply_email>hello@example.com</reply_email>
75
- <sender_email_identity>custom2</sender_email_identity>
76
- <email_template>catalog_respondereview_email_template</email_template>
77
- </respondereview>
78
- </catalog>
79
- </default>
80
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Dolphin/Respondereview/etc/system.xml DELETED
@@ -1,72 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Academic Free License (AFL 3.0)
9
- * that is bundled with this package in the file LICENSE_AFL.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/afl-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 license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * DISCLAIMER
17
- *
18
- * Do not edit or add to this file if you wish to upgrade Magento to newer
19
- * versions in the future. If you wish to customize Magento for your
20
- * needs please refer to http://www.magentocommerce.com for more information.
21
- *
22
- * @category Mage
23
- * @package Mage_Shipping
24
- * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
25
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
- */
27
- -->
28
- <config>
29
- <sections>
30
- <catalog translate="label">
31
- <groups>
32
- <respondereview translate="label">
33
- <label>Responde Review</label>
34
- <frontend_type>text</frontend_type>
35
- <sort_order>800</sort_order>
36
- <show_in_default>1</show_in_default>
37
- <show_in_website>1</show_in_website>
38
- <show_in_store>1</show_in_store>
39
- <fields>
40
- <reply_email translate="label">
41
- <label>Reply Emails To</label>
42
- <frontend_type>text</frontend_type>
43
- <validate>validate-email</validate>
44
- <sort_order>10</sort_order>
45
- <show_in_default>1</show_in_default>
46
- <show_in_website>1</show_in_website>
47
- <show_in_store>1</show_in_store>
48
- </reply_email>
49
- <sender_email_identity translate="label">
50
- <label>Email Sender</label>
51
- <frontend_type>select</frontend_type>
52
- <source_model>adminhtml/system_config_source_email_identity</source_model>
53
- <sort_order>20</sort_order>
54
- <show_in_default>1</show_in_default>
55
- <show_in_website>1</show_in_website>
56
- <show_in_store>1</show_in_store>
57
- </sender_email_identity>
58
- <email_template translate="label">
59
- <label>Email Template</label>
60
- <frontend_type>select</frontend_type>
61
- <source_model>adminhtml/system_config_source_email_template</source_model>
62
- <sort_order>30</sort_order>
63
- <show_in_default>1</show_in_default>
64
- <show_in_website>1</show_in_website>
65
- <show_in_store>1</show_in_store>
66
- </email_template>
67
- </fields>
68
- </respondereview>
69
- </groups>
70
- </catalog>
71
- </sections>
72
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Dolphin/Scrollup/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Dolphin_Scrollup>
5
- <version>1.0.1</version>
6
  </Dolphin_Scrollup>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Dolphin_Scrollup>
5
+ <version>1.0.2</version>
6
  </Dolphin_Scrollup>
7
  </modules>
8
  <global>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Dolphin_ScrollUp</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -23,10 +23,10 @@ Dolphin Scrollup Features&#xD;
23
  10. Use Prototype lib instead of jQuery to avoid javascript conflicts and errors.&#xD;
24
  11. Containing compress javascript, css.</description>
25
  <notes>This extension is compatible with Magento CE 1.4 to 1.7.</notes>
26
- <authors><author><name>ankitdolphin</name><user>auto-converted</user><email>ankit@dolphinwebsolution.com</email></author></authors>
27
  <date>2013-05-01</date>
28
- <time>07:28:59</time>
29
- <contents><target name="magecommunity"><dir name="Dolphin"><dir name="Respondereview"><dir name="Block"><dir name="Adminhtml"><dir name="Review"><dir name="Edit"><file name="Form.php" hash="d9bc8996719ce4d9a56f3496a8437504"/></dir></dir></dir></dir><dir name="Model"><file name="Observer.php" hash="b1b60357f2ab9701d84cf78400ba0c29"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ReviewController.php" hash="174f2552536d5a2a52203c7742dbeabb"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="23f95f65c8eb9e13eece926c11b384b7"/><file name="config.xml" hash="faa57b47cb9ff4ef645bd21e8e8aac14"/><file name="system.xml" hash="92f9fe1ae0f9c9433f5a40be96fed98e"/></dir></dir><dir name="Scrollup"><dir name="Block"><file name="Scrollup.php" hash="302d5e697a9bd3f8e86ce0ce0971084d"/></dir><dir name="Helper"><file name="Data.php" hash="c99f97430b9b215953d102bbbda977a2"/></dir><dir name="Model"><dir name="System"><file name="Elementtype.php" hash="f88fa59b901df4436c918ac8a083474a"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="7460ff66dc47f31fa7db5f4dbd19c79a"/><file name="config.xml" hash="bdf4cafcda425dcc85dab296e59765ae"/><file name="system.xml" hash="5749f9c9216297d9eb54db3b167f1e49"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="dl_scrollup"><file name="init.phtml" hash="29e123fd87decb5e88f37c5496bc6cd3"/></dir></dir><dir name="layout"><file name="scrollup.xml" hash="9ea9717eb04b3f00f56a6da89bf7bb75"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Dolphin_Scrollup.xml" hash="22da41b03c49aea0b5b43f0ef7ac74e9"/></dir></target><target name="mageweb"><dir name="js"><dir name="dolphin"><dir name="scrollup"><file name="DLSU.js" hash="2837db1dacf88b61e53d7a67d418e310"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="dolphin"><dir name="scrollup"><dir name="css"><file name="scrollup.css" hash="714a8f3c8a1b3f476b459d3151df3090"/></dir></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="dlsu"><dir name="default"><file name="scrollup.png" hash="cfa0168d68e1c0c4992e0172b83c6950"/></dir></dir></target></contents>
30
  <compatible/>
31
  <dependencies/>
32
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Dolphin_ScrollUp</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
23
  10. Use Prototype lib instead of jQuery to avoid javascript conflicts and errors.&#xD;
24
  11. Containing compress javascript, css.</description>
25
  <notes>This extension is compatible with Magento CE 1.4 to 1.7.</notes>
26
+ <authors><author><name>DolphinWeb</name><user>auto-converted</user><email>ankit@dolphinwebsolution.com</email></author></authors>
27
  <date>2013-05-01</date>
28
+ <time>07:46:54</time>
29
+ <contents><target name="magecommunity"><dir name="Dolphin"><dir name="Scrollup"><dir name="Block"><file name="Scrollup.php" hash="302d5e697a9bd3f8e86ce0ce0971084d"/></dir><dir name="Helper"><file name="Data.php" hash="c99f97430b9b215953d102bbbda977a2"/></dir><dir name="Model"><dir name="System"><file name="Elementtype.php" hash="f88fa59b901df4436c918ac8a083474a"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="7460ff66dc47f31fa7db5f4dbd19c79a"/><file name="config.xml" hash="fadac4afe86629cebad5c3999fb08836"/><file name="system.xml" hash="5749f9c9216297d9eb54db3b167f1e49"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="dl_scrollup"><file name="init.phtml" hash="29e123fd87decb5e88f37c5496bc6cd3"/></dir></dir><dir name="layout"><file name="scrollup.xml" hash="9ea9717eb04b3f00f56a6da89bf7bb75"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Dolphin_Scrollup.xml" hash="22da41b03c49aea0b5b43f0ef7ac74e9"/></dir></target><target name="mageweb"><dir name="js"><dir name="dolphin"><dir name="scrollup"><file name="DLSU.js" hash="2837db1dacf88b61e53d7a67d418e310"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="dolphin"><dir name="scrollup"><dir name="css"><file name="scrollup.css" hash="714a8f3c8a1b3f476b459d3151df3090"/></dir></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="dlsu"><dir name="default"><file name="scrollup.png" hash="cfa0168d68e1c0c4992e0172b83c6950"/></dir></dir></target></contents>
30
  <compatible/>
31
  <dependencies/>
32
  </package>