cleanadmin - Version 1.0.0

Version Notes

1.0.0

Download this release

Release Info

Developer Magento Core Team
Extension cleanadmin
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/code/community/Magazento/CleanAdmin/Helper/Class.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magazento_Cleanadmin extension
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
+ *
12
+ * @category Magazento
13
+ * @package Magazento_Cleanadmin
14
+ * @copyright Copyright (c) 2013 Magazento
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ class Magazento_Cleanadmin_Helper_Class extends Mage_Core_Helper_Abstract
19
+ {
20
+
21
+ public function getCssMenu() {
22
+ $helper = Mage::helper('magazento_cleanadmin');
23
+
24
+ if (!$helper->isModuleActive()) {
25
+ return '';
26
+ }
27
+ return 'magazento_cleanadmin/style.css';
28
+ }
29
+
30
+ public function getPageTemplate() {
31
+ $helper = Mage::helper('magazento_cleanadmin');
32
+
33
+ if (!$helper->isModuleActive()) {
34
+ return 'page.phtml';
35
+ }
36
+ return 'magazento_cleanadmin/page.phtml';
37
+ }
38
+
39
+ public function getHeaderTemplate() {
40
+ $helper = Mage::helper('magazento_cleanadmin');
41
+
42
+ if (!$helper->isModuleActive()) {
43
+ return 'page/header.phtml';
44
+ }
45
+ return 'magazento_cleanadmin/header.phtml';
46
+ }
47
+
48
+ public function getMenuTemplate() {
49
+ $helper = Mage::helper('magazento_cleanadmin');
50
+
51
+ if (!$helper->isModuleActive()) {
52
+ return 'page/menu.phtml';
53
+ }
54
+ return 'magazento_cleanadmin/menu.phtml';
55
+ }
56
+ }
app/code/community/Magazento/CleanAdmin/Helper/Data.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magazento_Cleanadmin extension
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
+ *
12
+ * @category Magazento
13
+ * @package Magazento_Cleanadmin
14
+ * @copyright Copyright (c) 2013 Magazento
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ class Magazento_Cleanadmin_Helper_Data extends Mage_Core_Helper_Data
19
+ {
20
+ const XML_ACTIVE = 'magazento_cleanadmin/general/active';
21
+
22
+ public function isModuleActive() {
23
+ $active = intval(Mage::getStoreConfig(self::XML_ACTIVE));
24
+ return $active > 0;
25
+ }
26
+
27
+ }
app/code/community/Magazento/CleanAdmin/etc/adminhtml.xml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magazento_Cleanadmin extension
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ *
13
+ * @category Magazento
14
+ * @package Magazento_Cleanadmin
15
+ * @copyright Copyright (c) 2013 Magazento
16
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
+ */
18
+ -->
19
+ <config>
20
+ <acl>
21
+ <resources>
22
+ <admin>
23
+ <children>
24
+ <system>
25
+ <children>
26
+ <config>
27
+ <children>
28
+ <magazento_cleanadmin translate="title" module="magazento_cleanadmin">
29
+ <title>Clean Admin</title>
30
+ </magazento_cleanadmin>
31
+ </children>
32
+ </config>
33
+ </children>
34
+ </system>
35
+ </children>
36
+ </admin>
37
+ </resources>
38
+ </acl>
39
+ </config>
app/code/community/Magazento/CleanAdmin/etc/config.xml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magazento_Cleanadmin extension
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ *
13
+ * @category Magazento
14
+ * @package Magazento_Cleanadmin
15
+ * @copyright Copyright (c) 2013 Magazento
16
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
+ */
18
+ -->
19
+ <config>
20
+ <modules>
21
+ <Magazento_Cleanadmin>
22
+ <version>1.0.0</version>
23
+ </Magazento_Cleanadmin>
24
+ </modules>
25
+ <global>
26
+ <helpers>
27
+ <magazento_cleanadmin>
28
+ <class>Magazento_Cleanadmin_Helper</class>
29
+ </magazento_cleanadmin>
30
+ </helpers>
31
+ </global>
32
+ <adminhtml>
33
+ <layout>
34
+ <updates>
35
+ <magazento_cleanadmin>
36
+ <file>magazento_cleanadmin.xml</file>
37
+ </magazento_cleanadmin>
38
+ </updates>
39
+ </layout>
40
+ </adminhtml>
41
+ <default>
42
+ <magazento_cleanadmin>
43
+ <general>
44
+ <active>1</active>
45
+ </general>
46
+ </magazento_cleanadmin>
47
+ </default>
48
+ </config>
app/code/community/Magazento/CleanAdmin/etc/system.xml ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magazento_Cleanadmin extension
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ *
13
+ * @category Magazento
14
+ * @package Magazento_Cleanadmin
15
+ * @copyright Copyright (c) 2013 Magazento
16
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
+ */
18
+ -->
19
+ <config>
20
+ <tabs>
21
+ <magazento translate="label" module="magazento_cleanadmin">
22
+ <label>MAGAZENTO.COM</label>
23
+ <sort_order>500</sort_order>
24
+ </magazento>
25
+ </tabs>
26
+ <sections>
27
+ <magazento_cleanadmin translate="label" module="magazento_cleanadmin">
28
+ <label>Cleanadmin</label>
29
+ <tab>magazento</tab>
30
+ <frontend_type>text</frontend_type>
31
+ <sort_order>350</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>1</show_in_store>
35
+ <groups>
36
+ <general translate="label">
37
+ <label>Settings</label>
38
+ <frontend_type>text</frontend_type>
39
+ <sort_order>10</sort_order>
40
+ <show_in_default>1</show_in_default>
41
+ <show_in_website>1</show_in_website>
42
+ <show_in_store>1</show_in_store>
43
+ <fields>
44
+ <active translate="label">
45
+ <label>Enable</label>
46
+ <frontend_type>select</frontend_type>
47
+ <source_model>adminhtml/system_config_source_yesno</source_model>
48
+ <sort_order>10</sort_order>
49
+ <show_in_default>1</show_in_default>
50
+ <show_in_website>1</show_in_website>
51
+ <show_in_store>1</show_in_store>
52
+ </active>
53
+ </fields>
54
+ </general>
55
+ </groups>
56
+ </magazento_cleanadmin>
57
+ </sections>
58
+ </config>
app/design/adminhtml/default/default/template/magazento_cleanadmin/header.phtml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-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 design
22
+ * @package Magazento_Cleanadmin
23
+ * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /** @var $this Mage_Adminhtml_Block_Page_Header */
28
+ ?>
29
+ <div class="adminuser">
30
+ <?php echo $this->__("Logged in as %s", $this->escapeHtml($this->getUser()->getUsername())) ?>
31
+ <span class="separator">|</span><?php echo $this->formatDate(null, 'full') ?><span class="separator">|
32
+
33
+ <a href="<?php echo $this->getLogoutLink() ?>" class="link-logout"><?php echo $this->__('Log Out') ?></a>
34
+ </div>
app/design/adminhtml/default/default/template/magazento_cleanadmin/menu.phtml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magazento_Verticalmenu extension
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
+ *
12
+ * @category Magazento
13
+ * @package Magazento_Cleanadmin
14
+ * @copyright Copyright (c) 2013 Magazento
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+ ?>
18
+
19
+ <div class="nav-bar">
20
+ <?php echo $this->getMenuLevel($this->getMenuArray()); ?>
21
+ <script type="text/javascript">$('page-help-link').target = 'magento_page_help'</script>
22
+ </div>
23
+
24
+
app/design/adminhtml/default/default/template/magazento_cleanadmin/page.phtml ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-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 design
22
+ * @package Magazento_Cleanadmin
23
+ * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
28
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
29
+ <head>
30
+ <?php echo $this->getChildHtml('head') ?>
31
+ </head>
32
+
33
+ <body id="html-body"<?php echo $this->getBodyClass() ? ' class="magazento ' . $this->getBodyClass() . '"' : ''; ?>>
34
+ <?php echo $this->getChildHtml('notification_window'); ?>
35
+ <div class="wrapper">
36
+
37
+ <div class="clean-menu">
38
+ <?php echo $this->getChildHtml('menu') ?>
39
+ </div>
40
+
41
+
42
+ <div class="contentarea" id="anchor-content">
43
+ <div id="page:main-container">
44
+ <?php if($this->getChildHtml('left')): ?>
45
+
46
+ <div class="columns <?php echo $this->getContainerCssClass() ?>">
47
+ <div class="side-col" id="page:left">
48
+ <?php echo $this->getChildHtml('left') ?>
49
+ </div>
50
+ <div class="main-col" id="content">
51
+ <div class="main-col-inner">
52
+ <div id="messages"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
53
+ <?php echo $this->getChildHtml('content') ?>
54
+ </div>
55
+ </div>
56
+ </div>
57
+
58
+ <?php else: ?>
59
+ <div id="messages"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
60
+ <?php echo $this->getChildHtml('content') ?>
61
+ <?php endif; ?>
62
+ </div>
63
+ </div>
64
+
65
+ <div class="notifications">
66
+ <?php echo $this->getChildHtml('header') ?>
67
+ <?php echo $this->getChildHtml('global_notices') ?>
68
+ <?php echo $this->getChildHtml('notifications'); ?>
69
+ </div>
70
+
71
+ <div class="footer">
72
+ <?php echo $this->getChildHtml('footer') ?>
73
+ </div>
74
+ </div>
75
+ <?php echo $this->getChildHtml('js') ?>
76
+ <?php echo $this->getChildHtml('profiler') ?>
77
+ <div id="loading-mask" style="display:none">
78
+ <p class="loader" id="loading_mask_loader"><img src="<?php echo $this->getSkinUrl('images/ajax-loader-tr.gif') ?>" alt="<?php echo Mage::helper('adminhtml')->__('Loading...') ?>"/><br/><?php echo Mage::helper('adminhtml')->__('Please wait...') ?></p>
79
+ </div>
80
+
81
+ <?php echo $this->getChildHtml('before_body_end') ?>
82
+
83
+ </body>
84
+ </html>
app/etc/modules/Magazento_Social.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Magazento_Social>
5
+ <active>false</active>
6
+ <codePool>community</codePool>
7
+ </Magazento_Social>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>cleanadmin</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license>GPL</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Removes admin options that are hardly needed by a common user.</summary>
10
+ <description>Small and neat extension deals with all the technical and bothersome stuff that&#x2019;s built-in into the Administration interface, leaving you with a sparkling clean functionality that&#x2019;s a breeze to use. Well, if you are one of those admins who hate dealing with the technical stuff, then Cleanadmin is for you. We built this extension from scratch so as to improve the functionality and simplicity of the Magento Admin Area. What it does is to hide the options that are hardly needed by a common user, and highlight those which are required on a daily basis.</description>
11
+ <notes>1.0.0</notes>
12
+ <authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
13
+ <date>2013-03-01</date>
14
+ <time>07:22:10</time>
15
+ <contents><target name="magecommunity"><dir name="Magazento"><dir name="CleanAdmin"><dir name="Helper"><file name="Class.php" hash="39fd01f9f3c90543a3aa35a70709de73"/><file name="Data.php" hash="0d1fc1db4c8fa0907514b5d78b74810f"/></dir><dir name="etc"><file name="adminhtml.xml" hash="93cb6c767f6167a9a4fa11505e846158"/><file name="config.xml" hash="00c66eed024d6289d178c8c9723dafba"/><file name="system.xml" hash="f443b5d899abd3a8053df8afd5c1b996"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="magazento_cleanadmin"><file name="header.phtml" hash="20a4d65888b41413a3b977dac9bb2690"/><file name="menu.phtml" hash="6c340d64fcadb881ff2ad4c220eb82ce"/><file name="page.phtml" hash="52c046d700d5400470b349381d0fc1c4"/></dir><file name="magazento_cleanadmin.xml" hash=""/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Social.xml" hash="6082d7559a06b98ed7e428de1210be35"/></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies/>
18
+ </package>