Version Notes
stable release
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | ET_Reviewnotify |
| Version | 1.0.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.0 to 1.0.2
app/code/community/ET/Reviewnotify/Block/Adminhtml/Support.php
CHANGED
|
@@ -23,7 +23,7 @@ class ET_Reviewnotify_Block_Adminhtml_Support
|
|
| 23 |
{
|
| 24 |
/**
|
| 25 |
* Support tab
|
| 26 |
-
* version
|
| 27 |
*/
|
| 28 |
public function render(Varien_Data_Form_Element_Abstract $element)
|
| 29 |
{
|
|
@@ -35,15 +35,24 @@ class ET_Reviewnotify_Block_Adminhtml_Support
|
|
| 35 |
$moduleShortDescription = $this->_getConfigValue($moduleNameId, 'descr');
|
| 36 |
$moduleLicense = $this->_getConfigValue($moduleNameId, 'license');
|
| 37 |
|
| 38 |
-
$linkParameters = '
|
| 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 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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; }
|
|
@@ -54,46 +63,46 @@ class ET_Reviewnotify_Block_Adminhtml_Support
|
|
| 54 |
<tr>
|
| 55 |
<td class="developer-label">' . $helper->__('Extension:') . '</td>
|
| 56 |
<td class="developer-text">' . $helper->__(
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
</tr>
|
| 62 |
<tr>
|
| 63 |
<td class="developer-label">' . $helper->__('License:') . '</td>
|
| 64 |
<td class="developer-text">' . $helper->__(
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
</tr>
|
| 70 |
<tr>
|
| 71 |
<td class="developer-label">' . $helper->__('Short Description:') . '</td>
|
| 72 |
-
<td class="developer-text">'
|
| 73 |
</tr>
|
| 74 |
<tr>
|
| 75 |
<td class="developer-label">' . $helper->__('Documentation:') . '</td>
|
| 76 |
<td class="developer-text">' . $helper->__(
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
</tr>
|
| 81 |
<tr>
|
| 82 |
<td class="developer-label line">' . $helper->__('Support:') . '</td>
|
| 83 |
<td class="developer-text line">' . $helper->__(
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
</tr>
|
| 91 |
<tr>
|
| 92 |
-
<td class="developer-label line"
|
| 93 |
<td class="developer-text line">' . $helper->__(
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
</tr>
|
| 98 |
</table>';
|
| 99 |
|
|
@@ -119,4 +128,61 @@ class ET_Reviewnotify_Block_Adminhtml_Support
|
|
| 119 |
}
|
| 120 |
}
|
| 121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
}
|
| 23 |
{
|
| 24 |
/**
|
| 25 |
* Support tab
|
| 26 |
+
* version 2.0.0
|
| 27 |
*/
|
| 28 |
public function render(Varien_Data_Form_Element_Abstract $element)
|
| 29 |
{
|
| 35 |
$moduleShortDescription = $this->_getConfigValue($moduleNameId, 'descr');
|
| 36 |
$moduleLicense = $this->_getConfigValue($moduleNameId, 'license');
|
| 37 |
|
| 38 |
+
$linkParameters = '';
|
| 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 |
+
$magentoVersion = Mage::getVersion();
|
| 45 |
+
$magentoPlatform = $this->_getPlatform();
|
| 46 |
+
$logoLink = 'https://shop.etwebsolutions.com/logotypes/' .
|
| 47 |
+
$magentoPlatform . '/' .
|
| 48 |
+
$magentoVersion . '/' .
|
| 49 |
+
$moduleNameId . '/' .
|
| 50 |
+
$moduleVersion . '/' .
|
| 51 |
+
'logo.png';
|
| 52 |
+
|
| 53 |
+
$html =
|
| 54 |
'<style>
|
| 55 |
+
.line {border-top: 1px solid #c6c6c6; padding-top: 10px;}
|
| 56 |
.developer-label {color: #000000; font-weight:bold; width: 150px;}
|
| 57 |
.developer-text { padding-bottom: 15px;}
|
| 58 |
.developer {width: 600px; }
|
| 63 |
<tr>
|
| 64 |
<td class="developer-label">' . $helper->__('Extension:') . '</td>
|
| 65 |
<td class="developer-text">' . $helper->__(
|
| 66 |
+
'<strong>%s</strong> (version %s)',
|
| 67 |
+
$moduleName,
|
| 68 |
+
$moduleVersion
|
| 69 |
+
) . '</td>
|
| 70 |
</tr>
|
| 71 |
<tr>
|
| 72 |
<td class="developer-label">' . $helper->__('License:') . '</td>
|
| 73 |
<td class="developer-text">' . $helper->__(
|
| 74 |
+
'<a href="%s" target="_blank">%s</a>',
|
| 75 |
+
$moduleLicenseLink,
|
| 76 |
+
$moduleLicense
|
| 77 |
+
) . '</td>
|
| 78 |
</tr>
|
| 79 |
<tr>
|
| 80 |
<td class="developer-label">' . $helper->__('Short Description:') . '</td>
|
| 81 |
+
<td class="developer-text">' . $moduleShortDescription . '</td>
|
| 82 |
</tr>
|
| 83 |
<tr>
|
| 84 |
<td class="developer-label">' . $helper->__('Documentation:') . '</td>
|
| 85 |
<td class="developer-text">' . $helper->__(
|
| 86 |
+
'You can see description of extension features and answers to the ' .
|
| 87 |
+
'frequently asked questions on <a href="%s" target="_blank">our website</a>.',
|
| 88 |
+
$moduleLink) . '</td>
|
| 89 |
</tr>
|
| 90 |
<tr>
|
| 91 |
<td class="developer-label line">' . $helper->__('Support:') . '</td>
|
| 92 |
<td class="developer-text line">' . $helper->__(
|
| 93 |
+
'Extension support is available through <a href="%s" target="_blank">issue tracking system' .
|
| 94 |
+
'</a>.<br>You can see information freely, but you will have to sign up to open a ticket.<br>' .
|
| 95 |
+
'<br>Please, report all bugs and feature requests that are related to this extension.<br>' .
|
| 96 |
+
'<br>If by some reason you can not submit a question, bug report or feature request to our ' .
|
| 97 |
+
'ticket system, you can write us an email - support@etwebsolutions.com.',
|
| 98 |
+
$moduleSupportLink) . '</td>
|
| 99 |
</tr>
|
| 100 |
<tr>
|
| 101 |
+
<td class="developer-label line"><img src="' . $logoLink . '" width="100px" height="34px"> </td>
|
| 102 |
<td class="developer-text line">' . $helper->__(
|
| 103 |
+
'You can hire our team to customize the extension. E-mail us on sales@etwebsolutions.com.<br>' .
|
| 104 |
+
'<br>You can see a list of provided services on <a href="%s" target="_blank">our website</a>.',
|
| 105 |
+
$servicesLink) . '</td>
|
| 106 |
</tr>
|
| 107 |
</table>';
|
| 108 |
|
| 128 |
}
|
| 129 |
}
|
| 130 |
|
| 131 |
+
const PLATFORM_CE = 'ce';
|
| 132 |
+
const PLATFORM_PE = 'pe';
|
| 133 |
+
const PLATFORM_EE = 'ee';
|
| 134 |
+
const PLATFORM_GO = 'go';
|
| 135 |
+
const PLATFORM_UNKNOWN = 'unknown';
|
| 136 |
+
|
| 137 |
+
protected static $_platformCode = self::PLATFORM_UNKNOWN;
|
| 138 |
+
|
| 139 |
+
/**
|
| 140 |
+
* Get edition code
|
| 141 |
+
* @return string
|
| 142 |
+
*/
|
| 143 |
+
protected function _getPlatform()
|
| 144 |
+
{
|
| 145 |
+
if (self::$_platformCode == self::PLATFORM_UNKNOWN) {
|
| 146 |
+
// from Magento CE version 1.7. we can get platform from Mage class
|
| 147 |
+
if (property_exists('Mage', '_currentEdition')) {
|
| 148 |
+
switch (Mage::getEdition()) {
|
| 149 |
+
case Mage::EDITION_COMMUNITY:
|
| 150 |
+
self::$_platformCode = self::PLATFORM_CE;
|
| 151 |
+
break;
|
| 152 |
+
case Mage::EDITION_PROFESSIONAL:
|
| 153 |
+
self::$_platformCode = self::PLATFORM_PE;
|
| 154 |
+
break;
|
| 155 |
+
case Mage::EDITION_ENTERPRISE:
|
| 156 |
+
self::$_platformCode = self::PLATFORM_EE;
|
| 157 |
+
break;
|
| 158 |
+
case Mage::EDITION_ENTERPRISE:
|
| 159 |
+
self::$_platformCode = self::PLATFORM_EE;
|
| 160 |
+
break;
|
| 161 |
+
default:
|
| 162 |
+
self::$_platformCode = self::PLATFORM_UNKNOWN;
|
| 163 |
+
}
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
// if platform still unknown
|
| 167 |
+
if (self::$_platformCode == self::PLATFORM_UNKNOWN) {
|
| 168 |
+
$modulesArray = (array)Mage::getConfig()->getNode('modules')->children();
|
| 169 |
+
$isEnterprise = array_key_exists('Enterprise_Enterprise', $modulesArray);
|
| 170 |
+
|
| 171 |
+
$isProfessional = false; // TODO: how determine?
|
| 172 |
+
$isGo = false; // TODO: how?
|
| 173 |
+
|
| 174 |
+
if ($isEnterprise) {
|
| 175 |
+
self::$_platformCode = self::PLATFORM_EE;
|
| 176 |
+
} elseif ($isProfessional) {
|
| 177 |
+
self::$_platformCode = self::PLATFORM_PE;
|
| 178 |
+
} elseif ($isGo) {
|
| 179 |
+
self::$_platformCode = self::PLATFORM_GO;
|
| 180 |
+
} else {
|
| 181 |
+
self::$_platformCode = self::PLATFORM_CE;
|
| 182 |
+
}
|
| 183 |
+
}
|
| 184 |
+
}
|
| 185 |
+
return self::$_platformCode;
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
}
|
app/code/community/ET/Reviewnotify/Model/Observer.php
CHANGED
|
@@ -30,8 +30,7 @@ class ET_Reviewnotify_Model_Observer
|
|
| 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 |
|
|
@@ -50,7 +49,7 @@ class ET_Reviewnotify_Model_Observer
|
|
| 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
|
| 30 |
$this->emailTemplate = Mage::getStoreConfig('catalog/review/email_template');
|
| 31 |
$this->emailIdentity = Mage::getStoreConfig('catalog/review/email_identity');
|
| 32 |
|
| 33 |
+
if (($this->needSend) && (strlen(trim($this->eventEmail))>0)) {
|
|
|
|
| 34 |
$product = Mage::getModel('catalog/product')->load($observer->object->getEntityPkValue());
|
| 35 |
$emailTemplate = Mage::getModel('core/email_template');
|
| 36 |
|
| 49 |
"details" => $observer->object->getDetail(),
|
| 50 |
"id" => $observer->object->getId(),
|
| 51 |
'date' => Mage::app()->getLocale()->date(
|
| 52 |
+
date("Y-m-d H:i:s"),
|
| 53 |
Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM),
|
| 54 |
null,
|
| 55 |
true
|
app/code/community/ET/Reviewnotify/etc/config.xml
CHANGED
|
@@ -23,7 +23,7 @@
|
|
| 23 |
<modules>
|
| 24 |
<ET_Reviewnotify>
|
| 25 |
<name>ET Review Notify</name>
|
| 26 |
-
<version>1.0.
|
| 27 |
<descr>
|
| 28 |
<ru_RU><![CDATA[Модуль добавляет функцию оповещения владельца сайта о появлении новых отзывов и затрудняет спам-ботам автоматическое размещение отзывов.]]>
|
| 29 |
</ru_RU>
|
| 23 |
<modules>
|
| 24 |
<ET_Reviewnotify>
|
| 25 |
<name>ET Review Notify</name>
|
| 26 |
+
<version>1.0.2</version>
|
| 27 |
<descr>
|
| 28 |
<ru_RU><![CDATA[Модуль добавляет функцию оповещения владельца сайта о появлении новых отзывов и затрудняет спам-ботам автоматическое размещение отзывов.]]>
|
| 29 |
</ru_RU>
|
app/locale/ru_RU/ET_Reviewnotify.csv
CHANGED
|
@@ -28,6 +28,6 @@
|
|
| 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=""
|
| 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
|
| 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=""_blank"">our website</a>.","Описание возможностей модуля и ответы на часто задаваемые вопросы смотрите на <a href=""%s"" target=""_blank"">нашем сайте</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 related 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."
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>ET_Reviewnotify</name>
|
| 4 |
-
<version>1.0.
|
| 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>
|
|
@@ -9,10 +9,10 @@
|
|
| 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>
|
| 13 |
-
<date>
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"><dir name="ET"><dir name="Reviewnotify"><dir name="Block"><dir name="Adminhtml"><
|
| 16 |
<compatible/>
|
| 17 |
-
<dependencies
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>ET_Reviewnotify</name>
|
| 4 |
+
<version>1.0.2</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>
|
| 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>auto-converted</user><email>support@etwebsolutions.com</email></author><author><name>Andrej</name><user>auto-converted</user><email>support@etwebsolutions.com</email></author></authors>
|
| 13 |
+
<date>2015-02-19</date>
|
| 14 |
+
<time>08:15:22</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="ET"><dir name="Reviewnotify"><dir name="Block"><dir name="Adminhtml"><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><file name="Support.php" hash="740be5e99beca75dc438da17b239f017"/></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="c6323be9e43bd964ce5626f0112ed9b9"/><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="5b09cfca1fb4e6e705f37e3b41175b88"/><file name="system.xml" hash="170c3d599bb872c34b7d8a1824c0ff7d"/></dir></dir></dir></target><target name="magelocale"><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="3f2535867244f156e4abd87e74d10ff9"/></dir><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="fc0b8c0c8a2472410ea86e45253bd162"/></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/>
|
| 18 |
</package>
|
