Magmodules_Webwinkelconnect - Version 1.0.1

Version Notes

First stable release

Download this release

Release Info

Developer Magento Core Team
Extension Magmodules_Webwinkelconnect
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

Files changed (62) hide show
  1. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Webwinkellog.php +6 -6
  2. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Webwinkellog/Grid.php +19 -19
  3. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Webwinkelreviews.php +6 -6
  4. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Webwinkelreviews/Grid.php +28 -28
  5. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Webwinkelreviews/Renderer/Experience.php +3 -3
  6. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Widget/Buttons/Process.php +3 -3
  7. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Widget/Buttons/Test.php +3 -3
  8. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Widget/Form/Heading.php +3 -4
  9. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Widget/Grid/Log.php +5 -5
  10. app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Grid/Seconds.php +32 -0
  11. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Widget/Grid/Stars.php +2 -2
  12. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Widget/Info/Info.php +5 -6
  13. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Reviews.php +9 -9
  14. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Sidebar.php +17 -17
  15. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Snippets.php +7 -7
  16. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Helper/Data.php +6 -6
  17. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Api.php +12 -12
  18. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Log.php +7 -7
  19. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Mysql4/Log.php +3 -3
  20. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Mysql4/Log/Collection.php +3 -3
  21. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Mysql4/Reviews.php +3 -3
  22. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Mysql4/Reviews/Collection.php +3 -3
  23. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Mysql4/Stats.php +3 -3
  24. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Mysql4/Stats/Collection.php +3 -3
  25. app/code/local/Magmodules/Webwinkelconnect/Model/Observer.php +121 -0
  26. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Reviews.php +7 -7
  27. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Stats.php +9 -9
  28. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/System/Config/Source/Cronfrequency.php +8 -8
  29. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/System/Config/Source/Orderstatus.php +3 -3
  30. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/System/Config/Source/Position.php +4 -4
  31. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/System/Config/Source/Sidebarlink.php +5 -5
  32. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/controllers/Adminhtml/WebwinkellogController.php +10 -10
  33. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/controllers/Adminhtml/WebwinkelreviewsController.php +30 -30
  34. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/controllers/IndexController.php +7 -7
  35. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/etc/adminhtml.xml +18 -18
  36. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/etc/config.xml +64 -64
  37. app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/etc/system.xml +28 -28
  38. app/code/local/Magmodules/{Webwinkelkeur/sql/webwinkelkeur_setup/mysql4-install-0.9.0.php → Webwinkelconnect/sql/webwinkelconnect_setup/mysql4-install-1.0.1.php} +7 -7
  39. app/code/local/Magmodules/Webwinkelkeur/Block/Adminhtml/Widget/Grid/Seconds.php +0 -34
  40. app/code/local/Magmodules/Webwinkelkeur/Model/Observer.php +0 -121
  41. app/design/adminhtml/default/default/layout/{magmodules_webwinkelkeur.xml → magmodules_webwinkelconnect.xml} +3 -3
  42. app/design/frontend/base/default/layout/magmodules_webwinkelconnect.xml +39 -0
  43. app/design/frontend/base/default/layout/magmodules_webwinkelkeur.xml +0 -39
  44. app/design/frontend/base/default/template/magmodules/{webwinkelkeur → webwinkelconnect}/index.phtml +7 -8
  45. app/design/frontend/base/default/template/magmodules/{webwinkelkeur → webwinkelconnect}/sidebar/js-sidebar.phtml +14 -14
  46. app/design/frontend/base/default/template/magmodules/{webwinkelkeur → webwinkelconnect}/sidebar/left.phtml +1 -1
  47. app/design/frontend/base/default/template/magmodules/{webwinkelkeur → webwinkelconnect}/sidebar/right.phtml +2 -2
  48. app/design/frontend/base/default/template/magmodules/{webwinkelkeur → webwinkelconnect}/widget/richsnippets.phtml +3 -3
  49. app/etc/modules/Magmodules_Webwinkelconnect.xml +9 -0
  50. app/etc/modules/Magmodules_Webwinkelkeur.xml +0 -9
  51. app/locale/en_US/{Magmodules_Webwinkelkeur.csv → Magmodules_Webwinkelconnect.csv} +0 -0
  52. app/locale/nl_NL/{Magmodules_Webwinkelkeur.csv → Magmodules_Webwinkelconnect.csv} +0 -0
  53. package.xml +7 -7
  54. skin/adminhtml/default/default/magmodules/{webwinkelkeur → webwinkelconnect}/grid.css +2 -2
  55. skin/adminhtml/default/default/magmodules/{webwinkelkeur → webwinkelconnect}/star.png +0 -0
  56. skin/frontend/base/default/magmodules/{webwinkelkeur → webwinkelconnect}/images/5-stars-empty.png +0 -0
  57. skin/frontend/base/default/magmodules/{webwinkelkeur → webwinkelconnect}/images/5-stars-full.png +0 -0
  58. skin/frontend/base/default/magmodules/{webwinkelkeur → webwinkelconnect}/images/greystar.png +0 -0
  59. skin/frontend/base/default/magmodules/{webwinkelkeur → webwinkelconnect}/images/star.png +0 -0
  60. skin/frontend/base/default/magmodules/{webwinkelkeur → webwinkelconnect}/richsnippets.css +2 -2
  61. skin/frontend/base/default/magmodules/{webwinkelkeur → webwinkelconnect}/sidebar.css +16 -11
  62. skin/frontend/base/default/magmodules/{webwinkelkeur → webwinkelconnect}/style.css +18 -13
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Webwinkellog.php RENAMED
@@ -13,25 +13,25 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Block_Adminhtml_Webwinkellog extends Mage_Adminhtml_Block_Widget_Grid_Container {
23
 
24
  public function __construct() {
25
  $this->_controller = 'adminhtml_webwinkellog';
26
- $this->_blockGroup = 'webwinkelkeur';
27
- $this->_headerText = Mage::helper('webwinkelkeur')->__('Webwinkelkeur Logs');
28
  parent::__construct();
29
  $this->_removeButton('add');
30
 
31
  $this->_addButton('module_controller', array(
32
- 'label' => Mage::helper('webwinkelkeur')->__('Cleanup Log'),
33
  'onclick' => "setLocation('{$this->getUrl('adminhtml/webwinkellog/clean')}')",
34
- 'confirm' => Mage::helper('webwinkelkeur')->__('Are you sure you want to cleanup logfiles?'),
35
  ));
36
 
37
  }
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Block_Adminhtml_Webwinkellog extends Mage_Adminhtml_Block_Widget_Grid_Container {
23
 
24
  public function __construct() {
25
  $this->_controller = 'adminhtml_webwinkellog';
26
+ $this->_blockGroup = 'webwinkelconnect';
27
+ $this->_headerText = Mage::helper('webwinkelconnect')->__('Webwinkelkeur Logs');
28
  parent::__construct();
29
  $this->_removeButton('add');
30
 
31
  $this->_addButton('module_controller', array(
32
+ 'label' => Mage::helper('webwinkelconnect')->__('Cleanup Log'),
33
  'onclick' => "setLocation('{$this->getUrl('adminhtml/webwinkellog/clean')}')",
34
+ 'confirm' => Mage::helper('webwinkelconnect')->__('Are you sure you want to cleanup logfiles?'),
35
  ));
36
 
37
  }
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Webwinkellog/Grid.php RENAMED
@@ -13,24 +13,24 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Block_Adminhtml_Webwinkellog_Grid extends Mage_Adminhtml_Block_Widget_Grid {
23
 
24
  public function __construct() {
25
  parent::__construct();
26
  $this->setId('webwinkellogGrid');
27
  $this->setDefaultSort('date');
28
- $this->setDefaultDir('DESC');
29
  $this->setSaveParametersInSession(true);
30
  }
31
 
32
  protected function _prepareCollection() {
33
- $collection = Mage::getModel('webwinkelkeur/log')->getCollection();
34
  $this->setCollection($collection);
35
  return parent::_prepareCollection();
36
  }
@@ -38,56 +38,56 @@ class Magmodules_Webwinkelkeur_Block_Adminhtml_Webwinkellog_Grid extends Mage_Ad
38
  protected function _prepareColumns() {
39
 
40
  $this->addColumn('company', array(
41
- 'header' => Mage::helper('webwinkelkeur')->__('Shop'),
42
  'index' => 'company',
43
  'width' => '120px',
44
  ));
45
 
46
  $this->addColumn('type', array(
47
- 'header' => Mage::helper('webwinkelkeur')->__('Type'),
48
  'align' => 'left',
49
  'index' => 'type',
50
  'width' => '120',
51
  'type' => 'options',
52
  'options' => array(
53
- 'reviews' => Mage::helper('webwinkelkeur')->__('Reviews'),
54
- 'invitation' => Mage::helper('webwinkelkeur')->__('Invitation Call'),
55
  ),
56
  ));
57
 
58
  $this->addColumn('qty', array(
59
- 'header' => Mage::helper('webwinkelkeur')->__('Description'),
60
  'align' => 'left',
61
  'index' => 'qty',
62
- 'renderer' => 'webwinkelkeur/adminhtml_widget_grid_log',
63
  'filter' => false,
64
  'sortable' => false,
65
  ));
66
 
67
  $this->addColumn('cron', array(
68
- 'header' => Mage::helper('webwinkelkeur')->__('Cron'),
69
  'align' => 'left',
70
  'index' => 'cron',
71
  'width' => '120',
72
  'type' => 'options',
73
  'options' => array(
74
- '' => Mage::helper('webwinkelkeur')->__('Manual'),
75
- 'stats' => Mage::helper('webwinkelkeur')->__('Stats Cron'),
76
- 'reviews' => Mage::helper('webwinkelkeur')->__('Reviews Cron'),
77
- 'orderupdate' => Mage::helper('webwinkelkeur')->__('Invitation'),
78
  ),
79
  ));
80
 
81
  $this->addColumn('time', array(
82
- 'header' => Mage::helper('webwinkelkeur')->__('Time'),
83
  'align' => 'left',
84
  'index' => 'time',
85
  'width' => '60',
86
- 'renderer' => 'webwinkelkeur/adminhtml_widget_grid_seconds',
87
  ));
88
 
89
  $this->addColumn('date', array(
90
- 'header' => Mage::helper('webwinkelkeur')->__('Date'),
91
  'align' => 'left',
92
  'type' => 'datetime',
93
  'index' => 'date',
@@ -102,7 +102,7 @@ class Magmodules_Webwinkelkeur_Block_Adminhtml_Webwinkellog_Grid extends Mage_Ad
102
  $this->getMassactionBlock()->setFormFieldName('logids');
103
 
104
  $this->getMassactionBlock()->addItem('hide', array(
105
- 'label' => Mage::helper('webwinkelkeur')->__('Delete'),
106
  'url' => $this->getUrl('*/*/massDelete'),
107
  ));
108
  return $this;
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Block_Adminhtml_Webwinkellog_Grid extends Mage_Adminhtml_Block_Widget_Grid {
23
 
24
  public function __construct() {
25
  parent::__construct();
26
  $this->setId('webwinkellogGrid');
27
  $this->setDefaultSort('date');
28
+ $this->setDefaultDir('ASC');
29
  $this->setSaveParametersInSession(true);
30
  }
31
 
32
  protected function _prepareCollection() {
33
+ $collection = Mage::getModel('webwinkelconnect/log')->getCollection();
34
  $this->setCollection($collection);
35
  return parent::_prepareCollection();
36
  }
38
  protected function _prepareColumns() {
39
 
40
  $this->addColumn('company', array(
41
+ 'header' => Mage::helper('webwinkelconnect')->__('Shop'),
42
  'index' => 'company',
43
  'width' => '120px',
44
  ));
45
 
46
  $this->addColumn('type', array(
47
+ 'header' => Mage::helper('webwinkelconnect')->__('Type'),
48
  'align' => 'left',
49
  'index' => 'type',
50
  'width' => '120',
51
  'type' => 'options',
52
  'options' => array(
53
+ 'reviews' => Mage::helper('webwinkelconnect')->__('Reviews'),
54
+ 'invitation' => Mage::helper('webwinkelconnect')->__('Invitation Call'),
55
  ),
56
  ));
57
 
58
  $this->addColumn('qty', array(
59
+ 'header' => Mage::helper('webwinkelconnect')->__('Description'),
60
  'align' => 'left',
61
  'index' => 'qty',
62
+ 'renderer' => 'webwinkelconnect/adminhtml_widget_grid_log',
63
  'filter' => false,
64
  'sortable' => false,
65
  ));
66
 
67
  $this->addColumn('cron', array(
68
+ 'header' => Mage::helper('webwinkelconnect')->__('Cron'),
69
  'align' => 'left',
70
  'index' => 'cron',
71
  'width' => '120',
72
  'type' => 'options',
73
  'options' => array(
74
+ '' => Mage::helper('webwinkelconnect')->__('Manual'),
75
+ 'stats' => Mage::helper('webwinkelconnect')->__('Stats Cron'),
76
+ 'reviews' => Mage::helper('webwinkelconnect')->__('Reviews Cron'),
77
+ 'orderupdate' => Mage::helper('webwinkelconnect')->__('Invitation'),
78
  ),
79
  ));
80
 
81
  $this->addColumn('time', array(
82
+ 'header' => Mage::helper('webwinkelconnect')->__('Time'),
83
  'align' => 'left',
84
  'index' => 'time',
85
  'width' => '60',
86
+ 'renderer' => 'webwinkelconnect/adminhtml_widget_grid_seconds',
87
  ));
88
 
89
  $this->addColumn('date', array(
90
+ 'header' => Mage::helper('webwinkelconnect')->__('Date'),
91
  'align' => 'left',
92
  'type' => 'datetime',
93
  'index' => 'date',
102
  $this->getMassactionBlock()->setFormFieldName('logids');
103
 
104
  $this->getMassactionBlock()->addItem('hide', array(
105
+ 'label' => Mage::helper('webwinkelconnect')->__('Delete'),
106
  'url' => $this->getUrl('*/*/massDelete'),
107
  ));
108
  return $this;
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Webwinkelreviews.php RENAMED
@@ -13,25 +13,25 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Block_Adminhtml_Webwinkelreviews extends Mage_Adminhtml_Block_Widget_Grid_Container {
23
 
24
  public function __construct() {
25
  $this->_controller = 'adminhtml_webwinkelreviews';
26
- $this->_blockGroup = 'webwinkelkeur';
27
- $this->_headerText = Mage::helper('webwinkelkeur')->__('WebwinkelKeur Reviews');
28
  parent::__construct();
29
  $this->_removeButton('add');
30
 
31
  $this->_addButton('module_controller', array(
32
- 'label' => Mage::helper('webwinkelkeur')->__('Delete all reviews'),
33
  'onclick' => "setLocation('{$this->getUrl('adminhtml/webwinkelreviews/truncate')}')",
34
- 'confirm' => Mage::helper('webwinkelkeur')->__('Are you sure you want to delete all reviews?'),
35
  ));
36
 
37
  }
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Block_Adminhtml_Webwinkelreviews extends Mage_Adminhtml_Block_Widget_Grid_Container {
23
 
24
  public function __construct() {
25
  $this->_controller = 'adminhtml_webwinkelreviews';
26
+ $this->_blockGroup = 'webwinkelconnect';
27
+ $this->_headerText = Mage::helper('webwinkelconnect')->__('WebwinkelKeur Reviews');
28
  parent::__construct();
29
  $this->_removeButton('add');
30
 
31
  $this->_addButton('module_controller', array(
32
+ 'label' => Mage::helper('webwinkelconnect')->__('Delete all reviews'),
33
  'onclick' => "setLocation('{$this->getUrl('adminhtml/webwinkelreviews/truncate')}')",
34
+ 'confirm' => Mage::helper('webwinkelconnect')->__('Are you sure you want to delete all reviews?'),
35
  ));
36
 
37
  }
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Webwinkelreviews/Grid.php RENAMED
@@ -13,13 +13,13 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Block_Adminhtml_Webwinkelreviews_Grid extends Mage_Adminhtml_Block_Widget_Grid {
23
 
24
  public function __construct() {
25
  parent::__construct();
@@ -30,7 +30,7 @@ class Magmodules_Webwinkelkeur_Block_Adminhtml_Webwinkelreviews_Grid extends Mag
30
  }
31
 
32
  protected function _prepareCollection() {
33
- $collection = Mage::getModel('webwinkelkeur/reviews')->getCollection();
34
  $this->setCollection($collection);
35
  return parent::_prepareCollection();
36
  }
@@ -38,76 +38,76 @@ class Magmodules_Webwinkelkeur_Block_Adminhtml_Webwinkelreviews_Grid extends Mag
38
  protected function _prepareColumns() {
39
 
40
  $this->addColumn('company', array(
41
- 'header' => Mage::helper('webwinkelkeur')->__('Shop'),
42
  'index' => 'company',
43
  'width' => '120px',
44
  ));
45
 
46
  $this->addColumn('name', array(
47
- 'header' => Mage::helper('webwinkelkeur')->__('Name'),
48
  'align' => 'left',
49
  'index' => 'name',
50
  ));
51
 
52
  $this->addColumn('experience', array(
53
- 'header' => Mage::helper('webwinkelkeur')->__('Experience'),
54
  'align' => 'left',
55
  'index' => 'experience',
56
- 'renderer' => 'webwinkelkeur/adminhtml_webwinkelreviews_renderer_experience',
57
  ));
58
 
59
  $this->addColumn('rating', array(
60
- 'header' => Mage::helper('webwinkelkeur')->__('Rating'),
61
  'align' => 'left',
62
  'index' => 'rating',
63
- 'renderer' => 'webwinkelkeur/adminhtml_widget_grid_stars',
64
  'width' => '90',
65
  'filter' => false,
66
  'sortable' => true,
67
  ));
68
 
69
  $this->addColumn('delivery_time', array(
70
- 'header' => Mage::helper('webwinkelkeur')->__('Delivery Time'),
71
  'align' => 'left',
72
  'index' => 'delivery_time',
73
- 'renderer' => 'webwinkelkeur/adminhtml_widget_grid_stars',
74
  'width' => '90',
75
  'filter' => false,
76
  'sortable' => true,
77
  ));
78
 
79
  $this->addColumn('userfriendlyness', array(
80
- 'header' => Mage::helper('webwinkelkeur')->__('Userfriendlyness'),
81
  'align' => 'left',
82
  'index' => 'userfriendlyness',
83
- 'renderer' => 'webwinkelkeur/adminhtml_widget_grid_stars',
84
  'width' => '90',
85
  'filter' => false,
86
  'sortable' => true,
87
  ));
88
 
89
  $this->addColumn('price_quality', array(
90
- 'header' => Mage::helper('webwinkelkeur')->__('Price / Quality'),
91
  'align' => 'left',
92
  'index' => 'price_quality',
93
- 'renderer' => 'webwinkelkeur/adminhtml_widget_grid_stars',
94
  'width' => '90',
95
  'filter' => false,
96
  'sortable' => true,
97
  ));
98
 
99
  $this->addColumn('aftersales', array(
100
- 'header' => Mage::helper('webwinkelkeur')->__('Aftersales'),
101
  'align' => 'left',
102
  'index' => 'aftersales',
103
- 'renderer' => 'webwinkelkeur/adminhtml_widget_grid_stars',
104
  'width' => '90',
105
  'filter' => false,
106
  'sortable' => true,
107
  ));
108
 
109
  $this->addColumn('date', array(
110
- 'header' => Mage::helper('webwinkelkeur')->__('Date'),
111
  'align' => 'left',
112
  'type' => 'date',
113
  'index' => 'date',
@@ -115,26 +115,26 @@ class Magmodules_Webwinkelkeur_Block_Adminhtml_Webwinkelreviews_Grid extends Mag
115
  ));
116
 
117
  $this->addColumn('sidebar', array(
118
- 'header' => Mage::helper('webwinkelkeur')->__('Sidebar'),
119
  'align' => 'left',
120
  'width' => '80px',
121
  'index' => 'sidebar',
122
  'type' => 'options',
123
  'options' => array(
124
- 0 => Mage::helper('webwinkelkeur')->__('No'),
125
- 1 => Mage::helper('webwinkelkeur')->__('Yes'),
126
  ),
127
  ));
128
 
129
  $this->addColumn('status', array(
130
- 'header' => Mage::helper('webwinkelkeur')->__('Active'),
131
  'align' => 'left',
132
  'width' => '80px',
133
  'index' => 'status',
134
  'type' => 'options',
135
  'options' => array(
136
- 0 => Mage::helper('webwinkelkeur')->__('No'),
137
- 1 => Mage::helper('webwinkelkeur')->__('Yes'),
138
  ),
139
  ));
140
 
@@ -146,19 +146,19 @@ class Magmodules_Webwinkelkeur_Block_Adminhtml_Webwinkelreviews_Grid extends Mag
146
  $this->getMassactionBlock()->setFormFieldName('reviewids');
147
 
148
  $this->getMassactionBlock()->addItem('hide', array(
149
- 'label' => Mage::helper('webwinkelkeur')->__('Set to invisible'),
150
  'url' => $this->getUrl('*/*/massDisable'),
151
  ));
152
  $this->getMassactionBlock()->addItem('visible', array(
153
- 'label' => Mage::helper('webwinkelkeur')->__('Set to visible'),
154
  'url' => $this->getUrl('*/*/massEnable'),
155
  ));
156
  $this->getMassactionBlock()->addItem('addsidebar', array(
157
- 'label' => Mage::helper('webwinkelkeur')->__('Add to Sidebar'),
158
  'url' => $this->getUrl('*/*/massEnableSidebar'),
159
  ));
160
  $this->getMassactionBlock()->addItem('removesidebar', array(
161
- 'label' => Mage::helper('webwinkelkeur')->__('Remove from Sidebar'),
162
  'url' => $this->getUrl('*/*/massDisableSidebar'),
163
  ));
164
  return $this;
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnectconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Block_Adminhtml_Webwinkelreviews_Grid extends Mage_Adminhtml_Block_Widget_Grid {
23
 
24
  public function __construct() {
25
  parent::__construct();
30
  }
31
 
32
  protected function _prepareCollection() {
33
+ $collection = Mage::getModel('webwinkelconnect/reviews')->getCollection();
34
  $this->setCollection($collection);
35
  return parent::_prepareCollection();
36
  }
38
  protected function _prepareColumns() {
39
 
40
  $this->addColumn('company', array(
41
+ 'header' => Mage::helper('webwinkelconnect')->__('Shop'),
42
  'index' => 'company',
43
  'width' => '120px',
44
  ));
45
 
46
  $this->addColumn('name', array(
47
+ 'header' => Mage::helper('webwinkelconnect')->__('Name'),
48
  'align' => 'left',
49
  'index' => 'name',
50
  ));
51
 
52
  $this->addColumn('experience', array(
53
+ 'header' => Mage::helper('webwinkelconnect')->__('Experience'),
54
  'align' => 'left',
55
  'index' => 'experience',
56
+ 'renderer' => 'webwinkelconnect/adminhtml_webwinkelreviews_renderer_experience',
57
  ));
58
 
59
  $this->addColumn('rating', array(
60
+ 'header' => Mage::helper('webwinkelconnect')->__('Rating'),
61
  'align' => 'left',
62
  'index' => 'rating',
63
+ 'renderer' => 'webwinkelconnect/adminhtml_widget_grid_stars',
64
  'width' => '90',
65
  'filter' => false,
66
  'sortable' => true,
67
  ));
68
 
69
  $this->addColumn('delivery_time', array(
70
+ 'header' => Mage::helper('webwinkelconnect')->__('Delivery Time'),
71
  'align' => 'left',
72
  'index' => 'delivery_time',
73
+ 'renderer' => 'webwinkelconnect/adminhtml_widget_grid_stars',
74
  'width' => '90',
75
  'filter' => false,
76
  'sortable' => true,
77
  ));
78
 
79
  $this->addColumn('userfriendlyness', array(
80
+ 'header' => Mage::helper('webwinkelconnect')->__('Userfriendlyness'),
81
  'align' => 'left',
82
  'index' => 'userfriendlyness',
83
+ 'renderer' => 'webwinkelconnect/adminhtml_widget_grid_stars',
84
  'width' => '90',
85
  'filter' => false,
86
  'sortable' => true,
87
  ));
88
 
89
  $this->addColumn('price_quality', array(
90
+ 'header' => Mage::helper('webwinkelconnect')->__('Price / Quality'),
91
  'align' => 'left',
92
  'index' => 'price_quality',
93
+ 'renderer' => 'webwinkelconnect/adminhtml_widget_grid_stars',
94
  'width' => '90',
95
  'filter' => false,
96
  'sortable' => true,
97
  ));
98
 
99
  $this->addColumn('aftersales', array(
100
+ 'header' => Mage::helper('webwinkelconnect')->__('Aftersales'),
101
  'align' => 'left',
102
  'index' => 'aftersales',
103
+ 'renderer' => 'webwinkelconnect/adminhtml_widget_grid_stars',
104
  'width' => '90',
105
  'filter' => false,
106
  'sortable' => true,
107
  ));
108
 
109
  $this->addColumn('date', array(
110
+ 'header' => Mage::helper('webwinkelconnect')->__('Date'),
111
  'align' => 'left',
112
  'type' => 'date',
113
  'index' => 'date',
115
  ));
116
 
117
  $this->addColumn('sidebar', array(
118
+ 'header' => Mage::helper('webwinkelconnect')->__('Sidebar'),
119
  'align' => 'left',
120
  'width' => '80px',
121
  'index' => 'sidebar',
122
  'type' => 'options',
123
  'options' => array(
124
+ 0 => Mage::helper('webwinkelconnect')->__('No'),
125
+ 1 => Mage::helper('webwinkelconnect')->__('Yes'),
126
  ),
127
  ));
128
 
129
  $this->addColumn('status', array(
130
+ 'header' => Mage::helper('webwinkelconnect')->__('Active'),
131
  'align' => 'left',
132
  'width' => '80px',
133
  'index' => 'status',
134
  'type' => 'options',
135
  'options' => array(
136
+ 0 => Mage::helper('webwinkelconnect')->__('No'),
137
+ 1 => Mage::helper('webwinkelconnect')->__('Yes'),
138
  ),
139
  ));
140
 
146
  $this->getMassactionBlock()->setFormFieldName('reviewids');
147
 
148
  $this->getMassactionBlock()->addItem('hide', array(
149
+ 'label' => Mage::helper('webwinkelconnect')->__('Set to invisible'),
150
  'url' => $this->getUrl('*/*/massDisable'),
151
  ));
152
  $this->getMassactionBlock()->addItem('visible', array(
153
+ 'label' => Mage::helper('webwinkelconnect')->__('Set to visible'),
154
  'url' => $this->getUrl('*/*/massEnable'),
155
  ));
156
  $this->getMassactionBlock()->addItem('addsidebar', array(
157
+ 'label' => Mage::helper('webwinkelconnect')->__('Add to Sidebar'),
158
  'url' => $this->getUrl('*/*/massEnableSidebar'),
159
  ));
160
  $this->getMassactionBlock()->addItem('removesidebar', array(
161
+ 'label' => Mage::helper('webwinkelconnect')->__('Remove from Sidebar'),
162
  'url' => $this->getUrl('*/*/massDisableSidebar'),
163
  ));
164
  return $this;
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Webwinkelreviews/Renderer/Experience.php RENAMED
@@ -13,19 +13,19 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Block_Adminhtml_Webwinkelreviews_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 = '120';
27
  if(strlen($value) > $char_limit) {
28
- $content_small = Mage::helper('core/string')->truncate($value, $char_limit, ' ... <a href="#" class="magtooltip" alt="">' . Mage::helper('webwinkelkeur')->__('(more)'), $_remainder, false);
29
  $content = $content_small . '<span>' . $value . '</span></a>';
30
  return $content;
31
  } else {
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnectconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Block_Adminhtml_Webwinkelreviews_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 = '120';
27
  if(strlen($value) > $char_limit) {
28
+ $content_small = Mage::helper('core/string')->truncate($value, $char_limit, ' ... <a href="#" class="magtooltip" alt="">' . Mage::helper('webwinkelconnect')->__('(more)'), $_remainder, false);
29
  $content = $content_small . '<span>' . $value . '</span></a>';
30
  return $content;
31
  } else {
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Widget/Buttons/Process.php RENAMED
@@ -13,13 +13,13 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_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);
@@ -28,7 +28,7 @@ class Magmodules_Webwinkelkeur_Block_Adminhtml_Widget_Buttons_Process extends Ma
28
  $html = $this->getLayout()->createBlock('adminhtml/widget_button')
29
  ->setType('button')
30
  ->setClass('scalable')
31
- ->setLabel(Mage::helper('webwinkelkeur')->__('Process Manually'))
32
  ->setOnClick("setLocation('$url')")
33
  ->toHtml();
34
 
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_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);
28
  $html = $this->getLayout()->createBlock('adminhtml/widget_button')
29
  ->setType('button')
30
  ->setClass('scalable')
31
+ ->setLabel(Mage::helper('webwinkelconnect')->__('Process Manually'))
32
  ->setOnClick("setLocation('$url')")
33
  ->toHtml();
34
 
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Widget/Buttons/Test.php RENAMED
@@ -13,13 +13,13 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_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
  $this->setElement($element);
@@ -27,7 +27,7 @@ class Magmodules_Webwinkelkeur_Block_Adminhtml_Widget_Buttons_Test extends Mage_
27
  $html = $this->getLayout()->createBlock('adminhtml/widget_button')
28
  ->setType('button')
29
  ->setClass('scalable')
30
- ->setLabel(Mage::helper('webwinkelkeur')->__('Test API'))
31
  ->setOnClick("setLocation('$url')")
32
  ->toHtml();
33
  return $html;
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_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
  $this->setElement($element);
27
  $html = $this->getLayout()->createBlock('adminhtml/widget_button')
28
  ->setType('button')
29
  ->setClass('scalable')
30
+ ->setLabel(Mage::helper('webwinkelconnect')->__('Test API'))
31
  ->setOnClick("setLocation('$url')")
32
  ->toHtml();
33
  return $html;
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Widget/Form/Heading.php RENAMED
@@ -13,16 +13,15 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_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()
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_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()
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Widget/Grid/Log.php RENAMED
@@ -15,7 +15,7 @@
15
  * =============================================================
16
  */
17
 
18
- class Magmodules_Webwinkelkeur_Block_Adminhtml_Widget_Grid_Log extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
19
 
20
  public function render(Varien_Object $row) {
21
  $type = $row->getType();
@@ -24,20 +24,20 @@ class Magmodules_Webwinkelkeur_Block_Adminhtml_Widget_Grid_Log extends Mage_Admi
24
  if($type == 'reviews') {
25
  $updates = '';
26
  if($row->getReviewNew() > 0) {
27
- $msg .= Mage::helper('webwinkelkeur')->__('%s new review(s)', $row->getReviewNew());
28
  $updates++;
29
  }
30
  if($row->getReviewUpdate() > 0) {
31
  if($updates > 0) {
32
  $msg .= ', ';
33
  }
34
- $msg .= Mage::helper('webwinkelkeur')->__('%s review(s) updated', $row->getReviewUpdate());
35
  $updates++;
36
  }
37
  if($updates > 0) {
38
  $msg .= ' & ';
39
  }
40
- $msg .= Mage::helper('webwinkelkeur')->__('total score updated.');
41
  }
42
 
43
  if($type == 'invitation') {
@@ -45,7 +45,7 @@ class Magmodules_Webwinkelkeur_Block_Adminhtml_Widget_Grid_Log extends Mage_Admi
45
  $order = Mage::getModel('sales/order')->load($row->getOrderId());
46
  $increment_id = $order->getIncrementId();
47
  $order_url = Mage::helper('adminhtml')->getUrl("adminhtml/sales_order/view", array('order_id'=> $row->getOrderId()));
48
- $msg = Mage::helper('webwinkelkeur')->__('%s - Repsonse: %s', '<a href="' . $order_url . '">#' . $increment_id .'</a>', $row->getResponse());
49
  }
50
  }
51
 
15
  * =============================================================
16
  */
17
 
18
+ class Magmodules_Webwinkelconnect_Block_Adminhtml_Widget_Grid_Log extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
19
 
20
  public function render(Varien_Object $row) {
21
  $type = $row->getType();
24
  if($type == 'reviews') {
25
  $updates = '';
26
  if($row->getReviewNew() > 0) {
27
+ $msg .= Mage::helper('webwinkelconnect')->__('%s new review(s)', $row->getReviewNew());
28
  $updates++;
29
  }
30
  if($row->getReviewUpdate() > 0) {
31
  if($updates > 0) {
32
  $msg .= ', ';
33
  }
34
+ $msg .= Mage::helper('webwinkelconnect')->__('%s review(s) updated', $row->getReviewUpdate());
35
  $updates++;
36
  }
37
  if($updates > 0) {
38
  $msg .= ' & ';
39
  }
40
+ $msg .= Mage::helper('webwinkelconnect')->__('total score updated.');
41
  }
42
 
43
  if($type == 'invitation') {
45
  $order = Mage::getModel('sales/order')->load($row->getOrderId());
46
  $increment_id = $order->getIncrementId();
47
  $order_url = Mage::helper('adminhtml')->getUrl("adminhtml/sales_order/view", array('order_id'=> $row->getOrderId()));
48
+ $msg = Mage::helper('webwinkelconnect')->__('%s - Repsonse: %s', '<a href="' . $order_url . '">#' . $increment_id .'</a>', $row->getResponse());
49
  }
50
  }
51
 
app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Grid/Seconds.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_Webwinkelconnect
17
+ * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Block_Adminhtml_Widget_Grid_Seconds 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
+ if($value > 0) {
27
+ $value = number_format($value, 3, '.', '');
28
+ }
29
+ return $value;
30
+ }
31
+
32
+ }
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Widget/Grid/Stars.php RENAMED
@@ -13,13 +13,13 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_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());
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_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());
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Adminhtml/Widget/Info/Info.php RENAMED
@@ -14,16 +14,15 @@
14
  * to info@magmodules.eu so we can send you a copy immediately.
15
  *
16
  * @category Magmodules
17
- * @package Magmodules_Webwinkelkeur
18
  * @author Magmodules <info@magmodules.eu)
19
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
 
23
- class Magmodules_Webwinkelkeur_Block_Adminhtml_Widget_Info_Info extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
24
 
25
- public function render(Varien_Data_Form_Element_Abstract $element)
26
- {
27
  $html = '<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;">
28
  <h4>About Magmodules.eu</h4>
29
  <p>We are a Magento only E-commerce Agency located in the Netherlands.<br>
@@ -50,7 +49,7 @@ class Magmodules_Webwinkelkeur_Block_Adminhtml_Widget_Info_Info extends Mage_Adm
50
  </tr>
51
  </table>
52
  </div>';
53
-
54
  return $html;
55
  }
56
- }
 
14
  * to info@magmodules.eu so we can send you a copy immediately.
15
  *
16
  * @category Magmodules
17
+ * @package Magmodules_Webwinkelconnect
18
  * @author Magmodules <info@magmodules.eu)
19
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
 
23
+ class Magmodules_Webwinkelconnect_Block_Adminhtml_Widget_Info_Info extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
24
 
25
+ public function render(Varien_Data_Form_Element_Abstract $element) {
 
26
  $html = '<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>
49
  </tr>
50
  </table>
51
  </div>';
 
52
  return $html;
53
  }
54
+
55
+ }
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Reviews.php RENAMED
@@ -13,13 +13,13 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Block_Reviews extends Mage_Core_Block_Template {
23
 
24
  public function __construct() {
25
  parent::__construct();
@@ -27,22 +27,22 @@ class Magmodules_Webwinkelkeur_Block_Reviews extends Mage_Core_Block_Template {
27
  // TODO CHECK IF IS ENABLED (extension & index page)
28
 
29
  // Load Reviews
30
- $collection = Mage::getModel('webwinkelkeur/reviews')->getCollection();
31
  $collection->setOrder('date', 'DESC');
32
  $collection->addFieldToFilter('status',1);
33
- $collection->addFieldToFilter('shop_id', Mage::getStoreConfig('webwinkelkeur/general/api_id'));
34
  $this->setReviews($collection);
35
 
36
  // Load Stats
37
- $stats = Mage::getModel('webwinkelkeur/stats')->load(Mage::getStoreConfig('webwinkelkeur/general/api_id'), 'shop_id');
38
  $this->setStats($stats);
39
  }
40
 
41
  public function _prepareLayout() {
42
  parent::_prepareLayout();
43
- $pager = $this->getLayout()->createBlock('page/html_pager', 'webwinkelkeur.pager');
44
- if(Mage::getStoreConfig('webwinkelkeur/overview/enable_paging')) {
45
- $fieldPerPage = Mage::getStoreConfig('webwinkelkeur/overview/paging_settings');
46
  $fieldPerPage = explode(',', $fieldPerPage);
47
  $fieldPerPage = array_combine($fieldPerPage, $fieldPerPage);
48
  $pager->setAvailableLimit($fieldPerPage);
@@ -60,7 +60,7 @@ class Magmodules_Webwinkelkeur_Block_Reviews extends Mage_Core_Block_Template {
60
  }
61
 
62
  public function getFormUrl() {
63
- return $this->helper('webwinkelkeur')->getFormUrl();
64
  }
65
 
66
  }
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Block_Reviews extends Mage_Core_Block_Template {
23
 
24
  public function __construct() {
25
  parent::__construct();
27
  // TODO CHECK IF IS ENABLED (extension & index page)
28
 
29
  // Load Reviews
30
+ $collection = Mage::getModel('webwinkelconnect/reviews')->getCollection();
31
  $collection->setOrder('date', 'DESC');
32
  $collection->addFieldToFilter('status',1);
33
+ $collection->addFieldToFilter('shop_id', Mage::getStoreConfig('webwinkelconnect/general/api_id'));
34
  $this->setReviews($collection);
35
 
36
  // Load Stats
37
+ $stats = Mage::getModel('webwinkelconnect/stats')->load(Mage::getStoreConfig('webwinkelconnect/general/api_id'), 'shop_id');
38
  $this->setStats($stats);
39
  }
40
 
41
  public function _prepareLayout() {
42
  parent::_prepareLayout();
43
+ $pager = $this->getLayout()->createBlock('page/html_pager', 'webwinkelconnect.pager');
44
+ if(Mage::getStoreConfig('webwinkelconnect/overview/enable_paging')) {
45
+ $fieldPerPage = Mage::getStoreConfig('webwinkelconnect/overview/paging_settings');
46
  $fieldPerPage = explode(',', $fieldPerPage);
47
  $fieldPerPage = array_combine($fieldPerPage, $fieldPerPage);
48
  $pager->setAvailableLimit($fieldPerPage);
60
  }
61
 
62
  public function getFormUrl() {
63
+ return $this->helper('webwinkelconnect')->getFormUrl();
64
  }
65
 
66
  }
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Sidebar.php RENAMED
@@ -13,13 +13,13 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Block_Sidebar extends Mage_Core_Block_Template {
23
 
24
  protected function _construct() {
25
  parent::_construct();
@@ -31,17 +31,17 @@ class Magmodules_Webwinkelkeur_Block_Sidebar extends Mage_Core_Block_Template {
31
  $qty = '5';
32
 
33
  if($sidebar == 'left'):
34
- $qty = Mage::getStoreConfig('webwinkelkeur/sidebar/left_qty');
35
- $enabled = Mage::getStoreConfig('webwinkelkeur/sidebar/left');
36
  endif;
37
  if($sidebar == 'right'):
38
- $qty = Mage::getStoreConfig('webwinkelkeur/sidebar/right_qty');
39
- $enabled = Mage::getStoreConfig('webwinkelkeur/sidebar/right');
40
  endif;
41
 
42
  if($enabled):
43
- $shop_id = Mage::getStoreConfig('webwinkelkeur/general/api_id');
44
- $collection = Mage::getModel("webwinkelkeur/reviews")->getCollection();
45
  $collection->setOrder('date', 'DESC');
46
  $collection->addFieldToFilter('status',1);
47
  $collection->addFieldToFilter('sidebar',1);
@@ -59,10 +59,10 @@ class Magmodules_Webwinkelkeur_Block_Sidebar extends Mage_Core_Block_Template {
59
  $content = $sidebarreview->getExperience();
60
 
61
  if($sidebar == 'left'):
62
- $char_limit = Mage::getStoreConfig('webwinkelkeur/sidebar/left_lenght');
63
  endif;
64
  if($sidebar == 'right'):
65
- $char_limit = Mage::getStoreConfig('webwinkelkeur/sidebar/right_lenght');
66
  endif;
67
 
68
  $content = Mage::helper('core/string')->truncate($content, $char_limit, ' ...', $_remainder, false);
@@ -73,18 +73,18 @@ class Magmodules_Webwinkelkeur_Block_Sidebar extends Mage_Core_Block_Template {
73
  function getReviewsUrl($sidebar = 'left') {
74
 
75
  if($sidebar == 'left'):
76
- $link = Mage::getStoreConfig('webwinkelkeur/sidebar/left_link');
77
  endif;
78
  if($sidebar == 'right'):
79
- $link = Mage::getStoreConfig('webwinkelkeur/sidebar/left_right');
80
  endif;
81
 
82
  if($link == 'internal'):
83
- $url = $this->getUrl('webwinkelkeur');
84
  endif;
85
  if($link == 'external'):
86
- $url = Mage::getStoreConfig('webwinkelkeur/general/url');
87
- $class = 'webwinkelkeurReviews';
88
  endif;
89
 
90
  if($url) {
@@ -96,7 +96,7 @@ class Magmodules_Webwinkelkeur_Block_Sidebar extends Mage_Core_Block_Template {
96
  }
97
 
98
  function getSnippetsEnabled($sidebar = 'left') {
99
- $enabled = Mage::getStoreConfig('webwinkelkeur/snippets/sidebar');
100
  $homepage = Mage::getBlockSingleton('page/html_header')->getIsHomePage();
101
 
102
  if($enabled && $homepage) {
@@ -107,7 +107,7 @@ class Magmodules_Webwinkelkeur_Block_Sidebar extends Mage_Core_Block_Template {
107
  }
108
 
109
  public function getTotalScore() {
110
- return $this->helper('webwinkelkeur')->getTotalScore();
111
  }
112
 
113
  }
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Block_Sidebar extends Mage_Core_Block_Template {
23
 
24
  protected function _construct() {
25
  parent::_construct();
31
  $qty = '5';
32
 
33
  if($sidebar == 'left'):
34
+ $qty = Mage::getStoreConfig('webwinkelconnect/sidebar/left_qty');
35
+ $enabled = Mage::getStoreConfig('webwinkelconnect/sidebar/left');
36
  endif;
37
  if($sidebar == 'right'):
38
+ $qty = Mage::getStoreConfig('webwinkelconnect/sidebar/right_qty');
39
+ $enabled = Mage::getStoreConfig('webwinkelconnect/sidebar/right');
40
  endif;
41
 
42
  if($enabled):
43
+ $shop_id = Mage::getStoreConfig('webwinkelconnect/general/api_id');
44
+ $collection = Mage::getModel("webwinkelconnect/reviews")->getCollection();
45
  $collection->setOrder('date', 'DESC');
46
  $collection->addFieldToFilter('status',1);
47
  $collection->addFieldToFilter('sidebar',1);
59
  $content = $sidebarreview->getExperience();
60
 
61
  if($sidebar == 'left'):
62
+ $char_limit = Mage::getStoreConfig('webwinkelconnect/sidebar/left_lenght');
63
  endif;
64
  if($sidebar == 'right'):
65
+ $char_limit = Mage::getStoreConfig('webwinkelconnect/sidebar/right_lenght');
66
  endif;
67
 
68
  $content = Mage::helper('core/string')->truncate($content, $char_limit, ' ...', $_remainder, false);
73
  function getReviewsUrl($sidebar = 'left') {
74
 
75
  if($sidebar == 'left'):
76
+ $link = Mage::getStoreConfig('webwinkelconnect/sidebar/left_link');
77
  endif;
78
  if($sidebar == 'right'):
79
+ $link = Mage::getStoreConfig('webwinkelconnect/sidebar/left_right');
80
  endif;
81
 
82
  if($link == 'internal'):
83
+ $url = $this->getUrl('webwinkelconnect');
84
  endif;
85
  if($link == 'external'):
86
+ $url = Mage::getStoreConfig('webwinkelconnect/general/url');
87
+ $class = 'webwinkelconnectReviews';
88
  endif;
89
 
90
  if($url) {
96
  }
97
 
98
  function getSnippetsEnabled($sidebar = 'left') {
99
+ $enabled = Mage::getStoreConfig('webwinkelconnect/snippets/sidebar');
100
  $homepage = Mage::getBlockSingleton('page/html_header')->getIsHomePage();
101
 
102
  if($enabled && $homepage) {
107
  }
108
 
109
  public function getTotalScore() {
110
+ return $this->helper('webwinkelconnect')->getTotalScore();
111
  }
112
 
113
  }
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Block/Snippets.php RENAMED
@@ -13,39 +13,39 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Block_Snippets extends Mage_Core_Block_Template {
23
 
24
  protected function _construct()
25
  {
26
- if(Mage::getStoreConfig('webwinkelkeur/general/enabled')) {
27
  $this->setSnippetsEnabled(1);
28
  } else {
29
  $this->setSnippetsEnabled(0);
30
  }
31
 
32
  parent::_construct();
33
- $this->setTemplate('magmodules/webwinkelkeur/widget/richsnippets.phtml');
34
  }
35
 
36
  public function getSnippets()
37
  {
38
- return $this->helper('webwinkelkeur')->getTotalScore();
39
  }
40
 
41
  public function getHtmlStars($rating)
42
  {
43
- return $this->helper('webwinkelkeur')->getHtmlStars($rating);
44
  }
45
 
46
  public function getExternalLink()
47
  {
48
- return $this->helper('webwinkelkeur')->getExternalLink();
49
  }
50
 
51
  }
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Block_Snippets extends Mage_Core_Block_Template {
23
 
24
  protected function _construct()
25
  {
26
+ if(Mage::getStoreConfig('webwinkelconnect/general/enabled')) {
27
  $this->setSnippetsEnabled(1);
28
  } else {
29
  $this->setSnippetsEnabled(0);
30
  }
31
 
32
  parent::_construct();
33
+ $this->setTemplate('magmodules/webwinkelconnect/widget/richsnippets.phtml');
34
  }
35
 
36
  public function getSnippets()
37
  {
38
+ return $this->helper('webwinkelconnect')->getTotalScore();
39
  }
40
 
41
  public function getHtmlStars($rating)
42
  {
43
+ return $this->helper('webwinkelconnect')->getHtmlStars($rating);
44
  }
45
 
46
  public function getExternalLink()
47
  {
48
+ return $this->helper('webwinkelconnect')->getExternalLink();
49
  }
50
 
51
  }
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Helper/Data.php RENAMED
@@ -13,18 +13,18 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Helper_Data extends Mage_Core_Helper_Abstract {
23
 
24
  public function getTotalScore() {
25
  $qty = 0; $rating = 0;
26
- $shop_id = Mage::getStoreConfig('webwinkelkeur/general/api_id');
27
- $review_stats = Mage::getModel('webwinkelkeur/stats')->load($shop_id, 'shop_id');
28
  if($review_stats->getAverage() > 0) {
29
  $review_stats->setPercentage($review_stats->getAverage());
30
  $review_stats->setStarsQty(number_format(($review_stats->getPercentage() / 20), 2, '.', ''));
@@ -35,8 +35,8 @@ class Magmodules_Webwinkelkeur_Helper_Data extends Mage_Core_Helper_Abstract {
35
  }
36
 
37
  function getExternalLink() {
38
- if(Mage::getStoreConfig('webwinkelkeur/general/url')) {
39
- return Mage::helper('webwinkelkeur')->__('on') . ' <a href="' . Mage::getStoreConfig('webwinkelkeur/general/url'). '" target="_blank">WebwinkelKeur.nl</a>';
40
  } else {
41
  return false;
42
  }
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Helper_Data extends Mage_Core_Helper_Abstract {
23
 
24
  public function getTotalScore() {
25
  $qty = 0; $rating = 0;
26
+ $shop_id = Mage::getStoreConfig('webwinkelconnect/general/api_id');
27
+ $review_stats = Mage::getModel('webwinkelconnect/stats')->load($shop_id, 'shop_id');
28
  if($review_stats->getAverage() > 0) {
29
  $review_stats->setPercentage($review_stats->getAverage());
30
  $review_stats->setStarsQty(number_format(($review_stats->getPercentage() / 20), 2, '.', ''));
35
  }
36
 
37
  function getExternalLink() {
38
+ if(Mage::getStoreConfig('webwinkelconnect/general/url')) {
39
+ return Mage::helper('webwinkelconnect')->__('on') . ' <a href="' . Mage::getStoreConfig('webwinkelconnect/general/url'). '" target="_blank">WebwinkelKeur.nl</a>';
40
  } else {
41
  return false;
42
  }
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Api.php RENAMED
@@ -13,18 +13,18 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Model_Api extends Mage_Core_Model_Abstract {
23
 
24
  public function processFeed($storeid = 0, $type) {
25
  if($feed = $this->getFeed($storeid, $type)) {
26
- $results = Mage::getModel('webwinkelkeur/reviews')->processFeed($feed, $storeid, $type);
27
- $results['stats'] = Mage::getModel('webwinkelkeur/stats')->processFeed($feed, $storeid);
28
  return $results;
29
  } else {
30
  return false;
@@ -32,8 +32,8 @@ class Magmodules_Webwinkelkeur_Model_Api extends Mage_Core_Model_Abstract {
32
  }
33
 
34
  public function getFeed($storeid, $type = '') {
35
- $api_id = Mage::getStoreConfig('webwinkelkeur/general/api_id', $storeid);
36
- $api_key = Mage::getStoreConfig('webwinkelkeur/general/api_key', $storeid);
37
 
38
  if($type != 'stats') {
39
  $api_url = 'https://www.webwinkelkeur.nl/apistatistics.php?id=' . $api_id . '&password=' . $api_key . '&showall=1';
@@ -57,11 +57,11 @@ class Magmodules_Webwinkelkeur_Model_Api extends Mage_Core_Model_Abstract {
57
  $start_time = microtime(true);
58
  $crontype = 'orderupdate';
59
  $order_id = $order->getIncrementId();
60
- $api_id = Mage::getStoreConfig('webwinkelkeur/general/api_id', $order->getStoreId());
61
- $api_key = Mage::getStoreConfig('webwinkelkeur/general/api_key', $order->getStoreId());
62
- $delay = Mage::getStoreConfig('webwinkelkeur/invitation/delay', $order->getStoreId());
63
  $email = $order->getCustomerEmail();
64
- $api_url = 'https://www.webwinkelkeur.nl/api.php?id=' . $api_id . '&password=' . $api_key . '&email=' . $email . '&order=' . $order_id . '&delay=' . $delay;
65
 
66
  // Connect to API
67
  $winkelconnect = curl_init($api_url);
@@ -75,14 +75,14 @@ class Magmodules_Webwinkelkeur_Model_Api extends Mage_Core_Model_Abstract {
75
  curl_close($winkelconnect);
76
 
77
  // Write to log
78
- $writelog = Mage::getModel('webwinkelkeur/log')->addToLog('invitation', $order->getStoreId(), '', $repsonse, (microtime(true) - $start_time), $crontype, $api_url, $order->getId());
79
  return true;
80
  }
81
 
82
  public function getStoreIds() {
83
  $resource = Mage::getSingleton('core/resource');
84
  $read = $resource->getConnection('core_read');
85
- $query = "SELECT DISTINCT value, scope_id FROM " . $resource->getTableName('core/config_data') . " WHERE path LIKE 'webwinkelkeur/general/api_id'";
86
  $results = $read->fetchAll($query);
87
  $storeids = array();
88
 
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Model_Api extends Mage_Core_Model_Abstract {
23
 
24
  public function processFeed($storeid = 0, $type) {
25
  if($feed = $this->getFeed($storeid, $type)) {
26
+ $results = Mage::getModel('webwinkelconnect/reviews')->processFeed($feed, $storeid, $type);
27
+ $results['stats'] = Mage::getModel('webwinkelconnect/stats')->processFeed($feed, $storeid);
28
  return $results;
29
  } else {
30
  return false;
32
  }
33
 
34
  public function getFeed($storeid, $type = '') {
35
+ $api_id = Mage::getStoreConfig('webwinkelconnect/general/api_id', $storeid);
36
+ $api_key = Mage::getStoreConfig('webwinkelconnect/general/api_key', $storeid);
37
 
38
  if($type != 'stats') {
39
  $api_url = 'https://www.webwinkelkeur.nl/apistatistics.php?id=' . $api_id . '&password=' . $api_key . '&showall=1';
57
  $start_time = microtime(true);
58
  $crontype = 'orderupdate';
59
  $order_id = $order->getIncrementId();
60
+ $api_id = Mage::getStoreConfig('webwinkelconnect/general/api_id', $order->getStoreId());
61
+ $api_key = Mage::getStoreConfig('webwinkelconnect/general/api_key', $order->getStoreId());
62
+ $delay = Mage::getStoreConfig('webwinkelconnect/invitation/delay', $order->getStoreId());
63
  $email = $order->getCustomerEmail();
64
+ $api_url = 'https://www.webwinkelconnect.nl/api.php?id=' . $api_id . '&password=' . $api_key . '&email=' . $email . '&order=' . $order_id . '&delay=' . $delay;
65
 
66
  // Connect to API
67
  $winkelconnect = curl_init($api_url);
75
  curl_close($winkelconnect);
76
 
77
  // Write to log
78
+ $writelog = Mage::getModel('webwinkelconnect/log')->addToLog('invitation', $order->getStoreId(), '', $repsonse, (microtime(true) - $start_time), $crontype, $api_url, $order->getId());
79
  return true;
80
  }
81
 
82
  public function getStoreIds() {
83
  $resource = Mage::getSingleton('core/resource');
84
  $read = $resource->getConnection('core_read');
85
+ $query = "SELECT DISTINCT value, scope_id FROM " . $resource->getTableName('core/config_data') . " WHERE path LIKE 'webwinkelconnect/general/api_id'";
86
  $results = $read->fetchAll($query);
87
  $storeids = array();
88
 
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Log.php RENAMED
@@ -13,25 +13,25 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Model_Log extends Mage_Core_Model_Abstract {
23
 
24
  public function _construct() {
25
  parent::_construct();
26
- $this->_init('webwinkelkeur/log');
27
  }
28
 
29
  public function addToLog($type, $storeid, $review = '', $inivation = '', $time, $crontype = '', $api_url = '', $orderid = '') {
30
 
31
- if(Mage::getStoreConfig('webwinkelkeur/log/enabled')) {
32
 
33
- $api_id = Mage::getStoreConfig('webwinkelkeur/general/api_id', $storeid);
34
- $company = Mage::getStoreConfig('webwinkelkeur/general/company', $storeid);
35
  $review_updates = '';
36
  $review_new = '';
37
 
@@ -41,7 +41,7 @@ class Magmodules_Webwinkelkeur_Model_Log extends Mage_Core_Model_Abstract {
41
  $review_new = $review['review_new'];
42
  }
43
 
44
- $model = Mage::getModel('webwinkelkeur/log');
45
  $model->setType($type)
46
  ->setShopId($api_id)
47
  ->setCompany($company)
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Model_Log extends Mage_Core_Model_Abstract {
23
 
24
  public function _construct() {
25
  parent::_construct();
26
+ $this->_init('webwinkelconnect/log');
27
  }
28
 
29
  public function addToLog($type, $storeid, $review = '', $inivation = '', $time, $crontype = '', $api_url = '', $orderid = '') {
30
 
31
+ if(Mage::getStoreConfig('webwinkelconnect/log/enabled')) {
32
 
33
+ $api_id = Mage::getStoreConfig('webwinkelconnect/general/api_id', $storeid);
34
+ $company = Mage::getStoreConfig('webwinkelconnect/general/company', $storeid);
35
  $review_updates = '';
36
  $review_new = '';
37
 
41
  $review_new = $review['review_new'];
42
  }
43
 
44
+ $model = Mage::getModel('webwinkelconnect/log');
45
  $model->setType($type)
46
  ->setShopId($api_id)
47
  ->setCompany($company)
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Mysql4/Log.php RENAMED
@@ -13,16 +13,16 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Model_Mysql4_Log extends Mage_Core_Model_Mysql4_Abstract {
23
 
24
  public function _construct() {
25
- $this->_init('webwinkelkeur/log', 'id');
26
  }
27
 
28
  }
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Model_Mysql4_Log extends Mage_Core_Model_Mysql4_Abstract {
23
 
24
  public function _construct() {
25
+ $this->_init('webwinkelconnect/log', 'id');
26
  }
27
 
28
  }
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Mysql4/Log/Collection.php RENAMED
@@ -13,17 +13,17 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Model_Mysql4_Log_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
23
 
24
  public function _construct() {
25
  parent::_construct();
26
- $this->_init('webwinkelkeur/log');
27
  }
28
 
29
  }
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Model_Mysql4_Log_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
23
 
24
  public function _construct() {
25
  parent::_construct();
26
+ $this->_init('webwinkelconnect/log');
27
  }
28
 
29
  }
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Mysql4/Reviews.php RENAMED
@@ -13,16 +13,16 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Model_Mysql4_Reviews extends Mage_Core_Model_Mysql4_Abstract {
23
 
24
  public function _construct() {
25
- $this->_init('webwinkelkeur/reviews', 'review_id');
26
  }
27
 
28
  }
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Model_Mysql4_Reviews extends Mage_Core_Model_Mysql4_Abstract {
23
 
24
  public function _construct() {
25
+ $this->_init('webwinkelconnect/reviews', 'review_id');
26
  }
27
 
28
  }
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Mysql4/Reviews/Collection.php RENAMED
@@ -13,17 +13,17 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Model_Mysql4_Reviews_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
23
 
24
  public function _construct() {
25
  parent::_construct();
26
- $this->_init('webwinkelkeur/reviews');
27
  }
28
 
29
  }
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Model_Mysql4_Reviews_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
23
 
24
  public function _construct() {
25
  parent::_construct();
26
+ $this->_init('webwinkelconnect/reviews');
27
  }
28
 
29
  }
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Mysql4/Stats.php RENAMED
@@ -13,16 +13,16 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Model_Mysql4_Stats extends Mage_Core_Model_Mysql4_Abstract {
23
 
24
  public function _construct() {
25
- $this->_init('webwinkelkeur/stats', 'id');
26
  }
27
 
28
  }
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Model_Mysql4_Stats extends Mage_Core_Model_Mysql4_Abstract {
23
 
24
  public function _construct() {
25
+ $this->_init('webwinkelconnect/stats', 'id');
26
  }
27
 
28
  }
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Mysql4/Stats/Collection.php RENAMED
@@ -13,17 +13,17 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Model_Mysql4_Stats_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
23
 
24
  public function _construct() {
25
  parent::_construct();
26
- $this->_init('webwinkelkeur/stats');
27
  }
28
 
29
  }
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Model_Mysql4_Stats_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
23
 
24
  public function _construct() {
25
  parent::_construct();
26
+ $this->_init('webwinkelconnect/stats');
27
  }
28
 
29
  }
app/code/local/Magmodules/Webwinkelconnect/Model/Observer.php ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_Webwinkelconnect
17
+ * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Model_Observer {
23
+
24
+ public function processStats() {
25
+ $storeids = Mage::getModel('webwinkelconnect/api')->getStoreIds();
26
+ foreach($storeids as $storeid) {
27
+ $enabled = Mage::getStoreConfig('webwinkelconnect/general/enabled', $storeid);
28
+ $cron_enabled = Mage::getStoreConfig('webwinkelconnect/reviews/cron', $storeid);
29
+ if($enabled && $cron_enabled) {
30
+ $crontype = 'stats';
31
+ $start_time = microtime(true);
32
+ $feed = Mage::getModel('webwinkelconnect/api')->getFeed($storeid, $crontype);
33
+ $resuls = array();
34
+ $results['stats'] = Mage::getModel('webwinkelconnect/stats')->processFeed($feed, $storeid);
35
+ $results['company'] = $feed->company;
36
+ $log = Mage::getModel('webwinkelconnect/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
37
+ }
38
+ }
39
+ }
40
+
41
+ public function processReviews() {
42
+ $storeids = Mage::getModel('webwinkelconnect/api')->getStoreIds();
43
+ foreach($storeids as $storeid) {
44
+ $enabled = Mage::getStoreConfig('webwinkelconnect/general/enabled', $storeid);
45
+ $cron_enabled = Mage::getStoreConfig('webwinkelconnect/reviews/cron', $storeid);
46
+ if($enabled && $cron_enabled) {
47
+ $crontype = 'reviews';
48
+ $start_time = microtime(true);
49
+ $feed = Mage::getModel('webwinkelconnect/api')->getFeed($storeid, $type);
50
+ $results = Mage::getModel('webwinkelconnect/reviews')->processFeed($feed, $storeid, $crontype);
51
+ $results['stats'] = Mage::getModel('webwinkelconnect/stats')->processFeed($feed, $storeid, $type);
52
+ $log = Mage::getModel('webwinkelconnect/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
53
+ }
54
+ }
55
+ }
56
+
57
+ public function processHistory() {
58
+ $storeids = Mage::getModel('webwinkelconnect/api')->getStoreIds();
59
+ foreach($storeids as $storeid) {
60
+ $enabled = Mage::getStoreConfig('webwinkelconnect/general/enabled', $storeid);
61
+ $cron_enabled = Mage::getStoreConfig('webwinkelconnect/reviews/cron', $storeid);
62
+ if($enabled && $cron_enabled) {
63
+ $crontype = 'history';
64
+ $start_time = microtime(true); $storeid = 0;
65
+ $feed = Mage::getModel('webwinkelconnect/api')->getFeed($storeid, $type);
66
+ $results = Mage::getModel('webwinkelconnect/reviews')->processFeed($feed, $storeid, $crontype);
67
+ $results['stats'] = Mage::getModel('webwinkelconnect/stats')->processFeed($feed, $storeid);
68
+ $log = Mage::getModel('webwinkelconnect/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
69
+ }
70
+ }
71
+ }
72
+
73
+ public function cleanLog() {
74
+ $enabled = Mage::getStoreConfig('webwinkelconnect/log/clean', 0);
75
+ $days = Mage::getStoreConfig('webwinkelconnect/log/clean_days', 0);
76
+ if(($enabled) && ($days > 0)) {
77
+ $logmodel = Mage::getModel('webwinkelconnect/log');
78
+ $deldate = date('Y-m-d', strtotime('-' . $days . ' days'));
79
+ $logs = $logmodel->getCollection()->addFieldToSelect('id')->addFieldToFilter('date', array('lteq' => $deldate));
80
+ foreach ($logs as $log) {
81
+ $logmodel->load($log->getId())->delete();
82
+ }
83
+ }
84
+ }
85
+
86
+ public function processInvitationcallAfterShipment($observer) {
87
+ $shipment = $observer->getEvent()->getShipment();
88
+ $order = $shipment->getOrder();
89
+ if((Mage::getStoreConfig('webwinkelconnect/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('webwinkelconnect/general/api_key', $order->getStoreId()))):
90
+ if($order->getStatus() == Mage::getStoreConfig('webwinkelconnect/invitation/status', $order->getStoreId())):
91
+ if(Mage::getStoreConfig('webwinkelconnect/invitation/backlog', $order->getStoreId()) > 0):
92
+ $date_diff = floor(time() - strtotime($order->getCreatedAt()))/(60*60*24);
93
+ if($date_diff < Mage::getStoreConfig('webwinkelconnect/invitation/backlog', $order->getStoreId())):
94
+ Mage::getModel('webwinkelconnect/api')->sendInvitation($order);
95
+ endif;
96
+ else:
97
+ Mage::getModel('webwinkelconnect/api')->sendInvitation($order);
98
+ endif;
99
+ endif;
100
+ endif;
101
+ }
102
+
103
+ public function processInvitationcall($observer) {
104
+ $order = $observer->getEvent()->getOrder();
105
+ if((Mage::getStoreConfig('webwinkelconnect/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('webwinkelconnect/general/api_key', $order->getStoreId()))):
106
+ if($order->getStatus() == Mage::getStoreConfig('webwinkelconnect/invitation/status', $order->getStoreId())):
107
+ if(Mage::getStoreConfig('webwinkelconnect/invitation/backlog', $order->getStoreId()) > 0):
108
+ $date_diff = floor(time() - strtotime($order->getCreatedAt()))/(60*60*24);
109
+ if($date_diff < Mage::getStoreConfig('webwinkelconnect/invitation/backlog', $order->getStoreId())):
110
+ Mage::log('SEND!');
111
+ $value = Mage::getModel('webwinkelconnect/api')->sendInvitation($order);
112
+ Mage::log($value);
113
+ endif;
114
+ else:
115
+ Mage::getModel('webwinkelconnect/api')->sendInvitation($order);
116
+ endif;
117
+ endif;
118
+ endif;
119
+ }
120
+
121
+ }
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Reviews.php RENAMED
@@ -13,17 +13,17 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Model_Reviews extends Mage_Core_Model_Abstract {
23
 
24
  public function _construct() {
25
  parent::_construct();
26
- $this->_init('webwinkelkeur/reviews');
27
  }
28
 
29
  public function loadbyHash($hash) {
@@ -34,7 +34,7 @@ class Magmodules_Webwinkelkeur_Model_Reviews extends Mage_Core_Model_Abstract {
34
  public function processFeed($feed, $storeid = 0, $type) {
35
 
36
  $updates = 0; $new = 0; $history = 0;
37
- $api_id = Mage::getStoreConfig('webwinkelkeur/general/api_id', $storeid);
38
  $company = $feed->company;
39
 
40
  foreach($feed->reviews->review as $review) {
@@ -51,7 +51,7 @@ class Magmodules_Webwinkelkeur_Model_Reviews extends Mage_Core_Model_Abstract {
51
 
52
  if($indatabase->getReviewId()) {
53
  if($type == 'history') {
54
- $reviews = Mage::getModel('webwinkelkeur/reviews');
55
  $reviews->setReviewId($indatabase->getReviewId())
56
  ->setShopId($api_id)
57
  ->setCompany($company)
@@ -70,7 +70,7 @@ class Magmodules_Webwinkelkeur_Model_Reviews extends Mage_Core_Model_Abstract {
70
  break;
71
  }
72
  } else {
73
- $reviews = Mage::getModel('webwinkelkeur/reviews');
74
  $reviews->setShopId($api_id)
75
  ->setCompany($company)
76
  ->setHash($hash)
@@ -88,7 +88,7 @@ class Magmodules_Webwinkelkeur_Model_Reviews extends Mage_Core_Model_Abstract {
88
  }
89
 
90
  $config = new Mage_Core_Model_Config();
91
- $config->saveConfig('webwinkelkeur/reviews/lastrun', now(), 'default', $storeid);
92
  $result = array();
93
  $result['review_updates'] = $updates;
94
  $result['review_new'] = $new;
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Model_Reviews extends Mage_Core_Model_Abstract {
23
 
24
  public function _construct() {
25
  parent::_construct();
26
+ $this->_init('webwinkelconnect/reviews');
27
  }
28
 
29
  public function loadbyHash($hash) {
34
  public function processFeed($feed, $storeid = 0, $type) {
35
 
36
  $updates = 0; $new = 0; $history = 0;
37
+ $api_id = Mage::getStoreConfig('webwinkelconnect/general/api_id', $storeid);
38
  $company = $feed->company;
39
 
40
  foreach($feed->reviews->review as $review) {
51
 
52
  if($indatabase->getReviewId()) {
53
  if($type == 'history') {
54
+ $reviews = Mage::getModel('webwinkelconnect/reviews');
55
  $reviews->setReviewId($indatabase->getReviewId())
56
  ->setShopId($api_id)
57
  ->setCompany($company)
70
  break;
71
  }
72
  } else {
73
+ $reviews = Mage::getModel('webwinkelconnect/reviews');
74
  $reviews->setShopId($api_id)
75
  ->setCompany($company)
76
  ->setHash($hash)
88
  }
89
 
90
  $config = new Mage_Core_Model_Config();
91
+ $config->saveConfig('webwinkelconnect/reviews/lastrun', now(), 'default', $storeid);
92
  $result = array();
93
  $result['review_updates'] = $updates;
94
  $result['review_new'] = $new;
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/Stats.php RENAMED
@@ -13,30 +13,30 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Model_Stats extends Mage_Core_Model_Abstract {
23
 
24
  public function _construct() {
25
  parent::_construct();
26
- $this->_init('webwinkelkeur/stats');
27
  }
28
 
29
  public function processFeed($feed, $storeid = 0) {
30
- $api_id = Mage::getStoreConfig('webwinkelkeur/general/api_id', $storeid);
31
 
32
  if($storeid == 0) {
33
  $config = new Mage_Core_Model_Config();
34
- $config->saveConfig('webwinkelkeur/general/url', $feed->link, 'default', $storeid);
35
- $config->saveConfig('webwinkelkeur/general/company', $feed->company, 'default', $storeid);
36
  } else {
37
  $config = new Mage_Core_Model_Config();
38
- $config->saveConfig('webwinkelkeur/general/url', $feed->link, 'stores', $storeid);
39
- $config->saveConfig('webwinkelkeur/general/company', $feed->company, 'stores', $storeid);
40
  }
41
 
42
  if($feed->votes > 0) {
@@ -61,7 +61,7 @@ class Magmodules_Webwinkelkeur_Model_Stats extends Mage_Core_Model_Abstract {
61
  }
62
 
63
  // Save Review Stats
64
- $model = Mage::getModel('webwinkelkeur/stats');
65
  $model->setId($id)
66
  ->setShopId($api_id)
67
  ->setCompany($company)
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Model_Stats extends Mage_Core_Model_Abstract {
23
 
24
  public function _construct() {
25
  parent::_construct();
26
+ $this->_init('webwinkelconnect/stats');
27
  }
28
 
29
  public function processFeed($feed, $storeid = 0) {
30
+ $api_id = Mage::getStoreConfig('webwinkelconnect/general/api_id', $storeid);
31
 
32
  if($storeid == 0) {
33
  $config = new Mage_Core_Model_Config();
34
+ $config->saveConfig('webwinkelconnect/general/url', $feed->link, 'default', $storeid);
35
+ $config->saveConfig('webwinkelconnect/general/company', $feed->company, 'default', $storeid);
36
  } else {
37
  $config = new Mage_Core_Model_Config();
38
+ $config->saveConfig('webwinkelconnect/general/url', $feed->link, 'stores', $storeid);
39
+ $config->saveConfig('webwinkelconnect/general/company', $feed->company, 'stores', $storeid);
40
  }
41
 
42
  if($feed->votes > 0) {
61
  }
62
 
63
  // Save Review Stats
64
+ $model = Mage::getModel('webwinkelconnect/stats');
65
  $model->setId($id)
66
  ->setShopId($api_id)
67
  ->setCompany($company)
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/System/Config/Source/Cronfrequency.php RENAMED
@@ -13,22 +13,22 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Model_System_Config_Source_Cronfrequency {
23
 
24
  public function toOptionArray() {
25
  return array(
26
- '*/15 * * * *' => Mage::helper('webwinkelkeur')->__('Every 15 minutes'),
27
- '0 * * * *' => Mage::helper('webwinkelkeur')->__('Every Hour'),
28
- '0 */2 * * *' => Mage::helper('webwinkelkeur')->__('Every other Hour'),
29
- '0 8,20 * * *' => Mage::helper('webwinkelkeur')->__('Twice a Day'),
30
- '0 02 * * *' => Mage::helper('webwinkelkeur')->__('Once a Day'),
31
- '0 02 0 * *' => Mage::helper('webwinkelkeur')->__('Once a Week'),
32
  );
33
  }
34
 
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Model_System_Config_Source_Cronfrequency {
23
 
24
  public function toOptionArray() {
25
  return array(
26
+ '*/15 * * * *' => Mage::helper('webwinkelconnect')->__('Every 15 minutes'),
27
+ '0 * * * *' => Mage::helper('webwinkelconnect')->__('Every Hour'),
28
+ '0 */2 * * *' => Mage::helper('webwinkelconnect')->__('Every other Hour'),
29
+ '0 8,20 * * *' => Mage::helper('webwinkelconnect')->__('Twice a Day'),
30
+ '0 02 * * *' => Mage::helper('webwinkelconnect')->__('Once a Day'),
31
+ '0 02 0 * *' => Mage::helper('webwinkelconnect')->__('Once a Week'),
32
  );
33
  }
34
 
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/System/Config/Source/Orderstatus.php RENAMED
@@ -13,20 +13,20 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_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('webwinkelkeur') -> __('-- none')));
30
 
31
  foreach($statuses as $k=>$v) {
32
  $options[] = array('label' => $v, 'value' => $k);
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_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('webwinkelconnect') -> __('-- none')));
30
 
31
  foreach($statuses as $k=>$v) {
32
  $options[] = array('label' => $v, 'value' => $k);
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/System/Config/Source/Position.php RENAMED
@@ -13,18 +13,18 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Model_System_Config_Source_Position {
23
 
24
  public function toOptionArray() {
25
  $position = array();
26
- $position[] = array('value'=>'left', 'label'=> Mage::helper('webwinkelkeur')->__('Left'));
27
- $position[] = array('value'=>'right', 'label'=> Mage::helper('webwinkelkeur')->__('Right'));
28
  return $position;
29
  }
30
 
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Model_System_Config_Source_Position {
23
 
24
  public function toOptionArray() {
25
  $position = array();
26
+ $position[] = array('value'=>'left', 'label'=> Mage::helper('webwinkelconnect')->__('Left'));
27
+ $position[] = array('value'=>'right', 'label'=> Mage::helper('webwinkelconnect')->__('Right'));
28
  return $position;
29
  }
30
 
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/Model/System/Config/Source/Sidebarlink.php RENAMED
@@ -13,19 +13,19 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Model_System_Config_Source_Sidebarlink {
23
 
24
  public function toOptionArray() {
25
  return array(
26
- '' => Mage::helper('webwinkelkeur')->__('None'),
27
- 'external' => Mage::helper('webwinkelkeur')->__('External (Webwinkelkeur.nl)'),
28
- 'internal' => Mage::helper('webwinkelkeur')->__('Internal (/webwinkelkeur)'),
29
  );
30
  }
31
 
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Model_System_Config_Source_Sidebarlink {
23
 
24
  public function toOptionArray() {
25
  return array(
26
+ '' => Mage::helper('webwinkelconnect')->__('None'),
27
+ 'external' => Mage::helper('webwinkelconnect')->__('External (Webwinkelkeur.nl)'),
28
+ 'internal' => Mage::helper('webwinkelconnect')->__('Internal (/webwinkelkeur)'),
29
  );
30
  }
31
 
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/controllers/Adminhtml/WebwinkellogController.php RENAMED
@@ -13,16 +13,16 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Adminhtml_WebwinkellogController extends Mage_Adminhtml_Controller_Action {
23
 
24
  protected function _initAction() {
25
- $this->loadLayout()->_setActiveMenu('webwinkelkeur/webwinkelreviews')->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
26
  return $this;
27
  }
28
 
@@ -33,13 +33,13 @@ class Magmodules_Webwinkelkeur_Adminhtml_WebwinkellogController extends Mage_Adm
33
  public function massDeleteAction() {
34
  $LogIds = $this->getRequest()->getParam('logids');
35
  if(!is_array($LogIds)) {
36
- Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelkeur')->__('Please select item(s)'));
37
  } else {
38
  try {
39
  foreach ($LogIds as $id) {
40
- $log = Mage::getModel('webwinkelkeur/log')->load($id)->delete();
41
  }
42
- Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('webwinkelkeur')->__('Total of %d log record(s) deleted.', count($LogIds)));
43
  } catch (Exception $e) {
44
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
45
  }
@@ -48,18 +48,18 @@ class Magmodules_Webwinkelkeur_Adminhtml_WebwinkellogController extends Mage_Adm
48
  }
49
 
50
  public function cleanAction() {
51
- $enabled = Mage::getStoreConfig('webwinkelkeur/log/clean');
52
- $days = Mage::getStoreConfig('webwinkelkeur/log/clean_days');
53
  $i = 0;
54
  if(($enabled) && ($days > 0)) {
55
- $logmodel = Mage::getModel('webwinkelkeur/log');
56
  $deldate = date('Y-m-d', strtotime('-' . $days . ' days'));
57
  $logs = $logmodel->getCollection()->addFieldToSelect('id')->addFieldToFilter('date', array('lteq' => $deldate));
58
  foreach ($logs as $log) {
59
  $logmodel->load($log->getId())->delete();
60
  $i++;
61
  }
62
- Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('webwinkelkeur')->__('Total of %s log record(s) deleted.', $i));
63
  }
64
  $this->_redirect('*/*/index');
65
  }
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Adminhtml_WebwinkellogController extends Mage_Adminhtml_Controller_Action {
23
 
24
  protected function _initAction() {
25
+ $this->loadLayout()->_setActiveMenu('wwebwinkelconnect/webwinkelreviews')->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
26
  return $this;
27
  }
28
 
33
  public function massDeleteAction() {
34
  $LogIds = $this->getRequest()->getParam('logids');
35
  if(!is_array($LogIds)) {
36
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('wwebwinkelconnect')->__('Please select item(s)'));
37
  } else {
38
  try {
39
  foreach ($LogIds as $id) {
40
+ $log = Mage::getModel('wwebwinkelconnect/log')->load($id)->delete();
41
  }
42
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('wwebwinkelconnect')->__('Total of %d log record(s) deleted.', count($LogIds)));
43
  } catch (Exception $e) {
44
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
45
  }
48
  }
49
 
50
  public function cleanAction() {
51
+ $enabled = Mage::getStoreConfig('wwebwinkelconnect/log/clean');
52
+ $days = Mage::getStoreConfig('wwebwinkelconnect/log/clean_days');
53
  $i = 0;
54
  if(($enabled) && ($days > 0)) {
55
+ $logmodel = Mage::getModel('wwebwinkelconnect/log');
56
  $deldate = date('Y-m-d', strtotime('-' . $days . ' days'));
57
  $logs = $logmodel->getCollection()->addFieldToSelect('id')->addFieldToFilter('date', array('lteq' => $deldate));
58
  foreach ($logs as $log) {
59
  $logmodel->load($log->getId())->delete();
60
  $i++;
61
  }
62
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('wwebwinkelconnect')->__('Total of %s log record(s) deleted.', $i));
63
  }
64
  $this->_redirect('*/*/index');
65
  }
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/controllers/Adminhtml/WebwinkelreviewsController.php RENAMED
@@ -13,16 +13,16 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Adminhtml_WebwinkelreviewsController extends Mage_Adminhtml_Controller_Action {
23
 
24
  protected function _initAction() {
25
- $this->loadLayout()->_setActiveMenu('webwinkelkeur/webwinkelreviews')->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
26
  return $this;
27
  }
28
 
@@ -31,47 +31,47 @@ class Magmodules_Webwinkelkeur_Adminhtml_WebwinkelreviewsController extends Mage
31
  }
32
 
33
  public function processAction() {
34
- $storeids = Mage::getModel('webwinkelkeur/api')->getStoreIds();
35
  $start_time = microtime(true);
36
  foreach($storeids as $storeid) {
37
  $msg = '';
38
- $api_id = Mage::getStoreConfig('webwinkelkeur/general/api_id', $storeid);
39
- $result = Mage::getModel('webwinkelkeur/api')->processFeed($storeid, 'history');
40
- $log = Mage::getModel('webwinkelkeur/log')->addToLog('reviews', $storeid, $result, '', (microtime(true) - $start_time), '', '');
41
 
42
  if(($result['review_new'] > 0) || ($result['review_updates'] > 0) || ($result['stats'] == true)) {
43
- $msg = Mage::helper('webwinkelkeur')->__('Webwinkel ID %s:', $api_id) . ' ';
44
- $msg .= Mage::helper('webwinkelkeur')->__('%s new review(s)', $result['review_new']) . ', ';
45
- $msg .= Mage::helper('webwinkelkeur')->__('%s review(s) updated', $result['review_updates']) . ' & ';
46
- $msg .= Mage::helper('webwinkelkeur')->__('and total score updated.');
47
  }
48
 
49
  if($msg) {
50
  Mage::getSingleton('adminhtml/session')->addSuccess($msg);
51
  } else {
52
- Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelkeur')->__('Webwinkel ID %s: no updates found, feed is empty or not foud!', $api_id));
53
  }
54
  }
55
- $this->_redirect('adminhtml/system_config/edit/section/webwinkelkeur');
56
  }
57
 
58
  public function testapiAction() {
59
- Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('webwinkelkeur')->__('TODO: repsonse code van de API', $xml));
60
- Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelkeur')->__('TODO: repsonse code van de API', $xml));
61
- $this->_redirect('adminhtml/system_config/edit/section/webwinkelkeur');
62
  }
63
 
64
  public function massDisableAction() {
65
  $reviewIds = $this->getRequest()->getParam('reviewids');
66
  if(!is_array($reviewIds)) {
67
- Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelkeur')->__('Please select item(s)'));
68
  } else {
69
  try {
70
  foreach ($reviewIds as $review_id) {
71
- $reviews = Mage::getModel('webwinkelkeur/reviews')->load($review_id);
72
  $reviews->setStatus(0)->save();
73
  }
74
- Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('webwinkelkeur')->__('Total of %d review(s) were disabled.', count($reviewIds)));
75
  } catch (Exception $e) {
76
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
77
  }
@@ -82,14 +82,14 @@ class Magmodules_Webwinkelkeur_Adminhtml_WebwinkelreviewsController extends Mage
82
  public function massEnableAction() {
83
  $reviewIds = $this->getRequest()->getParam('reviewids');
84
  if(!is_array($reviewIds)) {
85
- Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelkeur')->__('Please select item(s)'));
86
  } else {
87
  try {
88
  foreach ($reviewIds as $review_id) {
89
- $reviews = Mage::getModel('webwinkelkeur/reviews')->load($review_id);
90
  $reviews->setStatus(1)->save();
91
  }
92
- Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('webwinkelkeur')->__('Total of %d review(s) were enabled.', count($reviewIds)));
93
  } catch (Exception $e) {
94
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
95
  }
@@ -100,14 +100,14 @@ class Magmodules_Webwinkelkeur_Adminhtml_WebwinkelreviewsController extends Mage
100
  public function massEnableSidebarAction() {
101
  $reviewIds = $this->getRequest()->getParam('reviewids');
102
  if(!is_array($reviewIds)) {
103
- Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelkeur')->__('Please select item(s)'));
104
  } else {
105
  try {
106
  foreach ($reviewIds as $review_id) {
107
- $reviews = Mage::getModel('webwinkelkeur/reviews')->load($review_id);
108
  $reviews->setSidebar(1)->save();
109
  }
110
- Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('webwinkelkeur')->__('Total of %d review(s) were added to the sidebar.', count($reviewIds)));
111
  } catch (Exception $e) {
112
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
113
  }
@@ -118,14 +118,14 @@ class Magmodules_Webwinkelkeur_Adminhtml_WebwinkelreviewsController extends Mage
118
  public function massDisableSidebarAction() {
119
  $reviewIds = $this->getRequest()->getParam('reviewids');
120
  if(!is_array($reviewIds)) {
121
- Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelkeur')->__('Please select item(s)'));
122
  } else {
123
  try {
124
  foreach ($reviewIds as $review_id) {
125
- $reviews = Mage::getModel('webwinkelkeur/reviews')->load($review_id);
126
  $reviews->setSidebar(0)->save();
127
  }
128
- Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('webwinkelkeur')->__('Total of %d review(s) were removed from the sidebar.', count($reviewIds)));
129
  } catch (Exception $e) {
130
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
131
  }
@@ -135,12 +135,12 @@ class Magmodules_Webwinkelkeur_Adminhtml_WebwinkelreviewsController extends Mage
135
 
136
  public function truncateAction() {
137
  $i = 0;
138
- $collection = Mage::getModel('webwinkelkeur/reviews')->getCollection();
139
  foreach ($collection as $item) {
140
  $item->delete();
141
  $i++;
142
  }
143
- Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('webwinkelkeur')->__('Succefully deleted all %s saved review(s).', $i));
144
  $this->_redirect('*/*/index');
145
  }
146
 
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_Adminhtml_WebwinkelreviewsController extends Mage_Adminhtml_Controller_Action {
23
 
24
  protected function _initAction() {
25
+ $this->loadLayout()->_setActiveMenu('webwinkelconnect/webwinkelreviews')->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
26
  return $this;
27
  }
28
 
31
  }
32
 
33
  public function processAction() {
34
+ $storeids = Mage::getModel('webwinkelconnect/api')->getStoreIds();
35
  $start_time = microtime(true);
36
  foreach($storeids as $storeid) {
37
  $msg = '';
38
+ $api_id = Mage::getStoreConfig('webwinkelconnect/general/api_id', $storeid);
39
+ $result = Mage::getModel('webwinkelconnect/api')->processFeed($storeid, 'history');
40
+ $log = Mage::getModel('webwinkelconnect/log')->addToLog('reviews', $storeid, $result, '', (microtime(true) - $start_time), '', '');
41
 
42
  if(($result['review_new'] > 0) || ($result['review_updates'] > 0) || ($result['stats'] == true)) {
43
+ $msg = Mage::helper('webwinkelconnect')->__('Webwinkel ID %s:', $api_id) . ' ';
44
+ $msg .= Mage::helper('webwinkelconnect')->__('%s new review(s)', $result['review_new']) . ', ';
45
+ $msg .= Mage::helper('webwinkelconnect')->__('%s review(s) updated', $result['review_updates']) . ' & ';
46
+ $msg .= Mage::helper('webwinkelconnect')->__('and total score updated.');
47
  }
48
 
49
  if($msg) {
50
  Mage::getSingleton('adminhtml/session')->addSuccess($msg);
51
  } else {
52
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('Webwinkel ID %s: no updates found, feed is empty or not foud!', $api_id));
53
  }
54
  }
55
+ $this->_redirect('adminhtml/system_config/edit/section/webwinkelconnect');
56
  }
57
 
58
  public function testapiAction() {
59
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('webwinkelconnect')->__('TODO: repsonse code van de API', $xml));
60
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('TODO: repsonse code van de API', $xml));
61
+ $this->_redirect('adminhtml/system_config/edit/section/webwinkelconnect');
62
  }
63
 
64
  public function massDisableAction() {
65
  $reviewIds = $this->getRequest()->getParam('reviewids');
66
  if(!is_array($reviewIds)) {
67
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('Please select item(s)'));
68
  } else {
69
  try {
70
  foreach ($reviewIds as $review_id) {
71
+ $reviews = Mage::getModel('webwinkelconnect/reviews')->load($review_id);
72
  $reviews->setStatus(0)->save();
73
  }
74
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('webwinkelconnect')->__('Total of %d review(s) were disabled.', count($reviewIds)));
75
  } catch (Exception $e) {
76
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
77
  }
82
  public function massEnableAction() {
83
  $reviewIds = $this->getRequest()->getParam('reviewids');
84
  if(!is_array($reviewIds)) {
85
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('Please select item(s)'));
86
  } else {
87
  try {
88
  foreach ($reviewIds as $review_id) {
89
+ $reviews = Mage::getModel('webwinkelconnect/reviews')->load($review_id);
90
  $reviews->setStatus(1)->save();
91
  }
92
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('webwinkelconnect')->__('Total of %d review(s) were enabled.', count($reviewIds)));
93
  } catch (Exception $e) {
94
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
95
  }
100
  public function massEnableSidebarAction() {
101
  $reviewIds = $this->getRequest()->getParam('reviewids');
102
  if(!is_array($reviewIds)) {
103
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('Please select item(s)'));
104
  } else {
105
  try {
106
  foreach ($reviewIds as $review_id) {
107
+ $reviews = Mage::getModel('webwinkelconnect/reviews')->load($review_id);
108
  $reviews->setSidebar(1)->save();
109
  }
110
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('webwinkelconnect')->__('Total of %d review(s) were added to the sidebar.', count($reviewIds)));
111
  } catch (Exception $e) {
112
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
113
  }
118
  public function massDisableSidebarAction() {
119
  $reviewIds = $this->getRequest()->getParam('reviewids');
120
  if(!is_array($reviewIds)) {
121
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('Please select item(s)'));
122
  } else {
123
  try {
124
  foreach ($reviewIds as $review_id) {
125
+ $reviews = Mage::getModel('webwinkelconnect/reviews')->load($review_id);
126
  $reviews->setSidebar(0)->save();
127
  }
128
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('webwinkelconnect')->__('Total of %d review(s) were removed from the sidebar.', count($reviewIds)));
129
  } catch (Exception $e) {
130
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
131
  }
135
 
136
  public function truncateAction() {
137
  $i = 0;
138
+ $collection = Mage::getModel('webwinkelconnect/reviews')->getCollection();
139
  foreach ($collection as $item) {
140
  $item->delete();
141
  $i++;
142
  }
143
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('webwinkelconnect')->__('Succefully deleted all %s saved review(s).', $i));
144
  $this->_redirect('*/*/index');
145
  }
146
 
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/controllers/IndexController.php RENAMED
@@ -13,32 +13,32 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_IndexController extends Mage_Core_Controller_Front_Action {
23
 
24
  public function indexAction() {
25
 
26
- $enabled = Mage::getStoreConfig('webwinkelkeur/general/enabled');
27
- $overview = Mage::getStoreConfig('webwinkelkeur/overview/enabled');
28
 
29
  if($enabled && $overview) {
30
  $this->loadLayout();
31
  $head = $this->getLayout()->getBlock('head');
32
 
33
- if($title = Mage::getStoreConfig('webwinkelkeur/overview/meta_title')):
34
  $head->setTitle($title);
35
  endif;
36
 
37
- if($description = Mage::getStoreConfig('webwinkelkeur/overview/meta_description')):
38
  $head->setDescription($description);
39
  endif;
40
 
41
- if($keywords = Mage::getStoreConfig('webwinkelkeur/overview/meta_keywords')):
42
  $head->setKeywords($keywords);
43
  endif;
44
 
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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
+ class Magmodules_Webwinkelconnect_IndexController extends Mage_Core_Controller_Front_Action {
23
 
24
  public function indexAction() {
25
 
26
+ $enabled = Mage::getStoreConfig('webwinkelconnect/general/enabled');
27
+ $overview = Mage::getStoreConfig('webwinkelconnect/overview/enabled');
28
 
29
  if($enabled && $overview) {
30
  $this->loadLayout();
31
  $head = $this->getLayout()->getBlock('head');
32
 
33
+ if($title = Mage::getStoreConfig('webwinkelconnect/overview/meta_title')):
34
  $head->setTitle($title);
35
  endif;
36
 
37
+ if($description = Mage::getStoreConfig('webwinkelconnect/overview/meta_description')):
38
  $head->setDescription($description);
39
  endif;
40
 
41
+ if($keywords = Mage::getStoreConfig('webwinkelconnect/overview/meta_keywords')):
42
  $head->setKeywords($keywords);
43
  endif;
44
 
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/etc/adminhtml.xml RENAMED
@@ -15,7 +15,7 @@
15
  * to info@magmodules.eu so we can send you a copy immediately.
16
  *
17
  * @category Magmodules
18
- * @package Magmodules_Webwinkelkeur
19
  * @author Magmodules <info@magmodules.eu)
20
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
21
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
@@ -23,27 +23,27 @@
23
  -->
24
  <config>
25
  <menu>
26
- <webwinkelkeur module="webwinkelkeur">
27
  <title>WebwinkelKeur</title>
28
  <sort_order>60</sort_order>
29
  <children>
30
- <webwinkelkeur_reviews module="webwinkelkeur">
31
  <title>WebwinkelKeur Reviews</title>
32
  <sort_order>100</sort_order>
33
  <action>adminhtml/webwinkelreviews/</action>
34
- </webwinkelkeur_reviews>
35
- <webwinkelkeur_log module="webwinkelkeur">
36
  <title>WebwinkelKeur Log</title>
37
  <sort_order>110</sort_order>
38
  <action>adminhtml/webwinkellog/</action>
39
- </webwinkelkeur_log>
40
- <webwinkelkeur_config module="webwinkelkeur">
41
  <title>WebwinkelKeur Config</title>
42
  <sort_order>120</sort_order>
43
- <action>adminhtml/system_config/edit/section/webwinkelkeur</action>
44
- </webwinkelkeur_config>
45
  </children>
46
- </webwinkelkeur>
47
  </menu>
48
  <acl>
49
  <resources>
@@ -56,29 +56,29 @@
56
  <children>
57
  <config>
58
  <children>
59
- <webwinkelkeur translate="title" module="webwinkelkeur">
60
  <title>WebwinkelKeur Permission Setting</title>
61
- </webwinkelkeur>
62
  </children>
63
  </config>
64
  </children>
65
  </system>
66
- <webwinkelkeur module="webwinkelkeur">
67
  <title>WebwinkelKeur</title>
68
  <sort_order>60</sort_order>
69
  <children>
70
- <webwinkelkeur_reviews module="webwinkelkeur">
71
  <title>WebwinkelKeur Reviews</title>
72
  <sort_order>100</sort_order>
73
  <action>adminhtml/webwinkelreviews/</action>
74
- </webwinkelkeur_reviews>
75
- <webwinkelkeur_log module="webwinkelkeur">
76
  <title>WebwinkelKeur Log</title>
77
  <sort_order>110</sort_order>
78
  <action>adminhtml/webwinkellog/</action>
79
- </webwinkelkeur_log>
80
  </children>
81
- </webwinkelkeur>
82
  </children>
83
  </admin>
84
  </resources>
15
  * to info@magmodules.eu so we can send you a copy immediately.
16
  *
17
  * @category Magmodules
18
+ * @package Magmodules_Webwinkelconnect
19
  * @author Magmodules <info@magmodules.eu)
20
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
21
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23
  -->
24
  <config>
25
  <menu>
26
+ <webwinkelconnect module="webwinkelconnect">
27
  <title>WebwinkelKeur</title>
28
  <sort_order>60</sort_order>
29
  <children>
30
+ <webwinkelconnect_reviews module="webwinkelconnect">
31
  <title>WebwinkelKeur Reviews</title>
32
  <sort_order>100</sort_order>
33
  <action>adminhtml/webwinkelreviews/</action>
34
+ </webwinkelconnect_reviews>
35
+ <webwinkelconnect_log module="webwinkelconnect">
36
  <title>WebwinkelKeur Log</title>
37
  <sort_order>110</sort_order>
38
  <action>adminhtml/webwinkellog/</action>
39
+ </webwinkelconnect_log>
40
+ <webwinkelconnect_config module="webwinkelconnect">
41
  <title>WebwinkelKeur Config</title>
42
  <sort_order>120</sort_order>
43
+ <action>adminhtml/system_config/edit/section/webwinkelconnect</action>
44
+ </webwinkelconnect_config>
45
  </children>
46
+ </webwinkelconnect>
47
  </menu>
48
  <acl>
49
  <resources>
56
  <children>
57
  <config>
58
  <children>
59
+ <webwinkelconnect translate="title" module="webwinkelconnect">
60
  <title>WebwinkelKeur Permission Setting</title>
61
+ </webwinkelconnect>
62
  </children>
63
  </config>
64
  </children>
65
  </system>
66
+ <webwinkelconnect module="webwinkelconnect">
67
  <title>WebwinkelKeur</title>
68
  <sort_order>60</sort_order>
69
  <children>
70
+ <webwinkelconnect_reviews module="webwinkelconnect">
71
  <title>WebwinkelKeur Reviews</title>
72
  <sort_order>100</sort_order>
73
  <action>adminhtml/webwinkelreviews/</action>
74
+ </webwinkelconnect_reviews>
75
+ <webwinkelconnect_log module="webwinkelconnect">
76
  <title>WebwinkelKeur Log</title>
77
  <sort_order>110</sort_order>
78
  <action>adminhtml/webwinkellog/</action>
79
+ </webwinkelconnect_log>
80
  </children>
81
+ </webwinkelconnect>
82
  </children>
83
  </admin>
84
  </resources>
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/etc/config.xml RENAMED
@@ -15,7 +15,7 @@
15
  * to info@magmodules.eu so we can send you a copy immediately.
16
  *
17
  * @category Magmodules
18
- * @package Magmodules_Webwinkelkeur
19
  * @author Magmodules <info@magmodules.eu)
20
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
21
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
@@ -23,67 +23,67 @@
23
  -->
24
  <config>
25
  <modules>
26
- <Magmodules_Webwinkelkeur>
27
- <version>0.9.0</version>
28
- </Magmodules_Webwinkelkeur>
29
  </modules>
30
  <global>
31
  <models>
32
- <webwinkelkeur>
33
- <class>Magmodules_Webwinkelkeur_Model</class>
34
- <resourceModel>webwinkelkeur_mysql4</resourceModel>
35
- </webwinkelkeur>
36
- <webwinkelkeur_mysql4>
37
- <class>Magmodules_Webwinkelkeur_Model_Mysql4</class>
38
  <entities>
39
  <reviews>
40
- <table>webwinkelkeur_reviews</table>
41
  </reviews>
42
  <stats>
43
- <table>webwinkelkeur_stats</table>
44
  </stats>
45
  <log>
46
- <table>webwinkelkeur_log</table>
47
  </log>
48
  </entities>
49
- </webwinkelkeur_mysql4>
50
  </models>
51
  <resources>
52
- <webwinkelkeur_setup>
53
  <setup>
54
- <module>Magmodules_Webwinkelkeur</module>
55
  </setup>
56
  <connection>
57
  <use>core_setup</use>
58
  </connection>
59
- </webwinkelkeur_setup>
60
- <webwinkelkeur_write>
61
  <connection>
62
  <use>core_write</use>
63
  </connection>
64
- </webwinkelkeur_write>
65
- <webwinkelkeur_read>
66
  <connection>
67
  <use>core_read</use>
68
  </connection>
69
- </webwinkelkeur_read>
70
  </resources>
71
  <helpers>
72
- <webwinkelkeur>
73
- <class>Magmodules_Webwinkelkeur_Helper</class>
74
- </webwinkelkeur>
75
  </helpers>
76
  <blocks>
77
- <webwinkelkeur>
78
- <class>Magmodules_Webwinkelkeur_Block</class>
79
- </webwinkelkeur>
80
  </blocks>
81
  <events>
82
  <sales_order_shipment_save_after>
83
  <observers>
84
  <connector>
85
  <type>singleton</type>
86
- <class>webwinkelkeur/observer</class>
87
  <method>processInvitationcallAfterShipment</method>
88
  </connector>
89
  </observers>
@@ -92,7 +92,7 @@
92
  <observers>
93
  <connector>
94
  <type>singleton</type>
95
- <class>webwinkelkeur/observer</class>
96
  <method>processInvitationcall</method>
97
  </connector>
98
  </observers>
@@ -101,46 +101,46 @@
101
  </global>
102
  <frontend>
103
  <routers>
104
- <webwinkelkeur>
105
  <use>standard</use>
106
  <args>
107
- <module>Magmodules_Webwinkelkeur</module>
108
  <frontName>webwinkelkeur</frontName>
109
  </args>
110
- </webwinkelkeur>
111
  </routers>
112
  <layout>
113
  <updates>
114
- <webwinkelkeur>
115
- <file>magmodules_webwinkelkeur.xml</file>
116
- </webwinkelkeur>
117
  </updates>
118
  </layout>
119
  <translate>
120
  <modules>
121
- <magmodules_webwinkelkeur>
122
  <files>
123
- <default>Magmodules_Webwinkelkeur.csv</default>
124
  </files>
125
- </magmodules_webwinkelkeur>
126
  </modules>
127
  </translate>
128
  </frontend>
129
  <adminhtml>
130
  <layout>
131
  <updates>
132
- <magmodules_webwinkelkeur>
133
- <file>magmodules_webwinkelkeur.xml</file>
134
- </magmodules_webwinkelkeur>
135
  </updates>
136
  </layout>
137
  <translate>
138
  <modules>
139
- <magmodules_webwinkelkeur>
140
  <files>
141
- <default>Magmodules_Webwinkelkeur.csv</default>
142
  </files>
143
- </magmodules_webwinkelkeur>
144
  </modules>
145
  </translate>
146
  </adminhtml>
@@ -149,7 +149,7 @@
149
  <adminhtml>
150
  <args>
151
  <modules>
152
- <magmodules_webwinkelkeur after="Mage_Adminhtml">Magmodules_Webwinkelkeur_Adminhtml</magmodules_webwinkelkeur>
153
  </modules>
154
  </args>
155
  </adminhtml>
@@ -157,26 +157,26 @@
157
  </admin>
158
  <crontab>
159
  <jobs>
160
- <magmodules_webwinkelkeur_stats>
161
- <schedule><config_path>webwinkelkeur/reviews/cron_stats</config_path></schedule>
162
- <run><model>webwinkelkeur/observer::processStats</model></run>
163
- </magmodules_webwinkelkeur_stats>
164
- <magmodules_webwinkelkeur_reviews>
165
- <schedule><config_path>webwinkelkeur/reviews/cron_reviews</config_path></schedule>
166
- <run><model>webwinkelkeur/observer::processReviews</model></run>
167
- </magmodules_webwinkelkeur_reviews>
168
- <magmodules_webwinkelkeur_reviewhistory>
169
- <schedule><config_path>webwinkelkeur/reviews/cron_all</config_path></schedule>
170
- <run><model>webwinkelkeur/observer::processHistory</model></run>
171
- </magmodules_webwinkelkeur_reviewhistory>
172
- <magmodules_webwinkelkeur_cleanlog>
173
  <schedule><cron_expr>0 02 * * *</cron_expr></schedule>
174
- <run><model>webwinkelkeur/observer::cleanLog</model></run>
175
- </magmodules_webwinkelkeur_cleanlog>
176
  </jobs>
177
  </crontab>
178
  <default>
179
- <webwinkelkeur>
180
  <general>
181
  <enabled>0</enabled>
182
  </general>
@@ -200,12 +200,12 @@
200
  <sidebar>1</sidebar>
201
  </snippets>
202
  <overview>
203
- <enabled>1</enabled>
204
  <enable_paging>1</enable_paging>
205
  <paging_settings>10,20,30</paging_settings>
206
  <meta_title>WebwinkelKeur Reviews</meta_title>
207
  <meta_description>WebwinkelKeur Reviews overview page</meta_description>
208
- <meta_keywords>reviews, webwinkelkeur</meta_keywords>
209
  </overview>
210
  <invitation>
211
  <enabled>0</enabled>
@@ -224,6 +224,6 @@
224
  <clean>1</clean>
225
  <clean_days>14</clean_days>
226
  </log>
227
- </webwinkelkeur>
228
  </default>
229
  </config>
15
  * to info@magmodules.eu so we can send you a copy immediately.
16
  *
17
  * @category Magmodules
18
+ * @package Magmodules_Webwinkelconnect
19
  * @author Magmodules <info@magmodules.eu)
20
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
21
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23
  -->
24
  <config>
25
  <modules>
26
+ <Magmodules_Webwinkelconnect>
27
+ <version>1.0.1</version>
28
+ </Magmodules_Webwinkelconnect>
29
  </modules>
30
  <global>
31
  <models>
32
+ <webwinkelconnect>
33
+ <class>Magmodules_Webwinkelconnect_Model</class>
34
+ <resourceModel>webwinkelconnect_mysql4</resourceModel>
35
+ </webwinkelconnect>
36
+ <webwinkelconnect_mysql4>
37
+ <class>Magmodules_Webwinkelconnect_Model_Mysql4</class>
38
  <entities>
39
  <reviews>
40
+ <table>webwinkelconnect_reviews</table>
41
  </reviews>
42
  <stats>
43
+ <table>webwinkelconnect_stats</table>
44
  </stats>
45
  <log>
46
+ <table>webwinkelconnect_log</table>
47
  </log>
48
  </entities>
49
+ </webwinkelconnect_mysql4>
50
  </models>
51
  <resources>
52
+ <webwinkelconnect_setup>
53
  <setup>
54
+ <module>Magmodules_Webwinkelconnect</module>
55
  </setup>
56
  <connection>
57
  <use>core_setup</use>
58
  </connection>
59
+ </webwinkelconnect_setup>
60
+ <webwinkelconnect_write>
61
  <connection>
62
  <use>core_write</use>
63
  </connection>
64
+ </webwinkelconnect_write>
65
+ <webwinkelconnect_read>
66
  <connection>
67
  <use>core_read</use>
68
  </connection>
69
+ </webwinkelconnect_read>
70
  </resources>
71
  <helpers>
72
+ <webwinkelconnect>
73
+ <class>Magmodules_Webwinkelconnect_Helper</class>
74
+ </webwinkelconnect>
75
  </helpers>
76
  <blocks>
77
+ <webwinkelconnect>
78
+ <class>Magmodules_Webwinkelconnect_Block</class>
79
+ </webwinkelconnect>
80
  </blocks>
81
  <events>
82
  <sales_order_shipment_save_after>
83
  <observers>
84
  <connector>
85
  <type>singleton</type>
86
+ <class>webwinkelconnect/observer</class>
87
  <method>processInvitationcallAfterShipment</method>
88
  </connector>
89
  </observers>
92
  <observers>
93
  <connector>
94
  <type>singleton</type>
95
+ <class>webwinkelconnect/observer</class>
96
  <method>processInvitationcall</method>
97
  </connector>
98
  </observers>
101
  </global>
102
  <frontend>
103
  <routers>
104
+ <webwinkelconnect>
105
  <use>standard</use>
106
  <args>
107
+ <module>Magmodules_Webwinkelconnect</module>
108
  <frontName>webwinkelkeur</frontName>
109
  </args>
110
+ </webwinkelconnect>
111
  </routers>
112
  <layout>
113
  <updates>
114
+ <webwinkelconnect>
115
+ <file>magmodules_webwinkelconnect.xml</file>
116
+ </webwinkelconnect>
117
  </updates>
118
  </layout>
119
  <translate>
120
  <modules>
121
+ <magmodules_webwinkelconnect>
122
  <files>
123
+ <default>Magmodules_Webwinkelconnect.csv</default>
124
  </files>
125
+ </magmodules_webwinkelconnect>
126
  </modules>
127
  </translate>
128
  </frontend>
129
  <adminhtml>
130
  <layout>
131
  <updates>
132
+ <magmodules_webwinkelconnect>
133
+ <file>magmodules_webwinkelconnect.xml</file>
134
+ </magmodules_webwinkelconnect>
135
  </updates>
136
  </layout>
137
  <translate>
138
  <modules>
139
+ <magmodules_webwinkelconnect>
140
  <files>
141
+ <default>Magmodules_Webwinkelconnect.csv</default>
142
  </files>
143
+ </magmodules_webwinkelconnect>
144
  </modules>
145
  </translate>
146
  </adminhtml>
149
  <adminhtml>
150
  <args>
151
  <modules>
152
+ <magmodules_webwinkelconnect after="Mage_Adminhtml">Magmodules_Webwinkelconnect_Adminhtml</magmodules_webwinkelconnect>
153
  </modules>
154
  </args>
155
  </adminhtml>
157
  </admin>
158
  <crontab>
159
  <jobs>
160
+ <magmodules_webwinkelconnect_stats>
161
+ <schedule><config_path>webwinkelconnect/reviews/cron_stats</config_path></schedule>
162
+ <run><model>webwinkelconnect/observer::processStats</model></run>
163
+ </magmodules_webwinkelconnect_stats>
164
+ <magmodules_webwinkelconnect_reviews>
165
+ <schedule><config_path>webwinkelconnect/reviews/cron_reviews</config_path></schedule>
166
+ <run><model>webwinkelconnect/observer::processReviews</model></run>
167
+ </magmodules_webwinkelconnect_reviews>
168
+ <magmodules_webwinkelconnect_reviewhistory>
169
+ <schedule><config_path>webwinkelconnect/reviews/cron_all</config_path></schedule>
170
+ <run><model>webwinkelconnect/observer::processHistory</model></run>
171
+ </magmodules_webwinkelconnect_reviewhistory>
172
+ <magmodules_webwinkelconnect_cleanlog>
173
  <schedule><cron_expr>0 02 * * *</cron_expr></schedule>
174
+ <run><model>webwinkelconnect/observer::cleanLog</model></run>
175
+ </magmodules_webwinkelconnect_cleanlog>
176
  </jobs>
177
  </crontab>
178
  <default>
179
+ <webwinkelconnect>
180
  <general>
181
  <enabled>0</enabled>
182
  </general>
200
  <sidebar>1</sidebar>
201
  </snippets>
202
  <overview>
203
+ <enabled>0</enabled>
204
  <enable_paging>1</enable_paging>
205
  <paging_settings>10,20,30</paging_settings>
206
  <meta_title>WebwinkelKeur Reviews</meta_title>
207
  <meta_description>WebwinkelKeur Reviews overview page</meta_description>
208
+ <meta_keywords>reviews, WebwinkelKeur</meta_keywords>
209
  </overview>
210
  <invitation>
211
  <enabled>0</enabled>
224
  <clean>1</clean>
225
  <clean_days>14</clean_days>
226
  </log>
227
+ </webwinkelconnect>
228
  </default>
229
  </config>
app/code/local/Magmodules/{Webwinkelkeur → Webwinkelconnect}/etc/system.xml RENAMED
@@ -15,7 +15,7 @@
15
  * to info@magmodules.eu so we can send you a copy immediately.
16
  *
17
  * @category Magmodules
18
- * @package Magmodules_Webwinkelkeur
19
  * @author Magmodules <info@magmodules.eu)
20
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
21
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
@@ -23,29 +23,29 @@
23
  -->
24
  <config>
25
  <tabs>
26
- <magmodules translate="label" module="webwinkelkeur">
27
  <label>Magmodules</label>
28
  <sort_order>200</sort_order>
29
  </magmodules>
30
  </tabs>
31
  <sections>
32
- <webwinkelkeur translate="label" module="webwinkelkeur">
33
  <label>WebwinkelKeur</label>
34
  <tab>magmodules</tab>
35
  <frontend_type>text</frontend_type>
36
- <sort_order>40</sort_order>
37
  <show_in_default>1</show_in_default>
38
  <show_in_website>1</show_in_website>
39
  <show_in_store>1</show_in_store>
40
  <groups>
41
  <info>
42
- <frontend_model>webwinkelkeur/adminhtml_widget_info_info</frontend_model>
43
  <sort_order>1</sort_order>
44
  <show_in_default>1</show_in_default>
45
  <show_in_website>1</show_in_website>
46
  <show_in_store>1</show_in_store>
47
  </info>
48
- <general translate="label" module="webwinkelkeur">
49
  <label>General Configuration</label>
50
  <frontend_type>text</frontend_type>
51
  <sort_order>2</sort_order>
@@ -67,13 +67,13 @@
67
  <![CDATA[
68
  <script>
69
  Event.observe(window, 'load', function() {
70
- if ($('webwinkelkeur_reviews_lastrun')) {
71
- $('webwinkelkeur_reviews_lastrun').style.backgroundColor='#f0f0f0';
72
- $('webwinkelkeur_reviews_lastrun').disable();
73
  }
74
- if ($('webwinkelkeur_general_url')) {
75
- $('webwinkelkeur_general_url').style.backgroundColor='#f0f0f0';
76
- $('webwinkelkeur_general_url').disable();
77
  }
78
  });
79
  </script>
@@ -82,7 +82,7 @@
82
  </enabled>
83
  <heading_api translate="label">
84
  <label>API CREDENTIALS</label>
85
- <frontend_model>webwinkelkeur/adminhtml_widget_form_heading</frontend_model>
86
  <sort_order>2</sort_order>
87
  <show_in_default>1</show_in_default>
88
  <show_in_website>0</show_in_website>
@@ -116,7 +116,7 @@
116
  </url>
117
  </fields>
118
  </general>
119
- <reviews translate="label" module="webwinkelkeur">
120
  <label>WebwinkelKeur Import Reviews</label>
121
  <frontend_type>text</frontend_type>
122
  <sort_order>3</sort_order>
@@ -139,7 +139,7 @@
139
  <cron_stats translate="label">
140
  <label>Update Summary</label>
141
  <frontend_type>select</frontend_type>
142
- <source_model>webwinkelkeur/system_config_source_cronfrequency</source_model>
143
  <sort_order>2</sort_order>
144
  <show_in_default>1</show_in_default>
145
  <show_in_website>1</show_in_website>
@@ -150,7 +150,7 @@
150
  <cron_reviews translate="label">
151
  <label>Update Reviews</label>
152
  <frontend_type>select</frontend_type>
153
- <source_model>webwinkelkeur/system_config_source_cronfrequency</source_model>
154
  <sort_order>3</sort_order>
155
  <show_in_default>1</show_in_default>
156
  <show_in_website>1</show_in_website>
@@ -161,7 +161,7 @@
161
  <cron_all translate="label">
162
  <label>Update Review History</label>
163
  <frontend_type>select</frontend_type>
164
- <source_model>webwinkelkeur/system_config_source_cronfrequency</source_model>
165
  <sort_order>4</sort_order>
166
  <show_in_default>1</show_in_default>
167
  <show_in_website>1</show_in_website>
@@ -180,7 +180,7 @@
180
  <process translate="label">
181
  <label>Process Manually</label>
182
  <frontend_type>button</frontend_type>
183
- <frontend_model>webwinkelkeur/adminhtml_widget_buttons_process</frontend_model>
184
  <sort_order>101</sort_order>
185
  <show_in_default>1</show_in_default>
186
  <show_in_website>1</show_in_website>
@@ -200,7 +200,7 @@
200
  <fields>
201
  <left_heading translate="label">
202
  <label>Left Sidebar</label>
203
- <frontend_model>webwinkelkeur/adminhtml_widget_form_heading</frontend_model>
204
  <sort_order>50</sort_order>
205
  <show_in_default>1</show_in_default>
206
  <show_in_website>1</show_in_website>
@@ -238,7 +238,7 @@
238
  <left_link translate="label">
239
  <label>Link to</label>
240
  <frontend_type>select</frontend_type>
241
- <source_model>webwinkelkeur/system_config_source_sidebarlink</source_model>
242
  <sort_order>55</sort_order>
243
  <show_in_default>1</show_in_default>
244
  <show_in_website>1</show_in_website>
@@ -258,7 +258,7 @@
258
  </left_snippets>
259
  <right_heading translate="label">
260
  <label>Right Sidebar</label>
261
- <frontend_model>webwinkelkeur/adminhtml_widget_form_heading</frontend_model>
262
  <sort_order>60</sort_order>
263
  <show_in_default>1</show_in_default>
264
  <show_in_website>1</show_in_website>
@@ -296,7 +296,7 @@
296
  <right_link translate="label">
297
  <label>Link to</label>
298
  <frontend_type>select</frontend_type>
299
- <source_model>webwinkelkeur/system_config_source_sidebarlink</source_model>
300
  <sort_order>65</sort_order>
301
  <show_in_default>1</show_in_default>
302
  <show_in_website>1</show_in_website>
@@ -324,7 +324,7 @@
324
  <show_in_website>1</show_in_website>
325
  <show_in_store>1</show_in_store>
326
  <expanded>1</expanded>
327
- <comment><![CDATA[We can import your customer reviews and display them in your store as new content. <br/><br/> Link: http://www.mywebshop.com/<strong>webwinkelkeur</strong><br/><br/>]]></comment>
328
  <fields>
329
  <enabled translate="label">
330
  <label>Enabled</label>
@@ -366,7 +366,7 @@
366
  </add_toplink>-->
367
  <heading_meta translate="label">
368
  <label>Meta Data</label>
369
- <frontend_model>webwinkelkeur/adminhtml_widget_form_heading</frontend_model>
370
  <sort_order>10</sort_order>
371
  <show_in_default>1</show_in_default>
372
  <show_in_website>1</show_in_website>
@@ -425,7 +425,7 @@
425
  <status>
426
  <label>Order is Completed with status</label>
427
  <frontend_type>select</frontend_type>
428
- <source_model>webwinkelkeur/system_config_source_orderstatus</source_model>
429
  <sort_order>2</sort_order>
430
  <show_in_default>1</show_in_default>
431
  <show_in_website>1</show_in_website>
@@ -505,7 +505,7 @@
505
  <sidebar_position translate="label">
506
  <label>Sidebar Position</label>
507
  <frontend_type>select</frontend_type>
508
- <source_model>webwinkelkeur/system_config_source_position</source_model>
509
  <sort_order>4</sort_order>
510
  <show_in_default>1</show_in_default>
511
  <show_in_website>1</show_in_website>
@@ -574,9 +574,9 @@
574
  <show_in_website>1</show_in_website>
575
  <show_in_store>1</show_in_store>
576
  <expanded>1</expanded>
577
- <comment><![CDATA[Rich Snippets is a schema.org markup that makes it possible to give richer and more specific information. <br/> The Rich Snippets will show your store rating in the google search engine results. <br/><br/>Use: {{block type="webwinkelkeur/snippets" name="webwinkelsnippets"}} to call the block on the homepage.<br/><br/>]]></comment>
578
  </snippets>
579
  </groups>
580
- </webwinkelkeur>
581
  </sections>
582
  </config>
15
  * to info@magmodules.eu so we can send you a copy immediately.
16
  *
17
  * @category Magmodules
18
+ * @package Magmodules_Webwinkelconnect
19
  * @author Magmodules <info@magmodules.eu)
20
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
21
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23
  -->
24
  <config>
25
  <tabs>
26
+ <magmodules translate="label" module="webwinkelconnect">
27
  <label>Magmodules</label>
28
  <sort_order>200</sort_order>
29
  </magmodules>
30
  </tabs>
31
  <sections>
32
+ <webwinkelconnect translate="label" module="webwinkelconnect">
33
  <label>WebwinkelKeur</label>
34
  <tab>magmodules</tab>
35
  <frontend_type>text</frontend_type>
36
+ <sort_order>42</sort_order>
37
  <show_in_default>1</show_in_default>
38
  <show_in_website>1</show_in_website>
39
  <show_in_store>1</show_in_store>
40
  <groups>
41
  <info>
42
+ <frontend_model>webwinkelconnect/adminhtml_widget_info_info</frontend_model>
43
  <sort_order>1</sort_order>
44
  <show_in_default>1</show_in_default>
45
  <show_in_website>1</show_in_website>
46
  <show_in_store>1</show_in_store>
47
  </info>
48
+ <general translate="label" module="webwinkelconnect">
49
  <label>General Configuration</label>
50
  <frontend_type>text</frontend_type>
51
  <sort_order>2</sort_order>
67
  <![CDATA[
68
  <script>
69
  Event.observe(window, 'load', function() {
70
+ if ($('webwinkelconnect_reviews_lastrun')) {
71
+ $('webwinkelconnect_reviews_lastrun').style.backgroundColor='#f0f0f0';
72
+ $('webwinkelconnect_reviews_lastrun').disable();
73
  }
74
+ if ($('webwinkelconnect_general_url')) {
75
+ $('webwinkelconnect_general_url').style.backgroundColor='#f0f0f0';
76
+ $('webwinkelconnect_general_url').disable();
77
  }
78
  });
79
  </script>
82
  </enabled>
83
  <heading_api translate="label">
84
  <label>API CREDENTIALS</label>
85
+ <frontend_model>webwinkelconnect/adminhtml_widget_form_heading</frontend_model>
86
  <sort_order>2</sort_order>
87
  <show_in_default>1</show_in_default>
88
  <show_in_website>0</show_in_website>
116
  </url>
117
  </fields>
118
  </general>
119
+ <reviews translate="label" module="webwinkelconnect">
120
  <label>WebwinkelKeur Import Reviews</label>
121
  <frontend_type>text</frontend_type>
122
  <sort_order>3</sort_order>
139
  <cron_stats translate="label">
140
  <label>Update Summary</label>
141
  <frontend_type>select</frontend_type>
142
+ <source_model>webwinkelconnect/system_config_source_cronfrequency</source_model>
143
  <sort_order>2</sort_order>
144
  <show_in_default>1</show_in_default>
145
  <show_in_website>1</show_in_website>
150
  <cron_reviews translate="label">
151
  <label>Update Reviews</label>
152
  <frontend_type>select</frontend_type>
153
+ <source_model>webwinkelconnect/system_config_source_cronfrequency</source_model>
154
  <sort_order>3</sort_order>
155
  <show_in_default>1</show_in_default>
156
  <show_in_website>1</show_in_website>
161
  <cron_all translate="label">
162
  <label>Update Review History</label>
163
  <frontend_type>select</frontend_type>
164
+ <source_model>webwinkelconnect/system_config_source_cronfrequency</source_model>
165
  <sort_order>4</sort_order>
166
  <show_in_default>1</show_in_default>
167
  <show_in_website>1</show_in_website>
180
  <process translate="label">
181
  <label>Process Manually</label>
182
  <frontend_type>button</frontend_type>
183
+ <frontend_model>webwinkelconnect/adminhtml_widget_buttons_process</frontend_model>
184
  <sort_order>101</sort_order>
185
  <show_in_default>1</show_in_default>
186
  <show_in_website>1</show_in_website>
200
  <fields>
201
  <left_heading translate="label">
202
  <label>Left Sidebar</label>
203
+ <frontend_model>webwinkelconnect/adminhtml_widget_form_heading</frontend_model>
204
  <sort_order>50</sort_order>
205
  <show_in_default>1</show_in_default>
206
  <show_in_website>1</show_in_website>
238
  <left_link translate="label">
239
  <label>Link to</label>
240
  <frontend_type>select</frontend_type>
241
+ <source_model>webwinkelconnect/system_config_source_sidebarlink</source_model>
242
  <sort_order>55</sort_order>
243
  <show_in_default>1</show_in_default>
244
  <show_in_website>1</show_in_website>
258
  </left_snippets>
259
  <right_heading translate="label">
260
  <label>Right Sidebar</label>
261
+ <frontend_model>webwinkelconnect/adminhtml_widget_form_heading</frontend_model>
262
  <sort_order>60</sort_order>
263
  <show_in_default>1</show_in_default>
264
  <show_in_website>1</show_in_website>
296
  <right_link translate="label">
297
  <label>Link to</label>
298
  <frontend_type>select</frontend_type>
299
+ <source_model>webwinkelconnect/system_config_source_sidebarlink</source_model>
300
  <sort_order>65</sort_order>
301
  <show_in_default>1</show_in_default>
302
  <show_in_website>1</show_in_website>
324
  <show_in_website>1</show_in_website>
325
  <show_in_store>1</show_in_store>
326
  <expanded>1</expanded>
327
+ <comment><![CDATA[We can import your customer reviews and display them in your store as new content. <br/><br/> Link: http://www.mywebshop.com/<strong>webwinkelconnect</strong><br/><br/>]]></comment>
328
  <fields>
329
  <enabled translate="label">
330
  <label>Enabled</label>
366
  </add_toplink>-->
367
  <heading_meta translate="label">
368
  <label>Meta Data</label>
369
+ <frontend_model>webwinkelconnect/adminhtml_widget_form_heading</frontend_model>
370
  <sort_order>10</sort_order>
371
  <show_in_default>1</show_in_default>
372
  <show_in_website>1</show_in_website>
425
  <status>
426
  <label>Order is Completed with status</label>
427
  <frontend_type>select</frontend_type>
428
+ <source_model>webwinkelconnect/system_config_source_orderstatus</source_model>
429
  <sort_order>2</sort_order>
430
  <show_in_default>1</show_in_default>
431
  <show_in_website>1</show_in_website>
505
  <sidebar_position translate="label">
506
  <label>Sidebar Position</label>
507
  <frontend_type>select</frontend_type>
508
+ <source_model>webwinkelconnect/system_config_source_position</source_model>
509
  <sort_order>4</sort_order>
510
  <show_in_default>1</show_in_default>
511
  <show_in_website>1</show_in_website>
574
  <show_in_website>1</show_in_website>
575
  <show_in_store>1</show_in_store>
576
  <expanded>1</expanded>
577
+ <comment><![CDATA[Rich Snippets is a schema.org markup that makes it possible to give richer and more specific information. <br/> The Rich Snippets will show your store rating in the google search engine results. <br/><br/>Use: {{block type="webwinkelconnect/snippets" name="webwinkelsnippets"}} to call the block on the homepage.<br/><br/>]]></comment>
578
  </snippets>
579
  </groups>
580
+ </webwinkelconnect>
581
  </sections>
582
  </config>
app/code/local/Magmodules/{Webwinkelkeur/sql/webwinkelkeur_setup/mysql4-install-0.9.0.php → Webwinkelconnect/sql/webwinkelconnect_setup/mysql4-install-1.0.1.php} RENAMED
@@ -13,7 +13,7 @@
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
- * @package Magmodules_Webwinkelkeur
17
  * @author Magmodules <info@magmodules.eu)
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)
@@ -22,8 +22,8 @@
22
  $installer = $this;
23
  $installer->startSetup();
24
  $installer->run("
25
- DROP TABLE IF EXISTS {$this->getTable('webwinkelkeur_reviews')};
26
- CREATE TABLE IF NOT EXISTS {$this->getTable('webwinkelkeur_reviews')} (
27
  `review_id` int(10) NOT NULL AUTO_INCREMENT,
28
  `shop_id` int(5) NOT NULL,
29
  `company` varchar(255) DEFAULT NULL,
@@ -41,8 +41,8 @@ $installer->run("
41
  PRIMARY KEY (`review_id`)
42
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
43
 
44
- DROP TABLE IF EXISTS {$this->getTable('webwinkelkeur_log')};
45
- CREATE TABLE IF NOT EXISTS {$this->getTable('webwinkelkeur_log')} (
46
  `id` int(10) NOT NULL AUTO_INCREMENT,
47
  `type` varchar(255) NOT NULL,
48
  `shop_id` varchar(255) NOT NULL,
@@ -58,8 +58,8 @@ $installer->run("
58
  PRIMARY KEY (`id`)
59
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
60
 
61
- DROP TABLE IF EXISTS {$this->getTable('webwinkelkeur_stats')};
62
- CREATE TABLE IF NOT EXISTS {$this->getTable('webwinkelkeur_stats')} (
63
  `id` int(5) NOT NULL AUTO_INCREMENT,
64
  `company` varchar(255) DEFAULT NULL,
65
  `shop_id` int(5) NOT NULL,
13
  * to info@magmodules.eu so we can send you a copy immediately.
14
  *
15
  * @category Magmodules
16
+ * @package Magmodules_Webwinkelconnect
17
  * @author Magmodules <info@magmodules.eu)
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)
22
  $installer = $this;
23
  $installer->startSetup();
24
  $installer->run("
25
+ DROP TABLE IF EXISTS {$this->getTable('webwinkelconnect_reviews')};
26
+ CREATE TABLE IF NOT EXISTS {$this->getTable('webwinkelconnect_reviews')} (
27
  `review_id` int(10) NOT NULL AUTO_INCREMENT,
28
  `shop_id` int(5) NOT NULL,
29
  `company` varchar(255) DEFAULT NULL,
41
  PRIMARY KEY (`review_id`)
42
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
43
 
44
+ DROP TABLE IF EXISTS {$this->getTable('webwinkelconnect_log')};
45
+ CREATE TABLE IF NOT EXISTS {$this->getTable('webwinkelconnect_log')} (
46
  `id` int(10) NOT NULL AUTO_INCREMENT,
47
  `type` varchar(255) NOT NULL,
48
  `shop_id` varchar(255) NOT NULL,
58
  PRIMARY KEY (`id`)
59
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
60
 
61
+ DROP TABLE IF EXISTS {$this->getTable('webwinkelconnect_stats')};
62
+ CREATE TABLE IF NOT EXISTS {$this->getTable('webwinkelconnect_stats')} (
63
  `id` int(5) NOT NULL AUTO_INCREMENT,
64
  `company` varchar(255) DEFAULT NULL,
65
  `shop_id` int(5) NOT NULL,
app/code/local/Magmodules/Webwinkelkeur/Block/Adminhtml/Widget/Grid/Seconds.php DELETED
@@ -1,34 +0,0 @@
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_Webwinkelkeur
17
- * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Block_Adminhtml_Widget_Grid_Seconds 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) {
28
- $value = number_format($value, 3, '.', '');
29
- }
30
-
31
- return $value;
32
- }
33
-
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Magmodules/Webwinkelkeur/Model/Observer.php DELETED
@@ -1,121 +0,0 @@
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_Webwinkelkeur
17
- * @author Magmodules <info@magmodules.eu)
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
- class Magmodules_Webwinkelkeur_Model_Observer {
23
-
24
- public function processStats() {
25
- $storeids = Mage::getModel('webwinkelkeur/api')->getStoreIds();
26
- foreach($storeids as $storeid) {
27
- $enabled = Mage::getStoreConfig('webwinkelkeur/general/enabled', $storeid);
28
- $cron_enabled = Mage::getStoreConfig('webwinkelkeur/reviews/cron', $storeid);
29
- if($enabled && $cron_enabled) {
30
- $crontype = 'stats';
31
- $start_time = microtime(true);
32
- $feed = Mage::getModel('webwinkelkeur/api')->getFeed($storeid, $crontype);
33
- $resuls = array();
34
- $results['stats'] = Mage::getModel('webwinkelkeur/stats')->processFeed($feed, $storeid);
35
- $results['company'] = $feed->company;
36
- $log = Mage::getModel('webwinkelkeur/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
37
- }
38
- }
39
- }
40
-
41
- public function processReviews() {
42
- $storeids = Mage::getModel('webwinkelkeur/api')->getStoreIds();
43
- foreach($storeids as $storeid) {
44
- $enabled = Mage::getStoreConfig('webwinkelkeur/general/enabled', $storeid);
45
- $cron_enabled = Mage::getStoreConfig('webwinkelkeur/reviews/cron', $storeid);
46
- if($enabled && $cron_enabled) {
47
- $crontype = 'reviews';
48
- $start_time = microtime(true);
49
- $feed = Mage::getModel('webwinkelkeur/api')->getFeed($storeid, $type);
50
- $results = Mage::getModel('webwinkelkeur/reviews')->processFeed($feed, $storeid, $crontype);
51
- $results['stats'] = Mage::getModel('webwinkelkeur/stats')->processFeed($feed, $storeid, $type);
52
- $log = Mage::getModel('webwinkelkeur/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
53
- }
54
- }
55
- }
56
-
57
- public function processHistory() {
58
- $storeids = Mage::getModel('webwinkelkeur/api')->getStoreIds();
59
- foreach($storeids as $storeid) {
60
- $enabled = Mage::getStoreConfig('webwinkelkeur/general/enabled', $storeid);
61
- $cron_enabled = Mage::getStoreConfig('webwinkelkeur/reviews/cron', $storeid);
62
- if($enabled && $cron_enabled) {
63
- $crontype = 'history';
64
- $start_time = microtime(true); $storeid = 0;
65
- $feed = Mage::getModel('webwinkelkeur/api')->getFeed($storeid, $type);
66
- $results = Mage::getModel('webwinkelkeur/reviews')->processFeed($feed, $storeid, $crontype);
67
- $results['stats'] = Mage::getModel('webwinkelkeur/stats')->processFeed($feed, $storeid);
68
- $log = Mage::getModel('webwinkelkeur/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
69
- }
70
- }
71
- }
72
-
73
- public function cleanLog() {
74
- $enabled = Mage::getStoreConfig('webwinkelkeur/log/clean', 0);
75
- $days = Mage::getStoreConfig('webwinkelkeur/log/clean_days', 0);
76
- if(($enabled) && ($days > 0)) {
77
- $logmodel = Mage::getModel('webwinkelkeur/log');
78
- $deldate = date('Y-m-d', strtotime('-' . $days . ' days'));
79
- $logs = $logmodel->getCollection()->addFieldToSelect('id')->addFieldToFilter('date', array('lteq' => $deldate));
80
- foreach ($logs as $log) {
81
- $logmodel->load($log->getId())->delete();
82
- }
83
- }
84
- }
85
-
86
- public function processInvitationcallAfterShipment($observer) {
87
- $shipment = $observer->getEvent()->getShipment();
88
- $order = $shipment->getOrder();
89
- if((Mage::getStoreConfig('webwinkelkeur/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('webwinkelkeur/general/api_key', $order->getStoreId()))):
90
- if($order->getStatus() == Mage::getStoreConfig('webwinkelkeur/invitation/status', $order->getStoreId())):
91
- if(Mage::getStoreConfig('webwinkelkeur/invitation/backlog', $order->getStoreId()) > 0):
92
- $date_diff = floor(time() - strtotime($order->getCreatedAt()))/(60*60*24);
93
- if($date_diff < Mage::getStoreConfig('webwinkelkeur/invitation/backlog', $order->getStoreId())):
94
- Mage::getModel('webwinkelkeur/api')->sendInvitation($order);
95
- endif;
96
- else:
97
- Mage::getModel('webwinkelkeur/api')->sendInvitation($order);
98
- endif;
99
- endif;
100
- endif;
101
- }
102
-
103
- public function processInvitationcall($observer) {
104
- $order = $observer->getEvent()->getOrder();
105
- if((Mage::getStoreConfig('webwinkelkeur/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('webwinkelkeur/general/api_key', $order->getStoreId()))):
106
- if($order->getStatus() == Mage::getStoreConfig('webwinkelkeur/invitation/status', $order->getStoreId())):
107
- if(Mage::getStoreConfig('webwinkelkeur/invitation/backlog', $order->getStoreId()) > 0):
108
- $date_diff = floor(time() - strtotime($order->getCreatedAt()))/(60*60*24);
109
- if($date_diff < Mage::getStoreConfig('webwinkelkeur/invitation/backlog', $order->getStoreId())):
110
- Mage::log('SEND!');
111
- $value = Mage::getModel('webwinkelkeur/api')->sendInvitation($order);
112
- Mage::log($value);
113
- endif;
114
- else:
115
- Mage::getModel('webwinkelkeur/api')->sendInvitation($order);
116
- endif;
117
- endif;
118
- endif;
119
- }
120
-
121
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/layout/{magmodules_webwinkelkeur.xml → magmodules_webwinkelconnect.xml} RENAMED
@@ -2,15 +2,15 @@
2
  <layout version="0.1.0">
3
  <adminhtml_webwinkelreviews_index>
4
  <reference name="head">
5
- <action method="addCss"><name>magmodules/webwinkelkeur/grid.css</name></action>
6
  </reference>
7
  <reference name="content">
8
- <block type="webwinkelkeur/adminhtml_webwinkelreviews" name="webwinkelkeur" />
9
  </reference>
10
  </adminhtml_webwinkelreviews_index>
11
  <adminhtml_webwinkellog_index>
12
  <reference name="content">
13
- <block type="webwinkelkeur/adminhtml_webwinkellog" name="webwinkellog" />
14
  </reference>
15
  </adminhtml_webwinkellog_index>
16
  </layout>
2
  <layout version="0.1.0">
3
  <adminhtml_webwinkelreviews_index>
4
  <reference name="head">
5
+ <action method="addCss"><name>magmodules/webwinkelconnect/grid.css</name></action>
6
  </reference>
7
  <reference name="content">
8
+ <block type="webwinkelconnect/adminhtml_webwinkelreviews" name="webwinkelconnect" />
9
  </reference>
10
  </adminhtml_webwinkelreviews_index>
11
  <adminhtml_webwinkellog_index>
12
  <reference name="content">
13
+ <block type="webwinkelconnect/adminhtml_webwinkellog" name="webwinkellog" />
14
  </reference>
15
  </adminhtml_webwinkellog_index>
16
  </layout>
app/design/frontend/base/default/layout/magmodules_webwinkelconnect.xml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="head">
5
+ <action method="addCss"><stylesheet>magmodules/webwinkelconnect/sidebar.css</stylesheet></action>
6
+ </reference>
7
+ <reference name="left">
8
+ <block type="webwinkelconnect/sidebar" name="left.webwinkelconnect" template="magmodules/webwinkelconnect/sidebar/left.phtml" />
9
+ </reference>
10
+ <reference name="right">
11
+ <block type="webwinkelconnect/sidebar" name="right.webwinkelconnect" template="magmodules/webwinkelconnect/sidebar/right.phtml" />
12
+ </reference>
13
+ <reference name="before_body_end">
14
+ <block type="core/template" name="webwinkelconnect_js_sidebar" as="webwinkelconnect_js_sidebar" template="magmodules/webwinkelconnect/sidebar/js-sidebar.phtml" />
15
+ </reference>
16
+ </default>
17
+ <webwinkelconnect_index_index>
18
+ <reference name="root">
19
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
20
+ </reference>
21
+ <reference name="head">
22
+ <action method="addCss"><stylesheet>magmodules/webwinkelconnect/style.css</stylesheet> </action>
23
+ </reference>
24
+ <reference name="content">
25
+ <block type="webwinkelconnect/reviews" name="webwinkelconnect.index" template="magmodules/webwinkelconnect/index.phtml" />
26
+ </reference>
27
+ <reference name="left">
28
+ <remove name="left.webwinkelconnect" />
29
+ </reference>
30
+ <reference name="right">
31
+ <remove name="right.webwinkelconnect" />
32
+ </reference>
33
+ </webwinkelconnect_index_index>
34
+ <cms_index_index>
35
+ <reference name="head">
36
+ <action method="addCss"><stylesheet>magmodules/webwinkelconnect/richsnippters.css</stylesheet></action>
37
+ </reference>
38
+ </cms_index_index>
39
+ </layout>
app/design/frontend/base/default/layout/magmodules_webwinkelkeur.xml DELETED
@@ -1,39 +0,0 @@
1
- <?xml version="1.0"?>
2
- <layout version="0.1.0">
3
- <default>
4
- <reference name="head">
5
- <action method="addCss"><stylesheet>magmodules/webwinkelkeur/sidebar.css</stylesheet></action>
6
- </reference>
7
- <reference name="left">
8
- <block type="webwinkelkeur/sidebar" name="left.webwinkelkeur" template="magmodules/webwinkelkeur/sidebar/left.phtml" />
9
- </reference>
10
- <reference name="right">
11
- <block type="webwinkelkeur/sidebar" name="right.webwinkelkeur" template="magmodules/webwinkelkeur/sidebar/right.phtml" />
12
- </reference>
13
- <reference name="before_body_end">
14
- <block type="core/template" name="webwinkelkeur_js_sidebar" as="webwinkelkeur_js_sidebar" template="magmodules/webwinkelkeur/sidebar/js-sidebar.phtml" />
15
- </reference>
16
- </default>
17
- <webwinkelkeur_index_index>
18
- <reference name="root">
19
- <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
20
- </reference>
21
- <reference name="head">
22
- <action method="addCss"><stylesheet>magmodules/webwinkelkeur/style.css</stylesheet> </action>
23
- </reference>
24
- <reference name="content">
25
- <block type="webwinkelkeur/reviews" name="webwinkelkeur.index" template="magmodules/webwinkelkeur/index.phtml" />
26
- </reference>
27
- <reference name="left">
28
- <remove name="left.webwinkelkeur" />
29
- </reference>
30
- <reference name="right">
31
- <remove name="right.webwinkelkeur" />
32
- </reference>
33
- </webwinkelkeur_index_index>
34
- <cms_index_index>
35
- <reference name="head">
36
- <action method="addCss"><stylesheet>magmodules/webwinkelkeur/richsnippters.css</stylesheet></action>
37
- </reference>
38
- </cms_index_index>
39
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/magmodules/{webwinkelkeur → webwinkelconnect}/index.phtml RENAMED
@@ -14,14 +14,13 @@
14
  * to info@magmodules.eu so we can send you a copy immediately.
15
  *
16
  * @category Magmodules
17
- * @package Magmodules_Webwinkelkeur
18
  * @author Magmodules <info@magmodules.eu)
19
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
  ?>
23
  <?php
24
- // Load Reviews & Stats
25
  $reviews = $this->getReviews();
26
  $stats = $this->getStats();
27
  ?>
@@ -29,9 +28,9 @@
29
 
30
  <div class="page-title">
31
  <h1><?php echo $this->__('WebwinkelKeur'); ?></h1>
32
- <?php if(Mage::getStoreConfig('webwinkelkeur/general/url')): ?>
33
- <?php if(Mage::getStoreConfig('webwinkelkeur/frontend/enabled')): ?>
34
- <button class="button webwinkelkeurAddReview">
35
  <span>
36
  <span>
37
  <?php echo $this->__('Write review');?>
@@ -39,7 +38,7 @@
39
  </span>
40
  </button>
41
  <?php else: ?>
42
- <button class="button" onclick="setLocation('<?php echo Mage::getStoreConfig('webwinkelkeur/general/url'); ?>')">
43
  <span>
44
  <span>
45
  <?php echo $this->__('Write review');?>
@@ -53,10 +52,10 @@
53
  <?php if($reviews->getSize()): ?>
54
  <div class="content-webwinkelkeur">
55
  <div class="about-webwinkelkeur">
56
- Stichting WebwinkelKeur is een non-profit organisatie welke een keurmerk combineert met klantbeoordelingen. Als lid van Stichting WebwinkelKeur hebben we dan ook een juridische toets doorstaan. Tevens kunt u onafhankelijk verzamelde klantbeoordelingen bij hen plaatsen en lezen. Stichting WebwinkelKeur zorgt hierbij voor betrouwbare en echte klantbeoordelingen die niet door de webwinkel te beïnvloeden zijn. Bent u toch niet tevreden? Dan kunt u uw geschil melden bij WebwinkelKeur en proberen ze u te helpen. U kunt dan ook veilig bij ons winkelen. Lees meer over Stichting WebwinkelKeur op: <a href="https://www.webwinkelkeur.nl/consument/" target="_blank">https://www.webwinkelkeur.nl/consument/</a>.
57
  <br/>
58
  <br/>
59
- <strong><?php echo $this->__('Link');?>:</strong> <a href="<?php echo Mage::getStoreConfig('webwinkelkeur/general/url'); ?>" target="_blank"><?php echo Mage::getStoreConfig('webwinkelkeur/general/url'); ?></a>
60
  </div>
61
  <div class="stats-webwinkelkeur">
62
  <div class="ratingblock-webwinkelkeur" style="background-color: #e0eacf; color: #7dab00;">
14
  * to info@magmodules.eu so we can send you a copy immediately.
15
  *
16
  * @category Magmodules
17
+ * @package Magmodules_Webwinkelconnect
18
  * @author Magmodules <info@magmodules.eu)
19
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
  ?>
23
  <?php
 
24
  $reviews = $this->getReviews();
25
  $stats = $this->getStats();
26
  ?>
28
 
29
  <div class="page-title">
30
  <h1><?php echo $this->__('WebwinkelKeur'); ?></h1>
31
+ <?php if(Mage::getStoreConfig('webwinkelconnect/general/url')): ?>
32
+ <?php if(Mage::getStoreConfig('webwinkelconnect/frontend/enabled')): ?>
33
+ <button class="button webwinkelconnectAddReview">
34
  <span>
35
  <span>
36
  <?php echo $this->__('Write review');?>
38
  </span>
39
  </button>
40
  <?php else: ?>
41
+ <button class="button" onclick="setLocation('<?php echo Mage::getStoreConfig('webwinkelconnect/general/url'); ?>')">
42
  <span>
43
  <span>
44
  <?php echo $this->__('Write review');?>
52
  <?php if($reviews->getSize()): ?>
53
  <div class="content-webwinkelkeur">
54
  <div class="about-webwinkelkeur">
55
+ Stichting WebwinkelKeur is een non-profit organisatie welke een keurmerk combineert met klantbeoordelingen. Als lid van Stichting WebwinkelKeur hebben we dan ook een juridische toets doorstaan. Tevens kunt u onafhankelijk verzamelde klantbeoordelingen bij hen plaatsen en lezen. Stichting WebwinkelKeur zorgt hierbij voor betrouwbare en echte klantbeoordelingen die niet door de webwinkel te beïnvloeden zijn. Bent u toch niet tevreden? Dan kunt u uw geschil melden bij WebwinkelKeur en proberen ze u te helpen. U kunt dan ook veilig bij ons winkelen. Lees meer over Stichting WebwinkelKeur op: <a href="https://www.webwinkelconnect.nl/consument/" target="_blank">https://www.webwinkelconnect.nl/consument/</a>.
56
  <br/>
57
  <br/>
58
+ <strong><?php echo $this->__('Link');?>:</strong> <a href="<?php echo Mage::getStoreConfig('webwinkelconnect/general/url'); ?>" target="_blank"><?php echo Mage::getStoreConfig('webwinkelconnect/general/url'); ?></a>
59
  </div>
60
  <div class="stats-webwinkelkeur">
61
  <div class="ratingblock-webwinkelkeur" style="background-color: #e0eacf; color: #7dab00;">
app/design/frontend/base/default/template/magmodules/{webwinkelkeur → webwinkelconnect}/sidebar/js-sidebar.phtml RENAMED
@@ -14,28 +14,28 @@
14
  * to info@magmodules.eu so we can send you a copy immediately.
15
  *
16
  * @category Magmodules
17
- * @package Magmodules_Webwinkelkeur
18
  * @author Magmodules <info@magmodules.eu)
19
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
 
23
- $webwinkelkeur_id = (int)Mage::getStoreConfig('webwinkelkeur/general/api_id');
24
- $enabled = Mage::getStoreConfig('webwinkelkeur/general/enabled');
25
- $js_enabled =Mage::getStoreConfig('webwinkelkeur/frontend/enabled');
26
- $sidebar = (Mage::getStoreConfig('webwinkelkeur/frontend/sidebar') ? 'true' : 'false');
27
- $tooltip = (Mage::getStoreConfig('webwinkelkeur/frontend/tooltip') ? 'true' : 'false');
28
- $sidebar_position = Mage::getStoreConfig('webwinkelkeur/frontend/sidebar_position');
29
- $sidebar_top = Mage::getStoreConfig('webwinkelkeur/frontend/sidebar_height');
30
  ?>
31
- <?php if($webwinkelkeur_id && $js_enabled): ?>
32
  <script type="text/javascript">
33
  (function() {
34
- _webwinkelkeur_id = <?php echo $webwinkelkeur_id; ?>;
35
- _webwinkelkeur_sidebar = <?php echo $sidebar; ?>;
36
- _webwinkelkeur_tooltip = <?php echo $tooltip; ?>;
37
- _webwinkelkeur_sidebar_position = '<?php echo $sidebar_position; ?>';
38
- _webwinkelkeur_sidebar_top = '<?php echo $sidebar_top; ?>';
39
  var js = document.createElement("script");
40
  js.type = "text/javascript";
41
  js.async = true;
14
  * to info@magmodules.eu so we can send you a copy immediately.
15
  *
16
  * @category Magmodules
17
+ * @package Magmodules_Webwinkelconnect
18
  * @author Magmodules <info@magmodules.eu)
19
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
 
23
+ $webwinkelconnect_id = (int)Mage::getStoreConfig('webwinkelconnect/general/api_id');
24
+ $enabled = Mage::getStoreConfig('webwinkelconnect/general/enabled');
25
+ $js_enabled = Mage::getStoreConfig('webwinkelconnect/frontend/enabled');
26
+ $sidebar = (Mage::getStoreConfig('webwinkelconnect/frontend/sidebar') ? 'true' : 'false');
27
+ $tooltip = (Mage::getStoreConfig('webwinkelconnect/frontend/tooltip') ? 'true' : 'false');
28
+ $sidebar_position = Mage::getStoreConfig('webwinkelconnect/frontend/sidebar_position');
29
+ $sidebar_top = Mage::getStoreConfig('webwinkelconnect/frontend/sidebar_height');
30
  ?>
31
+ <?php if($webwinkelconnect_id && $js_enabled): ?>
32
  <script type="text/javascript">
33
  (function() {
34
+ _webwinkelconnect_id = <?php echo $webwinkelconnect_id; ?>;
35
+ _webwinkelconnect_sidebar = <?php echo $sidebar; ?>;
36
+ _webwinkelconnect_tooltip = <?php echo $tooltip; ?>;
37
+ _webwinkelconnect_sidebar_position = '<?php echo $sidebar_position; ?>';
38
+ _webwinkelconnect_sidebar_top = '<?php echo $sidebar_top; ?>';
39
  var js = document.createElement("script");
40
  js.type = "text/javascript";
41
  js.async = true;
app/design/frontend/base/default/template/magmodules/{webwinkelkeur → webwinkelconnect}/sidebar/left.phtml RENAMED
@@ -14,7 +14,7 @@
14
  * to info@magmodules.eu so we can send you a copy immediately.
15
  *
16
  * @category Magmodules
17
- * @package Magmodules_Webwinkelkeur
18
  * @author Magmodules <info@magmodules.eu)
19
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
14
  * to info@magmodules.eu so we can send you a copy immediately.
15
  *
16
  * @category Magmodules
17
+ * @package Magmodules_Webwinkelconnect
18
  * @author Magmodules <info@magmodules.eu)
19
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
app/design/frontend/base/default/template/magmodules/{webwinkelkeur → webwinkelconnect}/sidebar/right.phtml RENAMED
@@ -14,13 +14,13 @@
14
  * to info@magmodules.eu so we can send you a copy immediately.
15
  *
16
  * @category Magmodules
17
- * @package Magmodules_Webwinkelkeur
18
  * @author Magmodules <info@magmodules.eu)
19
  * @copyright Copyright (c) 2014 (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');
23
- $total = $this->helper('webwinkelkeur')->getTotalScore();
24
  ?>
25
 
26
  <?php if($sidebarreviews): ?>
14
  * to info@magmodules.eu so we can send you a copy immediately.
15
  *
16
  * @category Magmodules
17
+ * @package Magmodules_Webwinkelconnect
18
  * @author Magmodules <info@magmodules.eu)
19
  * @copyright Copyright (c) 2014 (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');
23
+ $total = $this->helper('webwinkelconnect')->getTotalScore();
24
  ?>
25
 
26
  <?php if($sidebarreviews): ?>
app/design/frontend/base/default/template/magmodules/{webwinkelkeur → webwinkelconnect}/widget/richsnippets.phtml RENAMED
@@ -14,20 +14,20 @@
14
  * to info@magmodules.eu so we can send you a copy immediately.
15
  *
16
  * @category Magmodules
17
- * @package Magmodules_Webwinkelkeur
18
  * @author Magmodules <info@magmodules.eu)
19
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
  ?>
23
  <?php if(($this->getSnippetsEnabled()) && ($snippets = $this->getSnippets())) { ?>
24
- <div class="webwinkelkeur-snippets">
25
  <?php echo $this->getHtmlStars($snippets->getPercentage()); ?>
26
  <div itemscope="itemscope" itemtype="http://schema.org/Product">
27
  <meta itemprop="name" content="<?php echo $snippets->getCompany(); ?>">
28
  <div itemprop="aggregateRating" itemscope="itemscope" itemtype="http://schema.org/AggregateRating">
29
  <meta itemprop="bestRating" content="100">
30
- <p><?php echo Mage::helper('kiyohsnippets')->__('Rating %s based on %s customer reviews', '<span itemprop="ratingValue">' . $snippets->getPercentage() . '</span>%', '<span itemprop="reviewCount">' . $snippets->getVotes() . '</span>') ?> <?php echo $this->getExternalLink(); ?> </p>
31
  </div>
32
  </div>
33
  </div>
14
  * to info@magmodules.eu so we can send you a copy immediately.
15
  *
16
  * @category Magmodules
17
+ * @package Magmodules_Webwinkelconnect
18
  * @author Magmodules <info@magmodules.eu)
19
  * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
20
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
  */
22
  ?>
23
  <?php if(($this->getSnippetsEnabled()) && ($snippets = $this->getSnippets())) { ?>
24
+ <div class="webwinkelconnect-snippets">
25
  <?php echo $this->getHtmlStars($snippets->getPercentage()); ?>
26
  <div itemscope="itemscope" itemtype="http://schema.org/Product">
27
  <meta itemprop="name" content="<?php echo $snippets->getCompany(); ?>">
28
  <div itemprop="aggregateRating" itemscope="itemscope" itemtype="http://schema.org/AggregateRating">
29
  <meta itemprop="bestRating" content="100">
30
+ <p><?php echo Mage::helper('webwinkelconnect')->__('Rating %s based on %s customer reviews', '<span itemprop="ratingValue">' . $snippets->getPercentage() . '</span>%', '<span itemprop="reviewCount">' . $snippets->getVotes() . '</span>') ?> <?php echo $this->getExternalLink(); ?> </p>
31
  </div>
32
  </div>
33
  </div>
app/etc/modules/Magmodules_Webwinkelconnect.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Magmodules_Webwinkelconnect>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ </Magmodules_Webwinkelconnect>
8
+ </modules>
9
+ </config>
app/etc/modules/Magmodules_Webwinkelkeur.xml DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Magmodules_Webwinkelkeur>
5
- <active>true</active>
6
- <codePool>local</codePool>
7
- </Magmodules_Webwinkelkeur>
8
- </modules>
9
- </config>
 
 
 
 
 
 
 
 
 
app/locale/en_US/{Magmodules_Webwinkelkeur.csv → Magmodules_Webwinkelconnect.csv} RENAMED
File without changes
app/locale/nl_NL/{Magmodules_Webwinkelkeur.csv → Magmodules_Webwinkelconnect.csv} RENAMED
File without changes
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Magmodules_Webwinkelconnect</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
- <license>OSL 3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Connect your Magento shop to Webwinkelkeur</summary>
10
  <description>Connect your Magento shop to Webwinkelkeur</description>
11
  <notes>First stable release</notes>
12
- <authors><author><name>Magmodules</name><user>magmodules</user><email>info@magmodules.nl</email></author></authors>
13
- <date>2014-09-24</date>
14
- <time>12:37:40</time>
15
- <contents><target name="magelocal"><dir name="Magmodules"><dir name="Webwinkelkeur"><dir name="Block"><dir name="Adminhtml"><dir name="Webwinkellog"><file name="Grid.php" hash="f5738c5e7d84396a97116c54b5e90635"/></dir><file name="Webwinkellog.php" hash="53ebdf2dcc3d2e0e373ed8f33a763798"/><dir name="Webwinkelreviews"><file name="Grid.php" hash="542d749676338cbdeeb55586eabb48df"/><dir name="Renderer"><file name="Experience.php" hash="04493b27adccfe58f613d39185ebec70"/></dir></dir><file name="Webwinkelreviews.php" hash="23377e91761eebcb2fa4e9f7c1befecf"/><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="8f5599dd7725fba491ce8afaf72f0160"/><file name="Test.php" hash="1dd71bf556bae3171c3c1db258c734b5"/></dir><dir name="Form"><file name="Heading.php" hash="6897e45779bd46255d2ee113042cfbbf"/></dir><dir name="Grid"><file name="Log.php" hash="cf34c55039524c01ca23d596b8085d14"/><file name="Seconds.php" hash="35f336b20dacd8ad0d627fc6862839b7"/><file name="Stars.php" hash="52b90cc4d42929e2965d4a5c363f4604"/></dir><dir name="Info"><file name="Info.php" hash="fcaed39e1708bde99d763b5740932902"/></dir></dir></dir><file name="Reviews.php" hash="d5dc70a77762b413c3ce06b85c0d6ca5"/><file name="Sidebar.php" hash="97d059b69004c60d2d65357c64cc4c51"/><file name="Snippets.php" hash="67f905f13cdc55931ca3e4caf54e1343"/></dir><dir name="Helper"><file name="Data.php" hash="5deb3af53f223ef9fdce1348e5f42a24"/></dir><dir name="Model"><file name="Api.php" hash="8186f2a90a93d96a8e65d1e9c635bae7"/><file name="Log.php" hash="6ecc320dbbc10ee5cda27fc614786729"/><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="f5ad486ea11b11dab6118280d3ce3596"/></dir><file name="Log.php" hash="2c535e4fd418adb6f8f7682c0a90b71e"/><dir name="Reviews"><file name="Collection.php" hash="3f72be910bc874ee44c4825a20f9aae3"/></dir><file name="Reviews.php" hash="e597067ec10ba2843cdf287d10140984"/><dir name="Stats"><file name="Collection.php" hash="bcc52097471b436df3ef3df49dd2b514"/></dir><file name="Stats.php" hash="4b381f3c31545c19b719a6a0ddf9bc8d"/></dir><file name="Observer.php" hash="86db0b870bee6f3d05278a8aca012739"/><file name="Reviews.php" hash="bea3a66816d6793347efefd4eb04ee27"/><file name="Stats.php" hash="4fdb3aac9ea4d298bbd04abbd29f71cb"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Cronfrequency.php" hash="01ec2ce47c238ea6f263a5eb1514a5fd"/><file name="Orderstatus.php" hash="8b2814feba4e8bb57f2de692b15dc070"/><file name="Position.php" hash="ab6369e72fcad5188e350506b8990840"/><file name="Sidebarlink.php" hash="92d0e24d897084f52ee0b45264085587"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="WebwinkellogController.php" hash="1c8d05b64f23905d68dc2a53cee7d2b3"/><file name="WebwinkelreviewsController.php" hash="1260d46daa28adeb3a87088f2ddaac4d"/></dir><file name="IndexController.php" hash="313e1f531f6b0926534ce8022fe961e8"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1fc7ef0cb89910109c035dd3767d2b7b"/><file name="config.xml" hash="4b6369739d01dc732cf8ccdf444c1f46"/><file name="system.xml" hash="268dee05e38966d0bf09f71b531cbe92"/></dir><dir name="sql"><dir name="webwinkelkeur_setup"><file name="mysql4-install-0.9.0.php" hash="f19886e85f29783c592f5b430ba13544"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="magmodules_webwinkelkeur.xml" hash="e0caa7dac40707357dafb7243798957b"/></dir><dir name="template"><dir name="magmodules"><dir name="webwinkelkeur"><file name="index.phtml" hash="f68b855bfcf9f9d4c32bde5c918521b3"/><dir name="sidebar"><file name="js-sidebar.phtml" hash="3e39e24c9a9f79702332b3540d79d3fc"/><file name="left.phtml" hash="e38672314585e35f7143167b806dfe3e"/><file name="right.phtml" hash="f587d93bfb564976d025d3d47cf17c71"/></dir><dir name="widget"><file name="richsnippets.phtml" hash="960fea08718e18e7d237405665a16bac"/></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="magmodules_webwinkelkeur.xml" hash="414872a7f3a9734977c88c8b35ae0357"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magmodules_Webwinkelkeur.xml" hash="c152bb3d3595e648fe4858b028754343"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Magmodules_Webwinkelkeur.csv" hash="5ef900722ad9a3d120b38198e2918aad"/></dir><dir name="nl_NL"><file name="Magmodules_Webwinkelkeur.csv" hash="a74791935787c54dc6137d3b3ec1a385"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magmodules"><dir name="webwinkelkeur"><dir name="images"><file name="5-stars-empty.png" hash="799c499ca785331e7e69d892df52dd48"/><file name="5-stars-full.png" hash="1d06151a2c4da6bb71381538c8a903a5"/><file name="greystar.png" hash="ab99888c7a8f47826ad7a83bcabf9130"/><file name="star.png" hash="647c77f0ef881fb2a90a4f53f70d75fa"/></dir><file name="richsnippets.css" hash="46ff2f06f7d0d6f14c21fb56f97a27b3"/><file name="sidebar.css" hash="b5d05636b22b399434108176ea637b74"/><file name="style.css" hash="76b25d4ab96e964dfff8374f97da0078"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="magmodules"><dir name="webwinkelkeur"><file name="grid.css" hash="90a8ac7d668d2ea9a7dc84632e639847"/><file name="star.png" hash="4beacfb62ebdd5feecd946494e895f4c"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
- <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Magmodules_Webwinkelconnect</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
+ <license/>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Connect your Magento shop to Webwinkelkeur</summary>
10
  <description>Connect your Magento shop to Webwinkelkeur</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>2014-09-26</date>
14
+ <time>18:03:05</time>
15
+ <contents><target name="magelocal"><dir name="Magmodules"><dir name="Webwinkelconnect"><dir name="Block"><dir name="Adminhtml"><dir name="Webwinkellog"><file name="Grid.php" hash="c44f56ed659faa368e0b9d62036840de"/></dir><dir name="Webwinkelreviews"><dir name="Renderer"><file name="Experience.php" hash="aada48c75ea91d244b7b9c92cd00120f"/></dir><file name="Grid.php" hash="5577ba977b99624150b4939842aa301b"/></dir><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="4787bbaffd410554364ff4a5e1e63ac9"/><file name="Test.php" hash="b2b5c607bfac5cabd2a588ed38322749"/></dir><dir name="Form"><file name="Heading.php" hash="02e3828635cace2d0b9e027b83cd06ed"/></dir><dir name="Grid"><file name="Log.php" hash="e04aa72633771e2b6d1213b8913f7b2b"/><file name="Seconds.php" hash="10dcf6a7640efa9fbcf7ef6ae7e9ae43"/><file name="Stars.php" hash="85ad993421de14fab686d52a8fa950f6"/></dir><dir name="Info"><file name="Info.php" hash="71f073cdd6108df2e49bf16603345f99"/></dir></dir><file name="Webwinkellog.php" hash="f612e6364574f05f809824fd8a38da88"/><file name="Webwinkelreviews.php" hash="36cf79d85b2253aabbe09c0b56d120cd"/></dir><file name="Reviews.php" hash="d0bcb2f320b5467c8562352f5c99ed61"/><file name="Sidebar.php" hash="bcfdd06aecd665e96e27ec49e14ee5cf"/><file name="Snippets.php" hash="1535a7bfbf96eddda9f69e2abb89d01d"/></dir><dir name="Helper"><file name="Data.php" hash="6a8186a71b8c8622975a944c5da0bb23"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="89243624a30bf222d0b8dfb2fac1b081"/></dir><dir name="Reviews"><file name="Collection.php" hash="ce9a3bafe5fa02c3d9c6582dd5beb756"/></dir><dir name="Stats"><file name="Collection.php" hash="6fdca00a42531fea30c1c0dcd2a92ca4"/></dir><file name="Log.php" hash="dadc9bb908ece8dd9132f4def52615bd"/><file name="Reviews.php" hash="83035fb0362d9b70e082976fd5442aa6"/><file name="Stats.php" hash="0ef2b3d186d79366824ba278575d3fd5"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Cronfrequency.php" hash="fd8c061c265d3c4ad1c3c3dcadd8abb0"/><file name="Orderstatus.php" hash="d31db8b504538d0708c180edae7ec718"/><file name="Position.php" hash="c8982d5dd8175146c93b813d3f001360"/><file name="Sidebarlink.php" hash="2161d465770d7d8e605340a2dfb67b08"/></dir></dir></dir><file name="Api.php" hash="73d5536c55c55d3ac3448f55334ed059"/><file name="Log.php" hash="853c8f468509bf73114d626d6f72150d"/><file name="Observer.php" hash="c71a18f69ec7016894c50b88cf9a7328"/><file name="Reviews.php" hash="58cd41469de30e84e8f297d5fee0ca17"/><file name="Stats.php" hash="1f7abb4254e239a39492116aec4675b2"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="WebwinkellogController.php" hash="59bda6fbff7516d06f850f09743f9384"/><file name="WebwinkelreviewsController.php" hash="42ce9e509c114798d086ebc3c92da125"/></dir><file name="IndexController.php" hash="ada8a868046d0c0709d30299a9615bfc"/></dir><dir name="etc"><file name="adminhtml.xml" hash="5113fa81b039a4ae285f6252a91b6028"/><file name="config.xml" hash="12847e3a71ac7849abdec9326ab5bd45"/><file name="system.xml" hash="7db3a944b77626a1f5e5027a546b474d"/></dir><dir name="sql"><dir name="webwinkelconnect_setup"><file name="mysql4-install-1.0.1.php" hash="456058215ad80f59ec71e74d8f1af075"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="magmodules_webwinkelconnect.xml" hash="86d8211d7452cbd78f49d9fd1dfa51d0"/></dir><dir name="template"><dir name="magmodules"><dir name="webwinkelconnect"><dir name="sidebar"><file name="js-sidebar.phtml" hash="ee733a2517bfee9fd0961238a1c80409"/><file name="left.phtml" hash="192aa7247f9c6465c4d707a308eca2ee"/><file name="right.phtml" hash="71f0db4084f733eb802db5801af6d699"/></dir><dir name="widget"><file name="richsnippets.phtml" hash="980cffd98d6389bed62deea40c91a4ab"/></dir><file name="index.phtml" hash="f5d28a3463c2364fafb7283ba3b14eec"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="magmodules_webwinkelconnect.xml" hash="34b4d3252daa7c80d230b049e0b73311"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magmodules_Webwinkelconnect.xml" hash="1784309611987476302cb191d4da009d"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magmodules_Webwinkelconnect.csv" hash="5ef900722ad9a3d120b38198e2918aad"/></dir><dir name="nl_NL"><file name="Magmodules_Webwinkelconnect.csv" hash="a74791935787c54dc6137d3b3ec1a385"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magmodules"><dir name="webwinkelconnect"><dir name="images"><file name="5-stars-empty.png" hash="799c499ca785331e7e69d892df52dd48"/><file name="5-stars-full.png" hash="1d06151a2c4da6bb71381538c8a903a5"/><file name="greystar.png" hash="ab99888c7a8f47826ad7a83bcabf9130"/><file name="star.png" hash="647c77f0ef881fb2a90a4f53f70d75fa"/></dir><file name="richsnippets.css" hash="b2370d97684a2fa2fbc42fb6de470e42"/><file name="sidebar.css" hash="693d0e64b19f6c41afe82778c926432e"/><file name="style.css" hash="9047c69ebfb5d797511224cf5bb4fb49"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="magmodules"><dir name="webwinkelconnect"><file name="grid.css" hash="ce720c1772a8176eabf3866fcd83bb7a"/><file name="star.png" hash="4beacfb62ebdd5feecd946494e895f4c"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
+ <dependencies/>
18
  </package>
skin/adminhtml/default/default/magmodules/{webwinkelkeur → webwinkelconnect}/grid.css RENAMED
@@ -7,9 +7,9 @@
7
  * http://www.magmodules.eu/license-agreement/
8
  * =============================================================
9
  * @category Magmodules
10
- * @package Magmodules_Shopreview
11
  * @author Magmodules <info@magmodules.eu>
12
- * @copyright Copyright (c) 2013 (http://www.magmodules.eu)
13
  * @license http://www.magmodules.eu/license-agreement/
14
  * =============================================================
15
  */
7
  * http://www.magmodules.eu/license-agreement/
8
  * =============================================================
9
  * @category Magmodules
10
+ * @package Magmodules_Webwinkelconnect
11
  * @author Magmodules <info@magmodules.eu>
12
+ * @copyright Copyright (c) 2014 (http://www.magmodules.eu)
13
  * @license http://www.magmodules.eu/license-agreement/
14
  * =============================================================
15
  */
skin/adminhtml/default/default/magmodules/{webwinkelkeur → webwinkelconnect}/star.png RENAMED
File without changes
skin/frontend/base/default/magmodules/{webwinkelkeur → webwinkelconnect}/images/5-stars-empty.png RENAMED
File without changes
skin/frontend/base/default/magmodules/{webwinkelkeur → webwinkelconnect}/images/5-stars-full.png RENAMED
File without changes
skin/frontend/base/default/magmodules/{webwinkelkeur → webwinkelconnect}/images/greystar.png RENAMED
File without changes
skin/frontend/base/default/magmodules/{webwinkelkeur → webwinkelconnect}/images/star.png RENAMED
File without changes
skin/frontend/base/default/magmodules/{webwinkelkeur → webwinkelconnect}/richsnippets.css RENAMED
@@ -19,7 +19,7 @@
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
 
22
- .webwinkelkeur-snippets .rating-box {
23
  float: left;
24
  margin-right: 4px;
25
  margin-top: 0px;
@@ -32,7 +32,7 @@
32
  overflow:hidden;
33
  }
34
 
35
- .webwinkelkeur-snippets-snippets .rating {
36
  float:left;
37
  height:13px;
38
  background:url('images/bkg_rating.gif') 0 100% repeat-x;
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
 
22
+ .webwinkelconnect-snippets .rating-box {
23
  float: left;
24
  margin-right: 4px;
25
  margin-top: 0px;
32
  overflow:hidden;
33
  }
34
 
35
+ .webwinkelconnect-snippets .rating {
36
  float:left;
37
  height:13px;
38
  background:url('images/bkg_rating.gif') 0 100% repeat-x;
skin/frontend/base/default/magmodules/{webwinkelkeur → webwinkelconnect}/sidebar.css RENAMED
@@ -1,17 +1,22 @@
1
  /**
2
- * Magmodules.eu - http://www.magmodules.eu - info@magmodules.eu
3
- * =============================================================
4
- * NOTICE OF LICENSE [Single domain license]
5
- * This source file is subject to the EULA that is
6
- * available through the world-wide-web at:
7
- * http://www.magmodules.eu/license-agreement/
8
- * =============================================================
 
 
 
 
 
 
9
  * @category Magmodules
10
  * @package Magmodules_Webwinkelkeur
11
- * @author Magmodules <info@magmodules.eu>
12
- * @copyright Copyright (c) 2013 (http://www.magmodules.eu)
13
- * @license http://www.magmodules.eu/license-agreement/
14
- * =============================================================
15
  */
16
 
17
  .webwinkelkeur-sidebar-block {
1
  /**
2
+ * Magmodules.eu
3
+ * 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_Webwinkelkeur
17
+ * @author Magmodules <info@magmodules.eu)
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
  .webwinkelkeur-sidebar-block {
skin/frontend/base/default/magmodules/{webwinkelkeur → webwinkelconnect}/style.css RENAMED
@@ -1,19 +1,24 @@
1
  /**
2
- * Magmodules.eu - http://www.magmodules.eu - info@magmodules.eu
3
- * =============================================================
4
- * NOTICE OF LICENSE [Single domain license]
5
- * This source file is subject to the EULA that is
6
- * available through the world-wide-web at:
7
- * http://www.magmodules.eu/license-agreement/
8
- * =============================================================
 
 
 
 
 
 
9
  * @category Magmodules
10
- * @package Magmodules_Shopreview
11
- * @author Magmodules <info@magmodules.eu>
12
- * @copyright Copyright (c) 2013 (http://www.magmodules.eu)
13
- * @license http://www.magmodules.eu/license-agreement/
14
- * =============================================================
15
  */
16
-
17
  .webwinkelkeur {
18
  }
19
 
1
  /**
2
+ * Magmodules.eu
3
+ * 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_Webwinkelkeur
17
+ * @author Magmodules <info@magmodules.eu)
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
  .webwinkelkeur {
23
  }
24