Version Notes
First stable release
Download this release
Release Info
Developer | Magento Core Team |
Extension | Magmodules_Feedbackcompany |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.3 to 1.2.5
- app/code/local/Magmodules/Feedbackcompany/Block/Custom.php +10 -0
- app/code/local/Magmodules/Feedbackcompany/Model/Reviews.php +5 -1
- app/code/local/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbacklogController.php +5 -1
- app/code/local/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbackreviewsController.php +4 -0
- app/code/local/Magmodules/Feedbackcompany/etc/config.xml +1 -1
- app/code/local/Magmodules/Feedbackcompany/etc/system.xml +10 -0
- app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/medium.phtml +2 -2
- package.xml +4 -4
app/code/local/Magmodules/Feedbackcompany/Block/Custom.php
CHANGED
@@ -54,8 +54,18 @@ class Magmodules_Feedbackcompany_Block_Custom extends Mage_Core_Block_Template {
|
|
54 |
$blockTypeTemplate = 'magmodules/feedbackcompany/widget/small.phtml';
|
55 |
}
|
56 |
}
|
|
|
57 |
|
58 |
if($blockTypeTemplate) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
parent::_construct();
|
60 |
$this->setTemplate($blockTypeTemplate);
|
61 |
}
|
54 |
$blockTypeTemplate = 'magmodules/feedbackcompany/widget/small.phtml';
|
55 |
}
|
56 |
}
|
57 |
+
|
58 |
|
59 |
if($blockTypeTemplate) {
|
60 |
+
|
61 |
+
$storeId = Mage::app()->getStore()->getStoreId();
|
62 |
+
|
63 |
+
$this->addData(array(
|
64 |
+
'cache_lifetime' => 0,
|
65 |
+
'cache_tags' => array(Mage_Cms_Model_Block::CACHE_TAG, Magmodules_Feedbackcompany_Model_Reviews::CACHE_TAG),
|
66 |
+
'cache_key' => $storeId . '-' . $blockType . '-feedback-block',
|
67 |
+
));
|
68 |
+
|
69 |
parent::_construct();
|
70 |
$this->setTemplate($blockTypeTemplate);
|
71 |
}
|
app/code/local/Magmodules/Feedbackcompany/Model/Reviews.php
CHANGED
@@ -21,6 +21,8 @@
|
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Reviews extends Mage_Core_Model_Abstract {
|
23 |
|
|
|
|
|
24 |
public function _construct() {
|
25 |
parent::_construct();
|
26 |
$this->_init('feedbackcompany/reviews');
|
@@ -131,7 +133,9 @@ class Magmodules_Feedbackcompany_Model_Reviews extends Mage_Core_Model_Abstract
|
|
131 |
}
|
132 |
|
133 |
public function flushCache() {
|
134 |
-
Mage::
|
|
|
|
|
135 |
}
|
136 |
|
137 |
}
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Reviews extends Mage_Core_Model_Abstract {
|
23 |
|
24 |
+
const CACHE_TAG = 'feedback_block';
|
25 |
+
|
26 |
public function _construct() {
|
27 |
parent::_construct();
|
28 |
$this->_init('feedbackcompany/reviews');
|
133 |
}
|
134 |
|
135 |
public function flushCache() {
|
136 |
+
if(Mage::getStoreConfig('feedbackcompany/reviews/flushcache')) {
|
137 |
+
Mage::app()->cleanCache(array(Mage_Cms_Model_Block::CACHE_TAG, Magmodules_Feedbackcompany_Model_Reviews::CACHE_TAG));
|
138 |
+
}
|
139 |
}
|
140 |
|
141 |
}
|
app/code/local/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbacklogController.php
CHANGED
@@ -61,7 +61,11 @@ class Magmodules_Feedbackcompany_Adminhtml_FeedbacklogController extends Mage_Ad
|
|
61 |
}
|
62 |
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Total of %s log record(s) deleted.', $i));
|
63 |
}
|
64 |
-
|
65 |
}
|
66 |
|
|
|
|
|
|
|
|
|
67 |
}
|
61 |
}
|
62 |
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Total of %s log record(s) deleted.', $i));
|
63 |
}
|
64 |
+
$this->_redirect('*/*/index');
|
65 |
}
|
66 |
|
67 |
+
protected function _isAllowed() {
|
68 |
+
return Mage::getSingleton('admin/session')->isAllowed('admin/feedbackcompany/feedbackcompany_log');
|
69 |
+
}
|
70 |
+
|
71 |
}
|
app/code/local/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbackreviewsController.php
CHANGED
@@ -149,4 +149,8 @@ class Magmodules_Feedbackcompany_Adminhtml_FeedbackreviewsController extends Mag
|
|
149 |
$this->_redirect('*/*/index');
|
150 |
}
|
151 |
|
|
|
|
|
|
|
|
|
152 |
}
|
149 |
$this->_redirect('*/*/index');
|
150 |
}
|
151 |
|
152 |
+
protected function _isAllowed() {
|
153 |
+
return Mage::getSingleton('admin/session')->isAllowed('admin/feedbackcompany/feedbackcompany_reviews');
|
154 |
+
}
|
155 |
+
|
156 |
}
|
app/code/local/Magmodules/Feedbackcompany/etc/config.xml
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
<config>
|
24 |
<modules>
|
25 |
<Magmodules_Feedbackcompany>
|
26 |
-
<version>1.2.
|
27 |
</Magmodules_Feedbackcompany>
|
28 |
</modules>
|
29 |
<global>
|
23 |
<config>
|
24 |
<modules>
|
25 |
<Magmodules_Feedbackcompany>
|
26 |
+
<version>1.2.5</version>
|
27 |
</Magmodules_Feedbackcompany>
|
28 |
</modules>
|
29 |
<global>
|
app/code/local/Magmodules/Feedbackcompany/etc/system.xml
CHANGED
@@ -154,6 +154,16 @@
|
|
154 |
<depends><cron>1</cron></depends>
|
155 |
<tooltip>Select the schedule for automatic updating</tooltip>
|
156 |
</cron_all>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
<lastrun translate="label">
|
158 |
<label>Last Update</label>
|
159 |
<frontend_type>text</frontend_type>
|
154 |
<depends><cron>1</cron></depends>
|
155 |
<tooltip>Select the schedule for automatic updating</tooltip>
|
156 |
</cron_all>
|
157 |
+
<flushcache translate="label">
|
158 |
+
<label>Flush Block Cache after import</label>
|
159 |
+
<frontend_type>select</frontend_type>
|
160 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
161 |
+
<sort_order>5</sort_order>
|
162 |
+
<show_in_default>1</show_in_default>
|
163 |
+
<show_in_website>0</show_in_website>
|
164 |
+
<show_in_store>0</show_in_store>
|
165 |
+
<tooltip>If set to yes, the cms block cache will be flushed after the import of Reviews, Review History and after editing a review from the admin</tooltip>
|
166 |
+
</flushcache>
|
167 |
<lastrun translate="label">
|
168 |
<label>Last Update</label>
|
169 |
<frontend_type>text</frontend_type>
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/medium.phtml
CHANGED
@@ -26,9 +26,9 @@
|
|
26 |
<?php if($this->getSnippetsEnabled('medium')) { ?>
|
27 |
<div itemscope itemtype="http://schema.org/WebPage">
|
28 |
<?php if($link) { ?>
|
29 |
-
<a href="<?php echo $link; ?>" target="_blank"><img src="<?php echo $this->getSkinUrl('magmodules/feedbackcompany/images/logo.png'); ?>" class="feedbackcompany-medium-image"></a>
|
30 |
<?php } else { ?>
|
31 |
-
<img src="<?php echo $this->getSkinUrl('magmodules/feedbackcompany/images/logo.png'); ?>" class="feedbackcompany-medium-image">
|
32 |
<?php } ?>
|
33 |
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
|
34 |
<?php echo $this->getHtmlStars($total->getPercentage(), 'medium'); ?>
|
26 |
<?php if($this->getSnippetsEnabled('medium')) { ?>
|
27 |
<div itemscope itemtype="http://schema.org/WebPage">
|
28 |
<?php if($link) { ?>
|
29 |
+
<a href="<?php echo $link; ?>" target="_blank"><img src="<?php echo $this->getSkinUrl('magmodules/feedbackcompany/images/logo.png', array('_secure'=>true)); ?>" class="feedbackcompany-medium-image"></a>
|
30 |
<?php } else { ?>
|
31 |
+
<img src="<?php echo $this->getSkinUrl('magmodules/feedbackcompany/images/logo.png', array('_secure'=>true)); ?>" class="feedbackcompany-medium-image">
|
32 |
<?php } ?>
|
33 |
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
|
34 |
<?php echo $this->getHtmlStars($total->getPercentage(), 'medium'); ?>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Feedbackcompany</name>
|
4 |
-
<version>1.2.
|
5 |
<stability>stable</stability>
|
6 |
<license/>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>Connect your Magento shop to The Feedback Company</description>
|
11 |
<notes>First stable release</notes>
|
12 |
<authors><author><name>Magmodules</name><user>auto-converted</user><email>info@magmodules.nl</email></author></authors>
|
13 |
-
<date>2015-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Magmodules"><dir name="Feedbackcompany"><dir name="Block"><dir name="Adminhtml"><dir name="Feedbacklog"><file name="Grid.php" hash="1898d4df8746111e1a5404869226b26a"/></dir><dir name="Feedbackreviews"><dir name="Renderer"><file name="Experience.php" hash="b5fd639eea45b31779747da049b66a80"/></dir><file name="Grid.php" hash="e56fee3f655371a066e9f56ce5ae914d"/></dir><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="4d2bce798a5b9c2b5d62bfe35c27d720"/><file name="Test.php" hash="040ecb43856a68dca4699a63c1e9c9f8"/></dir><dir name="Form"><file name="Heading.php" hash="8f820fe2ad56e3c4be54f7f84bc47eca"/><file name="Note.php" hash="974eaf447da64ec78001cd91f3cc3827"/></dir><dir name="Grid"><file name="Log.php" hash="ceff6fe31ea786257d1fd1c5c7a4ef82"/><file name="Seconds.php" hash="a7e6db7624fee7717cba3048f3f5638b"/><file name="Stars.php" hash="8041613a13a202b0df1d376dc38c5e76"/></dir><dir name="Info"><file name="Info.php" hash="fe80bd3c99f8cd6c814ab2ae8ad4cffe"/></dir></dir><file name="Feedbacklog.php" hash="eb36920b105077ca572137ccb4a9345c"/><file name="Feedbackreviews.php" hash="d1cf617989422aa0533d354dfde0fdf1"/></dir><file name="Custom.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Feedbackcompany</name>
|
4 |
+
<version>1.2.5</version>
|
5 |
<stability>stable</stability>
|
6 |
<license/>
|
7 |
<channel>community</channel>
|
10 |
<description>Connect your Magento shop to The Feedback Company</description>
|
11 |
<notes>First stable release</notes>
|
12 |
<authors><author><name>Magmodules</name><user>auto-converted</user><email>info@magmodules.nl</email></author></authors>
|
13 |
+
<date>2015-07-09</date>
|
14 |
+
<time>09:01:57</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Magmodules"><dir name="Feedbackcompany"><dir name="Block"><dir name="Adminhtml"><dir name="Feedbacklog"><file name="Grid.php" hash="1898d4df8746111e1a5404869226b26a"/></dir><dir name="Feedbackreviews"><dir name="Renderer"><file name="Experience.php" hash="b5fd639eea45b31779747da049b66a80"/></dir><file name="Grid.php" hash="e56fee3f655371a066e9f56ce5ae914d"/></dir><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="4d2bce798a5b9c2b5d62bfe35c27d720"/><file name="Test.php" hash="040ecb43856a68dca4699a63c1e9c9f8"/></dir><dir name="Form"><file name="Heading.php" hash="8f820fe2ad56e3c4be54f7f84bc47eca"/><file name="Note.php" hash="974eaf447da64ec78001cd91f3cc3827"/></dir><dir name="Grid"><file name="Log.php" hash="ceff6fe31ea786257d1fd1c5c7a4ef82"/><file name="Seconds.php" hash="a7e6db7624fee7717cba3048f3f5638b"/><file name="Stars.php" hash="8041613a13a202b0df1d376dc38c5e76"/></dir><dir name="Info"><file name="Info.php" hash="fe80bd3c99f8cd6c814ab2ae8ad4cffe"/></dir></dir><file name="Feedbacklog.php" hash="eb36920b105077ca572137ccb4a9345c"/><file name="Feedbackreviews.php" hash="d1cf617989422aa0533d354dfde0fdf1"/></dir><file name="Custom.php" hash="de171ebe7fbc8a6d398c29da4427c0b5"/><file name="Reviews.php" hash="9393b1ffb4f9514cad46a51db24e6ab4"/><file name="Sidebar.php" hash="2cf37dc01dbde2a192f1b3a7f81c60c8"/></dir><dir name="Helper"><file name="Data.php" hash="1364831227cc724d3e8bdeca62d3451b"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="1c6f30ede26cadb9fd4c51f916cbfeb2"/></dir><dir name="Reviews"><file name="Collection.php" hash="17f3acddd0e184f923d137433aaa40ee"/></dir><dir name="Stats"><file name="Collection.php" hash="184fe402b66949e0d4fdb95fc6b4189d"/></dir><file name="Log.php" hash="542d942a56d159d5c1af65ed5c6de857"/><file name="Reviews.php" hash="5518780ad915f644ed9cc319def2da8c"/><file name="Stats.php" hash="268aed9ed09e83611b12c7bbbfca5076"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Attribute.php" hash="de511d86d47ae252e3097c335302c294"/><file name="Category.php" hash="43e5e5d69b764e9c93f9089e0ec64d26"/><file name="Cronfrequency.php" hash="80f7f624a17328052b156c7fde67ff7a"/><file name="Orderstatus.php" hash="64429a1804e1bc5ec2f0ea89e7627fc8"/><file name="Position.php" hash="3c11a9fba6006528bb904036ca87f619"/><file name="Reviewlink.php" hash="87122c1414c49a24222288fe3e96216c"/><file name="Sidebarlink.php" hash="9e1a817b4253645b5632306ffd89dd03"/></dir></dir></dir><file name="Api.php" hash="145849678951add55a82fbffcfa33318"/><file name="Log.php" hash="e64de82f87f3830914240e24ccbfb402"/><file name="Observer.php" hash="bd1fb89d488c75c70958f1eeb7ea1b02"/><file name="Reviews.php" hash="12e5c0b4fdcc6511a889a13ab0b7b961"/><file name="Stats.php" hash="1acf7b22daf0e46aa1379b540ca3bfdc"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="FeedbacklogController.php" hash="1e91b35498c18a47ff5c7fe04f3a720e"/><file name="FeedbackreviewsController.php" hash="e516e42aa791c0aa53b5d125d238d4c3"/></dir><file name="IndexController.php" hash="da1707d69452f5430305c20c083cba78"/></dir><dir name="etc"><file name="adminhtml.xml" hash="8d51e2aa74e51f8de79650776cff510e"/><file name="config.xml" hash="c7d80f93b32b6d3c45dcfcbb6ff7bd24"/><file name="system.xml" hash="5753449bed2b96cca92628851aaaac87"/></dir><dir name="sql"><dir name="feedbackcompany_setup"><file name="mysql4-install-0.9.0.php" hash="c86ec8f3c3a12cda7dd750cbd21dfca7"/><file name="mysql4-upgrade-1.2.1-1.2.2.php" hash="ef0c26c41ecfe27a20abacd5f041fae6"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="magmodules_feedbackcompany.xml" hash="e602f5a1e7028f893a598e4b171e26b8"/></dir><dir name="template"><dir name="magmodules"><dir name="feedbackcompany"><dir name="sidebar"><file name="left.phtml" hash="ce6032051f6297d0d7754e209a2fe1fd"/><file name="right.phtml" hash="0033188b9d06524aa61dfd703a3b0f0a"/></dir><dir name="widget"><file name="medium.phtml" hash="57a3a491f86331db7b97637a1bd9c45a"/><file name="sidebar.phtml" hash="a3823c23c28bb7ee701ecf73faf147d3"/><file name="small.phtml" hash="a01354bab54c15dcce78aa55482c4bce"/></dir><file name="index.phtml" hash="5ece09fd9fb623aaf45773235f6632fc"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="magmodules_feedbackcompany.xml" hash="886af6aabcc892da5074c93ad0263006"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magmodules_Feedbackcompany.xml" hash="89e30c33efd62d035f0d231968b471a5"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magmodules_Feedbackcompany.csv" hash="c9ee3be1fe9081310a138e6690b1dbeb"/></dir><dir name="nl_NL"><file name="Magmodules_Feedbackcompany.csv" hash="b96db18b82e1041cd6f307454b6c3121"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magmodules"><dir name="feedbackcompany"><dir name="images"><file name="5-stars-empty.png" hash="799c499ca785331e7e69d892df52dd48"/><file name="5-stars-full.png" hash="1d06151a2c4da6bb71381538c8a903a5"/><file name="bkg_rating.gif" hash="83c843697e71cbe94ddd75bdedcbcf95"/><file name="bkg_rating2x.gif" hash="f71a52080752ca47b4c19810afd72e54"/><file name="greystar.png" hash="ab99888c7a8f47826ad7a83bcabf9130"/><file name="logo.png" hash="6c8d46ba30a7ae87dcb75db12830b33f"/><file name="small_fill.png" hash="2fa2ce516dddb74497ada0ae8be94380"/><file name="small_grey.png" hash="685735e666b7938f19ffe3b420152572"/><file name="star.png" hash="647c77f0ef881fb2a90a4f53f70d75fa"/></dir><file name="richsnippets.css" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="sidebar.css" hash="7054e114987ad6f34d590ca91a0156c6"/><file name="style.css" hash="4e2db1d0aa075b49d1bf64774980cc48"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="magmodules"><dir name="feedbackcompany"><file name="grid.css" hash="ea7e85df839bf0eb7bc6882608da80b0"/><file name="star.png" hash="4beacfb62ebdd5feecd946494e895f4c"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|