wp_hide_backend_notifications - Version 1.0.4

Version Notes

External Backend Notifications Disabler (WebAndPeople.com)

Download this release

Release Info

Developer Magento Core Team
Extension wp_hide_backend_notifications
Version 1.0.4
Comparing to
See all releases


Version 1.0.4

app/code/community/WP/HideBackendNotifications/Block/About.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class WP_HideBackendNotifications_Block_About
4
+ extends Mage_Adminhtml_Block_Abstract
5
+ implements Varien_Data_Form_Element_Renderer_Interface
6
+ {
7
+
8
+ /**
9
+ * Render fieldset html
10
+ *
11
+ * @param Varien_Data_Form_Element_Abstract $element
12
+ * @return string
13
+ */
14
+ public function render(Varien_Data_Form_Element_Abstract $element)
15
+ {
16
+ $html = <<<HTML
17
+ <div style="background:url('http://www.webandpeople.com/template/public/images/logo.gif') no-repeat scroll 14px 14px #EAF0EE;border:1px solid #CCCCCC;margin-bottom:10px;padding:10px 5px 5px 164px;">
18
+ <p>
19
+ <b style="font-size:12px;">WebAndPeople</b>, a family of niche sites, provides small businesses with everything they need to start selling online.
20
+ </p>
21
+ <p>
22
+ <strong>PREMIUM and FREE MAGENTO TEMPALTES and EXTENSIONS</strong><br />
23
+ <a href="http://web-experiment.info" target="_blank">Web-Experiment.info</a> offers a wide choice of nice-looking and easily editable free and premium Magento Themes. At Web-Experiment, you can find free downloads or buy premium tempaltes for the extremely popular Magento eCommerce platform.<br />
24
+ <strong>MAGENTO HOSTING</strong></strong><br />
25
+ <a href="http://magenting.com" target="_blank">Magenting.com</a>, a new and improved hosting solution, is allowing you to easily create, promote, and manage your online store with Magento. Magenting users will receive a valuable set of tools and features, including automatic Magento eCommerce installation, automatic Magento template installation and a free or paid professional Magento hosting account.<br />
26
+ <strong>WEB DEVELOPMENT</strong><br />
27
+ <a href="http://webandpeople.com" target="_blank">WebAndPeople.com</a> is a team of professional Web developers and designers who are some of the best in the industry. WebAndPeople provides Web application development, custom Magento theme designs, and Website design services.<br />
28
+ <br />
29
+ </p>
30
+ <p>
31
+ Our themes and extensions on <a href="http://www.magentocommerce.com/magento-connect/developer/WebAndPeople" target="_blank">MagentoConnect</a><br />
32
+ Should you have any questions <a href="http://webandpeople.com/contact.html" target="_blank">Contact Us</a> or email at <a href="mailto:info@webandpeople.com">info@webandpeople.com</a>
33
+ <br />
34
+ </p>
35
+ </div>
36
+ HTML;
37
+ return $html;
38
+ }
39
+ }
app/code/community/WP/HideBackendNotifications/Block/Notification/Toolbar.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class WP_HideBackendNotifications_Block_Notification_Toolbar extends Mage_Adminhtml_Block_Notification_Toolbar
4
+ {
5
+ public function isShow()
6
+ {
7
+ if (!Mage::getStoreConfig('hide_backend_notifications/general/enabled') ||
8
+ Mage::getStoreConfig('hide_backend_notifications/general/only_popup'))
9
+ {
10
+ return parent::isShow();
11
+ }
12
+ return false;
13
+ }
14
+
15
+ public function isMessageWindowAvailable()
16
+ {
17
+ if (!Mage::getStoreConfig('hide_backend_notifications/general/enabled') ||
18
+ Mage::getStoreConfig('hide_backend_notifications/general/only_popup'))
19
+ {
20
+ return parent::isMessageWindowAvailable();
21
+ }
22
+ return false;
23
+ }
24
+ }
app/code/community/WP/HideBackendNotifications/Block/Notification/Window.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class WP_HideBackendNotifications_Block_Notification_Window extends Mage_Adminhtml_Block_Notification_Window
4
+ {
5
+ public function canShow()
6
+ {
7
+ if (!Mage::getStoreConfig('hide_backend_notifications/general/enabled'))
8
+ {
9
+ return parent::canShow();
10
+ }
11
+ return false;
12
+ }
13
+ }
app/code/community/WP/HideBackendNotifications/Helper/Data.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class WP_HideBackendNotifications_Helper_Data extends Mage_Core_Helper_Abstract
4
+ {
5
+
6
+ }
app/code/community/WP/HideBackendNotifications/etc/config.xml ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <modules>
4
+ <WP_HideBackendNotifications>
5
+ <version>1.0.4</version>
6
+ </WP_HideBackendNotifications>
7
+ </modules>
8
+ <global>
9
+ <helpers>
10
+ <hidebackendnotifications>
11
+ <class>WP_HideBackendNotifications_Helper</class>
12
+ </hidebackendnotifications>
13
+ </helpers>
14
+ <blocks>
15
+ <adminhtml>
16
+ <rewrite>
17
+ <notification_window>WP_HideBackendNotifications_Block_Notification_Window</notification_window>
18
+ <notification_toolbar>WP_HideBackendNotifications_Block_Notification_Toolbar</notification_toolbar>
19
+ </rewrite>
20
+ </adminhtml>
21
+ </blocks>
22
+ </global>
23
+ <adminhtml>
24
+ <acl>
25
+ <resources>
26
+ <admin>
27
+ <children>
28
+ <system>
29
+ <children>
30
+ <config>
31
+ <children>
32
+ <hide_backend_notifications translate="title" module="hidebackendnotifications">
33
+ <title><![CDATA[Web & People: External Backend Notifications Disabler]]></title>
34
+ <sort_order>2000</sort_order>
35
+ </hide_backend_notifications>
36
+ </children>
37
+ </config>
38
+ </children>
39
+ </system>
40
+ </children>
41
+ </admin>
42
+ </resources>
43
+ </acl>
44
+ </adminhtml>
45
+ <default>
46
+ <hide_backend_notifications>
47
+ <general>
48
+ <enabled>1</enabled>
49
+ <only_popup>1</only_popup>
50
+ <version>1.0.4</version>
51
+ </general>
52
+ </hide_backend_notifications>
53
+ </default>
54
+ <adminhtml>
55
+ <acl>
56
+ <resources>
57
+ <admin>
58
+ <children>
59
+ <system>
60
+ <children>
61
+ <config>
62
+ <children>
63
+ <about_webandpeople translate="title" module="hidebackendnotifications">
64
+ <title><![CDATA[Web & People: About Us]]></title>
65
+ <sort_order>1000</sort_order>
66
+ </about_webandpeople>
67
+ </children>
68
+ </config>
69
+ </children>
70
+ </system>
71
+ </children>
72
+ </admin>
73
+ </resources>
74
+ </acl>
75
+ </adminhtml>
76
+ <global>
77
+ <blocks>
78
+ <hidebackendnotifications>
79
+ <class>WP_HideBackendNotifications_Block</class>
80
+ </hidebackendnotifications>
81
+ </blocks>
82
+ </global>
83
+ </config>
app/code/community/WP/HideBackendNotifications/etc/system.xml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <web_and_people translate="label" module="hidebackendnotifications">
5
+ <label>Web-And-People</label>
6
+ <sort_order>150</sort_order>
7
+ </web_and_people>
8
+ </tabs>
9
+ <sections>
10
+ <hide_backend_notifications translate="label" module="hidebackendnotifications">
11
+ <label>External Backend Notifications Disabler</label>
12
+ <tab>web_and_people</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>200</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
+ <general translate="label">
20
+ <label>General</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>10</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
+ <enabled translate="label comment">
28
+ <label>Enable</label>
29
+ <comment><![CDATA[Enables the module. Remember, extension simply hides notifications]]></comment>
30
+ <frontend_type>select</frontend_type>
31
+ <source_model>adminhtml/system_config_source_yesno</source_model>
32
+ <sort_order>1</sort_order>
33
+ <show_in_default>1</show_in_default>
34
+ <show_in_website>1</show_in_website>
35
+ <show_in_store>1</show_in_store>
36
+ </enabled>
37
+ <only_popup translate="label comment">
38
+ <label>Disable only Popup Window</label>
39
+ <comment><![CDATA[If yes, only after login popups would be hidden. If no - notifications status bar would also be hidden]]></comment>
40
+ <frontend_type>select</frontend_type>
41
+ <source_model>adminhtml/system_config_source_yesno</source_model>
42
+ <sort_order>5</sort_order>
43
+ <show_in_default>1</show_in_default>
44
+ <show_in_website>1</show_in_website>
45
+ <show_in_store>1</show_in_store>
46
+ </only_popup>
47
+ <version translate="label">
48
+ <label>Extension Release</label>
49
+ <frontend_type>label</frontend_type>
50
+ <sort_order>100</sort_order>
51
+ <show_in_default>1</show_in_default>
52
+ <show_in_website>1</show_in_website>
53
+ <show_in_store>1</show_in_store>
54
+ </version>
55
+ </fields>
56
+ </general>
57
+ </groups>
58
+ </hide_backend_notifications>
59
+ <about_webandpeople translate="label" module="hidebackendnotifications">
60
+ <label>About Us</label>
61
+ <tab>web_and_people</tab>
62
+ <frontend_type>text</frontend_type>
63
+ <sort_order>99</sort_order>
64
+ <show_in_default>1</show_in_default>
65
+ <show_in_website>1</show_in_website>
66
+ <show_in_store>1</show_in_store>
67
+ <groups>
68
+ <info>
69
+ <frontend_model>hidebackendnotifications/about</frontend_model>
70
+ <sort_order>10</sort_order>
71
+ <show_in_default>1</show_in_default>
72
+ <show_in_website>1</show_in_website>
73
+ <show_in_store>1</show_in_store>
74
+ </info>
75
+ </groups>
76
+ </about_webandpeople>
77
+ </sections>
78
+ </config>
app/etc/modules/WP_HideBackendNotifications.xml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <modules>
4
+ <WP_HideBackendNotifications>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ <depends>
8
+ <Mage_Adminhtml />
9
+ </depends>
10
+ </WP_HideBackendNotifications>
11
+ </modules>
12
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>wp_hide_backend_notifications</name>
4
+ <version>1.0.4</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>External Backend Notifications Disabler (WebAndPeople.com)</summary>
10
+ <description>External Backend Notifications Disabler (WebAndPeople.com)</description>
11
+ <notes>External Backend Notifications Disabler (WebAndPeople.com)</notes>
12
+ <authors><author><name>WebAndPeople</name><user>auto-converted</user><email>design@webandpeople.com</email></author><author><name>y.gerassimenko</name><user>auto-converted</user><email>y.gerassimenko@webandpeople.com</email></author></authors>
13
+ <date>2011-11-11</date>
14
+ <time>15:50:33</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="WP_HideBackendNotifications.xml" hash="4728b884abc1275a6c7671a754c71a9c"/></dir></target><target name="magecommunity"><dir name="WP"><dir name="HideBackendNotifications"><dir name="Block"><dir name="Notification"><file name="Toolbar.php" hash="66ded5e1d7c0f389f11c639a12d97cd3"/><file name="Window.php" hash="665576d5b3371e0f194bb288e4e904ea"/></dir><file name="About.php" hash="f072e232ba42432e4ea854e4f595de60"/></dir><dir name="etc"><file name="config.xml" hash="b5ef009457f248281a366cc0519514ac"/><file name="system.xml" hash="6a01254ddea7ef0a17ee8b51fd43313a"/></dir><dir name="Helper"><file name="Data.php" hash="5fbe91fdbbb2f8d640bd55712db372a8"/></dir></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies/>
18
+ </package>