Version Notes
Before use it in production, first check it in a test environment.
Also make sure you created a backup from your store files and database just before installing the extension.
If you enabled your your store compiler, you must disable it before installation and re-compile and enable it after installation.
To view sidebar navigation correctly in frontend and access to configuration settings you must refresh Magento cache and re-login to admin panel.
Download this release
Release Info
Developer | Hassan Barza |
Extension | Codnitive_Sidenav |
Version | 1.8.00 |
Comparing to | |
See all releases |
Code changes from version 1.7.21 to 1.8.00
- app/code/community/Codnitive/Extifcon/Helper/Data.php +4 -8
- app/code/community/Codnitive/Extifcon/Model/Compiler.php +3 -8
- app/code/community/Codnitive/Extifcon/Model/Config.php +61 -0
- app/code/community/Codnitive/Extifcon/Model/Core/Layout.php +3 -8
- app/code/community/Codnitive/Extifcon/etc/adminhtml.xml +26 -26
- app/code/community/Codnitive/Extifcon/etc/config.xml +86 -86
- app/code/community/Codnitive/Extifcon/etc/system.xml +13 -13
- app/code/community/Codnitive/Sidenav/Block/Navigation.php +396 -237
- app/code/community/Codnitive/Sidenav/Helper/Category.php +110 -68
- app/code/community/Codnitive/Sidenav/Helper/Data.php +37 -5
- app/code/community/Codnitive/Sidenav/Model/Catalog/Category.php +74 -0
- app/code/community/Codnitive/Sidenav/Model/Config.php +367 -101
- app/code/community/Codnitive/Sidenav/Model/Config/ColumnOptions.php +0 -51
- app/code/community/Codnitive/Sidenav/Model/Config/ParentOptions.php +0 -71
- app/code/community/Codnitive/Sidenav/Model/System/Config/Source/Before.php +54 -0
- app/code/community/Codnitive/Sidenav/Model/System/Config/Source/Column.php +54 -0
- app/code/community/Codnitive/Sidenav/Model/System/Config/Source/Float.php +51 -0
- app/code/community/Codnitive/Sidenav/Model/System/Config/Source/Icon.php +51 -0
- app/code/community/Codnitive/Sidenav/Model/System/Config/Source/Loadnocategory.php +49 -0
- app/code/community/Codnitive/Sidenav/Model/System/Config/Source/Parent.php +81 -0
- app/code/community/Codnitive/Sidenav/Model/{Config/ThumbSizeOptions.php → System/Config/Source/Thumbsize.php} +18 -15
- app/code/community/Codnitive/Sidenav/Model/System/Config/Source/Title.php +54 -0
- app/code/community/Codnitive/Sidenav/etc/adminhtml.xml +36 -5
- app/code/community/Codnitive/Sidenav/etc/config.xml +117 -123
- app/code/community/Codnitive/Sidenav/etc/system.xml +312 -83
- app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/Contact.php +14 -10
- app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/ECD.php +16 -11
- app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/Extensions/List.php +16 -16
- app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/PCD.php +16 -11
- app/code/local/Codnitive/Codall/Helper/Data.php +12 -9
- app/code/local/Codnitive/Codall/etc/adminhtml.xml +32 -8
- app/code/local/Codnitive/Codall/etc/config.xml +64 -86
- app/code/local/Codnitive/Codall/etc/system.xml +18 -17
- app/design/frontend/base/default/layout/codnitive/sidenav.xml +372 -0
- app/design/frontend/base/default/layout/sidenav.xml +0 -90
- app/design/frontend/base/default/template/codnitive/sidenav/navigation.phtml +55 -15
- app/etc/modules/Codnitive_Codall.xml +9 -9
- app/etc/modules/Codnitive_Extifcon.xml +7 -8
- app/etc/modules/Codnitive_Sidenav.xml +9 -10
- app/locale/en_US/Codnitive_Codall.csv +9 -1
- app/locale/en_US/Codnitive_Extifcon.csv +3 -0
- app/locale/en_US/Codnitive_Sidenav.csv +4 -2
- app/locale/fa_IR/Codnitive_Codall.csv +9 -1
- app/locale/fa_IR/Codnitive_Extifcon.csv +3 -0
- app/locale/fa_IR/Codnitive_Sidenav.csv +5 -3
- package.xml +10 -7
- skin/frontend/base/default/css/codnitive/sidenav.css +148 -0
- skin/frontend/{default/default/images → base/default/images/codnitive/sidenav}/arrows.gif +0 -0
- skin/frontend/{default/default/images/blue_arrows.gif → base/default/images/codnitive/sidenav/arrows_blue.gif} +0 -0
- skin/frontend/{default/default/images/green_arrows.gif → base/default/images/codnitive/sidenav/arrows_green.gif} +0 -0
- skin/frontend/base/default/images/codnitive/sidenav/arrows_right.gif +0 -0
- skin/frontend/{default/default/images/orange_arrows.gif → base/default/images/codnitive/sidenav/arrowsorange.gif} +0 -0
- skin/frontend/{default/default/images → base/default/images/codnitive/sidenav}/bkg_block-sidebarnav-actions.gif +0 -0
- skin/frontend/{default/default/images → base/default/images/codnitive/sidenav}/bkg_block-sidebarnav-layered-dd.gif +0 -0
- skin/frontend/base/default/images/codnitive/sidenav/bkg_block-sidebarnav-title.gif +0 -0
- skin/frontend/base/default/images/codnitive/sidenav/codnitive_logo.png +0 -0
- skin/frontend/base/default/images/codnitive/sidenav/home.png +0 -0
- skin/frontend/base/default/images/codnitive/sidenav/plus.gif +0 -0
- skin/frontend/base/default/images/codnitive/sidenav/plus_gray.gif +0 -0
- skin/frontend/base/default/images/codnitive/sidenav/plus_trans_small.gif +0 -0
- skin/frontend/default/blank/css/codnitive/sidenav.css +157 -0
- skin/frontend/default/blank/css/sidenav.css +0 -94
- skin/frontend/default/blank/images/codnitive/sidenav/arrows.gif +0 -0
- skin/frontend/default/blank/images/codnitive/sidenav/codnitive_logo.png +0 -0
- skin/frontend/default/blank/images/codnitive/sidenav/home.png +0 -0
- skin/frontend/default/blank/images/codnitive/sidenav/plus.gif +0 -0
- skin/frontend/default/blank/images/codnitive/sidenav/plus_trans_small.gif +0 -0
- skin/frontend/default/blank/images/codnitive/sidenav/plus_white.gif +0 -0
- skin/frontend/default/default/css/codnitive/sidenav_pd.css +160 -0
- skin/frontend/default/default/css/sidenav.css +0 -96
- skin/frontend/default/default/css/sidenavcollapse.css +0 -54
- skin/frontend/default/default/images/bkg_block-sidebarnav-title.gif +0 -0
- skin/frontend/default/default/images/codnitive/sidenav/arrows.gif +0 -0
- skin/frontend/default/default/images/codnitive/sidenav/arrows_blue.gif +0 -0
- skin/frontend/default/{modern/images/arrows.gif → default/images/codnitive/sidenav/arrows_green.gif} +0 -0
- skin/frontend/default/default/images/codnitive/sidenav/arrows_right.gif +0 -0
- skin/frontend/default/default/images/codnitive/sidenav/arrowsorange.gif +0 -0
- skin/frontend/default/default/images/codnitive/sidenav/bkg_block-sidebarnav-actions.gif +0 -0
- skin/frontend/default/default/images/codnitive/sidenav/bkg_block-sidebarnav-layered-dd.gif +0 -0
- skin/frontend/default/default/images/codnitive/sidenav/bkg_block-sidebarnav-title.gif +0 -0
- skin/frontend/default/default/images/codnitive/sidenav/codnitive_logo.png +0 -0
- skin/frontend/default/default/images/codnitive/sidenav/home.png +0 -0
- skin/frontend/default/default/images/codnitive/sidenav/plus.gif +0 -0
- skin/frontend/default/default/images/codnitive/sidenav/plus_gray.gif +0 -0
- skin/frontend/default/default/images/codnitive/sidenav/plus_trans_small.gif +0 -0
- skin/frontend/default/default/js/sidenavcollapse.js +0 -47
- skin/frontend/default/f002/css/codnitive/sidenav.css +176 -0
- skin/frontend/default/f002/css/sidenav.css +0 -112
- skin/frontend/default/f002/images/codnitive/sidenav/arrows.gif +0 -0
- skin/frontend/default/f002/images/codnitive/sidenav/arrows_blue.gif +0 -0
- skin/frontend/default/f002/images/codnitive/sidenav/arrows_green.gif +0 -0
- skin/frontend/default/f002/images/codnitive/sidenav/arrows_right.gif +0 -0
- skin/frontend/default/f002/images/codnitive/sidenav/arrowsorange.gif +0 -0
- skin/frontend/default/f002/images/codnitive/sidenav/bkg_block-sidebarnav-actions.gif +0 -0
- skin/frontend/default/f002/images/codnitive/sidenav/bkg_block-sidebarnav-layered-dd.gif +0 -0
- skin/frontend/default/f002/images/codnitive/sidenav/bkg_block-sidebarnav-title.gif +0 -0
- skin/frontend/default/f002/images/codnitive/sidenav/codnitive_logo.png +0 -0
- skin/frontend/default/f002/images/codnitive/sidenav/home.png +0 -0
- skin/frontend/default/f002/images/codnitive/sidenav/plus.gif +0 -0
- skin/frontend/default/f002/images/codnitive/sidenav/plus_gray.gif +0 -0
- skin/frontend/default/f002/images/codnitive/sidenav/plus_trans_small.gif +0 -0
- skin/frontend/default/f002/images/codnitive/sidenav/plus_white.gif +0 -0
- skin/frontend/default/modern/css/codnitive/sidenav.css +158 -0
- skin/frontend/default/modern/css/sidenav.css +0 -95
- skin/frontend/default/modern/css/sidenavcollapse.css.bak +0 -54
- skin/frontend/default/modern/images/bkg_block-sidebarnav-title.gif +0 -0
- skin/frontend/default/modern/images/codnitive/sidenav/arrows.gif +0 -0
- skin/frontend/default/modern/images/codnitive/sidenav/arrows_blue.gif +0 -0
- skin/frontend/default/modern/images/codnitive/sidenav/arrows_green.gif +0 -0
- skin/frontend/default/modern/images/codnitive/sidenav/arrows_right.gif +0 -0
- skin/frontend/default/modern/images/codnitive/sidenav/arrowsorange.gif +0 -0
- skin/frontend/default/modern/images/{bkg_block-sidebarnav-actions.gif → codnitive/sidenav/bkg_block-sidebarnav-actions.gif} +0 -0
- skin/frontend/default/modern/images/codnitive/sidenav/bkg_block-sidebarnav-layered-dd.gif +0 -0
- skin/frontend/default/modern/images/codnitive/sidenav/bkg_block-sidebarnav-title.gif +0 -0
- skin/frontend/default/modern/images/codnitive/sidenav/codnitive_logo.png +0 -0
- skin/frontend/default/modern/images/codnitive/sidenav/home.png +0 -0
- skin/frontend/default/modern/images/codnitive/sidenav/plus.gif +0 -0
- skin/frontend/default/modern/images/codnitive/sidenav/plus_gray.gif +0 -0
- skin/frontend/default/modern/images/codnitive/sidenav/plus_trans_small.gif +0 -0
app/code/community/Codnitive/Extifcon/Helper/Data.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -8,15 +8,11 @@
|
|
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 |
-
* 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
|
18 |
-
* versions in the future.
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
*
|
21 |
* @category Codnitive
|
22 |
* @package Codnitive_Extifcon
|
1 |
<?php
|
2 |
/**
|
3 |
+
* CODNITIVE
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 |
* DISCLAIMER
|
13 |
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
|
|
16 |
*
|
17 |
* @category Codnitive
|
18 |
* @package Codnitive_Extifcon
|
app/code/community/Codnitive/Extifcon/Model/Compiler.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -8,15 +8,11 @@
|
|
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
|
18 |
-
* versions in the future.
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
*
|
21 |
* @category Codnitive
|
22 |
* @package Codnitive_Extifcon
|
@@ -25,7 +21,6 @@
|
|
25 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
26 |
*/
|
27 |
|
28 |
-
|
29 |
/**
|
30 |
* Extended ifconfig compiler
|
31 |
*
|
1 |
<?php
|
2 |
/**
|
3 |
+
* CODNITIVE
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 |
* DISCLAIMER
|
13 |
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
|
|
16 |
*
|
17 |
* @category Codnitive
|
18 |
* @package Codnitive_Extifcon
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
|
|
|
24 |
/**
|
25 |
* Extended ifconfig compiler
|
26 |
*
|
app/code/community/Codnitive/Extifcon/Model/Config.php
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* CODNITIVE
|
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 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
16 |
+
*
|
17 |
+
* @category Codnitive
|
18 |
+
* @package Codnitive_Extifcon
|
19 |
+
* @author Hassan Barza <support@codnitive.com>
|
20 |
+
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
21 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
+
*/
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Pasargad Bank Online payment method config
|
26 |
+
*
|
27 |
+
* @category Codnitive
|
28 |
+
* @package Codnitive_Extifcon
|
29 |
+
* @author Hassan Barza <support@codnitive.com>
|
30 |
+
*/
|
31 |
+
class Codnitive_Extifcon_Model_Config
|
32 |
+
{
|
33 |
+
|
34 |
+
const PATH_NAMESPACE = 'codnitiveadvance';
|
35 |
+
const EXTENSION_NAMESPACE = 'extifcon';
|
36 |
+
|
37 |
+
const EXTENSION_NAME = 'Extended ifconfig';
|
38 |
+
const EXTENSION_VERSION = '1.7.20';
|
39 |
+
const EXTENSION_EDITION = '';
|
40 |
+
|
41 |
+
public static function getNamespace()
|
42 |
+
{
|
43 |
+
return self::PATH_NAMESPACE . '/' . self::EXTENSION_NAMESPACE . '/';
|
44 |
+
}
|
45 |
+
|
46 |
+
public function getExtensionName()
|
47 |
+
{
|
48 |
+
return self::EXTENSION_NAME;
|
49 |
+
}
|
50 |
+
|
51 |
+
public function getExtensionVersion()
|
52 |
+
{
|
53 |
+
return self::EXTENSION_VERSION;
|
54 |
+
}
|
55 |
+
|
56 |
+
public function getExtensionEdition()
|
57 |
+
{
|
58 |
+
return self::EXTENSION_EDITION;
|
59 |
+
}
|
60 |
+
|
61 |
+
}
|
app/code/community/Codnitive/Extifcon/Model/Core/Layout.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -8,15 +8,11 @@
|
|
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
|
18 |
-
* versions in the future.
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
*
|
21 |
* @category Codnitive
|
22 |
* @package Codnitive_Extifcon
|
@@ -25,7 +21,6 @@
|
|
25 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
26 |
*/
|
27 |
|
28 |
-
|
29 |
/**
|
30 |
* Layout model
|
31 |
*
|
1 |
<?php
|
2 |
/**
|
3 |
+
* CODNITIVE
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 |
* DISCLAIMER
|
13 |
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
|
|
16 |
*
|
17 |
* @category Codnitive
|
18 |
* @package Codnitive_Extifcon
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
|
|
|
24 |
/**
|
25 |
* Layout model
|
26 |
*
|
app/code/community/Codnitive/Extifcon/etc/adminhtml.xml
CHANGED
@@ -1,22 +1,22 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
*
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
|
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* DISCLAIMER
|
13 |
*
|
14 |
-
* Do not edit or add to this file if you wish to upgrade
|
15 |
-
* versions in the future.
|
16 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
-
* @package
|
20 |
* @author Hassan Barza <support@codnitive.com>
|
21 |
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
22 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
@@ -24,25 +24,25 @@
|
|
24 |
-->
|
25 |
<config>
|
26 |
<acl>
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* CODNITIVE
|
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 |
* DISCLAIMER
|
14 |
*
|
15 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
16 |
+
* versions in the future.
|
|
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
+
* @package Codnitive_Extifcon
|
20 |
* @author Hassan Barza <support@codnitive.com>
|
21 |
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
22 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-->
|
25 |
<config>
|
26 |
<acl>
|
27 |
+
<resources>
|
28 |
+
<all>
|
29 |
+
<title>Allow Everything</title>
|
30 |
+
</all>
|
31 |
+
<admin>
|
32 |
+
<children>
|
33 |
+
<system>
|
34 |
+
<children>
|
35 |
+
<config>
|
36 |
+
<children>
|
37 |
+
<codnitiveadvance>
|
38 |
+
<title>CODNITIVE Developer</title>
|
39 |
+
</codnitiveadvance>
|
40 |
+
</children>
|
41 |
+
</config>
|
42 |
+
</children>
|
43 |
+
</system>
|
44 |
+
</children>
|
45 |
+
</admin>
|
46 |
+
</resources>
|
47 |
+
</acl>
|
48 |
</config>
|
app/code/community/Codnitive/Extifcon/etc/config.xml
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
*
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
|
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* DISCLAIMER
|
13 |
*
|
14 |
-
* Do not edit or add to this file if you wish to upgrade
|
15 |
-
* versions in the future.
|
16 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Extifcon
|
@@ -23,88 +23,88 @@
|
|
23 |
*/
|
24 |
-->
|
25 |
<config>
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* CODNITIVE
|
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 |
* DISCLAIMER
|
14 |
*
|
15 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
16 |
+
* versions in the future.
|
|
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Extifcon
|
23 |
*/
|
24 |
-->
|
25 |
<config>
|
26 |
+
<modules>
|
27 |
+
<Codnitive_Extifcon>
|
28 |
+
<version>1.7.20</version>
|
29 |
+
<title>Extended ifconfig</title>
|
30 |
+
<link><![CDATA[http://www.codnitive.com/]]></link>
|
31 |
+
</Codnitive_Extifcon>
|
32 |
+
</modules>
|
33 |
+
<global>
|
34 |
+
<models>
|
35 |
+
<core>
|
36 |
+
<rewrite>
|
37 |
+
<layout>Codnitive_Extifcon_Model_Core_Layout</layout>
|
38 |
+
</rewrite>
|
39 |
+
</core>
|
40 |
+
<extifcon>
|
41 |
+
<class>Codnitive_Extifcon_Model</class>
|
42 |
+
</extifcon>
|
43 |
+
</models>
|
44 |
+
<helpers>
|
45 |
+
<extifcon>
|
46 |
+
<class>Codnitive_Extifcon_Helper</class>
|
47 |
+
</extifcon>
|
48 |
+
</helpers>
|
49 |
+
<resources>
|
50 |
+
<extifcon_setup>
|
51 |
+
<setup>
|
52 |
+
<module>Codnitive_Extifcon</module>
|
53 |
+
</setup>
|
54 |
+
<connection>
|
55 |
+
<use>core_setup</use>
|
56 |
+
</connection>
|
57 |
+
</extifcon_setup>
|
58 |
+
<extifcon_write>
|
59 |
+
<connection>
|
60 |
+
<use>core_write</use>
|
61 |
+
</connection>
|
62 |
+
</extifcon_write>
|
63 |
+
<extifcon_read>
|
64 |
+
<connection>
|
65 |
+
<use>core_read</use>
|
66 |
+
</connection>
|
67 |
+
</extifcon_read>
|
68 |
+
</resources>
|
69 |
+
<!--<blocks>
|
70 |
+
<extifcon>
|
71 |
+
<class>Codnitive_Extifcon_Block</class>
|
72 |
+
</extifcon>
|
73 |
+
</blocks>-->
|
74 |
+
</global>
|
75 |
|
76 |
+
<adminhtml>
|
77 |
+
<acl>
|
78 |
+
<resources>
|
79 |
+
<all>
|
80 |
+
<title>Allow Everything</title>
|
81 |
+
</all>
|
82 |
+
<admin>
|
83 |
+
<children>
|
84 |
+
<system>
|
85 |
+
<children>
|
86 |
+
<config>
|
87 |
+
<children>
|
88 |
+
<codnitiveadvance>
|
89 |
+
<title>CODNITIVE Developer</title>
|
90 |
+
</codnitiveadvance>
|
91 |
+
</children>
|
92 |
+
</config>
|
93 |
+
</children>
|
94 |
+
</system>
|
95 |
+
</children>
|
96 |
+
</admin>
|
97 |
+
</resources>
|
98 |
+
</acl>
|
99 |
|
100 |
+
<translate>
|
101 |
+
<modules>
|
102 |
+
<Codnitive_Extifcon>
|
103 |
+
<files>
|
104 |
+
<default>Codnitive_Extifcon.csv</default>
|
105 |
+
</files>
|
106 |
+
</Codnitive_Extifcon>
|
107 |
+
</modules>
|
108 |
+
</translate>
|
109 |
+
</adminhtml>
|
110 |
</config>
|
app/code/community/Codnitive/Extifcon/etc/system.xml
CHANGED
@@ -1,22 +1,22 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
*
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
|
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* DISCLAIMER
|
13 |
*
|
14 |
-
* Do not edit or add to this file if you wish to upgrade
|
15 |
-
* versions in the future.
|
16 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
-
* @package
|
20 |
* @author Hassan Barza <support@codnitive.com>
|
21 |
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
22 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
@@ -24,14 +24,14 @@
|
|
24 |
-->
|
25 |
<config>
|
26 |
<sections>
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
<groups>
|
36 |
<extifcon translate="label" module="extifcon">
|
37 |
<label>Extended ifconfig</label>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* CODNITIVE
|
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 |
* DISCLAIMER
|
14 |
*
|
15 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
16 |
+
* versions in the future.
|
|
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
+
* @package Codnitive_Extifcon
|
20 |
* @author Hassan Barza <support@codnitive.com>
|
21 |
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
22 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-->
|
25 |
<config>
|
26 |
<sections>
|
27 |
+
<codnitiveadvance translate="label" module="extifcon">
|
28 |
+
<label>Developer</label>
|
29 |
+
<tab>codall</tab>
|
30 |
+
<frontend_type>text</frontend_type>
|
31 |
+
<sort_order>300</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 |
<extifcon translate="label" module="extifcon">
|
37 |
<label>Extended ifconfig</label>
|
app/code/community/Codnitive/Sidenav/Block/Navigation.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -8,9 +8,11 @@
|
|
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 |
-
*
|
13 |
-
*
|
|
|
|
|
14 |
*
|
15 |
* @category Codnitive
|
16 |
* @package Codnitive_Sidenav
|
@@ -19,37 +21,51 @@
|
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
-
|
23 |
class Codnitive_Sidenav_Block_Navigation extends Mage_Catalog_Block_Navigation
|
24 |
{
|
|
|
25 |
/**
|
26 |
* Extension config model object
|
27 |
*
|
28 |
*/
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
* Construct parent and define $_config
|
33 |
*
|
34 |
*/
|
35 |
-
|
36 |
{
|
37 |
parent::_construct();
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
}
|
40 |
-
|
41 |
-
|
42 |
* Get store categories navigation menu
|
43 |
*
|
44 |
* @return string
|
45 |
-
*/
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
* Get catagories of current store
|
54 |
*
|
55 |
* @return Varien_Data_Tree_Node_Collection
|
@@ -58,8 +74,28 @@ class Codnitive_Sidenav_Block_Navigation extends Mage_Catalog_Block_Navigation
|
|
58 |
{
|
59 |
return Mage::helper('sidenav/category')->getStoreCategories();
|
60 |
}
|
61 |
-
|
62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
* Render category to html
|
64 |
*
|
65 |
* @param Mage_Catalog_Model_Category $category
|
@@ -72,205 +108,238 @@ class Codnitive_Sidenav_Block_Navigation extends Mage_Catalog_Block_Navigation
|
|
72 |
* @param boolean Whether ot not to add on* attributes to list item
|
73 |
* @return string
|
74 |
*/
|
75 |
-
protected function _renderCategoryMenuItemHtml(
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
|
|
|
|
|
|
88 |
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
$activeChildrenCount = count($activeChildren);
|
107 |
-
$hasActiveChildren = ($activeChildrenCount > 0);
|
108 |
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
|
141 |
-
|
142 |
-
|
143 |
-
$thumbWidth = 14;
|
144 |
-
$thumbHeight = 14;
|
145 |
-
$liMarginLeft = 0;
|
146 |
-
$ulMarginLeft = 5;
|
147 |
-
$ulPaddingLeft = 10;
|
148 |
-
|
149 |
-
// define image thumbnail variables
|
150 |
-
if ($config->getThumbImageActive()) {
|
151 |
-
if ($config->getThumbSize()) {
|
152 |
-
$thumbWidth = $config->getThumbWidth();
|
153 |
-
$thumbHeight = $config->getThumbHeight();
|
154 |
-
}
|
155 |
-
$thumbnail = $config->load($category->getId())->getThumbnailImageUrl();
|
156 |
-
$ulThumb = ' ul-thumb';
|
157 |
-
if (!empty($thumbnail)) {
|
158 |
-
$image = '<img src="'.$thumbnail.'" style= "width:'.$thumbWidth.'px; height:'.$thumbHeight.'px; float: left;" />';
|
159 |
-
$thumb = ' thumb';
|
160 |
-
if ($config->getCollapsible() && $config->getThumbImageActive()) {
|
161 |
-
$liMarginLeft = $thumbWidth + 3;
|
162 |
-
$ulMarginLeft = 0;
|
163 |
-
}
|
164 |
-
else {
|
165 |
-
$liMarginLeft = 0;
|
166 |
-
$ulMarginLeft = $thumbWidth + 3;
|
167 |
-
}
|
168 |
-
$ulPaddingLeft = 0;
|
169 |
-
}
|
170 |
-
else {
|
171 |
-
$thumb = ' no-thumb';
|
172 |
-
$liMarginLeft = $thumbWidth + 3;
|
173 |
-
$ulMarginLeft = 0;
|
174 |
-
$ulPaddingLeft = 0;
|
175 |
-
}
|
176 |
-
}
|
177 |
-
|
178 |
-
$htmlLi .= '<li';
|
179 |
-
foreach ($attributes as $attrName => $attrValue) {
|
180 |
-
$htmlLi .= ' ' . $attrName . '="' . str_replace('"', '\"', $attrValue) . $thumb . '"';
|
181 |
-
}
|
182 |
-
$htmlLi .= ' style="margin-left: ' . $liMarginLeft . 'px;">';
|
183 |
-
$html[] = $htmlLi;
|
184 |
-
|
185 |
-
// add collapsible arrow and wrraper
|
186 |
-
if ($config->getCollapsible()) {
|
187 |
-
$width = 8;
|
188 |
-
$height = 0;
|
189 |
-
$expanded = 0;
|
190 |
-
if ($hasActiveChildren) {
|
191 |
-
$width = 8;
|
192 |
-
$height = 10;
|
193 |
-
}
|
194 |
-
if ($this->isCategoryActive($category)) {
|
195 |
-
$expanded = 1;
|
196 |
-
}
|
197 |
-
$html[] = '<span class="arrow" onClick="expandMenu(this.parentNode)"
|
198 |
-
style="width: ' . $width . 'px; height: ' . $height . 'px;"></span>';
|
199 |
-
}
|
200 |
-
|
201 |
-
// add thumbnail image
|
202 |
-
$html[] = $image;
|
203 |
-
|
204 |
-
// add wrapper
|
205 |
-
if ($config->getCollapsible() || $config->getThumbImageActive()) {
|
206 |
-
$wrapperMargin = $config->getCollapsible() ? 14 : 0;
|
207 |
-
/*if ($config->getThumbImageActive()) {
|
208 |
-
$extraMargin = !empty($thumbnail) ? $thumbWidth + 3 : 0;
|
209 |
-
}*/
|
210 |
-
$extraMargin = !$config->getThumbImageActive() ? 0 : !empty($thumbnail) ? $thumbWidth + 3 : 0;
|
211 |
-
$collWrapper = $wrapperMargin + $extraMargin;
|
212 |
-
$html[] = '<div class="collapsible-wrapper" style="margin-left: ' . $collWrapper . 'px;">';
|
213 |
-
}
|
214 |
-
|
215 |
-
$html[] = '<a href="' . $this->getCategoryUrl($category) . '"'
|
216 |
-
. $linkClass.'><span class="category_name">'
|
217 |
-
. $this->escapeHtml($category->getName()) . '</span></a>';
|
218 |
-
// $html[] = '<span class="category_name">' . $this->escapeHtml($category->getName()) . '</span></a>';
|
219 |
-
// $html[] = '</a>';
|
220 |
|
221 |
// add product count
|
222 |
-
if ($config->
|
223 |
$count = Mage::getModel('catalog/layer')
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
if (($config->removeZeroCount() && $count > 0) || !$config->removeZeroCount()) {
|
228 |
$html[] = '<span class="product-count">(' . $count . ')</span>';
|
229 |
}
|
230 |
}
|
231 |
|
232 |
-
//
|
233 |
-
|
234 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
}
|
236 |
|
237 |
-
|
238 |
-
$htmlChildren = '';
|
239 |
-
$j = 0;
|
240 |
-
foreach ($activeChildren as $child) {
|
241 |
-
$htmlChildren .= $this->_renderCategoryMenuItemHtml(
|
242 |
-
$child,
|
243 |
-
($level + 1),
|
244 |
-
($j == $activeChildrenCount - 1),
|
245 |
-
($j == 0),
|
246 |
-
false,
|
247 |
-
$outermostItemClass,
|
248 |
-
$childrenWrapClass,
|
249 |
-
$noEventAttributes
|
250 |
-
);
|
251 |
-
$j++;
|
252 |
-
}
|
253 |
-
if (!empty($htmlChildren)) {
|
254 |
-
if ($childrenWrapClass) {
|
255 |
-
$html[] = '<div class="' . $childrenWrapClass . '">';
|
256 |
-
}
|
257 |
-
$html[] = '<ul class="level' . $level . $ulThumb .
|
258 |
-
'" style="margin-left: ' . $ulMarginLeft .
|
259 |
-
'px; padding-left: ' . $ulPaddingLeft . 'px;" expanded="' . $expanded . '">';
|
260 |
-
$html[] = $htmlChildren;
|
261 |
-
$html[] = '</ul>';
|
262 |
-
if ($childrenWrapClass) {
|
263 |
-
$html[] = '</div>';
|
264 |
-
}
|
265 |
-
}
|
266 |
-
|
267 |
-
$html[] = '</li>';
|
268 |
|
269 |
-
|
270 |
-
|
271 |
}
|
272 |
-
|
273 |
-
|
274 |
* Render categories menu in HTML
|
275 |
*
|
276 |
* @param int Level number for list item class to start from
|
@@ -280,9 +349,24 @@ class Codnitive_Sidenav_Block_Navigation extends Mage_Catalog_Block_Navigation
|
|
280 |
*/
|
281 |
public function renderCategoriesMenuHtml($level = 0, $outermostItemClass = '', $childrenWrapClass = '')
|
282 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
$activeCategories = array();
|
284 |
-
foreach ($
|
285 |
-
|
|
|
|
|
|
|
|
|
286 |
$activeCategories[] = $child;
|
287 |
}
|
288 |
}
|
@@ -297,22 +381,107 @@ class Codnitive_Sidenav_Block_Navigation extends Mage_Catalog_Block_Navigation
|
|
297 |
$j = 0;
|
298 |
foreach ($activeCategories as $category) {
|
299 |
$html .= $this->_renderCategoryMenuItemHtml(
|
300 |
-
|
301 |
-
|
302 |
-
($j == $activeCategoriesCount - 1),
|
303 |
-
($j == 0),
|
304 |
-
true,
|
305 |
-
$outermostItemClass,
|
306 |
-
$childrenWrapClass,
|
307 |
-
true
|
308 |
);
|
309 |
$j++;
|
310 |
}
|
311 |
|
312 |
return $html;
|
313 |
}
|
314 |
-
|
315 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
* Get extension enable status
|
317 |
*
|
318 |
* @deprecated after 1.7.20
|
@@ -321,12 +490,12 @@ class Codnitive_Sidenav_Block_Navigation extends Mage_Catalog_Block_Navigation
|
|
321 |
*
|
322 |
* @return boolean
|
323 |
*/
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
* Get selected column
|
331 |
*
|
332 |
* @deprecated after 1.7.20
|
@@ -335,19 +504,9 @@ class Codnitive_Sidenav_Block_Navigation extends Mage_Catalog_Block_Navigation
|
|
335 |
*
|
336 |
* @return string
|
337 |
*/
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
/**
|
344 |
-
* Get category title
|
345 |
-
*
|
346 |
-
* @return string
|
347 |
-
*/
|
348 |
-
public function getTitle()
|
349 |
-
{
|
350 |
-
return $this->_config->setTitle();
|
351 |
-
}
|
352 |
-
|
353 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* CODNITIVE
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
16 |
*
|
17 |
* @category Codnitive
|
18 |
* @package Codnitive_Sidenav
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
|
|
|
24 |
class Codnitive_Sidenav_Block_Navigation extends Mage_Catalog_Block_Navigation
|
25 |
{
|
26 |
+
|
27 |
/**
|
28 |
* Extension config model object
|
29 |
*
|
30 |
*/
|
31 |
+
protected $_config;
|
32 |
+
|
33 |
+
/**
|
34 |
* Construct parent and define $_config
|
35 |
*
|
36 |
*/
|
37 |
+
protected function _construct()
|
38 |
{
|
39 |
parent::_construct();
|
40 |
+
$this->_config = Mage::getModel('sidenav/config');
|
41 |
+
}
|
42 |
+
|
43 |
+
/**
|
44 |
+
* Retrieves extension's configuration settings
|
45 |
+
*
|
46 |
+
* @return Codnitive_Sidenav_Model_Config
|
47 |
+
*/
|
48 |
+
public function getConfig()
|
49 |
+
{
|
50 |
+
if ($this->_config === null) {
|
51 |
+
$this->_config = Mage::getModel('sidenav/config');
|
52 |
+
}
|
53 |
+
|
54 |
+
return $this->_config;
|
55 |
}
|
56 |
+
|
57 |
+
/**
|
58 |
* Get store categories navigation menu
|
59 |
*
|
60 |
* @return string
|
61 |
+
*/
|
62 |
+
public function getCategoriesNavMenu()
|
63 |
+
{
|
64 |
+
$navigationMenu = $this->renderCategoriesMenuHtml(0);
|
65 |
+
return $navigationMenu ? $navigationMenu : false;
|
66 |
+
}
|
67 |
+
|
68 |
+
/**
|
69 |
* Get catagories of current store
|
70 |
*
|
71 |
* @return Varien_Data_Tree_Node_Collection
|
74 |
{
|
75 |
return Mage::helper('sidenav/category')->getStoreCategories();
|
76 |
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Returns category model
|
80 |
+
*
|
81 |
+
* @return Codnitive_Sidenav_Model_Category
|
82 |
+
*/
|
83 |
+
protected function _getCategoryModel()
|
84 |
+
{
|
85 |
+
return Mage::getModel('sidenav/catalog_category');
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Retruns data helper
|
90 |
+
*
|
91 |
+
* @return Codnitive_Sidenav_Helper_Data
|
92 |
+
*/
|
93 |
+
protected function _getHelper()
|
94 |
+
{
|
95 |
+
return Mage::helper('sidenav');
|
96 |
+
}
|
97 |
+
|
98 |
+
/**
|
99 |
* Render category to html
|
100 |
*
|
101 |
* @param Mage_Catalog_Model_Category $category
|
108 |
* @param boolean Whether ot not to add on* attributes to list item
|
109 |
* @return string
|
110 |
*/
|
111 |
+
protected function _renderCategoryMenuItemHtml(
|
112 |
+
$category, $level = 0, $isLast = false,
|
113 |
+
$isFirst = false, $isOutermost = false, $outermostItemClass = '',
|
114 |
+
$childrenWrapClass = '', $noEventAttributes = false
|
115 |
+
) {
|
116 |
+
if (!$category->getIsActive()) {
|
117 |
+
return '';
|
118 |
+
}
|
119 |
+
|
120 |
+
$config = $this->getConfig();
|
121 |
+
$html = array();
|
122 |
+
$expanded = null;
|
123 |
+
$ulThumb = '';
|
124 |
+
$image = '';
|
125 |
+
$thumb = '';
|
126 |
+
$htmlLi = '';
|
127 |
|
128 |
+
// get all children
|
129 |
+
if (Mage::helper('catalog/category_flat')->isEnabled()) {
|
130 |
+
$children = (array) $category->getChildrenNodes();
|
131 |
+
$childrenCount = count($children);
|
132 |
+
}
|
133 |
+
else {
|
134 |
+
$children = $category->getChildren();
|
135 |
+
if (!$this->_getHelper()->isSearchResultsPage()) {
|
136 |
+
$childrenCount = $children->count();
|
137 |
+
}
|
138 |
+
else {
|
139 |
+
$children = explode(',', $children);
|
140 |
+
$childrenCount = count($children);
|
141 |
+
}
|
142 |
+
}
|
143 |
+
|
144 |
+
// select active children
|
145 |
+
$activeChildren = array();
|
146 |
+
if (!$this->_getHelper()->isSearchResultsPage()) {
|
147 |
+
foreach ($children as $child) {
|
148 |
+
if ($child->getIsActive()) {
|
149 |
+
$activeChildren[] = $child;
|
150 |
+
}
|
151 |
+
}
|
152 |
+
}
|
153 |
+
$activeChildrenCount = count($activeChildren);
|
154 |
+
$hasActiveChildren = ($activeChildrenCount > 0);
|
155 |
+
|
156 |
+
// prepare list item html classes
|
157 |
+
$classes = array();
|
158 |
+
$classes[] = 'level' . $level;
|
159 |
+
$classes[] = 'nav-' . $this->_getItemPosition($level);
|
160 |
+
if ($this->isCategoryActive($category)) {
|
161 |
+
$classes[] = 'active';
|
162 |
+
}
|
163 |
+
else if ((Mage::registry('current_product') !== null) && ($config->activeProductCategoriesInDirectAccess())) {
|
164 |
+
$classes = $this->_getCategoryModel()->getProductCategoriesInDirectAccess($category, $classes);
|
165 |
+
}
|
166 |
+
|
167 |
+
$linkClass = '';
|
168 |
+
if ($isOutermost && $outermostItemClass) {
|
169 |
+
$classes[] = $outermostItemClass;
|
170 |
+
$linkClass = ' class="' . $outermostItemClass . '"';
|
171 |
+
}
|
172 |
+
if ($isFirst) {
|
173 |
+
$classes[] = 'first';
|
174 |
+
}
|
175 |
+
if ($isLast) {
|
176 |
+
$classes[] = 'last';
|
177 |
+
}
|
178 |
+
if ($hasActiveChildren) {
|
179 |
+
$classes[] = 'parent';
|
180 |
+
}
|
181 |
+
|
182 |
+
// prepare list item attributes
|
183 |
+
$attributes = array();
|
184 |
+
if (count($classes) > 0) {
|
185 |
+
$attributes['class'] = implode(' ', $classes);
|
186 |
+
}
|
187 |
+
if ($hasActiveChildren && !$noEventAttributes) {
|
188 |
+
$attributes['onmouseover'] = 'toggleMenu(this,1)';
|
189 |
+
$attributes['onmouseout'] = 'toggleMenu(this,0)';
|
190 |
+
}
|
191 |
|
192 |
+
// assemble list item with attributes
|
193 |
+
$thumbWidth = 14;
|
194 |
+
$thumbHeight = 14;
|
195 |
+
$thumbPosition = $config->getThumbPosition();
|
196 |
+
$liMarginLeft = 0;
|
197 |
+
$ulMarginLeft = 5;
|
198 |
+
$ulPaddingLeft = 10;
|
|
|
|
|
199 |
|
200 |
+
// define image thumbnail variables
|
201 |
+
if ($config->isThumbImageActive()) {
|
202 |
+
if ($config->getThumbSize()) {
|
203 |
+
$thumbWidth = $config->getThumbWidth();
|
204 |
+
$thumbHeight = $config->getThumbHeight();
|
205 |
+
}
|
206 |
+
$thumbnail = $this->_getCategoryModel()->load($category->getId())->getThumbnailImageUrl();
|
207 |
+
$ulThumb = ' ul-thumb';
|
208 |
+
if (!empty($thumbnail)) {
|
209 |
+
$image = '<img class="thumb-img-' . $thumbPosition . '" src="' . $thumbnail . '" style= "width:' . $thumbWidth . 'px; height:' . $thumbHeight . 'px; float: ' . $thumbPosition . ';" />';
|
210 |
+
$thumb = ' thumb';
|
211 |
+
|
212 |
+
if ($thumbPosition === 'left') {
|
213 |
+
if ($config->isCollapsible() && $config->isThumbImageActive()) {
|
214 |
+
$liMarginLeft = $thumbWidth + 3;
|
215 |
+
$ulMarginLeft = 0;
|
216 |
+
}
|
217 |
+
else {
|
218 |
+
$liMarginLeft = 0;
|
219 |
+
$ulMarginLeft = $thumbWidth + 3;
|
220 |
+
}
|
221 |
+
$ulPaddingLeft = 0;
|
222 |
+
}
|
223 |
+
}
|
224 |
+
else {
|
225 |
+
$thumb = ' no-thumb';
|
226 |
+
$liMarginLeft = ($thumbPosition === 'right') ? 0 : $thumbWidth + 3;
|
227 |
+
if ($thumbPosition === 'left') {
|
228 |
+
$ulMarginLeft = 0;
|
229 |
+
$ulPaddingLeft = 0;
|
230 |
+
}
|
231 |
+
}
|
232 |
+
}
|
233 |
+
|
234 |
+
$collapsibleClass = '';
|
235 |
+
if ($config->isCollapsible()) {
|
236 |
+
$collapsibleClass = ' collapsible';
|
237 |
+
}
|
238 |
+
|
239 |
+
// add collapsible arrow and wrraper
|
240 |
+
$arrow = '';
|
241 |
+
$extraStyle = '';
|
242 |
+
$collapsibleIconPosition = $config->getCollapsibleIconPosition();
|
243 |
+
if ($config->isCollapsible()) {
|
244 |
+
$width = $config->getCollapsibleIconType() === 'arrow' ? 8 : 16;
|
245 |
+
$height = 0;
|
246 |
+
$expanded = 0;
|
247 |
+
if ($hasActiveChildren) {
|
248 |
+
$width = $config->getCollapsibleIconType() === 'arrow' ? 8 : 16;
|
249 |
+
$height = 16;
|
250 |
+
}
|
251 |
+
if ($height == 0) {
|
252 |
+
$extraStyle = ' display:none;';
|
253 |
+
}
|
254 |
+
if ($height == 0 && $collapsibleIconPosition === 'left') {
|
255 |
+
$liMarginLeft += $width;
|
256 |
+
}
|
257 |
+
if ($this->isCategoryActive($category)) {
|
258 |
+
$expanded = 1;
|
259 |
+
}
|
260 |
+
$expanded = ' expanded="' . $expanded .'"';
|
261 |
+
$spanOnclick = 'onclick="Codnitive.expandMenu(this.parentNode)';
|
262 |
+
$spanClass = $config->getCollapsibleIconType() . '-' . $collapsibleIconPosition;
|
263 |
+
$arrow = '<span class="' . $spanClass . ' " ' . $spanOnclick . '" style="width: ' . $width . 'px; height: ' . $height . 'px;' . $extraStyle . '"></span>';
|
264 |
+
}
|
265 |
+
|
266 |
+
$htmlLi .= '<li';
|
267 |
+
foreach ($attributes as $attrName => $attrValue) {
|
268 |
+
$htmlLi .= ' ' . $attrName . '="' . str_replace('"', '\"', $attrValue) . $thumb . $collapsibleClass . '"';
|
269 |
+
}
|
270 |
+
|
271 |
+
$htmlLi .= ' style="margin-left: ' . $liMarginLeft . 'px;' . '">';
|
272 |
+
$html[] = $htmlLi;
|
273 |
+
|
274 |
+
$html[] = $arrow;
|
275 |
|
276 |
+
// add wrapper
|
277 |
+
$aClass = '';
|
278 |
+
$aStyle = '';
|
279 |
+
if ($config->isCollapsible() || $config->isThumbImageActive()) {
|
280 |
+
$wrapperMargin = ($config->isCollapsible() && $collapsibleIconPosition === 'left') ? 14 : 0;
|
281 |
+
$extraMargin = !$config->isThumbImageActive() ? 0 : (!empty($thumbnail) && ($thumbPosition === 'left')) ? $thumbWidth + 3 : 0;
|
282 |
+
$collWrapper = $wrapperMargin + $extraMargin;
|
283 |
+
|
284 |
+
// makes parent category name clickable to open/close collapsible menus if option is enabled
|
285 |
+
$onclick = '';
|
286 |
+
$collapseName = '';
|
287 |
+
if ($hasActiveChildren && $config->isCollapsible() && $config->expandByParentName()) {
|
288 |
+
$onclick = ' onclick="Codnitive.expandMenu(this.parentNode);return false;"';
|
289 |
+
$collapseName = ' collapse-name';
|
290 |
+
}
|
291 |
+
$aClass = 'class="collapsible-wrapper' . $collapseName . '"';
|
292 |
+
$aStyle = ' style="margin-left: ' . $collWrapper . 'px;"';
|
293 |
+
}
|
294 |
+
|
295 |
+
$html[] = '<a ' . $aClass . $onclick . 'href="' . $this->getCategoryUrl($category) . '"'
|
296 |
+
. $linkClass .'>' . '<span class="category_name">'
|
297 |
+
. $this->escapeHtml($category->getName()) . '</span></a>';
|
298 |
|
299 |
+
// add thumbnail image
|
300 |
+
$html[] = $image;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
|
302 |
// add product count
|
303 |
+
if ($config->showProductCount()) {
|
304 |
$count = Mage::getModel('catalog/layer')
|
305 |
+
->setCurrentCategory($category->getID())
|
306 |
+
->getProductCollection()
|
307 |
+
->getSize();
|
308 |
if (($config->removeZeroCount() && $count > 0) || !$config->removeZeroCount()) {
|
309 |
$html[] = '<span class="product-count">(' . $count . ')</span>';
|
310 |
}
|
311 |
}
|
312 |
|
313 |
+
// render children
|
314 |
+
$htmlChildren = '';
|
315 |
+
$j = 0;
|
316 |
+
foreach ($activeChildren as $child) {
|
317 |
+
$htmlChildren .= $this->_renderCategoryMenuItemHtml(
|
318 |
+
$child, ($level + 1), ($j == $activeChildrenCount - 1), ($j == 0), false, $outermostItemClass, $childrenWrapClass, $noEventAttributes
|
319 |
+
);
|
320 |
+
$j++;
|
321 |
+
}
|
322 |
+
if (!empty($htmlChildren)) {
|
323 |
+
if ($childrenWrapClass) {
|
324 |
+
$html[] = '<div class="' . $childrenWrapClass . '">';
|
325 |
+
}
|
326 |
+
$html[] = '<ul class="level' . $level . $ulThumb . $collapsibleClass .
|
327 |
+
'" style="margin-left: ' . $ulMarginLeft .
|
328 |
+
'px; padding-left: ' . $ulPaddingLeft . 'px;"' . $expanded . '>';
|
329 |
+
$html[] = $htmlChildren;
|
330 |
+
$html[] = '</ul>';
|
331 |
+
if ($childrenWrapClass) {
|
332 |
+
$html[] = '</div>';
|
333 |
+
}
|
334 |
}
|
335 |
|
336 |
+
$html[] = '</li>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
|
338 |
+
$html = implode("\n", $html);
|
339 |
+
return $html;
|
340 |
}
|
341 |
+
|
342 |
+
/**
|
343 |
* Render categories menu in HTML
|
344 |
*
|
345 |
* @param int Level number for list item class to start from
|
349 |
*/
|
350 |
public function renderCategoriesMenuHtml($level = 0, $outermostItemClass = '', $childrenWrapClass = '')
|
351 |
{
|
352 |
+
$currentId = Mage::app()->getStore()->getRootCategoryId();
|
353 |
+
$currentLevel = $this->_getCategoryModel()->load($currentId)->getLevel();
|
354 |
+
if ($registerdCategory = Mage::registry('current_category')) {
|
355 |
+
$currentId = $registerdCategory->getId();
|
356 |
+
$currentLevel = $registerdCategory->getLevel();
|
357 |
+
}
|
358 |
+
|
359 |
+
$config = $this->getConfig();
|
360 |
+
$paretnType = $config->getParent();
|
361 |
+
$categories = $this->getStoreCategories();
|
362 |
+
|
363 |
$activeCategories = array();
|
364 |
+
foreach ($categories as $child) {
|
365 |
+
// this condition use for "Current Category and Children" option
|
366 |
+
$condition = ($paretnType == 'current')
|
367 |
+
&& ($child->getLevel() == $currentLevel)
|
368 |
+
&& ($child->getId() != $currentId);
|
369 |
+
if ($child->getIsActive() && !$condition) {
|
370 |
$activeCategories[] = $child;
|
371 |
}
|
372 |
}
|
381 |
$j = 0;
|
382 |
foreach ($activeCategories as $category) {
|
383 |
$html .= $this->_renderCategoryMenuItemHtml(
|
384 |
+
$category, $level, ($j == $activeCategoriesCount - 1),
|
385 |
+
($j == 0), true, $outermostItemClass, $childrenWrapClass, true
|
|
|
|
|
|
|
|
|
|
|
|
|
386 |
);
|
387 |
$j++;
|
388 |
}
|
389 |
|
390 |
return $html;
|
391 |
}
|
392 |
+
|
393 |
+
/**
|
394 |
+
* Get category title
|
395 |
+
*
|
396 |
+
* @return string
|
397 |
+
*/
|
398 |
+
public function getTitle()
|
399 |
+
{
|
400 |
+
$title = '';
|
401 |
+
$currentCategory = Mage::registry('current_category');
|
402 |
+
|
403 |
+
switch ($this->getConfig()->getTitleType()) {
|
404 |
+
case 'current':
|
405 |
+
if ($currentCategory) {
|
406 |
+
$title = $currentCategory->getName();
|
407 |
+
}
|
408 |
+
break;
|
409 |
+
|
410 |
+
case 'parent':
|
411 |
+
if ($currentCategory) {
|
412 |
+
$parent = $currentCategory->getParentCategory();
|
413 |
+
$rootId = Mage::app()->getStore()->getRootCategoryId();
|
414 |
+
if ($parent->getId() != $rootId) {
|
415 |
+
$title = $parent->getName();
|
416 |
+
}
|
417 |
+
}
|
418 |
+
break;
|
419 |
+
|
420 |
+
case 'static':
|
421 |
+
$title = $this->getConfig()->getStaticTitle();
|
422 |
+
}
|
423 |
+
|
424 |
+
if (!$title) {
|
425 |
+
$title = $this->getConfig()->getStaticTitle();
|
426 |
+
}
|
427 |
+
|
428 |
+
return $title;
|
429 |
+
}
|
430 |
+
|
431 |
+
/**
|
432 |
+
* Retrieves home page link must show
|
433 |
+
*
|
434 |
+
* @return boolean
|
435 |
+
*/
|
436 |
+
public function showHome()
|
437 |
+
{
|
438 |
+
if ($this->_getHelper()->isHome() && $this->getConfig()->removeHomeInHome()) {
|
439 |
+
return false;
|
440 |
+
}
|
441 |
+
return $this->getConfig()->showHome();
|
442 |
+
}
|
443 |
+
|
444 |
+
/**
|
445 |
+
* Returns all classes for home link
|
446 |
+
*
|
447 |
+
* @return string
|
448 |
+
*/
|
449 |
+
public function getHomeClasses()
|
450 |
+
{
|
451 |
+
$classes = 'level0 nav-0 parent home';
|
452 |
+
|
453 |
+
if ($this->getConfig()->isCollapsible()) {
|
454 |
+
$classes .= ' collapsible';
|
455 |
+
}
|
456 |
+
|
457 |
+
if ($this->_getHelper()->isHome()) {
|
458 |
+
$classes .= ' active';
|
459 |
+
}
|
460 |
+
|
461 |
+
return $classes;
|
462 |
+
}
|
463 |
+
|
464 |
+
/**
|
465 |
+
* Retrieves which CODNITIVE logo must show or not
|
466 |
+
*
|
467 |
+
* @return boolean
|
468 |
+
*/
|
469 |
+
public function showSupportLogo()
|
470 |
+
{
|
471 |
+
return $this->getConfig()->showSupportLogo();
|
472 |
+
}
|
473 |
+
|
474 |
+
/**
|
475 |
+
* Retrieves which CODNITIVE logo must show as image or text
|
476 |
+
*
|
477 |
+
* @return boolean
|
478 |
+
*/
|
479 |
+
public function showAsImage()
|
480 |
+
{
|
481 |
+
return $this->getConfig()->showAsImage();
|
482 |
+
}
|
483 |
+
|
484 |
+
/**
|
485 |
* Get extension enable status
|
486 |
*
|
487 |
* @deprecated after 1.7.20
|
490 |
*
|
491 |
* @return boolean
|
492 |
*/
|
493 |
+
public function isActive()
|
494 |
+
{
|
495 |
+
return $this->getConfig()->isActive();
|
496 |
+
}
|
497 |
+
|
498 |
+
/**
|
499 |
* Get selected column
|
500 |
*
|
501 |
* @deprecated after 1.7.20
|
504 |
*
|
505 |
* @return string
|
506 |
*/
|
507 |
+
public function getColumn()
|
508 |
+
{
|
509 |
+
return $this->getConfig()->getColumn();
|
510 |
+
}
|
511 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
512 |
}
|
app/code/community/Codnitive/Sidenav/Helper/Category.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -8,9 +8,11 @@
|
|
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 |
-
*
|
13 |
-
*
|
|
|
|
|
14 |
*
|
15 |
* @category Codnitive
|
16 |
* @package Codnitive_Sidenav
|
@@ -20,14 +22,15 @@
|
|
20 |
*/
|
21 |
|
22 |
/**
|
23 |
-
* Catalog category helper
|
24 |
*
|
25 |
* @category Codnitive
|
26 |
* @package Codnitive_Sidenav
|
27 |
-
* @author Hassan Barza <
|
28 |
*/
|
29 |
class Codnitive_Sidenav_Helper_Category extends Mage_Catalog_Helper_Category
|
30 |
{
|
|
|
31 |
/**
|
32 |
* Retrieve current store categories
|
33 |
*
|
@@ -35,81 +38,120 @@ class Codnitive_Sidenav_Helper_Category extends Mage_Catalog_Helper_Category
|
|
35 |
* @param boolean $asCollection
|
36 |
* @return Varien_Data_Tree_Node_Collection|Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Collection|array
|
37 |
*/
|
38 |
-
public function getStoreCategories($sorted=false, $asCollection=false, $toLoad=true)
|
39 |
{
|
40 |
-
$
|
41 |
-
$
|
|
|
|
|
|
|
|
|
|
|
42 |
if (isset($this->_storeCategories[$cacheKey])) {
|
43 |
return $this->_storeCategories[$cacheKey];
|
44 |
}
|
45 |
|
46 |
/**
|
47 |
* Check if parent node of the store still exists
|
|
|
|
|
48 |
*/
|
49 |
-
$category = Mage::getModel('
|
50 |
-
|
51 |
-
* @var $category Mage_Catalog_Model_Category
|
52 |
-
*/
|
53 |
if (!$category->checkId($parent)) {
|
54 |
-
|
55 |
-
return new Varien_Data_Collection();
|
56 |
-
}
|
57 |
-
return array();
|
58 |
}
|
59 |
|
60 |
-
$recursionLevel
|
61 |
-
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
$this->_storeCategories[$cacheKey] = $storeCategories;
|
64 |
return $storeCategories;
|
65 |
}
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* CODNITIVE
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
16 |
*
|
17 |
* @category Codnitive
|
18 |
* @package Codnitive_Sidenav
|
22 |
*/
|
23 |
|
24 |
/**
|
25 |
+
* Catalog sidebar category helper
|
26 |
*
|
27 |
* @category Codnitive
|
28 |
* @package Codnitive_Sidenav
|
29 |
+
* @author Hassan Barza <support@codnitive.com>
|
30 |
*/
|
31 |
class Codnitive_Sidenav_Helper_Category extends Mage_Catalog_Helper_Category
|
32 |
{
|
33 |
+
|
34 |
/**
|
35 |
* Retrieve current store categories
|
36 |
*
|
38 |
* @param boolean $asCollection
|
39 |
* @return Varien_Data_Tree_Node_Collection|Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Collection|array
|
40 |
*/
|
41 |
+
public function getStoreCategories($parent = null, $recursionLevel = 0, $sorted = false, $asCollection = false, $toLoad = true)
|
42 |
{
|
43 |
+
$useFlat = true;
|
44 |
+
$parent = (null === $parent) ? $this->_getParentCategory() : $parent;
|
45 |
+
if (!$parent) {
|
46 |
+
return array();
|
47 |
+
}
|
48 |
+
|
49 |
+
$cacheKey = sprintf('codnitive-sidenav-%d-%d-%d-%d-%d', $parent, $recursionLevel, $sorted, $asCollection, $toLoad);
|
50 |
if (isset($this->_storeCategories[$cacheKey])) {
|
51 |
return $this->_storeCategories[$cacheKey];
|
52 |
}
|
53 |
|
54 |
/**
|
55 |
* Check if parent node of the store still exists
|
56 |
+
*
|
57 |
+
* @var $category Codnitive_Sidenav_Model_Category
|
58 |
*/
|
59 |
+
$category = Mage::getModel('sidenav/catalog_category');
|
60 |
+
|
|
|
|
|
61 |
if (!$category->checkId($parent)) {
|
62 |
+
$useFlat = false;
|
|
|
|
|
|
|
63 |
}
|
64 |
|
65 |
+
$recursionLevel = (intval($recursionLevel) > 0) ? $recursionLevel : max(0, Mage::getModel('sidenav/config')->getMaxDepth());
|
66 |
+
if (Mage::helper('catalog/category_flat')->isEnabled() && $useFlat) {
|
67 |
+
$storeCategories = $this->_getFlatCategories($parent, $recursionLevel, $sorted, $asCollection, $toLoad);
|
68 |
+
}
|
69 |
+
else {
|
70 |
+
$storeCategories = $category->getCategories($parent, $recursionLevel, $sorted, $asCollection, $toLoad);
|
71 |
+
}
|
72 |
|
73 |
$this->_storeCategories[$cacheKey] = $storeCategories;
|
74 |
return $storeCategories;
|
75 |
}
|
76 |
+
|
77 |
+
/**
|
78 |
+
* Return array or collection of categories for flat categories enabled
|
79 |
+
*
|
80 |
+
* @param integer $parent
|
81 |
+
* @param integer $recursionLevel
|
82 |
+
* @param boolean|string $sorted
|
83 |
+
* @param boolean $asCollection
|
84 |
+
* @param boolean $toLoad
|
85 |
+
* @return array|Varien_Data_Collection
|
86 |
+
*/
|
87 |
+
protected function _getFlatCategories($parent, $recursionLevel, $sorted, $asCollection, $toLoad)
|
88 |
+
{
|
89 |
+
$flat = Mage::getResourceModel('catalog/category_flat');
|
90 |
+
return $flat->getCategories($parent, $recursionLevel, $sorted, $asCollection, $toLoad);
|
91 |
+
}
|
92 |
+
|
93 |
+
/**
|
94 |
+
* Get parent category defined be user
|
95 |
+
*
|
96 |
+
* @return string|int
|
97 |
+
*/
|
98 |
+
protected function _getParentCategory()
|
99 |
+
{
|
100 |
+
$parent = null;
|
101 |
+
$config = Mage::getModel('sidenav/config');
|
102 |
+
$parentConfig = $config->getParent();
|
103 |
+
$category = Mage::registry('current_category');
|
104 |
+
$itIsLevel = false;
|
105 |
+
|
106 |
+
switch ($parentConfig) {
|
107 |
+
case 'siblings':
|
108 |
+
if ($category) {
|
109 |
+
$parent = $category->getParentId();
|
110 |
+
}
|
111 |
+
break;
|
112 |
+
|
113 |
+
case 'children':
|
114 |
+
if ($category) {
|
115 |
+
$parent = $category->getId();
|
116 |
+
}
|
117 |
+
break;
|
118 |
+
|
119 |
+
case 'current':
|
120 |
+
if ($category) {
|
121 |
+
$parent = $category->getParentId();
|
122 |
+
}
|
123 |
+
break;
|
124 |
+
|
125 |
+
case 'root':
|
126 |
+
$parent = Mage::app()->getStore()->getRootCategoryId();
|
127 |
+
break;
|
128 |
+
|
129 |
+
default:
|
130 |
+
/**
|
131 |
+
* Display from level N
|
132 |
+
*
|
133 |
+
* Based on RicoNeitzel_VertNav extension
|
134 |
+
* Thanks to Rico Neitzel
|
135 |
+
*/
|
136 |
+
$itIsLevel = true;
|
137 |
+
if (!$category) {
|
138 |
+
$category = Mage::getModel('sidenav/catalog_category')->load(Mage::app()->getStore()->getRootCategoryId());
|
139 |
+
}
|
140 |
+
$fromLevel = $parentConfig;
|
141 |
+
if ($category && $category->getLevel() >= $fromLevel) {
|
142 |
+
while ($category->getLevel() > $fromLevel) {
|
143 |
+
$category = $category->getParentCategory();
|
144 |
+
}
|
145 |
+
$parent = $category->getId();
|
146 |
+
}
|
147 |
+
break;
|
148 |
+
}
|
149 |
+
|
150 |
+
if (!$parent && $config->loadNoCategory() === 'root' && !$itIsLevel) {
|
151 |
+
$parent = Mage::app()->getStore()->getRootCategoryId();
|
152 |
+
}
|
153 |
+
|
154 |
+
return $parent;
|
155 |
+
}
|
156 |
+
|
157 |
}
|
app/code/community/Codnitive/Sidenav/Helper/Data.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -8,9 +8,11 @@
|
|
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 |
-
*
|
13 |
-
*
|
|
|
|
|
14 |
*
|
15 |
* @category Codnitive
|
16 |
* @package Codnitive_Sidenav
|
@@ -21,5 +23,35 @@
|
|
21 |
|
22 |
class Codnitive_Sidenav_Helper_Data extends Mage_Core_Helper_Data
|
23 |
{
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* CODNITIVE
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
16 |
*
|
17 |
* @category Codnitive
|
18 |
* @package Codnitive_Sidenav
|
23 |
|
24 |
class Codnitive_Sidenav_Helper_Data extends Mage_Core_Helper_Data
|
25 |
{
|
26 |
+
/**
|
27 |
+
* Returns extension's configuration settings
|
28 |
+
*
|
29 |
+
* @return Codnitive_Sidenav_Model_Config
|
30 |
+
*/
|
31 |
+
protected function getConfig()
|
32 |
+
{
|
33 |
+
return Mage::getModel('sidenav/config');
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Retrieves which we are in quick search result page or not
|
38 |
+
*
|
39 |
+
* @return boolean
|
40 |
+
*/
|
41 |
+
public function isSearchResultsPage()
|
42 |
+
{
|
43 |
+
return Mage::app()->getFrontController()->getAction() instanceof Mage_CatalogSearch_ResultController;
|
44 |
+
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Retrieves current page is homepage or not
|
48 |
+
*
|
49 |
+
* @return boolean
|
50 |
+
*/
|
51 |
+
public function isHome()
|
52 |
+
{
|
53 |
+
return Mage::getSingleton('cms/page')->getIdentifier() == 'home'
|
54 |
+
&& Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms';
|
55 |
+
}
|
56 |
+
|
57 |
}
|
app/code/community/Codnitive/Sidenav/Model/Catalog/Category.php
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* CODNITIVE
|
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 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
16 |
+
*
|
17 |
+
* @category Codnitive
|
18 |
+
* @package Codnitive_Sidenav
|
19 |
+
* @author Hassan Barza <support@codnitive.com>
|
20 |
+
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
21 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
+
*/
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Catalog sidebar category
|
26 |
+
*
|
27 |
+
* @category Codnitive
|
28 |
+
* @package Codnitive_Sidenav
|
29 |
+
* @author Hassan Barza <support@codnitive.com>
|
30 |
+
*/
|
31 |
+
class Codnitive_Sidenav_Model_Catalog_Category extends Mage_Catalog_Model_Category
|
32 |
+
{
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Retrieve Thumbnail image URL
|
36 |
+
*
|
37 |
+
* @return string
|
38 |
+
*/
|
39 |
+
public function getThumbnailImageUrl()
|
40 |
+
{
|
41 |
+
$url = false;
|
42 |
+
if ($image = $this->getThumbnail()) {
|
43 |
+
$url = Mage::getBaseUrl('media') . 'catalog/category/' . $image;
|
44 |
+
}
|
45 |
+
return $url;
|
46 |
+
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Retrieves product category path to active it
|
50 |
+
*
|
51 |
+
* @param Mage_Catalog_Model_Category $category
|
52 |
+
* @param array $classes
|
53 |
+
* @return array
|
54 |
+
*/
|
55 |
+
public function getProductCategoriesInDirectAccess($category, $classes)
|
56 |
+
{
|
57 |
+
$reqPath = Mage::app()->getRequest();
|
58 |
+
$prodId = $reqPath->getParam('id', $reqPath->getPathInfo());
|
59 |
+
$prodModel = Mage::getModel('catalog/product')->load($prodId);
|
60 |
+
$categories = $prodModel->getCategoryIds();
|
61 |
+
$catArray = array();
|
62 |
+
foreach ($categories as $catId) {
|
63 |
+
$catModel = Mage::getModel('catalog/category')->load($catId);
|
64 |
+
$catArray = array_merge_recursive($catArray, explode('/', $catModel->getPath()));
|
65 |
+
}
|
66 |
+
$pathAllCats = array_merge_recursive($catArray, $categories);
|
67 |
+
if (in_array($category->getId(), $pathAllCats)) {
|
68 |
+
$classes[] = 'active';
|
69 |
+
}
|
70 |
+
|
71 |
+
return $classes;
|
72 |
+
}
|
73 |
+
|
74 |
+
}
|
app/code/community/Codnitive/Sidenav/Model/Config.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -8,15 +8,11 @@
|
|
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
|
18 |
-
* versions in the future.
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
*
|
21 |
* @category Codnitive
|
22 |
* @package Codnitive_Sidenav
|
@@ -25,111 +21,171 @@
|
|
25 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
26 |
*/
|
27 |
|
28 |
-
|
29 |
/**
|
30 |
-
* Catalog category
|
31 |
*
|
32 |
-
* @category
|
33 |
* @package Codnitive_Sidenav
|
34 |
-
* @author Hassan Barza <
|
35 |
*/
|
36 |
-
class Codnitive_Sidenav_Model_Config extends Mage_Catalog_Model_Category
|
37 |
-
{
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
*
|
41 |
-
* @
|
|
|
42 |
*/
|
43 |
-
public function
|
44 |
{
|
45 |
-
|
46 |
-
if ($image = $this->getThumbnail()) {
|
47 |
-
$url = Mage::getBaseUrl('media').'catalog/category/'.$image;
|
48 |
-
}
|
49 |
-
return $url;
|
50 |
}
|
51 |
-
|
52 |
-
|
|
|
53 |
* Check for extension enable option status
|
54 |
*
|
55 |
* @return boolean
|
56 |
*/
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
*
|
64 |
*
|
65 |
-
* @return
|
66 |
*/
|
67 |
-
public function
|
68 |
{
|
69 |
-
|
70 |
-
return !empty($title) ? $title : 'Categories';
|
71 |
}
|
72 |
-
|
73 |
-
|
74 |
-
* Check for
|
75 |
*
|
76 |
* @return boolean
|
77 |
*/
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
* Get column option value to define selected column
|
85 |
*
|
86 |
* @return string
|
87 |
*/
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
* Gets defined parent category
|
95 |
*
|
96 |
* @return string
|
97 |
*/
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
* Get gategory maximal depth number
|
105 |
*
|
106 |
* @return string
|
107 |
*/
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
*
|
115 |
*
|
116 |
* @return boolean
|
117 |
*/
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
* Get show product count setting
|
125 |
*
|
126 |
* @return boolean
|
127 |
*/
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
/**
|
134 |
* Get remove product count for categories by zero product number
|
135 |
*
|
@@ -137,47 +193,257 @@ class Codnitive_Sidenav_Model_Config extends Mage_Catalog_Model_Category
|
|
137 |
*/
|
138 |
public function removeZeroCount()
|
139 |
{
|
140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
}
|
142 |
-
|
143 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
* Check for extension enable option status
|
145 |
*
|
146 |
* @return boolean
|
147 |
*/
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
* Get thumbnail size setting
|
155 |
*
|
156 |
-
* @return
|
157 |
*/
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
* Get thumbnail width size
|
165 |
*
|
166 |
* @return string
|
167 |
*/
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
* Get thumbnail height size
|
175 |
*
|
176 |
* @return string
|
177 |
*/
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* CODNITIVE
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 |
* DISCLAIMER
|
13 |
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
|
|
16 |
*
|
17 |
* @category Codnitive
|
18 |
* @package Codnitive_Sidenav
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
|
|
|
24 |
/**
|
25 |
+
* Catalog sidebar category
|
26 |
*
|
27 |
+
* @category Codnitive
|
28 |
* @package Codnitive_Sidenav
|
29 |
+
* @author Hassan Barza <support@codnitive.com>
|
30 |
*/
|
31 |
+
class Codnitive_Sidenav_Model_Config /*extends Mage_Catalog_Model_Category*/
|
32 |
+
{
|
33 |
+
|
34 |
+
const PATH_NAMESPACE = 'codnitivecatalog';
|
35 |
+
const EXTENSION_NAMESPACE = 'sidenav';
|
36 |
+
|
37 |
+
const EXTENSION_NAME = 'Sidebar Navigation Menu Professional';
|
38 |
+
const EXTENSION_VERSION = '1.8.00';
|
39 |
+
const EXTENSION_EDITION = '';
|
40 |
+
|
41 |
+
public static function getNamespace()
|
42 |
+
{
|
43 |
+
return self::PATH_NAMESPACE . '/' . self::EXTENSION_NAMESPACE . '/';
|
44 |
+
}
|
45 |
+
|
46 |
+
public function getExtensionName()
|
47 |
+
{
|
48 |
+
return self::EXTENSION_NAME;
|
49 |
+
}
|
50 |
+
|
51 |
+
public function getExtensionVersion()
|
52 |
+
{
|
53 |
+
return self::EXTENSION_VERSION;
|
54 |
+
}
|
55 |
+
|
56 |
+
public function getExtensionEdition()
|
57 |
+
{
|
58 |
+
return self::EXTENSION_EDITION;
|
59 |
+
}
|
60 |
+
|
61 |
+
protected function _getHelper()
|
62 |
+
{
|
63 |
+
return Mage::helper('sidenav');
|
64 |
+
}
|
65 |
+
|
66 |
+
/**
|
67 |
+
* Check for extension enable option status
|
68 |
*
|
69 |
+
* @deprecated since version 1.7.58
|
70 |
+
* @return boolean
|
71 |
*/
|
72 |
+
public function checkActive()
|
73 |
{
|
74 |
+
return Mage::getStoreConfig(self::getNamespace() . 'active');
|
|
|
|
|
|
|
|
|
75 |
}
|
76 |
+
|
77 |
+
|
78 |
+
/**
|
79 |
* Check for extension enable option status
|
80 |
*
|
81 |
* @return boolean
|
82 |
*/
|
83 |
+
public function isActive()
|
84 |
+
{
|
85 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'active');
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Check for top navigation remove setting
|
90 |
*
|
91 |
+
* @return boolean
|
92 |
*/
|
93 |
+
public function removeTopNav()
|
94 |
{
|
95 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'remove_top_nav');
|
|
|
96 |
}
|
97 |
+
|
98 |
+
/**
|
99 |
+
* Check for remove browse by category from layered navigation
|
100 |
*
|
101 |
* @return boolean
|
102 |
*/
|
103 |
+
public function removeLayeredNavCat()
|
104 |
+
{
|
105 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'remove_layered_nav');
|
106 |
+
}
|
107 |
+
|
108 |
+
/**
|
109 |
* Get column option value to define selected column
|
110 |
*
|
111 |
* @return string
|
112 |
*/
|
113 |
+
public function getColumn()
|
114 |
+
{
|
115 |
+
return Mage::getStoreConfig(self::getNamespace() . 'column');
|
116 |
+
}
|
117 |
+
|
118 |
+
/**
|
119 |
+
* Returns sidenav block position in side columns
|
120 |
+
*
|
121 |
+
* @return string
|
122 |
+
*/
|
123 |
+
public function defaultBefore()
|
124 |
+
{
|
125 |
+
return Mage::getStoreConfig(self::getNamespace() . 'before');
|
126 |
+
}
|
127 |
+
|
128 |
+
/**
|
129 |
* Gets defined parent category
|
130 |
*
|
131 |
* @return string
|
132 |
*/
|
133 |
+
public function getParent()
|
134 |
+
{
|
135 |
+
return Mage::getStoreConfig(self::getNamespace() . 'parent');
|
136 |
+
}
|
137 |
+
|
138 |
+
/**
|
139 |
* Get gategory maximal depth number
|
140 |
*
|
141 |
* @return string
|
142 |
*/
|
143 |
+
public function getMaxDepth()
|
144 |
+
{
|
145 |
+
return Mage::getStoreConfig(self::getNamespace() . 'max_depth');
|
146 |
+
}
|
147 |
+
|
148 |
+
/**
|
149 |
+
* Check for extension enable option status
|
150 |
*
|
151 |
* @return boolean
|
152 |
*/
|
153 |
+
public function activeProductCategoriesInDirectAccess()
|
154 |
+
{
|
155 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'product_direct_access');
|
156 |
+
}
|
157 |
+
|
158 |
+
/**
|
159 |
+
* Retruns block title type
|
160 |
+
*
|
161 |
+
* @return string
|
162 |
+
*/
|
163 |
+
public function getTitleType()
|
164 |
+
{
|
165 |
+
return Mage::getStoreConfig(self::getNamespace() . 'title');
|
166 |
+
}
|
167 |
+
|
168 |
+
/**
|
169 |
+
* Retruns static title name
|
170 |
+
*
|
171 |
+
* @return string
|
172 |
+
*/
|
173 |
+
public function getStaticTitle()
|
174 |
+
{
|
175 |
+
$title = Mage::getStoreConfig(self::getNamespace() . 'static_title');
|
176 |
+
return !empty($title) ? $title : 'Categories';
|
177 |
+
}
|
178 |
+
|
179 |
+
/**
|
180 |
* Get show product count setting
|
181 |
*
|
182 |
* @return boolean
|
183 |
*/
|
184 |
+
public function showProductCount()
|
185 |
+
{
|
186 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'product_count');
|
187 |
+
}
|
188 |
+
|
189 |
/**
|
190 |
* Get remove product count for categories by zero product number
|
191 |
*
|
193 |
*/
|
194 |
public function removeZeroCount()
|
195 |
{
|
196 |
+
if (!$this->showProductCount()) {
|
197 |
+
return false;
|
198 |
+
}
|
199 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'remove_zero_count');
|
200 |
+
}
|
201 |
+
|
202 |
+
/**
|
203 |
+
* Returns that home page link must show or not
|
204 |
+
*
|
205 |
+
* @return boolean
|
206 |
+
*/
|
207 |
+
public function showHome()
|
208 |
+
{
|
209 |
+
if (!$this->isActive()) {
|
210 |
+
return false;
|
211 |
+
}
|
212 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'home');
|
213 |
+
}
|
214 |
+
|
215 |
+
/**
|
216 |
+
* Returns that CODNITIVE support logo must show or not
|
217 |
+
*
|
218 |
+
* @return boolean
|
219 |
+
*/
|
220 |
+
public function showSupportLogo()
|
221 |
+
{
|
222 |
+
if (!$this->isActive()) {
|
223 |
+
return false;
|
224 |
+
}
|
225 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'logo');
|
226 |
+
}
|
227 |
+
|
228 |
+
/**
|
229 |
+
* Returns that CODNITIVE support logo must be image or text
|
230 |
+
*
|
231 |
+
* @return boolean
|
232 |
+
*/
|
233 |
+
public function showAsImage()
|
234 |
+
{
|
235 |
+
if (!$this->showSupportLogo()) {
|
236 |
+
return false;
|
237 |
+
}
|
238 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'show_image');
|
239 |
+
}
|
240 |
+
|
241 |
+
/**
|
242 |
+
* Get collapsible menu status
|
243 |
+
*
|
244 |
+
* @return boolean
|
245 |
+
*/
|
246 |
+
public function isCollapsible()
|
247 |
+
{
|
248 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'collapsible');
|
249 |
+
}
|
250 |
+
|
251 |
+
/**
|
252 |
+
* Retrieves name of parent categories use for open/close menu or use as link
|
253 |
+
*
|
254 |
+
* @return boolean
|
255 |
+
*/
|
256 |
+
public function expandByParentName()
|
257 |
+
{
|
258 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'expand_by_name');
|
259 |
+
}
|
260 |
+
|
261 |
+
/**
|
262 |
+
* Get collapsible icon position
|
263 |
+
*
|
264 |
+
* @return string
|
265 |
+
*/
|
266 |
+
public function getCollapsibleIconPosition()
|
267 |
+
{
|
268 |
+
return Mage::getStoreConfig(self::getNamespace() . 'collapsible_icon_position');
|
269 |
}
|
270 |
+
|
271 |
+
/**
|
272 |
+
* Get collapsible icon type
|
273 |
+
*
|
274 |
+
* @return string
|
275 |
+
*/
|
276 |
+
public function getCollapsibleIconType()
|
277 |
+
{
|
278 |
+
return Mage::getStoreConfig(self::getNamespace() . 'collapsible_icon_type');
|
279 |
+
}
|
280 |
+
|
281 |
+
/**
|
282 |
* Check for extension enable option status
|
283 |
*
|
284 |
* @return boolean
|
285 |
*/
|
286 |
+
public function isThumbImageActive()
|
287 |
+
{
|
288 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'thumbnail');
|
289 |
+
}
|
290 |
+
|
291 |
+
/**
|
292 |
+
* Get thumbnail position
|
293 |
+
*
|
294 |
+
* @return string
|
295 |
+
*/
|
296 |
+
public function getThumbPosition()
|
297 |
+
{
|
298 |
+
return Mage::getStoreConfig(self::getNamespace() . 'thumb_position');
|
299 |
+
}
|
300 |
+
|
301 |
+
/**
|
302 |
* Get thumbnail size setting
|
303 |
*
|
304 |
+
* @return string(numeric)
|
305 |
*/
|
306 |
+
public function getThumbSize()
|
307 |
+
{
|
308 |
+
return Mage::getStoreConfig(self::getNamespace() . 'thumb_size');
|
309 |
+
}
|
310 |
+
|
311 |
+
/**
|
312 |
* Get thumbnail width size
|
313 |
*
|
314 |
* @return string
|
315 |
*/
|
316 |
+
public function getThumbWidth()
|
317 |
+
{
|
318 |
+
return Mage::getStoreConfig(self::getNamespace() . 'thumb_width');
|
319 |
+
}
|
320 |
+
|
321 |
+
/**
|
322 |
* Get thumbnail height size
|
323 |
*
|
324 |
* @return string
|
325 |
*/
|
326 |
+
public function getThumbHeight()
|
327 |
+
{
|
328 |
+
return Mage::getStoreConfig(self::getNamespace() . 'thumb_height');
|
329 |
+
}
|
330 |
+
|
331 |
+
/**
|
332 |
+
* Retrieves it must load store root category if parent category isn't availabel
|
333 |
+
*
|
334 |
+
* @return string
|
335 |
+
*/
|
336 |
+
public function loadNoCategory()
|
337 |
+
{
|
338 |
+
return Mage::getStoreConfig(self::getNamespace() . 'load_no_category');
|
339 |
+
}
|
340 |
+
|
341 |
+
/**
|
342 |
+
* Retrieves we are currently in homepage or not
|
343 |
+
*
|
344 |
+
* @return boolean
|
345 |
+
*/
|
346 |
+
public function isHome()
|
347 |
+
{
|
348 |
+
return $this->_getHelper()->isHome();
|
349 |
+
}
|
350 |
+
|
351 |
+
/**
|
352 |
+
* Returns hide settings in homepage
|
353 |
+
*
|
354 |
+
* @return boolean
|
355 |
+
*/
|
356 |
+
public function showInHome()
|
357 |
+
{
|
358 |
+
if (!$this->isActive()) {
|
359 |
+
return false;
|
360 |
+
}
|
361 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'home_active');
|
362 |
+
}
|
363 |
+
|
364 |
+
/**
|
365 |
+
* Returns hide settings in homepage
|
366 |
+
*
|
367 |
+
* @return boolean
|
368 |
+
*/
|
369 |
+
public function hideTopInHome()
|
370 |
+
{
|
371 |
+
if (!$this->removeTopNav()) {
|
372 |
+
return false;
|
373 |
+
}
|
374 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'home_hide_top');
|
375 |
+
}
|
376 |
+
|
377 |
+
/**
|
378 |
+
* Retrieves home link must remove in homepage
|
379 |
+
*
|
380 |
+
* @return boolean
|
381 |
+
*/
|
382 |
+
public function removeHomeInHome()
|
383 |
+
{
|
384 |
+
if (!$this->showHome()) {
|
385 |
+
return true;
|
386 |
+
}
|
387 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'home_hide_home');
|
388 |
+
}
|
389 |
+
|
390 |
+
/**
|
391 |
+
* Retrieves sidebar navigation is available in homepage content
|
392 |
+
*
|
393 |
+
* @return boolean
|
394 |
+
*/
|
395 |
+
public function availabelInHomeContent()
|
396 |
+
{
|
397 |
+
if (!$this->showInHome()) {
|
398 |
+
return false;
|
399 |
+
}
|
400 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'home_content');
|
401 |
+
}
|
402 |
+
|
403 |
+
/**
|
404 |
+
* Returns hide settings in customer account pages
|
405 |
+
*
|
406 |
+
* @return boolean
|
407 |
+
*/
|
408 |
+
public function showInCustomerAccount()
|
409 |
+
{
|
410 |
+
if (!$this->isActive()) {
|
411 |
+
return false;
|
412 |
+
}
|
413 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'customer_active');
|
414 |
+
}
|
415 |
+
|
416 |
+
/**
|
417 |
+
* Returns hide settings in customer account pages
|
418 |
+
*
|
419 |
+
* @return boolean
|
420 |
+
*/
|
421 |
+
public function hideTopInCustomerAccount()
|
422 |
+
{
|
423 |
+
if (!$this->removeTopNav()) {
|
424 |
+
return false;
|
425 |
+
}
|
426 |
+
return Mage::getStoreConfigFlag(self::getNamespace() . 'customer_hide_top');
|
427 |
+
}
|
428 |
+
|
429 |
+
/**
|
430 |
+
* Returns column option value to define selected column in customer account page
|
431 |
+
*
|
432 |
+
* @return string
|
433 |
+
*/
|
434 |
+
public function getColumnInCustomerAccount()
|
435 |
+
{
|
436 |
+
return Mage::getStoreConfig(self::getNamespace() . 'customer_column');
|
437 |
+
}
|
438 |
+
|
439 |
+
/**
|
440 |
+
* Returns sidenav block position in side columns in customer account page
|
441 |
+
*
|
442 |
+
* @return string
|
443 |
+
*/
|
444 |
+
public function customerAccountBefore()
|
445 |
+
{
|
446 |
+
return Mage::getStoreConfig(self::getNamespace() . 'customer_before');
|
447 |
+
}
|
448 |
+
|
449 |
}
|
app/code/community/Codnitive/Sidenav/Model/Config/ColumnOptions.php
DELETED
@@ -1,51 +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 |
-
* @category Codnitive
|
16 |
-
* @package Codnitive_Sidenav
|
17 |
-
* @author Hassan Barza <support@codnitive.com>
|
18 |
-
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
19 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
-
*/
|
21 |
-
|
22 |
-
class Codnitive_Sidenav_Model_Config_ColumnOptions extends Mage_Core_Model_Config_Data
|
23 |
-
{
|
24 |
-
|
25 |
-
const LEFT_COL_VALUE = 'left_col';
|
26 |
-
const RIGHT_COL_VALUE = 'right_col';
|
27 |
-
const BOTH_COL_VALUE = 'both_col';
|
28 |
-
|
29 |
-
/**
|
30 |
-
* Fills the select field with values
|
31 |
-
*
|
32 |
-
* @return array
|
33 |
-
*/
|
34 |
-
public function toOptionArray()
|
35 |
-
{
|
36 |
-
return array(
|
37 |
-
array(
|
38 |
-
'value' => self::LEFT_COL_VALUE,
|
39 |
-
'label' => Mage::helper('sidenav')->__('Left Column')
|
40 |
-
),
|
41 |
-
array(
|
42 |
-
'value' => self::RIGHT_COL_VALUE,
|
43 |
-
'label' => Mage::helper('sidenav')->__('Right Column')
|
44 |
-
),
|
45 |
-
array(
|
46 |
-
'value' => self::BOTH_COL_VALUE,
|
47 |
-
'label' => Mage::helper('sidenav')->__('Both Columns')
|
48 |
-
),
|
49 |
-
);
|
50 |
-
}
|
51 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Codnitive/Sidenav/Model/Config/ParentOptions.php
DELETED
@@ -1,71 +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 |
-
* @category Codnitive
|
16 |
-
* @package Codnitive_Sidenav
|
17 |
-
* @author Hassan Barza <support@codnitive.com>
|
18 |
-
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
19 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
-
*/
|
21 |
-
|
22 |
-
class Codnitive_Sidenav_Model_Config_ParentOptions extends Mage_Core_Model_Config_Data
|
23 |
-
{
|
24 |
-
const ROOT_VALUE = 'root';
|
25 |
-
const SIBLINGS_VALUE = 'siblings';
|
26 |
-
const CURRENT_VALUE = 'current';
|
27 |
-
|
28 |
-
protected $_options;
|
29 |
-
|
30 |
-
/**
|
31 |
-
* Fills the select field with values
|
32 |
-
*
|
33 |
-
* @return array
|
34 |
-
*/
|
35 |
-
public function toOptionArray()
|
36 |
-
{
|
37 |
-
if (!isset($this->_options)) {
|
38 |
-
$options = array(
|
39 |
-
array(
|
40 |
-
'value' => self::ROOT_VALUE,
|
41 |
-
'label' => Mage::helper('sidenav')->__('Store Base'),
|
42 |
-
),
|
43 |
-
array(
|
44 |
-
'value' => self::SIBLINGS_VALUE,
|
45 |
-
'label' => Mage::helper('sidenav')->__('Current Category and Children'),
|
46 |
-
),
|
47 |
-
array(
|
48 |
-
'value' => self::CURRENT_VALUE,
|
49 |
-
'label' => Mage::helper('sidenav')->__('Children of Current Category'),
|
50 |
-
),
|
51 |
-
);
|
52 |
-
/**
|
53 |
-
* Based on RicoNeitzel_VertNav extension
|
54 |
-
* Thanks to Rico Neitzel
|
55 |
-
*
|
56 |
-
*/
|
57 |
-
$resource = Mage::getModel('catalog/category')->getResource();
|
58 |
-
$select = $resource->getReadConnection()->select()->reset()
|
59 |
-
->from($resource->getTable('catalog/category'), new Zend_Db_Expr('MAX(`level`)'));
|
60 |
-
$maxDepth = $resource->getReadConnection()->fetchOne($select);
|
61 |
-
for ($i = 2; $i < $maxDepth; $i++) {
|
62 |
-
$options[] = array(
|
63 |
-
'value' => $i,
|
64 |
-
'label' => Mage::helper('sidenav')->__('Category Level %d', $i),
|
65 |
-
);
|
66 |
-
}
|
67 |
-
$this->_options = $options;
|
68 |
-
}
|
69 |
-
return $this->_options;
|
70 |
-
}
|
71 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Codnitive/Sidenav/Model/System/Config/Source/Before.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* CODNITIVE
|
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 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
16 |
+
*
|
17 |
+
* @category Codnitive
|
18 |
+
* @package Codnitive_Sidenav
|
19 |
+
* @author Hassan Barza <support@codnitive.com>
|
20 |
+
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
21 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
+
*/
|
23 |
+
|
24 |
+
class Codnitive_Sidenav_Model_System_Config_Source_Before extends Mage_Core_Model_Config_Data
|
25 |
+
{
|
26 |
+
|
27 |
+
protected $_blocks = array(
|
28 |
+
'before_all' => 'Before All',
|
29 |
+
'layered_nav' => 'Layered Navigation',
|
30 |
+
'cart_sidebar' => 'My Cart',
|
31 |
+
'customer_nav' => 'Customer Account Navigation',
|
32 |
+
'customer_nav_after' => 'No! After Customer Account Navigation'
|
33 |
+
);
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Fills the select field with values
|
37 |
+
*
|
38 |
+
* @return array
|
39 |
+
*/
|
40 |
+
public function toOptionArray()
|
41 |
+
{
|
42 |
+
$options = array();
|
43 |
+
|
44 |
+
foreach ($this->_blocks as $key => $val) {
|
45 |
+
$options[] = array(
|
46 |
+
'value' => $key,
|
47 |
+
'label' => Mage::helper('sidenav')->__($val)
|
48 |
+
);
|
49 |
+
}
|
50 |
+
|
51 |
+
return $options;
|
52 |
+
}
|
53 |
+
|
54 |
+
}
|
app/code/community/Codnitive/Sidenav/Model/System/Config/Source/Column.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* CODNITIVE
|
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 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
16 |
+
*
|
17 |
+
* @category Codnitive
|
18 |
+
* @package Codnitive_Sidenav
|
19 |
+
* @author Hassan Barza <support@codnitive.com>
|
20 |
+
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
21 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
+
*/
|
23 |
+
|
24 |
+
class Codnitive_Sidenav_Model_System_Config_Source_Column extends Mage_Core_Model_Config_Data
|
25 |
+
{
|
26 |
+
|
27 |
+
const LEFT_COL_VALUE = 'left_col';
|
28 |
+
const RIGHT_COL_VALUE = 'right_col';
|
29 |
+
const BOTH_COL_VALUE = 'both_col';
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Fills the select field with values
|
33 |
+
*
|
34 |
+
* @return array
|
35 |
+
*/
|
36 |
+
public function toOptionArray()
|
37 |
+
{
|
38 |
+
return array(
|
39 |
+
array(
|
40 |
+
'value' => self::LEFT_COL_VALUE,
|
41 |
+
'label' => Mage::helper('sidenav')->__('Left Column')
|
42 |
+
),
|
43 |
+
array(
|
44 |
+
'value' => self::RIGHT_COL_VALUE,
|
45 |
+
'label' => Mage::helper('sidenav')->__('Right Column')
|
46 |
+
),
|
47 |
+
array(
|
48 |
+
'value' => self::BOTH_COL_VALUE,
|
49 |
+
'label' => Mage::helper('sidenav')->__('Both Columns')
|
50 |
+
),
|
51 |
+
);
|
52 |
+
}
|
53 |
+
|
54 |
+
}
|
app/code/community/Codnitive/Sidenav/Model/System/Config/Source/Float.php
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* CODNITIVE
|
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 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
16 |
+
*
|
17 |
+
* @category Codnitive
|
18 |
+
* @package Codnitive_Sidenav
|
19 |
+
* @author Hassan Barza <support@codnitive.com>
|
20 |
+
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
21 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
+
*/
|
23 |
+
|
24 |
+
class Codnitive_Sidenav_Model_System_Config_Source_Float extends Mage_Core_Model_Config_Data
|
25 |
+
{
|
26 |
+
|
27 |
+
protected $_position = array(
|
28 |
+
'right' => 'Right',
|
29 |
+
'left' => 'Left'
|
30 |
+
);
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Fills the select field with values
|
34 |
+
*
|
35 |
+
* @return array
|
36 |
+
*/
|
37 |
+
public function toOptionArray()
|
38 |
+
{
|
39 |
+
$options = array();
|
40 |
+
|
41 |
+
foreach ($this->_position as $key => $val) {
|
42 |
+
$options[] = array(
|
43 |
+
'value' => $key,
|
44 |
+
'label' => Mage::helper('sidenav')->__($val)
|
45 |
+
);
|
46 |
+
}
|
47 |
+
|
48 |
+
return $options;
|
49 |
+
}
|
50 |
+
|
51 |
+
}
|
app/code/community/Codnitive/Sidenav/Model/System/Config/Source/Icon.php
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* CODNITIVE
|
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 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
16 |
+
*
|
17 |
+
* @category Codnitive
|
18 |
+
* @package Codnitive_Sidenav
|
19 |
+
* @author Hassan Barza <support@codnitive.com>
|
20 |
+
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
21 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
+
*/
|
23 |
+
|
24 |
+
class Codnitive_Sidenav_Model_System_Config_Source_Icon extends Mage_Core_Model_Config_Data
|
25 |
+
{
|
26 |
+
|
27 |
+
protected $_position = array(
|
28 |
+
'arrow' => 'Arrow',
|
29 |
+
'plus' => 'Plus'
|
30 |
+
);
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Fills the select field with values
|
34 |
+
*
|
35 |
+
* @return array
|
36 |
+
*/
|
37 |
+
public function toOptionArray()
|
38 |
+
{
|
39 |
+
$options = array();
|
40 |
+
|
41 |
+
foreach ($this->_position as $key => $val) {
|
42 |
+
$options[] = array(
|
43 |
+
'value' => $key,
|
44 |
+
'label' => Mage::helper('sidenav')->__($val)
|
45 |
+
);
|
46 |
+
}
|
47 |
+
|
48 |
+
return $options;
|
49 |
+
}
|
50 |
+
|
51 |
+
}
|
app/code/community/Codnitive/Sidenav/Model/System/Config/Source/Loadnocategory.php
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* CODNITIVE
|
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 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
16 |
+
*
|
17 |
+
* @category Codnitive
|
18 |
+
* @package Codnitive_Sidenav
|
19 |
+
* @author Hassan Barza <support@codnitive.com>
|
20 |
+
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
21 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
+
*/
|
23 |
+
|
24 |
+
class Codnitive_Sidenav_Model_System_Config_Source_Loadnocategory extends Mage_Core_Model_Config_Data
|
25 |
+
{
|
26 |
+
|
27 |
+
const ROOT_VALUE = 'root';
|
28 |
+
const NULL_VALUE = 'null';
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Fills the select field with values
|
32 |
+
*
|
33 |
+
* @return array
|
34 |
+
*/
|
35 |
+
public function toOptionArray()
|
36 |
+
{
|
37 |
+
return array(
|
38 |
+
array(
|
39 |
+
'value' => self::ROOT_VALUE,
|
40 |
+
'label' => Mage::helper('sidenav')->__('Store Base')
|
41 |
+
),
|
42 |
+
array(
|
43 |
+
'value' => self::NULL_VALUE,
|
44 |
+
'label' => Mage::helper('sidenav')->__('Nothing')
|
45 |
+
)
|
46 |
+
);
|
47 |
+
}
|
48 |
+
|
49 |
+
}
|
app/code/community/Codnitive/Sidenav/Model/System/Config/Source/Parent.php
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* CODNITIVE
|
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 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
16 |
+
*
|
17 |
+
* @category Codnitive
|
18 |
+
* @package Codnitive_Sidenav
|
19 |
+
* @author Hassan Barza <support@codnitive.com>
|
20 |
+
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
21 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
+
*/
|
23 |
+
|
24 |
+
class Codnitive_Sidenav_Model_System_Config_Source_Parent extends Mage_Core_Model_Config_Data
|
25 |
+
{
|
26 |
+
|
27 |
+
const ROOT_VALUE = 'root';
|
28 |
+
const CURRENT_VALUE = 'current';
|
29 |
+
const SIBLINGS_VALUE = 'siblings';
|
30 |
+
const CHILDREN_VALUE = 'children';
|
31 |
+
|
32 |
+
protected $_options;
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Fills the select field with values
|
36 |
+
*
|
37 |
+
* @return array
|
38 |
+
*/
|
39 |
+
public function toOptionArray()
|
40 |
+
{
|
41 |
+
if (!isset($this->_options)) {
|
42 |
+
$options = array(
|
43 |
+
array(
|
44 |
+
'value' => self::ROOT_VALUE,
|
45 |
+
'label' => Mage::helper('sidenav')->__('Store Base'),
|
46 |
+
),
|
47 |
+
array(
|
48 |
+
'value' => self::SIBLINGS_VALUE,
|
49 |
+
'label' => Mage::helper('sidenav')->__('Current Category and Its Siblings'),
|
50 |
+
),
|
51 |
+
array(
|
52 |
+
'value' => self::CURRENT_VALUE,
|
53 |
+
'label' => Mage::helper('sidenav')->__('Current Category and Children'),
|
54 |
+
),
|
55 |
+
array(
|
56 |
+
'value' => self::CHILDREN_VALUE,
|
57 |
+
'label' => Mage::helper('sidenav')->__('Children of Current Category'),
|
58 |
+
),
|
59 |
+
);
|
60 |
+
|
61 |
+
/**
|
62 |
+
* Based on RicoNeitzel_VertNav extension
|
63 |
+
* Thanks to Rico Neitzel
|
64 |
+
*
|
65 |
+
*/
|
66 |
+
$resource = Mage::getModel('catalog/category')->getResource();
|
67 |
+
$select = $resource->getReadConnection()->select()->reset()
|
68 |
+
->from($resource->getTable('catalog/category'), new Zend_Db_Expr('MAX(`level`)'));
|
69 |
+
$maxDepth = $resource->getReadConnection()->fetchOne($select);
|
70 |
+
for ($i = 2; $i < $maxDepth; $i++) {
|
71 |
+
$options[] = array(
|
72 |
+
'value' => $i,
|
73 |
+
'label' => Mage::helper('sidenav')->__('Category Level %d', $i),
|
74 |
+
);
|
75 |
+
}
|
76 |
+
$this->_options = $options;
|
77 |
+
}
|
78 |
+
return $this->_options;
|
79 |
+
}
|
80 |
+
|
81 |
+
}
|
app/code/community/Codnitive/Sidenav/Model/{Config/ThumbSizeOptions.php → System/Config/Source/Thumbsize.php}
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -8,9 +8,11 @@
|
|
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 |
-
*
|
13 |
-
*
|
|
|
|
|
14 |
*
|
15 |
* @category Codnitive
|
16 |
* @package Codnitive_Sidenav
|
@@ -19,11 +21,11 @@
|
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
-
class
|
23 |
{
|
24 |
-
|
25 |
const DEFAULT_VALUE = 0;
|
26 |
-
const CUSTOM_VALUE
|
27 |
|
28 |
/**
|
29 |
* Fills the select field with values
|
@@ -33,14 +35,15 @@ class Codnitive_Sidenav_Model_Config_ThumbSizeOptions extends Mage_Core_Model_Co
|
|
33 |
public function toOptionArray()
|
34 |
{
|
35 |
return array(
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
);
|
45 |
}
|
|
|
46 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* CODNITIVE
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
16 |
*
|
17 |
* @category Codnitive
|
18 |
* @package Codnitive_Sidenav
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
|
24 |
+
class Codnitive_Sidenav_Model_System_Config_Source_Thumbsize extends Mage_Core_Model_Config_Data
|
25 |
{
|
26 |
+
|
27 |
const DEFAULT_VALUE = 0;
|
28 |
+
const CUSTOM_VALUE = 1;
|
29 |
|
30 |
/**
|
31 |
* Fills the select field with values
|
35 |
public function toOptionArray()
|
36 |
{
|
37 |
return array(
|
38 |
+
array(
|
39 |
+
'value' => self::DEFAULT_VALUE,
|
40 |
+
'label' => Mage::helper('sidenav')->__('Default')
|
41 |
+
),
|
42 |
+
array(
|
43 |
+
'value' => self::CUSTOM_VALUE,
|
44 |
+
'label' => Mage::helper('sidenav')->__('Custom')
|
45 |
+
),
|
46 |
);
|
47 |
}
|
48 |
+
|
49 |
}
|
app/code/community/Codnitive/Sidenav/Model/System/Config/Source/Title.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* CODNITIVE
|
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 |
+
* DISCLAIMER
|
13 |
+
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
16 |
+
*
|
17 |
+
* @category Codnitive
|
18 |
+
* @package Codnitive_Sidenav
|
19 |
+
* @author Hassan Barza <support@codnitive.com>
|
20 |
+
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
21 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
+
*/
|
23 |
+
|
24 |
+
class Codnitive_Sidenav_Model_System_Config_Source_Title extends Mage_Core_Model_Config_Data
|
25 |
+
{
|
26 |
+
|
27 |
+
const CURRENT_CATEGORY_VALUE = 'current';
|
28 |
+
const PARENT_CATEGORY_VALUE = 'parent';
|
29 |
+
const STATIC_TITLE_VALUE = 'static';
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Fills the select field with values
|
33 |
+
*
|
34 |
+
* @return array
|
35 |
+
*/
|
36 |
+
public function toOptionArray()
|
37 |
+
{
|
38 |
+
return array(
|
39 |
+
array(
|
40 |
+
'value' => self::CURRENT_CATEGORY_VALUE,
|
41 |
+
'label' => Mage::helper('sidenav')->__('Current Category Name')
|
42 |
+
),
|
43 |
+
array(
|
44 |
+
'value' => self::PARENT_CATEGORY_VALUE,
|
45 |
+
'label' => Mage::helper('sidenav')->__('Parent Category Name')
|
46 |
+
),
|
47 |
+
array(
|
48 |
+
'value' => self::STATIC_TITLE_VALUE,
|
49 |
+
'label' => Mage::helper('sidenav')->__('Static Title')
|
50 |
+
)
|
51 |
+
);
|
52 |
+
}
|
53 |
+
|
54 |
+
}
|
app/code/community/Codnitive/Sidenav/etc/adminhtml.xml
CHANGED
@@ -1,28 +1,45 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
*
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
|
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* DISCLAIMER
|
13 |
*
|
14 |
-
* Do not edit or add to this file if you wish to upgrade
|
15 |
-
* versions in the future.
|
16 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
-
* @package
|
20 |
* @author Hassan Barza <support@codnitive.com>
|
21 |
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
22 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
23 |
*/
|
24 |
-->
|
25 |
<config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
<acl>
|
27 |
<resources>
|
28 |
<all>
|
@@ -30,6 +47,20 @@
|
|
30 |
</all>
|
31 |
<admin>
|
32 |
<children>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
<system>
|
34 |
<children>
|
35 |
<config>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* CODNITIVE
|
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 |
* DISCLAIMER
|
14 |
*
|
15 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
16 |
+
* versions in the future.
|
|
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
+
* @package Codnitive_Sidenav
|
20 |
* @author Hassan Barza <support@codnitive.com>
|
21 |
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
22 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
23 |
*/
|
24 |
-->
|
25 |
<config>
|
26 |
+
<menu>
|
27 |
+
<codall>
|
28 |
+
<children>
|
29 |
+
<codnitivecatalog trnslate="title">
|
30 |
+
<title>Catalog</title>
|
31 |
+
<sort_order>200</sort_order>
|
32 |
+
<children>
|
33 |
+
<sidenav trnslate="title" module="sidenav">
|
34 |
+
<title>Sidebar Navigation Menu Professional</title>
|
35 |
+
<sort_order>450</sort_order>
|
36 |
+
<action>adminhtml/system_config/edit/section/codnitivecatalog</action>
|
37 |
+
</sidenav>
|
38 |
+
</children>
|
39 |
+
</codnitivecatalog>
|
40 |
+
</children>
|
41 |
+
</codall>
|
42 |
+
</menu>
|
43 |
<acl>
|
44 |
<resources>
|
45 |
<all>
|
47 |
</all>
|
48 |
<admin>
|
49 |
<children>
|
50 |
+
<codall>
|
51 |
+
<children>
|
52 |
+
<codnitivecatalog translate="title">
|
53 |
+
<title>Catalog</title>
|
54 |
+
<sort_order>200</sort_order>
|
55 |
+
<children>
|
56 |
+
<sidenav translate="title" module="sidenav">
|
57 |
+
<title>Sidebar Navigation Menu Professional</title>
|
58 |
+
<sort_order>450</sort_order>
|
59 |
+
</sidenav>
|
60 |
+
</children>
|
61 |
+
</codnitivecatalog>
|
62 |
+
</children>
|
63 |
+
</codall>
|
64 |
<system>
|
65 |
<children>
|
66 |
<config>
|
app/code/community/Codnitive/Sidenav/etc/config.xml
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
*
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
|
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* DISCLAIMER
|
13 |
*
|
14 |
-
* Do not edit or add to this file if you wish to upgrade
|
15 |
-
* versions in the future.
|
16 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Sidenav
|
@@ -23,127 +23,121 @@
|
|
23 |
*/
|
24 |
-->
|
25 |
<config>
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
</blocks>
|
72 |
-
</global>
|
73 |
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
<children>
|
86 |
-
<codnitivecatalog>
|
87 |
-
<title>CODNITIVE Catalog</title>
|
88 |
-
</codnitivecatalog>
|
89 |
-
</children>
|
90 |
-
</config>
|
91 |
-
</children>
|
92 |
-
</system>
|
93 |
-
</children>
|
94 |
-
</admin>
|
95 |
-
</resources>
|
96 |
-
</acl>
|
97 |
-
|
98 |
-
<translate>
|
99 |
-
<modules>
|
100 |
-
<Codnitive_Sidenav>
|
101 |
-
<files>
|
102 |
-
<default>Codnitive_Sidenav.csv</default>
|
103 |
-
</files>
|
104 |
-
</Codnitive_Sidenav>
|
105 |
-
</modules>
|
106 |
-
</translate>
|
107 |
-
</adminhtml>
|
108 |
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* CODNITIVE
|
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 |
* DISCLAIMER
|
14 |
*
|
15 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
16 |
+
* versions in the future.
|
|
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Sidenav
|
23 |
*/
|
24 |
-->
|
25 |
<config>
|
26 |
+
<modules>
|
27 |
+
<Codnitive_Sidenav>
|
28 |
+
<version>1.8.00</version>
|
29 |
+
<title>Sidebar Navigation Menu Professional</title>
|
30 |
+
<link><![CDATA[http://www.codnitive.com/]]>
|
31 |
+
</link>
|
32 |
+
</Codnitive_Sidenav>
|
33 |
+
</modules>
|
34 |
+
<global>
|
35 |
+
<models>
|
36 |
+
<sidenav>
|
37 |
+
<class>Codnitive_Sidenav_Model</class>
|
38 |
+
</sidenav>
|
39 |
+
</models>
|
40 |
+
<helpers>
|
41 |
+
<sidenav>
|
42 |
+
<class>Codnitive_Sidenav_Helper</class>
|
43 |
+
</sidenav>
|
44 |
+
</helpers>
|
45 |
+
<blocks>
|
46 |
+
<sidenav>
|
47 |
+
<class>Codnitive_Sidenav_Block</class>
|
48 |
+
</sidenav>
|
49 |
+
</blocks>
|
50 |
+
<resources>
|
51 |
+
<sidenav_setup>
|
52 |
+
<setup>
|
53 |
+
<module>Codnitive_Sidenav</module>
|
54 |
+
</setup>
|
55 |
+
<connection>
|
56 |
+
<use>core_setup</use>
|
57 |
+
</connection>
|
58 |
+
</sidenav_setup>
|
59 |
+
<sidenav_write>
|
60 |
+
<connection>
|
61 |
+
<use>core_write</use>
|
62 |
+
</connection>
|
63 |
+
</sidenav_write>
|
64 |
+
<sidenav_read>
|
65 |
+
<connection>
|
66 |
+
<use>core_read</use>
|
67 |
+
</connection>
|
68 |
+
</sidenav_read>
|
69 |
+
</resources>
|
70 |
+
</global>
|
|
|
|
|
71 |
|
72 |
+
<adminhtml>
|
73 |
+
<translate>
|
74 |
+
<modules>
|
75 |
+
<Codnitive_Sidenav>
|
76 |
+
<files>
|
77 |
+
<default>Codnitive_Sidenav.csv</default>
|
78 |
+
</files>
|
79 |
+
</Codnitive_Sidenav>
|
80 |
+
</modules>
|
81 |
+
</translate>
|
82 |
+
</adminhtml>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
|
84 |
+
<frontend>
|
85 |
+
<translate>
|
86 |
+
<modules>
|
87 |
+
<Codnitive_Sidenav>
|
88 |
+
<files>
|
89 |
+
<default>Codnitive_Sidenav.csv</default>
|
90 |
+
</files>
|
91 |
+
</Codnitive_Sidenav>
|
92 |
+
</modules>
|
93 |
+
</translate>
|
94 |
|
95 |
+
<layout>
|
96 |
+
<updates>
|
97 |
+
<sidenav>
|
98 |
+
<file>codnitive/sidenav.xml</file>
|
99 |
+
</sidenav>
|
100 |
+
</updates>
|
101 |
+
</layout>
|
102 |
+
</frontend>
|
103 |
|
104 |
+
<default>
|
105 |
+
<codnitivecatalog>
|
106 |
+
<sidenav>
|
107 |
+
<active>1</active>
|
108 |
+
<remove_top_nav>0</remove_top_nav>
|
109 |
+
<remove_layered_nav>1</remove_layered_nav>
|
110 |
+
<column>left_col</column>
|
111 |
+
<before>before_all</before>
|
112 |
+
<parent>root</parent>
|
113 |
+
<load_no_category>root</load_no_category>
|
114 |
+
<max_depth>0</max_depth>
|
115 |
+
<product_direct_access>1</product_direct_access>
|
116 |
+
<title>static</title>
|
117 |
+
<static_title>Categories</static_title>
|
118 |
+
<product_count>0</product_count>
|
119 |
+
<remove_zero_count>0</remove_zero_count>
|
120 |
+
<home>1</home>
|
121 |
+
<logo>1</logo>
|
122 |
+
<show_image>1</show_image>
|
123 |
+
<collapsible>1</collapsible>
|
124 |
+
<expand_by_name>0</expand_by_name>
|
125 |
+
<collapsible_icon_position>right</collapsible_icon_position>
|
126 |
+
<collapsible_icon_type>plus</collapsible_icon_type>
|
127 |
+
<thumbnail>0</thumbnail>
|
128 |
+
<thumb_position>left</thumb_position>
|
129 |
+
<thumb_size>0</thumb_size>
|
130 |
+
<thumb_width>14</thumb_width>
|
131 |
+
<thumb_height>14</thumb_height>
|
132 |
+
<home_active>1</home_active>
|
133 |
+
<home_hide_top>1</home_hide_top>
|
134 |
+
<home_hide_home>1</home_hide_home>
|
135 |
+
<home_content>0</home_content>
|
136 |
+
<customer_active>1</customer_active>
|
137 |
+
<customer_hide_top>1</customer_hide_top>
|
138 |
+
<customer_column>left_col</customer_column>
|
139 |
+
<customer_before>customer_nav_after</customer_before>
|
140 |
+
</sidenav>
|
141 |
+
</codnitivecatalog>
|
142 |
+
</default>
|
143 |
</config>
|
app/code/community/Codnitive/Sidenav/etc/system.xml
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
*
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
|
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* DISCLAIMER
|
13 |
*
|
14 |
-
* Do not edit or add to this file if you wish to upgrade
|
15 |
-
* versions in the future.
|
16 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Sidenav
|
@@ -24,14 +24,14 @@
|
|
24 |
-->
|
25 |
<config>
|
26 |
<sections>
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
<groups>
|
36 |
<sidenav translate="label" module="sidenav">
|
37 |
<label>Sidebar Navigation Menu Professional</label>
|
@@ -40,153 +40,382 @@
|
|
40 |
<show_in_website>1</show_in_website>
|
41 |
<show_in_store>1</show_in_store>
|
42 |
<fields>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
<active translate="label">
|
44 |
<label>Enabled</label>
|
45 |
<frontend_type>select</frontend_type>
|
46 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
47 |
-
<sort_order>
|
48 |
<show_in_default>1</show_in_default>
|
49 |
<show_in_website>1</show_in_website>
|
50 |
<show_in_store>1</show_in_store>
|
51 |
-
<!--<comment>You must refresh "Blocks HTML output" cache if it's enabled.</comment>-->
|
52 |
</active>
|
53 |
-
|
54 |
-
<label>Title</label>
|
55 |
-
<frontend_type>text</frontend_type>
|
56 |
-
<sort_order>15</sort_order>
|
57 |
-
<show_in_default>1</show_in_default>
|
58 |
-
<show_in_website>1</show_in_website>
|
59 |
-
<show_in_store>1</show_in_store>
|
60 |
-
</title>
|
61 |
-
<remove_top_nav translate="label">
|
62 |
<label>Remove Top Navigation Menu</label>
|
63 |
<frontend_type>select</frontend_type>
|
64 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
65 |
-
<sort_order>
|
66 |
<show_in_default>1</show_in_default>
|
67 |
<show_in_website>1</show_in_website>
|
68 |
<show_in_store>1</show_in_store>
|
|
|
69 |
</remove_top_nav>
|
70 |
-
<remove_layered_nav translate="label
|
71 |
-
<label>Remove Layered Navigation
|
72 |
<frontend_type>select</frontend_type>
|
73 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
74 |
-
<sort_order>
|
75 |
<show_in_default>1</show_in_default>
|
76 |
<show_in_website>1</show_in_website>
|
77 |
<show_in_store>1</show_in_store>
|
78 |
-
|
79 |
</remove_layered_nav>
|
80 |
-
|
81 |
-
|
82 |
<frontend_type>select</frontend_type>
|
83 |
-
|
84 |
-
<
|
85 |
-
<sort_order>30</sort_order>
|
86 |
<show_in_default>1</show_in_default>
|
87 |
<show_in_website>1</show_in_website>
|
88 |
<show_in_store>1</show_in_store>
|
89 |
</column>
|
90 |
-
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
<frontend_type>select</frontend_type>
|
93 |
-
|
94 |
-
<
|
95 |
-
<sort_order>35</sort_order>
|
96 |
<show_in_default>1</show_in_default>
|
97 |
<show_in_website>1</show_in_website>
|
98 |
<show_in_store>1</show_in_store>
|
99 |
</parent>
|
100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
<label>Maximal Depth</label>
|
102 |
<frontend_type>text</frontend_type>
|
103 |
-
<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 |
-
|
|
|
108 |
</max_depth>
|
109 |
-
|
110 |
-
<label>
|
111 |
<frontend_type>select</frontend_type>
|
112 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
113 |
-
<sort_order>
|
114 |
<show_in_default>1</show_in_default>
|
115 |
<show_in_website>1</show_in_website>
|
116 |
<show_in_store>1</show_in_store>
|
117 |
-
</
|
118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
<label>Show Product Count</label>
|
120 |
<frontend_type>select</frontend_type>
|
121 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
122 |
-
<sort_order>
|
123 |
<show_in_default>1</show_in_default>
|
124 |
<show_in_website>1</show_in_website>
|
125 |
<show_in_store>1</show_in_store>
|
126 |
</product_count>
|
127 |
-
|
128 |
<label>Remove Zero Product Count</label>
|
129 |
<frontend_type>select</frontend_type>
|
130 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
131 |
-
<sort_order>
|
132 |
<show_in_default>1</show_in_default>
|
133 |
<show_in_website>1</show_in_website>
|
134 |
<show_in_store>1</show_in_store>
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
</remove_zero_count>
|
140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
<label>Thumbnail Enabled</label>
|
142 |
<frontend_type>select</frontend_type>
|
143 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
144 |
-
<sort_order>
|
145 |
<show_in_default>1</show_in_default>
|
146 |
<show_in_website>1</show_in_website>
|
147 |
<show_in_store>1</show_in_store>
|
148 |
-
|
149 |
</thumbnail>
|
150 |
-
|
151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
<frontend_type>select</frontend_type>
|
153 |
-
|
154 |
-
<
|
155 |
-
<sort_order>65</sort_order>
|
156 |
<show_in_default>1</show_in_default>
|
157 |
<show_in_website>1</show_in_website>
|
158 |
<show_in_store>1</show_in_store>
|
159 |
-
|
160 |
-
<depends>
|
161 |
-
<thumbnail>1</thumbnail>
|
162 |
-
</depends>
|
163 |
</thumb_size>
|
164 |
-
|
165 |
-
|
166 |
<frontend_type>text</frontend_type>
|
167 |
-
<sort_order>
|
168 |
<show_in_default>1</show_in_default>
|
169 |
<show_in_website>1</show_in_website>
|
170 |
<show_in_store>1</show_in_store>
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
|
|
179 |
<frontend_type>text</frontend_type>
|
180 |
-
<sort_order>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
<show_in_default>1</show_in_default>
|
182 |
<show_in_website>1</show_in_website>
|
183 |
<show_in_store>1</show_in_store>
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
<thumbnail>1</thumbnail>
|
188 |
-
</depends>
|
189 |
-
</thumb_height>
|
190 |
</fields>
|
191 |
</sidenav>
|
192 |
</groups>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* CODNITIVE
|
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 |
* DISCLAIMER
|
14 |
*
|
15 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
16 |
+
* versions in the future.
|
|
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Sidenav
|
24 |
-->
|
25 |
<config>
|
26 |
<sections>
|
27 |
+
<codnitivecatalog translate="label" module="sidenav">
|
28 |
+
<label>Catalog</label>
|
29 |
+
<tab>codall</tab>
|
30 |
+
<frontend_type>text</frontend_type>
|
31 |
+
<sort_order>200</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 |
<sidenav translate="label" module="sidenav">
|
37 |
<label>Sidebar Navigation Menu Professional</label>
|
40 |
<show_in_website>1</show_in_website>
|
41 |
<show_in_store>1</show_in_store>
|
42 |
<fields>
|
43 |
+
<heading_base translate="label">
|
44 |
+
<label>Base Settings</label>
|
45 |
+
<frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
|
46 |
+
<sort_order>10</sort_order>
|
47 |
+
<show_in_default>1</show_in_default>
|
48 |
+
<show_in_website>1</show_in_website>
|
49 |
+
<show_in_store>1</show_in_store>
|
50 |
+
</heading_base>
|
51 |
<active translate="label">
|
52 |
<label>Enabled</label>
|
53 |
<frontend_type>select</frontend_type>
|
54 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
55 |
+
<sort_order>20</sort_order>
|
56 |
<show_in_default>1</show_in_default>
|
57 |
<show_in_website>1</show_in_website>
|
58 |
<show_in_store>1</show_in_store>
|
|
|
59 |
</active>
|
60 |
+
<remove_top_nav translate="label,comment">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
<label>Remove Top Navigation Menu</label>
|
62 |
<frontend_type>select</frontend_type>
|
63 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
64 |
+
<sort_order>30</sort_order>
|
65 |
<show_in_default>1</show_in_default>
|
66 |
<show_in_website>1</show_in_website>
|
67 |
<show_in_store>1</show_in_store>
|
68 |
+
<comment>Affects on all pages in any case.</comment>
|
69 |
</remove_top_nav>
|
70 |
+
<remove_layered_nav translate="label,comment">
|
71 |
+
<label>Remove Layered Navigation Categories</label>
|
72 |
<frontend_type>select</frontend_type>
|
73 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
74 |
+
<sort_order>40</sort_order>
|
75 |
<show_in_default>1</show_in_default>
|
76 |
<show_in_website>1</show_in_website>
|
77 |
<show_in_store>1</show_in_store>
|
78 |
+
<comment>Removes browse by category from layered navigation.</comment>
|
79 |
</remove_layered_nav>
|
80 |
+
<column translate="label">
|
81 |
+
<label>Default Column</label>
|
82 |
<frontend_type>select</frontend_type>
|
83 |
+
<source_model>sidenav/system_config_source_column</source_model>
|
84 |
+
<sort_order>50</sort_order>
|
|
|
85 |
<show_in_default>1</show_in_default>
|
86 |
<show_in_website>1</show_in_website>
|
87 |
<show_in_store>1</show_in_store>
|
88 |
</column>
|
89 |
+
<before translate="label,tooltip">
|
90 |
+
<label>Before</label>
|
91 |
+
<frontend_type>select</frontend_type>
|
92 |
+
<source_model>sidenav/system_config_source_before</source_model>
|
93 |
+
<sort_order>51</sort_order>
|
94 |
+
<show_in_default>1</show_in_default>
|
95 |
+
<show_in_website>1</show_in_website>
|
96 |
+
<show_in_store>1</show_in_store>
|
97 |
+
<tooltip><![CDATA[If "Before All" doesn't work, just try another block to put Sidebar Navigation before all other blocks.
|
98 |
+
<br />If still it doesn't work you must edit "layout/codnitive/sidenav.xml" file.]]></tooltip>
|
99 |
+
</before>
|
100 |
+
<parent translate="label">
|
101 |
+
<label>Parent Category</label>
|
102 |
<frontend_type>select</frontend_type>
|
103 |
+
<source_model>sidenav/system_config_source_parent</source_model>
|
104 |
+
<sort_order>60</sort_order>
|
|
|
105 |
<show_in_default>1</show_in_default>
|
106 |
<show_in_website>1</show_in_website>
|
107 |
<show_in_store>1</show_in_store>
|
108 |
</parent>
|
109 |
+
<load_no_category translate="label,comment">
|
110 |
+
<label>If no Category, so Load</label>
|
111 |
+
<frontend_type>select</frontend_type>
|
112 |
+
<source_model>sidenav/system_config_source_loadnocategory</source_model>
|
113 |
+
<sort_order>70</sort_order>
|
114 |
+
<show_in_default>1</show_in_default>
|
115 |
+
<show_in_website>1</show_in_website>
|
116 |
+
<show_in_store>1</show_in_store>
|
117 |
+
<comment>Loads store root if parent category is not available.</comment>
|
118 |
+
</load_no_category>
|
119 |
+
<max_depth translate="label,comment">
|
120 |
<label>Maximal Depth</label>
|
121 |
<frontend_type>text</frontend_type>
|
122 |
+
<sort_order>90</sort_order>
|
123 |
<show_in_default>1</show_in_default>
|
124 |
<show_in_website>1</show_in_website>
|
125 |
<show_in_store>1</show_in_store>
|
126 |
+
<validate>validate-digits</validate>
|
127 |
+
<comment>Set to 0 or leave empty for unlimit depth.</comment>
|
128 |
</max_depth>
|
129 |
+
<product_direct_access translate="label,comment">
|
130 |
+
<label>Active Product Categories In Direct Access</label>
|
131 |
<frontend_type>select</frontend_type>
|
132 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
133 |
+
<sort_order>95</sort_order>
|
134 |
<show_in_default>1</show_in_default>
|
135 |
<show_in_website>1</show_in_website>
|
136 |
<show_in_store>1</show_in_store>
|
137 |
+
</product_direct_access>
|
138 |
+
<title translate="label">
|
139 |
+
<label>Title</label>
|
140 |
+
<frontend_type>select</frontend_type>
|
141 |
+
<source_model>sidenav/system_config_source_title</source_model>
|
142 |
+
<sort_order>100</sort_order>
|
143 |
+
<show_in_default>1</show_in_default>
|
144 |
+
<show_in_website>1</show_in_website>
|
145 |
+
<show_in_store>1</show_in_store>
|
146 |
+
</title>
|
147 |
+
<static_title translate="label,tooltip">
|
148 |
+
<label>Static Title</label>
|
149 |
+
<frontend_type>text</frontend_type>
|
150 |
+
<sort_order>101</sort_order>
|
151 |
+
<show_in_default>1</show_in_default>
|
152 |
+
<show_in_website>1</show_in_website>
|
153 |
+
<show_in_store>1</show_in_store>
|
154 |
+
<tooltip>Static title also use if current or parent category does not exists.</tooltip>
|
155 |
+
</static_title>
|
156 |
+
<product_count translate="label">
|
157 |
<label>Show Product Count</label>
|
158 |
<frontend_type>select</frontend_type>
|
159 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
160 |
+
<sort_order>110</sort_order>
|
161 |
<show_in_default>1</show_in_default>
|
162 |
<show_in_website>1</show_in_website>
|
163 |
<show_in_store>1</show_in_store>
|
164 |
</product_count>
|
165 |
+
<remove_zero_count translate="label,comment">
|
166 |
<label>Remove Zero Product Count</label>
|
167 |
<frontend_type>select</frontend_type>
|
168 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
169 |
+
<sort_order>111</sort_order>
|
170 |
<show_in_default>1</show_in_default>
|
171 |
<show_in_website>1</show_in_website>
|
172 |
<show_in_store>1</show_in_store>
|
173 |
+
<comment>Removes product count for categories with zero product number.</comment>
|
174 |
+
<depends>
|
175 |
+
<product_count>1</product_count>
|
176 |
+
</depends>
|
177 |
</remove_zero_count>
|
178 |
+
<home translate="label">
|
179 |
+
<label>Show Home Link</label>
|
180 |
+
<frontend_type>select</frontend_type>
|
181 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
182 |
+
<sort_order>120</sort_order>
|
183 |
+
<show_in_default>1</show_in_default>
|
184 |
+
<show_in_website>1</show_in_website>
|
185 |
+
<show_in_store>1</show_in_store>
|
186 |
+
</home>
|
187 |
+
<logo translate="label,comment">
|
188 |
+
<label>Show Our Logo</label>
|
189 |
+
<frontend_type>select</frontend_type>
|
190 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
191 |
+
<sort_order>130</sort_order>
|
192 |
+
<show_in_default>1</show_in_default>
|
193 |
+
<show_in_website>1</show_in_website>
|
194 |
+
<show_in_store>1</show_in_store>
|
195 |
+
<comment>We would greatly appreciate if you support us by showing our logo at the bottom of sidebar navigation.</comment>
|
196 |
+
</logo>
|
197 |
+
<show_image translate="label">
|
198 |
+
<label>Show Image Logo</label>
|
199 |
+
<frontend_type>select</frontend_type>
|
200 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
201 |
+
<sort_order>131</sort_order>
|
202 |
+
<show_in_default>1</show_in_default>
|
203 |
+
<show_in_website>1</show_in_website>
|
204 |
+
<show_in_store>1</show_in_store>
|
205 |
+
<depends>
|
206 |
+
<logo>1</logo>
|
207 |
+
</depends>
|
208 |
+
</show_image>
|
209 |
+
|
210 |
+
<heading_collapsible translate="label">
|
211 |
+
<label>Collapsible Settings</label>
|
212 |
+
<frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
|
213 |
+
<sort_order>300</sort_order>
|
214 |
+
<show_in_default>1</show_in_default>
|
215 |
+
<show_in_website>1</show_in_website>
|
216 |
+
<show_in_store>1</show_in_store>
|
217 |
+
</heading_collapsible>
|
218 |
+
<collapsible translate="label">
|
219 |
+
<label>Collapsible</label>
|
220 |
+
<frontend_type>select</frontend_type>
|
221 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
222 |
+
<sort_order>310</sort_order>
|
223 |
+
<show_in_default>1</show_in_default>
|
224 |
+
<show_in_website>1</show_in_website>
|
225 |
+
<show_in_store>1</show_in_store>
|
226 |
+
</collapsible>
|
227 |
+
<expand_by_name translate="label,tooltip">
|
228 |
+
<label>Expand by Parent Name</label>
|
229 |
+
<frontend_type>select</frontend_type>
|
230 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
231 |
+
<sort_order>320</sort_order>
|
232 |
+
<show_in_default>1</show_in_default>
|
233 |
+
<show_in_website>1</show_in_website>
|
234 |
+
<show_in_store>1</show_in_store>
|
235 |
+
<tooltip><![CDATA[Yes: When you click on a parent category name, it opens/closes sub-categories.<br />No: Parent category name is a link which loads products of that category.]]></tooltip>
|
236 |
+
<depends>
|
237 |
+
<collapsible>1</collapsible>
|
238 |
+
</depends>
|
239 |
+
</expand_by_name>
|
240 |
+
<collapsible_icon_position translate="label">
|
241 |
+
<label>Icon Position</label>
|
242 |
+
<frontend_type>select</frontend_type>
|
243 |
+
<source_model>sidenav/system_config_source_float</source_model>
|
244 |
+
<sort_order>330</sort_order>
|
245 |
+
<show_in_default>1</show_in_default>
|
246 |
+
<show_in_website>1</show_in_website>
|
247 |
+
<show_in_store>1</show_in_store>
|
248 |
+
</collapsible_icon_position>
|
249 |
+
<collapsible_icon_type translate="label">
|
250 |
+
<label>Icon Type</label>
|
251 |
+
<frontend_type>select</frontend_type>
|
252 |
+
<source_model>sidenav/system_config_source_icon</source_model>
|
253 |
+
<sort_order>340</sort_order>
|
254 |
+
<show_in_default>1</show_in_default>
|
255 |
+
<show_in_website>1</show_in_website>
|
256 |
+
<show_in_store>1</show_in_store>
|
257 |
+
</collapsible_icon_type>
|
258 |
+
|
259 |
+
<heading_thumb translate="label">
|
260 |
+
<label>Thumbnail Settings</label>
|
261 |
+
<frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
|
262 |
+
<sort_order>400</sort_order>
|
263 |
+
<show_in_default>1</show_in_default>
|
264 |
+
<show_in_website>1</show_in_website>
|
265 |
+
<show_in_store>1</show_in_store>
|
266 |
+
</heading_thumb>
|
267 |
+
<thumbnail translate="label,comment">
|
268 |
<label>Thumbnail Enabled</label>
|
269 |
<frontend_type>select</frontend_type>
|
270 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
271 |
+
<sort_order>410</sort_order>
|
272 |
<show_in_default>1</show_in_default>
|
273 |
<show_in_website>1</show_in_website>
|
274 |
<show_in_store>1</show_in_store>
|
275 |
+
<comment>Shows thumbnail of menus.</comment>
|
276 |
</thumbnail>
|
277 |
+
<thumb_position translate="label">
|
278 |
+
<label>Thumbnail Position</label>
|
279 |
+
<frontend_type>select</frontend_type>
|
280 |
+
<source_model>sidenav/system_config_source_float</source_model>
|
281 |
+
<sort_order>415</sort_order>
|
282 |
+
<show_in_default>1</show_in_default>
|
283 |
+
<show_in_website>1</show_in_website>
|
284 |
+
<show_in_store>1</show_in_store>
|
285 |
+
</thumb_position>
|
286 |
+
<thumb_size translate="label,comment">
|
287 |
+
<label>Thumbnail Size</label>
|
288 |
<frontend_type>select</frontend_type>
|
289 |
+
<source_model>sidenav/system_config_source_thumbsize</source_model>
|
290 |
+
<sort_order>420</sort_order>
|
|
|
291 |
<show_in_default>1</show_in_default>
|
292 |
<show_in_website>1</show_in_website>
|
293 |
<show_in_store>1</show_in_store>
|
294 |
+
<comment>Applies for all thumbnails.</comment>
|
|
|
|
|
|
|
295 |
</thumb_size>
|
296 |
+
<thumb_width translate="label,comment">
|
297 |
+
<label>Width</label>
|
298 |
<frontend_type>text</frontend_type>
|
299 |
+
<sort_order>430</sort_order>
|
300 |
<show_in_default>1</show_in_default>
|
301 |
<show_in_website>1</show_in_website>
|
302 |
<show_in_store>1</show_in_store>
|
303 |
+
<validate>validate-digits</validate>
|
304 |
+
<comment>A number based on 'px' (default: 14).</comment>
|
305 |
+
<depends>
|
306 |
+
<thumb_size>1</thumb_size>
|
307 |
+
<thumbnail>1</thumbnail>
|
308 |
+
</depends>
|
309 |
+
</thumb_width>
|
310 |
+
<thumb_height translate="label,comment">
|
311 |
+
<label>Height</label>
|
312 |
<frontend_type>text</frontend_type>
|
313 |
+
<sort_order>440</sort_order>
|
314 |
+
<show_in_default>1</show_in_default>
|
315 |
+
<show_in_website>1</show_in_website>
|
316 |
+
<show_in_store>1</show_in_store>
|
317 |
+
<validate>validate-digits</validate>
|
318 |
+
<comment>A number based on 'px' (default: 14).</comment>
|
319 |
+
<depends>
|
320 |
+
<thumb_size>1</thumb_size>
|
321 |
+
<thumbnail>1</thumbnail>
|
322 |
+
</depends>
|
323 |
+
</thumb_height>
|
324 |
+
|
325 |
+
<heading_home translate="label">
|
326 |
+
<label>Home Page Settings</label>
|
327 |
+
<frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
|
328 |
+
<sort_order>700</sort_order>
|
329 |
+
<show_in_default>1</show_in_default>
|
330 |
+
<show_in_website>1</show_in_website>
|
331 |
+
<show_in_store>1</show_in_store>
|
332 |
+
</heading_home>
|
333 |
+
<home_active translate="label">
|
334 |
+
<label>Show in Home Page</label>
|
335 |
+
<frontend_type>select</frontend_type>
|
336 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
337 |
+
<sort_order>710</sort_order>
|
338 |
+
<show_in_default>1</show_in_default>
|
339 |
+
<show_in_website>1</show_in_website>
|
340 |
+
<show_in_store>1</show_in_store>
|
341 |
+
</home_active>
|
342 |
+
<home_hide_top translate="label,comment">
|
343 |
+
<label>Hide Top Navigation</label>
|
344 |
+
<frontend_type>select</frontend_type>
|
345 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
346 |
+
<sort_order>720</sort_order>
|
347 |
+
<show_in_default>1</show_in_default>
|
348 |
+
<show_in_website>1</show_in_website>
|
349 |
+
<show_in_store>1</show_in_store>
|
350 |
+
<comment>Affectes on top navigation for homepage, just if base "Remove Top Navigation Menu" is "No".</comment>
|
351 |
+
</home_hide_top>
|
352 |
+
<home_hide_home translate="label">
|
353 |
+
<label>Remove Home Link in Homepage</label>
|
354 |
+
<frontend_type>select</frontend_type>
|
355 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
356 |
+
<sort_order>723</sort_order>
|
357 |
+
<show_in_default>1</show_in_default>
|
358 |
+
<show_in_website>1</show_in_website>
|
359 |
+
<show_in_store>1</show_in_store>
|
360 |
+
</home_hide_home>
|
361 |
+
<home_content translate="label,comment">
|
362 |
+
<label>Available in Homepage Content</label>
|
363 |
+
<frontend_type>select</frontend_type>
|
364 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
365 |
+
<sort_order>725</sort_order>
|
366 |
+
<show_in_default>1</show_in_default>
|
367 |
+
<show_in_website>1</show_in_website>
|
368 |
+
<show_in_store>1</show_in_store>
|
369 |
+
<comment>Yes: Adds vertical navigation into homepage content, and removes it from sidebar columns.</comment>
|
370 |
+
</home_content>
|
371 |
+
|
372 |
+
<heading_customer translate="label">
|
373 |
+
<label>Customer Account Settings</label>
|
374 |
+
<frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
|
375 |
+
<sort_order>800</sort_order>
|
376 |
+
<show_in_default>1</show_in_default>
|
377 |
+
<show_in_website>1</show_in_website>
|
378 |
+
<show_in_store>1</show_in_store>
|
379 |
+
</heading_customer>
|
380 |
+
<customer_active translate="label">
|
381 |
+
<label>Show in Customer Account</label>
|
382 |
+
<frontend_type>select</frontend_type>
|
383 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
384 |
+
<sort_order>810</sort_order>
|
385 |
+
<show_in_default>1</show_in_default>
|
386 |
+
<show_in_website>1</show_in_website>
|
387 |
+
<show_in_store>1</show_in_store>
|
388 |
+
</customer_active>
|
389 |
+
<customer_hide_top translate="label,comment">
|
390 |
+
<label>Hide Top Navigation</label>
|
391 |
+
<frontend_type>select</frontend_type>
|
392 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
393 |
+
<sort_order>820</sort_order>
|
394 |
+
<show_in_default>1</show_in_default>
|
395 |
+
<show_in_website>1</show_in_website>
|
396 |
+
<show_in_store>1</show_in_store>
|
397 |
+
<comment>Affectes on top navigation for customer account pages, just if base "Remove Top Navigation Menu" is "No".</comment>
|
398 |
+
</customer_hide_top>
|
399 |
+
<customer_column translate="label">
|
400 |
+
<label>Show In</label>
|
401 |
+
<frontend_type>select</frontend_type>
|
402 |
+
<source_model>sidenav/system_config_source_column</source_model>
|
403 |
+
<sort_order>830</sort_order>
|
404 |
+
<show_in_default>1</show_in_default>
|
405 |
+
<show_in_website>1</show_in_website>
|
406 |
+
<show_in_store>1</show_in_store>
|
407 |
+
</customer_column>
|
408 |
+
<customer_before translate="label,tooltip">
|
409 |
+
<label>Before</label>
|
410 |
+
<frontend_type>select</frontend_type>
|
411 |
+
<source_model>sidenav/system_config_source_before</source_model>
|
412 |
+
<sort_order>831</sort_order>
|
413 |
<show_in_default>1</show_in_default>
|
414 |
<show_in_website>1</show_in_website>
|
415 |
<show_in_store>1</show_in_store>
|
416 |
+
<tooltip><![CDATA[If "Before All" doesn't work, just try another block from this section to put Sidebar Navigation before all other blocks.
|
417 |
+
<br />If still it doesn't work you must edit "layout/codnitive/sidenav.xml" file.]]></tooltip>
|
418 |
+
</customer_before>
|
|
|
|
|
|
|
419 |
</fields>
|
420 |
</sidenav>
|
421 |
</groups>
|
app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/Contact.php
CHANGED
@@ -1,23 +1,27 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is bundled with this package in the file
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://
|
11 |
-
*
|
12 |
-
*
|
13 |
-
*
|
|
|
|
|
|
|
14 |
*
|
15 |
* @category Codnitive
|
16 |
* @package Codnitive_Codall
|
17 |
* @author Hassan Barza <support@codnitive.com>
|
18 |
-
* @copyright Copyright (c)
|
19 |
-
* @license http://
|
20 |
*/
|
|
|
21 |
class Codnitive_Codall_Block_System_Config_Form_Fieldset_Contact
|
22 |
extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
|
23 |
{
|
@@ -33,4 +37,4 @@ class Codnitive_Codall_Block_System_Config_Form_Fieldset_Contact
|
|
33 |
|
34 |
return $html;
|
35 |
}
|
36 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* CODNITIVE
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
+
* This source file is subject to the EULA
|
8 |
+
* that is bundled with this package in the file LICENSE_EULA.html.
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://www.codnitive.com/en/terms-of-service-softwares/
|
11 |
+
* http://www.codnitive.com/fa/terms-of-service-softwares/
|
12 |
+
*
|
13 |
+
* DISCLAIMER
|
14 |
+
*
|
15 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
16 |
+
* versions in the future.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Codall
|
20 |
* @author Hassan Barza <support@codnitive.com>
|
21 |
+
* @copyright Copyright (c) 2012 CODNITIVE Co. (http://www.codnitive.com)
|
22 |
+
* @license http://www.codnitive.com/en/terms-of-service-softwares/ End User License Agreement (EULA 1.0)
|
23 |
*/
|
24 |
+
|
25 |
class Codnitive_Codall_Block_System_Config_Form_Fieldset_Contact
|
26 |
extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
|
27 |
{
|
37 |
|
38 |
return $html;
|
39 |
}
|
40 |
+
}
|
app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/ECD.php
CHANGED
@@ -1,25 +1,30 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is bundled with this package in the file
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://
|
11 |
-
*
|
12 |
-
*
|
13 |
-
*
|
|
|
|
|
|
|
14 |
*
|
15 |
* @category Codnitive
|
16 |
* @package Codnitive_Codall
|
17 |
* @author Hassan Barza <support@codnitive.com>
|
18 |
-
* @copyright Copyright (c)
|
19 |
-
* @license http://
|
20 |
*/
|
|
|
21 |
return <<<ECD
|
22 |
|
23 |
-
<p>Please <a href='http://www.codnitive.com
|
|
|
24 |
|
25 |
-
ECD;
|
1 |
<?php
|
2 |
/**
|
3 |
+
* CODNITIVE
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
+
* This source file is subject to the EULA
|
8 |
+
* that is bundled with this package in the file LICENSE_EULA.html.
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://www.codnitive.com/en/terms-of-service-softwares/
|
11 |
+
* http://www.codnitive.com/fa/terms-of-service-softwares/
|
12 |
+
*
|
13 |
+
* DISCLAIMER
|
14 |
+
*
|
15 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
16 |
+
* versions in the future.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Codall
|
20 |
* @author Hassan Barza <support@codnitive.com>
|
21 |
+
* @copyright Copyright (c) 2012 CODNITIVE Co. (http://www.codnitive.com)
|
22 |
+
* @license http://www.codnitive.com/en/terms-of-service-softwares/ End User License Agreement (EULA 1.0)
|
23 |
*/
|
24 |
+
|
25 |
return <<<ECD
|
26 |
|
27 |
+
<p>Please visit <a href='http://www.codnitive.com' target='_blank'>our website</a>, for more extensions.</p>
|
28 |
+
<p>You can contact us via <a href='http://www.codnitive.com' target='_blank'>our website</a> or at <a href='mailto:support@codnitive.com' target='_blank'>support@codnitive.com</a>, if you have any question.</p>
|
29 |
|
30 |
+
ECD;
|
app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/Extensions/List.php
CHANGED
@@ -1,23 +1,27 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is bundled with this package in the file
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://
|
11 |
-
*
|
12 |
-
*
|
13 |
-
*
|
|
|
|
|
|
|
14 |
*
|
15 |
* @category Codnitive
|
16 |
* @package Codnitive_Codall
|
17 |
* @author Hassan Barza <support@codnitive.com>
|
18 |
-
* @copyright Copyright (c)
|
19 |
-
* @license http://
|
20 |
*/
|
|
|
21 |
class Codnitive_Codall_Block_System_Config_Form_Fieldset_Extensions_List
|
22 |
extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
|
23 |
{
|
@@ -31,16 +35,12 @@ class Codnitive_Codall_Block_System_Config_Form_Fieldset_Extensions_List
|
|
31 |
if (0 !== strpos($moduleName, 'Codnitive_')) {
|
32 |
continue;
|
33 |
}
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
if ($values->title) {
|
38 |
$moduleName = (string) $values->title;
|
39 |
}
|
40 |
-
if ($values->link) {
|
41 |
-
$link = (string) $values->link;
|
42 |
-
$moduleName = "<a href='{$link}' target='_blank' title='{$linkTitle}'>{$moduleName}</a>";
|
43 |
-
}
|
44 |
|
45 |
$field = $element->addField($moduleName, 'label', array(
|
46 |
'label' => $moduleName,
|
1 |
<?php
|
2 |
/**
|
3 |
+
* CODNITIVE
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
+
* This source file is subject to the EULA
|
8 |
+
* that is bundled with this package in the file LICENSE_EULA.html.
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://www.codnitive.com/en/terms-of-service-softwares/
|
11 |
+
* http://www.codnitive.com/fa/terms-of-service-softwares/
|
12 |
+
*
|
13 |
+
* DISCLAIMER
|
14 |
+
*
|
15 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
16 |
+
* versions in the future.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Codall
|
20 |
* @author Hassan Barza <support@codnitive.com>
|
21 |
+
* @copyright Copyright (c) 2012 CODNITIVE Co. (http://www.codnitive.com)
|
22 |
+
* @license http://www.codnitive.com/en/terms-of-service-softwares/ End User License Agreement (EULA 1.0)
|
23 |
*/
|
24 |
+
|
25 |
class Codnitive_Codall_Block_System_Config_Form_Fieldset_Extensions_List
|
26 |
extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
|
27 |
{
|
35 |
if (0 !== strpos($moduleName, 'Codnitive_')) {
|
36 |
continue;
|
37 |
}
|
38 |
+
if($moduleName == 'Codnitive_Notification'){
|
39 |
+
continue;
|
40 |
+
}
|
41 |
if ($values->title) {
|
42 |
$moduleName = (string) $values->title;
|
43 |
}
|
|
|
|
|
|
|
|
|
44 |
|
45 |
$field = $element->addField($moduleName, 'label', array(
|
46 |
'label' => $moduleName,
|
app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/PCD.php
CHANGED
@@ -1,25 +1,30 @@
|
|
1 |
-
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is bundled with this package in the file
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://
|
11 |
-
*
|
12 |
-
*
|
13 |
-
*
|
|
|
|
|
|
|
14 |
*
|
15 |
* @category Codnitive
|
16 |
* @package Codnitive_Codall
|
17 |
* @author Hassan Barza <support@codnitive.com>
|
18 |
-
* @copyright Copyright (c)
|
19 |
-
* @license http://
|
20 |
*/
|
|
|
21 |
return <<<PCD
|
22 |
|
23 |
-
|
|
|
24 |
|
25 |
PCD;
|
1 |
+
<?php
|
2 |
/**
|
3 |
+
* CODNITIVE
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
+
* This source file is subject to the EULA
|
8 |
+
* that is bundled with this package in the file LICENSE_EULA.html.
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://www.codnitive.com/en/terms-of-service-softwares/
|
11 |
+
* http://www.codnitive.com/fa/terms-of-service-softwares/
|
12 |
+
*
|
13 |
+
* DISCLAIMER
|
14 |
+
*
|
15 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
16 |
+
* versions in the future.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Codall
|
20 |
* @author Hassan Barza <support@codnitive.com>
|
21 |
+
* @copyright Copyright (c) 2012 CODNITIVE Co. (http://www.codnitive.com)
|
22 |
+
* @license http://www.codnitive.com/en/terms-of-service-softwares/ End User License Agreement (EULA 1.0)
|
23 |
*/
|
24 |
+
|
25 |
return <<<PCD
|
26 |
|
27 |
+
<p> برای اکستنشنهای بیشتر، لطفا از <a href='http://www.codnitive.com/fa/' target='_blank'> وبسایت ما</a>, بازدید نمایید.</p>
|
28 |
+
<p> در صورت داشت هر گونه سوال، شما میتوانید با ما از طریق <a href='http://www.codnitive.com/fa/contacts/' target='_blank'> وبسایتمان</a> یا <a href='mailto:support@codnitive.com' target='_blank'>support@codnitive.com</a>, تماس بگیرید.</p>
|
29 |
|
30 |
PCD;
|
app/code/local/Codnitive/Codall/Helper/Data.php
CHANGED
@@ -1,22 +1,25 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is bundled with this package in the file
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://
|
11 |
-
*
|
12 |
-
*
|
13 |
-
*
|
|
|
|
|
|
|
14 |
*
|
15 |
* @category Codnitive
|
16 |
* @package Codnitive_Codall
|
17 |
* @author Hassan Barza <support@codnitive.com>
|
18 |
-
* @copyright Copyright (c)
|
19 |
-
* @license http://
|
20 |
*/
|
21 |
|
22 |
class Codnitive_Codall_Helper_Data extends Mage_Core_Helper_Data
|
1 |
<?php
|
2 |
/**
|
3 |
+
* CODNITIVE
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
+
* This source file is subject to the EULA
|
8 |
+
* that is bundled with this package in the file LICENSE_EULA.html.
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://www.codnitive.com/en/terms-of-service-softwares/
|
11 |
+
* http://www.codnitive.com/fa/terms-of-service-softwares/
|
12 |
+
*
|
13 |
+
* DISCLAIMER
|
14 |
+
*
|
15 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
16 |
+
* versions in the future.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Codall
|
20 |
* @author Hassan Barza <support@codnitive.com>
|
21 |
+
* @copyright Copyright (c) 2012 CODNITIVE Co. (http://www.codnitive.com)
|
22 |
+
* @license http://www.codnitive.com/en/terms-of-service-softwares/ End User License Agreement (EULA 1.0)
|
23 |
*/
|
24 |
|
25 |
class Codnitive_Codall_Helper_Data extends Mage_Core_Helper_Data
|
app/code/local/Codnitive/Codall/etc/adminhtml.xml
CHANGED
@@ -1,28 +1,42 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
*
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
-
* This source file is subject to the
|
|
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://
|
|
|
11 |
*
|
12 |
* DISCLAIMER
|
13 |
*
|
14 |
-
* Do not edit or add to this file if you wish to upgrade
|
15 |
-
* versions in the future.
|
16 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Codall
|
20 |
* @author Hassan Barza <support@codnitive.com>
|
21 |
-
* @copyright Copyright (c)
|
22 |
-
* @license http://
|
23 |
*/
|
24 |
-->
|
25 |
<config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
<acl>
|
27 |
<resources>
|
28 |
<all>
|
@@ -30,6 +44,16 @@
|
|
30 |
</all>
|
31 |
<admin>
|
32 |
<children>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
<system>
|
34 |
<children>
|
35 |
<config>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* CODNITIVE
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
+
* This source file is subject to the EULA
|
9 |
+
* that is bundled with this package in the file LICENSE_EULA.html.
|
10 |
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://www.codnitive.com/en/terms-of-service-softwares/
|
12 |
+
* http://www.codnitive.com/fa/terms-of-service-softwares/
|
13 |
*
|
14 |
* DISCLAIMER
|
15 |
*
|
16 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
17 |
+
* versions in the future.
|
|
|
18 |
*
|
19 |
* @category Codnitive
|
20 |
* @package Codnitive_Codall
|
21 |
* @author Hassan Barza <support@codnitive.com>
|
22 |
+
* @copyright Copyright (c) 2012 CODNITIVE Co. (http://www.codnitive.com)
|
23 |
+
* @license http://www.codnitive.com/en/terms-of-service-softwares/ End User License Agreement (EULA 1.0)
|
24 |
*/
|
25 |
-->
|
26 |
<config>
|
27 |
+
<menu>
|
28 |
+
<codall trnslate="title" module="codall">
|
29 |
+
<title>CODNITIVE</title>
|
30 |
+
<sort_order>89</sort_order>
|
31 |
+
<children>
|
32 |
+
<information trnslate="title" module="codall">
|
33 |
+
<title>Information</title>
|
34 |
+
<sort_order>10000</sort_order>
|
35 |
+
<action>adminhtml/system_config/edit/section/codall</action>
|
36 |
+
</information>
|
37 |
+
</children>
|
38 |
+
</codall>
|
39 |
+
</menu>
|
40 |
<acl>
|
41 |
<resources>
|
42 |
<all>
|
44 |
</all>
|
45 |
<admin>
|
46 |
<children>
|
47 |
+
<codall translate="title" module="codall">
|
48 |
+
<title>CODNITIVE</title>
|
49 |
+
<sort_order>89</sort_order>
|
50 |
+
<children>
|
51 |
+
<information translate="title" module="codall">
|
52 |
+
<title>Information</title>
|
53 |
+
<sort_order>10000</sort_order>
|
54 |
+
</information>
|
55 |
+
</children>
|
56 |
+
</codall>
|
57 |
<system>
|
58 |
<children>
|
59 |
<config>
|
app/code/local/Codnitive/Codall/etc/config.xml
CHANGED
@@ -1,106 +1,84 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
*
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
-
* This source file is subject to the
|
|
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://
|
|
|
11 |
*
|
12 |
* DISCLAIMER
|
13 |
*
|
14 |
-
* Do not edit or add to this file if you wish to upgrade
|
15 |
-
* versions in the future.
|
16 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Codall
|
20 |
* @author Hassan Barza <support@codnitive.com>
|
21 |
-
* @copyright Copyright (c)
|
22 |
-
* @license http://
|
23 |
*/
|
24 |
-->
|
25 |
<config>
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
<acl>
|
84 |
-
<resources>
|
85 |
-
<all>
|
86 |
-
<title>Allow Everything</title>
|
87 |
-
</all>
|
88 |
-
<admin>
|
89 |
-
<children>
|
90 |
-
<system>
|
91 |
-
<children>
|
92 |
-
<config>
|
93 |
-
<children>
|
94 |
-
<codall>
|
95 |
-
<title>CODNITIVE Information</title>
|
96 |
-
</codall>
|
97 |
-
</children>
|
98 |
-
</config>
|
99 |
-
</children>
|
100 |
-
</system>
|
101 |
-
</children>
|
102 |
-
</admin>
|
103 |
-
</resources>
|
104 |
-
</acl>
|
105 |
-
</adminhtml>
|
106 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* CODNITIVE
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
+
* This source file is subject to the EULA
|
9 |
+
* that is bundled with this package in the file LICENSE_EULA.html.
|
10 |
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://www.codnitive.com/en/terms-of-service-softwares/
|
12 |
+
* http://www.codnitive.com/fa/terms-of-service-softwares/
|
13 |
*
|
14 |
* DISCLAIMER
|
15 |
*
|
16 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
17 |
+
* versions in the future.
|
|
|
18 |
*
|
19 |
* @category Codnitive
|
20 |
* @package Codnitive_Codall
|
21 |
* @author Hassan Barza <support@codnitive.com>
|
22 |
+
* @copyright Copyright (c) 2012 CODNITIVE Co. (http://www.codnitive.com)
|
23 |
+
* @license http://www.codnitive.com/en/terms-of-service-softwares/ End User License Agreement (EULA 1.0)
|
24 |
*/
|
25 |
-->
|
26 |
<config>
|
27 |
+
<modules>
|
28 |
+
<Codnitive_Codall>
|
29 |
+
<version>1.1.16</version>
|
30 |
+
<title>CODNITIVE Information</title>
|
31 |
+
<link><![CDATA[http://www.codnitive.com/]]></link>
|
32 |
+
</Codnitive_Codall>
|
33 |
+
</modules>
|
34 |
|
35 |
+
<global>
|
36 |
+
<blocks>
|
37 |
+
<codall>
|
38 |
+
<class>Codnitive_Codall_Block</class>
|
39 |
+
</codall>
|
40 |
+
</blocks>
|
41 |
+
<helpers>
|
42 |
+
<codall>
|
43 |
+
<class>Codnitive_Codall_Helper</class>
|
44 |
+
</codall>
|
45 |
+
</helpers>
|
46 |
+
<models>
|
47 |
+
<codall>
|
48 |
+
<class>Codnitive_Codall_Model</class>
|
49 |
+
</codall>
|
50 |
+
</models>
|
51 |
+
<resources>
|
52 |
+
<codall_setup>
|
53 |
+
<setup>
|
54 |
+
<module>Codnitive_Codall</module>
|
55 |
+
</setup>
|
56 |
+
<connection>
|
57 |
+
<use>core_setup</use>
|
58 |
+
</connection>
|
59 |
+
</codall_setup>
|
60 |
+
<codall_write>
|
61 |
+
<connection>
|
62 |
+
<use>core_write</use>
|
63 |
+
</connection>
|
64 |
+
</codall_write>
|
65 |
+
<codall_read>
|
66 |
+
<connection>
|
67 |
+
<use>core_read</use>
|
68 |
+
</connection>
|
69 |
+
</codall_read>
|
70 |
+
</resources>
|
71 |
+
</global>
|
72 |
|
73 |
+
<adminhtml>
|
74 |
+
<translate>
|
75 |
+
<modules>
|
76 |
+
<Codnitive_Codall>
|
77 |
+
<files>
|
78 |
+
<default>Codnitive_Codall.csv</default>
|
79 |
+
</files>
|
80 |
+
</Codnitive_Codall>
|
81 |
+
</modules>
|
82 |
+
</translate>
|
83 |
+
</adminhtml>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
</config>
|
app/code/local/Codnitive/Codall/etc/system.xml
CHANGED
@@ -1,29 +1,30 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
*
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
-
* This source file is subject to the
|
|
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://
|
|
|
11 |
*
|
12 |
* DISCLAIMER
|
13 |
*
|
14 |
-
* Do not edit or add to this file if you wish to upgrade
|
15 |
-
* versions in the future.
|
16 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Codall
|
20 |
* @author Hassan Barza <support@codnitive.com>
|
21 |
-
* @copyright Copyright (c)
|
22 |
-
* @license http://
|
23 |
*/
|
24 |
-->
|
25 |
<config>
|
26 |
-
|
27 |
<codall translate="label" module="codall">
|
28 |
<label>CODNITIVE</label>
|
29 |
<sort_order>250</sort_order>
|
@@ -31,14 +32,14 @@
|
|
31 |
</tabs>
|
32 |
|
33 |
<sections>
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
<groups>
|
43 |
<contact translate="label comment" module="codall">
|
44 |
<label>Contact</label>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* CODNITIVE
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
+
* This source file is subject to the EULA
|
9 |
+
* that is bundled with this package in the file LICENSE_EULA.html.
|
10 |
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://www.codnitive.com/en/terms-of-service-softwares/
|
12 |
+
* http://www.codnitive.com/fa/terms-of-service-softwares/
|
13 |
*
|
14 |
* DISCLAIMER
|
15 |
*
|
16 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
17 |
+
* versions in the future.
|
|
|
18 |
*
|
19 |
* @category Codnitive
|
20 |
* @package Codnitive_Codall
|
21 |
* @author Hassan Barza <support@codnitive.com>
|
22 |
+
* @copyright Copyright (c) 2012 CODNITIVE Co. (http://www.codnitive.com)
|
23 |
+
* @license http://www.codnitive.com/en/terms-of-service-softwares/ End User License Agreement (EULA 1.0)
|
24 |
*/
|
25 |
-->
|
26 |
<config>
|
27 |
+
<tabs>
|
28 |
<codall translate="label" module="codall">
|
29 |
<label>CODNITIVE</label>
|
30 |
<sort_order>250</sort_order>
|
32 |
</tabs>
|
33 |
|
34 |
<sections>
|
35 |
+
<codall translate="label" module="codall">
|
36 |
+
<label>Information</label>
|
37 |
+
<tab>codall</tab>
|
38 |
+
<frontend_type>text</frontend_type>
|
39 |
+
<sort_order>99999</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 |
<groups>
|
44 |
<contact translate="label comment" module="codall">
|
45 |
<label>Contact</label>
|
app/design/frontend/base/default/layout/codnitive/sidenav.xml
ADDED
@@ -0,0 +1,372 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* CODNITIVE
|
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 |
+
* DISCLAIMER
|
14 |
+
*
|
15 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
16 |
+
* versions in the future.
|
17 |
+
*
|
18 |
+
* @category Codnitive
|
19 |
+
* @package Codnitive_Sidenav
|
20 |
+
* @author Hassan Barza <support@codnitive.com>
|
21 |
+
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
22 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
23 |
+
*/
|
24 |
+
|
25 |
+
Supported layout update handles (action):
|
26 |
+
- default
|
27 |
+
- cms_index_index
|
28 |
+
- cms_index_defaultindex
|
29 |
+
- customer_account
|
30 |
+
- catalog_category_default
|
31 |
+
- catalog_category_layered
|
32 |
+
- catalogsearch_result_index
|
33 |
+
|
34 |
+
-->
|
35 |
+
<layout version="1.2.0">
|
36 |
+
|
37 |
+
<!--
|
38 |
+
Default layout
|
39 |
+
-->
|
40 |
+
<default>
|
41 |
+
<reference name="head">
|
42 |
+
<action method="addCss" ifconfig="codnitivecatalog/sidenav/active">
|
43 |
+
<stylesheet>css/codnitive/sidenav.css</stylesheet>
|
44 |
+
</action>
|
45 |
+
<action method="removeItem" modules="codnitivecatalog/sidenav/;design/theme/" options="active;skin" conditions="1;default" operation="(0.1)">
|
46 |
+
<type>skin_css</type>
|
47 |
+
<name>css/codnitive/sidenav.css</name>
|
48 |
+
</action>
|
49 |
+
<action method="addCss" modules="codnitivecatalog/sidenav/;design/theme/" options="active;skin" conditions="1;default" operation="(0.1)">
|
50 |
+
<stylesheet>css/codnitive/sidenav_pd.css</stylesheet>
|
51 |
+
</action>
|
52 |
+
</reference>
|
53 |
+
|
54 |
+
<!-- remove top navigation -->
|
55 |
+
<reference name="top.menu">
|
56 |
+
<action method="unsetChild" modules="codnitivecatalog/sidenav/" options="active,remove_top_nav" conditions="1,1" operation="0.1">
|
57 |
+
<name>catalog.topnav</name>
|
58 |
+
</action>
|
59 |
+
</reference>
|
60 |
+
|
61 |
+
<reference name="left">
|
62 |
+
<block type="sidenav/navigation" name="codnitive.sidenav.left" as="codnitiveSidenavLeft" before="-">
|
63 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,column,column,before" conditions="1,left_col,both_col,before_all" operation="((0.1)+(0.2)).3">
|
64 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
65 |
+
</action>
|
66 |
+
</block>
|
67 |
+
<block type="sidenav/navigation" name="codnitive.sidenav.left.cart" as="codnitiveSidenavLeft" before="cart_sidebar">
|
68 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,column,column,before" conditions="1,left_col,both_col,cart_sidebar" operation="((0.1)+(0.2)).3">
|
69 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
70 |
+
</action>
|
71 |
+
</block>
|
72 |
+
<block type="sidenav/navigation" name="codnitive.sidenav.left.layered" as="codnitiveSidenavLeft" before="catalog.leftnav">
|
73 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,column,column,before" conditions="1,left_col,both_col,layered_nav" operation="((0.1)+(0.2)).3">
|
74 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
75 |
+
</action>
|
76 |
+
</block>
|
77 |
+
<block type="sidenav/navigation" name="codnitive.sidenav.left.links" as="codnitiveSidenavLeft" before="customer_account_navigation">
|
78 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,column,column,before" conditions="1,left_col,both_col,customer_nav" operation="((0.1)+(0.2)).3">
|
79 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
80 |
+
</action>
|
81 |
+
</block>
|
82 |
+
</reference>
|
83 |
+
<reference name="right">
|
84 |
+
<block type="sidenav/navigation" name="codnitive.sidenav.right" as="codnitiveSidenavRight" before="-">
|
85 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,column,column,before" conditions="1,right_col,both_col,before_all" operation="((0.1)+(0.2)).3">
|
86 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
87 |
+
</action>
|
88 |
+
</block>
|
89 |
+
<block type="sidenav/navigation" name="codnitive.sidenav.right.cart" as="codnitiveSidenavRight" before="cart_sidebar">
|
90 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,column,column,before" conditions="1,right_col,both_col,cart_sidebar" operation="((0.1)+(0.2)).3">
|
91 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
92 |
+
</action>
|
93 |
+
</block>
|
94 |
+
<block type="sidenav/navigation" name="codnitive.sidenav.right.layered" as="codnitiveSidenavRight" before="catalog.leftnav">
|
95 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,column,column,before" conditions="1,right_col,both_col,layered_nav" operation="((0.1)+(0.2)).3">
|
96 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
97 |
+
</action>
|
98 |
+
</block>
|
99 |
+
<block type="sidenav/navigation" name="codnitive.sidenav.right.links" as="codnitiveSidenavRight" before="customer_account_navigation">
|
100 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,column,column,before" conditions="1,right_col,both_col,customer_nav" operation="((0.1)+(0.2)).3">
|
101 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
102 |
+
</action>
|
103 |
+
</block>
|
104 |
+
</reference>
|
105 |
+
</default>
|
106 |
+
|
107 |
+
<!--
|
108 |
+
Home Page
|
109 |
+
-->
|
110 |
+
<cms_index_index>
|
111 |
+
<reference name="header">
|
112 |
+
<block type="core/text_list" name="top.menu" as="topMenu" translate="label">
|
113 |
+
<label>Navigation Bar</label>
|
114 |
+
<block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
|
115 |
+
</block>
|
116 |
+
<reference name="top.menu">
|
117 |
+
<action method="unsetChild" modules="codnitivecatalog/sidenav/" options="active,home_hide_top,remove_top_nav" conditions="1,1,1" operation="0.(1+2)">
|
118 |
+
<name>catalog.topnav</name>
|
119 |
+
</action>
|
120 |
+
</reference>
|
121 |
+
</reference>
|
122 |
+
|
123 |
+
<reference name="content">
|
124 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.content.top" as="codnitiveSidenavContent" before="-">
|
125 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,home_content" conditions="1,1,1" operation="0.1.2">
|
126 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
127 |
+
</action>
|
128 |
+
</block>
|
129 |
+
</reference>
|
130 |
+
|
131 |
+
<reference name="left">
|
132 |
+
<remove name="codnitive.sidenav.left"/>
|
133 |
+
<remove name="codnitive.sidenav.left.cart"/>
|
134 |
+
<remove name="codnitive.sidenav.left.layered"/>
|
135 |
+
<remove name="codnitive.sidenav.left.links"/>
|
136 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.left" as="codnitiveSidenavLeft" before="-">
|
137 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,left_col,both_col,before_all,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
138 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
139 |
+
</action>
|
140 |
+
</block>
|
141 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.left.cart" as="codnitiveSidenavLeft" before="cart_sidebar">
|
142 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,left_col,both_col,cart_sidebar,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
143 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
144 |
+
</action>
|
145 |
+
</block>
|
146 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.left.layered" as="codnitiveSidenavLeft" before="catalog.leftnav">
|
147 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,left_col,both_col,layered_nav,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
148 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
149 |
+
</action>
|
150 |
+
</block>
|
151 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.left.links" as="codnitiveSidenavLeft" before="customer_account_navigation">
|
152 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,left_col,both_col,customer_nav,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
153 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
154 |
+
</action>
|
155 |
+
</block>
|
156 |
+
</reference>
|
157 |
+
<reference name="right">
|
158 |
+
<remove name="codnitive.sidenav.right"/>
|
159 |
+
<remove name="codnitive.sidenav.right.cart"/>
|
160 |
+
<remove name="codnitive.sidenav.right.layered"/>
|
161 |
+
<remove name="codnitive.sidenav.right.links"/>
|
162 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.right" as="codnitiveSidenavRight" before="-">
|
163 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,right_col,both_col,before_all,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
164 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
165 |
+
</action>
|
166 |
+
</block>
|
167 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.right.cart" as="codnitiveSidenavRight" before="cart_sidebar">
|
168 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,right_col,both_col,cart_sidebar,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
169 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
170 |
+
</action>
|
171 |
+
</block>
|
172 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.right.layered" as="codnitiveSidenavRight" before="catalog.leftnav">
|
173 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,right_col,both_col,layered_nav,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
174 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
175 |
+
</action>
|
176 |
+
</block>
|
177 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.right.links" as="codnitiveSidenavRight" before="customer_account_navigation">
|
178 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,right_col,both_col,customer_nav,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
179 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
180 |
+
</action>
|
181 |
+
</block>
|
182 |
+
</reference>
|
183 |
+
</cms_index_index>
|
184 |
+
|
185 |
+
<!--
|
186 |
+
Home Page
|
187 |
+
-->
|
188 |
+
<cms_index_defaultindex>
|
189 |
+
<reference name="header">
|
190 |
+
<block type="core/text_list" name="top.menu" as="topMenu" translate="label">
|
191 |
+
<label>Navigation Bar</label>
|
192 |
+
<block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
|
193 |
+
</block>
|
194 |
+
<reference name="top.menu">
|
195 |
+
<action method="unsetChild" modules="codnitivecatalog/sidenav/" options="active,home_hide_top,remove_top_nav" conditions="1,1,1" operation="0.(1+2)">
|
196 |
+
<name>catalog.topnav</name>
|
197 |
+
</action>
|
198 |
+
</reference>
|
199 |
+
</reference>
|
200 |
+
|
201 |
+
<reference name="content">
|
202 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.content.top" as="codnitiveSidenavContent" before="-">
|
203 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,home_content" conditions="1,1,1" operation="0.1.2">
|
204 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
205 |
+
</action>
|
206 |
+
</block>
|
207 |
+
</reference>
|
208 |
+
|
209 |
+
<reference name="left">
|
210 |
+
<remove name="codnitive.sidenav.left"/>
|
211 |
+
<remove name="codnitive.sidenav.left.cart"/>
|
212 |
+
<remove name="codnitive.sidenav.left.layered"/>
|
213 |
+
<remove name="codnitive.sidenav.left.links"/>
|
214 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.left" as="codnitiveSidenavLeft" before="-">
|
215 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,left_col,both_col,before_all,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
216 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
217 |
+
</action>
|
218 |
+
</block>
|
219 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.left.cart" as="codnitiveSidenavLeft" before="cart_sidebar">
|
220 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,left_col,both_col,cart_sidebar,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
221 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
222 |
+
</action>
|
223 |
+
</block>
|
224 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.left.layered" as="codnitiveSidenavLeft" before="catalog.leftnav">
|
225 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,left_col,both_col,layered_nav,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
226 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
227 |
+
</action>
|
228 |
+
</block>
|
229 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.left.links" as="codnitiveSidenavLeft" before="customer_account_navigation">
|
230 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,left_col,both_col,customer_nav,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
231 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
232 |
+
</action>
|
233 |
+
</block>
|
234 |
+
</reference>
|
235 |
+
<reference name="right">
|
236 |
+
<remove name="codnitive.sidenav.right"/>
|
237 |
+
<remove name="codnitive.sidenav.right.cart"/>
|
238 |
+
<remove name="codnitive.sidenav.right.layered"/>
|
239 |
+
<remove name="codnitive.sidenav.right.links"/>
|
240 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.right" as="codnitiveSidenavRight" before="-">
|
241 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,right_col,both_col,before_all,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
242 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
243 |
+
</action>
|
244 |
+
</block>
|
245 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.right.cart" as="codnitiveSidenavRight" before="cart_sidebar">
|
246 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,right_col,both_col,cart_sidebar,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
247 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
248 |
+
</action>
|
249 |
+
</block>
|
250 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.right.layered" as="codnitiveSidenavRight" before="catalog.leftnav">
|
251 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,right_col,both_col,layered_nav,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
252 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
253 |
+
</action>
|
254 |
+
</block>
|
255 |
+
<block type="sidenav/navigation" name="codnitive.home.sidenav.right.links" as="codnitiveSidenavRight" before="customer_account_navigation">
|
256 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,home_active,column,column,before,home_content" conditions="1,1,right_col,both_col,customer_nav,0" operation="(((0.1.2)+(0.1.3)).4).5">
|
257 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
258 |
+
</action>
|
259 |
+
</block>
|
260 |
+
</reference>
|
261 |
+
</cms_index_defaultindex>
|
262 |
+
|
263 |
+
<!--
|
264 |
+
Customer account
|
265 |
+
-->
|
266 |
+
<customer_account translate="label">
|
267 |
+
<reference name="header">
|
268 |
+
<reference name="top.menu">
|
269 |
+
<action method="unsetChild" modules="codnitivecatalog/sidenav/" options="active,customer_hide_top" conditions="1,1" operation="0.1">
|
270 |
+
<name>catalog.topnav</name>
|
271 |
+
</action>
|
272 |
+
</reference>
|
273 |
+
</reference>
|
274 |
+
|
275 |
+
<reference name="left">
|
276 |
+
<remove name="codnitive.sidenav.left"/>
|
277 |
+
<remove name="codnitive.sidenav.left.cart"/>
|
278 |
+
<remove name="codnitive.sidenav.left.layered"/>
|
279 |
+
<remove name="codnitive.sidenav.left.links"/>
|
280 |
+
<block type="sidenav/navigation" name="codnitive.customer.sidenav.left" as="codnitiveSidenavLeft" before="-">
|
281 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,customer_active,customer_column,customer_column,customer_before" conditions="1,1,left_col,both_col,before_all" operation="((0.1.2)+(0.1.3)).4">
|
282 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
283 |
+
</action>
|
284 |
+
</block>
|
285 |
+
<block type="sidenav/navigation" name="codnitive.customer.sidenav.left.cart" as="codnitiveSidenavLeft" before="cart_sidebar">
|
286 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,customer_active,customer_column,customer_column,customer_before" conditions="1,1,left_col,both_col,cart_sidebar" operation="((0.1.2)+(0.1.3)).4">
|
287 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
288 |
+
</action>
|
289 |
+
</block>
|
290 |
+
<block type="sidenav/navigation" name="codnitive.customer.sidenav.left.layered" as="codnitiveSidenavLeft" before="catalog.leftnav">
|
291 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,customer_active,customer_column,customer_column,customer_before" conditions="1,1,left_col,both_col,layered_nav" operation="((0.1.2)+(0.1.3)).4">
|
292 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
293 |
+
</action>
|
294 |
+
</block>
|
295 |
+
<block type="sidenav/navigation" name="codnitive.customer.sidenav.left.links" as="codnitiveSidenavLeft" before="customer_account_navigation">
|
296 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,customer_active,customer_column,customer_column,customer_before" conditions="1,1,left_col,both_col,customer_nav" operation="((0.1.2)+(0.1.3)).4">
|
297 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
298 |
+
</action>
|
299 |
+
</block>
|
300 |
+
<block type="sidenav/navigation" name="codnitive.customer.sidenav.left.links.after" as="codnitiveSidenavLeft" after="customer_account_navigation">
|
301 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,customer_active,customer_column,customer_column,customer_before" conditions="1,1,left_col,both_col,customer_nav_after" operation="((0.1.2)+(0.1.3)).4">
|
302 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
303 |
+
</action>
|
304 |
+
</block>
|
305 |
+
</reference>
|
306 |
+
<reference name="right">
|
307 |
+
<remove name="codnitive.sidenav.right"/>
|
308 |
+
<remove name="codnitive.sidenav.right.cart"/>
|
309 |
+
<remove name="codnitive.sidenav.right.layered"/>
|
310 |
+
<remove name="codnitive.sidenav.right.links"/>
|
311 |
+
<block type="sidenav/navigation" name="codnitive.customer.sidenav.right" as="codnitiveSidenavRight" before="-">
|
312 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,customer_active,customer_column,customer_column,customer_before" conditions="1,1,right_col,both_col,before_all" operation="((0.1.2)+(0.1.3)).4">
|
313 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
314 |
+
</action>
|
315 |
+
</block>
|
316 |
+
<block type="sidenav/navigation" name="codnitive.customer.sidenav.right.cart" as="codnitiveSidenavRight" before="cart_sidebar">
|
317 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,customer_active,customer_column,customer_column,customer_before" conditions="1,1,right_col,both_col,cart_sidebar" operation="((0.1.2)+(0.1.3)).4">
|
318 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
319 |
+
</action>
|
320 |
+
</block>
|
321 |
+
<block type="sidenav/navigation" name="codnitive.customer.sidenav.right.layered" as="codnitiveSidenavRight" before="catalog.leftnav">
|
322 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,customer_active,customer_column,customer_column,customer_before" conditions="1,1,right_col,both_col,layered_nav" operation="((0.1.2)+(0.1.3)).4">
|
323 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
324 |
+
</action>
|
325 |
+
</block>
|
326 |
+
<block type="sidenav/navigation" name="codnitive.customer.sidenav.right.links" as="codnitiveSidenavRight" before="customer_account_navigation">
|
327 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,customer_active,customer_column,customer_column,customer_before" conditions="1,1,right_col,both_col,customer_nav" operation="((0.1.2)+(0.1.3)).4">
|
328 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
329 |
+
</action>
|
330 |
+
</block>
|
331 |
+
<block type="sidenav/navigation" name="codnitive.customer.sidenav.right.links.after" as="codnitiveSidenavRight" after="customer_account_navigation">
|
332 |
+
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,customer_active,customer_column,customer_column,customer_before" conditions="1,1,right_col,both_col,customer_nav_after" operation="((0.1.2)+(0.1.3)).4">
|
333 |
+
<template>codnitive/sidenav/navigation.phtml</template>
|
334 |
+
</action>
|
335 |
+
</block>
|
336 |
+
</reference>
|
337 |
+
</customer_account>
|
338 |
+
|
339 |
+
<!--
|
340 |
+
Catalog view categories (non-anchor)
|
341 |
+
-->
|
342 |
+
<catalog_category_default>
|
343 |
+
<reference name="left">
|
344 |
+
<action method="unsetChild" modules="codnitivecatalog/sidenav/" options="active,remove_layered_nav" conditions="1,1" operation="0.1">
|
345 |
+
<name>catalog.leftnav</name>
|
346 |
+
</action>
|
347 |
+
</reference>
|
348 |
+
</catalog_category_default>
|
349 |
+
|
350 |
+
<!--
|
351 |
+
Catalog view categories (anchor)
|
352 |
+
-->
|
353 |
+
<catalog_category_layered>
|
354 |
+
<reference name="catalog.leftnav">
|
355 |
+
<action method="unsetChild" modules="codnitivecatalog/sidenav/" options="active,remove_layered_nav" conditions="1,1" operation="0.1">
|
356 |
+
<name>category_filter</name>
|
357 |
+
</action>
|
358 |
+
</reference>
|
359 |
+
</catalog_category_layered>
|
360 |
+
|
361 |
+
<!--
|
362 |
+
Catalog quick search result page
|
363 |
+
-->
|
364 |
+
<catalogsearch_result_index>
|
365 |
+
<reference name="catalogsearch.leftnav">
|
366 |
+
<action method="unsetChild" modules="codnitivecatalog/sidenav/" options="active,remove_layered_nav" conditions="1,1" operation="0.1">
|
367 |
+
<name>category_filter</name>
|
368 |
+
</action>
|
369 |
+
</reference>
|
370 |
+
</catalogsearch_result_index>
|
371 |
+
|
372 |
+
</layout>
|
app/design/frontend/base/default/layout/sidenav.xml
DELETED
@@ -1,90 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* Magento
|
5 |
-
*
|
6 |
-
* NOTICE OF LICENSE
|
7 |
-
*
|
8 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
-
* It is also available through the world-wide-web at this URL:
|
11 |
-
* http://opensource.org/licenses/afl-3.0.php
|
12 |
-
* If you did not receive a copy of the license and are unable to
|
13 |
-
* obtain it through the world-wide-web, please send an email
|
14 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
-
*
|
16 |
-
* DISCLAIMER
|
17 |
-
*
|
18 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
-
* versions in the future. If you wish to customize Magento for your
|
20 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
-
*
|
22 |
-
* @category Codnitive
|
23 |
-
* @package Codnitive_Sidenav
|
24 |
-
* @author Hassan Barza <support@codnitive.com>
|
25 |
-
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
26 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
27 |
-
*/
|
28 |
-
|
29 |
-
Supported layout update handles (action):
|
30 |
-
- catalog_navigation
|
31 |
-
|
32 |
-
-->
|
33 |
-
<layout version="1.2.0">
|
34 |
-
|
35 |
-
<!--
|
36 |
-
Default layout
|
37 |
-
-->
|
38 |
-
<default>
|
39 |
-
<reference name="head">
|
40 |
-
<action method="addCss" ifconfig="codnitivecatalog/sidenav/active"><stylesheet>css/sidenav.css</stylesheet></action>
|
41 |
-
<action method="addCss" modules="codnitivecatalog/sidenav/" options="active,collapsible" conditions="1,1" operation="0.1"><stylesheet>css/sidenavcollapse.css</stylesheet></action>
|
42 |
-
<action method="addItem" modules="codnitivecatalog/sidenav/" options="active,collapsible" conditions="1,1" operation="0.1"><type>skin_js</type><name>js/sidenavcollapse.js</name></action>
|
43 |
-
</reference>
|
44 |
-
<reference name="top.menu">
|
45 |
-
<action method="unsetChild" modules="codnitivecatalog/sidenav/" options="active,remove_top_nav" conditions="1,1" operation="0.1"><name>catalog.topnav</name></action>
|
46 |
-
</reference>
|
47 |
-
|
48 |
-
<!-- Codnitive_Sidenav -->
|
49 |
-
<reference name="left">
|
50 |
-
<block type="sidenav/navigation" name="sidenav.left" before="-">
|
51 |
-
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,column,column" conditions="1,left_col,both_col" operation="(0.1)+(0.2)">
|
52 |
-
<template>codnitive/sidenav/navigation.phtml</template>
|
53 |
-
</action>
|
54 |
-
</block>
|
55 |
-
</reference>
|
56 |
-
<reference name="right">
|
57 |
-
<block type="sidenav/navigation" name="sidenav.right" before="-">
|
58 |
-
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,column,column" conditions="1,right_col,both_col" operation="(0.1)+(0.2)">
|
59 |
-
<template>codnitive/sidenav/navigation.phtml</template>
|
60 |
-
</action>
|
61 |
-
</block>
|
62 |
-
</reference>
|
63 |
-
</default>
|
64 |
-
|
65 |
-
<!--
|
66 |
-
Customer account
|
67 |
-
-->
|
68 |
-
<customer_account translate="label">
|
69 |
-
<reference name="left">
|
70 |
-
<block type="sidenav/navigation" name="sidenav.customer.account" after="customer_account_navigation">
|
71 |
-
<action method="setTemplate" modules="codnitivecatalog/sidenav/" options="active,column" conditions="1,right_col" operation="0.1">
|
72 |
-
<template>codnitive/sidenav/navigation.phtml</template>
|
73 |
-
</action>
|
74 |
-
</block>
|
75 |
-
</reference>
|
76 |
-
</customer_account>
|
77 |
-
|
78 |
-
<!--
|
79 |
-
Catalog view
|
80 |
-
-->
|
81 |
-
<catalog_category_layered>
|
82 |
-
<!--<reference name="left">
|
83 |
-
<action method="unsetChild" ifconfig="codnitivecatalog/sidenav/active"><name>catalog.leftnav</name></action>
|
84 |
-
</reference>-->
|
85 |
-
<reference name="catalog.leftnav">
|
86 |
-
<action method="unsetChild" modules="codnitivecatalog/sidenav/" options="active,remove_layered_nav" conditions="1,1" operation="0.1"><name>category_filter</name></action>
|
87 |
-
</reference>
|
88 |
-
</catalog_category_layered>
|
89 |
-
|
90 |
-
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/codnitive/sidenav/navigation.phtml
CHANGED
@@ -1,22 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is bundled with this package in the file
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/
|
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
|
18 |
-
* versions in the future.
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
*
|
21 |
* @category Codnitive
|
22 |
* @package Codnitive_Sidenav
|
@@ -26,21 +22,65 @@
|
|
26 |
*/
|
27 |
|
28 |
/**
|
29 |
-
* Sidebar menu
|
30 |
*
|
31 |
* @see Codnitive_sidenav_Block_Navigation
|
32 |
*/
|
33 |
?>
|
34 |
|
35 |
<?php if ($categories = $this->getCategoriesNavMenu()): ?>
|
36 |
-
<div id="sidebar-nav" class="sidebar-nav-left">
|
37 |
<div class="block-title">
|
38 |
-
<strong><span><?php echo
|
39 |
</div>
|
40 |
-
|
41 |
<ul id="sidebar-nav-menu">
|
|
|
|
|
|
|
|
|
|
|
42 |
<?php echo $categories; ?>
|
43 |
-
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
</div>
|
46 |
<?php endif ?>
|
1 |
<?php
|
2 |
/**
|
3 |
+
* CODNITIVE
|
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 |
* DISCLAIMER
|
13 |
*
|
14 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
15 |
+
* versions in the future.
|
|
|
16 |
*
|
17 |
* @category Codnitive
|
18 |
* @package Codnitive_Sidenav
|
22 |
*/
|
23 |
|
24 |
/**
|
25 |
+
* Sidebar menu
|
26 |
*
|
27 |
* @see Codnitive_sidenav_Block_Navigation
|
28 |
*/
|
29 |
?>
|
30 |
|
31 |
<?php if ($categories = $this->getCategoriesNavMenu()): ?>
|
32 |
+
<div id="sidebar-nav" class="block sidebar-nav-left <?php echo $this->getBlockAlias() ?>">
|
33 |
<div class="block-title">
|
34 |
+
<strong><span><?php echo $this->__($this->getTitle()) ?></span></strong>
|
35 |
</div>
|
36 |
+
<div class="block-content">
|
37 |
<ul id="sidebar-nav-menu">
|
38 |
+
<?php if ($this->showHome()): ?>
|
39 |
+
<li class="<?php echo $this->getHomeClasses() ?>">
|
40 |
+
<a href="<?php echo $this->getBaseUrl() ?>"><span class="category_name">Home</span></a>
|
41 |
+
</li>
|
42 |
+
<?php endif; ?>
|
43 |
<?php echo $categories; ?>
|
44 |
+
</ul>
|
45 |
+
<?php if ($this->showSupportLogo()): ?>
|
46 |
+
<div class="clearer support-logo-wrapper"></div>
|
47 |
+
<a href="http://www.codnitive.com/" target="_blank" class="support_logo">
|
48 |
+
<?php if ($this->showAsImage()): ?>
|
49 |
+
<img src="<?php echo $this->getSkinUrl('images/codnitive/sidenav/codnitive_logo.png'); ?>" alt="CODNITIVE®" title="Sidebar Navigation by CODNITIVE"/>
|
50 |
+
<?php else: ?>
|
51 |
+
<span>CODNITIVE®</span>
|
52 |
+
<?php endif; ?>
|
53 |
+
</a>
|
54 |
+
<?php endif; ?>
|
55 |
</div>
|
56 |
+
<?php if ($this->getConfig()->isCollapsible()): ?>
|
57 |
+
<script type="text/javascript" language="javascript">
|
58 |
+
//<![CDATA[
|
59 |
+
|
60 |
+
Codnitive = {
|
61 |
+
expandMenu: function(parent)
|
62 |
+
{
|
63 |
+
var mode = parent.getElementsByTagName("ul")[0].getAttribute("expanded");
|
64 |
+
(mode == 1) ? Codnitive.collapse(parent) : Codnitive.expand(parent);
|
65 |
+
},
|
66 |
+
|
67 |
+
expand: function(parent)
|
68 |
+
{
|
69 |
+
parent.getElementsByTagName("ul")[0].style.display = "block";
|
70 |
+
parent.getElementsByTagName("span")[0].style.backgroundPosition = "right center";
|
71 |
+
parent.getElementsByTagName("ul")[0].setAttribute("expanded", "1");
|
72 |
+
},
|
73 |
+
|
74 |
+
collapse: function(parent)
|
75 |
+
{
|
76 |
+
parent.getElementsByTagName("ul")[0].style.display = "none";
|
77 |
+
parent.getElementsByTagName("span")[0].style.backgroundPosition = "left center";
|
78 |
+
parent.getElementsByTagName("ul")[0].setAttribute("expanded", "0");
|
79 |
+
}
|
80 |
+
};
|
81 |
+
|
82 |
+
//]]>
|
83 |
+
</script>
|
84 |
+
<?php endif; ?>
|
85 |
</div>
|
86 |
<?php endif ?>
|
app/etc/modules/Codnitive_Codall.xml
CHANGED
@@ -1,25 +1,26 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
*
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
-
* This source file is subject to the
|
|
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://
|
|
|
11 |
*
|
12 |
* DISCLAIMER
|
13 |
*
|
14 |
-
* Do not edit or add to this file if you wish to upgrade
|
15 |
-
* versions in the future.
|
16 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Codall
|
20 |
* @author Hassan Barza <support@codnitive.com>
|
21 |
-
* @copyright Copyright (c)
|
22 |
-
* @license http://
|
23 |
*/
|
24 |
-->
|
25 |
<config>
|
@@ -27,7 +28,6 @@
|
|
27 |
<Codnitive_Codall>
|
28 |
<active>true</active>
|
29 |
<codePool>local</codePool>
|
30 |
-
<version>1.0.15</version>
|
31 |
</Codnitive_Codall>
|
32 |
</modules>
|
33 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* CODNITIVE
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
+
* This source file is subject to the EULA
|
9 |
+
* that is bundled with this package in the file LICENSE_EULA.html.
|
10 |
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://www.codnitive.com/en/terms-of-service-softwares/
|
12 |
+
* http://www.codnitive.com/fa/terms-of-service-softwares/
|
13 |
*
|
14 |
* DISCLAIMER
|
15 |
*
|
16 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
17 |
+
* versions in the future.
|
|
|
18 |
*
|
19 |
* @category Codnitive
|
20 |
* @package Codnitive_Codall
|
21 |
* @author Hassan Barza <support@codnitive.com>
|
22 |
+
* @copyright Copyright (c) 2012 CODNITIVE Co. (http://www.codnitive.com)
|
23 |
+
* @license http://www.codnitive.com/en/terms-of-service-softwares/ End User License Agreement (EULA 1.0)
|
24 |
*/
|
25 |
-->
|
26 |
<config>
|
28 |
<Codnitive_Codall>
|
29 |
<active>true</active>
|
30 |
<codePool>local</codePool>
|
|
|
31 |
</Codnitive_Codall>
|
32 |
</modules>
|
33 |
</config>
|
app/etc/modules/Codnitive_Extifcon.xml
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
*
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
|
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* DISCLAIMER
|
13 |
*
|
14 |
-
* Do not edit or add to this file if you wish to upgrade
|
15 |
-
* versions in the future.
|
16 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Extifcon
|
@@ -27,10 +27,9 @@
|
|
27 |
<Codnitive_Extifcon>
|
28 |
<active>true</active>
|
29 |
<codePool>community</codePool>
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
<version>1.6.06</version>
|
34 |
</Codnitive_Extifcon>
|
35 |
</modules>
|
36 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* CODNITIVE
|
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 |
* DISCLAIMER
|
14 |
*
|
15 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
16 |
+
* versions in the future.
|
|
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Extifcon
|
27 |
<Codnitive_Extifcon>
|
28 |
<active>true</active>
|
29 |
<codePool>community</codePool>
|
30 |
+
<depends>
|
31 |
+
<Mage_Core />
|
32 |
+
</depends>
|
|
|
33 |
</Codnitive_Extifcon>
|
34 |
</modules>
|
35 |
</config>
|
app/etc/modules/Codnitive_Sidenav.xml
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
*
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
8 |
* This source file is subject to the Open Software License (OSL 3.0)
|
|
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* DISCLAIMER
|
13 |
*
|
14 |
-
* Do not edit or add to this file if you wish to upgrade
|
15 |
-
* versions in the future.
|
16 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Sidenav
|
@@ -27,12 +27,11 @@
|
|
27 |
<Codnitive_Sidenav>
|
28 |
<active>true</active>
|
29 |
<codePool>community</codePool>
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
<version>1.7.21</version>
|
36 |
</Codnitive_Sidenav>
|
37 |
</modules>
|
38 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* CODNITIVE
|
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 |
* DISCLAIMER
|
14 |
*
|
15 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
16 |
+
* versions in the future.
|
|
|
17 |
*
|
18 |
* @category Codnitive
|
19 |
* @package Codnitive_Sidenav
|
27 |
<Codnitive_Sidenav>
|
28 |
<active>true</active>
|
29 |
<codePool>community</codePool>
|
30 |
+
<depends>
|
31 |
+
<Mage_Catalog />
|
32 |
+
<Codnitive_Codall />
|
33 |
+
<Codnitive_Extifcon />
|
34 |
+
</depends>
|
|
|
35 |
</Codnitive_Sidenav>
|
36 |
</modules>
|
37 |
</config>
|
app/locale/en_US/Codnitive_Codall.csv
CHANGED
@@ -1,3 +1,11 @@
|
|
1 |
-
"
|
2 |
"Contact","Contact"
|
|
|
|
|
|
|
|
|
3 |
"Installed Extensions","Installed Extensions"
|
|
|
|
|
|
|
|
1 |
+
"Activation","Activation"
|
2 |
"Contact","Contact"
|
3 |
+
"Email Address","Email Address"
|
4 |
+
"Extension Registration","Extension Registration"
|
5 |
+
"Full Name","Full Name"
|
6 |
+
"Information","Information"
|
7 |
"Installed Extensions","Installed Extensions"
|
8 |
+
"Registration Code","Registration Code"
|
9 |
+
"Serial Number","Serial Number"
|
10 |
+
"CODNITIVE Registration Section","CODNITIVE Registration Section"
|
11 |
+
"CODNITIVE Information","CODNITIVE Information"
|
app/locale/en_US/Codnitive_Extifcon.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
"Developer","Developer"
|
2 |
+
"Extended ifconfig","Extended ifconfig"
|
3 |
+
"This extension is part of CODNITIVE Core which extends Magento Core.","This extension is part of CODNITIVE Core which extends Magento Core."
|
app/locale/en_US/Codnitive_Sidenav.csv
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
"",""
|
2 |
"[GLOBAL]","[GLOBAL]"
|
3 |
"[STORE VIEW]","[STORE VIEW]"
|
4 |
"A number based on 'px' (default: 14).","A number based on 'px' (default: 14)."
|
@@ -10,6 +9,7 @@
|
|
10 |
"Children of Current Category","Children of Current Category"
|
11 |
"Collapsible","Collapsible"
|
12 |
"Current Category and Children","Current Category and Children"
|
|
|
13 |
"Custom","Custom"
|
14 |
"Default","Default"
|
15 |
"Enabled","Enabled"
|
@@ -18,7 +18,7 @@
|
|
18 |
"Maximal Depth","Maximal Depth"
|
19 |
"No","No"
|
20 |
"Parent Category","Parent Category"
|
21 |
-
"Remove Layered Navigation
|
22 |
"Remove Top Navigation Menu","Remove Top Navigation Menu"
|
23 |
"Remove Zero Product Count","Remove Zero Product Count"
|
24 |
"Removes browse by category from layered navigation.","Removes browse by category from layered navigation."
|
@@ -39,3 +39,5 @@
|
|
39 |
"Width","Width"
|
40 |
"Yes","Yes"
|
41 |
"You must refresh ""Blocks HTML output"" cache if it's enabled.","You must refresh ""Blocks HTML output"" cache if it's enabled."
|
|
|
|
|
|
1 |
"[GLOBAL]","[GLOBAL]"
|
2 |
"[STORE VIEW]","[STORE VIEW]"
|
3 |
"A number based on 'px' (default: 14).","A number based on 'px' (default: 14)."
|
9 |
"Children of Current Category","Children of Current Category"
|
10 |
"Collapsible","Collapsible"
|
11 |
"Current Category and Children","Current Category and Children"
|
12 |
+
"Current Category and Its Siblings","Current Category and Its Siblings"
|
13 |
"Custom","Custom"
|
14 |
"Default","Default"
|
15 |
"Enabled","Enabled"
|
18 |
"Maximal Depth","Maximal Depth"
|
19 |
"No","No"
|
20 |
"Parent Category","Parent Category"
|
21 |
+
"Remove Layered Navigation Categories","Remove Layered Navigation Categories"
|
22 |
"Remove Top Navigation Menu","Remove Top Navigation Menu"
|
23 |
"Remove Zero Product Count","Remove Zero Product Count"
|
24 |
"Removes browse by category from layered navigation.","Removes browse by category from layered navigation."
|
39 |
"Width","Width"
|
40 |
"Yes","Yes"
|
41 |
"You must refresh ""Blocks HTML output"" cache if it's enabled.","You must refresh ""Blocks HTML output"" cache if it's enabled."
|
42 |
+
"Yes: When you click on a parent category name, it opens/closes sub-categories.<br />No: Parent category name is a link which loads products of that category.","Yes: When you click on a parent category name, it opens/closes sub-categories.<br />No: Parent category name is a link which loads products of that category."
|
43 |
+
"Expand by Parent Name","Expand by Parent Name"
|
app/locale/fa_IR/Codnitive_Codall.csv
CHANGED
@@ -1,3 +1,11 @@
|
|
1 |
-
"
|
2 |
"Contact","تماس"
|
|
|
|
|
|
|
|
|
3 |
"Installed Extensions","اکستنشنهای نصب شده"
|
|
|
|
|
|
|
|
1 |
+
"Activation","فعالسازی"
|
2 |
"Contact","تماس"
|
3 |
+
"Email Address","آدرس ایمیل"
|
4 |
+
"Extension Registration","ثبت اکستنشن"
|
5 |
+
"Full Name","نام کامل"
|
6 |
+
"Information","اطلاعات"
|
7 |
"Installed Extensions","اکستنشنهای نصب شده"
|
8 |
+
"Registration Code","کد ثبت"
|
9 |
+
"Serial Number","شماره سریال"
|
10 |
+
"CODNITIVE Registration Section","بخش ثبت CODNITIVE"
|
11 |
+
"CODNITIVE Information","اطلاعات CODNITIVE"
|
app/locale/fa_IR/Codnitive_Extifcon.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
"Developer","گسترش دهنده"
|
2 |
+
"Extended ifconfig","ifconfig گسترش یافته"
|
3 |
+
"This extension is part of CODNITIVE Core which extends Magento Core.","این اکستنشن بخشی از هستهی کدنیتیو است که هستهی مجنتو را گسترش میدهد."
|
app/locale/fa_IR/Codnitive_Sidenav.csv
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
"",""
|
2 |
"[GLOBAL]","[سراسری]"
|
3 |
"[STORE VIEW]","[نمای فروشگاه]"
|
4 |
"A number based on 'px' (default: 14).","عددی بر مبنای 'px' (پیش فرض: 14)."
|
@@ -10,6 +9,7 @@
|
|
10 |
"Children of Current Category","فرزندان ردهی جاری"
|
11 |
"Collapsible","تاشو"
|
12 |
"Current Category and Children","ردهی جاری و فرزندان"
|
|
|
13 |
"Custom","سفارشی"
|
14 |
"Default","پیش فرض"
|
15 |
"Enabled","ممکنشده"
|
@@ -18,7 +18,7 @@
|
|
18 |
"Maximal Depth","عمق نهایی"
|
19 |
"No","خیر"
|
20 |
"Parent Category","ردهی منشا"
|
21 |
-
"Remove Layered Navigation
|
22 |
"Remove Top Navigation Menu","برداشتن منوی ناوبری بالایی"
|
23 |
"Remove Zero Product Count","برداشتن تعداد محصول صفر"
|
24 |
"Removes browse by category from layered navigation.","جستجو توسط رده را از ناوبری لایهای برمی دارد."
|
@@ -29,7 +29,7 @@
|
|
29 |
"Show In","نمایش در"
|
30 |
"Show Product Count","نمایش تعداد محصول"
|
31 |
"Sidebar Navigation Menu Professional","منوی ناوبری نوارکناری حرفهای"
|
32 |
-
"Store Base","
|
33 |
"There are no categories in store.","هیچ ردهای در فرورشگاه وجود ندارد."
|
34 |
"Thumbnail Enabled","تصویر کوچک ممکنشده"
|
35 |
"Thumbnail Size","اندازهی تصویر کوچک"
|
@@ -39,3 +39,5 @@
|
|
39 |
"Width","پهنا"
|
40 |
"Yes","بلی"
|
41 |
"You must refresh ""Blocks HTML output"" cache if it's enabled.","اگر کش ""خروجی HTML بلاکها"" ممکن شده است شما باید آن را رفرش کنید."
|
|
|
|
|
|
1 |
"[GLOBAL]","[سراسری]"
|
2 |
"[STORE VIEW]","[نمای فروشگاه]"
|
3 |
"A number based on 'px' (default: 14).","عددی بر مبنای 'px' (پیش فرض: 14)."
|
9 |
"Children of Current Category","فرزندان ردهی جاری"
|
10 |
"Collapsible","تاشو"
|
11 |
"Current Category and Children","ردهی جاری و فرزندان"
|
12 |
+
"Current Category and Its Siblings","ردهی جاری و هم نیاهایش"
|
13 |
"Custom","سفارشی"
|
14 |
"Default","پیش فرض"
|
15 |
"Enabled","ممکنشده"
|
18 |
"Maximal Depth","عمق نهایی"
|
19 |
"No","خیر"
|
20 |
"Parent Category","ردهی منشا"
|
21 |
+
"Remove Layered Navigation Categories","برداشتن ردههای ناوبری لایهای"
|
22 |
"Remove Top Navigation Menu","برداشتن منوی ناوبری بالایی"
|
23 |
"Remove Zero Product Count","برداشتن تعداد محصول صفر"
|
24 |
"Removes browse by category from layered navigation.","جستجو توسط رده را از ناوبری لایهای برمی دارد."
|
29 |
"Show In","نمایش در"
|
30 |
"Show Product Count","نمایش تعداد محصول"
|
31 |
"Sidebar Navigation Menu Professional","منوی ناوبری نوارکناری حرفهای"
|
32 |
+
"Store Base","پایه فروشگاه"
|
33 |
"There are no categories in store.","هیچ ردهای در فرورشگاه وجود ندارد."
|
34 |
"Thumbnail Enabled","تصویر کوچک ممکنشده"
|
35 |
"Thumbnail Size","اندازهی تصویر کوچک"
|
39 |
"Width","پهنا"
|
40 |
"Yes","بلی"
|
41 |
"You must refresh ""Blocks HTML output"" cache if it's enabled.","اگر کش ""خروجی HTML بلاکها"" ممکن شده است شما باید آن را رفرش کنید."
|
42 |
+
"Yes: When you click on a parent category name, it opens/closes sub-categories.<br />No: Parent category name is a link which loads products of that category.","بلی: هنگامی که شما روی نام یک ردهی والد کلیک میکنید، زیر ردهها را بازمیکند/میبندد.<br />خیر: نام ردهی والد یک لینک است که محصولات آن رده را لود میکند."
|
43 |
+
"Expand by Parent Name","باز کردن با نام والد"
|
package.xml
CHANGED
@@ -1,19 +1,22 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Codnitive_Sidenav</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/gpl-3.0.html">GNU General Public License, version 3 (GPLv3)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>Adds new
|
10 |
-
<description>This extension will
|
11 |
With this navigation menu users can navigate to all site categories simply and fast.</description>
|
12 |
-
<notes>
|
|
|
|
|
|
|
13 |
<authors><author><name>Hassan Barza</name><user>hbarza</user><email>support@codnitive.com</email></author></authors>
|
14 |
-
<date>
|
15 |
-
<time>
|
16 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Codnitive_Codall.xml" hash="
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Codnitive_Sidenav</name>
|
4 |
+
<version>1.8.00</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/gpl-3.0.html">GNU General Public License, version 3 (GPLv3)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Adds new navigation block to store sidebar columns with lots of functionalities like showing categories thumbnail images, collapsible menus and more.</summary>
|
10 |
+
<description>This extension will adds a very useful vertical navigation with more flexible functionalities and configuration settings. The new block can add to sidebar columns with unique and nice design.
|
11 |
With this navigation menu users can navigate to all site categories simply and fast.</description>
|
12 |
+
<notes>Before use it in production, first check it in a test environment.
|
13 |
+
Also make sure you created a backup from your store files and database just before installing the extension.
|
14 |
+
If you enabled your your store compiler, you must disable it before installation and re-compile and enable it after installation.
|
15 |
+
To view sidebar navigation correctly in frontend and access to configuration settings you must refresh Magento cache and re-login to admin panel.</notes>
|
16 |
<authors><author><name>Hassan Barza</name><user>hbarza</user><email>support@codnitive.com</email></author></authors>
|
17 |
+
<date>2013-07-03</date>
|
18 |
+
<time>09:52:29</time>
|
19 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Codnitive_Codall.xml" hash="6b2f701358a66c64dc7e465c9c37b19d"/><file name="Codnitive_Sidenav.xml" hash="9ad9ddd42151498e4e4d01368f623e5e"/><file name="Codnitive_Extifcon.xml" hash="d0857d66ad78ee8505f3d51ec35689b6"/></dir></target><target name="magelocal"><dir name="Codnitive"><dir name="Codall"><dir><dir name="Block"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Fieldset"><file name="Contact.php" hash="8106827fe54d4c38b698ba0d7129eba7"/><file name="ECD.php" hash="54786d9d8d3741edd46be1967b4f784f"/><dir name="Extensions"><file name="List.php" hash="133eaf773b7b3d7546c7b0a85a9f05f7"/></dir><file name="PCD.php" hash="c7703442111ea9ede9c757f81a0cce1e"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="ed21011f3046ba8eb92bc9d168e816dc"/></dir><dir name="etc"><file name="adminhtml.xml" hash="92141ea9b2a4a3871dc3a441bdca5e67"/><file name="config.xml" hash="0c9f551dde5ccd82639fe0793a54bcce"/><file name="system.xml" hash="c73b95227f8db2bc096ea60dae5ced20"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Codnitive_Codall.csv" hash="b6ef3920c15d91d1af1f4c8a4cef82e9"/><file name="Codnitive_Sidenav.csv" hash="cf29ddc80aeb125c826001d6b7114afb"/><file name="Codnitive_Extifcon.csv" hash="0c7b87419fa86b293e84dfec66c31899"/></dir><dir name="fa_IR"><file name="Codnitive_Codall.csv" hash="486172901415e0278a5fd10c76b0c333"/><file name="Codnitive_Sidenav.csv" hash="7f39760c4fae22d23f4ccd85063e1795"/><file name="Codnitive_Extifcon.csv" hash="708e3b71cf2376104b0db4e4b985df33"/></dir></target><target name="magecommunity"><dir name="Codnitive"><dir name="Sidenav"><dir><dir name="Block"><file name="Navigation.php" hash="00767b9495ef963ada5af7173154e990"/></dir><dir name="Helper"><file name="Category.php" hash="09ed6265bb91bdfd6373a186f1975983"/><file name="Data.php" hash="010a4c9d8787b5f353c608d523d5f578"/></dir><dir name="Model"><dir name="Catalog"><file name="Category.php" hash="ea0d5a3d1a5282e3cd3c27ce82167f3f"/></dir><file name="Config.php" hash="6ed9b92bea8b3a1e1cc05fcd6218e741"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Before.php" hash="17f8190184a0e5b4cafe3aa4fae7a28d"/><file name="Column.php" hash="25b66029ec4bd8b58412640a62d75212"/><file name="Float.php" hash="f9889a4b4e2975ebdcf52c5adc619808"/><file name="Icon.php" hash="2d240d65fbe72146882f3f2637e2e6a1"/><file name="Loadnocategory.php" hash="384e15ef19952e1f5b3a28ed54584665"/><file name="Parent.php" hash="63505ced360a4cbaf2a25c0cbb0c5e5f"/><file name="Thumbsize.php" hash="3978d5c5a8788f69acd0dadfeddba06f"/><file name="Title.php" hash="5112f20d78bb028ad9718ec0cedad66b"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="ff3978a7eb233c5a919b247908bbb8d2"/><file name="config.xml" hash="cb0119e5c221344ab3a6dc1423537d66"/><file name="system.xml" hash="b33bf11c8a0d54103cf10872d52350ad"/></dir></dir></dir><dir name="Extifcon"><dir><dir name="Helper"><file name="Data.php" hash="149e557287d8cded7b0e4d9497db712c"/></dir><dir name="Model"><file name="Compiler.php" hash="0f12034c3944f9599778c6598acc4aa0"/><file name="Config.php" hash="7927c0efebb21b7161a9525dc388e130"/><dir name="Core"><file name="Layout.php" hash="704c3dfcfc7a75b4dc0a3ae4680a21e7"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="0777d101c55acacc2d0247c5327f1e55"/><file name="config.xml" hash="7c4d1441c2ab1c733955145c99fece72"/><file name="system.xml" hash="9dbc4ecb1241dbacf6a06a0646297766"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="codnitive"><file name="sidenav.xml" hash="cbf61f08fa757049e0cc164f731a8598"/></dir></dir><dir name="template"><dir name="codnitive"><dir name="sidenav"><file name="navigation.phtml" hash="2b8f797b829d21eb9c83a23c34727e88"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="codnitive"><file name="sidenav.css" hash="d86b191e0fbd0cedeeaab45712512ba4"/></dir></dir><dir name="images"><dir name="codnitive"><dir name="sidenav"><file name="arrows.gif" hash="9ea413987d4d17cc4de907a24dcbd268"/><file name="arrows_blue.gif" hash="151e6e7e3827265ed306ced85d165b38"/><file name="arrows_green.gif" hash="17c0766b23745095e6ee99067cedda19"/><file name="arrows_right.gif" hash="b8466c83dab69daa1f3a1d444fbf46a3"/><file name="arrowsorange.gif" hash="36437d09042a820bd60952a44e287875"/><file name="bkg_block-sidebarnav-actions.gif" hash="da2970eac0a22c850b19ee3680475d51"/><file name="bkg_block-sidebarnav-layered-dd.gif" hash="6ae6f8184e87de496fb74eeec65737c9"/><file name="bkg_block-sidebarnav-title.gif" hash="8c28b4c623674f740f6f71652b66c360"/><file name="codnitive_logo.png" hash="6f20d02ef1290605952825bbf942d09a"/><file name="home.png" hash="82fd37a919f29ba4e7585d3f6f603d23"/><file name="plus.gif" hash="a78809dc3d4568b018cd4a381194f8dd"/><file name="plus_gray.gif" hash="a5b5e05a98017ed9a9309622fff8d725"/><file name="plus_trans_small.gif" hash="b886e98d927f7082b000a94756bd6ca5"/></dir></dir></dir></dir></dir><dir name="default"><dir name="blank"><dir name="css"><dir name="codnitive"><file name="sidenav.css" hash="de4d3bf1c46d1f595243c24450fbf255"/></dir></dir><dir name="images"><dir name="codnitive"><dir name="sidenav"><file name="arrows.gif" hash="9ea413987d4d17cc4de907a24dcbd268"/><file name="codnitive_logo.png" hash="6f20d02ef1290605952825bbf942d09a"/><file name="home.png" hash="82fd37a919f29ba4e7585d3f6f603d23"/><file name="plus.gif" hash="a5b5e05a98017ed9a9309622fff8d725"/><file name="plus_trans_small.gif" hash="b886e98d927f7082b000a94756bd6ca5"/><file name="plus_white.gif" hash="a78809dc3d4568b018cd4a381194f8dd"/></dir></dir></dir></dir><dir name="default"><dir name="css"><dir name="codnitive"><file name="sidenav_pd.css" hash="6ca4f5953539ebaa2e99197c140c5c7b"/></dir></dir><dir name="images"><dir name="codnitive"><dir name="sidenav"><file name="arrows.gif" hash="9ea413987d4d17cc4de907a24dcbd268"/><file name="arrows_blue.gif" hash="151e6e7e3827265ed306ced85d165b38"/><file name="arrows_green.gif" hash="17c0766b23745095e6ee99067cedda19"/><file name="arrows_right.gif" hash="b8466c83dab69daa1f3a1d444fbf46a3"/><file name="arrowsorange.gif" hash="36437d09042a820bd60952a44e287875"/><file name="bkg_block-sidebarnav-actions.gif" hash="da2970eac0a22c850b19ee3680475d51"/><file name="bkg_block-sidebarnav-layered-dd.gif" hash="6ae6f8184e87de496fb74eeec65737c9"/><file name="bkg_block-sidebarnav-title.gif" hash="8c28b4c623674f740f6f71652b66c360"/><file name="codnitive_logo.png" hash="6f20d02ef1290605952825bbf942d09a"/><file name="home.png" hash="82fd37a919f29ba4e7585d3f6f603d23"/><file name="plus.gif" hash="a78809dc3d4568b018cd4a381194f8dd"/><file name="plus_gray.gif" hash="a5b5e05a98017ed9a9309622fff8d725"/><file name="plus_trans_small.gif" hash="b886e98d927f7082b000a94756bd6ca5"/></dir></dir></dir></dir><dir name="f002"><dir name="css"><dir name="codnitive"><file name="sidenav.css" hash="843f9971a7e66ba1f8efc232a05526b4"/></dir></dir><dir name="images"><dir name="codnitive"><dir name="sidenav"><file name="arrows.gif" hash="9ea413987d4d17cc4de907a24dcbd268"/><file name="arrows_blue.gif" hash="151e6e7e3827265ed306ced85d165b38"/><file name="arrows_green.gif" hash="17c0766b23745095e6ee99067cedda19"/><file name="arrows_right.gif" hash="b8466c83dab69daa1f3a1d444fbf46a3"/><file name="arrowsorange.gif" hash="36437d09042a820bd60952a44e287875"/><file name="bkg_block-sidebarnav-actions.gif" hash="da2970eac0a22c850b19ee3680475d51"/><file name="bkg_block-sidebarnav-layered-dd.gif" hash="6ae6f8184e87de496fb74eeec65737c9"/><file name="bkg_block-sidebarnav-title.gif" hash="8c28b4c623674f740f6f71652b66c360"/><file name="codnitive_logo.png" hash="6f20d02ef1290605952825bbf942d09a"/><file name="home.png" hash="82fd37a919f29ba4e7585d3f6f603d23"/><file name="plus.gif" hash="a78809dc3d4568b018cd4a381194f8dd"/><file name="plus_gray.gif" hash="a5b5e05a98017ed9a9309622fff8d725"/><file name="plus_trans_small.gif" hash="b886e98d927f7082b000a94756bd6ca5"/><file name="plus_white.gif" hash="a78809dc3d4568b018cd4a381194f8dd"/></dir></dir></dir></dir><dir name="modern"><dir name="css"><dir name="codnitive"><file name="sidenav.css" hash="bb3e94e6c2d824f8f99ae90c25265bae"/></dir></dir><dir name="images"><dir name="codnitive"><dir name="sidenav"><file name="arrows.gif" hash="9ea413987d4d17cc4de907a24dcbd268"/><file name="arrows_blue.gif" hash="151e6e7e3827265ed306ced85d165b38"/><file name="arrows_green.gif" hash="17c0766b23745095e6ee99067cedda19"/><file name="arrows_right.gif" hash="b8466c83dab69daa1f3a1d444fbf46a3"/><file name="arrowsorange.gif" hash="36437d09042a820bd60952a44e287875"/><file name="bkg_block-sidebarnav-actions.gif" hash="1f29cb35ff7946056eecd61ad3dabdfd"/><file name="bkg_block-sidebarnav-layered-dd.gif" hash="6ae6f8184e87de496fb74eeec65737c9"/><file name="bkg_block-sidebarnav-title.gif" hash="db35f4c041cd65b37d108d2506b10aae"/><file name="codnitive_logo.png" hash="6f20d02ef1290605952825bbf942d09a"/><file name="home.png" hash="82fd37a919f29ba4e7585d3f6f603d23"/><file name="plus.gif" hash="a78809dc3d4568b018cd4a381194f8dd"/><file name="plus_gray.gif" hash="a5b5e05a98017ed9a9309622fff8d725"/><file name="plus_trans_small.gif" hash="b886e98d927f7082b000a94756bd6ca5"/></dir></dir></dir></dir></dir></dir></target></contents>
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
22 |
</package>
|
skin/frontend/base/default/css/codnitive/sidenav.css
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* CODNITIVE
|
3 |
+
*
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
7 |
+
* that is bundled with this package in the file LICENSE.txt.
|
8 |
+
* It is also available through the world-wide-web at this URL:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
*
|
11 |
+
* DISCLAIMER
|
12 |
+
*
|
13 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
14 |
+
* versions in the future.
|
15 |
+
*
|
16 |
+
* @category Codnitive
|
17 |
+
* @package Codnitive_Sidenav
|
18 |
+
* @author Hassan Barza <support@codnitive.com>
|
19 |
+
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
+
*/
|
22 |
+
|
23 |
+
/* Sidebar Navigation ==================================================================== */
|
24 |
+
#sidebar-nav {
|
25 |
+
margin-bottom: 15px;
|
26 |
+
position: relative;
|
27 |
+
}
|
28 |
+
#sidebar-nav .block-title {
|
29 |
+
}
|
30 |
+
#sidebar-nav .block-title strong {
|
31 |
+
}
|
32 |
+
#sidebar-nav .block-content {
|
33 |
+
padding: 6px;
|
34 |
+
overflow: auto;
|
35 |
+
}
|
36 |
+
#sidebar-nav .block-content a {
|
37 |
+
line-height: 1.7;
|
38 |
+
}
|
39 |
+
#sidebar-nav-menu > li {
|
40 |
+
background: url('../../images/codnitive/sidenav/bkg_block-sidebarnav-layered-dd.gif') 0 100% repeat-x;
|
41 |
+
list-style: inside disc;
|
42 |
+
font-weight: bold;
|
43 |
+
padding: 8px 0;
|
44 |
+
}
|
45 |
+
#sidebar-nav-menu > li.last {
|
46 |
+
background: none;
|
47 |
+
margin-bottom: 5px;
|
48 |
+
}
|
49 |
+
#sidebar-nav-menu li ul {
|
50 |
+
font-weight: normal;
|
51 |
+
}
|
52 |
+
#sidebar-nav li.active,
|
53 |
+
#sidebar-nav li.active > a,
|
54 |
+
#sidebar-nav li.active > .collapsible-wrapper > a {
|
55 |
+
}
|
56 |
+
#sidebar-nav ul.ul-thumb {
|
57 |
+
padding-left: 0;
|
58 |
+
}
|
59 |
+
#sidebar-nav-menu > li.parent > ul.ul-thumb {
|
60 |
+
padding-left: 10px;
|
61 |
+
}
|
62 |
+
#sidebar-nav li.thumb {
|
63 |
+
list-style-type: none;
|
64 |
+
}
|
65 |
+
#sidebar-nav-menu > li.no-thumb,
|
66 |
+
#sidebar-nav-menu > li.thumb {
|
67 |
+
margin-left: 0 !important;
|
68 |
+
list-style-type: none;
|
69 |
+
}
|
70 |
+
#sidebar-nav img {
|
71 |
+
border: 0 none !important;
|
72 |
+
outline: 0 none !important;
|
73 |
+
}
|
74 |
+
#sidebar-nav span.product-count {
|
75 |
+
color: #000;
|
76 |
+
}
|
77 |
+
#sidebar-nav .home {
|
78 |
+
list-style: none !important;
|
79 |
+
}
|
80 |
+
#sidebar-nav .home a {
|
81 |
+
display:inline-block;
|
82 |
+
padding-left:20px;
|
83 |
+
background:url('../../images/codnitive/sidenav/home.png') left top no-repeat;
|
84 |
+
min-height:16px;
|
85 |
+
}
|
86 |
+
#sidebar-nav .support-logo-wrapper {
|
87 |
+
margin-top:10px;
|
88 |
+
}
|
89 |
+
#sidebar-nav .support_logo {
|
90 |
+
font-size: 9px;
|
91 |
+
float: right;
|
92 |
+
right: 5px;
|
93 |
+
bottom: 5px;
|
94 |
+
text-decoration: none;
|
95 |
+
}
|
96 |
+
#sidebar-nav .support_logo img {
|
97 |
+
max-width: 65px;
|
98 |
+
}
|
99 |
+
|
100 |
+
/* Collapsible Design ==================================================================== */
|
101 |
+
#sidebar-nav li.thumb .thumb-img-left {
|
102 |
+
float: left;
|
103 |
+
margin: 1px 3px 0 0;
|
104 |
+
}
|
105 |
+
#sidebar-nav li.thumb .thumb-img-right {
|
106 |
+
float: right;
|
107 |
+
margin: 1px 3px 0;
|
108 |
+
}
|
109 |
+
#sidebar-nav-menu .arrow-left,
|
110 |
+
#sidebar-nav-menu .arrow-right,
|
111 |
+
#sidebar-nav-menu .plus-left,
|
112 |
+
#sidebar-nav-menu .plus-right {
|
113 |
+
float: left;
|
114 |
+
background: url('../../images/codnitive/sidenav/arrows.gif') left center no-repeat;
|
115 |
+
display: block;
|
116 |
+
margin-top: 2px;
|
117 |
+
margin: 1px 3px 0;
|
118 |
+
cursor:pointer;
|
119 |
+
}
|
120 |
+
#sidebar-nav-menu .plus-left,
|
121 |
+
#sidebar-nav-menu .plus-right
|
122 |
+
{
|
123 |
+
background-image: url('../../images/codnitive/sidenav/plus.gif');
|
124 |
+
}
|
125 |
+
#sidebar-nav-menu .arrow-right,
|
126 |
+
#sidebar-nav-menu .plus-right {
|
127 |
+
float:right;
|
128 |
+
display:inline !important;
|
129 |
+
}
|
130 |
+
#sidebar-nav-menu li ul[expanded="0"] {
|
131 |
+
display: none;
|
132 |
+
}
|
133 |
+
#sidebar-nav li.active > ul {
|
134 |
+
display: block;
|
135 |
+
}
|
136 |
+
#sidebar-nav li.active > .arrow-left,
|
137 |
+
#sidebar-nav li.active > .arrow-right,
|
138 |
+
#sidebar-nav li.active > .plus-left,
|
139 |
+
#sidebar-nav li.active > .plus-right {
|
140 |
+
display: block;
|
141 |
+
background-position: right center;
|
142 |
+
}
|
143 |
+
#sidebar-nav-menu > li.collapsible {
|
144 |
+
list-style: none !important;
|
145 |
+
}
|
146 |
+
#sidebar-nav .collapse-name {
|
147 |
+
cursor:pointer;
|
148 |
+
}
|
skin/frontend/{default/default/images → base/default/images/codnitive/sidenav}/arrows.gif
RENAMED
File without changes
|
skin/frontend/{default/default/images/blue_arrows.gif → base/default/images/codnitive/sidenav/arrows_blue.gif}
RENAMED
File without changes
|
skin/frontend/{default/default/images/green_arrows.gif → base/default/images/codnitive/sidenav/arrows_green.gif}
RENAMED
File without changes
|
skin/frontend/base/default/images/codnitive/sidenav/arrows_right.gif
ADDED
Binary file
|
skin/frontend/{default/default/images/orange_arrows.gif → base/default/images/codnitive/sidenav/arrowsorange.gif}
RENAMED
File without changes
|
skin/frontend/{default/default/images → base/default/images/codnitive/sidenav}/bkg_block-sidebarnav-actions.gif
RENAMED
File without changes
|
skin/frontend/{default/default/images → base/default/images/codnitive/sidenav}/bkg_block-sidebarnav-layered-dd.gif
RENAMED
File without changes
|
skin/frontend/base/default/images/codnitive/sidenav/bkg_block-sidebarnav-title.gif
ADDED
Binary file
|
skin/frontend/base/default/images/codnitive/sidenav/codnitive_logo.png
ADDED
Binary file
|
skin/frontend/base/default/images/codnitive/sidenav/home.png
ADDED
Binary file
|
skin/frontend/base/default/images/codnitive/sidenav/plus.gif
ADDED
Binary file
|
skin/frontend/base/default/images/codnitive/sidenav/plus_gray.gif
ADDED
Binary file
|
skin/frontend/base/default/images/codnitive/sidenav/plus_trans_small.gif
ADDED
Binary file
|
skin/frontend/default/blank/css/codnitive/sidenav.css
ADDED
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* CODNITIVE
|
3 |
+
*
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
7 |
+
* that is bundled with this package in the file LICENSE.txt.
|
8 |
+
* It is also available through the world-wide-web at this URL:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
*
|
11 |
+
* DISCLAIMER
|
12 |
+
*
|
13 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
14 |
+
* versions in the future.
|
15 |
+
*
|
16 |
+
* @category Codnitive
|
17 |
+
* @package Codnitive_Sidenav
|
18 |
+
* @author Hassan Barza <support@codnitive.com>
|
19 |
+
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
+
*/
|
22 |
+
|
23 |
+
/* Sidebar Navigation ==================================================================== */
|
24 |
+
#sidebar-nav {
|
25 |
+
margin-bottom: 10px;
|
26 |
+
border: 1px solid #DDD;
|
27 |
+
position: relative;
|
28 |
+
}
|
29 |
+
#sidebar-nav .block-title {
|
30 |
+
border-bottom: 1px solid #DDD;
|
31 |
+
height: 18px !important;
|
32 |
+
padding: 3px 10px;
|
33 |
+
}
|
34 |
+
#sidebar-nav .block-title strong {
|
35 |
+
font-size: 14px;
|
36 |
+
font-weight: bold;
|
37 |
+
color: #000;
|
38 |
+
}
|
39 |
+
#sidebar-nav .block-content {
|
40 |
+
padding: 10px;
|
41 |
+
overflow: auto;
|
42 |
+
}
|
43 |
+
#sidebar-nav .block-content a {
|
44 |
+
color: #777;
|
45 |
+
line-height: 1.7;
|
46 |
+
}
|
47 |
+
#sidebar-nav-menu > li {
|
48 |
+
border-bottom: 1px dotted #CCC;
|
49 |
+
list-style: inside disc;
|
50 |
+
font-weight: bold;
|
51 |
+
padding: 8px 0;
|
52 |
+
}
|
53 |
+
#sidebar-nav-menu > li.last {
|
54 |
+
border-bottom: 0 none;
|
55 |
+
margin-bottom: 5px;
|
56 |
+
}
|
57 |
+
#sidebar-nav-menu li ul {
|
58 |
+
font-weight: normal;
|
59 |
+
}
|
60 |
+
#sidebar-nav li.active,
|
61 |
+
#sidebar-nav li.active > a,
|
62 |
+
#sidebar-nav li.active > .collapsible-wrapper > a {
|
63 |
+
color: #000;
|
64 |
+
}
|
65 |
+
#sidebar-nav ul.ul-thumb {
|
66 |
+
padding-left: 0;
|
67 |
+
}
|
68 |
+
#sidebar-nav-menu > li.parent > ul.ul-thumb {
|
69 |
+
padding-left: 10px;
|
70 |
+
}
|
71 |
+
#sidebar-nav li.thumb {
|
72 |
+
list-style-type: none;
|
73 |
+
}
|
74 |
+
#sidebar-nav-menu > li.no-thumb,
|
75 |
+
#sidebar-nav-menu > li.thumb {
|
76 |
+
margin-left: 0 !important;
|
77 |
+
list-style-type: none;
|
78 |
+
}
|
79 |
+
#sidebar-nav img {
|
80 |
+
border: 0 none !important;
|
81 |
+
outline: 0 none !important;
|
82 |
+
}
|
83 |
+
#sidebar-nav span.product-count {
|
84 |
+
color: #000;
|
85 |
+
}
|
86 |
+
#sidebar-nav .home {
|
87 |
+
list-style: none !important;
|
88 |
+
}
|
89 |
+
#sidebar-nav .home a {
|
90 |
+
display:inline-block;
|
91 |
+
padding-left:20px;
|
92 |
+
background:url('../../images/codnitive/sidenav/home.png') left top no-repeat;
|
93 |
+
min-height:16px;
|
94 |
+
}
|
95 |
+
#sidebar-nav .support-logo-wrapper {
|
96 |
+
margin-top:10px;
|
97 |
+
}
|
98 |
+
#sidebar-nav .support_logo {
|
99 |
+
font-size: 9px;
|
100 |
+
float: right;
|
101 |
+
right: 5px;
|
102 |
+
bottom: 5px;
|
103 |
+
text-decoration: none;
|
104 |
+
}
|
105 |
+
#sidebar-nav .support_logo img {
|
106 |
+
max-width: 65px;
|
107 |
+
}
|
108 |
+
|
109 |
+
/* Collapsible Design ==================================================================== */
|
110 |
+
#sidebar-nav li.thumb .thumb-img-left {
|
111 |
+
float: left;
|
112 |
+
margin: 1px 3px 0 0;
|
113 |
+
}
|
114 |
+
#sidebar-nav li.thumb .thumb-img-right {
|
115 |
+
float: right;
|
116 |
+
margin: 1px 3px 0;
|
117 |
+
}
|
118 |
+
#sidebar-nav-menu .arrow-left,
|
119 |
+
#sidebar-nav-menu .arrow-right,
|
120 |
+
#sidebar-nav-menu .plus-left,
|
121 |
+
#sidebar-nav-menu .plus-right {
|
122 |
+
float: left;
|
123 |
+
background: url('../../images/codnitive/sidenav/arrows.gif') left center no-repeat;
|
124 |
+
display: block;
|
125 |
+
margin-top: 2px;
|
126 |
+
margin: 1px 3px 0;
|
127 |
+
cursor:pointer;
|
128 |
+
}
|
129 |
+
#sidebar-nav-menu .plus-left,
|
130 |
+
#sidebar-nav-menu .plus-right
|
131 |
+
{
|
132 |
+
background-image: url('../../images/codnitive/sidenav/plus.gif');
|
133 |
+
}
|
134 |
+
#sidebar-nav-menu .arrow-right,
|
135 |
+
#sidebar-nav-menu .plus-right {
|
136 |
+
float:right;
|
137 |
+
display:inline !important;
|
138 |
+
}
|
139 |
+
#sidebar-nav-menu li ul[expanded="0"] {
|
140 |
+
display: none;
|
141 |
+
}
|
142 |
+
#sidebar-nav li.active > ul {
|
143 |
+
display: block;
|
144 |
+
}
|
145 |
+
#sidebar-nav li.active > .arrow-left,
|
146 |
+
#sidebar-nav li.active > .arrow-right,
|
147 |
+
#sidebar-nav li.active > .plus-left,
|
148 |
+
#sidebar-nav li.active > .plus-right {
|
149 |
+
display: block;
|
150 |
+
background-position: right center;
|
151 |
+
}
|
152 |
+
#sidebar-nav-menu > li.collapsible {
|
153 |
+
list-style: none !important;
|
154 |
+
}
|
155 |
+
#sidebar-nav .collapse-name {
|
156 |
+
cursor:pointer;
|
157 |
+
}
|
skin/frontend/default/blank/css/sidenav.css
DELETED
@@ -1,94 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Magento
|
3 |
-
*
|
4 |
-
* NOTICE OF LICENSE
|
5 |
-
*
|
6 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
7 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
8 |
-
* It is also available through the world-wide-web at this URL:
|
9 |
-
* http://opensource.org/licenses/afl-3.0.php
|
10 |
-
* If you did not receive a copy of the license and are unable to
|
11 |
-
* obtain it through the world-wide-web, please send an email
|
12 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
13 |
-
*
|
14 |
-
* DISCLAIMER
|
15 |
-
*
|
16 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
17 |
-
* versions in the future. If you wish to customize Magento for your
|
18 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
19 |
-
*
|
20 |
-
* @category Codnitive
|
21 |
-
* @package Codnitive_Sidenav
|
22 |
-
* @author Hassan Barza <support@codnitive.com>
|
23 |
-
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
24 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
-
*/
|
26 |
-
|
27 |
-
/* <<< Sidebar Navigation ==================================================================== */
|
28 |
-
#sidebar-nav {
|
29 |
-
margin-bottom: 10px;
|
30 |
-
border: 1px solid #DDD;
|
31 |
-
}
|
32 |
-
#sidebar-nav .block-title {
|
33 |
-
border-bottom: 1px solid #DDD;
|
34 |
-
height: 18px !important;
|
35 |
-
padding: 3px 10px;
|
36 |
-
}
|
37 |
-
#sidebar-nav .block-title strong {
|
38 |
-
font-size: 14px;
|
39 |
-
font-weight: bold;
|
40 |
-
color: #000;
|
41 |
-
}
|
42 |
-
#sidebar-nav .block-content {
|
43 |
-
padding: 10px;
|
44 |
-
overflow: auto;
|
45 |
-
}
|
46 |
-
#sidebar-nav .block-content a {
|
47 |
-
color: #777;
|
48 |
-
}
|
49 |
-
ul#sidebar-nav-menu > li {
|
50 |
-
border-bottom: 1px dotted #CCC;
|
51 |
-
list-style: inside disc;
|
52 |
-
font-weight: bold;
|
53 |
-
padding: 8px 0;
|
54 |
-
}
|
55 |
-
ul#sidebar-nav-menu > li:last-child {
|
56 |
-
border-bottom: 0 none;
|
57 |
-
margin-bottom: 5px;
|
58 |
-
}
|
59 |
-
/*
|
60 |
-
ul#sidebar-nav-menu > li > ul {
|
61 |
-
margin-left: 5px;
|
62 |
-
}
|
63 |
-
*/
|
64 |
-
ul#sidebar-nav-menu li ul {
|
65 |
-
/* padding-left: 10px; */
|
66 |
-
font-weight: normal;
|
67 |
-
}
|
68 |
-
#sidebar-nav li.active,
|
69 |
-
#sidebar-nav li.active > a,
|
70 |
-
#sidebar-nav li.active > .collapsible-wrapper > a {
|
71 |
-
color: #000;
|
72 |
-
}
|
73 |
-
#sidebar-nav ul.ul-thumb {
|
74 |
-
padding-left: 0;
|
75 |
-
}
|
76 |
-
ul#sidebar-nav-menu > li.parent > ul.ul-thumb {
|
77 |
-
padding-left: 10px;
|
78 |
-
}
|
79 |
-
#sidebar-nav li.thumb {
|
80 |
-
list-style-type: none;
|
81 |
-
}
|
82 |
-
ul#sidebar-nav-menu > li.no-thumb,
|
83 |
-
ul#sidebar-nav-menu > li.thumb {
|
84 |
-
margin-left: 0 !important;
|
85 |
-
list-style-type: none;
|
86 |
-
}
|
87 |
-
#sidebar-nav img {
|
88 |
-
border: 0 none !important;
|
89 |
-
outline: 0 none !important;
|
90 |
-
}
|
91 |
-
#sidebar-nav span.product-count {
|
92 |
-
color: #000;
|
93 |
-
}
|
94 |
-
/* >>> Sidebar Navigation ==================================================================== */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skin/frontend/default/blank/images/codnitive/sidenav/arrows.gif
ADDED
Binary file
|
skin/frontend/default/blank/images/codnitive/sidenav/codnitive_logo.png
ADDED
Binary file
|
skin/frontend/default/blank/images/codnitive/sidenav/home.png
ADDED
Binary file
|
skin/frontend/default/blank/images/codnitive/sidenav/plus.gif
ADDED
Binary file
|
skin/frontend/default/blank/images/codnitive/sidenav/plus_trans_small.gif
ADDED
Binary file
|
skin/frontend/default/blank/images/codnitive/sidenav/plus_white.gif
ADDED
Binary file
|
skin/frontend/default/default/css/codnitive/sidenav_pd.css
ADDED
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* CODNITIVE
|
3 |
+
*
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
7 |
+
* that is bundled with this package in the file LICENSE.txt.
|
8 |
+
* It is also available through the world-wide-web at this URL:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
*
|
11 |
+
* DISCLAIMER
|
12 |
+
*
|
13 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
14 |
+
* versions in the future.
|
15 |
+
*
|
16 |
+
* @category Codnitive
|
17 |
+
* @package Codnitive_Sidenav
|
18 |
+
* @author Hassan Barza <support@codnitive.com>
|
19 |
+
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
+
*/
|
22 |
+
|
23 |
+
/* Sidebar Navigation ==================================================================== */
|
24 |
+
#sidebar-nav {
|
25 |
+
margin-bottom: 15px;
|
26 |
+
border: 0 none;
|
27 |
+
position: relative;
|
28 |
+
}
|
29 |
+
#sidebar-nav .block-title {
|
30 |
+
border: 0 none !important;
|
31 |
+
height: 18px !important;
|
32 |
+
background: url('../../images/codnitive/sidenav/bkg_block-sidebarnav-title.gif') 0 0 repeat-x;
|
33 |
+
padding: 4px 9px 2px;
|
34 |
+
}
|
35 |
+
#sidebar-nav .block-title strong {
|
36 |
+
font: bold 13px/16px Arial, Helvetica, sans-serif;
|
37 |
+
text-transform: uppercase;
|
38 |
+
color: #FFF;
|
39 |
+
}
|
40 |
+
#sidebar-nav .block-content {
|
41 |
+
background: #DEE5E8 url('../../images/codnitive/sidenav/bkg_block-sidebarnav-actions.gif') 0 0 repeat-x;
|
42 |
+
padding: 6px 9px;
|
43 |
+
border: 1px solid #C4C1BC;
|
44 |
+
overflow: auto;
|
45 |
+
}
|
46 |
+
#sidebar-nav .block-content a {
|
47 |
+
color: #0D004C;
|
48 |
+
line-height: 1.7;
|
49 |
+
}
|
50 |
+
#sidebar-nav-menu > li {
|
51 |
+
background: url('../../images/codnitive/sidenav/bkg_block-sidebarnav-layered-dd.gif') 0 100% repeat-x;
|
52 |
+
list-style: inside disc;
|
53 |
+
font-weight: bold;
|
54 |
+
padding: 8px 0;
|
55 |
+
}
|
56 |
+
#sidebar-nav-menu > li.last {
|
57 |
+
background: none;
|
58 |
+
margin-bottom: 5px;
|
59 |
+
}
|
60 |
+
#sidebar-nav-menu li ul {
|
61 |
+
font-weight: normal;
|
62 |
+
}
|
63 |
+
#sidebar-nav li.active,
|
64 |
+
#sidebar-nav li.active > a,
|
65 |
+
#sidebar-nav li.active > .collapsible-wrapper > a {
|
66 |
+
color: #D15E00;
|
67 |
+
}
|
68 |
+
#sidebar-nav ul.ul-thumb {
|
69 |
+
padding-left: 0;
|
70 |
+
}
|
71 |
+
#sidebar-nav-menu > li.parent > ul.ul-thumb {
|
72 |
+
padding-left: 10px;
|
73 |
+
}
|
74 |
+
#sidebar-nav li.thumb {
|
75 |
+
list-style-type: none;
|
76 |
+
}
|
77 |
+
#sidebar-nav-menu > li.no-thumb,
|
78 |
+
#sidebar-nav-menu > li.thumb {
|
79 |
+
margin-left: 0 !important;
|
80 |
+
list-style-type: none;
|
81 |
+
}
|
82 |
+
#sidebar-nav img {
|
83 |
+
border: 0 none !important;
|
84 |
+
outline: 0 none !important;
|
85 |
+
}
|
86 |
+
#sidebar-nav span.product-count {
|
87 |
+
color: #000;
|
88 |
+
}
|
89 |
+
#sidebar-nav .home {
|
90 |
+
list-style: none !important;
|
91 |
+
}
|
92 |
+
#sidebar-nav .home a {
|
93 |
+
display:inline-block;
|
94 |
+
padding-left:20px;
|
95 |
+
background:url('../../images/codnitive/sidenav/home.png') left top no-repeat;
|
96 |
+
min-height:16px;
|
97 |
+
}
|
98 |
+
#sidebar-nav .support-logo-wrapper {
|
99 |
+
margin-top:10px;
|
100 |
+
}
|
101 |
+
#sidebar-nav .support_logo {
|
102 |
+
font-size: 9px;
|
103 |
+
float: right;
|
104 |
+
right: 5px;
|
105 |
+
bottom: 5px;
|
106 |
+
text-decoration: none;
|
107 |
+
}
|
108 |
+
#sidebar-nav .support_logo img {
|
109 |
+
max-width: 65px;
|
110 |
+
}
|
111 |
+
|
112 |
+
/* Collapsible Design ==================================================================== */
|
113 |
+
#sidebar-nav li.thumb .thumb-img-left {
|
114 |
+
float: left;
|
115 |
+
margin: 1px 3px 0 0;
|
116 |
+
}
|
117 |
+
#sidebar-nav li.thumb .thumb-img-right {
|
118 |
+
float: right;
|
119 |
+
margin: 1px 3px 0;
|
120 |
+
}
|
121 |
+
#sidebar-nav-menu .arrow-left,
|
122 |
+
#sidebar-nav-menu .arrow-right,
|
123 |
+
#sidebar-nav-menu .plus-left,
|
124 |
+
#sidebar-nav-menu .plus-right {
|
125 |
+
float: left;
|
126 |
+
background: url('../../images/codnitive/sidenav/arrows.gif') left center no-repeat;
|
127 |
+
display: block;
|
128 |
+
margin-top: 2px;
|
129 |
+
margin: 1px 3px 0;
|
130 |
+
cursor:pointer;
|
131 |
+
}
|
132 |
+
#sidebar-nav-menu .plus-left,
|
133 |
+
#sidebar-nav-menu .plus-right
|
134 |
+
{
|
135 |
+
background-image: url('../../images/codnitive/sidenav/plus.gif');
|
136 |
+
}
|
137 |
+
#sidebar-nav-menu .arrow-right,
|
138 |
+
#sidebar-nav-menu .plus-right {
|
139 |
+
float:right;
|
140 |
+
display:inline !important;
|
141 |
+
}
|
142 |
+
#sidebar-nav-menu li ul[expanded="0"] {
|
143 |
+
display: none;
|
144 |
+
}
|
145 |
+
#sidebar-nav li.active > ul {
|
146 |
+
display: block;
|
147 |
+
}
|
148 |
+
#sidebar-nav li.active > .arrow-left,
|
149 |
+
#sidebar-nav li.active > .arrow-right,
|
150 |
+
#sidebar-nav li.active > .plus-left,
|
151 |
+
#sidebar-nav li.active > .plus-right {
|
152 |
+
display: block;
|
153 |
+
background-position: right center;
|
154 |
+
}
|
155 |
+
#sidebar-nav-menu > li.collapsible {
|
156 |
+
list-style: none !important;
|
157 |
+
}
|
158 |
+
#sidebar-nav .collapse-name {
|
159 |
+
cursor:pointer;
|
160 |
+
}
|
skin/frontend/default/default/css/sidenav.css
DELETED
@@ -1,96 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Magento
|
3 |
-
*
|
4 |
-
* NOTICE OF LICENSE
|
5 |
-
*
|
6 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
7 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
8 |
-
* It is also available through the world-wide-web at this URL:
|
9 |
-
* http://opensource.org/licenses/afl-3.0.php
|
10 |
-
* If you did not receive a copy of the license and are unable to
|
11 |
-
* obtain it through the world-wide-web, please send an email
|
12 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
13 |
-
*
|
14 |
-
* DISCLAIMER
|
15 |
-
*
|
16 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
17 |
-
* versions in the future. If you wish to customize Magento for your
|
18 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
19 |
-
*
|
20 |
-
* @category Codnitive
|
21 |
-
* @package Codnitive_Sidenav
|
22 |
-
* @author Hassan Barza <support@codnitive.com>
|
23 |
-
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
24 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
-
*/
|
26 |
-
|
27 |
-
/* <<< Sidebar Navigation ==================================================================== */
|
28 |
-
#sidebar-nav {
|
29 |
-
margin-bottom: 15px;
|
30 |
-
}
|
31 |
-
#sidebar-nav .block-title {
|
32 |
-
border: 0 none !important;
|
33 |
-
height: 18px !important;
|
34 |
-
background: url('../images/bkg_block-sidebarnav-title.gif') 0 0 no-repeat;
|
35 |
-
padding: 4px 9px 2px;
|
36 |
-
}
|
37 |
-
#sidebar-nav .block-title strong {
|
38 |
-
font: bold 13px/16px Arial, Helvetica, sans-serif;
|
39 |
-
text-transform: uppercase;
|
40 |
-
color: #FFF;
|
41 |
-
}
|
42 |
-
#sidebar-nav .block-content {
|
43 |
-
background: #DEE5E8 url('../images/bkg_block-sidebarnav-actions.gif') 0 0 repeat-x;
|
44 |
-
padding: 6px 9px;
|
45 |
-
border: 1px solid #C4C1BC;
|
46 |
-
overflow: auto;
|
47 |
-
}
|
48 |
-
#sidebar-nav .block-content a {
|
49 |
-
color: #0D004C;
|
50 |
-
}
|
51 |
-
ul#sidebar-nav-menu > li {
|
52 |
-
background: url('../images/bkg_block-sidebarnav-layered-dd.gif') 0 100% repeat-x;
|
53 |
-
list-style: inside disc;
|
54 |
-
font-weight: bold;
|
55 |
-
padding: 8px 0;
|
56 |
-
}
|
57 |
-
ul#sidebar-nav-menu > li:last-child {
|
58 |
-
background: none;
|
59 |
-
margin-bottom: 5px;
|
60 |
-
}
|
61 |
-
/*
|
62 |
-
ul#sidebar-nav-menu > li > ul {
|
63 |
-
margin-left: 5px;
|
64 |
-
}
|
65 |
-
*/
|
66 |
-
ul#sidebar-nav-menu li ul {
|
67 |
-
/* padding-left: 10px; */
|
68 |
-
font-weight: normal;
|
69 |
-
}
|
70 |
-
#sidebar-nav li.active,
|
71 |
-
#sidebar-nav li.active > a,
|
72 |
-
#sidebar-nav li.active > .collapsible-wrapper > a {
|
73 |
-
color: #D15E00;
|
74 |
-
}
|
75 |
-
#sidebar-nav ul.ul-thumb {
|
76 |
-
padding-left: 0;
|
77 |
-
}
|
78 |
-
ul#sidebar-nav-menu > li.parent > ul.ul-thumb {
|
79 |
-
padding-left: 10px;
|
80 |
-
}
|
81 |
-
#sidebar-nav li.thumb {
|
82 |
-
list-style-type: none;
|
83 |
-
}
|
84 |
-
ul#sidebar-nav-menu > li.no-thumb,
|
85 |
-
ul#sidebar-nav-menu > li.thumb {
|
86 |
-
margin-left: 0 !important;
|
87 |
-
list-style-type: none;
|
88 |
-
}
|
89 |
-
#sidebar-nav img {
|
90 |
-
border: 0 none !important;
|
91 |
-
outline: 0 none !important;
|
92 |
-
}
|
93 |
-
#sidebar-nav span.product-count {
|
94 |
-
color: #000;
|
95 |
-
}
|
96 |
-
/* >>> Sidebar Navigation ==================================================================== */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skin/frontend/default/default/css/sidenavcollapse.css
DELETED
@@ -1,54 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Magento
|
3 |
-
*
|
4 |
-
* NOTICE OF LICENSE
|
5 |
-
*
|
6 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
7 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
8 |
-
* It is also available through the world-wide-web at this URL:
|
9 |
-
* http://opensource.org/licenses/afl-3.0.php
|
10 |
-
* If you did not receive a copy of the license and are unable to
|
11 |
-
* obtain it through the world-wide-web, please send an email
|
12 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
13 |
-
*
|
14 |
-
* DISCLAIMER
|
15 |
-
*
|
16 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
17 |
-
* versions in the future. If you wish to customize Magento for your
|
18 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
19 |
-
*
|
20 |
-
* @category Codnitive
|
21 |
-
* @package Codnitive_Sidenav
|
22 |
-
* @author Hassan Barza <support@codnitive.com>
|
23 |
-
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
24 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
-
*/
|
26 |
-
|
27 |
-
/* <<< Sidebar Navigation ==================================================================== */
|
28 |
-
#sidebar-nav li.thumb img {
|
29 |
-
float: left;
|
30 |
-
margin-right: 3px;
|
31 |
-
}
|
32 |
-
#sidebar-nav-menu .arrow {
|
33 |
-
float: left;
|
34 |
-
background: url('../images/arrows.gif') left center no-repeat;
|
35 |
-
display: block;
|
36 |
-
margin-top: 2px;
|
37 |
-
/*width: 8px;
|
38 |
-
height: 8px;*/
|
39 |
-
margin: 3px 3px 0;
|
40 |
-
}
|
41 |
-
ul#sidebar-nav-menu li ul {
|
42 |
-
display: none;
|
43 |
-
}
|
44 |
-
#sidebar-nav li.active > ul {
|
45 |
-
display: block;
|
46 |
-
}
|
47 |
-
#sidebar-nav li.active > .arrow {
|
48 |
-
display: block;
|
49 |
-
background: url('../images/arrows.gif') right center no-repeat;
|
50 |
-
}
|
51 |
-
ul#sidebar-nav-menu > li {
|
52 |
-
list-style: none !important;
|
53 |
-
}
|
54 |
-
/* >>> Sidebar Navigation ==================================================================== */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skin/frontend/default/default/images/bkg_block-sidebarnav-title.gif
DELETED
Binary file
|
skin/frontend/default/default/images/codnitive/sidenav/arrows.gif
ADDED
Binary file
|
skin/frontend/default/default/images/codnitive/sidenav/arrows_blue.gif
ADDED
Binary file
|
skin/frontend/default/{modern/images/arrows.gif → default/images/codnitive/sidenav/arrows_green.gif}
RENAMED
File without changes
|
skin/frontend/default/default/images/codnitive/sidenav/arrows_right.gif
ADDED
Binary file
|
skin/frontend/default/default/images/codnitive/sidenav/arrowsorange.gif
ADDED
Binary file
|
skin/frontend/default/default/images/codnitive/sidenav/bkg_block-sidebarnav-actions.gif
ADDED
Binary file
|
skin/frontend/default/default/images/codnitive/sidenav/bkg_block-sidebarnav-layered-dd.gif
ADDED
Binary file
|
skin/frontend/default/default/images/codnitive/sidenav/bkg_block-sidebarnav-title.gif
ADDED
Binary file
|
skin/frontend/default/default/images/codnitive/sidenav/codnitive_logo.png
ADDED
Binary file
|
skin/frontend/default/default/images/codnitive/sidenav/home.png
ADDED
Binary file
|
skin/frontend/default/default/images/codnitive/sidenav/plus.gif
ADDED
Binary file
|
skin/frontend/default/default/images/codnitive/sidenav/plus_gray.gif
ADDED
Binary file
|
skin/frontend/default/default/images/codnitive/sidenav/plus_trans_small.gif
ADDED
Binary file
|
skin/frontend/default/default/js/sidenavcollapse.js
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Magento
|
3 |
-
*
|
4 |
-
* NOTICE OF LICENSE
|
5 |
-
*
|
6 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
7 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
8 |
-
* It is also available through the world-wide-web at this URL:
|
9 |
-
* http://opensource.org/licenses/afl-3.0.php
|
10 |
-
* If you did not receive a copy of the license and are unable to
|
11 |
-
* obtain it through the world-wide-web, please send an email
|
12 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
13 |
-
*
|
14 |
-
* DISCLAIMER
|
15 |
-
*
|
16 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
17 |
-
* versions in the future. If you wish to customize Magento for your
|
18 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
19 |
-
*
|
20 |
-
* @category Codnitive
|
21 |
-
* @package Codnitive_Sidenav
|
22 |
-
* @author Hassan Barza <support@codnitive.com>
|
23 |
-
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
24 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
-
*/
|
26 |
-
|
27 |
-
function expandMenu(parent)
|
28 |
-
{
|
29 |
-
var mode = parent.getElementsByTagName("ul")[0].getAttribute("expanded");
|
30 |
-
mode = mode == 1;
|
31 |
-
|
32 |
-
(mode) ? collapse(parent) : expand(parent);
|
33 |
-
}
|
34 |
-
|
35 |
-
function expand(parent)
|
36 |
-
{
|
37 |
-
parent.getElementsByTagName("ul")[0].style.display = "block";
|
38 |
-
parent.getElementsByTagName("span")[0].style.backgroundPosition = "right center";
|
39 |
-
parent.getElementsByTagName("ul")[0].setAttribute("expanded", "1");
|
40 |
-
}
|
41 |
-
|
42 |
-
function collapse(parent)
|
43 |
-
{
|
44 |
-
parent.getElementsByTagName("ul")[0].style.display = "none";
|
45 |
-
parent.getElementsByTagName("span")[0].style.backgroundPosition = "left center";
|
46 |
-
parent.getElementsByTagName("ul")[0].setAttribute("expanded", "0");
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skin/frontend/default/f002/css/codnitive/sidenav.css
ADDED
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* CODNITIVE
|
3 |
+
*
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
7 |
+
* that is bundled with this package in the file LICENSE.txt.
|
8 |
+
* It is also available through the world-wide-web at this URL:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
*
|
11 |
+
* DISCLAIMER
|
12 |
+
*
|
13 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
14 |
+
* versions in the future.
|
15 |
+
*
|
16 |
+
* @category Codnitive
|
17 |
+
* @package Codnitive_Sidenav
|
18 |
+
* @author Hassan Barza <support@codnitive.com>
|
19 |
+
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
+
*/
|
22 |
+
|
23 |
+
/* Sidebar Navigation ==================================================================== */
|
24 |
+
#sidebar-nav {
|
25 |
+
margin-bottom: 5px;
|
26 |
+
line-height: 1.4em;
|
27 |
+
font-size: .96em;
|
28 |
+
border: 0 none;
|
29 |
+
position: relative;
|
30 |
+
}
|
31 |
+
#sidebar-nav .block-title {
|
32 |
+
border: 1px solid #CCC;
|
33 |
+
border-radius: 8px 8px 0 0;
|
34 |
+
-webkit-border-radius: 8px 8px 0 0;
|
35 |
+
-moz-border-radius: 8px 8px 0 0;
|
36 |
+
background: #FCFDFD url('../../images/box-header-bg.gif') 0 100% repeat-x;
|
37 |
+
margin: 0;
|
38 |
+
padding: 2px 10px 0;
|
39 |
+
}
|
40 |
+
#sidebar-nav .block-title strong {
|
41 |
+
display: block;
|
42 |
+
font: bold 12px/16px Arial, Helvetica, sans-serif;
|
43 |
+
min-height: 16px;
|
44 |
+
line-height: 30px;
|
45 |
+
color: #007ED3;
|
46 |
+
}
|
47 |
+
#sidebar-nav .block-content {
|
48 |
+
background: #FCFCFC url('../../images/box-content-bg.gif') 0 0 repeat-x;
|
49 |
+
padding: 5px;
|
50 |
+
border: 1px solid #CCC;
|
51 |
+
border-top: 0 none !important;
|
52 |
+
border-radius: 0 0 8px 8px;
|
53 |
+
-webkit-border-radius: 0 0 8px 8px;
|
54 |
+
-moz-border-radius: 0 0 8px 8px;
|
55 |
+
overflow: auto;
|
56 |
+
}
|
57 |
+
#sidebar-nav .block-content a {
|
58 |
+
color: #555452;
|
59 |
+
line-height: 1.7;
|
60 |
+
}
|
61 |
+
#sidebar-nav-menu {
|
62 |
+
margin: 0;
|
63 |
+
padding: 5px 9px;
|
64 |
+
}
|
65 |
+
#sidebar-nav-menu > li {
|
66 |
+
list-style: inside disc;
|
67 |
+
font-weight: bold;
|
68 |
+
padding: 5px 0;
|
69 |
+
}
|
70 |
+
#sidebar-nav-menu > li > a {
|
71 |
+
color: #2F2F2F !important;
|
72 |
+
}
|
73 |
+
#sidebar-nav-menu > li.last {
|
74 |
+
margin-bottom: 5px;
|
75 |
+
}
|
76 |
+
#sidebar-nav-menu li ul {
|
77 |
+
font-weight: normal;
|
78 |
+
}
|
79 |
+
#sidebar-nav li.active,
|
80 |
+
#sidebar-nav li.active > a,
|
81 |
+
#sidebar-nav li.active > .collapsible-wrapper > a {
|
82 |
+
color: #005B98 !important;
|
83 |
+
}
|
84 |
+
#sidebar-nav ul.ul-thumb {
|
85 |
+
padding-left: 0;
|
86 |
+
}
|
87 |
+
#sidebar-nav-menu > li.parent > ul.ul-thumb {
|
88 |
+
padding-left: 10px;
|
89 |
+
}
|
90 |
+
#sidebar-nav li.thumb {
|
91 |
+
list-style-type: none;
|
92 |
+
}
|
93 |
+
#sidebar-nav-menu > li.no-thumb,
|
94 |
+
#sidebar-nav-menu > li.thumb {
|
95 |
+
margin-left: 0 !important;
|
96 |
+
list-style-type: none;
|
97 |
+
}
|
98 |
+
#sidebar-nav img {
|
99 |
+
border: 0 none !important;
|
100 |
+
outline: 0 none !important;
|
101 |
+
}
|
102 |
+
#sidebar-nav span.product-count {
|
103 |
+
color: #000;
|
104 |
+
}
|
105 |
+
#sidebar-nav .home {
|
106 |
+
list-style: none !important;
|
107 |
+
}
|
108 |
+
#sidebar-nav .home a {
|
109 |
+
display:inline-block;
|
110 |
+
padding-left:20px;
|
111 |
+
background:url('../../images/codnitive/sidenav/home.png') left top no-repeat;
|
112 |
+
min-height:16px;
|
113 |
+
}
|
114 |
+
#sidebar-nav .support-logo-wrapper {
|
115 |
+
margin-top:10px;
|
116 |
+
}
|
117 |
+
#sidebar-nav .support_logo {
|
118 |
+
font-size: 9px;
|
119 |
+
float: right;
|
120 |
+
right: 5px;
|
121 |
+
bottom: 5px;
|
122 |
+
text-decoration: none;
|
123 |
+
}
|
124 |
+
#sidebar-nav .support_logo img {
|
125 |
+
max-width: 65px;
|
126 |
+
}
|
127 |
+
|
128 |
+
/* Collapsible Design ==================================================================== */
|
129 |
+
#sidebar-nav li.thumb .thumb-img-left {
|
130 |
+
float: left;
|
131 |
+
margin: 1px 3px 0 0;
|
132 |
+
}
|
133 |
+
#sidebar-nav li.thumb .thumb-img-right {
|
134 |
+
float: right;
|
135 |
+
margin: 1px 3px 0;
|
136 |
+
}
|
137 |
+
#sidebar-nav-menu .arrow-left,
|
138 |
+
#sidebar-nav-menu .arrow-right,
|
139 |
+
#sidebar-nav-menu .plus-left,
|
140 |
+
#sidebar-nav-menu .plus-right {
|
141 |
+
float: left;
|
142 |
+
background: url('../../images/codnitive/sidenav/arrows.gif') left center no-repeat;
|
143 |
+
display: block;
|
144 |
+
margin-top: 2px;
|
145 |
+
margin: 1px 3px 0;
|
146 |
+
cursor:pointer;
|
147 |
+
}
|
148 |
+
#sidebar-nav-menu .plus-left,
|
149 |
+
#sidebar-nav-menu .plus-right
|
150 |
+
{
|
151 |
+
background-image: url('../../images/codnitive/sidenav/plus.gif');
|
152 |
+
}
|
153 |
+
#sidebar-nav-menu .arrow-right,
|
154 |
+
#sidebar-nav-menu .plus-right {
|
155 |
+
float:right;
|
156 |
+
display:inline !important;
|
157 |
+
}
|
158 |
+
#sidebar-nav-menu li ul[expanded="0"] {
|
159 |
+
display: none;
|
160 |
+
}
|
161 |
+
#sidebar-nav li.active > ul {
|
162 |
+
display: block;
|
163 |
+
}
|
164 |
+
#sidebar-nav li.active > .arrow-left,
|
165 |
+
#sidebar-nav li.active > .arrow-right,
|
166 |
+
#sidebar-nav li.active > .plus-left,
|
167 |
+
#sidebar-nav li.active > .plus-right {
|
168 |
+
display: block;
|
169 |
+
background-position: right center;
|
170 |
+
}
|
171 |
+
#sidebar-nav-menu > li.collapsible {
|
172 |
+
list-style: none !important;
|
173 |
+
}
|
174 |
+
#sidebar-nav .collapse-name {
|
175 |
+
cursor:pointer;
|
176 |
+
}
|
skin/frontend/default/f002/css/sidenav.css
DELETED
@@ -1,112 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Magento
|
3 |
-
*
|
4 |
-
* NOTICE OF LICENSE
|
5 |
-
*
|
6 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
7 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
8 |
-
* It is also available through the world-wide-web at this URL:
|
9 |
-
* http://opensource.org/licenses/afl-3.0.php
|
10 |
-
* If you did not receive a copy of the license and are unable to
|
11 |
-
* obtain it through the world-wide-web, please send an email
|
12 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
13 |
-
*
|
14 |
-
* DISCLAIMER
|
15 |
-
*
|
16 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
17 |
-
* versions in the future. If you wish to customize Magento for your
|
18 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
19 |
-
*
|
20 |
-
* @category Codnitive
|
21 |
-
* @package Codnitive_Sidenav
|
22 |
-
* @author Hassan Barza <support@codnitive.com>
|
23 |
-
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
24 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
-
*/
|
26 |
-
|
27 |
-
/* <<< Sidebar Navigation ==================================================================== */
|
28 |
-
#sidebar-nav {
|
29 |
-
margin-bottom: 5px;
|
30 |
-
line-height: 1.4em;
|
31 |
-
font-size: .96em;
|
32 |
-
}
|
33 |
-
#sidebar-nav .block-title {
|
34 |
-
border: 1px solid #CCC;
|
35 |
-
border-radius: 8px 8px 0 0;
|
36 |
-
-webkit-border-radius: 8px 8px 0 0;
|
37 |
-
-moz-border-radius: 8px 8px 0 0;
|
38 |
-
background: #FCFDFD url('../images/box-header-bg.gif') 0 100% repeat-x;
|
39 |
-
margin: 0;
|
40 |
-
padding: 2px 10px 0;
|
41 |
-
}
|
42 |
-
#sidebar-nav .block-title strong {
|
43 |
-
display: block;
|
44 |
-
font: bold 12px/16px Arial, Helvetica, sans-serif;
|
45 |
-
min-height: 16px;
|
46 |
-
line-height: 30px;
|
47 |
-
color: #007ED3;
|
48 |
-
}
|
49 |
-
#sidebar-nav .block-content {
|
50 |
-
background: #FCFCFC url('../images/box-content-bg.gif') 0 0 repeat-x;
|
51 |
-
padding: 5px;
|
52 |
-
border: 1px solid #CCC;
|
53 |
-
border-top: 0 none !important;
|
54 |
-
border-radius: 0 0 8px 8px;
|
55 |
-
-webkit-border-radius: 0 0 8px 8px;
|
56 |
-
-moz-border-radius: 0 0 8px 8px;
|
57 |
-
overflow: auto;
|
58 |
-
}
|
59 |
-
#sidebar-nav .block-content a {
|
60 |
-
color: #555452;
|
61 |
-
}
|
62 |
-
ul#sidebar-nav-menu {
|
63 |
-
margin: 0;
|
64 |
-
padding: 5px 9px;
|
65 |
-
}
|
66 |
-
ul#sidebar-nav-menu > li {
|
67 |
-
list-style: inside disc;
|
68 |
-
font-weight: bold;
|
69 |
-
padding: 5px 0;
|
70 |
-
}
|
71 |
-
ul#sidebar-nav-menu > li > a {
|
72 |
-
color: #2F2F2F !important;
|
73 |
-
}
|
74 |
-
ul#sidebar-nav-menu > li:last-child {
|
75 |
-
margin-bottom: 5px;
|
76 |
-
}
|
77 |
-
/*
|
78 |
-
ul#sidebar-nav-menu > li > ul {
|
79 |
-
margin-left: 5px;
|
80 |
-
}
|
81 |
-
*/
|
82 |
-
ul#sidebar-nav-menu li ul {
|
83 |
-
/* padding-left: 10px; */
|
84 |
-
font-weight: normal;
|
85 |
-
}
|
86 |
-
#sidebar-nav li.active,
|
87 |
-
#sidebar-nav li.active > a,
|
88 |
-
#sidebar-nav li.active > .collapsible-wrapper > a {
|
89 |
-
color: #005B98 !important;
|
90 |
-
}
|
91 |
-
#sidebar-nav ul.ul-thumb {
|
92 |
-
padding-left: 0;
|
93 |
-
}
|
94 |
-
ul#sidebar-nav-menu > li.parent > ul.ul-thumb {
|
95 |
-
padding-left: 10px;
|
96 |
-
}
|
97 |
-
#sidebar-nav li.thumb {
|
98 |
-
list-style-type: none;
|
99 |
-
}
|
100 |
-
ul#sidebar-nav-menu > li.no-thumb,
|
101 |
-
ul#sidebar-nav-menu > li.thumb {
|
102 |
-
margin-left: 0 !important;
|
103 |
-
list-style-type: none;
|
104 |
-
}
|
105 |
-
#sidebar-nav img {
|
106 |
-
border: 0 none !important;
|
107 |
-
outline: 0 none !important;
|
108 |
-
}
|
109 |
-
#sidebar-nav span.product-count {
|
110 |
-
color: #000;
|
111 |
-
}
|
112 |
-
/* >>> Sidebar Navigation ==================================================================== */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skin/frontend/default/f002/images/codnitive/sidenav/arrows.gif
ADDED
Binary file
|
skin/frontend/default/f002/images/codnitive/sidenav/arrows_blue.gif
ADDED
Binary file
|
skin/frontend/default/f002/images/codnitive/sidenav/arrows_green.gif
ADDED
Binary file
|
skin/frontend/default/f002/images/codnitive/sidenav/arrows_right.gif
ADDED
Binary file
|
skin/frontend/default/f002/images/codnitive/sidenav/arrowsorange.gif
ADDED
Binary file
|
skin/frontend/default/f002/images/codnitive/sidenav/bkg_block-sidebarnav-actions.gif
ADDED
Binary file
|
skin/frontend/default/f002/images/codnitive/sidenav/bkg_block-sidebarnav-layered-dd.gif
ADDED
Binary file
|
skin/frontend/default/f002/images/codnitive/sidenav/bkg_block-sidebarnav-title.gif
ADDED
Binary file
|
skin/frontend/default/f002/images/codnitive/sidenav/codnitive_logo.png
ADDED
Binary file
|
skin/frontend/default/f002/images/codnitive/sidenav/home.png
ADDED
Binary file
|
skin/frontend/default/f002/images/codnitive/sidenav/plus.gif
ADDED
Binary file
|
skin/frontend/default/f002/images/codnitive/sidenav/plus_gray.gif
ADDED
Binary file
|
skin/frontend/default/f002/images/codnitive/sidenav/plus_trans_small.gif
ADDED
Binary file
|
skin/frontend/default/f002/images/codnitive/sidenav/plus_white.gif
ADDED
Binary file
|
skin/frontend/default/modern/css/codnitive/sidenav.css
ADDED
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* CODNITIVE
|
3 |
+
*
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
7 |
+
* that is bundled with this package in the file LICENSE.txt.
|
8 |
+
* It is also available through the world-wide-web at this URL:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
*
|
11 |
+
* DISCLAIMER
|
12 |
+
*
|
13 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
14 |
+
* versions in the future.
|
15 |
+
*
|
16 |
+
* @category Codnitive
|
17 |
+
* @package Codnitive_Sidenav
|
18 |
+
* @author Hassan Barza <support@codnitive.com>
|
19 |
+
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
+
*/
|
22 |
+
|
23 |
+
/* Sidebar Navigation ==================================================================== */
|
24 |
+
#sidebar-nav {
|
25 |
+
margin-bottom: 20px;
|
26 |
+
border: 0 none;
|
27 |
+
}
|
28 |
+
#sidebar-nav .block-title {
|
29 |
+
border: 0 none !important;
|
30 |
+
height: 18px !important;
|
31 |
+
background: url('../../images/codnitive/sidenav/bkg_block-sidebarnav-title.gif') 0 0 repeat-x;
|
32 |
+
padding: 4px 10px 2px;
|
33 |
+
}
|
34 |
+
#sidebar-nav .block-title strong {
|
35 |
+
font: bold 12px/16px Arial, Helvetica, sans-serif;
|
36 |
+
text-transform: uppercase;
|
37 |
+
color: #FFF;
|
38 |
+
}
|
39 |
+
#sidebar-nav .block-content {
|
40 |
+
background: #EFEFEF url('../../images/codnitive/sidenav/bkg_block-sidebarnav-actions.gif') 0 0 repeat-x;
|
41 |
+
padding: 12px 10px;
|
42 |
+
border: 1px solid #C4C1BC;
|
43 |
+
overflow: auto;
|
44 |
+
}
|
45 |
+
#sidebar-nav .block-content a {
|
46 |
+
color: #444;
|
47 |
+
line-height: 1.7;
|
48 |
+
}
|
49 |
+
#sidebar-nav-menu > li {
|
50 |
+
border-bottom: 1px solid #CCC;
|
51 |
+
list-style: inside disc;
|
52 |
+
font-weight: bold;
|
53 |
+
padding: 8px 0;
|
54 |
+
}
|
55 |
+
#sidebar-nav-menu > li.last {
|
56 |
+
border-bottom: 0 none;
|
57 |
+
}
|
58 |
+
#sidebar-nav-menu li ul {
|
59 |
+
font-weight: normal;
|
60 |
+
}
|
61 |
+
#sidebar-nav li.active,
|
62 |
+
#sidebar-nav li.active > a,
|
63 |
+
#sidebar-nav li.active > .collapsible-wrapper > a {
|
64 |
+
color: #008000;
|
65 |
+
}
|
66 |
+
#sidebar-nav ul.ul-thumb {
|
67 |
+
padding-left: 0;
|
68 |
+
}
|
69 |
+
#sidebar-nav-menu > li.parent > ul.ul-thumb {
|
70 |
+
padding-left: 10px;
|
71 |
+
}
|
72 |
+
#sidebar-nav li.thumb {
|
73 |
+
list-style-type: none;
|
74 |
+
}
|
75 |
+
#sidebar-nav-menu > li.no-thumb,
|
76 |
+
#sidebar-nav-menu > li.thumb {
|
77 |
+
margin-left: 0 !important;
|
78 |
+
list-style-type: none;
|
79 |
+
}
|
80 |
+
#sidebar-nav img {
|
81 |
+
border: 0 none !important;
|
82 |
+
outline: 0 none !important;
|
83 |
+
}
|
84 |
+
#sidebar-nav span.product-count {
|
85 |
+
color: #000;
|
86 |
+
}
|
87 |
+
#sidebar-nav .home {
|
88 |
+
list-style: none !important;
|
89 |
+
}
|
90 |
+
#sidebar-nav .home a {
|
91 |
+
display:inline-block;
|
92 |
+
padding-left:20px;
|
93 |
+
background:url('../../images/codnitive/sidenav/home.png') left top no-repeat;
|
94 |
+
min-height:16px;
|
95 |
+
}
|
96 |
+
#sidebar-nav .support-logo-wrapper {
|
97 |
+
margin-top:10px;
|
98 |
+
}
|
99 |
+
#sidebar-nav .support_logo {
|
100 |
+
font-size: 9px;
|
101 |
+
float: right;
|
102 |
+
right: 5px;
|
103 |
+
bottom: 5px;
|
104 |
+
text-decoration: none;
|
105 |
+
}
|
106 |
+
#sidebar-nav .support_logo img {
|
107 |
+
max-width: 65px;
|
108 |
+
}
|
109 |
+
|
110 |
+
/* Collapsible Design ==================================================================== */
|
111 |
+
#sidebar-nav li.thumb .thumb-img-left {
|
112 |
+
float: left;
|
113 |
+
margin: 1px 3px 0 0;
|
114 |
+
}
|
115 |
+
#sidebar-nav li.thumb .thumb-img-right {
|
116 |
+
float: right;
|
117 |
+
margin: 1px 3px 0;
|
118 |
+
}
|
119 |
+
#sidebar-nav-menu .arrow-left,
|
120 |
+
#sidebar-nav-menu .arrow-right,
|
121 |
+
#sidebar-nav-menu .plus-left,
|
122 |
+
#sidebar-nav-menu .plus-right {
|
123 |
+
float: left;
|
124 |
+
background: url('../../images/codnitive/sidenav/arrows.gif') left center no-repeat;
|
125 |
+
display: block;
|
126 |
+
margin-top: 2px;
|
127 |
+
margin: 1px 3px 0;
|
128 |
+
cursor:pointer;
|
129 |
+
}
|
130 |
+
#sidebar-nav-menu .plus-left,
|
131 |
+
#sidebar-nav-menu .plus-right
|
132 |
+
{
|
133 |
+
background-image: url('../../images/codnitive/sidenav/plus.gif');
|
134 |
+
}
|
135 |
+
#sidebar-nav-menu .arrow-right,
|
136 |
+
#sidebar-nav-menu .plus-right {
|
137 |
+
float:right;
|
138 |
+
display:inline !important;
|
139 |
+
}
|
140 |
+
#sidebar-nav-menu li ul[expanded="0"] {
|
141 |
+
display: none;
|
142 |
+
}
|
143 |
+
#sidebar-nav li.active > ul {
|
144 |
+
display: block;
|
145 |
+
}
|
146 |
+
#sidebar-nav li.active > .arrow-left,
|
147 |
+
#sidebar-nav li.active > .arrow-right,
|
148 |
+
#sidebar-nav li.active > .plus-left,
|
149 |
+
#sidebar-nav li.active > .plus-right {
|
150 |
+
display: block;
|
151 |
+
background-position: right center;
|
152 |
+
}
|
153 |
+
#sidebar-nav-menu > li.collapsible {
|
154 |
+
list-style: none !important;
|
155 |
+
}
|
156 |
+
#sidebar-nav .collapse-name {
|
157 |
+
cursor:pointer;
|
158 |
+
}
|
skin/frontend/default/modern/css/sidenav.css
DELETED
@@ -1,95 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Magento
|
3 |
-
*
|
4 |
-
* NOTICE OF LICENSE
|
5 |
-
*
|
6 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
7 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
8 |
-
* It is also available through the world-wide-web at this URL:
|
9 |
-
* http://opensource.org/licenses/afl-3.0.php
|
10 |
-
* If you did not receive a copy of the license and are unable to
|
11 |
-
* obtain it through the world-wide-web, please send an email
|
12 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
13 |
-
*
|
14 |
-
* DISCLAIMER
|
15 |
-
*
|
16 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
17 |
-
* versions in the future. If you wish to customize Magento for your
|
18 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
19 |
-
*
|
20 |
-
* @category Codnitive
|
21 |
-
* @package Codnitive_Sidenav
|
22 |
-
* @author Hassan Barza <support@codnitive.com>
|
23 |
-
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
24 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
-
*/
|
26 |
-
|
27 |
-
/* <<< Sidebar Navigation ==================================================================== */
|
28 |
-
#sidebar-nav {
|
29 |
-
margin-bottom: 20px;
|
30 |
-
}
|
31 |
-
#sidebar-nav .block-title {
|
32 |
-
border: 0 none !important;
|
33 |
-
height: 18px !important;
|
34 |
-
background: url('../images/bkg_block-sidebarnav-title.gif') 0 0 no-repeat;
|
35 |
-
padding: 4px 10px 2px;
|
36 |
-
}
|
37 |
-
#sidebar-nav .block-title strong {
|
38 |
-
font: bold 12px/16px Arial, Helvetica, sans-serif;
|
39 |
-
text-transform: uppercase;
|
40 |
-
color: #FFF;
|
41 |
-
}
|
42 |
-
#sidebar-nav .block-content {
|
43 |
-
background: #EFEFEF url('../images/bkg_block-sidebarnav-actions.gif') 0 0 repeat-x;
|
44 |
-
padding: 12px 10px;
|
45 |
-
border: 1px solid #C4C1BC;
|
46 |
-
overflow: auto;
|
47 |
-
}
|
48 |
-
#sidebar-nav .block-content a {
|
49 |
-
color: #444;
|
50 |
-
}
|
51 |
-
ul#sidebar-nav-menu > li {
|
52 |
-
border-bottom: 1px solid #CCC;
|
53 |
-
list-style: inside disc;
|
54 |
-
font-weight: bold;
|
55 |
-
padding: 8px 0;
|
56 |
-
}
|
57 |
-
ul#sidebar-nav-menu > li:last-child {
|
58 |
-
border-bottom: 0 none;
|
59 |
-
}
|
60 |
-
/*
|
61 |
-
ul#sidebar-nav-menu > li > ul {
|
62 |
-
margin-left: 5px;
|
63 |
-
}
|
64 |
-
*/
|
65 |
-
ul#sidebar-nav-menu li ul {
|
66 |
-
/* padding-left: 10px; */
|
67 |
-
font-weight: normal;
|
68 |
-
}
|
69 |
-
#sidebar-nav li.active,
|
70 |
-
#sidebar-nav li.active > a,
|
71 |
-
#sidebar-nav li.active > .collapsible-wrapper > a {
|
72 |
-
color: #008000;
|
73 |
-
}
|
74 |
-
#sidebar-nav ul.ul-thumb {
|
75 |
-
padding-left: 0;
|
76 |
-
}
|
77 |
-
ul#sidebar-nav-menu > li.parent > ul.ul-thumb {
|
78 |
-
padding-left: 10px;
|
79 |
-
}
|
80 |
-
#sidebar-nav li.thumb {
|
81 |
-
list-style-type: none;
|
82 |
-
}
|
83 |
-
ul#sidebar-nav-menu > li.no-thumb,
|
84 |
-
ul#sidebar-nav-menu > li.thumb {
|
85 |
-
margin-left: 0 !important;
|
86 |
-
list-style-type: none;
|
87 |
-
}
|
88 |
-
#sidebar-nav img {
|
89 |
-
border: 0 none !important;
|
90 |
-
outline: 0 none !important;
|
91 |
-
}
|
92 |
-
#sidebar-nav span.product-count {
|
93 |
-
color: #000;
|
94 |
-
}
|
95 |
-
/* >>> Sidebar Navigation ==================================================================== */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skin/frontend/default/modern/css/sidenavcollapse.css.bak
DELETED
@@ -1,54 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Magento
|
3 |
-
*
|
4 |
-
* NOTICE OF LICENSE
|
5 |
-
*
|
6 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
7 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
8 |
-
* It is also available through the world-wide-web at this URL:
|
9 |
-
* http://opensource.org/licenses/afl-3.0.php
|
10 |
-
* If you did not receive a copy of the license and are unable to
|
11 |
-
* obtain it through the world-wide-web, please send an email
|
12 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
13 |
-
*
|
14 |
-
* DISCLAIMER
|
15 |
-
*
|
16 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
17 |
-
* versions in the future. If you wish to customize Magento for your
|
18 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
19 |
-
*
|
20 |
-
* @category Codnitive
|
21 |
-
* @package Codnitive_Sidenav
|
22 |
-
* @author Hassan Barza <support@codnitive.com>
|
23 |
-
* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
|
24 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
-
*/
|
26 |
-
|
27 |
-
/* <<< Sidebar Navigation ==================================================================== */
|
28 |
-
#sidebar-nav li.thumb img {
|
29 |
-
float: left;
|
30 |
-
/*margin-right: 3px;*/
|
31 |
-
}
|
32 |
-
#sidebar-nav-menu .arrow {
|
33 |
-
float: left;
|
34 |
-
background: url('../images/arrows.gif') left center no-repeat;
|
35 |
-
display: block;
|
36 |
-
margin-top: 2px;
|
37 |
-
/*width: 8px;
|
38 |
-
height: 8px;*/
|
39 |
-
margin: 3px 3px 0;
|
40 |
-
}
|
41 |
-
ul#sidebar-nav-menu li ul {
|
42 |
-
display: none;
|
43 |
-
}
|
44 |
-
#sidebar-nav li.active > ul {
|
45 |
-
display: block;
|
46 |
-
}
|
47 |
-
#sidebar-nav li.active > .arrow {
|
48 |
-
display: block;
|
49 |
-
background: url('../images/arrows.gif') right center no-repeat;
|
50 |
-
}
|
51 |
-
ul#sidebar-nav-menu > li {
|
52 |
-
list-style: none !important;
|
53 |
-
}
|
54 |
-
/* >>> Sidebar Navigation ==================================================================== */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skin/frontend/default/modern/images/bkg_block-sidebarnav-title.gif
DELETED
Binary file
|
skin/frontend/default/modern/images/codnitive/sidenav/arrows.gif
ADDED
Binary file
|
skin/frontend/default/modern/images/codnitive/sidenav/arrows_blue.gif
ADDED
Binary file
|
skin/frontend/default/modern/images/codnitive/sidenav/arrows_green.gif
ADDED
Binary file
|
skin/frontend/default/modern/images/codnitive/sidenav/arrows_right.gif
ADDED
Binary file
|
skin/frontend/default/modern/images/codnitive/sidenav/arrowsorange.gif
ADDED
Binary file
|
skin/frontend/default/modern/images/{bkg_block-sidebarnav-actions.gif → codnitive/sidenav/bkg_block-sidebarnav-actions.gif}
RENAMED
File without changes
|
skin/frontend/default/modern/images/codnitive/sidenav/bkg_block-sidebarnav-layered-dd.gif
ADDED
Binary file
|
skin/frontend/default/modern/images/codnitive/sidenav/bkg_block-sidebarnav-title.gif
ADDED
Binary file
|
skin/frontend/default/modern/images/codnitive/sidenav/codnitive_logo.png
ADDED
Binary file
|
skin/frontend/default/modern/images/codnitive/sidenav/home.png
ADDED
Binary file
|
skin/frontend/default/modern/images/codnitive/sidenav/plus.gif
ADDED
Binary file
|
skin/frontend/default/modern/images/codnitive/sidenav/plus_gray.gif
ADDED
Binary file
|
skin/frontend/default/modern/images/codnitive/sidenav/plus_trans_small.gif
ADDED
Binary file
|