Version Notes
First stable release
Download this release
Release Info
Developer | Magento Core Team |
Extension | Magmodules_Feedbackcompany |
Version | 1.4.0 |
Comparing to | |
See all releases |
Code changes from version 1.3.3 to 1.4.0
- app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbacklog.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbacklog/Grid.php +10 -6
- app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews.php +3 -4
- app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews/Grid.php +9 -5
- app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews/Renderer/Experience.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Buttons/Process.php +3 -4
- app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Buttons/Productreviews.php +3 -4
- app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Buttons/Test.php +37 -0
- app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Field/Version.php +18 -14
- app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Form/Heading.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Form/Note.php +20 -16
- app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Log.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Seconds.php +8 -9
- app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Stars.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Info/Info.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Block/Custom.php +25 -10
- app/code/community/Magmodules/Feedbackcompany/Block/Header.php +46 -0
- app/code/community/Magmodules/Feedbackcompany/Block/Reviews.php +27 -11
- app/code/community/Magmodules/Feedbackcompany/Block/Sidebar.php +9 -15
- app/code/community/Magmodules/Feedbackcompany/Helper/Data.php +71 -39
- app/code/community/Magmodules/Feedbackcompany/Model/Api.php +3 -3
- app/code/community/Magmodules/Feedbackcompany/Model/Log.php +1 -2
- app/code/community/Magmodules/Feedbackcompany/Model/Mysql4/Log.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Model/Mysql4/Log/Collection.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Model/Mysql4/Reviews.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Model/Mysql4/Reviews/Collection.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Model/Mysql4/Stats.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Model/Mysql4/Stats/Collection.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Model/Observer.php +15 -8
- app/code/community/Magmodules/Feedbackcompany/Model/Productreviews.php +36 -30
- app/code/community/Magmodules/Feedbackcompany/Model/Reviews.php +9 -76
- app/code/community/Magmodules/Feedbackcompany/Model/Stats.php +10 -6
- app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Attribute.php +4 -2
- app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Category.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Cronfrequency.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Orderstatus.php +3 -5
- app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Position.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Reviewlink.php +18 -14
- app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Reviewrating.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Reviewstatus.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Sidebarlink.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbacklogController.php +11 -6
- app/code/community/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbackreviewsController.php +3 -2
- app/code/community/Magmodules/Feedbackcompany/controllers/IndexController.php +3 -8
- app/code/community/Magmodules/Feedbackcompany/etc/adminhtml.xml +1 -1
- app/code/community/Magmodules/Feedbackcompany/etc/config.xml +2 -2
- app/code/community/Magmodules/Feedbackcompany/etc/system.xml +57 -12
- app/code/community/Magmodules/Feedbackcompany/sql/feedbackcompany_setup/mysql4-install-0.9.0.php +1 -1
- app/code/community/Magmodules/Feedbackcompany/sql/feedbackcompany_setup/mysql4-upgrade-1.2.1-1.2.2.php +1 -1
- app/code/community/Magmodules/Feedbackcompany/sql/feedbackcompany_setup/mysql4-upgrade-1.3.0-1.3.1.php +1 -1
- app/design/frontend/base/default/layout/magmodules_feedbackcompany.xml +4 -0
- app/design/frontend/base/default/template/magmodules/feedbackcompany/index.phtml +87 -70
- app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/left.phtml +1 -1
- app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/right.phtml +1 -1
- app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/header.phtml +41 -0
- app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/medium.phtml +1 -1
- app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/sidebar.phtml +1 -1
- app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/small.phtml +2 -2
- app/locale/en_US/Magmodules_Feedbackcompany.csv +10 -1
- app/locale/nl_NL/Magmodules_Feedbackcompany.csv +11 -1
- package.xml +4 -4
- skin/frontend/base/default/magmodules/feedbackcompany/images/sprites.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/sprites@2x.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/star.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-big-empty.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-big-empty@2x.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-big-filling.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-big-filling@2x.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-medium-empty.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-medium-empty@2x.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-medium-filling.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-medium-filling@2x.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-small-empty.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-small-empty@2x.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-small-filling.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-small-filling@2x.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-grayscale-small-empty.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-grayscale-small-empty@2x.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-grayscale-small-filling.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/stars-grayscale-small-filling@2x.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/sidebar.css +65 -9
- skin/frontend/base/default/magmodules/feedbackcompany/style.css +278 -87
app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbacklog.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbacklog extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
23 |
|
24 |
-
public function __construct()
|
|
|
25 |
$this->_controller = 'adminhtml_feedbacklog';
|
26 |
$this->_blockGroup = 'feedbackcompany';
|
27 |
$this->_headerText = Mage::helper('feedbackcompany')->__('The Feedback Company - Logs');
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbacklog extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
23 |
|
24 |
+
public function __construct()
|
25 |
+
{
|
26 |
$this->_controller = 'adminhtml_feedbacklog';
|
27 |
$this->_blockGroup = 'feedbackcompany';
|
28 |
$this->_headerText = Mage::helper('feedbackcompany')->__('The Feedback Company - Logs');
|
app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbacklog/Grid.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbacklog_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
23 |
|
24 |
-
public function __construct()
|
|
|
25 |
parent::__construct();
|
26 |
$this->setId('feedbacklogGrid');
|
27 |
$this->setDefaultSort('date');
|
@@ -29,13 +30,15 @@ class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbacklog_Grid extends Mage_A
|
|
29 |
$this->setSaveParametersInSession(true);
|
30 |
}
|
31 |
|
32 |
-
protected function _prepareCollection()
|
|
|
33 |
$collection = Mage::getModel('feedbackcompany/log')->getCollection();
|
34 |
$this->setCollection($collection);
|
35 |
return parent::_prepareCollection();
|
36 |
}
|
37 |
|
38 |
-
protected function _prepareColumns()
|
|
|
39 |
|
40 |
$this->addColumn('company', array(
|
41 |
'header' => Mage::helper('feedbackcompany')->__('Shop'),
|
@@ -109,7 +112,8 @@ class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbacklog_Grid extends Mage_A
|
|
109 |
return parent::_prepareColumns();
|
110 |
}
|
111 |
|
112 |
-
protected function _prepareMassaction()
|
|
|
113 |
$this->setMassactionIdField('id');
|
114 |
$this->getMassactionBlock()->setFormFieldName('logids');
|
115 |
|
@@ -121,7 +125,7 @@ class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbacklog_Grid extends Mage_A
|
|
121 |
}
|
122 |
|
123 |
public function getRowUrl($row) {
|
124 |
-
|
125 |
}
|
126 |
|
127 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbacklog_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
23 |
|
24 |
+
public function __construct()
|
25 |
+
{
|
26 |
parent::__construct();
|
27 |
$this->setId('feedbacklogGrid');
|
28 |
$this->setDefaultSort('date');
|
30 |
$this->setSaveParametersInSession(true);
|
31 |
}
|
32 |
|
33 |
+
protected function _prepareCollection()
|
34 |
+
{
|
35 |
$collection = Mage::getModel('feedbackcompany/log')->getCollection();
|
36 |
$this->setCollection($collection);
|
37 |
return parent::_prepareCollection();
|
38 |
}
|
39 |
|
40 |
+
protected function _prepareColumns()
|
41 |
+
{
|
42 |
|
43 |
$this->addColumn('company', array(
|
44 |
'header' => Mage::helper('feedbackcompany')->__('Shop'),
|
112 |
return parent::_prepareColumns();
|
113 |
}
|
114 |
|
115 |
+
protected function _prepareMassaction()
|
116 |
+
{
|
117 |
$this->setMassactionIdField('id');
|
118 |
$this->getMassactionBlock()->setFormFieldName('logids');
|
119 |
|
125 |
}
|
126 |
|
127 |
public function getRowUrl($row) {
|
128 |
+
return false;
|
129 |
}
|
130 |
|
131 |
}
|
app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews.php
CHANGED
@@ -15,25 +15,24 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
23 |
|
24 |
-
public function __construct()
|
|
|
25 |
$this->_controller = 'adminhtml_feedbackreviews';
|
26 |
$this->_blockGroup = 'feedbackcompany';
|
27 |
$this->_headerText = Mage::helper('feedbackcompany')->__('The Feedback Company - Reviews');
|
28 |
parent::__construct();
|
29 |
$this->_removeButton('add');
|
30 |
-
|
31 |
$this->_addButton('module_controller', array(
|
32 |
'label' => Mage::helper('feedbackcompany')->__('Delete all reviews'),
|
33 |
'onclick' => "setLocation('{$this->getUrl('adminhtml/feedbackreviews/truncate')}')",
|
34 |
'confirm' => Mage::helper('feedbackcompany')->__('Are you sure you want to delete all reviews?'),
|
35 |
));
|
36 |
-
|
37 |
}
|
38 |
|
39 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
23 |
|
24 |
+
public function __construct()
|
25 |
+
{
|
26 |
$this->_controller = 'adminhtml_feedbackreviews';
|
27 |
$this->_blockGroup = 'feedbackcompany';
|
28 |
$this->_headerText = Mage::helper('feedbackcompany')->__('The Feedback Company - Reviews');
|
29 |
parent::__construct();
|
30 |
$this->_removeButton('add');
|
|
|
31 |
$this->_addButton('module_controller', array(
|
32 |
'label' => Mage::helper('feedbackcompany')->__('Delete all reviews'),
|
33 |
'onclick' => "setLocation('{$this->getUrl('adminhtml/feedbackreviews/truncate')}')",
|
34 |
'confirm' => Mage::helper('feedbackcompany')->__('Are you sure you want to delete all reviews?'),
|
35 |
));
|
|
|
36 |
}
|
37 |
|
38 |
}
|
app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews/Grid.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
23 |
|
24 |
-
public function __construct()
|
|
|
25 |
parent::__construct();
|
26 |
$this->setId('reviewsGrid');
|
27 |
$this->setDefaultSort('date_created');
|
@@ -29,13 +30,15 @@ class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews_Grid extends Ma
|
|
29 |
$this->setSaveParametersInSession(true);
|
30 |
}
|
31 |
|
32 |
-
protected function _prepareCollection()
|
|
|
33 |
$collection = Mage::getModel('feedbackcompany/reviews')->getCollection();
|
34 |
$this->setCollection($collection);
|
35 |
return parent::_prepareCollection();
|
36 |
}
|
37 |
|
38 |
-
protected function _prepareColumns()
|
|
|
39 |
|
40 |
$this->addColumn('company', array(
|
41 |
'header' => Mage::helper('feedbackcompany')->__('Shop'),
|
@@ -137,7 +140,8 @@ class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews_Grid extends Ma
|
|
137 |
return parent::_prepareColumns();
|
138 |
}
|
139 |
|
140 |
-
protected function _prepareMassaction()
|
|
|
141 |
$this->setMassactionIdField('review_id');
|
142 |
$this->getMassactionBlock()->setFormFieldName('reviewids');
|
143 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
23 |
|
24 |
+
public function __construct()
|
25 |
+
{
|
26 |
parent::__construct();
|
27 |
$this->setId('reviewsGrid');
|
28 |
$this->setDefaultSort('date_created');
|
30 |
$this->setSaveParametersInSession(true);
|
31 |
}
|
32 |
|
33 |
+
protected function _prepareCollection()
|
34 |
+
{
|
35 |
$collection = Mage::getModel('feedbackcompany/reviews')->getCollection();
|
36 |
$this->setCollection($collection);
|
37 |
return parent::_prepareCollection();
|
38 |
}
|
39 |
|
40 |
+
protected function _prepareColumns()
|
41 |
+
{
|
42 |
|
43 |
$this->addColumn('company', array(
|
44 |
'header' => Mage::helper('feedbackcompany')->__('Shop'),
|
140 |
return parent::_prepareColumns();
|
141 |
}
|
142 |
|
143 |
+
protected function _prepareMassaction()
|
144 |
+
{
|
145 |
$this->setMassactionIdField('review_id');
|
146 |
$this->getMassactionBlock()->setFormFieldName('reviewids');
|
147 |
|
app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews/Renderer/Experience.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews_Renderer_Experience extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract {
|
23 |
|
24 |
-
public function render(Varien_Object $row)
|
|
|
25 |
$value = $row->getData($this->getColumn()->getIndex());
|
26 |
$char_limit = '100';
|
27 |
if(strlen($value) > $char_limit) {
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews_Renderer_Experience extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract {
|
23 |
|
24 |
+
public function render(Varien_Object $row)
|
25 |
+
{
|
26 |
$value = $row->getData($this->getColumn()->getIndex());
|
27 |
$char_limit = '100';
|
28 |
if(strlen($value) > $char_limit) {
|
app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Buttons/Process.php
CHANGED
@@ -15,23 +15,22 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Buttons_Process extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
23 |
|
24 |
-
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
|
|
25 |
$this->setElement($element);
|
26 |
$url = $this->getUrl('*/feedbackreviews/process');
|
27 |
-
|
28 |
$html = $this->getLayout()->createBlock('adminhtml/widget_button')
|
29 |
->setType('button')
|
30 |
->setClass('scalable')
|
31 |
->setLabel(Mage::helper('feedbackcompany')->__('Process Manually'))
|
32 |
->setOnClick("setLocation('$url')")
|
33 |
->toHtml();
|
34 |
-
|
35 |
return $html;
|
36 |
}
|
37 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Buttons_Process extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
23 |
|
24 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
25 |
+
{
|
26 |
$this->setElement($element);
|
27 |
$url = $this->getUrl('*/feedbackreviews/process');
|
|
|
28 |
$html = $this->getLayout()->createBlock('adminhtml/widget_button')
|
29 |
->setType('button')
|
30 |
->setClass('scalable')
|
31 |
->setLabel(Mage::helper('feedbackcompany')->__('Process Manually'))
|
32 |
->setOnClick("setLocation('$url')")
|
33 |
->toHtml();
|
|
|
34 |
return $html;
|
35 |
}
|
36 |
|
app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Buttons/Productreviews.php
CHANGED
@@ -15,23 +15,22 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Buttons_Productreviews extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
23 |
|
24 |
-
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
|
|
25 |
$this->setElement($element);
|
26 |
$url = $this->getUrl('*/feedbackreviews/productreviews');
|
27 |
-
|
28 |
$html = $this->getLayout()->createBlock('adminhtml/widget_button')
|
29 |
->setType('button')
|
30 |
->setClass('scalable')
|
31 |
->setLabel(Mage::helper('feedbackcompany')->__('Process Manually'))
|
32 |
->setOnClick("setLocation('$url')")
|
33 |
->toHtml();
|
34 |
-
|
35 |
return $html;
|
36 |
}
|
37 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Buttons_Productreviews extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
23 |
|
24 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
25 |
+
{
|
26 |
$this->setElement($element);
|
27 |
$url = $this->getUrl('*/feedbackreviews/productreviews');
|
|
|
28 |
$html = $this->getLayout()->createBlock('adminhtml/widget_button')
|
29 |
->setType('button')
|
30 |
->setClass('scalable')
|
31 |
->setLabel(Mage::helper('feedbackcompany')->__('Process Manually'))
|
32 |
->setOnClick("setLocation('$url')")
|
33 |
->toHtml();
|
|
|
34 |
return $html;
|
35 |
}
|
36 |
|
app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Buttons/Test.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Buttons_Test extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
23 |
+
|
24 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
25 |
+
{
|
26 |
+
$this->setElement($element);
|
27 |
+
$url = $this->getUrl('*/feedbackreviews/testapi');
|
28 |
+
$html = $this->getLayout()->createBlock('adminhtml/widget_button')
|
29 |
+
->setType('button')
|
30 |
+
->setClass('scalable')
|
31 |
+
->setLabel(Mage::helper('feedbackcompany')->__('Test API'))
|
32 |
+
->setOnClick("setLocation('$url')")
|
33 |
+
->toHtml();
|
34 |
+
return $html;
|
35 |
+
}
|
36 |
+
|
37 |
+
}
|
app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Field/Version.php
CHANGED
@@ -1,18 +1,22 @@
|
|
1 |
-
<?php
|
2 |
/**
|
3 |
-
* Magmodules.eu - http://www.magmodules.eu
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
*
|
8 |
-
*
|
9 |
-
*
|
10 |
-
*
|
11 |
-
*
|
12 |
-
*
|
13 |
-
* @
|
14 |
-
*
|
15 |
-
*
|
|
|
|
|
|
|
|
|
16 |
*/
|
17 |
|
18 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Field_Version extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
1 |
+
<?php
|
2 |
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Field_Version extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Form/Heading.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Form_Heading extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
|
23 |
|
24 |
-
public function render(Varien_Data_Form_Element_Abstract $element)
|
|
|
25 |
$useContainerId = $element->getData('use_container_id');
|
26 |
return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4>%s</h4></td></tr>',
|
27 |
$element->getHtmlId(), $element->getLabel()
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Form_Heading extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
|
23 |
|
24 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
25 |
+
{
|
26 |
$useContainerId = $element->getData('use_container_id');
|
27 |
return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4>%s</h4></td></tr>',
|
28 |
$element->getHtmlId(), $element->getLabel()
|
app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Form/Note.php
CHANGED
@@ -1,23 +1,27 @@
|
|
1 |
-
<?php
|
2 |
/**
|
3 |
-
* Magmodules.eu - http://www.magmodules.eu
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
*
|
8 |
-
*
|
9 |
-
*
|
10 |
-
*
|
11 |
-
*
|
12 |
-
*
|
13 |
-
* @
|
14 |
-
*
|
15 |
-
*
|
|
|
|
|
|
|
|
|
16 |
*/
|
17 |
-
|
18 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Form_Note extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
|
19 |
|
20 |
-
public function render(Varien_Data_Form_Element_Abstract $element)
|
|
|
21 |
$useContainerId = $element->getData('use_container_id');
|
22 |
return sprintf('<tr id="row_%s"><td colspan="5" class="label" style="margin-bottom: 10px;">%s</td></tr>',
|
23 |
$element->getHtmlId(), $element->getLabel()
|
1 |
+
<?php
|
2 |
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
|
|
21 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Form_Note extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
|
22 |
|
23 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
24 |
+
{
|
25 |
$useContainerId = $element->getData('use_container_id');
|
26 |
return sprintf('<tr id="row_%s"><td colspan="5" class="label" style="margin-bottom: 10px;">%s</td></tr>',
|
27 |
$element->getHtmlId(), $element->getLabel()
|
app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Log.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Grid_Log extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
23 |
|
24 |
-
public function render(Varien_Object $row)
|
|
|
25 |
$type = $row->getType();
|
26 |
$msg = '';
|
27 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Grid_Log extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
23 |
|
24 |
+
public function render(Varien_Object $row)
|
25 |
+
{
|
26 |
$type = $row->getType();
|
27 |
$msg = '';
|
28 |
|
app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Seconds.php
CHANGED
@@ -15,20 +15,19 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Grid_Seconds extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
}
|
30 |
-
|
31 |
-
return $value;
|
32 |
}
|
|
|
|
|
33 |
|
34 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Grid_Seconds extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
23 |
|
24 |
+
public function render(Varien_Object $row)
|
25 |
+
{
|
26 |
+
$value = $row->getData($this->getColumn()->getIndex());
|
27 |
+
if($value > 0) {
|
28 |
+
$value = number_format($value, 3, '.', '');
|
|
|
|
|
|
|
29 |
}
|
30 |
+
return $value;
|
31 |
+
}
|
32 |
|
33 |
}
|
app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Stars.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Grid_Stars extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
23 |
|
24 |
-
public function render(Varien_Object $row)
|
|
|
25 |
$value = $row->getData($this->getColumn()->getIndex());
|
26 |
|
27 |
if($value == '0') {
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Grid_Stars extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
23 |
|
24 |
+
public function render(Varien_Object $row)
|
25 |
+
{
|
26 |
$value = $row->getData($this->getColumn()->getIndex());
|
27 |
|
28 |
if($value == '0') {
|
app/code/community/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Info/Info.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Info_Info extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
|
23 |
|
24 |
-
public function render(Varien_Data_Form_Element_Abstract $element)
|
|
|
25 |
$element = '<div style="background:url(\'http://www.magmodules.eu/_logo.png\') no-repeat scroll 15px center #EAF0EE;border:1px solid #CCCCCC;margin-bottom:10px;padding:10px 5px 5px 200px;">
|
26 |
<h4>About Magmodules.eu</h4>
|
27 |
<p>We are a Magento only E-commerce Agency located in the Netherlands.<br>
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Info_Info extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
|
23 |
|
24 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
25 |
+
{
|
26 |
$element = '<div style="background:url(\'http://www.magmodules.eu/_logo.png\') no-repeat scroll 15px center #EAF0EE;border:1px solid #CCCCCC;margin-bottom:10px;padding:10px 5px 5px 200px;">
|
27 |
<h4>About Magmodules.eu</h4>
|
28 |
<p>We are a Magento only E-commerce Agency located in the Netherlands.<br>
|
app/code/community/Magmodules/Feedbackcompany/Block/Custom.php
CHANGED
@@ -15,14 +15,16 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Custom extends Mage_Core_Block_Template {
|
23 |
|
24 |
-
protected function _construct()
|
25 |
-
|
|
|
|
|
26 |
$blockType = $this->getData("blocktype");
|
27 |
$blockTypeTemplate = '';
|
28 |
|
@@ -55,6 +57,14 @@ class Magmodules_Feedbackcompany_Block_Custom extends Mage_Core_Block_Template {
|
|
55 |
}
|
56 |
}
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
|
59 |
if($blockTypeTemplate) {
|
60 |
|
@@ -69,30 +79,35 @@ class Magmodules_Feedbackcompany_Block_Custom extends Mage_Core_Block_Template {
|
|
69 |
parent::_construct();
|
70 |
$this->setTemplate($blockTypeTemplate);
|
71 |
}
|
72 |
-
|
73 |
}
|
74 |
|
75 |
-
public function getFeedbackcompanyData()
|
|
|
76 |
return $this->helper('feedbackcompany')->getTotalScore();
|
77 |
}
|
78 |
|
79 |
-
function formatContent($sidebarreview, $sidebar)
|
|
|
80 |
return $this->helper('feedbackcompany')->formatContent($sidebarreview, $sidebar);
|
81 |
}
|
82 |
|
83 |
-
function getReviewsUrl($type)
|
|
|
84 |
return $this->helper('feedbackcompany')->getReviewsUrl($type);
|
85 |
}
|
86 |
|
87 |
-
public function getSnippetsEnabled($sidebar)
|
|
|
88 |
return $this->helper('feedbackcompany')->getSnippetsEnabled($sidebar);
|
89 |
}
|
90 |
|
91 |
-
public function getLatestReview()
|
|
|
92 |
return $this->helper('feedbackcompany')->getLatestReview();
|
93 |
}
|
94 |
|
95 |
-
public function getHtmlStars($percentage, $type)
|
|
|
96 |
return $this->helper('feedbackcompany')->getHtmlStars($percentage, $type);
|
97 |
}
|
98 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Custom extends Mage_Core_Block_Template {
|
23 |
|
24 |
+
protected function _construct()
|
25 |
+
{
|
26 |
+
parent::_construct();
|
27 |
+
|
28 |
$blockType = $this->getData("blocktype");
|
29 |
$blockTypeTemplate = '';
|
30 |
|
57 |
}
|
58 |
}
|
59 |
|
60 |
+
if($blockType == 'summary') {
|
61 |
+
$total = $this->helper('feedbackcompany')->getTotalScore();
|
62 |
+
$enabled = $this->helper('feedbackcompany')->getBlockEnabled('summary');
|
63 |
+
if($total && $enabled) {
|
64 |
+
$this->setTotals($total);
|
65 |
+
$blockTypeTemplate = 'magmodules/feedbackcompany/widget/summary.phtml';
|
66 |
+
}
|
67 |
+
}
|
68 |
|
69 |
if($blockTypeTemplate) {
|
70 |
|
79 |
parent::_construct();
|
80 |
$this->setTemplate($blockTypeTemplate);
|
81 |
}
|
|
|
82 |
}
|
83 |
|
84 |
+
public function getFeedbackcompanyData()
|
85 |
+
{
|
86 |
return $this->helper('feedbackcompany')->getTotalScore();
|
87 |
}
|
88 |
|
89 |
+
function formatContent($sidebarreview, $sidebar)
|
90 |
+
{
|
91 |
return $this->helper('feedbackcompany')->formatContent($sidebarreview, $sidebar);
|
92 |
}
|
93 |
|
94 |
+
function getReviewsUrl($type)
|
95 |
+
{
|
96 |
return $this->helper('feedbackcompany')->getReviewsUrl($type);
|
97 |
}
|
98 |
|
99 |
+
public function getSnippetsEnabled($sidebar)
|
100 |
+
{
|
101 |
return $this->helper('feedbackcompany')->getSnippetsEnabled($sidebar);
|
102 |
}
|
103 |
|
104 |
+
public function getLatestReview()
|
105 |
+
{
|
106 |
return $this->helper('feedbackcompany')->getLatestReview();
|
107 |
}
|
108 |
|
109 |
+
public function getHtmlStars($percentage, $type)
|
110 |
+
{
|
111 |
return $this->helper('feedbackcompany')->getHtmlStars($percentage, $type);
|
112 |
}
|
113 |
|
app/code/community/Magmodules/Feedbackcompany/Block/Header.php
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Header extends Mage_Core_Block_Template {
|
23 |
+
|
24 |
+
protected function _construct()
|
25 |
+
{
|
26 |
+
parent::_construct();
|
27 |
+
$total = $this->helper('feedbackcompany')->getTotalScore();
|
28 |
+
$enabled = $this->helper('feedbackcompany')->getBlockEnabled('header');
|
29 |
+
if($total && $enabled) {
|
30 |
+
$this->setTotals($total);
|
31 |
+
$blockTypeTemplate = 'magmodules/feedbackcompany/widget/header.phtml';
|
32 |
+
$this->setTemplate($blockTypeTemplate);
|
33 |
+
}
|
34 |
+
}
|
35 |
+
|
36 |
+
function getReviewsUrl()
|
37 |
+
{
|
38 |
+
return $this->helper('feedbackcompany')->getReviewsUrl('header');
|
39 |
+
}
|
40 |
+
|
41 |
+
public function getSnippetsEnabled()
|
42 |
+
{
|
43 |
+
return $this->helper('feedbackcompany')->getSnippetsEnabled('header');
|
44 |
+
}
|
45 |
+
|
46 |
+
}
|
app/code/community/Magmodules/Feedbackcompany/Block/Reviews.php
CHANGED
@@ -15,28 +15,27 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Reviews extends Mage_Core_Block_Template {
|
23 |
|
24 |
-
public function __construct()
|
|
|
25 |
parent::__construct();
|
26 |
-
|
27 |
-
// Load Reviews
|
28 |
$collection = Mage::getModel('feedbackcompany/reviews')->getCollection();
|
29 |
$collection->setOrder('date_created', 'DESC');
|
30 |
$collection->addFieldToFilter('status',1);
|
31 |
-
$collection->addFieldToFilter('shop_id',
|
32 |
$this->setReviews($collection);
|
33 |
-
|
34 |
-
// Load Stats
|
35 |
-
$stats = Mage::getModel('feedbackcompany/stats')->load(Mage::getStoreConfig('feedbackcompany/general/api_id'), 'shop_id');
|
36 |
$this->setStats($stats);
|
37 |
}
|
38 |
|
39 |
-
public function _prepareLayout()
|
|
|
40 |
parent::_prepareLayout();
|
41 |
$pager = $this->getLayout()->createBlock('page/html_pager', 'feedbackcompany.pager');
|
42 |
if(Mage::getStoreConfig('feedbackcompany/overview/enable_paging')) {
|
@@ -53,12 +52,29 @@ class Magmodules_Feedbackcompany_Block_Reviews extends Mage_Core_Block_Template
|
|
53 |
return $this;
|
54 |
}
|
55 |
|
56 |
-
public function getPagerHtml()
|
|
|
57 |
return $this->getChildHtml('pager');
|
58 |
}
|
59 |
|
60 |
-
public function getFormUrl()
|
|
|
61 |
return $this->helper('feedbackcompany')->getFormUrl();
|
62 |
}
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Reviews extends Mage_Core_Block_Template {
|
23 |
|
24 |
+
public function __construct()
|
25 |
+
{
|
26 |
parent::__construct();
|
27 |
+
$shop_id = Mage::getStoreConfig('feedbackcompany/general/api_id');
|
|
|
28 |
$collection = Mage::getModel('feedbackcompany/reviews')->getCollection();
|
29 |
$collection->setOrder('date_created', 'DESC');
|
30 |
$collection->addFieldToFilter('status',1);
|
31 |
+
$collection->addFieldToFilter('shop_id', $shop_id);
|
32 |
$this->setReviews($collection);
|
33 |
+
$stats = Mage::getModel('feedbackcompany/stats')->load($shop_id, 'shop_id');
|
|
|
|
|
34 |
$this->setStats($stats);
|
35 |
}
|
36 |
|
37 |
+
public function _prepareLayout()
|
38 |
+
{
|
39 |
parent::_prepareLayout();
|
40 |
$pager = $this->getLayout()->createBlock('page/html_pager', 'feedbackcompany.pager');
|
41 |
if(Mage::getStoreConfig('feedbackcompany/overview/enable_paging')) {
|
52 |
return $this;
|
53 |
}
|
54 |
|
55 |
+
public function getPagerHtml()
|
56 |
+
{
|
57 |
return $this->getChildHtml('pager');
|
58 |
}
|
59 |
|
60 |
+
public function getFormUrl()
|
61 |
+
{
|
62 |
return $this->helper('feedbackcompany')->getFormUrl();
|
63 |
}
|
64 |
|
65 |
+
public function getReviewUrl()
|
66 |
+
{
|
67 |
+
return Mage::getStoreConfig('feedbackcompany/general/url');
|
68 |
+
}
|
69 |
+
|
70 |
+
public function getPageIntro()
|
71 |
+
{
|
72 |
+
return nl2br(Mage::getStoreConfig('feedbackcompany/overview/intro'));
|
73 |
+
}
|
74 |
+
|
75 |
+
public function formatScoresReview($review)
|
76 |
+
{
|
77 |
+
return $this->helper('feedbackcompany')->formatScoresReview($review);
|
78 |
+
}
|
79 |
+
|
80 |
}
|
app/code/community/Magmodules/Feedbackcompany/Block/Sidebar.php
CHANGED
@@ -15,14 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Sidebar extends Mage_Core_Block_Template {
|
23 |
|
24 |
-
function getSidebarCollection($sidebar)
|
25 |
-
|
26 |
$enabled = '';
|
27 |
$qty = '5';
|
28 |
|
@@ -69,9 +69,7 @@ class Magmodules_Feedbackcompany_Block_Sidebar extends Mage_Core_Block_Template
|
|
69 |
}
|
70 |
|
71 |
function getReviewsUrl($sidebar = 'left') {
|
72 |
-
|
73 |
$url = '';
|
74 |
-
|
75 |
if($sidebar == 'left'):
|
76 |
$link = Mage::getStoreConfig('feedbackcompany/sidebar/left_link');
|
77 |
endif;
|
@@ -91,11 +89,10 @@ class Magmodules_Feedbackcompany_Block_Sidebar extends Mage_Core_Block_Template
|
|
91 |
} else {
|
92 |
return false;
|
93 |
}
|
94 |
-
|
95 |
}
|
96 |
|
97 |
-
function getSnippetsEnabled($sidebar = 'left')
|
98 |
-
|
99 |
if($sidebar == 'left'):
|
100 |
$enabled = Mage::getStoreConfig('feedbackcompany/sidebar/left_snippets');
|
101 |
endif;
|
@@ -103,16 +100,13 @@ class Magmodules_Feedbackcompany_Block_Sidebar extends Mage_Core_Block_Template
|
|
103 |
$enabled = Mage::getStoreConfig('feedbackcompany/sidebar/right_snippets');
|
104 |
endif;
|
105 |
|
106 |
-
$
|
107 |
-
|
108 |
-
if($enabled && $homepage) {
|
109 |
return true;
|
110 |
-
|
111 |
-
return false;
|
112 |
-
}
|
113 |
}
|
114 |
|
115 |
-
public function getTotalScore()
|
|
|
116 |
return $this->helper('feedbackcompany')->getTotalScore();
|
117 |
}
|
118 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Block_Sidebar extends Mage_Core_Block_Template {
|
23 |
|
24 |
+
function getSidebarCollection($sidebar)
|
25 |
+
{
|
26 |
$enabled = '';
|
27 |
$qty = '5';
|
28 |
|
69 |
}
|
70 |
|
71 |
function getReviewsUrl($sidebar = 'left') {
|
|
|
72 |
$url = '';
|
|
|
73 |
if($sidebar == 'left'):
|
74 |
$link = Mage::getStoreConfig('feedbackcompany/sidebar/left_link');
|
75 |
endif;
|
89 |
} else {
|
90 |
return false;
|
91 |
}
|
|
|
92 |
}
|
93 |
|
94 |
+
function getSnippetsEnabled($sidebar = 'left')
|
95 |
+
{
|
96 |
if($sidebar == 'left'):
|
97 |
$enabled = Mage::getStoreConfig('feedbackcompany/sidebar/left_snippets');
|
98 |
endif;
|
100 |
$enabled = Mage::getStoreConfig('feedbackcompany/sidebar/right_snippets');
|
101 |
endif;
|
102 |
|
103 |
+
if($enabled && ($this->getRequest()->getRouteName() != 'feedbackcompany')):
|
|
|
|
|
104 |
return true;
|
105 |
+
endif;
|
|
|
|
|
106 |
}
|
107 |
|
108 |
+
public function getTotalScore()
|
109 |
+
{
|
110 |
return $this->helper('feedbackcompany')->getTotalScore();
|
111 |
}
|
112 |
|
app/code/community/Magmodules/Feedbackcompany/Helper/Data.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Helper_Data extends Mage_Core_Helper_Abstract {
|
23 |
|
24 |
-
public function getTotalScore()
|
|
|
25 |
$qty = 0; $rating = 0;
|
26 |
$shop_id = Mage::getStoreConfig('feedbackcompany/general/api_id');
|
27 |
$review_stats = Mage::getModel('feedbackcompany/stats')->load($shop_id, 'shop_id');
|
@@ -34,7 +35,8 @@ class Magmodules_Feedbackcompany_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
34 |
}
|
35 |
}
|
36 |
|
37 |
-
public function getStyle($type = 'sidebar')
|
|
|
38 |
if($type == 'left') {
|
39 |
return Mage::getStoreConfig('feedbackcompany/sidebar/left_style');
|
40 |
}
|
@@ -46,30 +48,37 @@ class Magmodules_Feedbackcompany_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
46 |
}
|
47 |
}
|
48 |
|
49 |
-
public function getSnippetsEnabled($type = 'sidebar')
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
}
|
67 |
}
|
68 |
|
69 |
-
function getReviewsUrl($type)
|
70 |
-
|
71 |
-
$link = '';
|
72 |
-
|
73 |
switch ($type) {
|
74 |
case 'left':
|
75 |
$link = Mage::getStoreConfig('feedbackcompany/sidebar/left_link');
|
@@ -82,7 +91,10 @@ class Magmodules_Feedbackcompany_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
82 |
break;
|
83 |
case 'small':
|
84 |
$link = Mage::getStoreConfig('feedbackcompany/block/small_link');
|
85 |
-
break;
|
|
|
|
|
|
|
86 |
case 'medium':
|
87 |
$link = Mage::getStoreConfig('feedbackcompany/block/medium_link');
|
88 |
break;
|
@@ -96,10 +108,9 @@ class Magmodules_Feedbackcompany_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
96 |
return false;
|
97 |
}
|
98 |
|
99 |
-
function getSidebarCollection($sidebar)
|
100 |
-
|
101 |
$enabled = ''; $qty = '5';
|
102 |
-
|
103 |
if(Mage::getStoreConfig('feedbackcompany/general/enabled')) {
|
104 |
if($sidebar == 'left') {
|
105 |
$qty = Mage::getStoreConfig('feedbackcompany/sidebar/left_qty');
|
@@ -114,7 +125,6 @@ class Magmodules_Feedbackcompany_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
114 |
$enabled = Mage::getStoreConfig('feedbackcompany/block/sidebar');
|
115 |
}
|
116 |
}
|
117 |
-
|
118 |
if($enabled) {
|
119 |
$shop_id = Mage::getStoreConfig('feedbackcompany/general/api_id');
|
120 |
$reviews = Mage::getModel("feedbackcompany/reviews")->getCollection();
|
@@ -126,11 +136,11 @@ class Magmodules_Feedbackcompany_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
126 |
$reviews->load();
|
127 |
return $reviews;
|
128 |
}
|
129 |
-
|
130 |
return false;
|
131 |
}
|
132 |
|
133 |
-
function getLatestReview()
|
|
|
134 |
if(Mage::getStoreConfig('feedbackcompany/block/medium_review')) {
|
135 |
$shop_id = Mage::getStoreConfig('feedbackcompany/general/api_id');
|
136 |
$review = Mage::getModel("feedbackcompany/reviews")->getCollection();
|
@@ -143,11 +153,10 @@ class Magmodules_Feedbackcompany_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
143 |
return false;
|
144 |
}
|
145 |
|
146 |
-
function formatContent($sidebarreview, $sidebar = 'left')
|
147 |
-
|
148 |
$content = $sidebarreview->getReviewText();
|
149 |
$char_limit = '';
|
150 |
-
|
151 |
if($sidebar == 'left') {
|
152 |
$char_limit = Mage::getStoreConfig('feedbackcompany/sidebar/left_lenght');
|
153 |
}
|
@@ -171,7 +180,8 @@ class Magmodules_Feedbackcompany_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
171 |
return $content;
|
172 |
}
|
173 |
|
174 |
-
public function getBlockEnabled($type)
|
|
|
175 |
if(Mage::getStoreConfig('feedbackcompany/general/enabled')) {
|
176 |
switch ($type) {
|
177 |
case 'left':
|
@@ -185,7 +195,10 @@ class Magmodules_Feedbackcompany_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
185 |
break;
|
186 |
case 'small':
|
187 |
return Mage::getStoreConfig('feedbackcompany/block/small');
|
188 |
-
break;
|
|
|
|
|
|
|
189 |
case 'medium':
|
190 |
return Mage::getStoreConfig('feedbackcompany/block/medium');
|
191 |
break;
|
@@ -194,17 +207,16 @@ class Magmodules_Feedbackcompany_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
194 |
return false;
|
195 |
}
|
196 |
|
197 |
-
function getHtmlStars($rating, $type = 'small')
|
|
|
198 |
$perc = $rating;
|
199 |
$show = '';
|
200 |
-
|
201 |
if($type == 'small') {
|
202 |
$show = Mage::getStoreConfig('feedbackcompany/block/small_stars');
|
203 |
}
|
204 |
if($type == 'medium') {
|
205 |
$show = Mage::getStoreConfig('feedbackcompany/block/medium_stars');
|
206 |
}
|
207 |
-
|
208 |
if($show) {
|
209 |
$html = '<div class="rating-box">';
|
210 |
$html .= ' <div class="rating" style="width:' . $perc . '%"></div>';
|
@@ -214,4 +226,24 @@ class Magmodules_Feedbackcompany_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
214 |
return false;
|
215 |
}
|
216 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Helper_Data extends Mage_Core_Helper_Abstract {
|
23 |
|
24 |
+
public function getTotalScore()
|
25 |
+
{
|
26 |
$qty = 0; $rating = 0;
|
27 |
$shop_id = Mage::getStoreConfig('feedbackcompany/general/api_id');
|
28 |
$review_stats = Mage::getModel('feedbackcompany/stats')->load($shop_id, 'shop_id');
|
35 |
}
|
36 |
}
|
37 |
|
38 |
+
public function getStyle($type = 'sidebar')
|
39 |
+
{
|
40 |
if($type == 'left') {
|
41 |
return Mage::getStoreConfig('feedbackcompany/sidebar/left_style');
|
42 |
}
|
48 |
}
|
49 |
}
|
50 |
|
51 |
+
public function getSnippetsEnabled($type = 'sidebar')
|
52 |
+
{
|
53 |
+
if(Mage::app()->getRequest()->getRouteName() == 'feedbackcompany') {
|
54 |
+
return false;
|
55 |
+
} else {
|
56 |
+
switch ($type) {
|
57 |
+
case 'left':
|
58 |
+
return Mage::getStoreConfig('feedbackcompany/sidebar/left_snippets');
|
59 |
+
break;
|
60 |
+
case 'right':
|
61 |
+
return Mage::getStoreConfig('feedbackcompany/sidebar/right_snippets');
|
62 |
+
break;
|
63 |
+
case 'sidebar':
|
64 |
+
return Mage::getStoreConfig('feedbackcompany/block/sidebar_snippets');
|
65 |
+
break;
|
66 |
+
case 'small':
|
67 |
+
return Mage::getStoreConfig('feedbackcompany/block/small_snippets');
|
68 |
+
break;
|
69 |
+
case 'header':
|
70 |
+
return Mage::getStoreConfig('feedbackcompany/block/header_snippets');
|
71 |
+
break;
|
72 |
+
case 'medium':
|
73 |
+
return Mage::getStoreConfig('feedbackcompany/block/medium_snippets');
|
74 |
+
break;
|
75 |
+
}
|
76 |
}
|
77 |
}
|
78 |
|
79 |
+
function getReviewsUrl($type)
|
80 |
+
{
|
81 |
+
$link = '';
|
|
|
82 |
switch ($type) {
|
83 |
case 'left':
|
84 |
$link = Mage::getStoreConfig('feedbackcompany/sidebar/left_link');
|
91 |
break;
|
92 |
case 'small':
|
93 |
$link = Mage::getStoreConfig('feedbackcompany/block/small_link');
|
94 |
+
break;
|
95 |
+
case 'header':
|
96 |
+
$link = Mage::getStoreConfig('feedbackcompany/block/header_link');
|
97 |
+
break;
|
98 |
case 'medium':
|
99 |
$link = Mage::getStoreConfig('feedbackcompany/block/medium_link');
|
100 |
break;
|
108 |
return false;
|
109 |
}
|
110 |
|
111 |
+
function getSidebarCollection($sidebar)
|
112 |
+
{
|
113 |
$enabled = ''; $qty = '5';
|
|
|
114 |
if(Mage::getStoreConfig('feedbackcompany/general/enabled')) {
|
115 |
if($sidebar == 'left') {
|
116 |
$qty = Mage::getStoreConfig('feedbackcompany/sidebar/left_qty');
|
125 |
$enabled = Mage::getStoreConfig('feedbackcompany/block/sidebar');
|
126 |
}
|
127 |
}
|
|
|
128 |
if($enabled) {
|
129 |
$shop_id = Mage::getStoreConfig('feedbackcompany/general/api_id');
|
130 |
$reviews = Mage::getModel("feedbackcompany/reviews")->getCollection();
|
136 |
$reviews->load();
|
137 |
return $reviews;
|
138 |
}
|
|
|
139 |
return false;
|
140 |
}
|
141 |
|
142 |
+
function getLatestReview()
|
143 |
+
{
|
144 |
if(Mage::getStoreConfig('feedbackcompany/block/medium_review')) {
|
145 |
$shop_id = Mage::getStoreConfig('feedbackcompany/general/api_id');
|
146 |
$review = Mage::getModel("feedbackcompany/reviews")->getCollection();
|
153 |
return false;
|
154 |
}
|
155 |
|
156 |
+
function formatContent($sidebarreview, $sidebar = 'left')
|
157 |
+
{
|
158 |
$content = $sidebarreview->getReviewText();
|
159 |
$char_limit = '';
|
|
|
160 |
if($sidebar == 'left') {
|
161 |
$char_limit = Mage::getStoreConfig('feedbackcompany/sidebar/left_lenght');
|
162 |
}
|
180 |
return $content;
|
181 |
}
|
182 |
|
183 |
+
public function getBlockEnabled($type)
|
184 |
+
{
|
185 |
if(Mage::getStoreConfig('feedbackcompany/general/enabled')) {
|
186 |
switch ($type) {
|
187 |
case 'left':
|
195 |
break;
|
196 |
case 'small':
|
197 |
return Mage::getStoreConfig('feedbackcompany/block/small');
|
198 |
+
break;
|
199 |
+
case 'header':
|
200 |
+
return Mage::getStoreConfig('feedbackcompany/block/header');
|
201 |
+
break;
|
202 |
case 'medium':
|
203 |
return Mage::getStoreConfig('feedbackcompany/block/medium');
|
204 |
break;
|
207 |
return false;
|
208 |
}
|
209 |
|
210 |
+
public function getHtmlStars($rating, $type = 'small')
|
211 |
+
{
|
212 |
$perc = $rating;
|
213 |
$show = '';
|
|
|
214 |
if($type == 'small') {
|
215 |
$show = Mage::getStoreConfig('feedbackcompany/block/small_stars');
|
216 |
}
|
217 |
if($type == 'medium') {
|
218 |
$show = Mage::getStoreConfig('feedbackcompany/block/medium_stars');
|
219 |
}
|
|
|
220 |
if($show) {
|
221 |
$html = '<div class="rating-box">';
|
222 |
$html .= ' <div class="rating" style="width:' . $perc . '%"></div>';
|
226 |
return false;
|
227 |
}
|
228 |
|
229 |
+
public function formatScoresReview($review)
|
230 |
+
{
|
231 |
+
$scoreValues = Array();
|
232 |
+
$scoreValuesPossible = Array(
|
233 |
+
'aftersales' => 'Aftersales',
|
234 |
+
'checkout' => 'Checkout',
|
235 |
+
'information' => 'Information',
|
236 |
+
'friendly' => 'Friendlyness',
|
237 |
+
'leadtime' => 'Leadtime',
|
238 |
+
'responsetime' => 'Responsetime',
|
239 |
+
'order' => 'Orderprocess');
|
240 |
+
|
241 |
+
foreach($scoreValuesPossible as $key => $value){
|
242 |
+
if($review->getData("score_" . $key) > 0 ){
|
243 |
+
$scoreValues[$value] = $review->getData("score_" . $key) * 20;
|
244 |
+
}
|
245 |
+
}
|
246 |
+
return $scoreValues;
|
247 |
+
}
|
248 |
+
|
249 |
}
|
app/code/community/Magmodules/Feedbackcompany/Model/Api.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
@@ -24,8 +24,8 @@ class Magmodules_Feedbackcompany_Model_Api extends Mage_Core_Model_Abstract {
|
|
24 |
public function processFeed($storeid = 0, $type)
|
25 |
{
|
26 |
if($feed = $this->getFeed($storeid, $type)) {
|
27 |
-
$results
|
28 |
-
$results['stats']
|
29 |
return $results;
|
30 |
}
|
31 |
return false;
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
24 |
public function processFeed($storeid = 0, $type)
|
25 |
{
|
26 |
if($feed = $this->getFeed($storeid, $type)) {
|
27 |
+
$results = Mage::getModel('feedbackcompany/reviews')->processFeed($feed, $storeid, $type);
|
28 |
+
$results['stats'] = Mage::getModel('feedbackcompany/stats')->processFeed($feed, $storeid);
|
29 |
return $results;
|
30 |
}
|
31 |
return false;
|
app/code/community/Magmodules/Feedbackcompany/Model/Log.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
@@ -66,7 +66,6 @@ class Magmodules_Feedbackcompany_Model_Log extends Mage_Core_Model_Abstract {
|
|
66 |
->setApiUrl($api_url)
|
67 |
->save();
|
68 |
}
|
69 |
-
return;
|
70 |
}
|
71 |
|
72 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
66 |
->setApiUrl($api_url)
|
67 |
->save();
|
68 |
}
|
|
|
69 |
}
|
70 |
|
71 |
}
|
app/code/community/Magmodules/Feedbackcompany/Model/Mysql4/Log.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Log extends Mage_Core_Model_Mysql4_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
$this->_init('feedbackcompany/log', 'id');
|
26 |
}
|
27 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Log extends Mage_Core_Model_Mysql4_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
$this->_init('feedbackcompany/log', 'id');
|
27 |
}
|
28 |
|
app/code/community/Magmodules/Feedbackcompany/Model/Mysql4/Log/Collection.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Log_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
parent::_construct();
|
26 |
$this->_init('feedbackcompany/log');
|
27 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Log_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
parent::_construct();
|
27 |
$this->_init('feedbackcompany/log');
|
28 |
}
|
app/code/community/Magmodules/Feedbackcompany/Model/Mysql4/Reviews.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Reviews extends Mage_Core_Model_Mysql4_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
$this->_init('feedbackcompany/reviews', 'review_id');
|
26 |
}
|
27 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Reviews extends Mage_Core_Model_Mysql4_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
$this->_init('feedbackcompany/reviews', 'review_id');
|
27 |
}
|
28 |
|
app/code/community/Magmodules/Feedbackcompany/Model/Mysql4/Reviews/Collection.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Reviews_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
parent::_construct();
|
26 |
$this->_init('feedbackcompany/reviews');
|
27 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Reviews_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
parent::_construct();
|
27 |
$this->_init('feedbackcompany/reviews');
|
28 |
}
|
app/code/community/Magmodules/Feedbackcompany/Model/Mysql4/Stats.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Stats extends Mage_Core_Model_Mysql4_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
$this->_init('feedbackcompany/stats', 'id');
|
26 |
}
|
27 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Stats extends Mage_Core_Model_Mysql4_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
$this->_init('feedbackcompany/stats', 'id');
|
27 |
}
|
28 |
|
app/code/community/Magmodules/Feedbackcompany/Model/Mysql4/Stats/Collection.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Stats_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
parent::_construct();
|
26 |
$this->_init('feedbackcompany/stats');
|
27 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Stats_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
parent::_construct();
|
27 |
$this->_init('feedbackcompany/stats');
|
28 |
}
|
app/code/community/Magmodules/Feedbackcompany/Model/Observer.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Observer {
|
23 |
|
24 |
-
public function processStats()
|
|
|
25 |
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
26 |
foreach($storeids as $storeid) {
|
27 |
$enabled = Mage::getStoreConfig('feedbackcompany/general/enabled', $storeid);
|
@@ -38,7 +39,8 @@ class Magmodules_Feedbackcompany_Model_Observer {
|
|
38 |
}
|
39 |
}
|
40 |
|
41 |
-
public function processReviews()
|
|
|
42 |
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
43 |
$qty = 0;
|
44 |
foreach($storeids as $storeid) {
|
@@ -59,7 +61,8 @@ class Magmodules_Feedbackcompany_Model_Observer {
|
|
59 |
}
|
60 |
}
|
61 |
|
62 |
-
public function processProductreviews()
|
|
|
63 |
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
64 |
$qty = 0;
|
65 |
foreach($storeids as $storeid) {
|
@@ -80,7 +83,8 @@ class Magmodules_Feedbackcompany_Model_Observer {
|
|
80 |
}
|
81 |
}
|
82 |
|
83 |
-
public function processHistory()
|
|
|
84 |
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
85 |
$qty = 0;
|
86 |
foreach($storeids as $storeid) {
|
@@ -101,7 +105,8 @@ class Magmodules_Feedbackcompany_Model_Observer {
|
|
101 |
}
|
102 |
}
|
103 |
|
104 |
-
public function cleanLog()
|
|
|
105 |
$enabled = Mage::getStoreConfig('feedbackcompany/log/clean', 0);
|
106 |
$days = Mage::getStoreConfig('feedbackcompany/log/clean_days', 0);
|
107 |
if(($enabled) && ($days > 0)) {
|
@@ -114,7 +119,8 @@ class Magmodules_Feedbackcompany_Model_Observer {
|
|
114 |
}
|
115 |
}
|
116 |
|
117 |
-
public function processFeedbackInvitationcallAfterShipment($observer)
|
|
|
118 |
$shipment = $observer->getEvent()->getShipment();
|
119 |
$order = $shipment->getOrder();
|
120 |
if((Mage::getStoreConfig('feedbackcompany/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('feedbackcompany/invitation/connector', $order->getStoreId()))):
|
@@ -133,7 +139,8 @@ class Magmodules_Feedbackcompany_Model_Observer {
|
|
133 |
endif;
|
134 |
}
|
135 |
|
136 |
-
public function processFeedbackInvitationcall($observer)
|
|
|
137 |
$order = $observer->getEvent()->getOrder();
|
138 |
if((Mage::getStoreConfig('feedbackcompany/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('feedbackcompany/invitation/connector', $order->getStoreId()))):
|
139 |
if($order->getStatus() == Mage::getStoreConfig('feedbackcompany/invitation/status', $order->getStoreId())):
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Observer {
|
23 |
|
24 |
+
public function processStats()
|
25 |
+
{
|
26 |
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
27 |
foreach($storeids as $storeid) {
|
28 |
$enabled = Mage::getStoreConfig('feedbackcompany/general/enabled', $storeid);
|
39 |
}
|
40 |
}
|
41 |
|
42 |
+
public function processReviews()
|
43 |
+
{
|
44 |
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
45 |
$qty = 0;
|
46 |
foreach($storeids as $storeid) {
|
61 |
}
|
62 |
}
|
63 |
|
64 |
+
public function processProductreviews()
|
65 |
+
{
|
66 |
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
67 |
$qty = 0;
|
68 |
foreach($storeids as $storeid) {
|
83 |
}
|
84 |
}
|
85 |
|
86 |
+
public function processHistory()
|
87 |
+
{
|
88 |
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
89 |
$qty = 0;
|
90 |
foreach($storeids as $storeid) {
|
105 |
}
|
106 |
}
|
107 |
|
108 |
+
public function cleanLog()
|
109 |
+
{
|
110 |
$enabled = Mage::getStoreConfig('feedbackcompany/log/clean', 0);
|
111 |
$days = Mage::getStoreConfig('feedbackcompany/log/clean_days', 0);
|
112 |
if(($enabled) && ($days > 0)) {
|
119 |
}
|
120 |
}
|
121 |
|
122 |
+
public function processFeedbackInvitationcallAfterShipment($observer)
|
123 |
+
{
|
124 |
$shipment = $observer->getEvent()->getShipment();
|
125 |
$order = $shipment->getOrder();
|
126 |
if((Mage::getStoreConfig('feedbackcompany/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('feedbackcompany/invitation/connector', $order->getStoreId()))):
|
139 |
endif;
|
140 |
}
|
141 |
|
142 |
+
public function processFeedbackInvitationcall($observer)
|
143 |
+
{
|
144 |
$order = $observer->getEvent()->getOrder();
|
145 |
if((Mage::getStoreConfig('feedbackcompany/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('feedbackcompany/invitation/connector', $order->getStoreId()))):
|
146 |
if($order->getStatus() == Mage::getStoreConfig('feedbackcompany/invitation/status', $order->getStoreId())):
|
app/code/community/Magmodules/Feedbackcompany/Model/Productreviews.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
@@ -34,34 +34,36 @@ class Magmodules_Feedbackcompany_Model_Productreviews extends Mage_Core_Model_Ab
|
|
34 |
if($_loadrev->getReviewId() < 1) {
|
35 |
$_product = Mage::getModel('catalog/product')->loadByAttribute('sku', $review->product_sku);
|
36 |
if($_product->getId()) {
|
37 |
-
$content = $review->review;
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
|
|
|
|
65 |
}
|
66 |
}
|
67 |
}
|
@@ -79,7 +81,11 @@ class Magmodules_Feedbackcompany_Model_Productreviews extends Mage_Core_Model_Ab
|
|
79 |
$string = str_replace(" ?","?",$string);
|
80 |
$string = str_replace(" !","!",$string);
|
81 |
preg_match('/^.*[^\s](\.|\?|\!)/U', $string, $match);
|
82 |
-
|
|
|
|
|
|
|
|
|
83 |
}
|
84 |
|
85 |
public function getAllStoreViews($storeid)
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
34 |
if($_loadrev->getReviewId() < 1) {
|
35 |
$_product = Mage::getModel('catalog/product')->loadByAttribute('sku', $review->product_sku);
|
36 |
if($_product->getId()) {
|
37 |
+
$content = $review->review;
|
38 |
+
if(strlen($content) > 0) {
|
39 |
+
try {
|
40 |
+
$title = $this->getFirstSentence($content);
|
41 |
+
$created_at = date_create_from_format('F, j Y H:i:s', $review->date_created);
|
42 |
+
$created_at = date_format($created_at, 'Y-m-d H:i:s');
|
43 |
+
$_review = Mage::getModel('review/review');
|
44 |
+
$_review->setEntityPkValue($_product->getId());
|
45 |
+
$_review->setCreatedAt($created_at);
|
46 |
+
$_review->setTitle($title);
|
47 |
+
$_review->setFeedbackcompanyId($feedback_id);
|
48 |
+
$_review->setDetail($content);
|
49 |
+
$_review->setEntityId(1);
|
50 |
+
$_review->setStoreId(0);
|
51 |
+
$_review->setStatusId($status_id);
|
52 |
+
$_review->setCustomerId(null);
|
53 |
+
$_review->setNickname($review->client->name);
|
54 |
+
$_review->setStores($this->getAllStoreViews($storeid));
|
55 |
+
$_review->save();
|
56 |
+
$_rating = Mage::getModel('rating/rating');
|
57 |
+
$_rating->setRatingId($rating_id);
|
58 |
+
$_rating->setReviewId($_review->getId());
|
59 |
+
$_rating->setCustomerId(null);
|
60 |
+
$_rating->addOptionVote($review->rating, $_product->getId());
|
61 |
+
$_review->aggregate();
|
62 |
+
$new++;
|
63 |
+
} catch (Exception $e) {
|
64 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
65 |
+
}
|
66 |
+
}
|
67 |
}
|
68 |
}
|
69 |
}
|
81 |
$string = str_replace(" ?","?",$string);
|
82 |
$string = str_replace(" !","!",$string);
|
83 |
preg_match('/^.*[^\s](\.|\?|\!)/U', $string, $match);
|
84 |
+
if(strlen($match[0]) > 0) {
|
85 |
+
return $match[0];
|
86 |
+
} else {
|
87 |
+
return Mage::helper('core/string')->truncate($string, 50) . '...';
|
88 |
+
}
|
89 |
}
|
90 |
|
91 |
public function getAllStoreViews($storeid)
|
app/code/community/Magmodules/Feedbackcompany/Model/Reviews.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
@@ -23,22 +23,23 @@ 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');
|
29 |
}
|
30 |
|
31 |
-
public function loadbyFeedbackId($feedback_id)
|
|
|
32 |
$this->_getResource()->load($this, $feedback_id, 'feedback_id');
|
33 |
return $this;
|
34 |
}
|
35 |
|
36 |
-
public function processFeed($feed, $storeid = 0, $type)
|
37 |
-
|
38 |
$updates = 0; $new = 0; $history = 0;
|
39 |
$api_id = Mage::getStoreConfig('feedbackcompany/general/api_id', $storeid);
|
40 |
$company = Mage::getStoreConfig('feedbackcompany/general/company', $storeid);
|
41 |
-
|
42 |
foreach($feed->reviewDetails->reviewDetail as $review) {
|
43 |
$feedback_id = $review->id;
|
44 |
$score = ($review->score / 2);
|
@@ -134,80 +135,12 @@ class Magmodules_Feedbackcompany_Model_Reviews extends Mage_Core_Model_Abstract
|
|
134 |
$result['company'] = $company;
|
135 |
return $result;
|
136 |
}
|
137 |
-
|
138 |
-
|
139 |
-
public function processProductReviews($client_id, $client_secret, $client_token, $stores, $interval = 'last_month')
|
140 |
-
{
|
141 |
-
|
142 |
-
$request = curl_init();
|
143 |
-
curl_setopt($request, CURLOPT_SSL_VERIFYPEER, false);
|
144 |
-
curl_setopt($request, CURLOPT_URL, 'https://beoordelingen.feedbackcompany.nl/api/v1/review/getrecent/?interval=' . $interval . '&type=product');
|
145 |
-
curl_setopt($request, CURLOPT_HTTPHEADER, array('Authorization: Bearer ' . $client_token));
|
146 |
-
curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
|
147 |
-
$api_result = json_decode($content = curl_exec($request));
|
148 |
-
|
149 |
-
if($api_result->message == 'OK') {
|
150 |
-
$content = $api_result->data[0];
|
151 |
-
$shop_id = $content->shop->id;
|
152 |
-
$status_id = Mage::getStoreConfig('feedbackcompany/productreviews/review_import_status');
|
153 |
-
$rating_id = Mage::getStoreConfig('feedbackcompany/productreviews/review_import_rating');
|
154 |
-
foreach($content->product_reviews as $review) {
|
155 |
-
$feedback_id = $review->id;
|
156 |
-
$_loadrev = Mage::getModel('review/review')->load($feedback_id, 'feedbackcompany_id');
|
157 |
-
if($_loadrev->getReviewId() < 1) {
|
158 |
-
$_product = Mage::getModel('catalog/product')->loadByAttribute('sku', $review->product_sku);
|
159 |
-
if($_product->getId()) {
|
160 |
-
$content = $review->review;
|
161 |
-
$title = $this->getFirstSentence($content);
|
162 |
-
$created_at = date_create_from_format('F, j Y H:i:s', $review->date_created);
|
163 |
-
$created_at = date_format($date, 'Y-m-d H:i:s');
|
164 |
-
|
165 |
-
$_review = Mage::getModel('review/review');
|
166 |
-
$_review->setEntityPkValue($_product->getId());
|
167 |
-
$_review->setCreatedAt($created_at);
|
168 |
-
$_review->setTitle($title);
|
169 |
-
$_review->setFeedbackcompanyId($feedback_id);
|
170 |
-
$_review->setDetail($content);
|
171 |
-
$_review->setEntityId(1);
|
172 |
-
$_review->setStoreId(0);
|
173 |
-
$_review->setStatusId($status_id);
|
174 |
-
$_review->setCustomerId(null);
|
175 |
-
$_review->setNickname($review->client->name);
|
176 |
-
$_review->setStores(array($stores));
|
177 |
-
$_review->save();
|
178 |
-
$_rating = Mage::getModel('rating/rating')
|
179 |
-
->setRatingId($rating_id)
|
180 |
-
->setReviewId($_review->getId())
|
181 |
-
->setCustomerId(null)
|
182 |
-
->addOptionVote($review->rating, $_product->getId());
|
183 |
-
$_review->aggregate();
|
184 |
-
$new++;
|
185 |
-
}
|
186 |
-
}
|
187 |
-
}
|
188 |
-
}
|
189 |
-
|
190 |
-
$result = array();
|
191 |
-
$result['review_updates'] = $updates;
|
192 |
-
$result['review_new'] = $new;
|
193 |
-
$result['api_result'] = $api_result->message;
|
194 |
-
return $result;
|
195 |
-
}
|
196 |
-
|
197 |
|
198 |
-
public function flushCache()
|
|
|
199 |
if(Mage::getStoreConfig('feedbackcompany/reviews/flushcache')) {
|
200 |
Mage::app()->cleanCache(array(Mage_Cms_Model_Block::CACHE_TAG, Magmodules_Feedbackcompany_Model_Reviews::CACHE_TAG));
|
201 |
}
|
202 |
}
|
203 |
|
204 |
-
public function getFirstSentence($string)
|
205 |
-
{
|
206 |
-
$string = str_replace(" .",".",$string);
|
207 |
-
$string = str_replace(" ?","?",$string);
|
208 |
-
$string = str_replace(" !","!",$string);
|
209 |
-
preg_match('/^.*[^\s](\.|\?|\!)/U', $string, $match);
|
210 |
-
return $match[0];
|
211 |
-
}
|
212 |
-
|
213 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
23 |
|
24 |
const CACHE_TAG = 'feedback_block';
|
25 |
|
26 |
+
public function _construct()
|
27 |
+
{
|
28 |
parent::_construct();
|
29 |
$this->_init('feedbackcompany/reviews');
|
30 |
}
|
31 |
|
32 |
+
public function loadbyFeedbackId($feedback_id)
|
33 |
+
{
|
34 |
$this->_getResource()->load($this, $feedback_id, 'feedback_id');
|
35 |
return $this;
|
36 |
}
|
37 |
|
38 |
+
public function processFeed($feed, $storeid = 0, $type)
|
39 |
+
{
|
40 |
$updates = 0; $new = 0; $history = 0;
|
41 |
$api_id = Mage::getStoreConfig('feedbackcompany/general/api_id', $storeid);
|
42 |
$company = Mage::getStoreConfig('feedbackcompany/general/company', $storeid);
|
|
|
43 |
foreach($feed->reviewDetails->reviewDetail as $review) {
|
44 |
$feedback_id = $review->id;
|
45 |
$score = ($review->score / 2);
|
135 |
$result['company'] = $company;
|
136 |
return $result;
|
137 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
|
139 |
+
public function flushCache()
|
140 |
+
{
|
141 |
if(Mage::getStoreConfig('feedbackcompany/reviews/flushcache')) {
|
142 |
Mage::app()->cleanCache(array(Mage_Cms_Model_Block::CACHE_TAG, Magmodules_Feedbackcompany_Model_Reviews::CACHE_TAG));
|
143 |
}
|
144 |
}
|
145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
}
|
app/code/community/Magmodules/Feedbackcompany/Model/Stats.php
CHANGED
@@ -15,18 +15,20 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Stats extends Mage_Core_Model_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
parent::_construct();
|
26 |
$this->_init('feedbackcompany/stats');
|
27 |
}
|
28 |
|
29 |
-
public function processFeed($feed, $storeid = 0)
|
|
|
30 |
$shop_id = Mage::getStoreConfig('feedbackcompany/general/api_id', $storeid);
|
31 |
$company = Mage::getStoreConfig('feedbackcompany/general/company', $storeid);
|
32 |
|
@@ -44,7 +46,7 @@ class Magmodules_Feedbackcompany_Model_Stats extends Mage_Core_Model_Abstract {
|
|
44 |
if($feed->noReviews > 0) {
|
45 |
$score = floatval($feed->score);
|
46 |
$score = ($score * 10);
|
47 |
-
$scoremax = $feed->scoremax;
|
48 |
$votes = $feed->noReviews;
|
49 |
|
50 |
// Check for update or save
|
@@ -69,7 +71,8 @@ class Magmodules_Feedbackcompany_Model_Stats extends Mage_Core_Model_Abstract {
|
|
69 |
}
|
70 |
}
|
71 |
|
72 |
-
public function processOverall()
|
|
|
73 |
$stats = Mage::getModel('feedbackcompany/stats')->getCollection();
|
74 |
$stats->addFieldToFilter('shop_id', array('neq' => '0'));
|
75 |
|
@@ -107,7 +110,8 @@ class Magmodules_Feedbackcompany_Model_Stats extends Mage_Core_Model_Abstract {
|
|
107 |
->save();
|
108 |
}
|
109 |
|
110 |
-
public function loadbyShopId($shop_id)
|
|
|
111 |
$this->_getResource()->load($this, $shop_id, 'shop_id');
|
112 |
return $this;
|
113 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_Stats extends Mage_Core_Model_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
parent::_construct();
|
27 |
$this->_init('feedbackcompany/stats');
|
28 |
}
|
29 |
|
30 |
+
public function processFeed($feed, $storeid = 0)
|
31 |
+
{
|
32 |
$shop_id = Mage::getStoreConfig('feedbackcompany/general/api_id', $storeid);
|
33 |
$company = Mage::getStoreConfig('feedbackcompany/general/company', $storeid);
|
34 |
|
46 |
if($feed->noReviews > 0) {
|
47 |
$score = floatval($feed->score);
|
48 |
$score = ($score * 10);
|
49 |
+
$scoremax = ($feed->scoremax * 10);
|
50 |
$votes = $feed->noReviews;
|
51 |
|
52 |
// Check for update or save
|
71 |
}
|
72 |
}
|
73 |
|
74 |
+
public function processOverall()
|
75 |
+
{
|
76 |
$stats = Mage::getModel('feedbackcompany/stats')->getCollection();
|
77 |
$stats->addFieldToFilter('shop_id', array('neq' => '0'));
|
78 |
|
110 |
->save();
|
111 |
}
|
112 |
|
113 |
+
public function loadbyShopId($shop_id)
|
114 |
+
{
|
115 |
$this->_getResource()->load($this, $shop_id, 'shop_id');
|
116 |
return $this;
|
117 |
}
|
app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Attribute.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Attribute {
|
23 |
|
24 |
-
public function toOptionArray()
|
|
|
25 |
$attributes = Mage::getResourceModel('catalog/product_attribute_collection')
|
26 |
->addVisibleFilter()
|
27 |
->addFieldToFilter('frontend_input', array('boolean'));
|
@@ -40,4 +41,5 @@ class Magmodules_Feedbackcompany_Model_System_Config_Source_Attribute {
|
|
40 |
|
41 |
return $optionArray;
|
42 |
}
|
|
|
43 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Attribute {
|
23 |
|
24 |
+
public function toOptionArray()
|
25 |
+
{
|
26 |
$attributes = Mage::getResourceModel('catalog/product_attribute_collection')
|
27 |
->addVisibleFilter()
|
28 |
->addFieldToFilter('frontend_input', array('boolean'));
|
41 |
|
42 |
return $optionArray;
|
43 |
}
|
44 |
+
|
45 |
}
|
app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Category.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Category {
|
23 |
|
24 |
-
public function toOptionArray($addEmpty = true)
|
|
|
25 |
$options = array();
|
26 |
|
27 |
$collection = Mage::getResourceModel('catalog/category_collection');
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Category {
|
23 |
|
24 |
+
public function toOptionArray($addEmpty = true)
|
25 |
+
{
|
26 |
$options = array();
|
27 |
|
28 |
$collection = Mage::getResourceModel('catalog/category_collection');
|
app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Cronfrequency.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Cronfrequency {
|
23 |
|
24 |
-
public function toOptionArray()
|
|
|
25 |
return array(
|
26 |
'*/15 * * * *' => Mage::helper('feedbackcompany')->__('Every 15 minutes'),
|
27 |
'0 * * * *' => Mage::helper('feedbackcompany')->__('Every Hour'),
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Cronfrequency {
|
23 |
|
24 |
+
public function toOptionArray()
|
25 |
+
{
|
26 |
return array(
|
27 |
'*/15 * * * *' => Mage::helper('feedbackcompany')->__('Every 15 minutes'),
|
28 |
'0 * * * *' => Mage::helper('feedbackcompany')->__('Every Hour'),
|
app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Orderstatus.php
CHANGED
@@ -15,23 +15,21 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Orderstatus {
|
23 |
|
24 |
-
public function toOptionArray()
|
|
|
25 |
$storeModel = Mage::getSingleton('adminhtml/system_store');
|
26 |
$statuses = Mage::getSingleton('sales/order_config')->getStatuses();
|
27 |
$options = array();
|
28 |
-
|
29 |
$this->_options = array(array('value' => 0, 'label' => Mage::helper('feedbackcompany') -> __('-- none')));
|
30 |
-
|
31 |
foreach($statuses as $k=>$v) {
|
32 |
$options[] = array('label' => $v, 'value' => $k);
|
33 |
}
|
34 |
-
|
35 |
$this->_options = array_merge($this->_options, $options);
|
36 |
return $this->_options;
|
37 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Orderstatus {
|
23 |
|
24 |
+
public function toOptionArray()
|
25 |
+
{
|
26 |
$storeModel = Mage::getSingleton('adminhtml/system_store');
|
27 |
$statuses = Mage::getSingleton('sales/order_config')->getStatuses();
|
28 |
$options = array();
|
|
|
29 |
$this->_options = array(array('value' => 0, 'label' => Mage::helper('feedbackcompany') -> __('-- none')));
|
|
|
30 |
foreach($statuses as $k=>$v) {
|
31 |
$options[] = array('label' => $v, 'value' => $k);
|
32 |
}
|
|
|
33 |
$this->_options = array_merge($this->_options, $options);
|
34 |
return $this->_options;
|
35 |
}
|
app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Position.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Position {
|
23 |
|
24 |
-
public function toOptionArray()
|
|
|
25 |
$position = array();
|
26 |
$position[] = array('value'=>'left', 'label' => Mage::helper('feedbackcompany')->__('Left'));
|
27 |
$position[] = array('value'=>'right', 'label' => Mage::helper('feedbackcompany')->__('Right'));
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Position {
|
23 |
|
24 |
+
public function toOptionArray()
|
25 |
+
{
|
26 |
$position = array();
|
27 |
$position[] = array('value'=>'left', 'label' => Mage::helper('feedbackcompany')->__('Left'));
|
28 |
$position[] = array('value'=>'right', 'label' => Mage::helper('feedbackcompany')->__('Right'));
|
app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Reviewlink.php
CHANGED
@@ -1,18 +1,22 @@
|
|
1 |
-
<?php
|
2 |
/**
|
3 |
-
* Magmodules.eu - http://www.magmodules.eu
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
*
|
8 |
-
*
|
9 |
-
*
|
10 |
-
*
|
11 |
-
*
|
12 |
-
*
|
13 |
-
* @
|
14 |
-
*
|
15 |
-
*
|
|
|
|
|
|
|
|
|
16 |
*/
|
17 |
|
18 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Reviewlink
|
1 |
+
<?php
|
2 |
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Reviewlink
|
app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Reviewrating.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Reviewrating {
|
23 |
|
24 |
-
public function toOptionArray()
|
|
|
25 |
$rating_options = array();
|
26 |
$ratings = Mage::getModel('rating/rating')->getResourceCollection()->addEntityFilter(Mage::registry('entityId'));
|
27 |
foreach($ratings as $rating) {
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Reviewrating {
|
23 |
|
24 |
+
public function toOptionArray()
|
25 |
+
{
|
26 |
$rating_options = array();
|
27 |
$ratings = Mage::getModel('rating/rating')->getResourceCollection()->addEntityFilter(Mage::registry('entityId'));
|
28 |
foreach($ratings as $rating) {
|
app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Reviewstatus.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Reviewstatus {
|
23 |
|
24 |
-
public function toOptionArray()
|
|
|
25 |
$status = array();
|
26 |
$status[] = array('value'=>'1', 'label' => Mage::helper('feedbackcompany')->__('Approved'));
|
27 |
$status[] = array('value'=>'2', 'label' => Mage::helper('feedbackcompany')->__('Pending'));
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Reviewstatus {
|
23 |
|
24 |
+
public function toOptionArray()
|
25 |
+
{
|
26 |
$status = array();
|
27 |
$status[] = array('value'=>'1', 'label' => Mage::helper('feedbackcompany')->__('Approved'));
|
28 |
$status[] = array('value'=>'2', 'label' => Mage::helper('feedbackcompany')->__('Pending'));
|
app/code/community/Magmodules/Feedbackcompany/Model/System/Config/Source/Sidebarlink.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Sidebarlink {
|
23 |
|
24 |
-
public function toOptionArray()
|
|
|
25 |
return array(
|
26 |
'' => Mage::helper('feedbackcompany')->__('None'),
|
27 |
'external' => Mage::helper('feedbackcompany')->__('External (Feedbackcompany.nl)'),
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Sidebarlink {
|
23 |
|
24 |
+
public function toOptionArray()
|
25 |
+
{
|
26 |
return array(
|
27 |
'' => Mage::helper('feedbackcompany')->__('None'),
|
28 |
'external' => Mage::helper('feedbackcompany')->__('External (Feedbackcompany.nl)'),
|
app/code/community/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbacklogController.php
CHANGED
@@ -15,22 +15,25 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Adminhtml_FeedbacklogController extends Mage_Adminhtml_Controller_Action {
|
23 |
|
24 |
-
protected function _initAction()
|
|
|
25 |
$this->loadLayout()->_setActiveMenu('feedbackcompany/feedbackreviews')->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
26 |
return $this;
|
27 |
}
|
28 |
|
29 |
-
public function indexAction()
|
|
|
30 |
$this->_initAction()->renderLayout();
|
31 |
}
|
32 |
|
33 |
-
public function massDeleteAction()
|
|
|
34 |
$LogIds = $this->getRequest()->getParam('logids');
|
35 |
if(!is_array($LogIds)) {
|
36 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
@@ -47,7 +50,8 @@ class Magmodules_Feedbackcompany_Adminhtml_FeedbacklogController extends Mage_Ad
|
|
47 |
$this->_redirect('*/*/index');
|
48 |
}
|
49 |
|
50 |
-
public function cleanAction()
|
|
|
51 |
$i = 0;
|
52 |
$logmodel = Mage::getModel('feedbackcompany/log');
|
53 |
$logs = $logmodel->getCollection();
|
@@ -59,7 +63,8 @@ class Magmodules_Feedbackcompany_Adminhtml_FeedbacklogController extends Mage_Ad
|
|
59 |
$this->_redirect('*/*/index');
|
60 |
}
|
61 |
|
62 |
-
protected function _isAllowed()
|
|
|
63 |
return Mage::getSingleton('admin/session')->isAllowed('admin/feedbackcompany/feedbackcompany_log');
|
64 |
}
|
65 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_Adminhtml_FeedbacklogController extends Mage_Adminhtml_Controller_Action {
|
23 |
|
24 |
+
protected function _initAction()
|
25 |
+
{
|
26 |
$this->loadLayout()->_setActiveMenu('feedbackcompany/feedbackreviews')->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
27 |
return $this;
|
28 |
}
|
29 |
|
30 |
+
public function indexAction()
|
31 |
+
{
|
32 |
$this->_initAction()->renderLayout();
|
33 |
}
|
34 |
|
35 |
+
public function massDeleteAction()
|
36 |
+
{
|
37 |
$LogIds = $this->getRequest()->getParam('logids');
|
38 |
if(!is_array($LogIds)) {
|
39 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
50 |
$this->_redirect('*/*/index');
|
51 |
}
|
52 |
|
53 |
+
public function cleanAction()
|
54 |
+
{
|
55 |
$i = 0;
|
56 |
$logmodel = Mage::getModel('feedbackcompany/log');
|
57 |
$logs = $logmodel->getCollection();
|
63 |
$this->_redirect('*/*/index');
|
64 |
}
|
65 |
|
66 |
+
protected function _isAllowed()
|
67 |
+
{
|
68 |
return Mage::getSingleton('admin/session')->isAllowed('admin/feedbackcompany/feedbackcompany_log');
|
69 |
}
|
70 |
|
app/code/community/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbackreviewsController.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
@@ -101,7 +101,8 @@ class Magmodules_Feedbackcompany_Adminhtml_FeedbackreviewsController extends Mag
|
|
101 |
$this->_redirect('*/*/index');
|
102 |
}
|
103 |
|
104 |
-
public function massEnableSidebarAction()
|
|
|
105 |
$reviewIds = $this->getRequest()->getParam('reviewids');
|
106 |
if(!is_array($reviewIds)) {
|
107 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
101 |
$this->_redirect('*/*/index');
|
102 |
}
|
103 |
|
104 |
+
public function massEnableSidebarAction()
|
105 |
+
{
|
106 |
$reviewIds = $this->getRequest()->getParam('reviewids');
|
107 |
if(!is_array($reviewIds)) {
|
108 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
app/code/community/Magmodules/Feedbackcompany/controllers/IndexController.php
CHANGED
@@ -15,33 +15,28 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_IndexController extends Mage_Core_Controller_Front_Action {
|
23 |
|
24 |
-
public function indexAction()
|
25 |
-
|
26 |
$enabled = Mage::getStoreConfig('feedbackcompany/general/enabled');
|
27 |
$overview = Mage::getStoreConfig('feedbackcompany/overview/enabled');
|
28 |
-
|
29 |
if($enabled && $overview) {
|
30 |
$this->loadLayout();
|
31 |
$head = $this->getLayout()->getBlock('head');
|
32 |
-
|
33 |
if($title = Mage::getStoreConfig('feedbackcompany/overview/meta_title')):
|
34 |
$head->setTitle($title);
|
35 |
endif;
|
36 |
-
|
37 |
if($description = Mage::getStoreConfig('feedbackcompany/overview/meta_description')):
|
38 |
$head->setDescription($description);
|
39 |
endif;
|
40 |
-
|
41 |
if($keywords = Mage::getStoreConfig('feedbackcompany/overview/meta_keywords')):
|
42 |
$head->setKeywords($keywords);
|
43 |
endif;
|
44 |
-
|
45 |
$this->renderLayout();
|
46 |
} else {
|
47 |
$this->_redirect('/');
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Feedbackcompany_IndexController extends Mage_Core_Controller_Front_Action {
|
23 |
|
24 |
+
public function indexAction()
|
25 |
+
{
|
26 |
$enabled = Mage::getStoreConfig('feedbackcompany/general/enabled');
|
27 |
$overview = Mage::getStoreConfig('feedbackcompany/overview/enabled');
|
|
|
28 |
if($enabled && $overview) {
|
29 |
$this->loadLayout();
|
30 |
$head = $this->getLayout()->getBlock('head');
|
|
|
31 |
if($title = Mage::getStoreConfig('feedbackcompany/overview/meta_title')):
|
32 |
$head->setTitle($title);
|
33 |
endif;
|
|
|
34 |
if($description = Mage::getStoreConfig('feedbackcompany/overview/meta_description')):
|
35 |
$head->setDescription($description);
|
36 |
endif;
|
|
|
37 |
if($keywords = Mage::getStoreConfig('feedbackcompany/overview/meta_keywords')):
|
38 |
$head->setKeywords($keywords);
|
39 |
endif;
|
|
|
40 |
$this->renderLayout();
|
41 |
} else {
|
42 |
$this->_redirect('/');
|
app/code/community/Magmodules/Feedbackcompany/etc/adminhtml.xml
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
* @category Magmodules
|
18 |
* @package Magmodules_Feedbackcompany
|
19 |
* @author Magmodules <info@magmodules.eu)
|
20 |
-
* @copyright Copyright (c)
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
-->
|
17 |
* @category Magmodules
|
18 |
* @package Magmodules_Feedbackcompany
|
19 |
* @author Magmodules <info@magmodules.eu)
|
20 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
-->
|
app/code/community/Magmodules/Feedbackcompany/etc/config.xml
CHANGED
@@ -16,14 +16,14 @@
|
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Feedbackcompany
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
-->
|
23 |
<config>
|
24 |
<modules>
|
25 |
<Magmodules_Feedbackcompany>
|
26 |
-
<version>1.
|
27 |
</Magmodules_Feedbackcompany>
|
28 |
</modules>
|
29 |
<global>
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Feedbackcompany
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
-->
|
23 |
<config>
|
24 |
<modules>
|
25 |
<Magmodules_Feedbackcompany>
|
26 |
+
<version>1.4.0</version>
|
27 |
</Magmodules_Feedbackcompany>
|
28 |
</modules>
|
29 |
<global>
|
app/code/community/Magmodules/Feedbackcompany/etc/system.xml
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Feedbackcompany
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
-->
|
@@ -446,11 +446,11 @@
|
|
446 |
<show_in_website>1</show_in_website>
|
447 |
<show_in_store>1</show_in_store>
|
448 |
<depends><small>1</small></depends>
|
449 |
-
</small_snippets>
|
450 |
-
|
451 |
<label>Medium Block</label>
|
452 |
<frontend_model>feedbackcompany/adminhtml_widget_form_heading</frontend_model>
|
453 |
-
<sort_order>
|
454 |
<show_in_default>1</show_in_default>
|
455 |
<show_in_website>1</show_in_website>
|
456 |
<show_in_store>1</show_in_store>
|
@@ -458,7 +458,7 @@
|
|
458 |
<medium_note translate="label">
|
459 |
<label><![CDATA[You can add this custom block by pasting the following code in your CMS page or Static Block.<br/>{{block type="feedbackcompany/custom" name="feedbackcompany" blocktype="medium"}}]]></label>
|
460 |
<frontend_model>feedbackcompany/adminhtml_widget_form_note</frontend_model>
|
461 |
-
<sort_order>
|
462 |
<show_in_default>1</show_in_default>
|
463 |
<show_in_website>1</show_in_website>
|
464 |
<show_in_store>1</show_in_store>
|
@@ -467,7 +467,7 @@
|
|
467 |
<label>Enabled</label>
|
468 |
<frontend_type>select</frontend_type>
|
469 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
470 |
-
<sort_order>
|
471 |
<show_in_default>1</show_in_default>
|
472 |
<show_in_website>1</show_in_website>
|
473 |
<show_in_store>1</show_in_store>
|
@@ -476,7 +476,7 @@
|
|
476 |
<label>Show stars</label>
|
477 |
<frontend_type>select</frontend_type>
|
478 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
479 |
-
<sort_order>
|
480 |
<show_in_default>1</show_in_default>
|
481 |
<show_in_website>1</show_in_website>
|
482 |
<show_in_store>1</show_in_store>
|
@@ -486,7 +486,7 @@
|
|
486 |
<label>Link to</label>
|
487 |
<frontend_type>select</frontend_type>
|
488 |
<source_model>feedbackcompany/system_config_source_sidebarlink</source_model>
|
489 |
-
<sort_order>
|
490 |
<show_in_default>1</show_in_default>
|
491 |
<show_in_website>1</show_in_website>
|
492 |
<show_in_store>1</show_in_store>
|
@@ -496,7 +496,7 @@
|
|
496 |
<label>Add latest review</label>
|
497 |
<frontend_type>select</frontend_type>
|
498 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
499 |
-
<sort_order>
|
500 |
<show_in_default>1</show_in_default>
|
501 |
<show_in_website>1</show_in_website>
|
502 |
<show_in_store>1</show_in_store>
|
@@ -506,7 +506,7 @@
|
|
506 |
<label>Length of Reviews</label>
|
507 |
<validate>validate-number</validate>
|
508 |
<frontend_type>text</frontend_type>
|
509 |
-
<sort_order>
|
510 |
<show_in_default>1</show_in_default>
|
511 |
<show_in_website>1</show_in_website>
|
512 |
<show_in_store>1</show_in_store>
|
@@ -516,12 +516,57 @@
|
|
516 |
<label>Add Rich Snippets</label>
|
517 |
<frontend_type>select</frontend_type>
|
518 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
519 |
-
<sort_order>
|
520 |
<show_in_default>1</show_in_default>
|
521 |
<show_in_website>1</show_in_website>
|
522 |
<show_in_store>1</show_in_store>
|
523 |
<depends><medium>1</medium></depends>
|
524 |
-
</medium_snippets>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
525 |
</fields>
|
526 |
</block>
|
527 |
<overview translate="label">
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Feedbackcompany
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
-->
|
446 |
<show_in_website>1</show_in_website>
|
447 |
<show_in_store>1</show_in_store>
|
448 |
<depends><small>1</small></depends>
|
449 |
+
</small_snippets>
|
450 |
+
<medium_heading translate="label">
|
451 |
<label>Medium Block</label>
|
452 |
<frontend_model>feedbackcompany/adminhtml_widget_form_heading</frontend_model>
|
453 |
+
<sort_order>40</sort_order>
|
454 |
<show_in_default>1</show_in_default>
|
455 |
<show_in_website>1</show_in_website>
|
456 |
<show_in_store>1</show_in_store>
|
458 |
<medium_note translate="label">
|
459 |
<label><![CDATA[You can add this custom block by pasting the following code in your CMS page or Static Block.<br/>{{block type="feedbackcompany/custom" name="feedbackcompany" blocktype="medium"}}]]></label>
|
460 |
<frontend_model>feedbackcompany/adminhtml_widget_form_note</frontend_model>
|
461 |
+
<sort_order>41</sort_order>
|
462 |
<show_in_default>1</show_in_default>
|
463 |
<show_in_website>1</show_in_website>
|
464 |
<show_in_store>1</show_in_store>
|
467 |
<label>Enabled</label>
|
468 |
<frontend_type>select</frontend_type>
|
469 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
470 |
+
<sort_order>42</sort_order>
|
471 |
<show_in_default>1</show_in_default>
|
472 |
<show_in_website>1</show_in_website>
|
473 |
<show_in_store>1</show_in_store>
|
476 |
<label>Show stars</label>
|
477 |
<frontend_type>select</frontend_type>
|
478 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
479 |
+
<sort_order>43</sort_order>
|
480 |
<show_in_default>1</show_in_default>
|
481 |
<show_in_website>1</show_in_website>
|
482 |
<show_in_store>1</show_in_store>
|
486 |
<label>Link to</label>
|
487 |
<frontend_type>select</frontend_type>
|
488 |
<source_model>feedbackcompany/system_config_source_sidebarlink</source_model>
|
489 |
+
<sort_order>44</sort_order>
|
490 |
<show_in_default>1</show_in_default>
|
491 |
<show_in_website>1</show_in_website>
|
492 |
<show_in_store>1</show_in_store>
|
496 |
<label>Add latest review</label>
|
497 |
<frontend_type>select</frontend_type>
|
498 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
499 |
+
<sort_order>45</sort_order>
|
500 |
<show_in_default>1</show_in_default>
|
501 |
<show_in_website>1</show_in_website>
|
502 |
<show_in_store>1</show_in_store>
|
506 |
<label>Length of Reviews</label>
|
507 |
<validate>validate-number</validate>
|
508 |
<frontend_type>text</frontend_type>
|
509 |
+
<sort_order>46</sort_order>
|
510 |
<show_in_default>1</show_in_default>
|
511 |
<show_in_website>1</show_in_website>
|
512 |
<show_in_store>1</show_in_store>
|
516 |
<label>Add Rich Snippets</label>
|
517 |
<frontend_type>select</frontend_type>
|
518 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
519 |
+
<sort_order>47</sort_order>
|
520 |
<show_in_default>1</show_in_default>
|
521 |
<show_in_website>1</show_in_website>
|
522 |
<show_in_store>1</show_in_store>
|
523 |
<depends><medium>1</medium></depends>
|
524 |
+
</medium_snippets>
|
525 |
+
<header_heading translate="label">
|
526 |
+
<label>Header Block</label>
|
527 |
+
<frontend_model>feedbackcompany/adminhtml_widget_form_heading</frontend_model>
|
528 |
+
<sort_order>50</sort_order>
|
529 |
+
<show_in_default>1</show_in_default>
|
530 |
+
<show_in_website>1</show_in_website>
|
531 |
+
<show_in_store>1</show_in_store>
|
532 |
+
</header_heading>
|
533 |
+
<header_note translate="label">
|
534 |
+
<label><![CDATA[The documentation to implement The Feedback Company header widget can be found <a href="http://www.magmodules.eu/help/feedbackcompany/the-feedback-company-header-widget/">here</a>.]]></label>
|
535 |
+
<frontend_model>feedbackcompany/adminhtml_widget_form_note</frontend_model>
|
536 |
+
<sort_order>51</sort_order>
|
537 |
+
<show_in_default>1</show_in_default>
|
538 |
+
<show_in_website>1</show_in_website>
|
539 |
+
<show_in_store>1</show_in_store>
|
540 |
+
</header_note>
|
541 |
+
<header translate="label">
|
542 |
+
<label>Enabled</label>
|
543 |
+
<frontend_type>select</frontend_type>
|
544 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
545 |
+
<sort_order>52</sort_order>
|
546 |
+
<show_in_default>1</show_in_default>
|
547 |
+
<show_in_website>1</show_in_website>
|
548 |
+
<show_in_store>1</show_in_store>
|
549 |
+
</header>
|
550 |
+
<header_link translate="label">
|
551 |
+
<label>Link to</label>
|
552 |
+
<frontend_type>select</frontend_type>
|
553 |
+
<source_model>feedbackcompany/system_config_source_sidebarlink</source_model>
|
554 |
+
<sort_order>53</sort_order>
|
555 |
+
<show_in_default>1</show_in_default>
|
556 |
+
<show_in_website>1</show_in_website>
|
557 |
+
<show_in_store>1</show_in_store>
|
558 |
+
<depends><header>1</header></depends>
|
559 |
+
</header_link>
|
560 |
+
<header_snippets translate="label">
|
561 |
+
<label>Add Rich Snippets</label>
|
562 |
+
<frontend_type>select</frontend_type>
|
563 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
564 |
+
<sort_order>54</sort_order>
|
565 |
+
<show_in_default>1</show_in_default>
|
566 |
+
<show_in_website>1</show_in_website>
|
567 |
+
<show_in_store>1</show_in_store>
|
568 |
+
<depends><header>1</header></depends>
|
569 |
+
</header_snippets>
|
570 |
</fields>
|
571 |
</block>
|
572 |
<overview translate="label">
|
app/code/community/Magmodules/Feedbackcompany/sql/feedbackcompany_setup/mysql4-install-0.9.0.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
app/code/community/Magmodules/Feedbackcompany/sql/feedbackcompany_setup/mysql4-upgrade-1.2.1-1.2.2.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
app/code/community/Magmodules/Feedbackcompany/sql/feedbackcompany_setup/mysql4-upgrade-1.3.0-1.3.1.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
app/design/frontend/base/default/layout/magmodules_feedbackcompany.xml
CHANGED
@@ -10,6 +10,9 @@
|
|
10 |
<reference name="right">
|
11 |
<block type="feedbackcompany/sidebar" name="right.feedbackcompany" template="magmodules/feedbackcompany/sidebar/right.phtml" />
|
12 |
</reference>
|
|
|
|
|
|
|
13 |
</default>
|
14 |
<feedbackcompany_index_index>
|
15 |
<reference name="root">
|
@@ -17,6 +20,7 @@
|
|
17 |
</reference>
|
18 |
<reference name="head">
|
19 |
<action method="addCss"><stylesheet>magmodules/feedbackcompany/style.css</stylesheet></action>
|
|
|
20 |
</reference>
|
21 |
<reference name="content">
|
22 |
<block type="feedbackcompany/reviews" name="feedbackcompany.index" template="magmodules/feedbackcompany/index.phtml" />
|
10 |
<reference name="right">
|
11 |
<block type="feedbackcompany/sidebar" name="right.feedbackcompany" template="magmodules/feedbackcompany/sidebar/right.phtml" />
|
12 |
</reference>
|
13 |
+
<reference name="header">
|
14 |
+
<block type="feedbackcompany/header" name="header.feedbackcompany" as="topFeedbackcompany" />
|
15 |
+
</reference>
|
16 |
</default>
|
17 |
<feedbackcompany_index_index>
|
18 |
<reference name="root">
|
20 |
</reference>
|
21 |
<reference name="head">
|
22 |
<action method="addCss"><stylesheet>magmodules/feedbackcompany/style.css</stylesheet></action>
|
23 |
+
<action method="addCss"><stylesheet>magmodules/feedbackcompany/glyphicons-free.css</stylesheet></action>
|
24 |
</reference>
|
25 |
<reference name="content">
|
26 |
<block type="feedbackcompany/reviews" name="feedbackcompany.index" template="magmodules/feedbackcompany/index.phtml" />
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/index.phtml
CHANGED
@@ -15,51 +15,76 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
$reviews = $this->getReviews();
|
22 |
$stats = $this->getStats();
|
23 |
?>
|
24 |
-
<div class="feedbackcompany">
|
25 |
-
|
26 |
<div class="page-title">
|
27 |
-
<
|
28 |
-
|
29 |
-
<
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
<?php endif; ?>
|
37 |
</div>
|
|
|
38 |
|
39 |
<?php if($reviews->getSize()): ?>
|
40 |
<div class="content-feedbackcompany">
|
41 |
<div class="about-feedbackcompany">
|
42 |
-
<?php echo
|
43 |
-
</div>
|
44 |
</div>
|
45 |
-
|
46 |
-
|
47 |
-
<div class="review-list">
|
48 |
<div class="review-header">
|
49 |
-
<h3><?php echo $review->getCustomerName(); ?> - <?php echo Mage::helper('core')->formatDate($review->getDateCreated(), 'long', false); ?></h3>
|
50 |
<?php if($review->getScore()): ?>
|
51 |
<ul class="overall">
|
52 |
<li>
|
53 |
-
<
|
|
|
|
|
|
|
|
|
|
|
54 |
</li>
|
55 |
</ul>
|
56 |
<?php endif; ?>
|
|
|
57 |
</div>
|
58 |
-
<
|
59 |
-
<
|
60 |
<p>
|
61 |
<?php if($review->getReviewText()): ?>
|
62 |
-
|
63 |
<?php else: ?>
|
64 |
|
65 |
<?php endif; ?>
|
@@ -67,55 +92,47 @@
|
|
67 |
<div class="company_response top"><?php echo $response; ?></div>
|
68 |
<?php endif; ?>
|
69 |
</p>
|
70 |
-
</
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
<
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
<
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
<
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
<?php endif; ?>
|
110 |
-
<?php if($review->getScoreOrder() > 0): ?>
|
111 |
-
<li>
|
112 |
-
<span class="rating-name"><?php echo $this->__('Orderprocess');?></span>
|
113 |
-
<span class="rating-empty"><span class="rating-greystar-<?php echo $review->getScoreOrder();?>"></span></span>
|
114 |
-
</li>
|
115 |
-
<?php endif; ?>
|
116 |
-
</ul>
|
117 |
</div>
|
118 |
-
<?php
|
119 |
<?php echo $this->getPagerHtml(); ?>
|
120 |
<?php else: ?>
|
121 |
<p class="note-msg"><?php echo $this->__('No reviews found...'); ?></p>
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
$reviews = $this->getReviews();
|
22 |
$stats = $this->getStats();
|
23 |
?>
|
24 |
+
<div class="feedbackcompany" itemscope itemtype="http://schema.org/Organization">
|
25 |
+
|
26 |
<div class="page-title">
|
27 |
+
<div class="flexbox-container">
|
28 |
+
<h1><?php echo $this->__('The Feedback Company'); ?></h1>
|
29 |
+
<div class="header-floating-feedbackcompany">
|
30 |
+
<!-- Desktop only -->
|
31 |
+
<div class="total-feedbackcompany" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
|
32 |
+
<?php if($stats->getVotes()): ?>
|
33 |
+
<div class="total-block-stars-medium"><span style="width: <?php echo $stats->getScore(); ?>%;"></span></div>
|
34 |
+
<div class="total-description">
|
35 |
+
<?php echo $this->__('%s/%s with %s reviews', '<span itemprop="ratingValue">' . $stats->getScore() . '</span>', '<span itemprop="bestRating">100</span>', '<span itemprop="ratingCount">' . $stats->getVotes() . '</span>'); ?>
|
36 |
+
</div>
|
37 |
+
<?php endif; ?>
|
38 |
+
</div>
|
39 |
+
<!-- END Desktop only -->
|
40 |
+
<?php if($review_url = $this->getReviewUrl()): ?>
|
41 |
+
<button class="button" onclick="setLocation('<?php echo $review_url; ?>')">
|
42 |
+
<span>
|
43 |
+
<?php echo $this->__('Write review');?>
|
44 |
+
</span>
|
45 |
+
</button>
|
46 |
+
<?php endif; ?>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
|
51 |
+
<!-- Mobile only -->
|
52 |
+
<div class="total-feedbackcompany total-feedbackcompany-mobile">
|
53 |
+
<?php if($stats->getVotes()): ?>
|
54 |
+
<?php echo $this->__('%s/%s with %s reviews', '<span>' . $stats->getScore() . '</span>', '<span>100</span>', '<span>' . $stats->getVotes() . '</span>'); ?>
|
55 |
+
<div class="total-block-stars"><span style="width: <?php echo $stats->getScore(); ?>%"></span></div>
|
56 |
<?php endif; ?>
|
57 |
</div>
|
58 |
+
<!-- END Mobile only -->
|
59 |
|
60 |
<?php if($reviews->getSize()): ?>
|
61 |
<div class="content-feedbackcompany">
|
62 |
<div class="about-feedbackcompany">
|
63 |
+
<?php echo $this->getPageIntro(); ?>
|
64 |
+
</div>
|
65 |
</div>
|
66 |
+
<?php foreach($reviews as $review): ?>
|
67 |
+
<div class="review-list" itemprop="review" itemscope itemtype="http://schema.org/Review">
|
|
|
68 |
<div class="review-header">
|
|
|
69 |
<?php if($review->getScore()): ?>
|
70 |
<ul class="overall">
|
71 |
<li>
|
72 |
+
<div class="total-block-stars-small" itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
|
73 |
+
<span style="width: <?php echo $review->getScore() * 20; ?>%"></span>
|
74 |
+
<meta itemprop="worstRating" content="1" />
|
75 |
+
<meta itemprop="ratingValue" content="<?php echo $review->getScore(); ?>" />
|
76 |
+
<meta itemprop="bestRating" content="5" />
|
77 |
+
</div>
|
78 |
</li>
|
79 |
</ul>
|
80 |
<?php endif; ?>
|
81 |
+
<h4><span itemprop="author"><?php echo ($review->getCustomerName() ?: $this->__('Anonymous')); ?></span> - <meta itemprop="datePublished" content="<?php echo $review->getDateCreated(); ?>"><?php echo Mage::helper('core')->formatDate($review->getDateCreated(), 'long', false); ?></h4>
|
82 |
</div>
|
83 |
+
<div class="review-content">
|
84 |
+
<div class="experience">
|
85 |
<p>
|
86 |
<?php if($review->getReviewText()): ?>
|
87 |
+
<span itemprop="description"><?php echo nl2br($review->getReviewText()); ?></span>
|
88 |
<?php else: ?>
|
89 |
|
90 |
<?php endif; ?>
|
92 |
<div class="company_response top"><?php echo $response; ?></div>
|
93 |
<?php endif; ?>
|
94 |
</p>
|
95 |
+
</div>
|
96 |
+
<dl class="dl-feedback">
|
97 |
+
<?php if($text_comment = $review->getTextComment()): ?>
|
98 |
+
<dt class="upper"><span class="sprites-icon sprites-icon-comment"></span><?php echo $this->__('Store Comment'); ?></dt><dd class="upper"><?php echo ucfirst($text_comment); ?></dd>
|
99 |
+
<?php endif; ?>
|
100 |
+
|
101 |
+
<?php if($text_positive = $review->getTextPositive()): ?>
|
102 |
+
<dt class="upper"><span class="sprites-icon sprites-icon-tick"></span><?php echo $this->__('Positive'); ?></dt><dd class="upper"><?php echo ucfirst($text_positive); ?></dd>
|
103 |
+
<?php endif; ?>
|
104 |
+
|
105 |
+
<?php if($text_improvements = $review->getTextImprovements()): ?>
|
106 |
+
<dt class="upper"><span class="sprites-icon sprites-icon-brush"></span><?php echo $this->__('Improvements'); ?></dt><dd class="upper"><?php echo ucfirst($text_improvements); ?></dd>
|
107 |
+
<?php endif; ?>
|
108 |
+
|
109 |
+
<?php if($sex = $review->getCustomerSex()): ?>
|
110 |
+
<dt><?php echo $this->__('Gender'); ?></dt><dd><?php echo ucfirst($sex); ?></dd>
|
111 |
+
<?php endif; ?>
|
112 |
+
|
113 |
+
<?php if($customer_recommend = $review->getCustomerRecommend()): ?>
|
114 |
+
<dt><?php echo $this->__('Recommend'); ?></dt><dd><?php echo ucfirst($customer_recommend); ?></dd>
|
115 |
+
<?php endif; ?>
|
116 |
+
</dl>
|
117 |
+
<dl class="summary-index">
|
118 |
+
<div class="column">
|
119 |
+
<?php
|
120 |
+
$scores = $this->formatScoresReview($review);
|
121 |
+
$half = ceil(count($scores) / 2);
|
122 |
+
$i = 0;
|
123 |
+
?>
|
124 |
+
<?php foreach($scores as $title => $percentage): ?>
|
125 |
+
<dt><?php echo $this->__($title); ?></dt>
|
126 |
+
<dd>
|
127 |
+
<div class="total-block-stars-grey"><span style="width: <?php echo $percentage; ?>%"></span></div>
|
128 |
+
</dd>
|
129 |
+
<?php if(++$i == $half) echo '</div><div class="column">'; ?>
|
130 |
+
<?php endforeach;?>
|
131 |
+
</div>
|
132 |
+
</dl>
|
133 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
</div>
|
135 |
+
<?php endforeach;?>
|
136 |
<?php echo $this->getPagerHtml(); ?>
|
137 |
<?php else: ?>
|
138 |
<p class="note-msg"><?php echo $this->__('No reviews found...'); ?></p>
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/left.phtml
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Feedbackcompany
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
$sidebarreviews = $this->getSidebarCollection('left');
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Feedbackcompany
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
$sidebarreviews = $this->getSidebarCollection('left');
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/right.phtml
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Feedbackcompany
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
$sidebarreviews = $this->getSidebarCollection('right');
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Feedbackcompany
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
$sidebarreviews = $this->getSidebarCollection('right');
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/header.phtml
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu
|
4 |
+
* http://www.magmodules.eu
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category Magmodules
|
17 |
+
* @package Magmodules_Feedbackcompany
|
18 |
+
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
+
*/
|
22 |
+
$stats = $this->getTotals();
|
23 |
+
$link = $this->getReviewsUrl();
|
24 |
+
?>
|
25 |
+
<div id="feedbackcompany-header-widget" class="skip-content">
|
26 |
+
<?php if($this->getSnippetsEnabled()): ?>
|
27 |
+
<div itemscope itemtype="http://schema.org/WebPage">
|
28 |
+
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
|
29 |
+
<?php if($link) echo '<a href="' . $link . '" target="_blank">'; ?>
|
30 |
+
<?php echo $this->__('%s/%s with %s reviews', '<span itemprop="ratingValue">' . $stats->getScore() . '</span>', '<span itemprop="bestRating">' . $stats->getScoremax() . '</span>', '<span itemprop="ratingCount">' . $stats->getVotes() . '</span>'); ?>
|
31 |
+
<div class="total-block-stars-small"><span style="width: <?php echo $stats->getPercentage(); ?>%"></span></div>
|
32 |
+
<?php if($link) echo '</a>'; ?>
|
33 |
+
</div>
|
34 |
+
</div>
|
35 |
+
<?php else: ?>
|
36 |
+
<?php if($link) echo '<a href="' . $link . '" target="_blank">'; ?>
|
37 |
+
<?php echo $this->__('%s/%s with %s reviews', $stats->getScore(), $stats->getScoremax(), $stats->getVotes()); ?>
|
38 |
+
<div class="total-block-stars-small"><span style="width: <?php echo $stats->getPercentage(); ?>%"></span></div>
|
39 |
+
<?php if($link) echo '</a>'; ?>
|
40 |
+
<?php endif; ?>
|
41 |
+
</div>
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/medium.phtml
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
$total = $this->getTotals();
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
$total = $this->getTotals();
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/sidebar.phtml
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
$sidebarreviews = $this->getReviews();
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Feedbackcompany
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
$sidebarreviews = $this->getReviews();
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/small.phtml
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Feedbackcompany
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
$total = $this->getTotals();
|
@@ -48,4 +48,4 @@
|
|
48 |
<?php } ?>
|
49 |
</p>
|
50 |
<?php } ?>
|
51 |
-
</div>
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Feedbackcompany
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
$total = $this->getTotals();
|
48 |
<?php } ?>
|
49 |
</p>
|
50 |
<?php } ?>
|
51 |
+
</div>
|
app/locale/en_US/Magmodules_Feedbackcompany.csv
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
"%s - Repsonse: %s","%s - Repsonse: %s"
|
2 |
"%s new review(s)","%s new review(s)"
|
3 |
"%s review(s) updated","%s review(s) updated"
|
|
|
4 |
"API CREDENTIALS","API CREDENTIALS"
|
5 |
"Activate","Activate"
|
6 |
"Active","Active"
|
@@ -175,4 +176,12 @@
|
|
175 |
"%s new productreview(s) imported","%s new productreview(s) imported"
|
176 |
"Default Review Status","Default Review Status"
|
177 |
"Default Review Rating","Default Review Rating"
|
178 |
-
"Flush Block Cache after import","Flush Block Cache after import"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
"%s - Repsonse: %s","%s - Repsonse: %s"
|
2 |
"%s new review(s)","%s new review(s)"
|
3 |
"%s review(s) updated","%s review(s) updated"
|
4 |
+
"%s/%s with %s reviews","%s/%s with %s reviews"
|
5 |
"API CREDENTIALS","API CREDENTIALS"
|
6 |
"Activate","Activate"
|
7 |
"Active","Active"
|
176 |
"%s new productreview(s) imported","%s new productreview(s) imported"
|
177 |
"Default Review Status","Default Review Status"
|
178 |
"Default Review Rating","Default Review Rating"
|
179 |
+
"Flush Block Cache after import","Flush Block Cache after import"
|
180 |
+
"Store Comment","Store Comment"
|
181 |
+
"Positive","Positive"
|
182 |
+
"Improvements","Improvements"
|
183 |
+
"Gender","Gender"
|
184 |
+
"Recommend","Recommend"
|
185 |
+
"No reviews found...","No reviews found..."
|
186 |
+
"Anonymous","Anonymous"
|
187 |
+
"The documentation to implement The Feedback Company header widget can be found <a href=""http://www.magmodules.eu/help/feedbackcompany/the-feedback-company-header-widget/"">here</a>.","The documentation to implement The Feedback Company header widget can be found <a href=""http://www.magmodules.eu/help/feedbackcompany/the-feedback-company-header-widget/"">here</a>."
|
app/locale/nl_NL/Magmodules_Feedbackcompany.csv
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
"%s - Repsonse: %s","%s - Antwoord: %s"
|
2 |
"%s new review(s)","%s nieuwe beoordeling(en)"
|
3 |
"%s review(s) updated","%s beoordeling(en) geupdate"
|
|
|
4 |
"API CREDENTIALS","API Gegevens"
|
5 |
"Activate","Activeren"
|
6 |
"Active","Actief"
|
@@ -183,4 +184,13 @@
|
|
183 |
"Default Review Status","Standaard Review Status"
|
184 |
"Invitation Emails","Uitnodiging email"
|
185 |
"Default Review Rating","Standaard Review Rating"
|
186 |
-
"Flush Block Cache after import","Flush Block Cache na import"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
"%s - Repsonse: %s","%s - Antwoord: %s"
|
2 |
"%s new review(s)","%s nieuwe beoordeling(en)"
|
3 |
"%s review(s) updated","%s beoordeling(en) geupdate"
|
4 |
+
"%s/%s with %s reviews","%s/%s met %s beoordelingen"
|
5 |
"API CREDENTIALS","API Gegevens"
|
6 |
"Activate","Activeren"
|
7 |
"Active","Actief"
|
184 |
"Default Review Status","Standaard Review Status"
|
185 |
"Invitation Emails","Uitnodiging email"
|
186 |
"Default Review Rating","Standaard Review Rating"
|
187 |
+
"Flush Block Cache after import","Flush Block Cache na import"
|
188 |
+
"Store Comment","Opmerking Winkel"
|
189 |
+
"Positive","Positief"
|
190 |
+
"Improvements","Verbeterpunten"
|
191 |
+
"Gender","Geslacht"
|
192 |
+
"Recommend","Aanbevolen"
|
193 |
+
"No reviews found...","Geen beoordeling gevonden..."
|
194 |
+
"Anonymous","Anoniem"
|
195 |
+
"The documentation to implement The Feedback Company header widget can be found <a href=""http://www.magmodules.eu/help/feedbackcompany/the-feedback-company-header-widget/"">here</a>.","Lees de omschrijving over hoe de The Feedback Company widget te implementeren <a href=""http://www.magmodules.eu/help/feedbackcompany/the-feedback-company-header-widget/"">hier</a>."
|
196 |
+
"Header Block","Header Blok"
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Feedbackcompany</name>
|
4 |
-
<version>1.
|
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>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Magmodules"><dir name="Feedbackcompany"><dir name="Block"><dir name="Adminhtml"><dir name="Feedbacklog"><file name="Grid.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Feedbackcompany</name>
|
4 |
+
<version>1.4.0</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>2016-01-19</date>
|
14 |
+
<time>10:36:13</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Magmodules"><dir name="Feedbackcompany"><dir name="Block"><dir name="Adminhtml"><dir name="Feedbacklog"><file name="Grid.php" hash="55fc41747dfa29c82480657ef92cdd87"/></dir><dir name="Feedbackreviews"><dir name="Renderer"><file name="Experience.php" hash="58e6b4524ee8c4e95e76a2fa29309f4f"/></dir><file name="Grid.php" hash="034b652b83b627d464f4d566b1a8dd19"/></dir><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="b6615f57cf070f78db3f59de3fed080a"/><file name="Productreviews.php" hash="1e7da9da2ec3eb28e5fde451c8cfb781"/><file name="Test.php" hash="95bb230b8c02d349cbb4c8a914ea2fd6"/></dir><dir name="Field"><file name="Version.php" hash="004c1eef29828c33ece2b069738b66b3"/></dir><dir name="Form"><file name="Heading.php" hash="6392f0a879d8b475c5ec93aec74fa11d"/><file name="Note.php" hash="80abe28a9156c42dfc3ea61a2e265fc3"/></dir><dir name="Grid"><file name="Log.php" hash="f48fe4676148cb91f8150a726289c50d"/><file name="Seconds.php" hash="a3c061430ffb9bb59bc18308d8bf1bbf"/><file name="Stars.php" hash="bc6bbb13c6e58fcb0c389e94def62ecb"/></dir><dir name="Info"><file name="Info.php" hash="41fa6901e5f3744fa67b8413916c9ab0"/></dir></dir><file name="Feedbacklog.php" hash="03448637e329d9aed31916c403f237a7"/><file name="Feedbackreviews.php" hash="b9c0059184019f277dde9b70b94bfa37"/></dir><file name="Custom.php" hash="3c5fe7bb2629fbed033bb681bad6f440"/><file name="Header.php" hash="44a5dc7866157c032b0c90f27d162b5f"/><file name="Reviews.php" hash="88505fc0d4c17fa6bf89448bdf547ceb"/><file name="Sidebar.php" hash="8e3494bd8e32eff42c5b0c26755694bf"/></dir><dir name="Helper"><file name="Data.php" hash="7c4cc8adfdd8c7421648920d32edb12a"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="ae1342456877a1fae35eae8724c923c4"/></dir><dir name="Reviews"><file name="Collection.php" hash="59f40c5d3de2c2c00eda58edf82afec3"/></dir><dir name="Stats"><file name="Collection.php" hash="c5556305c5bd4a47d962755df17c14d4"/></dir><file name="Log.php" hash="78b2b64a97bb8f6fa76afd60c6a5757f"/><file name="Reviews.php" hash="f5237ea23f972634b63cb3aeadb4a0ec"/><file name="Stats.php" hash="071d7308b21fe3069f262b9105597a89"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Attribute.php" hash="91c88ae96b609900a6b53ecfff8e2828"/><file name="Category.php" hash="2fe30678feee498bd105d259cadae215"/><file name="Cronfrequency.php" hash="d0308b05b0dd88feeb9fbc5e4a76149a"/><file name="Orderstatus.php" hash="a5e23aa216840cf22c545ba024da3d7e"/><file name="Position.php" hash="32dba14b3fbba1b4e16836b5c9c25807"/><file name="Reviewlink.php" hash="d5d8ad2ab7e11a13b980288b34c6eba7"/><file name="Reviewrating.php" hash="1f7712ec677f95ada3450bcdc8c5c837"/><file name="Reviewstatus.php" hash="fa704d1e65eb64b01ad54bbc79e8c020"/><file name="Sidebarlink.php" hash="19eeff07235ee02fea3634e0f32e10a7"/></dir></dir></dir><file name="Api.php" hash="ed70bacc66bb94519260c272a59bf258"/><file name="Log.php" hash="4280f12a6802bdb2d438d1ef0623daa0"/><file name="Observer.php" hash="3f6850fdac795068406dec58a32ca767"/><file name="Productreviews.php" hash="1d10476def332278581a368305497a9c"/><file name="Reviews.php" hash="7ac109f8824d97d308056275dc952970"/><file name="Stats.php" hash="ec42f45afdc036c5ef5a9e89c7b4bc84"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="FeedbacklogController.php" hash="20d556f96f108ebfbaec6b62288fbd5e"/><file name="FeedbackreviewsController.php" hash="c055d9c71d73cdf27ccdd9bb41ba48c1"/></dir><file name="IndexController.php" hash="b388778f34531a73e8fc2fc91a6a784c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f62877d5fa2eaa083ffaebc15d8256c9"/><file name="config.xml" hash="91ecc67c1e7706f41eca34ed80834c65"/><file name="system.xml" hash="ac490916e6127bc7b0ef27748a64172f"/></dir><dir name="sql"><dir name="feedbackcompany_setup"><file name="mysql4-install-0.9.0.php" hash="e5e350306db02211bf1926ccb46d62fb"/><file name="mysql4-upgrade-1.2.1-1.2.2.php" hash="d2823271b6fcdbe69212c58bbe99ab65"/><file name="mysql4-upgrade-1.2.5-1.2.6.php" hash="0b7697b895677239dd9b4378e7578b90"/><file name="mysql4-upgrade-1.3.0-1.3.1.php" hash="32d63d431f7987492f31502ec1939599"/></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="3cca540d05eb59dab5ab24278841833a"/></dir><dir name="template"><dir name="magmodules"><dir name="feedbackcompany"><dir name="sidebar"><file name="left.phtml" hash="8c235d9ffd16096f50c2e36054bdf8f9"/><file name="right.phtml" hash="383c7db6e01441cddbbe07b2914a84a6"/></dir><dir name="widget"><file name="header.phtml" hash="cd1c71fe6c9a0f0b28ccc5951da027fb"/><file name="medium.phtml" hash="d9e0025c3c189e9ad3b512fbfc7c59dd"/><file name="sidebar.phtml" hash="852632fc6b4f223f42459da0498efd9f"/><file name="small.phtml" hash="b6e07949b3bccbd244651328a329f33e"/></dir><file name="index.phtml" hash="35e543c38a0ef1732463e6c8019cdd3e"/></dir></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="template"><dir name="magmodules"><file name="feedbackcompany" hash=""/></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="bcf891696a8602a49ef00ec0440b944a"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magmodules_Feedbackcompany.csv" hash="ffbf2f9eee9a27889271a8e1f98a153b"/></dir><dir name="nl_NL"><file name="Magmodules_Feedbackcompany.csv" hash="28a0992ad8eae1e7f947dac23fa35de3"/></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="sprites.png" hash="5f048cd5c6faf107782a5356678c2800"/><file name="sprites@2x.png" hash="8bbeceb34cb88a53f8e0222025368149"/><file name="star.png" hash="1a0bff565b441621cfa141ea1359e42d"/><file name="stars-colorful-big-empty.png" hash="0c39b599f3711387f3ab73c2c866db5e"/><file name="stars-colorful-big-empty@2x.png" hash="91968a209183fa94981aa1a4f4b881ac"/><file name="stars-colorful-big-filling.png" hash="4e44da064ac05c020a0390be58378c70"/><file name="stars-colorful-big-filling@2x.png" hash="d884648d75c3d39ede9d3b9d152fa377"/><file name="stars-colorful-medium-empty.png" hash="348115c8fcb76a0fdad35adf373c372d"/><file name="stars-colorful-medium-empty@2x.png" hash="80597abaaf487d85b37b38242fd280fd"/><file name="stars-colorful-medium-filling.png" hash="bdabd08dd42a28ffac96c0426cc31f75"/><file name="stars-colorful-medium-filling@2x.png" hash="95d3c2484dea0e65ef3764cca92d7546"/><file name="stars-colorful-small-empty.png" hash="0810018964beb0d0ff758346ea48f380"/><file name="stars-colorful-small-empty@2x.png" hash="95e3450bc9019b50497a07edd36da76a"/><file name="stars-colorful-small-filling.png" hash="7dea18dd80f75e5957ddfff107a5b14b"/><file name="stars-colorful-small-filling@2x.png" hash="c78b5d4766bdba9144333e8420e78e30"/><file name="stars-grayscale-small-empty.png" hash="0810018964beb0d0ff758346ea48f380"/><file name="stars-grayscale-small-empty@2x.png" hash="95e3450bc9019b50497a07edd36da76a"/><file name="stars-grayscale-small-filling.png" hash="5b36c38e55237b3b2932cb46a238ca66"/><file name="stars-grayscale-small-filling@2x.png" hash="a7fad2bb4a7ba031134e60f2b682ec6e"/></dir><file name="richsnippets.css" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="sidebar.css" hash="891f06f0bb232985223fadfddfa1a1f8"/><file name="style.css" hash="056b9792d7f7abf0b861efc7e68325e3"/></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>
|
skin/frontend/base/default/magmodules/feedbackcompany/images/sprites.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/sprites@2x.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/star.png
CHANGED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-big-empty.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-big-empty@2x.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-big-filling.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-big-filling@2x.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-medium-empty.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-medium-empty@2x.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-medium-filling.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-medium-filling@2x.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-small-empty.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-small-empty@2x.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-small-filling.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-colorful-small-filling@2x.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-grayscale-small-empty.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-grayscale-small-empty@2x.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-grayscale-small-filling.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/stars-grayscale-small-filling@2x.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/sidebar.css
CHANGED
@@ -27,6 +27,7 @@
|
|
27 |
font-style: italic;
|
28 |
}
|
29 |
|
|
|
30 |
.webwinkelkeur-sidebar-block .rating-empty { float: right; display: block; width: 80px; height: 16px; background: url('./images/star.png') 0 -16px; margin-right: 5px; }
|
31 |
.webwinkelkeur-sidebar-block .rating-star-1 { float: left; display: block; width: 16px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
32 |
.webwinkelkeur-sidebar-block .rating-star-2 { float: left; display: block; width: 32px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
@@ -34,13 +35,46 @@
|
|
34 |
.webwinkelkeur-sidebar-block .rating-star-4 { float: left; display: block; width: 64px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
35 |
.webwinkelkeur-sidebar-block .rating-star-5 { float: left; display: block; width: 80px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
36 |
|
37 |
-
/**
|
38 |
-
|
|
|
|
|
39 |
.total-block-text { border-bottom: 1px solid #ccc; padding-bottom: 5px; }
|
40 |
-
.total-block-text p { text-align: center; padding-top: 5px; margin-bottom: 2px; font-size: 18px; }
|
41 |
-
.total-block-text p.based-on { text-align: center; padding-top: 0px; font-size: 11px; font-style: italic; }
|
42 |
-
.total-block-stars { height:
|
43 |
-
.total-block-stars span{ display: block; height:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
|
46 |
/* CUSTOM BLOCK */
|
@@ -70,8 +104,30 @@
|
|
70 |
font-weight: 300;
|
71 |
}
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
-
@media (max-width: 961px) {
|
75 |
-
.total-block-stars {background-size:143px auto;width:143px;}
|
76 |
-
.total-block-stars span {background-size:143px auto;}
|
77 |
}
|
27 |
font-style: italic;
|
28 |
}
|
29 |
|
30 |
+
/** Discrete stars **/
|
31 |
.webwinkelkeur-sidebar-block .rating-empty { float: right; display: block; width: 80px; height: 16px; background: url('./images/star.png') 0 -16px; margin-right: 5px; }
|
32 |
.webwinkelkeur-sidebar-block .rating-star-1 { float: left; display: block; width: 16px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
33 |
.webwinkelkeur-sidebar-block .rating-star-2 { float: left; display: block; width: 32px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
35 |
.webwinkelkeur-sidebar-block .rating-star-4 { float: left; display: block; width: 64px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
36 |
.webwinkelkeur-sidebar-block .rating-star-5 { float: left; display: block; width: 80px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
37 |
|
38 |
+
/** Continuous stars **/
|
39 |
+
|
40 |
+
/** big colorful review stars **/
|
41 |
+
.block-content p.company-name { text-align: center; margin: 5px auto; font-size: 12px; }
|
42 |
.total-block-text { border-bottom: 1px solid #ccc; padding-bottom: 5px; }
|
43 |
+
.total-block-text p { text-align: center; padding-top: 5px; margin-bottom: 2px; font-size: 18px; }
|
44 |
+
.total-block-text p.based-on { text-align: center; padding-top: 0px; font-size: 11px; font-style: italic; }
|
45 |
+
.total-block-stars { height: 21px; width: 110px; background: url('./images/stars-colorful-big-empty.png') no-repeat; margin: 5px auto; }
|
46 |
+
.total-block-stars span{ display: block; height: 21px; background: url('./images/stars-colorful-big-filling.png') no-repeat; }
|
47 |
+
|
48 |
+
/** medium colorful review stars **/
|
49 |
+
.total-block-stars-medium { height: 20px; width: 108px; background: url('./images/stars-colorful-medium-empty.png') no-repeat; }
|
50 |
+
.total-block-stars-medium span{ display: block; height: 20px; background: url('./images/stars-colorful-medium-filling.png') no-repeat; }
|
51 |
+
|
52 |
+
|
53 |
+
/** small colorful review stars **/
|
54 |
+
.total-block-stars-small { height: 14px; width: 74px; background: url('./images/stars-colorful-small-empty.png') no-repeat; margin: 5px auto; }
|
55 |
+
.total-block-stars-small span{ display: block; height: 14px; background: url('./images/stars-colorful-small-filling.png') no-repeat; }
|
56 |
+
|
57 |
+
/** small grayscale review stars **/
|
58 |
+
.total-block-stars-grey { height: 14px; width: 74px; background: url('./images/stars-grayscale-small-empty.png') no-repeat; display: inline-block}
|
59 |
+
.total-block-stars-grey span{ display: block; height: 14px; background: url('./images/stars-grayscale-small-filling.png') no-repeat; }
|
60 |
+
|
61 |
+
@media (-webkit-min-device-pixel-ratio: 2), not all, not all, not all, (min-resolution: 192dpi), (min-resolution: 2dppx){
|
62 |
+
/** big colorful review stars **/
|
63 |
+
.total-block-stars { background: url('./images/stars-colorful-big-empty@2x.png') no-repeat; background-size: 110px 21px;}
|
64 |
+
.total-block-stars span{ background: url('./images/stars-colorful-big-filling@2x.png') no-repeat; background-size: 110px 21px;}
|
65 |
+
|
66 |
+
/** medium colorful review stars **/
|
67 |
+
.total-block-stars-small { background: url('./images/stars-colorful-medium-empty@2x.png') no-repeat; background-size: 108px 20px;}
|
68 |
+
.total-block-stars-small span{ background: url('./images/stars-colorful-medium-filling@2x.png') no-repeat; background-size: 108px 20px;}
|
69 |
+
|
70 |
+
/** small colorful review stars **/
|
71 |
+
.total-block-stars-small { background: url('./images/stars-colorful-small-empty@2x.png') no-repeat; background-size: 74px 14px;}
|
72 |
+
.total-block-stars-small span{ background: url('./images/stars-colorful-small-filling@2x.png') no-repeat; background-size: 74px 14px;}
|
73 |
+
|
74 |
+
/** small grayscale review stars **/
|
75 |
+
.total-block-stars-grey { background: url('./images/stars-grayscale-small-empty@2x.png') no-repeat; background-size: 74px 14px;}
|
76 |
+
.total-block-stars-grey span{ background: url('./images/stars-grayscale-small-filling@2x.png') no-repeat; background-size: 74px 14px;}
|
77 |
+
}
|
78 |
|
79 |
|
80 |
/* CUSTOM BLOCK */
|
104 |
font-weight: 300;
|
105 |
}
|
106 |
|
107 |
+
#feedbackcompany-header-widget{
|
108 |
+
font-size: 12px;
|
109 |
+
border-radius: 2px;
|
110 |
+
border: 1px solid silver;
|
111 |
+
padding: 10px 15px 10px 10px;
|
112 |
+
line-height: 18px;
|
113 |
+
}
|
114 |
+
|
115 |
+
#feedbackcompany-header-widget.feedbackcompany-header-widget-searchbar{
|
116 |
+
position: absolute;
|
117 |
+
top: 55px;
|
118 |
+
right: 25%;
|
119 |
+
margin-right: 18px;
|
120 |
+
}
|
121 |
+
|
122 |
+
#feedbackcompany-header-widget .total-block-stars-small{
|
123 |
+
display: inline-block;
|
124 |
+
vertical-align: middle;
|
125 |
+
margin: -1px 10px 0 8px;
|
126 |
+
}
|
127 |
+
|
128 |
+
@media (min-width: 961px) {
|
129 |
+
#feedbackcompany-header-widget{ display: inline-block; }
|
130 |
+
#feedbackcompany-header-widget > * { display: inline-block; }
|
131 |
+
#feedbackcompany-header-widget a:hover {text-decoration: none;}
|
132 |
|
|
|
|
|
|
|
133 |
}
|
skin/frontend/base/default/magmodules/feedbackcompany/style.css
CHANGED
@@ -18,72 +18,187 @@
|
|
18 |
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
-
|
22 |
-
.feedbackcompany {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
|
25 |
-
.feedbackcompany
|
26 |
-
|
27 |
-
|
|
|
28 |
}
|
29 |
|
30 |
-
.feedbackcompany .
|
31 |
-
|
|
|
|
|
|
|
32 |
}
|
33 |
|
34 |
.feedbackcompany .about-feedbackcompany {
|
35 |
-
float: left;
|
36 |
-
width: 70%;
|
37 |
}
|
38 |
|
39 |
.feedbackcompany .stats-feedbackcompany {
|
40 |
-
float: right;
|
41 |
-
width: 30%;
|
42 |
-
text-align: center;
|
43 |
}
|
44 |
|
45 |
.feedbackcompany .ratingblock-feedbackcompany {
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
}
|
56 |
|
57 |
.feedbackcompany .content-feedbackcompany {
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
61 |
}
|
62 |
|
63 |
.feedbackcompany .review-list {
|
64 |
-
|
65 |
-
|
66 |
}
|
67 |
|
68 |
-
.feedbackcompany .review-list
|
69 |
-
|
70 |
-
|
|
|
71 |
}
|
72 |
|
73 |
.feedbackcompany .review-header {
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
}
|
79 |
|
80 |
-
.feedbackcompany ul.overall
|
81 |
-
|
82 |
}
|
83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
.feedbackcompany ul.summary-index {
|
85 |
display: flex;
|
86 |
-
list-style-type: none;
|
87 |
}
|
88 |
|
89 |
.feedbackcompany ul.summary-index li {
|
@@ -95,17 +210,8 @@
|
|
95 |
padding: 10px 5px 5px 5px;
|
96 |
border-bottom: 1px dotted #e0e0e0;
|
97 |
}
|
|
|
98 |
|
99 |
-
.feedbackcompany ul.experience li {
|
100 |
-
width: 100%;
|
101 |
-
padding: 10px;
|
102 |
-
}
|
103 |
-
|
104 |
-
.feedbackcompany .rating-name {
|
105 |
-
font-weight: bold;
|
106 |
-
display: block;
|
107 |
-
margin-bottom: 2px;
|
108 |
-
}
|
109 |
|
110 |
/* INDEX REVIEW LIST */
|
111 |
.review-list .rating-empty { float: left; display: block; width: 80px; height: 16px; background: url('./images/star.png') 0 -16px; margin-right: 5px; }
|
@@ -122,61 +228,146 @@
|
|
122 |
.review-list .rating-greystar-4 { float: left; display: block; width: 64px; height: 16px; background: url('./images/greystar.png') 0 0; margin-right: 5px; }
|
123 |
.review-list .rating-greystar-5 { float: left; display: block; width: 80px; height: 16px; background: url('./images/greystar.png') 0 0; margin-right: 5px; }
|
124 |
|
125 |
-
|
126 |
-
|
127 |
/* THE TRIANGLE
|
128 |
------------------------------------------------------------------------------------------------------------------------------- */
|
129 |
|
130 |
.company_response {
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
}
|
142 |
|
143 |
.company_response:before {
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
}
|
154 |
|
155 |
.company_response:after {
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
}
|
166 |
|
167 |
-
|
168 |
.company_response.top:before {
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
}
|
175 |
|
176 |
.company_response.top:after {
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
}
|
18 |
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
+
|
22 |
+
.feedbackcompany .page-title .flexbox-container{
|
23 |
+
display: flex;
|
24 |
+
justify-content: space-between;
|
25 |
+
align-items: baseline;
|
26 |
+
}
|
27 |
+
|
28 |
+
.feedbackcompany .page-title h1 {
|
29 |
+
min-height: 50px;
|
30 |
+
}
|
31 |
+
|
32 |
+
|
33 |
+
.feedbackcompany .page-title .flexbox-container h1 {
|
34 |
+
flex-grow: 1;
|
35 |
+
}
|
36 |
+
|
37 |
+
.feedbackcompany .flexbox-container .header-floating-feedbackcompany{
|
38 |
+
flex-shrink: 0;
|
39 |
+
}
|
40 |
+
.feedbackcompany .header-floating-feedbackcompany .button {
|
41 |
+
padding: 0;
|
42 |
+
vertical-align: text-bottom;
|
43 |
+
}
|
44 |
+
|
45 |
+
.feedbackcompany .header-floating-feedbackcompany .button span{
|
46 |
+
padding: 10px 45px 10px 41px;
|
47 |
+
display: inline-block;
|
48 |
+
}
|
49 |
+
|
50 |
+
.feedbackcompany .total-feedbackcompany {
|
51 |
+
display: none;
|
52 |
+
margin-right: 14px;
|
53 |
+
text-align: right;
|
54 |
+
}
|
55 |
+
|
56 |
+
.feedbackcompany .total-feedbackcompany.total-feedbackcompany-mobile{
|
57 |
+
display: block;
|
58 |
+
text-align: center;
|
59 |
+
margin: 40px 0 30px;
|
60 |
+
}
|
61 |
+
|
62 |
+
|
63 |
+
.feedbackcompany .total-feedbackcompany .total-block-stars, .feedbackcompany .total-feedbackcompany .total-block-stars-medium{
|
64 |
+
float: right;
|
65 |
+
vertical-align: sub;
|
66 |
+
}
|
67 |
+
|
68 |
+
.feedbackcompany .total-feedbackcompany.total-feedbackcompany-mobile .button,.feedbackcompany .total-feedbackcompany.total-feedbackcompany-mobile .total-block-stars{
|
69 |
+
vertical-align: middle;
|
70 |
}
|
71 |
|
72 |
+
.feedbackcompany .total-feedbackcompany.total-feedbackcompany-mobile .total-block-stars{
|
73 |
+
float: none;
|
74 |
+
margin-top: -8px;
|
75 |
+
display: inline-block;
|
76 |
}
|
77 |
|
78 |
+
.feedbackcompany .total-feedbackcompany .total-description{
|
79 |
+
text-transform: uppercase;
|
80 |
+
font-size: 10px;
|
81 |
+
line-height: 22px;
|
82 |
+
clear: both;
|
83 |
}
|
84 |
|
85 |
.feedbackcompany .about-feedbackcompany {
|
|
|
|
|
86 |
}
|
87 |
|
88 |
.feedbackcompany .stats-feedbackcompany {
|
|
|
|
|
|
|
89 |
}
|
90 |
|
91 |
.feedbackcompany .ratingblock-feedbackcompany {
|
92 |
+
width: 60px;
|
93 |
+
height: 60px;
|
94 |
+
padding: 4px 0px 0px 3px;
|
95 |
+
font-weight: bold;
|
96 |
+
font-size: 13px;
|
97 |
+
margin: 6px auto;
|
98 |
+
border-radius: 70px;
|
99 |
+
border: 4px solid white;
|
100 |
+
box-shadow: 1px 1px 3px #CCCCCC;
|
101 |
}
|
102 |
|
103 |
.feedbackcompany .content-feedbackcompany {
|
104 |
+
overflow: auto;
|
105 |
+
width: 100%;
|
106 |
+
margin-bottom: 5px;
|
107 |
+
padding-left: 3px;
|
108 |
+
line-height: 1.7;
|
109 |
}
|
110 |
|
111 |
.feedbackcompany .review-list {
|
112 |
+
margin-bottom: 25px;
|
113 |
+
margin-top: 10px;
|
114 |
}
|
115 |
|
116 |
+
.feedbackcompany .review-list h4 {
|
117 |
+
font-size: 12px;
|
118 |
+
border-bottom: 1px solid #e0e0e0;
|
119 |
+
padding: 6px 3px 10px;
|
120 |
}
|
121 |
|
122 |
.feedbackcompany .review-header {
|
123 |
+
clear: both;
|
124 |
+
}
|
125 |
+
|
126 |
+
.feedbackcompany .review-content {
|
127 |
+
padding: 0 3px;
|
128 |
+
line-height: 2.4;
|
129 |
+
}
|
130 |
+
|
131 |
+
.feedbackcompany .review-content .experience {
|
132 |
+
margin-bottom: 12px;
|
133 |
}
|
134 |
|
135 |
+
.feedbackcompany ul.overall {
|
136 |
+
float: right;
|
137 |
}
|
138 |
|
139 |
+
.feedbackcompany dl {
|
140 |
+
padding-left: 21px;
|
141 |
+
}
|
142 |
+
|
143 |
+
.feedbackcompany dl:after {
|
144 |
+
content: "";
|
145 |
+
display: table;
|
146 |
+
clear: both;
|
147 |
+
}
|
148 |
+
|
149 |
+
.feedbackcompany dl.summary-index {
|
150 |
+
line-height: 2.8;
|
151 |
+
}
|
152 |
+
|
153 |
+
.feedbackcompany dl dt {
|
154 |
+
font-weight: bold;
|
155 |
+
clear: left;
|
156 |
+
float: left;
|
157 |
+
width: 40%;
|
158 |
+
}
|
159 |
+
|
160 |
+
.feedbackcompany dl dd {
|
161 |
+
float: left;
|
162 |
+
width: 60%;
|
163 |
+
}
|
164 |
+
|
165 |
+
.feedbackcompany .sprites-icon {
|
166 |
+
background: url('images/sprites.png') center top no-repeat;
|
167 |
+
width: 16px;
|
168 |
+
height: 15px;
|
169 |
+
display: inline-block;
|
170 |
+
left: -20px;
|
171 |
+
position: relative;
|
172 |
+
margin-right: -16px;
|
173 |
+
vertical-align: middle;
|
174 |
+
}
|
175 |
+
|
176 |
+
|
177 |
+
@media (-webkit-min-device-pixel-ratio: 2), not all, not all, not all, (min-resolution: 192dpi), (min-resolution: 2dppx){
|
178 |
+
.feedbackcompany .sprites-icon {
|
179 |
+
background: url('images/sprites@2x.png') center top no-repeat;
|
180 |
+
background-size: 16px;
|
181 |
+
-webkit-transform: translate3d(0,0,0);
|
182 |
+
}
|
183 |
+
|
184 |
+
}
|
185 |
+
|
186 |
+
.feedbackcompany .sprites-icon.sprites-icon-comment {
|
187 |
+
background-position: 0 0;
|
188 |
+
}
|
189 |
+
|
190 |
+
.feedbackcompany .sprites-icon.sprites-icon-tick {
|
191 |
+
background-position: 0 -15px;
|
192 |
+
}
|
193 |
+
|
194 |
+
.feedbackcompany .sprites-icon.sprites-icon-brush {
|
195 |
+
background-position: 0 -30px;
|
196 |
+
}
|
197 |
+
|
198 |
+
/*
|
199 |
.feedbackcompany ul.summary-index {
|
200 |
display: flex;
|
201 |
+
list-style-type: none;
|
202 |
}
|
203 |
|
204 |
.feedbackcompany ul.summary-index li {
|
210 |
padding: 10px 5px 5px 5px;
|
211 |
border-bottom: 1px dotted #e0e0e0;
|
212 |
}
|
213 |
+
*/
|
214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
|
216 |
/* INDEX REVIEW LIST */
|
217 |
.review-list .rating-empty { float: left; display: block; width: 80px; height: 16px; background: url('./images/star.png') 0 -16px; margin-right: 5px; }
|
228 |
.review-list .rating-greystar-4 { float: left; display: block; width: 64px; height: 16px; background: url('./images/greystar.png') 0 0; margin-right: 5px; }
|
229 |
.review-list .rating-greystar-5 { float: left; display: block; width: 80px; height: 16px; background: url('./images/greystar.png') 0 0; margin-right: 5px; }
|
230 |
|
|
|
|
|
231 |
/* THE TRIANGLE
|
232 |
------------------------------------------------------------------------------------------------------------------------------- */
|
233 |
|
234 |
.company_response {
|
235 |
+
position: relative;
|
236 |
+
padding: 15px;
|
237 |
+
margin: 23px 0 3em;
|
238 |
+
border: 3px solid #C3C3C3;
|
239 |
+
color: #333;
|
240 |
+
background: #fff;
|
241 |
+
-webkit-border-radius: 10px;
|
242 |
+
-moz-border-radius: 10px;
|
243 |
+
border-radius: 10px;
|
244 |
+
font-style: italic;
|
245 |
}
|
246 |
|
247 |
.company_response:before {
|
248 |
+
content: "";
|
249 |
+
position: absolute;
|
250 |
+
bottom: -20px;
|
251 |
+
left: 40px;
|
252 |
+
border-width: 20px 20px 0;
|
253 |
+
border-style: solid;
|
254 |
+
border-color: #C3C3C3 transparent;
|
255 |
+
display: block;
|
256 |
+
width: 0;
|
257 |
}
|
258 |
|
259 |
.company_response:after {
|
260 |
+
content: "";
|
261 |
+
position: absolute;
|
262 |
+
bottom: -13px;
|
263 |
+
left: 47px;
|
264 |
+
border-width: 13px 13px 0;
|
265 |
+
border-style: solid;
|
266 |
+
border-color: #fff transparent;
|
267 |
+
display: block;
|
268 |
+
width: 0;
|
269 |
}
|
270 |
|
|
|
271 |
.company_response.top:before {
|
272 |
+
top: -16px;
|
273 |
+
bottom: auto;
|
274 |
+
left: 23px;
|
275 |
+
right: auto;
|
276 |
+
border-width: 0 16px 16px;
|
277 |
}
|
278 |
|
279 |
.company_response.top:after {
|
280 |
+
top: -13px;
|
281 |
+
bottom: auto;
|
282 |
+
left: 27px;
|
283 |
+
right: auto;
|
284 |
+
border-width: 0 13px 13px;
|
285 |
+
}
|
286 |
+
|
287 |
+
|
288 |
+
@media only screen and (min-width: 600px){
|
289 |
+
.feedbackcompany .total-feedbackcompany.total-feedbackcompany-mobile{
|
290 |
+
display: none;
|
291 |
+
}
|
292 |
+
.feedbackcompany .total-feedbackcompany{
|
293 |
+
display: inline-block;
|
294 |
+
}
|
295 |
+
|
296 |
+
.feedbackcompany .header-floating-feedbackcompany .button {
|
297 |
+
vertical-align: text-bottom;
|
298 |
+
}
|
299 |
+
}
|
300 |
+
|
301 |
+
|
302 |
+
@media only screen and (min-width: 771px) {
|
303 |
+
.feedbackcompany .total-feedbackcompany {
|
304 |
+
line-height: 34px;
|
305 |
+
}
|
306 |
+
|
307 |
+
.feedbackcompany .review-content .experience {
|
308 |
+
margin-bottom: 5px;
|
309 |
+
line-height: 2;
|
310 |
+
}
|
311 |
+
|
312 |
+
.feedbackcompany .header-floating-feedbackcompany {
|
313 |
+
padding: 1px 15px;
|
314 |
+
}
|
315 |
+
|
316 |
+
.feedbackcompany .review-list h4 {
|
317 |
+
padding: 6px 30px 10px;
|
318 |
+
}
|
319 |
+
|
320 |
+
.feedbackcompany .page-title h1 {
|
321 |
+
padding: 0 15px 20px;
|
322 |
+
}
|
323 |
+
|
324 |
+
.feedbackcompany dl {
|
325 |
+
padding-left: 0px;
|
326 |
+
}
|
327 |
+
|
328 |
+
.feedbackcompany dl.dl-feedback {
|
329 |
+
margin-bottom: 6px;
|
330 |
+
}
|
331 |
+
|
332 |
+
.feedbackcompany dl.dl-feedback dt {
|
333 |
+
width: 16%;
|
334 |
+
}
|
335 |
+
|
336 |
+
.feedbackcompany dl.dl-feedback .upper {
|
337 |
+
line-height: 2.0;
|
338 |
+
padding-top: 8px;
|
339 |
+
}
|
340 |
+
|
341 |
+
.feedbackcompany dl.dl-feedback dd {
|
342 |
+
width: 84%;
|
343 |
+
}
|
344 |
+
|
345 |
+
.feedbackcompany dl.summary-index dt {
|
346 |
+
width: 32%;
|
347 |
+
}
|
348 |
+
|
349 |
+
.feedbackcompany dl.summary-index dd {
|
350 |
+
width: 68%;
|
351 |
+
}
|
352 |
+
|
353 |
+
.feedbackcompany .summary-index .column {
|
354 |
+
float: left;
|
355 |
+
width: 50%;
|
356 |
+
}
|
357 |
+
|
358 |
+
.feedbackcompany .content-feedbackcompany {
|
359 |
+
padding-left: 15px;
|
360 |
+
line-height: 1.93;
|
361 |
+
margin-bottom: 23px;
|
362 |
+
}
|
363 |
+
|
364 |
+
.feedbackcompany .review-content {
|
365 |
+
padding: 0 30px;
|
366 |
+
line-height: 2.8;
|
367 |
+
}
|
368 |
+
|
369 |
+
.feedbackcompany .sprites-icon {
|
370 |
+
left: -24px;
|
371 |
+
}
|
372 |
+
|
373 |
}
|