MW_PageReloadEnhancement - Version 1.0.1

Version Notes

The Page Reload Enhancement extension simply refreshes the products on a webpage instead of the entire page, creating faster loading and shorter waiting.

Download this release

Release Info

Developer MageWhiz
Extension MW_PageReloadEnhancement
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

Files changed (42) hide show
  1. app/code/local/MW/All/Block/Adminhtml/Extension/Index.php +0 -27
  2. app/code/local/MW/All/Block/Adminhtml/Extension/Index/Form.php +0 -23
  3. app/code/local/MW/All/Block/Adminhtml/Extension/Index/Tab/Extension.php +0 -85
  4. app/code/local/MW/All/Block/Adminhtml/Extension/Index/Tabs.php +0 -27
  5. app/code/local/MW/All/Block/Notification/Popup.php +0 -19
  6. app/code/local/MW/All/Block/System/Config/Form/Fieldset/Abstract.php +0 -58
  7. app/code/local/MW/All/Block/System/Config/Form/Fieldset/Extension.php +0 -19
  8. app/code/local/MW/All/Block/System/Config/Form/Fieldset/Notification.php +0 -43
  9. app/code/local/MW/All/Block/System/Config/Form/Fieldset/Theme.php +0 -20
  10. app/code/local/MW/All/Helper/Config.php +0 -36
  11. app/code/local/MW/All/Helper/Data.php +0 -14
  12. app/code/local/MW/All/Helper/Extension.php +0 -52
  13. app/code/local/MW/All/Model/Feed/Abstract.php +0 -56
  14. app/code/local/MW/All/Model/Feed/Extension.php +0 -106
  15. app/code/local/MW/All/Model/Feed/Update.php +0 -112
  16. app/code/local/MW/All/Model/System/Config/Source/Feeds.php +0 -19
  17. app/code/local/MW/All/controllers/Adminhtml/ExtensionController.php +0 -52
  18. app/code/local/MW/All/etc/adminhtml.xml +0 -61
  19. app/code/local/MW/All/etc/config.xml +0 -107
  20. app/code/local/MW/All/etc/system.xml +0 -111
  21. app/code/local/MW/PageReloadEnhancement/Block/System/Html.php +91 -0
  22. app/code/local/MW/PageReloadEnhancement/etc/config.xml +1 -1
  23. app/code/local/MW/PageReloadEnhancement/etc/system.xml +24 -0
  24. app/design/adminhtml/default/default/layout/mw_all.xml +0 -15
  25. app/design/adminhtml/default/default/template/mw_all/extension/index.phtml +0 -33
  26. app/design/adminhtml/default/default/template/mw_all/jsinit.phtml +0 -44
  27. app/design/adminhtml/default/default/template/mw_all/notification/popup.phtml +0 -67
  28. app/etc/modules/MW_All.xml +0 -10
  29. package.xml +10 -10
  30. skin/adminhtml/default/default/mw/all/css/popup.css +0 -155
  31. skin/adminhtml/default/default/mw/all/images/close.gif +0 -0
  32. skin/adminhtml/default/default/mw/all/images/doc.png +0 -0
  33. skin/adminhtml/default/default/mw/all/images/extensions-store-btn.png +0 -0
  34. skin/adminhtml/default/default/mw/all/images/mwextension.png +0 -0
  35. skin/adminhtml/default/default/mw/all/images/mwicon.png +0 -0
  36. skin/adminhtml/default/default/mw/all/images/mwtheme.png +0 -0
  37. skin/adminhtml/default/default/mw/all/images/right.png +0 -0
  38. skin/adminhtml/default/default/mw/all/images/themes-store-btn.png +0 -0
  39. skin/adminhtml/default/default/mw/all/images/update.png +0 -0
  40. skin/adminhtml/default/default/mw/all/images/whizicon.gif +0 -0
  41. skin/adminhtml/default/default/mw/all/images/wrong.png +0 -0
  42. skin/adminhtml/default/default/mw/all/js/popup.js +0 -24
app/code/local/MW/All/Block/Adminhtml/Extension/Index.php DELETED
@@ -1,27 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
- class MW_All_Block_Adminhtml_Extension_Index extends Mage_Adminhtml_Block_Widget_Form_Container
9
- {
10
- public function __construct()
11
- {
12
- parent::__construct();
13
- $this->_blockGroup = 'mwall';
14
- $this->_controller = 'adminhtml_extension';
15
- $this->_mode = 'index';
16
-
17
- $this->_removeButton('back');
18
- $this->_removeButton('reset');
19
- }
20
-
21
- public function getHeaderText()
22
- {
23
- return Mage::helper('mwall')->__('Mage Whiz Extension Management');
24
- }
25
-
26
-
27
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/Block/Adminhtml/Extension/Index/Form.php DELETED
@@ -1,23 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
- class MW_All_Block_Adminhtml_Extension_Index_Form extends Mage_Adminhtml_Block_Widget_Form
9
- {
10
- protected function _prepareForm()
11
- {
12
- $form = new Varien_Data_Form(array(
13
- 'id' => 'edit_form',
14
- 'action' => $this->getUrl('*/*/save', array()),
15
- 'method' => 'post',
16
- 'enctype' => 'multipart/form-data'
17
- )
18
- );
19
- $form->setUseContainer(true);
20
- $this->setForm($form);
21
- return parent::_prepareForm();
22
- }
23
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/Block/Adminhtml/Extension/Index/Tab/Extension.php DELETED
@@ -1,85 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
- class MW_All_Block_Adminhtml_Extension_Index_Tab_Extension extends Mage_Adminhtml_Block_Widget_Form
9
- {
10
- protected $_cached = array();
11
-
12
- protected function _construct()
13
- {
14
- parent::_construct();
15
- $this->setTemplate('mw_all/extension/index.phtml');
16
- $this->setDestElementId('edit_form');
17
- $this->setShowGlobalIcon(false);
18
- }
19
-
20
- protected function getExtensionInfo($moduleName)
21
- {
22
- if (!sizeof($this->_cached)) {
23
- if ($cached_extensions = Mage::getModel('mwall/feed_extension')->getFedExtensions()) {
24
- $this->_cached = $cached_extensions;
25
- }
26
- }
27
- if (array_key_exists($moduleName, $this->_cached)) {
28
- $data = array(
29
- 'url' => @$this->_cached[$moduleName]['url'],
30
- 'display_name' => @$this->_cached[$moduleName]['display_name'],
31
- 'latest_version' => @$this->_cached[$moduleName]['version']
32
- );
33
- return new Varien_Object($data);
34
- }
35
- return new Varien_Object();
36
- }
37
- protected function toVersionNumber($v)
38
- {
39
- $digits = @explode(".", $v);
40
- $version = 0;
41
- if (is_array($digits)) {
42
- $count = count($digits);
43
- for($i = 0; $i < $count; $i++){
44
- $v = $digits[$i];
45
- $version += $v * pow(10, $count - $i - 1);
46
- }
47
- }
48
- return $version;
49
- }
50
- public function getExtensions()
51
- {
52
- $extensions = array();
53
- $modules = array_keys((array)Mage::getConfig()->getNode('modules')->children());
54
- sort($modules);
55
-
56
- foreach ($modules as $moduleName) {
57
- if (strstr($moduleName, 'MW_') === false) {
58
- continue;
59
- }
60
-
61
- if ($moduleName == 'MW_Core' || $moduleName == 'MW_All') {
62
- continue;
63
- }
64
-
65
- // Detect installed version
66
- $version = (Mage::getConfig()->getModuleConfig($moduleName)->version);
67
- $status = (Mage::getConfig()->getModuleConfig($moduleName)->active);
68
- $status = $status == 'true' ? 1: 0;
69
- $extensionInfo = $this->getExtensionInfo($moduleName);
70
- $upgradable = ($this->toVersionNumber($extensionInfo->getLatestVersion()) - $this->toVersionNumber($version)) > 0;
71
- $extensions[] = new Varien_Object(array(
72
- 'version' => $version,
73
- 'name' => $moduleName,
74
- 'active' => $status,
75
- 'extension_info' => $extensionInfo,
76
- 'upgradable' => $upgradable,
77
- 'icon' => new Varien_Object(array(
78
- 'src' => $this->getSkinUrl($upgradable ? 'mw/all/images/update.png' : ($status?'mw/all/images/right.png':'mw/all/images/wrong.png')),
79
- 'title' => ($upgradable ? 'Update available' : ($status?'Enabled and Up to date':'Disabled and Up to date')),
80
- ))
81
- ));
82
- }
83
- return $extensions;
84
- }
85
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/Block/Adminhtml/Extension/Index/Tabs.php DELETED
@@ -1,27 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
- class MW_All_Block_Adminhtml_Extension_Index_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
9
- {
10
- public function __construct()
11
- {
12
- parent::__construct();
13
- $this->setId('extension_tabs');
14
- $this->setDestElementId('edit_form');
15
- $this->setTitle(Mage::helper('mwall')->__('Mage Whiz'));
16
- }
17
- protected function _beforeToHtml()
18
- {
19
- $this->addTab('extension_section', array(
20
- 'label' => Mage::helper('mwall')->__('Extension Management'),
21
- 'title' => Mage::helper('mwall')->__('Extension Management') ,
22
- 'content' => $this->getLayout()->createBlock('mwall/adminhtml_extension_index_tab_extension')->toHtml(),
23
- ));
24
-
25
- return parent::_beforeToHtml();
26
- }
27
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/Block/Notification/Popup.php DELETED
@@ -1,19 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
-
9
-
10
- class MW_All_Block_Notification_Popup extends Mage_Adminhtml_Block_Notification_Window
11
- {
12
- protected function _toHtml()
13
- {
14
- if (!Mage::getStoreConfig('mwall/whiz/hide_notice')) {
15
- $this->setTemplate('mw_all/notification/popup.phtml');
16
- }
17
- return parent::_toHtml();
18
- }
19
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/Block/System/Config/Form/Fieldset/Abstract.php DELETED
@@ -1,58 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
-
9
-
10
- abstract class MW_All_Block_System_Config_Form_Fieldset_Abstract extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
11
- {
12
- protected $_whizData;
13
- protected $_whizUrl;
14
- protected $_whizCacheKey;
15
-
16
- public function render(Varien_Data_Form_Element_Abstract $element)
17
- {
18
- return '<div id="' . $element->getId() . '">' . $this->getWhizData() . '</div>';
19
- }
20
-
21
- protected function getWhizData()
22
- {
23
- if (!is_null($this->_whizData))
24
- return $this->_whizData;
25
- $connection = $this->_getCurlConnection($this->_whizUrl);
26
- $content = $connection->read();
27
-
28
- if ($content !== false) {
29
- $content = preg_split('/^\r?$/m', $content, 2);
30
- $content = trim($content[1]);
31
- Mage::app()->saveCache($content, $this->_whizCacheKey);
32
- }
33
- else {
34
- if (!$content = Mage::app()->loadCache($this->_whizCacheKey)) {
35
- return 'Temporarily cannot connect to remote server. Please try again later.';
36
- }
37
- }
38
-
39
- $connection->close();
40
- $this->_whizData = $content;
41
- return $this->_whizData;
42
- }
43
-
44
- protected function _getCurlConnection($url_path, $params = array())
45
- {
46
- $url_params = array();
47
- foreach ($params as $key => $val) {
48
- $url_params[] = urlencode($key) . '=' . urlencode($val);
49
- }
50
- $url_path = rtrim($url_path) . (count($url_params) ? ('?' . implode('&', $url_params)) : '');
51
-
52
- $curl = new Varien_Http_Adapter_Curl();
53
- $curl->setConfig(array('timeout' => 10));
54
- $curl->write(Zend_Http_Client::GET, $url_path);
55
-
56
- return $curl;
57
- }
58
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/Block/System/Config/Form/Fieldset/Extension.php DELETED
@@ -1,19 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
-
9
- class MW_All_Block_System_Config_Form_Fieldset_Extension extends MW_All_Block_System_Config_Form_Fieldset_Abstract
10
- {
11
- protected $_whizData;
12
- protected $_whizUrl;
13
- protected $_whizCacheKey;
14
-
15
- public function _construct(){
16
- $this->_whizUrl = MW_All_Helper_Config::WHIZ_EXTENSION_SHOWCASE_URL;
17
- $this->_whizCacheKey = MW_All_Helper_Config::WHIZ_EXTENSION_SHOWCASE_CACHE_KEY;
18
- }
19
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/Block/System/Config/Form/Fieldset/Notification.php DELETED
@@ -1,43 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
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 license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category Mage
22
- * @package Mage_Adminhtml
23
- * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
- */
26
-
27
-
28
- /**
29
- * Adminhtml system config datetime field renderer
30
- *
31
- * @category Mage
32
- * @package Mage_Adminhtml
33
- * @author Magento Core Team <core@magentocommerce.com>
34
- */
35
- class MW_All_Block_System_Config_Form_Fieldset_Notification extends Mage_Adminhtml_Block_System_Config_Form_Field
36
- {
37
- protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
38
- {
39
- $element->setValue(Mage::app()->loadCache('mw_notifications_lastcheck'));
40
- $format = Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM);
41
- return Mage::app()->getLocale()->date(intval($element->getValue()))->toString($format);
42
- }
43
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/Block/System/Config/Form/Fieldset/Theme.php DELETED
@@ -1,20 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
-
9
-
10
- class MW_All_Block_System_Config_Form_Fieldset_Theme extends MW_All_Block_System_Config_Form_Fieldset_Abstract
11
- {
12
- protected $_whizData;
13
- protected $_whizUrl;
14
- protected $_whizCacheKey;
15
-
16
- public function _construct(){
17
- $this->_whizUrl = MW_All_Helper_Config::WHIZ_THEME_SHOWCASE_URL;
18
- $this->_whizCacheKey = MW_All_Helper_Config::WHIZ_THEME_SHOWCASE_CACHE_KEY;
19
- }
20
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/Helper/Config.php DELETED
@@ -1,36 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
-
9
-
10
- class MW_All_Helper_Config extends Mage_Core_Helper_Abstract
11
- {
12
- const UPDATE_TYPE_CUSTOMER_PROMOTIONS = 'CUSTOMER_PROMOTIONS';
13
- const UPDATE_TYPE_NEW = 'NEW';
14
- const UPDATE_TYPE_UPDATE = 'UPDATE';
15
- const UPDATE_TYPE_UPDATE_FOR_INSTALL_ONLY = 'INSTALLED_UPDATE';
16
- const UPDATE_TYPE_OTHERS = 'OTHERS';
17
-
18
- const WHIZ_EXTENSION_SHOWCASE_URL = 'http://www.magewhiz.com/mwextension/';
19
- const WHIZ_THEME_SHOWCASE_URL = 'http://www.magewhiz.com/mwtheme/';
20
- const WHIZ_EXTENSION_SHOWCASE_CACHE_KEY = 'whiz_extension_showcase_cache_key';
21
- const WHIZ_THEME_SHOWCASE_CACHE_KEY = 'whiz_theme_showcase_cache_key';
22
-
23
- public function getUpdateTypes(){
24
- return array(
25
- self::UPDATE_TYPE_CUSTOMER_PROMOTIONS => 'Latest Customer Promotions',
26
- self::UPDATE_TYPE_NEW => 'Latest Theme and Extension Releases',
27
- self::UPDATE_TYPE_UPDATE => 'Latest Theme and Extension Updates',
28
- self::UPDATE_TYPE_UPDATE_FOR_INSTALL_ONLY => 'Installed extensions updates',
29
- self::UPDATE_TYPE_OTHERS => 'Other information',
30
- );
31
- }
32
-
33
- public function getConfigurableUpdateTypes() {
34
- return Mage::getModel('mwall/feed_update')->getUpdateTypes();
35
- }
36
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/Helper/Data.php DELETED
@@ -1,14 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
-
9
-
10
- class MW_All_Helper_Data extends Mage_Core_Helper_Abstract
11
- {
12
- }
13
-
14
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/Helper/Extension.php DELETED
@@ -1,52 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
-
9
- class MW_All_Helper_Extension1 extends Varien_Object
10
- {
11
- /**
12
- * Detect if extension installed
13
- * @param string $code
14
- * @return bool
15
- */
16
- public function isExtensionInstalled($code)
17
- {
18
- $exts = $this->getInstalledExtensions();
19
- return (isset($exts[$code]));
20
- }
21
-
22
- /**
23
- * Detect if extension is installed and active
24
- * @param string $code
25
- * @return bool
26
- */
27
- public function isExtensionActive($code)
28
- {
29
- if ($this->isExtensionInstalled($code)) {
30
- $exts = $this->getInstalledExtensions();
31
- return (bool)$exts[$code]['active'];
32
- }
33
- }
34
-
35
- /**
36
- * Return all installed extensions
37
- * This way is based on
38
- * @return array
39
- */
40
- public function getInstalledExtensions()
41
- {
42
- if (!$this->getData('installed_extensions')) {
43
- $exts = array();
44
- $modules = ((array)Mage::getConfig()->getNode('modules')->children());
45
- foreach ($modules as $k => $Module) {
46
- $exts[$k] = (array)$Module;
47
- }
48
- $this->setData('installed_extensions', $exts);
49
- }
50
- return $this->getData('installed_extensions');
51
- }
52
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/Model/Feed/Abstract.php DELETED
@@ -1,56 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
-
9
-
10
- class MW_All_Model_Feed_Abstract extends Mage_Core_Model_Abstract
11
- {
12
-
13
- /**
14
- * Retrieve feed data as XML element
15
- *
16
- * @return SimpleXMLElement
17
- */
18
- public function getFeedData()
19
- {
20
- $curl = new Varien_Http_Adapter_Curl();
21
- $curl->setConfig(array(
22
- 'timeout' => 1
23
- ));
24
- $curl->write(Zend_Http_Client::GET, $this->getFeedUrl(), '1.0');
25
- $data = $curl->read();
26
- if ($data === false) {
27
- return false;
28
- }
29
- $data = preg_split('/^\r?$/m', $data, 2);
30
- $data = trim($data[1]);
31
- $curl->close();
32
-
33
- try {
34
- $xml = new SimpleXMLElement($data);
35
- }
36
- catch (Exception $e) {
37
- return false;
38
- }
39
-
40
- return $xml;
41
- }
42
-
43
-
44
- /**
45
- * Retrieve DB date from RSS date
46
- *
47
- * @param string $rssDate
48
- * @return string YYYY-MM-DD YY:HH:SS
49
- */
50
- public function getDate($rssDate)
51
- {
52
- return gmdate('Y-m-d H:i:s', strtotime($rssDate));
53
- }
54
-
55
-
56
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/Model/Feed/Extension.php DELETED
@@ -1,106 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
-
9
-
10
- class MW_All_Model_Feed_Extension extends Mage_AdminNotification_Model_Feed
11
- {
12
- const XML_USE_HTTPS_PATH = 'mwall/mwnotifications/use_https';
13
- const XML_FEED_URL_PATH = 'mwall/mwnotifications/feed_extension_url';
14
- const XML_FREQUENCY_PATH = 'mwall/mwnotifications/frequency';
15
- const XML_LAST_UPDATE_PATH = 'mwall/mwnotifications/last_update';
16
-
17
- public function getLastUpdate()
18
- {
19
- return Mage::app()->loadCache('mw_all_extension_feed_lastcheck');
20
- }
21
-
22
- public function setLastUpdate()
23
- {
24
- Mage::app()->saveCache(time(), 'mw_all_extension_feed_lastcheck');
25
- return $this;
26
- }
27
- public function getFedExtensions()
28
- {
29
- return unserialize(Mage::app()->loadCache('mw_all_extension_feed_extensions'));
30
- }
31
-
32
- public function setFedExtensions($data)
33
- {
34
- Mage::app()->saveCache(serialize($data), 'mw_all_extension_feed_extensions');
35
- return $this;
36
- }
37
- public function getFeedUrl()
38
- {
39
- if (is_null($this->_feedUrl)) {
40
- $this->_feedUrl = (Mage::getStoreConfigFlag(self::XML_USE_HTTPS_PATH) ? 'https://' : 'http://')
41
- . Mage::getStoreConfig(self::XML_FEED_URL_PATH);
42
- }
43
- return $this->_feedUrl;
44
- }
45
-
46
- public function getFrequency()
47
- {
48
- return Mage::getStoreConfig(self::XML_FREQUENCY_PATH) * 3600;
49
- }
50
-
51
- public function checkUpdate()
52
- {
53
- if (($this->getFrequency() + $this->getLastUpdate()) > time() && sizeof($this->getFedExtensions())) {
54
- return $this;
55
- }
56
-
57
- $feedData = array();
58
-
59
- try {
60
- $feedXml = $this->getFeedData();
61
- if (!$feedXml) return false;
62
- foreach ($feedXml->children() as $item) {
63
- $feedData[(string)$item->name] = array(
64
- 'display_name' => (string)$item->display_name,
65
- 'version' => (string)$item->version,
66
- 'url' => (string)$item->url
67
- );
68
- }
69
- } catch (Exception $e) {
70
- return false;
71
- }
72
-
73
- $this->setLastUpdate();
74
- $this->setFedExtensions($feedData);
75
- return $feedData;
76
- }
77
- protected function _save($moduleName, $status)
78
- {
79
- $etcDir = Mage::getBaseDir('etc');
80
- $moduleFile = $etcDir . DS . 'modules' . DS . "{$moduleName}.xml";
81
-
82
- $dom = new DOMDocument();
83
- $dom->load($moduleFile);
84
-
85
- $nodeStatus = $dom->getElementsByTagName('active')->item(0);
86
- $oldstatus = $nodeStatus->nodeValue;
87
- $status = $status ? 'true': 'false';
88
- if($oldstatus != $status)
89
- $nodeStatus->nodeValue = $status;
90
- $dom->save($moduleFile);
91
- }
92
- public function saveModules($modules)
93
- {
94
- foreach($modules as $moduleName => $status)
95
- {
96
- $this->_save($moduleName, $status);
97
- }
98
- Mage::app()->cleanCache();
99
- Mage::app()->getCacheInstance()->flush();
100
-
101
- foreach (Mage::app()->getCacheInstance()->getTypes() as $type) {
102
- Mage::app()->getCacheInstance()->cleanType($type->getId());
103
- }
104
- }
105
-
106
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/Model/Feed/Update.php DELETED
@@ -1,112 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
- class MW_All_Model_Feed_Update extends Mage_AdminNotification_Model_Feed
9
- {
10
- const XML_USE_HTTPS_PATH = 'mwall/mwnotifications/use_https';
11
- const XML_FEED_URL_PATH = 'mwall/mwnotifications/feed_update_url';
12
- const XML_FREQUENCY_PATH = 'mwall/mwnotifications/frequency';
13
- const XML_LAST_UPDATE_PATH = 'mwall/mwnotifications/last_update';
14
-
15
- public function getLastUpdate()
16
- {
17
- return Mage::app()->loadCache('mw_all_updates_feed_lastcheck');
18
- }
19
-
20
- public function setLastUpdate()
21
- {
22
- Mage::app()->saveCache(time(), 'mw_all_updates_feed_lastcheck');
23
- return $this;
24
- }
25
-
26
- public function getFeedUrl()
27
- {
28
- if (is_null($this->_feedUrl)) {
29
- $this->_feedUrl = (Mage::getStoreConfigFlag(self::XML_USE_HTTPS_PATH) ? 'https://' : 'http://')
30
- . Mage::getStoreConfig(self::XML_FEED_URL_PATH);
31
- }
32
- return $this->_feedUrl;
33
- }
34
-
35
- public function getFrequency()
36
- {
37
- return Mage::getStoreConfig(self::XML_FREQUENCY_PATH) * 3600;
38
- }
39
-
40
- public function checkUpdate()
41
- {
42
- if (($this->getFrequency() + $this->getLastUpdate()) > time()) {
43
- return $this;
44
- }
45
-
46
- $feedData = array();
47
-
48
- $feedXml = $this->getFeedData();
49
- if (!$feedXml) return false;
50
- foreach ($feedXml->children() as $item) {
51
- if ($this->isAllowUpdate($item)) {
52
- $feedData[] = array(
53
- 'severity' => (int)$item->severity,
54
- 'date_added' => $this->getDate((string)$item->pubDate),
55
- 'title' => (string)$item->title,
56
- 'description' => (string)$item->description,
57
- 'url' => (string)$item->link,
58
- );
59
- }
60
-
61
- if ($feedData) {
62
- Mage::getModel('adminnotification/inbox')->parse(array_reverse($feedData));
63
- }
64
- }
65
-
66
-
67
- $this->setLastUpdate();
68
-
69
- return $this;
70
- }
71
-
72
- public function isAllowUpdate($item)
73
- {
74
- $updateTypes = $this->getUpdateTypes();
75
- $types = @explode(",", (string)$item->type);
76
- $extensions = @explode(",", (string)$item->extensions);
77
- $isUpdateForInstallOnly = array_search(MW_All_Helper_Config::UPDATE_TYPE_UPDATE_FOR_INSTALL_ONLY, $types) !== false && sizeof($types) == 1;
78
-
79
- foreach ($types as $type) {
80
- if (array_search($type, $updateTypes) !== false) {
81
- if($isUpdateForInstallOnly) {
82
- foreach ($extensions as $ext) {
83
- if ($this->isExtensionInstalled($ext)) {
84
- return true;
85
- }
86
- }
87
- return false;
88
- }
89
- return true;
90
- }
91
- }
92
- return false;
93
- }
94
- public function getUpdateTypes()
95
- {
96
- if (!$this->getData('update_types')) {
97
- $types = @explode(',', Mage::getStoreConfig('mwall/mwnotifications/update_types'));
98
- $this->setData('update_types', $types);
99
- }
100
- return $this->getData('update_types');
101
- }
102
- public function isExtensionInstalled($extension_code)
103
- {
104
- $modules = array_keys((array)Mage::getConfig()->getNode('modules')->children());
105
- foreach ($modules as $moduleName) {
106
- if ($moduleName == $extension_code) {
107
- return true;
108
- }
109
- }
110
- return false;
111
- }
112
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/Model/System/Config/Source/Feeds.php DELETED
@@ -1,19 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
-
9
- class MW_All_Model_System_Config_Source_Feeds
10
- {
11
- public function toOptionArray()
12
- {
13
- $arr = array();
14
- foreach (Mage::helper('mwall/config')->getUpdateTypes() as $k=>$v) {
15
- $arr[] = array('value'=>$k, 'label'=>$v);
16
- }
17
- return $arr;
18
- }
19
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/controllers/Adminhtml/ExtensionController.php DELETED
@@ -1,52 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
- class MW_All_Adminhtml_ExtensionController extends Mage_Adminhtml_Controller_action {
9
-
10
- protected function _initAction() {
11
- $this->loadLayout()
12
- ->_setActiveMenu('extensionManagement/items')
13
- ->_addBreadcrumb(Mage::helper('adminhtml')->__('Extension Management'), Mage::helper('adminhtml')->__('Extension Management'));
14
-
15
- return $this;
16
- }
17
-
18
- public function indexAction() {
19
- $data = Mage::getSingleton('adminhtml/session')->getFormData(true);
20
-
21
- Mage::register('extension_data', $data);
22
-
23
- $this->loadLayout();
24
- $this->_setActiveMenu('extensionManagement/items');
25
-
26
- $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Extension Management'), Mage::helper('adminhtml')->__('Extension Management'));
27
-
28
- $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
29
-
30
- $this->_addContent($this->getLayout()->createBlock('mwall/adminhtml_extension_index'))->_addLeft($this->getLayout()->createBlock('mwall/adminhtml_extension_index_tabs'));
31
-
32
- $this->renderLayout();
33
- }
34
-
35
- public function saveAction()
36
- {
37
- if ($modules = $this->getRequest()->getPost('modules')) {
38
- $model = Mage::getModel('mwall/feed_extension');
39
-
40
- try {
41
- $model->saveModules($modules);
42
- Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('mwall')->__('Extensions was successfully saved'));
43
- Mage::getSingleton('adminhtml/session')->setFormData(false);
44
- } catch (Exception $e) {
45
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
46
- Mage::getSingleton('adminhtml/session')->setFormData($modules);
47
- }
48
-
49
- }
50
- $this->_redirect('*/*/');
51
- }
52
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/etc/adminhtml.xml DELETED
@@ -1,61 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <layout>
4
- <updates>
5
- <mwall module="MW_All">
6
- <file>mw_all.xml</file>
7
- </mwall>
8
- </updates>
9
- </layout>
10
- <menu>
11
- <mwall>
12
- <title>Mage Whiz</title>
13
- <sort_order>75</sort_order>
14
- <children>
15
- <extensionmanagement>
16
- <title>Extension Management</title>
17
- <sort_order>-10</sort_order>
18
- <action>mwall/adminhtml_extension</action>
19
- </extensionmanagement>
20
- </children>
21
- </mwall>
22
- </menu>
23
- <acl>
24
- <resources>
25
- <all>
26
- <title>Allow Everything</title>
27
- </all>
28
- <admin>
29
- <children>
30
- <system>
31
- <children>
32
- <config>
33
- <children>
34
- <mwall>
35
- <title>Mage Whiz - All</title>
36
- </mwall>
37
- </children>
38
- </config>
39
- </children>
40
- </system>
41
- </children>
42
- </admin>
43
- </resources>
44
- </acl>
45
- <events>
46
- <controller_action_predispatch>
47
- <observers>
48
- <mwall_exts>
49
- <type>singleton</type>
50
- <class>mwall/feed_extension</class>
51
- <method>checkUpdate</method>
52
- </mwall_exts>
53
- <mwall_upds>
54
- <type>singleton</type>
55
- <class>mwall/feed_update</class>
56
- <method>checkUpdate</method>
57
- </mwall_upds>
58
- </observers>
59
- </controller_action_predispatch>
60
- </events>
61
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/etc/config.xml DELETED
@@ -1,107 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <MW_All>
5
- <version>1.0.0</version>
6
- </MW_All>
7
- </modules>
8
- <global>
9
- <blocks>
10
- <mwall>
11
- <class>MW_All_Block</class>
12
- </mwall>
13
- <adminhtml>
14
- <rewrite>
15
- <notification_window>MW_All_Block_Notification_Popup</notification_window>
16
- </rewrite>
17
- </adminhtml>
18
- </blocks>
19
- <models>
20
- <mwall>
21
- <class>MW_All_Model</class>
22
- </mwall>
23
- </models>
24
-
25
- <helpers>
26
- <mwall>
27
- <class>MW_All_Helper</class>
28
- </mwall>
29
- </helpers>
30
- </global>
31
-
32
- <adminhtml>
33
- <layout>
34
- <updates>
35
- <mwall module="MW_All">
36
- <file>mw_all.xml</file>
37
- </mwall>
38
- </updates>
39
- </layout>
40
- <acl>
41
- <resources>
42
- <all>
43
- <title>Allow Everything</title>
44
- </all>
45
- <admin>
46
- <children>
47
- <system>
48
- <children>
49
- <config>
50
- <children>
51
- <mwall>
52
- <title>Mage Whiz</title>
53
- </mwall>
54
- <mwextension>
55
- <title>Mage Whiz Extensions</title>
56
- </mwextension>
57
- <mwtheme>
58
- <title>Mage Whiz Themes</title>
59
- </mwtheme>
60
- </children>
61
- </config>
62
- </children>
63
- </system>
64
- </children>
65
- </admin>
66
- </resources>
67
- </acl>
68
- <events>
69
- <controller_action_predispatch>
70
- <observers>
71
- <mwall_exts>
72
- <type>singleton</type>
73
- <class>mwall/feed_extension</class>
74
- <method>checkUpdate</method>
75
- </mwall_exts>
76
- <mwall_upds>
77
- <type>singleton</type>
78
- <class>mwall/feed_update</class>
79
- <method>checkUpdate</method>
80
- </mwall_upds>
81
- </observers>
82
- </controller_action_predispatch>
83
- </events>
84
- </adminhtml>
85
- <default>
86
- <mwall>
87
- <mwnotifications>
88
- <use_https>0</use_https>
89
- <frequency>24</frequency>
90
- <update_types>CUSTOMER_PROMOTIONS,NEW,UPDATE,INSTALLED_UPDATE,OTHERS</update_types>
91
- <feed_update_url>www.magewhiz.com/mwfeeds/updates.xml</feed_update_url>
92
- <feed_extension_url>www.magewhiz.com/mwfeeds/extensions.xml</feed_extension_url>
93
- </mwnotifications>
94
- </mwall>
95
- </default>
96
- <admin>
97
- <routers>
98
- <mwall>
99
- <use>admin</use>
100
- <args>
101
- <module>MW_All</module>
102
- <frontName>mwall</frontName>
103
- </args>
104
- </mwall>
105
- </routers>
106
- </admin>
107
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/All/etc/system.xml DELETED
@@ -1,111 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <tabs>
4
- <mwall translate="label" module="mwall">
5
- <label><![CDATA[<span class="mwtab">Mage Whiz</span>]]></label>
6
- <sort_order>300</sort_order>
7
- </mwall>
8
- </tabs>
9
- <sections>
10
- <mwall translate="label" module="mwall">
11
- <label>Mage Whiz Setting</label>
12
- <tab>mwall</tab>
13
- <frontend_type>text</frontend_type>
14
- <sort_order>999999</sort_order>
15
- <show_in_default>1</show_in_default>
16
- <show_in_website>1</show_in_website>
17
- <show_in_store>1</show_in_store>
18
- <groups>
19
- <mwnotifications>
20
- <label>Notifications</label>
21
- <frontend_type>text</frontend_type>
22
- <sort_order>60</sort_order>
23
- <show_in_default>1</show_in_default>
24
- <show_in_website>1</show_in_website>
25
- <show_in_store>1</show_in_store>
26
- <fields>
27
- <update_types translate="label">
28
- <label>I'd like to get more information about:</label>
29
- <frontend_type>multiselect</frontend_type>
30
- <sort_order>100</sort_order>
31
- <show_in_default>1</show_in_default>
32
- <show_in_website>1</show_in_website>
33
- <show_in_store>1</show_in_store>
34
- <can_be_empty>1</can_be_empty>
35
- <source_model>mwall/system_config_source_feeds</source_model>
36
- </update_types>
37
- <use_https translate="label">
38
- <label>Use HTTPS to Get Feed</label>
39
- <frontend_type>select</frontend_type>
40
- <source_model>adminhtml/system_config_source_yesno</source_model>
41
- <sort_order>150</sort_order>
42
- <show_in_default>1</show_in_default>
43
- <show_in_website>0</show_in_website>
44
- <show_in_store>0</show_in_store>
45
- </use_https>
46
- <frequency translate="label">
47
- <label>Update Frequency</label>
48
- <frontend_type>select</frontend_type>
49
- <source_model>adminhtml/system_config_source_notification_frequency</source_model>
50
- <sort_order>200</sort_order>
51
- <show_in_default>1</show_in_default>
52
- <show_in_website>0</show_in_website>
53
- <show_in_store>0</show_in_store>
54
- </frequency>
55
- <last_update translate="label">
56
- <label>Last Update</label>
57
- <frontend_type>label</frontend_type>
58
- <frontend_model>mwall/system_config_form_fieldset_notification</frontend_model>
59
- <sort_order>250</sort_order>
60
- <show_in_default>1</show_in_default>
61
- <show_in_website>0</show_in_website>
62
- <show_in_store>0</show_in_store>
63
- </last_update>
64
- </fields>
65
- </mwnotifications>
66
- </groups>
67
- </mwall>
68
- <mwextension>
69
- <label>Mage Whiz Extensions</label>
70
- <tab>mwall</tab>
71
- <class>mwextension-section</class>
72
- <frontend_type>text</frontend_type>
73
- <sort_order>9999</sort_order>
74
- <show_in_default>1</show_in_default>
75
- <show_in_website>1</show_in_website>
76
- <show_in_store>1</show_in_store>
77
- <groups>
78
- <extensions translate="label">
79
- <label>Mage Whiz Extensions</label>
80
- <frontend_type>text</frontend_type>
81
- <frontend_model>mwall/system_config_form_fieldset_extension</frontend_model>
82
- <sort_order>2</sort_order>
83
- <show_in_default>1</show_in_default>
84
- <show_in_website>1</show_in_website>
85
- <show_in_store>1</show_in_store>
86
- </extensions>
87
- </groups>
88
- </mwextension>
89
- <mwtheme>
90
- <label>Mage Whiz Themes</label>
91
- <tab>mwall</tab>
92
- <class>mwtheme-section</class>
93
- <frontend_type>text</frontend_type>
94
- <sort_order>99999</sort_order>
95
- <show_in_default>1</show_in_default>
96
- <show_in_website>1</show_in_website>
97
- <show_in_store>1</show_in_store>
98
- <groups>
99
- <themes translate="label">
100
- <label>Mage Whiz Themes</label>
101
- <frontend_type>text</frontend_type>
102
- <frontend_model>mwall/system_config_form_fieldset_theme</frontend_model>
103
- <sort_order>2</sort_order>
104
- <show_in_default>1</show_in_default>
105
- <show_in_website>1</show_in_website>
106
- <show_in_store>1</show_in_store>
107
- </themes>
108
- </groups>
109
- </mwtheme>
110
- </sections>
111
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/MW/PageReloadEnhancement/Block/System/Html.php ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * WDCA
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 license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category WDCA
22
+ * @package TBT_Enhancedgrid
23
+ * @copyright Copyright (c) 2008-2010 WDCA (http://www.wdca.ca)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+
28
+ class MW_PageReloadEnhancement_Block_System_Html
29
+ extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
30
+ {
31
+ protected $_dummyElement;
32
+ protected $_fieldRenderer;
33
+ protected $_values;
34
+
35
+ public function render(Varien_Data_Form_Element_Abstract $element)
36
+ {
37
+
38
+ $html = "";
39
+ $html .= "
40
+ <div style=\" margin-bottom: 12px; width: 430px;\">
41
+ ";
42
+ $html .= $element->getLabel();
43
+ $html .= "
44
+ </div>
45
+ ";
46
+ $html .= "";//$this->_getFooterHtml($element);
47
+
48
+ return $html;
49
+ }
50
+
51
+ protected function _getDummyElement()
52
+ {
53
+ if (empty($this->_dummyElement)) {
54
+ $this->_dummyElement = new Varien_Object(array('show_in_default'=>1, 'show_in_website'=>1));
55
+ }
56
+ return $this->_dummyElement;
57
+ }
58
+
59
+ protected function _getFieldRenderer()
60
+ {
61
+ if (empty($this->_fieldRenderer)) {
62
+ $this->_fieldRenderer = Mage::getBlockSingleton('adminhtml/system_config_form_field');
63
+ }
64
+ return $this->_fieldRenderer;
65
+ }
66
+
67
+ protected function _getFieldHtml($fieldset, $moduleName)
68
+ {
69
+ $configData = $this->getConfigData();
70
+ $path = 'advanced/modules_disable_output/'.$moduleName;
71
+ $data = isset($configData[$path]) ? $configData[$path] : array();
72
+
73
+ $e = $this->_getDummyElement();
74
+
75
+ $moduleKey = substr($moduleName, strpos($moduleName,'_')+1);
76
+ $ver = (Mage::getConfig()->getModuleConfig($moduleName)->version);
77
+
78
+
79
+ if($ver){
80
+ $field = $fieldset->addField($moduleName, 'label',
81
+ array(
82
+ 'name' => 'unused',
83
+ 'label' => $moduleName,
84
+ 'value' => $ver
85
+ ))->setRenderer($this->_getFieldRenderer());
86
+ return $field->toHtml();
87
+ }
88
+ return '';
89
+
90
+ }
91
+ }
app/code/local/MW/PageReloadEnhancement/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <MW_PageReloadEnhancement>
5
- <version>1.0.0</version>
6
  </MW_PageReloadEnhancement>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <MW_PageReloadEnhancement>
5
+ <version>1.0.1</version>
6
  </MW_PageReloadEnhancement>
7
  </modules>
8
  <global>
app/code/local/MW/PageReloadEnhancement/etc/system.xml CHANGED
@@ -16,6 +16,30 @@
16
  <show_in_store>1</show_in_store>
17
 
18
  <groups>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  <general translate="label">
20
  <label>General</label>
21
  <frontend_type>text</frontend_type>
16
  <show_in_store>1</show_in_store>
17
 
18
  <groups>
19
+ <about translate="label">
20
+ <label>About This Extension</label>
21
+ <show_in_default>1</show_in_default>
22
+ <show_in_website>1</show_in_website>
23
+ <show_in_store>1</show_in_store>
24
+ <sort_order>1</sort_order>
25
+ <fields>
26
+ <notice translate="label">
27
+ <label><![CDATA[
28
+ Please feel free to contact us at<br/><br/>
29
+
30
+ MageWhiz Team<br/>
31
+ P: +1 503-764-4123 | W: <a href="http://www.magewhiz.com">http://www.magewhiz.com</a><br/>
32
+ E: <a href="mailto:whiz@magewhiz.com">whiz@magewhiz.com</a> | Skype: mage.whiz &nbsp;<a href="skype:mage.whiz?chat"><img src="http://mystatus.skype.com/smallicon/mage%2Ewhiz" style="border: none;" width="16" height="16" alt="My status" /></a>
33
+ <script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
34
+ ]]></label>
35
+ <frontend_model>pagereloadenhancement/system_html</frontend_model>
36
+ <sort_order>1</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
+ </notice>
41
+ </fields>
42
+ </about>
43
  <general translate="label">
44
  <label>General</label>
45
  <frontend_type>text</frontend_type>
app/design/adminhtml/default/default/layout/mw_all.xml DELETED
@@ -1,15 +0,0 @@
1
- <?xml version="1.0"?>
2
- <layout>
3
- <default>
4
- <reference name="head">
5
- <action method="addCss">
6
- <name>mw/all/css/popup.css</name>
7
- </action>
8
-
9
- <action method="addItem">
10
- <type>skin_js</type>
11
- <name>mw/all/js/popup.js</name>
12
- </action>
13
- </reference>
14
- </default>
15
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/mw_all/extension/index.phtml DELETED
@@ -1,33 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
- ?>
9
-
10
- <div id="mwall_whiz_extensions">
11
- <table class="form-list">
12
- <tbody>
13
- <?php foreach ($this->getExtensions() as $extension): $status = $extension->getActive();?>
14
- <tr>
15
- <td><img src="<?php echo $extension->getIcon()->getSrc()?>"
16
- alt="<?php echo $extension->getIcon()->getTitle()?>"/></td>
17
- <td><a href="<?php echo $extension->getExtensionInfo()->getUrl()?>"
18
- onclick="this.target = '_blank'"><?php echo $extension->getExtensionInfo()->getDisplayName()?></a>
19
- </td>
20
- <td><?php echo $extension->getVersion()?></td>
21
- <td>
22
- <a href="http://www.magewhiz.com/mwextensions/<?php echo $extension->getName()?>/<?php echo $extension->getVersion()?>/installation_guide.pdf"
23
- onclick="this.target = '_blank'"><img
24
- src="<?php echo $this->getSkinUrl('mw/all/images/doc.png')?>"/></a></td>
25
- <td><select class="select" name="modules[<?php echo $extension->getName()?>]" id="<?php echo $extension->getName()?>">
26
- <option <?php echo $status?'selected="selected"':'' ?> value="1">Enabled</option>
27
- <option <?php echo !$status?'selected="selected"':'' ?> value="0">Disabled</option>
28
- </select></td>
29
- </tr>
30
- <?php endforeach; ?>
31
- </tbody>
32
- </table>
33
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/mw_all/jsinit.phtml DELETED
@@ -1,44 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
- ?>
9
- <?php if ($this->_section == 'mwall'): ?>
10
- <div id="mwall_extensions_table">
11
- <table class="form-list">
12
- <tbody>
13
- <?php foreach ($this->getExtensions() as $Extension): ?>
14
- <tr>
15
- <td><img src="<?php echo $this->getIcon($Extension)->getSource()?>"
16
- alt="<?php echo $this->getIcon($Extension)->getTitle()?>"/></td>
17
- <td><a href="<?php echo $Extension->getFeedInfo()->getUrl()?>"
18
- onclick="this.target = '_blank'"><?php echo $Extension->getFeedInfo()->getDisplayName()?></a></td>
19
- <td><?php echo $Extension->getVersion()?></td>
20
- <td>
21
- <a href="http://www.magewhiz.com/mwextensions/<?php echo $Extension->getName()?>/<?php echo $Extension->getVersion()?>/installation_guide.pdf"
22
- onclick="this.target = '_blank'"><img
23
- src="<?php echo $this->getSkinUrl('mw/all/images/doc.png')?>"/></a></td>
24
- </tr>
25
- <?php endforeach; ?>
26
- </tbody>
27
- </table>
28
- </div>
29
- <?php endif; ?>
30
- <?php if ($this->_section == 'mwextension'): ?>
31
- <div id="mwextension_response">
32
- <?php echo $this->_getMwExtensionData()->getTextResponse()?>
33
- </div>
34
- <?php endif; ?>
35
-
36
- <?php if ($this->_section == 'mwtheme'): ?>
37
- <div id="mwtheme_response">
38
- <?php echo $this->_getMwThemeData()->getTextResponse()?>
39
- </div>
40
- <?php endif; ?>
41
-
42
- <script type="text/javascript">
43
- _section = '<?php echo $this->_section?>';
44
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/mw_all/notification/popup.phtml DELETED
@@ -1,67 +0,0 @@
1
- <?php
2
- /**
3
- * @category MW
4
- * @package MW_All
5
- * @version 1.0.0
6
- * @copyright Copyright (c) 2012 Mage Whiz. (http://www.magewhiz.com)
7
- */
8
- ?>
9
- <?php
10
- $helper = Mage::helper('mwall/config');
11
- $available_update_types = $helper->getConfigurableUpdateTypes();
12
- ?>
13
- <div class="popup-wrapper">
14
- <div id="mw_popup" class="notification" style="display:none;">
15
- <div class="header">
16
- <h3>Mage Whiz Notifications Setup</h3>
17
- <button type="button" class="close" onclick="mwPopup.closePopup()">
18
- <span><?php echo $this->getCloseText(); ?></span></button>
19
- </div>
20
- <div class="content">
21
- <form id="mw_notice" method="post"
22
- action="<?php echo $this->getUrl('adminhtml/system_config/save', array('section' => 'mwall'))?>">
23
- <table class="form-list" cellspacing="0" cellpadding="0">
24
- <tr>
25
- <td>
26
- <fieldset>
27
- <span class="legend_span">I'd like to get more information about:</span>
28
- <ul id="update_types">
29
- <?php foreach ($helper->getUpdateTypes() as $k => $v): ?>
30
- <li><input <?php $check_all = true; if(array_search($k, $available_update_types) !== false) echo 'checked="checked"'; else $check_all = false;?> type="checkbox" value="<?php echo $k?>"
31
- name="groups[mwnotifications][fields][update_types][value][]" id="id_<?php echo $k?>"><label for="id_<?php echo $k?>"><?php echo $this->__($v)?></label></li>
32
- <?php endforeach;?>
33
- </ul>
34
- <ul>
35
- <li><div style="border-bottom: 1px dotted #CBCBCB; height: 10px"/></li>
36
- <li><input <?php if($check_all) echo 'checked="checked"'?> type="checkbox" onclick="mwPopup.selectAll(this.checked);" id="id_select_all" /><label for="id_select_all">Select/Deselect All</label></li>
37
- </ul>
38
- </fieldset>
39
- </td>
40
- </tr>
41
- <tr>
42
- <td>
43
- <div class="show-next-time">
44
- <input name="groups[whiz][fields][hide_notice][value][]" type="checkbox"
45
- value="<?php echo time();?>"/> <small>Don't show next time. You can change these preferences from <br/><a href="<?php echo Mage::getModel('adminhtml/url')->getUrl('adminhtml/system_config/edit', array('section' => 'mwall')) ?>">System > Configuration > Mage Whiz > Info</a>.</small>
46
- </div>
47
- </td>
48
- </tr>
49
- <tr>
50
- <td align="center">
51
- <button id="save-button" onclick="mwPopup.scPopup()" type="button">
52
- <span>Save and Close</span>
53
- </button>
54
- </td>
55
- </tr>
56
- </table>
57
- </form>
58
- </div>
59
- </div>
60
- </div>
61
- <div id="message-popup-window-mask" style="display:none;"></div>
62
-
63
- <script type="text/javascript">
64
- Event.observe(window, 'load', function () {
65
- mwPopup.show()
66
- });
67
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/MW_All.xml DELETED
@@ -1,10 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <MW_All>
5
- <version>1.0.0</version>
6
- <active>true</active>
7
- <codePool>local</codePool>
8
- </MW_All>
9
- </modules>
10
- </config>
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MW_PageReloadEnhancement</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
- <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>MW extension</summary>
10
- <description>AjaxP agination</description>
11
- <notes>first version</notes>
12
- <authors><author><name>MagentoWhiz</name><user>forix</user><email>forix@forixsolutions.com</email></author></authors>
13
- <date>2012-11-09</date>
14
- <time>18:12:29</time>
15
- <contents><target name="magelocal"><dir name="MW"><dir name="PageReloadEnhancement"><dir name="Model"><file name="Observer.php" hash="b7024ab05d2962102e2cdd31281652f2"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6befaa052de3c6318d85744056bf510f"/><file name="config.xml" hash="ecbe940494f4a5969304572ed4b1ffe3"/><file name="system.xml" hash="79b17fccdabf00c473d41eb9e1404208"/></dir></dir><dir name="All"><dir name="Block"><dir name="Adminhtml"><dir name="Extension"><dir name="Index"><file name="Form.php" hash="cb9e9d780dbd83ec97f56b45311511b3"/><dir name="Tab"><file name="Extension.php" hash="f5e7c9c1b0418cfe17642c11956b92e9"/></dir><file name="Tabs.php" hash="fc9be632aea9d96cc316cda82ac0e906"/></dir><file name="Index.php" hash="f07cd08f8d9d18522d3e4a0a2281c7ab"/></dir></dir><dir name="Notification"><file name="Popup.php" hash="b20d6494733de7f4e63b36dbdc228225"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Fieldset"><file name="Abstract.php" hash="592015bea351cc70f2bef0120048d1d6"/><file name="Extension.php" hash="a01d38e8b5b8a07caa1b555c8c30216d"/><file name="Notification.php" hash="1df92810df72cb6014559dcb466602c9"/><file name="Theme.php" hash="1ed7de521e28c0954297f4cd50b46c16"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Config.php" hash="5dcf88c397019ca0952d4b59084c4ea6"/><file name="Data.php" hash="746a826f7ebe4aa8513f2e637d0c0516"/><file name="Extension.php" hash="e7bbdddfdb6d06e959ca2a513d367b03"/></dir><dir name="Model"><dir name="Feed"><file name="Abstract.php" hash="75faba3fcd8bfae361cc1ff937534d7e"/><file name="Extension.php" hash="022fa835b5bf138050c61cdf080a0459"/><file name="Update.php" hash="e59fe1060c897c4adcf50b58b9dff25a"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Feeds.php" hash="d89e107a88cdcec0cbe9fc1dff3e6743"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ExtensionController.php" hash="7c409b226e1a6a23bfb639f24dfeb360"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="3aa8db667c2d76bcbdc609e580b5a647"/><file name="config.xml" hash="172b300942fb2cb1f284037c7912b1a7"/><file name="system.xml" hash="e97899ec3c02df6c0cc35d3adcd901a5"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="mw"><dir name="pagereloadenhancement"><dir name="product"><file name="list.phtml" hash="d43cceb5f099b7b12fed9c59ae0e1293"/></dir></dir></dir></dir><dir name="layout"><file name="mw_pagereloadenhancement.xml" hash="2d376bfc9f6a4121854de534988979ff"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="mw_all"><dir name="extension"><file name="index.phtml" hash="d6c8e3cda9c00562775fd367a7e21626"/></dir><file name="jsinit.phtml" hash="a94e586dfb0e4c439d2128af64896949"/><dir name="notification"><file name="popup.phtml" hash="fcde5e4b3be41f8ef1b9be67ba1a08f3"/></dir></dir></dir><dir name="layout"><file name="mw_all.xml" hash="5eea68e6db5d59c63b70d127aa39a14a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MW_PageReloadEnhancement.xml" hash="a4172ecfc022557331462832bc8600de"/><file name="MW_All.xml" hash="5b0ad1d487d0fd867d4859e87016088d"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="mw"><dir name="pagereloadenhancement"><dir name="images"><file name="ajax-loader-tr.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/></dir><file name="pagereloadenhancement.css" hash="3c84e94b185dcca6c430fbb6e54f80e8"/></dir></dir></dir><dir name="js"><dir name="mw"><dir name="pagereloadenhancement"><file name="jquery.ba-bbq.min.js" hash="856cc20a1756ca55dc9f13eecf5b1b2d"/><file name="jquery.min.js" hash="9e3c8303a332e34b960c5e86d1e2b8f6"/><file name="jquery.noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="pagereloadenhancement.js" hash="634a25a67144042f184949d1211f7be0"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="mw"><dir name="all"><dir name="css"><file name="popup.css" hash="d9fb088302d181a414e2371e9a26d3ef"/></dir><dir name="images"><file name="close.gif" hash="f0bf0c0e78b66106f5d454da173e9ccd"/><file name="doc.png" hash="8b4e5005cdee34ce14df8003dd0505c6"/><file name="extensions-store-btn.png" hash="556ba8293ba6493ec1f85051209a18d6"/><file name="mwextension.png" hash="3a7db3e822d036dde57c8690d8083095"/><file name="mwicon.png" hash="40b659478060c487fc125074cbc310b4"/><file name="mwtheme.png" hash="0194602a24c35a6cc28d5eb0c2529f74"/><file name="right.png" hash="6c8d26faa40b2c243bf977ce2c1a20ad"/><file name="themes-store-btn.png" hash="8db45f931b356f7d12285ab5fa868984"/><file name="update.png" hash="c67b73e0cd41a04670e254b282df03ff"/><file name="whizicon.gif" hash="f60aff1f2720b056065a940b85d87746"/><file name="wrong.png" hash="6ba2b26b39110b522c50cbe638d95372"/></dir><dir name="js"><file name="popup.js" hash="c2771b2866121381e0662e777cf54979"/></dir></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>MW_PageReloadEnhancement</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
+ <license>OSL 3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>The Page Reload Enhancement extension simply refreshes the products on a webpage instead of the entire page, creating faster loading and shorter waiting.</summary>
10
+ <description>The Page Reload Enhancement extension simply refreshes the products on a webpage instead of the entire page, creating faster loading and shorter waiting.</description>
11
+ <notes>The Page Reload Enhancement extension simply refreshes the products on a webpage instead of the entire page, creating faster loading and shorter waiting.</notes>
12
+ <authors><author><name>MageWhiz</name><user>magewhiz</user><email>whiz@magewhiz.com</email></author></authors>
13
+ <date>2012-11-15</date>
14
+ <time>09:48:54</time>
15
+ <contents><target name="magelocal"><dir name="MW"><dir name="PageReloadEnhancement"><dir name="Block"><dir name="System"><file name="Html.php" hash="82d14e173e03e2aa4fac9134050ec86a"/></dir></dir><dir name="Model"><file name="Observer.php" hash="b7024ab05d2962102e2cdd31281652f2"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6befaa052de3c6318d85744056bf510f"/><file name="config.xml" hash="84b7908d905b5cc8ea0758949bbf58a7"/><file name="system.xml" hash="626ff9f0036620a5224a3a47bbc20cbf"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="mw"><dir name="pagereloadenhancement"><dir name="product"><file name="list.phtml" hash="d43cceb5f099b7b12fed9c59ae0e1293"/></dir></dir></dir></dir><dir name="layout"><file name="mw_pagereloadenhancement.xml" hash="2d376bfc9f6a4121854de534988979ff"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MW_PageReloadEnhancement.xml" hash="a4172ecfc022557331462832bc8600de"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="mw"><dir name="pagereloadenhancement"><dir name="images"><file name="ajax-loader-tr.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/></dir><file name="pagereloadenhancement.css" hash="3c84e94b185dcca6c430fbb6e54f80e8"/></dir></dir></dir><dir name="js"><dir name="mw"><dir name="pagereloadenhancement"><file name="jquery.ba-bbq.min.js" hash="856cc20a1756ca55dc9f13eecf5b1b2d"/><file name="jquery.min.js" hash="9e3c8303a332e34b960c5e86d1e2b8f6"/><file name="jquery.noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="pagereloadenhancement.js" hash="634a25a67144042f184949d1211f7be0"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
+ <dependencies><required><php><min>5.1.0</min><max>5.3.8</max></php></required></dependencies>
18
  </package>
skin/adminhtml/default/default/mw/all/css/popup.css DELETED
@@ -1,155 +0,0 @@
1
- .popup-wrapper {
2
- position: relative;
3
- margin-left: -390px;
4
- z-index: 100000000
5
- }
6
-
7
- #mw_popup {
8
- z-index: 100000000;
9
- position: absolute;
10
- top: 200px;
11
- padding: 0px;
12
- left: 50%;
13
- border: 4px solid #f1af73;
14
- border-top-width: 0px;
15
- margin: auto;
16
- background: #fdf4eb;
17
- }
18
-
19
- #mw_popup fieldset {
20
- border: 2px solid #f1af73;
21
- padding: 15px;
22
- position: relative;
23
- }
24
-
25
- #mw_popup .legend_span {
26
- visibility: visible;
27
- height: 20px;
28
- position: absolute;
29
- width: 220px;
30
- text-align: center;
31
- top: -11px;
32
- left: 20px;
33
- color: #000000;
34
- background: #fdf4eb;
35
- line-height: 20px;
36
- }
37
-
38
- #mw_popup ul {
39
- padding-left: 60px;
40
- }
41
-
42
- #mw_popup ul li {
43
- padding: 1px 0;
44
- }
45
-
46
- #mw_popup ul li label {
47
- width: 150px;
48
- padding-left: 10px;
49
- z-index: -1;
50
- }
51
-
52
- #mw_popup .header h3 {
53
- font-size: 1.1em;
54
- margin: 4px 12px 0 0;
55
- font-weight: bold;
56
- float: left;
57
- }
58
-
59
- #mw_popup .header {
60
- background: #f1af73;
61
- height: 24px;
62
- width: 405px;
63
- }
64
-
65
- #mw_popup .content {
66
- padding: 20px;
67
- background: url(../images/whizicon.gif) no-repeat 30px 40px;
68
-
69
- }
70
-
71
- #mw_popup .header .close {
72
- display: block;
73
- float: right;
74
- background: url(../images/close.gif) no-repeat top left;
75
- padding-left: 28px;
76
- height: 20px;
77
- margin-top: 2px;
78
- font-size: 11px;
79
- font-weight: normal;
80
- }
81
-
82
- #mw_popup .show-next-time {
83
- width: 365px;
84
- padding-top: 5px;
85
- }
86
-
87
- #mw_popup #save-button {
88
- margin: 8px;
89
- }
90
-
91
- #mwall_extensions a img {
92
- vertical-align: middle;
93
- margin-right: 3px;
94
- }
95
-
96
- #mw_popup .form-list td.label label {
97
- width: 130px;
98
- margin-left: 45px;
99
- text-align: right;
100
-
101
- }
102
-
103
-
104
-
105
- .adminhtml-system-config-edit #mwall_extensions .label label {
106
- width: auto;
107
- white-space: nowrap;
108
- }
109
-
110
- #extension_tabs_extension_section_content #mwall_whiz_extensions table td {
111
- padding: 0px 3px;
112
- }
113
-
114
- #extension_tabs_extension_section_content #mwall_whiz_extensions table td img{
115
- padding-top: 2px
116
- }
117
- #extension_tabs_extension_section_content #mwall_whiz_extensions table td select{
118
- width: 100px;
119
- }
120
-
121
- ul.tabs span.mwtab {
122
- background: url("../images/mwicon.png") 0 50% no-repeat transparent !important;
123
- padding: 0.3em 0.5em 0.28em 1 !important;
124
- }
125
-
126
- ul.tabs a.mwextension-section span, ul.tabs a.mwextension-section:hover span {
127
- background: url("../images/mwextension.png") no-repeat scroll 0 0 transparent;
128
- height: 0;
129
- overflow: hidden;
130
- padding: 25px 0 0 0;
131
-
132
- }
133
-
134
- ul.tabs a.mwtheme-section span, ul.tabs a.mwtheme-section:hover span {
135
- background: url("../images/mwtheme.png") no-repeat scroll 0 0 transparent;
136
- height: 0;
137
- overflow: hidden;
138
- padding: 25px 0 0;
139
-
140
- }
141
-
142
- ul.tabs a.mwtheme-section, ul.tabs a.mwtheme-section:hover,
143
- ul.tabs a.mwextension-section, ul.tabs a.mwextension-section:hover{
144
- background: url("../../../images/tabs_span_bg.gif") repeat-x scroll 0 100% transparent;
145
- border-bottom: medium none;
146
- padding: 0 0.5em 1px 1.5em;
147
- }
148
-
149
- ul.tabs a.mwextension-section:hover, ul.tabs a.mwtheme-section:hover {
150
- background-color: #d8e6e6;
151
- }
152
-
153
- ul.tabs a.mwextension-section.active, ul.tabs a.mwextension-section.active:hover, ul.tabs a.mwtheme-section.active, ul.tabs a.mwtheme-section.active:hover {
154
- background-color: #FFFFFF;
155
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
skin/adminhtml/default/default/mw/all/images/close.gif DELETED
Binary file
skin/adminhtml/default/default/mw/all/images/doc.png DELETED
Binary file
skin/adminhtml/default/default/mw/all/images/extensions-store-btn.png DELETED
Binary file
skin/adminhtml/default/default/mw/all/images/mwextension.png DELETED
Binary file
skin/adminhtml/default/default/mw/all/images/mwicon.png DELETED
Binary file
skin/adminhtml/default/default/mw/all/images/mwtheme.png DELETED
Binary file
skin/adminhtml/default/default/mw/all/images/right.png DELETED
Binary file
skin/adminhtml/default/default/mw/all/images/themes-store-btn.png DELETED
Binary file
skin/adminhtml/default/default/mw/all/images/update.png DELETED
Binary file
skin/adminhtml/default/default/mw/all/images/whizicon.gif DELETED
Binary file
skin/adminhtml/default/default/mw/all/images/wrong.png DELETED
Binary file
skin/adminhtml/default/default/mw/all/js/popup.js DELETED
@@ -1,24 +0,0 @@
1
- mwPopup = {
2
- show:function () {
3
- $('message-popup-window-mask').setStyle({'height':$('html-body').getHeight() + 'px'});
4
- Element.show('message-popup-window-mask');
5
- Effect.Appear('mw_popup', {duration:1.2});
6
- },
7
- closePopup:function () {
8
- Effect.Fade('mw_popup', {duration:0.75});
9
- Element.hide('message-popup-window-mask');
10
- },
11
- scPopup:function () {
12
- $('save-button').innerHTML = '<span>Saving ...</span>';
13
- $('save-button').addClassName('disabled');
14
- $('mw_notice').request({
15
- onComplete:function () {
16
- Effect.Fade('mw_popup', {duration:0.75});
17
- Element.hide('message-popup-window-mask');
18
- }
19
- })
20
- },
21
- selectAll:function(val) {
22
- $$('#update_types li').each(function(el){el.firstChild.checked=val});return false;
23
- }
24
- }