ET_Reviewnotify - Version 1.0.0

Version Notes

stable release

Download this release

Release Info

Developer Jurij
Extension ET_Reviewnotify
Version 1.0.0
Comparing to
See all releases


Code changes from version 0.2.4 to 1.0.0

Files changed (24) hide show
  1. app/code/community/ET/ET_Reviewnotify_ChangeLog.txt +0 -30
  2. app/code/community/ET/ET_Reviewnotify_Description.txt +0 -72
  3. app/code/community/ET/ET_Reviewnotify_LICENSE.txt +0 -48
  4. app/code/community/ET/Reviewnotify/Block/Adminhtml/Support.php +122 -0
  5. app/code/community/ET/Reviewnotify/Block/Adminhtml/System/Config/Form/Field/Heading.php +41 -0
  6. app/code/community/ET/Reviewnotify/Block/Adminhtml/System/Config/Form/Field/Linktoinfo.php +29 -0
  7. app/code/community/ET/Reviewnotify/Block/Adminhtml/System/Config/Form/Field/Linktooptions.php +29 -0
  8. app/code/community/ET/Reviewnotify/Block/Toolbar.php +42 -43
  9. app/code/community/ET/Reviewnotify/Helper/Data.php +21 -23
  10. app/code/community/ET/Reviewnotify/Model/Observer.php +41 -38
  11. app/code/community/ET/Reviewnotify/Model/Review.php +23 -25
  12. app/code/community/ET/Reviewnotify/controllers/ProductController.php +42 -40
  13. app/code/community/ET/Reviewnotify/etc/config.xml +148 -131
  14. app/code/community/ET/Reviewnotify/etc/system.xml +146 -101
  15. app/design/adminhtml/default/default/layout/et_reviewnotify.xml +33 -34
  16. app/design/adminhtml/default/default/template/reviewnotify/toolbar.phtml +33 -38
  17. app/design/frontend/base/default/layout/et_reviewnotify.xml +33 -0
  18. app/design/frontend/default/default/layout/et_reviewnotify.xml +0 -34
  19. app/etc/modules/ET_Reviewnotify.xml +14 -15
  20. app/locale/en_US/ET_Reviewnotify.csv +16 -16
  21. app/locale/ru_RU/ET_Reviewnotify.csv +33 -17
  22. js/et/reviewnotify.js +0 -39
  23. js/et_reviewnotify/reviewnotify.js +38 -0
  24. package.xml +10 -12
app/code/community/ET/ET_Reviewnotify_ChangeLog.txt DELETED
@@ -1,30 +0,0 @@
1
- =====================================
2
- This file describes changes between versions of module ET_Reviewnotify for Magento.
3
-
4
- Legend:
5
- * bug fix
6
- + added functionality
7
- - removed functionality
8
-
9
- =====================================
10
- ver. 0.2.4
11
- + Added anti spam protection for review form on frontend (relevant when review writing for guests is allowed)
12
-
13
- ver. 0.2.3
14
- * Fixed broken Pending Reviews RSS link when Add Store Code to Urls is set to Yes.
15
-
16
- ver. 0.2.2
17
- * cleaned layout code, to avoid toolbar dublication in ver. > 1.4
18
-
19
- ver. 0.2.1
20
- * changed developer name in the package
21
-
22
- ver. 0.2.0
23
- + added notification in admin standart notification toolbar
24
- * send separate mails for each notification recipient
25
-
26
- ver. 0.1.1
27
- * added Helper (not worked - Transactional mails - add new template) - actual for Magento ver. 1.4.�
28
-
29
- ver. 0.1.0
30
- + stable release
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/ET/ET_Reviewnotify_Description.txt DELETED
@@ -1,72 +0,0 @@
1
- ==== Description / Для чего этот модуль? ====
2
-
3
- EN:
4
- 1. Store owner will receive notification email after receiving new product review.
5
- 2. If there are pending reviews - standart notification toolbar is shown in admin.
6
- Thanks for idea with toolbar to module
7
- http://www.magentocommerce.com/magento-connect/clockworkgeek/extension/3853/clockworkgeek_reviewsnotification
8
- 3. There is a function, that makes it difficult for auto bots/spammers to submit reviews.
9
-
10
- RU:
11
- 1. При поступлении нового отзыва на товар отсылается сообщение владельцу магазина на е-майл.
12
- 2. Если в системе есть отзывы, требующие проверки, то показывается стандартный тулбар оповещений в панели администрирования.
13
- Спасибо за идею с тулбаром этому модулю
14
- http://www.magentocommerce.com/magento-connect/clockworkgeek/extension/3853/clockworkgeek_reviewsnotification
15
- 3. Есть функция, затрудняющая автоматическим ботам/спаммерам написание отзывов.
16
-
17
- ====Features / Особенности модуля====
18
-
19
- EN:
20
- * Open source code (no encryption and obfuscation)
21
- * Code follows Magento development standards
22
- * Extension is available on 2 languages (ru_RU, en_US) and you can easy add your own
23
- * All extension settings are available on admin panel
24
- * Enable/Disable email notification
25
- * Enable/Disable toolbar notification
26
- * Notification email template can be changed
27
- * Email notification to multiple recipients
28
- * Enable/Disable Anti spam function
29
- * Theme modification is not required if you have original element names on your review form.
30
-
31
- RU:
32
- * Открытый исходный код
33
- * Код написан придерживаясь принятых стандартов в разработке для Магенто
34
- * Доступен на 2-ух языках (ru_RU, en_US) и легко добавляются новые переводы
35
- * Все настройки модуля доступны в панели администрирования
36
- * Включить/отключить оповещение на е-майл
37
- * Включить/отключить тулбар оповещения
38
- * Редактируемый шаблон письма-оповещения
39
- * Оповещение по нескольким адресам е-майл
40
- * Включить/отключить анти спам функцию
41
- * Не требует модификации темы (если используются стандартные названия элементов в форме отзыва)
42
-
43
-
44
-
45
- ====Version Compatibility / Совместимость версий====
46
- 1.3.х (tested in 1.3.2.4.)
47
- 1.4.x (tested in 1.4.1.1.)
48
- 1.5.x (tested in 1.5.0.1. and 1.5.1.0)
49
-
50
-
51
- ====Module tags:====
52
- reviews, notification, mail, admin, anti spam
53
-
54
- отзывы, оповещения, е-майл, админка, панель администрирования, анти спам
55
-
56
- ====Установка/Installation====
57
-
58
- * Disable Compiler, if it is enabled (System -> Tools -> Compilation)
59
- * Disable cache, if it is enabled (System -> Cache Management)
60
- * Install the extension
61
- * Log off admin panel (Log Out)
62
- * Log into admin panel (enter your login and password)
63
- * Set Advanced Compare parameters (System -> Configuration -> Catalog -> Product Reviews)
64
- * Run compilation process and enable cache if needed
65
-
66
- * Отключите компиляцию, если включена (Система -> Инструменты -> Компиляция)
67
- * Отключите кэш, если включён (Система -> Управление кэшем)
68
- * Установите модуль
69
- * Выйдите из панели администрирования (Выйти)
70
- * Войдите в панель администрирования (введите логин/пароль)
71
- * Настройте параметры отображения модуля (Система -> Конфигурация -> Каталог -> Отзывы о товаре)
72
- * Если необходимо запустите процесс компиляции и включите кэш
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/ET/ET_Reviewnotify_LICENSE.txt DELETED
@@ -1,48 +0,0 @@
1
- http://opensource.org/licenses/afl-3.0.php
2
-
3
- Academic Free License ("AFL") v. 3.0
4
- This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
5
-
6
- Licensed under the Academic Free License version 3.0
7
-
8
- 1) Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:
9
-
10
- a) to reproduce the Original Work in copies, either alone or as part of a collective work;
11
-
12
- b) to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work;
13
-
14
- c) to distribute or communicate copies of the Original Work and Derivative Works to the public, under any license of your choice that does not contradict the terms and conditions, including Licensor's reserved rights and remedies, in this Academic Free License;
15
-
16
- d) to perform the Original Work publicly; and
17
-
18
- e) to display the Original Work publicly.
19
-
20
- 2) Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.
21
-
22
- 3) Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.
23
-
24
- 4) Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.
25
-
26
- 5) External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).
27
-
28
- 6) Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
29
-
30
- 7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.
31
-
32
- 8) Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.
33
-
34
- 9) Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including "fair use" or "fair dealing"). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).
35
-
36
- 10) Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
37
-
38
- 11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.
39
-
40
- 12) Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
41
-
42
- 13) Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
43
-
44
- 14) Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
45
-
46
- 15) Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
47
-
48
- 16) Modification of This License. This License is Copyright � 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Academic Free License" or "AFL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under <insert your license name here>" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/ET/Reviewnotify/Block/Adminhtml/Support.php ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * NOTICE OF LICENSE
4
+ *
5
+ * You may not sell, sub-license, rent or lease
6
+ * any portion of the Software or Documentation to anyone.
7
+ *
8
+ * DISCLAIMER
9
+ *
10
+ * Do not edit or add to this file if you wish to upgrade to newer
11
+ * versions in the future.
12
+ *
13
+ * @category ET
14
+ * @package ET_Reviewnotify
15
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
16
+ * @contacts support@etwebsolutions.com
17
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
18
+ */
19
+
20
+ class ET_Reviewnotify_Block_Adminhtml_Support
21
+ extends Mage_Adminhtml_Block_Abstract
22
+ implements Varien_Data_Form_Element_Renderer_Interface
23
+ {
24
+ /**
25
+ * Support tab
26
+ * version 1.0.0
27
+ */
28
+ public function render(Varien_Data_Form_Element_Abstract $element)
29
+ {
30
+ $helper = Mage::helper('reviewnotify');
31
+ $moduleNameId = 'ET_Reviewnotify';
32
+
33
+ $moduleVersion = $this->_getConfigValue($moduleNameId, 'version');
34
+ $moduleName = $this->_getConfigValue($moduleNameId, 'name');
35
+ $moduleShortDescription = $this->_getConfigValue($moduleNameId, 'descr');
36
+ $moduleLicense = $this->_getConfigValue($moduleNameId, 'license');
37
+
38
+ $linkParameters = '?module=' . $moduleNameId . '&ver=' . $moduleVersion . '&ref=' . $_SERVER['HTTP_HOST'];
39
+ $moduleLicenseLink = $this->_getConfigValue($moduleNameId, 'licenselink') . $linkParameters;
40
+ $moduleSupportLink = $this->_getConfigValue($moduleNameId, 'redminelink') . $linkParameters;
41
+ $moduleLink = $this->_getConfigValue($moduleNameId, 'permanentlink') . $linkParameters;
42
+ $servicesLink = $this->_getConfigValue($moduleNameId, 'ourserviceslink') . $linkParameters;
43
+
44
+ $html =
45
+ '<style>
46
+ .line {border-top: 1px solid #c6c6c6; }
47
+ .developer-label {color: #000000; font-weight:bold; width: 150px;}
48
+ .developer-text { padding-bottom: 15px;}
49
+ .developer {width: 600px; }
50
+ </style>';
51
+
52
+ $html .= '
53
+ <table cellspacing="0" cellpading="0" class="developer">
54
+ <tr>
55
+ <td class="developer-label">' . $helper->__('Extension:') . '</td>
56
+ <td class="developer-text">' . $helper->__(
57
+ '<strong>%s</strong> (version %s)',
58
+ $moduleName,
59
+ $moduleVersion
60
+ ) . '</td>
61
+ </tr>
62
+ <tr>
63
+ <td class="developer-label">' . $helper->__('License:') . '</td>
64
+ <td class="developer-text">' . $helper->__(
65
+ '<a href="%s" target="_blank">%s</a>',
66
+ $moduleLicenseLink,
67
+ $moduleLicense
68
+ ) . '</td>
69
+ </tr>
70
+ <tr>
71
+ <td class="developer-label">' . $helper->__('Short Description:') . '</td>
72
+ <td class="developer-text">' .$moduleShortDescription. '</td>
73
+ </tr>
74
+ <tr>
75
+ <td class="developer-label">' . $helper->__('Documentation:') . '</td>
76
+ <td class="developer-text">' . $helper->__(
77
+ 'You can see description of extension features and answers to the ' .
78
+ 'frequently asked questions on <a href="%s" target="_balnk">our website</a>.',
79
+ $moduleLink) . '</td>
80
+ </tr>
81
+ <tr>
82
+ <td class="developer-label line">' . $helper->__('Support:') . '</td>
83
+ <td class="developer-text line">' . $helper->__(
84
+ 'Extension support is available through <a href="%s" target="_blank">issue tracking system' .
85
+ '</a>.<br>You can see information freely, but you will have to sign up to open a ticket.<br>' .
86
+ '<br>Please, report all bugs and feature requests that are connected to this extension.<br>' .
87
+ '<br>If by some reason you can not submit a question, bug report or feature request to our ' .
88
+ 'ticket system, you can write us an email - support@etwebsolutions.com.',
89
+ $moduleSupportLink) . '</td>
90
+ </tr>
91
+ <tr>
92
+ <td class="developer-label line">' . $helper->__('Advertisement:') . '</td>
93
+ <td class="developer-text line">' . $helper->__(
94
+ 'You can hire our team to customize the extension. E-mail us on sales@etwebsolutions.com.<br>' .
95
+ '<br>You can see a list of provided services on <a href="%s" target="_blank">our website</a>.',
96
+ $servicesLink) . '</td>
97
+ </tr>
98
+ </table>';
99
+
100
+
101
+ return $html;
102
+ }
103
+
104
+ protected function _getConfigValue($module, $config)
105
+ {
106
+ $locale = Mage::app()->getLocale()->getLocaleCode();
107
+ $defaultLocale = 'en_US';
108
+ $mainConfig = Mage::getConfig();
109
+ $moduleConfig = $mainConfig->getNode('modules/' . $module . '/' . $config);
110
+
111
+ if ((string)$moduleConfig) {
112
+ return $moduleConfig;
113
+ }
114
+
115
+ if ($moduleConfig->$locale) {
116
+ return $moduleConfig->$locale;
117
+ } else {
118
+ return $moduleConfig->$defaultLocale;
119
+ }
120
+ }
121
+
122
+ }
app/code/community/ET/Reviewnotify/Block/Adminhtml/System/Config/Form/Field/Heading.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * NOTICE OF LICENSE
4
+ *
5
+ * You may not sell, sub-license, rent or lease
6
+ * any portion of the Software or Documentation to anyone.
7
+ *
8
+ * DISCLAIMER
9
+ *
10
+ * Do not edit or add to this file if you wish to upgrade to newer
11
+ * versions in the future.
12
+ *
13
+ * @category ET
14
+ * @package ET_Reviewnotify
15
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
16
+ * @contacts support@etwebsolutions.com
17
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
18
+ */
19
+
20
+ //if (!class_exists('Mage_Adminhtml_Block_System_Config_Form_Field_Heading')) {
21
+ // https://bugs.php.net/bug.php?id=52339
22
+ if (version_compare(Mage::getVersion(), '1.4.1', '<')) {
23
+ class ET_Reviewnotify_Block_Adminhtml_System_Config_Form_Field_Heading
24
+ extends Mage_Adminhtml_Block_Abstract
25
+ implements Varien_Data_Form_Element_Renderer_Interface
26
+ {
27
+
28
+ public function render(Varien_Data_Form_Element_Abstract $element)
29
+ {
30
+ return sprintf(
31
+ '<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4 id="%s">%s</h4></td></tr>',
32
+ $element->getHtmlId(), $element->getHtmlId(), $element->getLabel()
33
+ );
34
+ }
35
+ }
36
+ } else {
37
+ class ET_Reviewnotify_Block_Adminhtml_System_Config_Form_Field_Heading
38
+ extends Mage_Adminhtml_Block_System_Config_Form_Field_Heading
39
+ {
40
+ }
41
+ }
app/code/community/ET/Reviewnotify/Block/Adminhtml/System/Config/Form/Field/Linktoinfo.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * NOTICE OF LICENSE
4
+ *
5
+ * You may not sell, sub-license, rent or lease
6
+ * any portion of the Software or Documentation to anyone.
7
+ *
8
+ * DISCLAIMER
9
+ *
10
+ * Do not edit or add to this file if you wish to upgrade to newer
11
+ * versions in the future.
12
+ *
13
+ * @category ET
14
+ * @package ET_Reviewnotify
15
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
16
+ * @contacts support@etwebsolutions.com
17
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
18
+ */
19
+
20
+ class ET_Reviewnotify_Block_Adminhtml_System_Config_Form_Field_Linktoinfo
21
+ extends Mage_Adminhtml_Block_System_Config_Form_Field
22
+ {
23
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
24
+ {
25
+ return '<a href="' . $this->getUrl('*/system_config/edit', array('section' => 'reviewnotify')) . '">' .
26
+ Mage::helper('reviewnotify')->__('Extension information') .
27
+ '</a>';
28
+ }
29
+ }
app/code/community/ET/Reviewnotify/Block/Adminhtml/System/Config/Form/Field/Linktooptions.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * NOTICE OF LICENSE
4
+ *
5
+ * You may not sell, sub-license, rent or lease
6
+ * any portion of the Software or Documentation to anyone.
7
+ *
8
+ * DISCLAIMER
9
+ *
10
+ * Do not edit or add to this file if you wish to upgrade to newer
11
+ * versions in the future.
12
+ *
13
+ * @category ET
14
+ * @package ET_Reviewnotify
15
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
16
+ * @contacts support@etwebsolutions.com
17
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
18
+ */
19
+
20
+ class ET_Reviewnotify_Block_Adminhtml_System_Config_Form_Field_Linktooptions
21
+ extends Mage_Adminhtml_Block_System_Config_Form_Field
22
+ {
23
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
24
+ {
25
+ return '<a href="' . $this->getUrl('*/system_config/edit', array('section' => 'catalog')) . '">' .
26
+ Mage::helper('reviewnotify')->__('Go to Catalog settings section') .
27
+ '</a>';
28
+ }
29
+ }
app/code/community/ET/Reviewnotify/Block/Toolbar.php CHANGED
@@ -1,10 +1,9 @@
1
  <?php
2
  /**
3
- * ET Web Solutions
4
- *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
 
8
  *
9
  * DISCLAIMER
10
  *
@@ -13,51 +12,51 @@
13
  *
14
  * @category ET
15
  * @package ET_Reviewnotify
16
- * @copyright Copyright (c) 2011 ET Web Solutions (http://etwebsolutions.com)
17
  * @contacts support@etwebsolutions.com
18
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
19
  */
20
 
21
  class ET_Reviewnotify_Block_Toolbar extends Mage_Adminhtml_Block_Template
22
  {
23
- /**
24
- * Get pending reviews as a collection, might be none.
25
- *
26
- * @return Mage_Review_Model_Mysql4_Review_Product_Collection
27
- */
28
- public function getPending()
29
- {
30
- /* @var $model Mage_Review_Model_Review */
31
- $model = Mage::getModel('review/review');
32
- /* @var $collection Mage_Review_Model_Mysql4_Review_Product_Collection */
33
- $collection = $model->getProductCollection()
34
- ->addStatusFilter($model->getPendingStatus())
35
- ->load();
36
- return $collection;
37
- }
38
 
39
- /**
40
- * Get edit URL for a product
41
- *
42
- * @param Mage_Catalog_Model_Product $product
43
- * @return string
44
- */
45
- public function getEditUrl($product)
46
- {
47
- $params = array('id' => $product->getId());
48
- return $this->getUrl('adminhtml/catalog_product/edit', $params);
49
- }
50
 
51
- /**
52
- * Get edit URL for a product's review
53
- *
54
- * @param Mage_Catalog_Model_Product $product
55
- * @return string
56
- */
57
- public function getReviewUrl($product)
58
- {
59
- $params = array('id'=>$product->getReviewId());
60
- return $this->getUrl('*/catalog_product_review/edit', $params);
61
- }
62
 
63
- }
1
  <?php
2
  /**
 
 
3
  * NOTICE OF LICENSE
4
  *
5
+ * You may not sell, sub-license, rent or lease
6
+ * any portion of the Software or Documentation to anyone.
7
  *
8
  * DISCLAIMER
9
  *
12
  *
13
  * @category ET
14
  * @package ET_Reviewnotify
15
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
16
  * @contacts support@etwebsolutions.com
17
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
18
  */
19
 
20
  class ET_Reviewnotify_Block_Toolbar extends Mage_Adminhtml_Block_Template
21
  {
22
+ /**
23
+ * Get pending reviews as a collection, might be none.
24
+ *
25
+ * @return Mage_Review_Model_Mysql4_Review_Product_Collection
26
+ */
27
+ public function getPending()
28
+ {
29
+ /* @var $model Mage_Review_Model_Review */
30
+ $model = Mage::getModel('review/review');
31
+ /* @var $collection Mage_Review_Model_Mysql4_Review_Product_Collection */
32
+ $collection = $model->getProductCollection()
33
+ ->addStatusFilter($model->getPendingStatus())
34
+ ->load();
35
+ return $collection;
36
+ }
37
 
38
+ /**
39
+ * Get edit URL for a product
40
+ *
41
+ * @param Mage_Catalog_Model_Product $product
42
+ * @return string
43
+ */
44
+ public function getEditUrl($product)
45
+ {
46
+ $params = array('id' => $product->getId());
47
+ return $this->getUrl('adminhtml/catalog_product/edit', $params);
48
+ }
49
 
50
+ /**
51
+ * Get edit URL for a product's review
52
+ *
53
+ * @param Mage_Catalog_Model_Product $product
54
+ * @return string
55
+ */
56
+ public function getReviewUrl($product)
57
+ {
58
+ $params = array('id'=>$product->getReviewId());
59
+ return $this->getUrl('*/catalog_product_review/edit', $params);
60
+ }
61
 
62
+ }
app/code/community/ET/Reviewnotify/Helper/Data.php CHANGED
@@ -1,24 +1,22 @@
1
- <?php
2
- /**
3
- * ET Web Solutions
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade to newer
12
- * versions in the future.
13
- *
14
- * @category ET
15
- * @package ET_Reviewnotify
16
- * @copyright Copyright (c) 2011 ET Web Solutions (http://etwebsolutions.com)
17
- * @contacts support@etwebsolutions.com
18
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
19
- */
20
-
21
- class ET_Reviewnotify_Helper_Data extends Mage_Core_Helper_Abstract
22
- {
23
-
24
  }
1
+ <?php
2
+ /**
3
+ * NOTICE OF LICENSE
4
+ *
5
+ * You may not sell, sub-license, rent or lease
6
+ * any portion of the Software or Documentation to anyone.
7
+ *
8
+ * DISCLAIMER
9
+ *
10
+ * Do not edit or add to this file if you wish to upgrade to newer
11
+ * versions in the future.
12
+ *
13
+ * @category ET
14
+ * @package ET_Reviewnotify
15
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
16
+ * @contacts support@etwebsolutions.com
17
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
18
+ */
19
+
20
+ class ET_Reviewnotify_Helper_Data extends Mage_Core_Helper_Abstract
21
+ {
 
 
22
  }
app/code/community/ET/Reviewnotify/Model/Observer.php CHANGED
@@ -1,10 +1,9 @@
1
  <?php
2
  /**
3
- * ET Web Solutions
4
- *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
 
8
  *
9
  * DISCLAIMER
10
  *
@@ -13,49 +12,53 @@
13
  *
14
  * @category ET
15
  * @package ET_Reviewnotify
16
- * @copyright Copyright (c) 2010 ET Web Solutions (http://etwebsolutions.com)
17
  * @contacts support@etwebsolutions.com
18
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
19
  */
20
 
21
-
22
  class ET_Reviewnotify_Model_Observer
23
  {
24
- public function __construct()
25
- {
26
- }
27
 
28
- public function send_nofificatin_mail($observer)
29
- {
30
- $this->need_send = Mage::getStoreConfig('catalog/review/need_send');
31
- $this->event_email = Mage::getStoreConfig('catalog/review/email_to');
32
- $this->email_template = Mage::getStoreConfig('catalog/review/email_template');
33
- $this->email_identity = Mage::getStoreConfig('catalog/review/email_identity');
34
 
35
 
36
- if(($this->need_send)&(trim($this->event_email)))
37
- {
38
- $product=Mage::getModel('catalog/product')->load($observer->object->getEntityPkValue());
39
- $emailTemplate = Mage::getModel('core/email_template');
40
 
41
- $recipients = explode(",",$this->event_email);
42
- foreach($recipients as $k => $recipient)
43
- $sendresult=$emailTemplate->setDesignConfig(array('area' => 'backend'))
44
- ->sendTransactional(
45
- $this->email_template,
46
- $this->email_identity,
47
- trim($recipient),
48
- trim($recipient),
49
- array(
50
- "product"=>$product->getName()." (sku: ".$product->getsku().")",
51
- "title"=>$observer->object->getTitle(),
52
- "nickname"=>$observer->object->getNickname(),
53
- "details"=>$observer->object->getDetail(),
54
- "id"=>$observer->object->getId(),
55
- 'date' => Mage::app()->getLocale()->date(date("Y-m-d H:i:s"), Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM), null,true)
56
- )
57
- );
58
- }
59
- }
 
 
 
 
 
 
60
 
61
  }
1
  <?php
2
  /**
 
 
3
  * NOTICE OF LICENSE
4
  *
5
+ * You may not sell, sub-license, rent or lease
6
+ * any portion of the Software or Documentation to anyone.
7
  *
8
  * DISCLAIMER
9
  *
12
  *
13
  * @category ET
14
  * @package ET_Reviewnotify
15
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
16
  * @contacts support@etwebsolutions.com
17
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
18
  */
19
 
 
20
  class ET_Reviewnotify_Model_Observer
21
  {
22
+ public function __construct()
23
+ {
24
+ }
25
 
26
+ public function send_nofificatin_mail($observer)
27
+ {
28
+ $this->needSend = Mage::getStoreConfig('catalog/review/need_send');
29
+ $this->eventEmail = Mage::getStoreConfig('catalog/review/email_to');
30
+ $this->emailTemplate = Mage::getStoreConfig('catalog/review/email_template');
31
+ $this->emailIdentity = Mage::getStoreConfig('catalog/review/email_identity');
32
 
33
 
34
+ if (($this->needSend) & (trim($this->eventEmail))) {
35
+ $product = Mage::getModel('catalog/product')->load($observer->object->getEntityPkValue());
36
+ $emailTemplate = Mage::getModel('core/email_template');
 
37
 
38
+ $recipients = explode(",", $this->eventEmail);
39
+ foreach ($recipients as $k => $recipient) {
40
+ $sendresult = $emailTemplate->setDesignConfig(array('area' => 'backend'))
41
+ ->sendTransactional(
42
+ $this->emailTemplate,
43
+ $this->emailIdentity,
44
+ trim($recipient),
45
+ trim($recipient),
46
+ array(
47
+ "product" => $product->getName()." (sku: ".$product->getsku().")",
48
+ "title" => $observer->object->getTitle(),
49
+ "nickname" => $observer->object->getNickname(),
50
+ "details" => $observer->object->getDetail(),
51
+ "id" => $observer->object->getId(),
52
+ 'date' => Mage::app()->getLocale()->date(
53
+ date("Y-m-d H:i:s"),
54
+ Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM),
55
+ null,
56
+ true
57
+ )
58
+ )
59
+ );
60
+ }
61
+ }
62
+ }
63
 
64
  }
app/code/community/ET/Reviewnotify/Model/Review.php CHANGED
@@ -1,25 +1,23 @@
1
- <?php
2
- /**
3
- * ET Web Solutions
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade to newer
12
- * versions in the future.
13
- *
14
- * @category ET
15
- * @package ET_Reviewnotify
16
- * @copyright Copyright (c) 2010 ET Web Solutions (http://etwebsolutions.com)
17
- * @contacts support@etwebsolutions.com
18
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
19
- */
20
-
21
-
22
- class ET_Reviewnotify_Model_Review extends Mage_Review_Model_Review
23
- {
24
- protected $_eventPrefix = 'review_review';
25
- }
1
+ <?php
2
+ /**
3
+ * NOTICE OF LICENSE
4
+ *
5
+ * You may not sell, sub-license, rent or lease
6
+ * any portion of the Software or Documentation to anyone.
7
+ *
8
+ * DISCLAIMER
9
+ *
10
+ * Do not edit or add to this file if you wish to upgrade to newer
11
+ * versions in the future.
12
+ *
13
+ * @category ET
14
+ * @package ET_Reviewnotify
15
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
16
+ * @contacts support@etwebsolutions.com
17
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
18
+ */
19
+
20
+ class ET_Reviewnotify_Model_Review extends Mage_Review_Model_Review
21
+ {
22
+ protected $_eventPrefix = 'review_review';
23
+ }
 
 
app/code/community/ET/Reviewnotify/controllers/ProductController.php CHANGED
@@ -1,10 +1,9 @@
1
  <?php
2
  /**
3
- * ET Web Solutions
4
- *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
 
8
  *
9
  * DISCLAIMER
10
  *
@@ -13,50 +12,53 @@
13
  *
14
  * @category ET
15
  * @package ET_Reviewnotify
16
- * @copyright Copyright (c) 2011 ET Web Solutions (http://etwebsolutions.com)
17
  * @contacts support@etwebsolutions.com
18
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
19
  */
20
 
21
  require_once 'Mage/Review/controllers/ProductController.php';
22
  class ET_Reviewnotify_ProductController extends Mage_Review_ProductController
23
  {
24
- const SECRET_KEY = "ET_Special_Codes_String";
25
 
26
- public function prepostAction()
27
- {
28
- $result = array("sequence"=>$this->_calculateCode($this->getRequest()->getPost()));
29
- $this->getResponse()->setBody('<script>window.parent.postReviewRestoreData("'.$result["sequence"].'")</script>');
30
- }
 
 
31
 
32
- public function postAction()
33
- {
34
- $data = $this->getRequest()->getPost();
35
- if(Mage::getStoreConfig('catalog/review/antispam'))
36
- {
37
- if(!isset($data["sequence"]))$data["sequence"]="";
38
- if(strcmp($data["sequence"],$this->_calculateCode($data))!=0)
39
- {
40
- $session = Mage::getSingleton('core/session');
41
- $session->setFormData($data);
42
- $session->addError($this->__('Unable to post the review.'));
43
- if ($redirectUrl = Mage::getSingleton('review/session')->getRedirectUrl(true))
44
- {
45
- $this->_redirectUrl($redirectUrl);
46
- return;
47
- }
48
- $this->_redirectReferer();
49
- return;
50
- }
51
- }
52
- return parent::postAction();
53
- }
54
 
55
- protected function _calculateCode($data)
56
- {
57
- $allKeys=array("title","nickname","detail");
58
- $all4Gen=array(self::SECRET_KEY);
59
- foreach($allKeys as $oneKey)$all4Gen[]=isset($data[$oneKey])?$data[$oneKey]:rand();
60
- return md5(implode("|",$all4Gen));
61
- }
 
 
62
  }
1
  <?php
2
  /**
 
 
3
  * NOTICE OF LICENSE
4
  *
5
+ * You may not sell, sub-license, rent or lease
6
+ * any portion of the Software or Documentation to anyone.
7
  *
8
  * DISCLAIMER
9
  *
12
  *
13
  * @category ET
14
  * @package ET_Reviewnotify
15
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
16
  * @contacts support@etwebsolutions.com
17
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
18
  */
19
 
20
  require_once 'Mage/Review/controllers/ProductController.php';
21
  class ET_Reviewnotify_ProductController extends Mage_Review_ProductController
22
  {
23
+ const SECRET_KEY = "ET_Special_Codes_String";
24
 
25
+ public function prepostAction()
26
+ {
27
+ $result = array("sequence"=>$this->_calculateCode($this->getRequest()->getPost()));
28
+ $this->getResponse()->setBody(
29
+ '<script>window.parent.postReviewRestoreData("'.$result["sequence"].'")</script>'
30
+ );
31
+ }
32
 
33
+ public function postAction()
34
+ {
35
+ $data = $this->getRequest()->getPost();
36
+ if (Mage::getStoreConfig('catalog/review/antispam')) {
37
+ if (!isset($data["sequence"])) {
38
+ $data["sequence"] = "";
39
+ }
40
+ if (strcmp($data["sequence"], $this->_calculateCode($data)) != 0) {
41
+ $session = Mage::getSingleton('core/session');
42
+ $session->setFormData($data);
43
+ $session->addError($this->__('Unable to post the review.'));
44
+ if ($redirectUrl = Mage::getSingleton('review/session')->getRedirectUrl(true)) {
45
+ $this->_redirectUrl($redirectUrl);
46
+ return;
47
+ }
48
+ $this->_redirectReferer();
49
+ return;
50
+ }
51
+ }
52
+ return parent::postAction();
53
+ }
 
54
 
55
+ protected function _calculateCode($data)
56
+ {
57
+ $allKeys = array("title", "nickname", "detail");
58
+ $allForGen = array(self::SECRET_KEY);
59
+ foreach ($allKeys as $oneKey) {
60
+ $allForGen[] = isset($data[$oneKey])?$data[$oneKey]:rand();
61
+ }
62
+ return md5(implode("|", $allForGen));
63
+ }
64
  }
app/code/community/ET/Reviewnotify/etc/config.xml CHANGED
@@ -1,11 +1,10 @@
1
  <?xml version="1.0"?>
2
- <!--
3
  /**
4
- * ET Web Solutions
5
- *
6
  * NOTICE OF LICENSE
7
  *
8
- * This source file is subject to the Academic Free License (AFL 3.0)
 
9
  *
10
  * DISCLAIMER
11
  *
@@ -14,146 +13,164 @@
14
  *
15
  * @category ET
16
  * @package ET_Reviewnotify
17
- * @copyright Copyright (c) 2011 ET Web Solutions (http://etwebsolutions.com)
18
  * @contacts support@etwebsolutions.com
19
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
20
- */
21
  -->
22
 
23
  <config>
24
- <modules>
25
- <ET_Reviewnotify>
26
- <version>0.2.4</version>
27
- <descr>
28
- <ru_RU><![CDATA[При поступлении нового отзыва на товар отсылается сообщение владельцу магазина на емайл. Если есть необработанные отзывы - показывается напоминание в стандартном тулбаре оповещений в панели администрирования. Настройки модуля в секции Каталог - Отзывы о товаре.]]>
29
- </ru_RU>
30
- <en_US><![CDATA[Store owner will recieve notification after recieving new product review. If there is pending reviews - standart notification toolbar is shown in admin. Settings in section Catalog - Product Reviews.]]>
31
- </en_US>
32
- </descr>
33
- </ET_Reviewnotify>
34
- </modules>
35
- <global>
36
- <rewrite>
37
- <review>
38
- <from><![CDATA[#^/review/product/#]]></from>
39
- <to>/etreviewnotify/product/</to>
40
- </review>
41
- </rewrite>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
- <models>
44
- <reviewnotify>
45
- <class>ET_Reviewnotify_Model</class>
46
- </reviewnotify>
47
- <review>
48
- <rewrite>
49
- <review>ET_Reviewnotify_Model_Review</review>
50
- </rewrite>
51
- </review>
52
- </models>
53
 
54
- <helpers>
55
- <reviewnotify>
56
- <class>ET_Reviewnotify_Helper</class>
57
- </reviewnotify>
58
- </helpers>
59
 
60
- <blocks>
61
- <reviewnotify>
62
- <class>ET_Reviewnotify_Block</class>
63
- </reviewnotify>
64
- </blocks>
65
 
66
- <template>
67
- <email>
68
- <catalog_review_email_template translate="label" module="reviewnotify">
69
- <label>Review notify email</label>
70
- <file>et_reviewnotify.html</file>
71
- <type>text</type>
72
- </catalog_review_email_template>
73
- </email>
74
- </template>
75
- </global>
76
 
77
- <default>
78
- <catalog>
79
- <review>
80
- <need_send>0</need_send>
81
- <need_notify>1</need_notify>
82
- <antispam>0</antispam>
83
- </review>
84
- </catalog>
85
- </default>
86
 
87
 
88
- <frontend>
89
- <events>
90
- <review_review_save_after>
91
- <observers>
92
- <et_reviewnotify_observer>
93
- <type>singleton</type>
94
- <class>reviewnotify/observer</class>
95
- <method>send_nofificatin_mail</method>
96
- </et_reviewnotify_observer>
97
- </observers>
98
- </review_review_save_after>
99
- </events>
100
 
101
- <routers>
102
- <reviewnotify>
103
- <use>standard</use>
104
- <args>
105
- <module>ET_Reviewnotify</module>
106
- <frontName>etreviewnotify</frontName>
107
- </args>
108
- </reviewnotify>
109
- </routers>
110
 
111
- <layout>
112
- <updates>
113
- <reviewnotify>
114
- <file>et_reviewnotify.xml</file>
115
- </reviewnotify>
116
- </updates>
117
- </layout>
118
- </frontend>
119
 
120
- <adminhtml>
121
- <layout>
122
- <updates>
123
- <reviewnotify>
124
- <file>et_reviewnotify.xml</file>
125
- </reviewnotify>
126
- </updates>
127
- </layout>
128
- <translate>
129
- <modules>
130
- <ET_Reviewnotify>
131
- <files>
132
- <default>ET_Reviewnotify.csv</default>
133
- </files>
134
- </ET_Reviewnotify>
135
- </modules>
136
- </translate>
137
- <acl>
138
- <resources>
139
- <admin>
140
- <children>
141
- <system>
142
- <children>
143
- <config>
144
- <children>
145
- <reviewnotify translate="title" module="reviewnotify">
146
- <title>ET Review Notify</title>
147
- <sort_order>400</sort_order>
148
- </reviewnotify>
149
- </children>
150
- </config>
151
- </children>
152
- </system>
153
- </children>
154
- </admin>
155
- </resources>
156
- </acl>
157
- </adminhtml>
158
 
159
  </config>
1
  <?xml version="1.0"?>
2
+ <!--
3
  /**
 
 
4
  * NOTICE OF LICENSE
5
  *
6
+ * You may not sell, sub-license, rent or lease
7
+ * any portion of the Software or Documentation to anyone.
8
  *
9
  * DISCLAIMER
10
  *
13
  *
14
  * @category ET
15
  * @package ET_Reviewnotify
16
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
17
  * @contacts support@etwebsolutions.com
18
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
19
+ */
20
  -->
21
 
22
  <config>
23
+ <modules>
24
+ <ET_Reviewnotify>
25
+ <name>ET Review Notify</name>
26
+ <version>1.0.0</version>
27
+ <descr>
28
+ <ru_RU><![CDATA[Модуль добавляет функцию оповещения владельца сайта о появлении новых отзывов и затрудняет спам-ботам автоматическое размещение отзывов.]]>
29
+ </ru_RU>
30
+ <en_US><![CDATA[Extension notifies store owner about new reviews and complicates automatic review posting for spam bots.]]>
31
+ </en_US>
32
+ </descr>
33
+ <permanentlink>
34
+ <ru_RU>http://shop.etwebsolutions.com/rus/et-reviewnotify.html</ru_RU>
35
+ <en_US>http://shop.etwebsolutions.com/eng/et-reviewnotify.html</en_US>
36
+ </permanentlink>
37
+ <license>
38
+ <ru_RU><![CDATA[ETWS Свободная лицензия (EFL1)]]></ru_RU>
39
+ <en_US><![CDATA[ETWS Free License (EFL1)]]></en_US>
40
+ </license>
41
+ <licenselink>
42
+ <ru_RU>http://shop.etwebsolutions.com/rus/etws-license-free-v1</ru_RU>
43
+ <en_US>http://shop.etwebsolutions.com/eng/etws-license-free-v1</en_US>
44
+ </licenselink>
45
+ <redminelink>http://support.etwebsolutions.com/projects/et-reviewnotify/roadmap</redminelink>
46
+ <ourserviceslink>
47
+ <ru_RU>http://shop.etwebsolutions.com/rus/our-services</ru_RU>
48
+ <en_US>http://shop.etwebsolutions.com/eng/our-services</en_US>
49
+ </ourserviceslink>
50
+ </ET_Reviewnotify>
51
+ </modules>
52
+ <global>
53
+ <rewrite>
54
+ <review>
55
+ <from><![CDATA[#^/review/product/#]]></from>
56
+ <to>/etreviewnotify/product/</to>
57
+ </review>
58
+ </rewrite>
59
 
60
+ <models>
61
+ <reviewnotify>
62
+ <class>ET_Reviewnotify_Model</class>
63
+ </reviewnotify>
64
+ <review>
65
+ <rewrite>
66
+ <review>ET_Reviewnotify_Model_Review</review>
67
+ </rewrite>
68
+ </review>
69
+ </models>
70
 
71
+ <helpers>
72
+ <reviewnotify>
73
+ <class>ET_Reviewnotify_Helper</class>
74
+ </reviewnotify>
75
+ </helpers>
76
 
77
+ <blocks>
78
+ <reviewnotify>
79
+ <class>ET_Reviewnotify_Block</class>
80
+ </reviewnotify>
81
+ </blocks>
82
 
83
+ <template>
84
+ <email>
85
+ <catalog_review_email_template translate="label" module="reviewnotify">
86
+ <label>Review notify email</label>
87
+ <file>et_reviewnotify.html</file>
88
+ <type>text</type>
89
+ </catalog_review_email_template>
90
+ </email>
91
+ </template>
92
+ </global>
93
 
94
+ <default>
95
+ <catalog>
96
+ <review>
97
+ <need_send>0</need_send>
98
+ <need_notify>1</need_notify>
99
+ <antispam>0</antispam>
100
+ </review>
101
+ </catalog>
102
+ </default>
103
 
104
 
105
+ <frontend>
106
+ <events>
107
+ <review_review_save_after>
108
+ <observers>
109
+ <et_reviewnotify_observer>
110
+ <type>singleton</type>
111
+ <class>reviewnotify/observer</class>
112
+ <method>send_nofificatin_mail</method>
113
+ </et_reviewnotify_observer>
114
+ </observers>
115
+ </review_review_save_after>
116
+ </events>
117
 
118
+ <routers>
119
+ <reviewnotify>
120
+ <use>standard</use>
121
+ <args>
122
+ <module>ET_Reviewnotify</module>
123
+ <frontName>etreviewnotify</frontName>
124
+ </args>
125
+ </reviewnotify>
126
+ </routers>
127
 
128
+ <layout>
129
+ <updates>
130
+ <reviewnotify>
131
+ <file>et_reviewnotify.xml</file>
132
+ </reviewnotify>
133
+ </updates>
134
+ </layout>
135
+ </frontend>
136
 
137
+ <adminhtml>
138
+ <layout>
139
+ <updates>
140
+ <reviewnotify>
141
+ <file>et_reviewnotify.xml</file>
142
+ </reviewnotify>
143
+ </updates>
144
+ </layout>
145
+ <translate>
146
+ <modules>
147
+ <ET_Reviewnotify>
148
+ <files>
149
+ <default>ET_Reviewnotify.csv</default>
150
+ </files>
151
+ </ET_Reviewnotify>
152
+ </modules>
153
+ </translate>
154
+ <acl>
155
+ <resources>
156
+ <admin>
157
+ <children>
158
+ <system>
159
+ <children>
160
+ <config>
161
+ <children>
162
+ <reviewnotify translate="title" module="reviewnotify">
163
+ <title>ET Review Notify</title>
164
+ <sort_order>400</sort_order>
165
+ </reviewnotify>
166
+ </children>
167
+ </config>
168
+ </children>
169
+ </system>
170
+ </children>
171
+ </admin>
172
+ </resources>
173
+ </acl>
174
+ </adminhtml>
175
 
176
  </config>
app/code/community/ET/Reviewnotify/etc/system.xml CHANGED
@@ -1,11 +1,10 @@
1
  <?xml version="1.0"?>
2
- <!--
3
  /**
4
- * ET Web Solutions
5
- *
6
  * NOTICE OF LICENSE
7
  *
8
- * This source file is subject to the Academic Free License (AFL 3.0)
 
9
  *
10
  * DISCLAIMER
11
  *
@@ -14,110 +13,156 @@
14
  *
15
  * @category ET
16
  * @package ET_Reviewnotify
17
- * @copyright Copyright (c) 2011 ET Web Solutions (http://etwebsolutions.com)
18
  * @contacts support@etwebsolutions.com
19
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
20
- */
21
  -->
22
 
23
  <config>
24
- <tabs>
25
- <etall translate="label">
26
- <label>ET Extensions</label>
27
- <sort_order>400</sort_order>
28
- </etall>
29
- </tabs>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
- <sections>
32
- <reviewnotify translate="label" module="reviewnotify">
33
- <label>Review Notify</label>
34
- <tab>etall</tab>
35
- <frontend_type>text</frontend_type>
36
- <sort_order>300</sort_order>
37
- <show_in_default>1</show_in_default>
38
- <show_in_website>1</show_in_website>
39
- <show_in_store>1</show_in_store>
40
- <groups>
41
- <info translate="label comment" module="reviewnotify">
42
- <label>Review Notify Options</label>
43
- <comment>Module options available in System -> Configuration -> Catalog -> Product Reviews</comment>
44
- <frontend_type>text</frontend_type>
45
- <sort_order>10</sort_order>
46
- <show_in_default>1</show_in_default>
47
- <show_in_website>1</show_in_website>
48
- <show_in_store>1</show_in_store>
49
- </info>
50
- </groups>
51
- </reviewnotify>
52
-
53
- <catalog>
54
- <groups>
55
- <review translate="label" module="reviewnotify">
56
- <fields>
57
- <antispam translate="label comment">
58
- <label>Use Antispam</label>
59
- <comment>Make review posting harder for automatic spammers</comment>
60
- <frontend_type>select</frontend_type>
61
- <source_model>adminhtml/system_config_source_yesno</source_model>
62
- <sort_order>199</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
- </antispam>
67
- <need_send translate="label comment">
68
- <label>Send notification</label>
69
- <comment>Notification will be send to e-mail if new review is placed. Default: No</comment>
70
- <frontend_type>select</frontend_type>
71
- <source_model>adminhtml/system_config_source_yesno</source_model>
72
- <sort_order>200</sort_order>
73
- <show_in_default>1</show_in_default>
74
- <show_in_website>1</show_in_website>
75
- <show_in_store>1</show_in_store>
76
- </need_send>
77
 
78
- <email_to translate="label comment">
79
- <label>Mail to</label>
80
- <comment>You can specify multiple recipients. Comma separated. For example: admin1@example.com, admin2@example.com</comment>
81
- <frontend_type>text</frontend_type>
82
- <sort_order>300</sort_order>
83
- <show_in_default>1</show_in_default>
84
- <show_in_website>1</show_in_website>
85
- <show_in_store>1</show_in_store>
86
- </email_to>
87
 
88
- <email_template translate="label">
89
- <label>Mail Template</label>
90
- <frontend_type>select</frontend_type>
91
- <source_model>adminhtml/system_config_source_email_template</source_model>
92
- <sort_order>501</sort_order>
93
- <show_in_default>1</show_in_default>
94
- <show_in_website>1</show_in_website>
95
- <show_in_store>1</show_in_store>
96
- </email_template>
97
 
98
- <email_identity translate="label">
99
- <label>Store email</label>
100
- <frontend_type>select</frontend_type>
101
- <source_model>adminhtml/system_config_source_email_identity</source_model>
102
- <sort_order>502</sort_order>
103
- <show_in_default>1</show_in_default>
104
- <show_in_website>1</show_in_website>
105
- <show_in_store>1</show_in_store>
106
- </email_identity>
 
107
 
108
- <need_notify translate="label comment">
109
- <label>Show notification</label>
110
- <comment>Notification toolbar will be displayed if there is pending reviews. Default: Yes</comment>
111
- <frontend_type>select</frontend_type>
112
- <source_model>adminhtml/system_config_source_yesno</source_model>
113
- <sort_order>700</sort_order>
114
- <show_in_default>1</show_in_default>
115
- <show_in_website>1</show_in_website>
116
- <show_in_store>1</show_in_store>
117
- </need_notify>
118
- </fields>
119
- </review>
120
- </groups>
121
- </catalog>
122
- </sections>
123
  </config>
1
  <?xml version="1.0"?>
2
+ <!--
3
  /**
 
 
4
  * NOTICE OF LICENSE
5
  *
6
+ * You may not sell, sub-license, rent or lease
7
+ * any portion of the Software or Documentation to anyone.
8
  *
9
  * DISCLAIMER
10
  *
13
  *
14
  * @category ET
15
  * @package ET_Reviewnotify
16
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
17
  * @contacts support@etwebsolutions.com
18
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
19
+ */
20
  -->
21
 
22
  <config>
23
+ <tabs>
24
+ <etall translate="label">
25
+ <label>ET Extensions</label>
26
+ <sort_order>400</sort_order>
27
+ </etall>
28
+ </tabs>
29
+
30
+ <sections>
31
+ <reviewnotify translate="label" module="reviewnotify">
32
+ <label>Review Notify</label>
33
+ <tab>etall</tab>
34
+ <frontend_type>text</frontend_type>
35
+ <sort_order>300</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
+ <groups>
40
+ <info translate="label">
41
+ <label>Review Notify information</label>
42
+ <frontend_type>text</frontend_type>
43
+ <sort_order>1</sort_order>
44
+ <show_in_default>1</show_in_default>
45
+ <show_in_website>1</show_in_website>
46
+ <show_in_store>1</show_in_store>
47
+ <fields>
48
+ <support_information>
49
+ <frontend_model>reviewnotify/adminhtml_support</frontend_model>
50
+ <sort_order>100</sort_order>
51
+ <show_in_default>1</show_in_default>
52
+ <show_in_website>1</show_in_website>
53
+ <show_in_store>1</show_in_store>
54
+ </support_information>
55
+ </fields>
56
+ </info>
57
+ <general translate="label comment" module="reviewnotify">
58
+ <label>Review Notify Options</label>
59
+ <frontend_type>text</frontend_type>
60
+ <sort_order>10</sort_order>
61
+ <show_in_default>1</show_in_default>
62
+ <show_in_website>1</show_in_website>
63
+ <show_in_store>1</show_in_store>
64
+ <fields>
65
+ <linktooptions translate="label comment">
66
+ <label>Settings</label>
67
+ <comment><![CDATA[Module options available in System -> Configuration -> Catalog -> Product Reviews]]></comment>
68
+ <frontend_type>label</frontend_type>
69
+ <frontend_model>reviewnotify/adminhtml_system_config_form_field_linktooptions</frontend_model>
70
+ <sort_order>100</sort_order>
71
+ <show_in_default>1</show_in_default>
72
+ <show_in_website>1</show_in_website>
73
+ <show_in_store>1</show_in_store>
74
+ </linktooptions>
75
+ </fields>
76
+ </general>
77
+ </groups>
78
+ </reviewnotify>
79
+
80
+ <catalog>
81
+ <groups>
82
+ <review translate="label" module="reviewnotify">
83
+ <fields>
84
+ <heading_reviewnotify translate="label">
85
+ <label>ET Review Notify options</label>
86
+ <frontend_model>reviewnotify/adminhtml_system_config_form_field_heading</frontend_model>
87
+ <sort_order>190</sort_order>
88
+ <show_in_default>1</show_in_default>
89
+ <show_in_website>1</show_in_website>
90
+ <show_in_store>1</show_in_store>
91
+ </heading_reviewnotify>
92
+ <antispam translate="label comment">
93
+ <label>Use Antispam</label>
94
+ <comment>Make review posting harder for automatic spammers</comment>
95
+ <frontend_type>select</frontend_type>
96
+ <source_model>adminhtml/system_config_source_yesno</source_model>
97
+ <sort_order>199</sort_order>
98
+ <show_in_default>1</show_in_default>
99
+ <show_in_website>1</show_in_website>
100
+ <show_in_store>1</show_in_store>
101
+ </antispam>
102
+ <need_send translate="label comment">
103
+ <label>Send notification</label>
104
+ <comment>Notification will be send to e-mail if new review is placed. Default: No</comment>
105
+ <frontend_type>select</frontend_type>
106
+ <source_model>adminhtml/system_config_source_yesno</source_model>
107
+ <sort_order>200</sort_order>
108
+ <show_in_default>1</show_in_default>
109
+ <show_in_website>1</show_in_website>
110
+ <show_in_store>1</show_in_store>
111
+ </need_send>
112
 
113
+ <email_to translate="label comment">
114
+ <label>Mail to</label>
115
+ <comment><![CDATA[You can specify multiple recipients. Comma separated. For example: admin.one@example.com, admin.two@example.com]]></comment>
116
+ <frontend_type>text</frontend_type>
117
+ <sort_order>300</sort_order>
118
+ <show_in_default>1</show_in_default>
119
+ <show_in_website>1</show_in_website>
120
+ <show_in_store>1</show_in_store>
121
+ </email_to>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
 
123
+ <email_template translate="label">
124
+ <label>Mail Template</label>
125
+ <frontend_type>select</frontend_type>
126
+ <source_model>adminhtml/system_config_source_email_template</source_model>
127
+ <sort_order>501</sort_order>
128
+ <show_in_default>1</show_in_default>
129
+ <show_in_website>1</show_in_website>
130
+ <show_in_store>1</show_in_store>
131
+ </email_template>
132
 
133
+ <email_identity translate="label">
134
+ <label>Store email</label>
135
+ <frontend_type>select</frontend_type>
136
+ <source_model>adminhtml/system_config_source_email_identity</source_model>
137
+ <sort_order>502</sort_order>
138
+ <show_in_default>1</show_in_default>
139
+ <show_in_website>1</show_in_website>
140
+ <show_in_store>1</show_in_store>
141
+ </email_identity>
142
 
143
+ <need_notify translate="label comment">
144
+ <label>Show notification</label>
145
+ <comment><![CDATA[Notification toolbar will be displayed if there is pending reviews. Default: Yes]]></comment>
146
+ <frontend_type>select</frontend_type>
147
+ <source_model>adminhtml/system_config_source_yesno</source_model>
148
+ <sort_order>700</sort_order>
149
+ <show_in_default>1</show_in_default>
150
+ <show_in_website>1</show_in_website>
151
+ <show_in_store>1</show_in_store>
152
+ </need_notify>
153
 
154
+ <linktoinfo translate="label">
155
+ <label>ET Review Notify</label>
156
+ <frontend_type>label</frontend_type>
157
+ <frontend_model>reviewnotify/adminhtml_system_config_form_field_linktoinfo</frontend_model>
158
+ <sort_order>999</sort_order>
159
+ <show_in_default>1</show_in_default>
160
+ <show_in_website>1</show_in_website>
161
+ <show_in_store>1</show_in_store>
162
+ </linktoinfo>
163
+ </fields>
164
+ </review>
165
+ </groups>
166
+ </catalog>
167
+ </sections>
 
168
  </config>
app/design/adminhtml/default/default/layout/et_reviewnotify.xml CHANGED
@@ -1,11 +1,10 @@
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
- * ET Web Solutions
5
- *
6
  * NOTICE OF LICENSE
7
  *
8
- * This source file is subject to the Academic Free License (AFL 3.0)
 
9
  *
10
  * DISCLAIMER
11
  *
@@ -14,44 +13,44 @@
14
  *
15
  * @category ET
16
  * @package ET_Reviewnotify
17
- * @copyright Copyright (c) 2011 ET Web Solutions (http://etwebsolutions.com)
18
  * @contacts support@etwebsolutions.com
19
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
20
- */
21
  -->
22
 
23
  <layout>
24
 
25
- <default>
26
- <!-- 1.4.x code DELETED
27
- <reference name="notifications">
28
- <block type="reviewnotify/toolbar" name="reviewnotify_toolbar" as="reviewnotify_toolbar" acl="catalog/reviews_ratings/reviews/pending" template="reviewnotify/toolbar.phtml" />
29
- </reference>
30
- 1.4.x code end -->
31
 
32
- <!-- 1.3.x code -->
33
- <reference name="root">
34
- <block type="core/text_list" name="notification_toolbar" as="notification_toolbar">
35
- <block type="adminhtml/notification_toolbar" name="notification_toolbarmain" as="notification_toolbarmain" acl="system/adminnotification/show_toolbar" template="notification/toolbar.phtml"></block>
36
- <block type="reviewnotify/toolbar" name="reviewnotify_toolbar" as="reviewnotify_toolbar" acl="catalog/reviews_ratings/reviews/pending" template="reviewnotify/toolbar.phtml"></block>
37
- </block>
38
- </reference>
39
- <!-- 1.3.x code end-->
40
- </default>
41
 
42
- <adminhtml_catalog_product_review_pending>
43
- <!-- 1.4.x code DELETED
44
- <reference name="notifications">
45
- <remove name="reviewnotify_toolbarz"/>
46
- </reference>
47
- 1.4.x code end -->
48
-
49
- <!-- 1.3.x code -->
50
- <reference name="notification_toolbar">
51
- <remove name="reviewnotify_toolbar"/>
52
- </reference>
53
- <!-- 1.3.x code end-->
54
- </adminhtml_catalog_product_review_pending>
55
 
56
  </layout>
57
 
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
 
 
4
  * NOTICE OF LICENSE
5
  *
6
+ * You may not sell, sub-license, rent or lease
7
+ * any portion of the Software or Documentation to anyone.
8
  *
9
  * DISCLAIMER
10
  *
13
  *
14
  * @category ET
15
  * @package ET_Reviewnotify
16
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
17
  * @contacts support@etwebsolutions.com
18
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
19
+ */
20
  -->
21
 
22
  <layout>
23
 
24
+ <default>
25
+ <!-- 1.4.x code DELETED
26
+ <reference name="notifications">
27
+ <block type="reviewnotify/toolbar" name="reviewnotify_toolbar" as="reviewnotify_toolbar" acl="catalog/reviews_ratings/reviews/pending" template="reviewnotify/toolbar.phtml" />
28
+ </reference>
29
+ 1.4.x code end -->
30
 
31
+ <!-- 1.3.x code -->
32
+ <reference name="root">
33
+ <block type="core/text_list" name="notification_toolbar" as="notification_toolbar">
34
+ <block type="adminhtml/notification_toolbar" name="notification_toolbarmain" as="notification_toolbarmain" acl="system/adminnotification/show_toolbar" template="notification/toolbar.phtml"></block>
35
+ <block type="reviewnotify/toolbar" name="reviewnotify_toolbar" as="reviewnotify_toolbar" acl="catalog/reviews_ratings/reviews/pending" template="reviewnotify/toolbar.phtml"></block>
36
+ </block>
37
+ </reference>
38
+ <!-- 1.3.x code end-->
39
+ </default>
40
 
41
+ <adminhtml_catalog_product_review_pending>
42
+ <!-- 1.4.x code DELETED
43
+ <reference name="notifications">
44
+ <remove name="reviewnotify_toolbarz"/>
45
+ </reference>
46
+ 1.4.x code end -->
47
+
48
+ <!-- 1.3.x code -->
49
+ <reference name="notification_toolbar">
50
+ <remove name="reviewnotify_toolbar"/>
51
+ </reference>
52
+ <!-- 1.3.x code end-->
53
+ </adminhtml_catalog_product_review_pending>
54
 
55
  </layout>
56
 
app/design/adminhtml/default/default/template/reviewnotify/toolbar.phtml CHANGED
@@ -1,10 +1,9 @@
1
  <?php
2
  /**
3
- * ET Web Solutions
4
- *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
 
8
  *
9
  * DISCLAIMER
10
  *
@@ -13,48 +12,44 @@
13
  *
14
  * @category ET
15
  * @package ET_Reviewnotify
16
- * @copyright Copyright (c) 2011 ET Web Solutions (http://etwebsolutions.com)
17
  * @contacts support@etwebsolutions.com
18
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
19
  */
20
 
21
  $config = Mage::getStoreConfig('catalog/review');
22
- if ($config['need_notify'] == 1)
23
- {
24
- $_pending = $this->getPending();
25
- $_count = count($_pending);
26
- if ($_count > 0)
27
- {
28
- $urlModel = Mage::getModel('core/url');
29
- $storeid = Mage::app()->getDefaultStoreView();
30
- $urlModel->setStore($storeid);
31
- $RSSlink = $urlModel->getUrl('rss/catalog/review', array('_current'=>false));
32
  ?>
33
- <div class="notification-global">
34
- <span class="f-right"><a class="link-feed" href="<?php echo $RSSlink ?>" style="background-position: 0 50%;"><?php echo $this->__('Pending Reviews RSS') ?></a></span>
35
- <strong class="label"><?php echo $this->__('Pending Reviews') ?>:</strong>
36
  <?php
37
- if (count($_pending) > 1)
38
- {
39
- echo $this->__(
40
- 'There are %d reviews waiting to be approved. Click here to see the %s.',
41
- count($this->getPending()),
42
- '<a href="'.$this->getUrl('adminhtml/catalog_product_review/pending').'">'.$this->__('Pending Reviews').'</a>'
43
- );
44
- } // end count > 1
45
- elseif (count($_pending) == 1)
46
- {
47
- /* @var $_product Mage_Catalog_Model_Product */
48
- $_product = $_pending->getFirstItem();
49
- echo $this->__(
50
- 'There is a review of %s waiting to be approved. Click here to read %s.',
51
- '<a href="'.$this->getEditUrl($_product).'">'.$_product->getName().'</a>',
52
- '<a href="'.$this->getReviewUrl($_product).'">'.$_product->getTitle().'</a>'
53
- );
54
- }
55
  ?>
56
- </div>
57
  <?php
58
- } // end count > 0
59
  } // end enabled to show notification
60
  ?>
1
  <?php
2
  /**
 
 
3
  * NOTICE OF LICENSE
4
  *
5
+ * You may not sell, sub-license, rent or lease
6
+ * any portion of the Software or Documentation to anyone.
7
  *
8
  * DISCLAIMER
9
  *
12
  *
13
  * @category ET
14
  * @package ET_Reviewnotify
15
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
16
  * @contacts support@etwebsolutions.com
17
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
18
  */
19
 
20
  $config = Mage::getStoreConfig('catalog/review');
21
+ if ($config['need_notify'] == 1) {
22
+ $_pending = $this->getPending();
23
+ $_count = count($_pending);
24
+ if ($_count > 0) {
25
+ $urlModel = Mage::getModel('core/url');
26
+ $storeid = Mage::app()->getDefaultStoreView();
27
+ $urlModel->setStore($storeid);
28
+ $RSSlink = $urlModel->getUrl('rss/catalog/review', array('_current'=>false));
 
 
29
  ?>
30
+ <div class="notification-global">
31
+ <span class="f-right"><a class="link-feed" href="<?php echo $RSSlink ?>" style="background-position: 0 50%;"><?php echo $this->__('Pending Reviews RSS') ?></a></span>
32
+ <strong class="label"><?php echo $this->__('Pending Reviews') ?>:</strong>
33
  <?php
34
+ if (count($_pending) > 1) {
35
+ echo $this->__(
36
+ 'There are %d reviews waiting to be approved. Click here to see the %s.',
37
+ count($this->getPending()),
38
+ '<a href="'.$this->getUrl('adminhtml/catalog_product_review/pending').'">'.$this->__('Pending Reviews').'</a>'
39
+ );
40
+ // end count > 1
41
+ } elseif (count($_pending) == 1) {
42
+ /* @var $_product Mage_Catalog_Model_Product */
43
+ $_product = $_pending->getFirstItem();
44
+ echo $this->__(
45
+ 'There is a review of %s waiting to be approved. Click here to read %s.',
46
+ '<a href="'.$this->getEditUrl($_product).'">'.$_product->getName().'</a>',
47
+ '<a href="'.$this->getReviewUrl($_product).'">'.$_product->getTitle().'</a>'
48
+ );
49
+ }
 
 
50
  ?>
51
+ </div>
52
  <?php
53
+ } // end count > 0
54
  } // end enabled to show notification
55
  ?>
app/design/frontend/base/default/layout/et_reviewnotify.xml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * You may not sell, sub-license, rent or lease
7
+ * any portion of the Software or Documentation to anyone.
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade to newer
12
+ * versions in the future.
13
+ *
14
+ * @category ET
15
+ * @package ET_Reviewnotify
16
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
17
+ * @contacts support@etwebsolutions.com
18
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
19
+ */
20
+ -->
21
+
22
+ <layout version="0.1.0">
23
+ <catalog_product_view>
24
+ <reference name="head">
25
+ <action method="addJs" ifconfig="catalog/review/antispam"><script>et_reviewnotify/reviewnotify.js</script></action>
26
+ </reference>
27
+ </catalog_product_view>
28
+ <review_product_list>
29
+ <reference name="head">
30
+ <action method="addJs" ifconfig="catalog/review/antispam"><script>et_reviewnotify/reviewnotify.js</script></action>
31
+ </reference>
32
+ </review_product_list>
33
+ </layout>
app/design/frontend/default/default/layout/et_reviewnotify.xml DELETED
@@ -1,34 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * ET Web Solutions
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Academic Free License (AFL 3.0)
9
- *
10
- * DISCLAIMER
11
- *
12
- * Do not edit or add to this file if you wish to upgrade to newer
13
- * versions in the future.
14
- *
15
- * @category ET
16
- * @package ET_Reviewnotify
17
- * @copyright Copyright (c) 2011 ET Web Solutions (http://etwebsolutions.com)
18
- * @contacts support@etwebsolutions.com
19
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
20
- */
21
- -->
22
-
23
- <layout version="0.1.0">
24
- <catalog_product_view>
25
- <reference name="head">
26
- <action method="addJs" ifconfig="catalog/review/antispam"><script>et/reviewnotify.js</script></action>
27
- </reference>
28
- </catalog_product_view>
29
- <review_product_list>
30
- <reference name="head">
31
- <action method="addJs" ifconfig="catalog/review/antispam"><script>et/reviewnotify.js</script></action>
32
- </reference>
33
- </review_product_list>
34
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/ET_Reviewnotify.xml CHANGED
@@ -1,11 +1,10 @@
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
- * ET Web Solutions
5
- *
6
  * NOTICE OF LICENSE
7
  *
8
- * This source file is subject to the Academic Free License (AFL 3.0)
 
9
  *
10
  * DISCLAIMER
11
  *
@@ -14,20 +13,20 @@
14
  *
15
  * @category ET
16
  * @package ET_Reviewnotify
17
- * @copyright Copyright (c) 2011 ET Web Solutions (http://etwebsolutions.com)
18
  * @contacts support@etwebsolutions.com
19
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
20
- */
21
  -->
22
 
23
  <config>
24
- <modules>
25
- <ET_Reviewnotify>
26
- <active>true</active>
27
- <codePool>community</codePool>
28
- <depends>
29
- <Mage_Review/>
30
- </depends>
31
- </ET_Reviewnotify>
32
- </modules>
33
  </config>
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
 
 
4
  * NOTICE OF LICENSE
5
  *
6
+ * You may not sell, sub-license, rent or lease
7
+ * any portion of the Software or Documentation to anyone.
8
  *
9
  * DISCLAIMER
10
  *
13
  *
14
  * @category ET
15
  * @package ET_Reviewnotify
16
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
17
  * @contacts support@etwebsolutions.com
18
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
19
+ */
20
  -->
21
 
22
  <config>
23
+ <modules>
24
+ <ET_Reviewnotify>
25
+ <active>true</active>
26
+ <codePool>community</codePool>
27
+ <depends>
28
+ <Mage_Review/>
29
+ </depends>
30
+ </ET_Reviewnotify>
31
+ </modules>
32
  </config>
app/locale/en_US/ET_Reviewnotify.csv CHANGED
@@ -1,17 +1,17 @@
1
- "Pending Reviews","Pending Reviews"
2
- "Pending Reviews RSS","Pending Reviews RSS"
3
- "There are %d reviews waiting to be approved. Click here to see the %s.","There are %d reviews waiting to be approved. Click here to see the %s."
4
- "There is a review of %s waiting to be approved. Click here to read %s.","There is a review of %s waiting to be approved. Click here to read %s."
5
- "Show notification","Show notification"
6
- "Send notification","Send notification"
7
- "Mail to","Mail to"
8
- "Mail Template","Email Template"
9
- "Store email","Store email"
10
- "Notification toolbar will be displayed if there is pending reviews. Default: Yes","Notification toolbar will be displayed if there are pending reviews. Default: Yes"
11
- "You can specify multiple recipients. Comma separated. For example: admin1@example.com, admin2@example.com","You can specify multiple recipients. Comma separated. For example: admin1@example.com, admin2@example.com"
12
- "Notification will be send to e-mail if new review is placed. Default: No","Notification will be send to e-mail if new review is placed. Default: No"
13
- "Review Notify Options","Review Notify Options"
14
- "Module options available in System -> Configuration -> Catalog -> Product Reviews","Module options available in System -> Configuration -> Catalog -> Product Reviews"
15
- "Unable to post the review.","Unable to post the review."
16
- "Use Antispam","Use Antispam"
17
  "Make review posting harder for automatic spammers","Make review posting harder for automatic spammers"
1
+ "Pending Reviews","Pending Reviews"
2
+ "Pending Reviews RSS","Pending Reviews RSS"
3
+ "There are %d reviews waiting to be approved. Click here to see the %s.","There are %d reviews waiting to be approved. Click here to see the %s."
4
+ "There is a review of %s waiting to be approved. Click here to read %s.","There is a review of %s waiting to be approved. Click here to read %s."
5
+ "Show notification","Show notification"
6
+ "Send notification","Send notification"
7
+ "Mail to","Mail to"
8
+ "Mail Template","Email Template"
9
+ "Store email","Store email"
10
+ "Notification toolbar will be displayed if there is pending reviews. Default: Yes","Notification toolbar will be displayed if there are pending reviews. Default: Yes"
11
+ "You can specify multiple recipients. Comma separated. For example: admin1@example.com, admin2@example.com","You can specify multiple recipients. Comma separated. For example: admin1@example.com, admin2@example.com"
12
+ "Notification will be send to e-mail if new review is placed. Default: No","Notification will be send to e-mail if new review is placed. Default: No"
13
+ "Review Notify Options","Review Notify Options"
14
+ "Module options available in System -> Configuration -> Catalog -> Product Reviews","Module options available in System -> Configuration -> Catalog -> Product Reviews"
15
+ "Unable to post the review.","Unable to post the review."
16
+ "Use Antispam","Use Antispam"
17
  "Make review posting harder for automatic spammers","Make review posting harder for automatic spammers"
app/locale/ru_RU/ET_Reviewnotify.csv CHANGED
@@ -1,17 +1,33 @@
1
- "Pending Reviews","Отзывы, ожидающие проверки"
2
- "Pending Reviews RSS","RSS неподтверждённых отзывов"
3
- "There are %d reviews waiting to be approved. Click here to see the %s.","Отзывы, ожидающие проверки: %d шт. Просмотреть %s."
4
- "There is a review of %s waiting to be approved. Click here to read %s.","Отзыв на товар %s ожидает проверки. Нажмите сюда для просмотра отзыва %s."
5
- "Show notification","Показывать оповещения"
6
- "Send notification","Посылать оповещения"
7
- "Mail to","Email. Получатель"
8
- "Mail Template","Email. Шаблон"
9
- "Store email","Email. Отправитель"
10
- "Notification toolbar will be displayed if there is pending reviews. Default: Yes","Будет отображаться тулбар оповещения, если есть необработанные отзывы. По умолчанию: Да"
11
- "You can specify multiple recipients. Comma separated. For example: admin1@example.com, admin2@example.com","Можно указывать несколько получателей. Разделитель запятая. Например: admin1@example.com,admin2@example.com"
12
- "Notification will be send to e-mail if new review is placed. Default: No","При поступлении нового отзыва будет отослано оповещение на емайл. По умолчанию: Нет"
13
- "Review Notify Options","Параметры Review Notify"
14
- "Module options available in System -> Configuration -> Catalog -> Product Reviews","Настроить модуль можно на странице Система -> Конфигурация -> Каталог -> Отзывы о товаре"
15
- "Unable to post the review.","Невозможно разместить отзыв."
16
- "Use Antispam","Использовать антиспам"
17
- "Make review posting harder for automatic spammers","Затрудняет размещение отзывов автоматическим спаммерам"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Pending Reviews","Отзывы, ожидающие проверки"
2
+ "Pending Reviews RSS","RSS неподтверждённых отзывов"
3
+ "There are %d reviews waiting to be approved. Click here to see the %s.","Отзывы, ожидающие проверки: %d шт. Просмотреть %s."
4
+ "There is a review of %s waiting to be approved. Click here to read %s.","Отзыв на товар %s ожидает проверки. Нажмите сюда для просмотра отзыва %s."
5
+ "Show notification","Показывать оповещения"
6
+ "Send notification","Посылать оповещения"
7
+ "Mail to","Email. Получатель"
8
+ "Mail Template","Email. Шаблон"
9
+ "Store email","Email. Отправитель"
10
+ "Notification toolbar will be displayed if there is pending reviews. Default: Yes","Будет отображаться тулбар оповещения, если есть необработанные отзывы. По умолчанию: Да"
11
+ "You can specify multiple recipients. Comma separated. For example: admin.one@example.com, admin.two@example.com","Можно указывать несколько получателей. Разделитель запятая. Например: admin1@example.com, admin2@example.com"
12
+ "Notification will be send to e-mail if new review is placed. Default: No","При поступлении нового отзыва будет отослано оповещение на емайл. По умолчанию: Нет"
13
+ "Review Notify Options","Настройки модуля Review Notify"
14
+ "Module options available in System -> Configuration -> Catalog -> Product Reviews","Настроить модуль можно на странице Система -> Конфигурация -> Каталог -> Отзывы о товаре"
15
+ "Unable to post the review.","Невозможно разместить отзыв."
16
+ "Use Antispam","Использовать антиспам"
17
+ "Make review posting harder for automatic spammers","Затрудняет размещение отзывов автоматическим спаммерам"
18
+ "Review Notify information","Информация о модуле Review Notify"
19
+ "Go to Catalog settings section","Перейти к секции настроек каталога"
20
+ "Settings","Настройки"
21
+ "ET Review Notify options","Параметры модуля ET Review Notify"
22
+ "Extension information","Информация о модуле"
23
+
24
+ "Extension:","Модуль:"
25
+ "<strong>%s</strong> (version %s)","<strong>%s</strong> (версия %s)"
26
+ "License:","Лицензия:"
27
+ "Short Description:","Краткое описание:"
28
+ "Documentation:","Документация:"
29
+ "Support:","Поддержка:"
30
+ "Advertisement:","Реклама:"
31
+ "You can see description of extension features and answers to the frequently asked questions on <a href=""%s"" target=""_balnk"">our website</a>.","Описание позможностей модуля и ответы на часто задаваемые вопросы смотрите на <a href=""%s"" target=""_balnk"">нашем сайте</a>."
32
+ "You can hire our team to customize the extension. E-mail us on sales@etwebsolutions.com.<br><br>You can see a list of provided services on <a href=""%s"" target=""_blank"">our website</a>.","Вы можете нанять нашу команду для любых работ по модификации модуля. Пишите на адрес sales@etwebsolutions.com.<br><br>Со списком предоставляемых нами услуг вы можете ознакомиться <a href=""%s"" target=""_blank"">на нашем сайте</a>."
33
+ "Extension support is available through <a href=""%s"" target=""_blank"">issue tracking system</a>.<br>You can see information freely, but you will have to sign up to open a ticket.<br><br>Please, report all bugs and feature requests that are connected to this extension.<br><br>If by some reason you can not submit a question, bug report or feature request to our ticket system, you can write us an email - support@etwebsolutions.com.","Поддержка модуля осуществляется через <a href=""%s"" target=""_blank"">систему отслеживания заданий</a>.<br>Для создания задачи будет необходимо зарегистрироваться. Для просмотра информации регистрация не требуется.<br><br>Пожалуйста, сообщайте нам о найденных ошибках и о своих пожеланиях в рамках этого модуля.<br><br>Если по каким-либо причинам вы не можете размеситить вопрос/сообщение об ошибке/пожелание в списке задач, то можете написать нам по адресу support@etwebsolutions.com."
js/et/reviewnotify.js DELETED
@@ -1,39 +0,0 @@
1
- /**
2
- * ET Web Solutions
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the Academic Free License (AFL 3.0)
7
- *
8
- * DISCLAIMER
9
- *
10
- * Do not edit or add to this file if you wish to upgrade to newer
11
- * versions in the future.
12
- *
13
- * @category ET
14
- * @package ET_Reviewnotify
15
- * @copyright Copyright (c) 2011 ET Web Solutions (http://etwebsolutions.com)
16
- * @contacts support@etwebsolutions.com
17
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
18
- */
19
- Event.observe(window, 'load', function()
20
- {
21
- if($("review-form")!= null){
22
- $("review-form").insert('<input class="validate-code" name="sequence" id="review_sequence" value="" style="width:0px;height:0px;overflow:hidden;border:0;margin:0;padding:0;" /><iframe id="sequenceframe" name="review_sequence_place" id="review_sequence_place_id" style="width:0px;height:0px;overflow:hidden;border:0;margin:0;padding:0;"></iframe>',{"position":"top"});
23
- var url=$("review-form").readAttribute("action");
24
- var myString = new String(url);//review/product/post
25
- var rExp = /\/review\/product\/post\//gi;
26
- var tmpHref = myString.replace(rExp, "/etreviewnotify/product/prepost/");
27
- $("review-form").writeAttribute("target","review_sequence_place");
28
- $("review-form").writeAttribute("oldurl",url);
29
- $("review-form").writeAttribute("action",tmpHref);
30
- }
31
- });
32
-
33
- function postReviewRestoreData(sequence)
34
- {
35
- $("review_sequence").value=sequence;
36
- $("review-form").writeAttribute("target","_self");
37
- $("review-form").writeAttribute("action",$("review-form").readAttribute("oldurl"));
38
- $("review-form").submit();
39
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/et_reviewnotify/reviewnotify.js ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * NOTICE OF LICENSE
3
+ *
4
+ * You may not sell, sub-license, rent or lease
5
+ * any portion of the Software or Documentation to anyone.
6
+ *
7
+ * DISCLAIMER
8
+ *
9
+ * Do not edit or add to this file if you wish to upgrade to newer
10
+ * versions in the future.
11
+ *
12
+ * @category ET
13
+ * @package ET_Reviewnotify
14
+ * @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
15
+ * @contacts support@etwebsolutions.com
16
+ * @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
17
+ */
18
+ Event.observe(window, 'load', function()
19
+ {
20
+ if($("review-form")!= null){
21
+ $("review-form").insert('<input class="validate-code" name="sequence" id="review_sequence" value="" style="width:0px;height:0px;overflow:hidden;border:0;margin:0;padding:0;" /><iframe id="sequenceframe" name="review_sequence_place" id="review_sequence_place_id" style="width:0px;height:0px;overflow:hidden;border:0;margin:0;padding:0;"></iframe>',{"position":"top"});
22
+ var url=$("review-form").readAttribute("action");
23
+ var myString = new String(url);//review/product/post
24
+ var rExp = /\/review\/product\/post\//gi;
25
+ var tmpHref = myString.replace(rExp, "/etreviewnotify/product/prepost/");
26
+ $("review-form").writeAttribute("target","review_sequence_place");
27
+ $("review-form").writeAttribute("oldurl",url);
28
+ $("review-form").writeAttribute("action",tmpHref);
29
+ }
30
+ });
31
+
32
+ function postReviewRestoreData(sequence)
33
+ {
34
+ $("review_sequence").value=sequence;
35
+ $("review-form").writeAttribute("target","_self");
36
+ $("review-form").writeAttribute("action",$("review-form").readAttribute("oldurl"));
37
+ $("review-form").submit();
38
+ }
package.xml CHANGED
@@ -1,20 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ET_Reviewnotify</name>
4
- <version>0.2.4</version>
5
  <stability>stable</stability>
6
- <license uri="http://opensource.org/licenses/afl-3.0.php">AFL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Review notify module notify store owner about new product reviews. Available antispam function for frontend.</summary>
10
- <description>Review notify module notify store owner about new product reviews in two way:
11
- 1. Store owner will recieve notification email after recieving new product review.
12
- 2. If there is pending reviews - standart notification toolbar is shown in admin.</description>
13
- <notes>Added anti spam protection for review form on frontend (relevant when review writing for guests is allowed)</notes>
14
- <authors><author><name>Jurij</name><user>auto-converted</user><email>support@etwebsolutions.com</email></author><author><name>Andrej</name><user>auto-converted</user><email>support@etwebsolutions.com</email></author></authors>
15
- <date>2011-05-12</date>
16
- <time>14:55:15</time>
17
- <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="et_reviewnotify.xml" hash="a75f575975b42bb30b4bd5132bdf9a9e"/></dir><dir name="template"><dir name="reviewnotify"><file name="toolbar.phtml" hash="fed56ecc95d0ede544df89a78953907f"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="et_reviewnotify.xml" hash="954266835f14ead6c77cef94e6dc45ca"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><file name="et_reviewnotify.html" hash="c3d8b0a804d721cb17271448ef7cf56b"/></dir></dir><file name="ET_Reviewnotify.csv" hash="668c237d069fd482a330471a019f8adc"/></dir><dir name="ru_RU"><dir name="template"><dir name="email"><file name="et_reviewnotify.html" hash="dc715adcb9e2d271d206c246af29920d"/></dir></dir><file name="ET_Reviewnotify.csv" hash="0ed2bd869a9335092e14d3b11b06bc21"/></dir></target><target name="magecommunity"><dir name="ET"><dir name="Reviewnotify"><dir name="Block"><file name="Toolbar.php" hash="4cd6a38d99ca5a7571afb2debfa3802e"/></dir><dir name="controllers"><file name="ProductController.php" hash="fd263d2ca39f577713555e503d7b35d6"/></dir><dir name="etc"><file name="config.xml" hash="11409d7607c4bbd29ed730e521e9c85a"/><file name="system.xml" hash="0db9f945dca7bfe59144f3ec9468e406"/></dir><dir name="Helper"><file name="Data.php" hash="e6ce2ced8996b8cf4a74cc3427c24acc"/></dir><dir name="Model"><file name="Observer.php" hash="411297b0e2bb4e3ced8bc1667a950831"/><file name="Review.php" hash="0a23de5db51b4ca7a7f528a8188bd42e"/></dir></dir><file name="ET_Reviewnotify_ChangeLog.txt" hash="6ad44ee19af0c66ab67d46f5513d6bbe"/><file name="ET_Reviewnotify_Description.txt" hash="661a725046dee3d6dbdc4ebd18067017"/><file name="ET_Reviewnotify_LICENSE.txt" hash="47734c0bfe298cff13472be9d25d97d6"/></dir></target><target name="mage"><dir name="js"><dir name="et"><file name="reviewnotify.js" hash="b44ef3cbad9b0360b709d1196a08800c"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="ET_Reviewnotify.xml" hash="7147aa924cbf49f74c30b5938fcf9e49"/></dir></target></contents>
18
  <compatible/>
19
- <dependencies/>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ET_Reviewnotify</name>
4
+ <version>1.0.0</version>
5
  <stability>stable</stability>
6
+ <license uri="http://shop.etwebsolutions.com/eng/etws-license-free-v1">ETWS Free License (EFL1)</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Extension notifies store owner about new reviews and complicates automatic review posting for spam bots</summary>
10
+ <description>Reviewnotify not only notifies store owner by email about new reviews, but also reminds him about pending review until someone will change their status (in status bar - under main menu in admin panel). As a bonus, we offer a feature that will complicate writing reviews for bots and spammers.</description>
11
+ <notes>stable release</notes>
12
+ <authors><author><name>Jurij</name><user>niro</user><email>support@etwebsolutions.com</email></author><author><name>Andrej</name><user>zlojd</user><email>support@etwebsolutions.com</email></author></authors>
13
+ <date>2012-12-17</date>
14
+ <time>14:52:19</time>
15
+ <contents><target name="magecommunity"><dir name="ET"><dir name="Reviewnotify"><dir name="Block"><dir name="Adminhtml"><file name="Support.php" hash="ab3fc60f60c8bfde053fe85c629264b0"/><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Heading.php" hash="43457dd0142c8db981413fd1fb05458a"/><file name="Linktoinfo.php" hash="ebbf82a8d096387dab5eec7000d2b854"/><file name="Linktooptions.php" hash="da8fcd047fe31d4f9cdce9d301f0a6a2"/></dir></dir></dir></dir></dir><file name="Toolbar.php" hash="aa5df39e647b7aba667f1866b9435688"/></dir><dir name="Helper"><file name="Data.php" hash="0ee34776e52fc3bcfe92be81082dbe62"/></dir><dir name="Model"><file name="Observer.php" hash="e0dd96083c17e4f87952b44339a71be3"/><file name="Review.php" hash="29189fbcbe721baf0a3561d72df95112"/></dir><dir name="controllers"><file name="ProductController.php" hash="f9f6c8416119e5bf2cc03a665942f71d"/></dir><dir name="etc"><file name="config.xml" hash="3e8e40611cdce316f2026efdab1dcad4"/><file name="system.xml" hash="170c3d599bb872c34b7d8a1824c0ff7d"/></dir></dir></dir></target><target name="magelocale"><dir name="ru_RU"><file name="ET_Reviewnotify.csv" hash="bb01776724c717065a843d02d5d02681"/><dir name="template"><dir name="email"><file name="et_reviewnotify.html" hash="dc715adcb9e2d271d206c246af29920d"/></dir></dir></dir><dir name="en_US"><file name="ET_Reviewnotify.csv" hash="fc0b8c0c8a2472410ea86e45253bd162"/><dir name="template"><dir name="email"><file name="et_reviewnotify.html" hash="c3d8b0a804d721cb17271448ef7cf56b"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="ET_Reviewnotify.xml" hash="47e1448c262ce7a004b23db1e1528cd6"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="reviewnotify"><file name="toolbar.phtml" hash="720b5d875c17cb27bb62822787b5e548"/></dir></dir><dir name="layout"><file name="et_reviewnotify.xml" hash="3aec74e6a34932a3601e83cb0bdf67d1"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="et_reviewnotify.xml" hash="0d561861b19836a6dd5b3f4ea9f30cfc"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="et_reviewnotify"><file name="reviewnotify.js" hash="e8ca066378d6077202127b0f8b9a6ba7"/></dir></dir></target></contents>
 
 
16
  <compatible/>
17
+ <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>