Version Notes
Version 0.1.3
Download this release
Release Info
Developer | Magebuzz |
Extension | magebuzz_category_sidebar_navigation |
Version | 0.1.3 |
Comparing to | |
See all releases |
Code changes from version 0.1.1 to 0.1.3
- app/code/community/Magebuzz/Catsidebarnav/Block/Catsidebarnav.php +34 -28
- app/code/community/Magebuzz/Catsidebarnav/Block/Sidebar.php +152 -147
- app/code/community/Magebuzz/Catsidebarnav/Helper/Category.php +28 -24
- app/code/community/Magebuzz/Catsidebarnav/Helper/Data.php +12 -10
- app/code/community/Magebuzz/Catsidebarnav/Model/Catsidebarnav.php +8 -6
- app/code/community/Magebuzz/Catsidebarnav/Model/Mysql4/Catsidebarnav.php +8 -6
- app/code/community/Magebuzz/Catsidebarnav/Model/Mysql4/Catsidebarnav/Collection.php +8 -6
- app/code/community/Magebuzz/Catsidebarnav/Model/Session.php +8 -6
- app/code/community/Magebuzz/Catsidebarnav/Model/Status.php +12 -10
- app/code/community/Magebuzz/Catsidebarnav/Model/System/Config/Position.php +11 -10
- app/code/community/Magebuzz/Catsidebarnav/Model/System/Config/Showlevel.php +15 -13
- app/code/community/Magebuzz/Catsidebarnav/Model/System/Config/Type.php +13 -11
- app/code/community/Magebuzz/Catsidebarnav/Model/Wysiwyg/Config.php +29 -26
- app/code/community/Magebuzz/Catsidebarnav/controllers/IndexController.php +8 -5
- app/code/community/Magebuzz/Catsidebarnav/etc/adminhtml.xml +23 -23
- app/code/community/Magebuzz/Catsidebarnav/etc/config.xml +127 -126
- app/code/community/Magebuzz/Catsidebarnav/etc/system.xml +75 -66
- app/code/{community → local}/Magebuzz/Info/Block/System/Config/Extensions.php +0 -0
- app/code/{community → local}/Magebuzz/Info/Block/System/Config/General.php +0 -0
- app/code/{community → local}/Magebuzz/Info/Helper/Data.php +0 -0
- app/code/{community → local}/Magebuzz/Info/Model/Feed.php +0 -0
- app/code/{community → local}/Magebuzz/Info/etc/adminhtml.xml +0 -0
- app/code/{community → local}/Magebuzz/Info/etc/config.xml +0 -0
- app/code/{community → local}/Magebuzz/Info/etc/system.xml +0 -0
- app/design/adminhtml/default/default/layout/catsidebarnav.xml +12 -0
- app/design/frontend/base/default/layout/catsidebarnav.xml +20 -17
- app/design/frontend/base/default/template/catsidebarnav/catsidebarnav.phtml +18 -13
- app/etc/modules/Magebuzz_Catsidebarnav.xml +7 -7
- app/etc/modules/Magebuzz_Info.xml +1 -1
- package.xml +12 -10
- skin/frontend/base/default/css/magebuzz/catsidebarnav/fly-out.css +36 -36
- skin/frontend/base/default/js/magebuzz/catsidebarnav/click2click.js +13 -23
app/code/community/Magebuzz/Catsidebarnav/Block/Catsidebarnav.php
CHANGED
@@ -1,34 +1,40 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
2 |
class Magebuzz_Catsidebarnav_Block_Catsidebarnav extends Mage_Catalog_Block_Navigation
|
3 |
{
|
4 |
-
|
5 |
-
|
6 |
}
|
7 |
-
|
8 |
-
public function getCatsidebarnav() {
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
return $this->getData('catsidebarnav');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
}
|
14 |
-
public function leftSidebarBlock() {
|
15 |
-
$block = $this->getParentBlock();
|
16 |
-
if($block) {
|
17 |
-
|
18 |
-
if(Mage::helper('catsidebarnav')->displayOnSideBar() == 'left') {
|
19 |
-
$sidebarBlock = $this->getLayout()->createBlock('catsidebarnav/sidebar');
|
20 |
-
$block->insert($sidebarBlock,'', false, 'cat-sidebar');
|
21 |
-
}
|
22 |
-
}
|
23 |
-
}
|
24 |
-
public function rightSidebarBlock() {
|
25 |
-
$block = $this->getParentBlock();
|
26 |
-
if($block) {
|
27 |
-
if(Mage::helper('catsidebarnav')->displayOnSideBar() == 'right') {
|
28 |
-
$sidebarBlock = $this->getLayout()->createBlock('catsidebarnav/sidebar');
|
29 |
-
|
30 |
-
$block->insert($sidebarBlock, '', false, 'cat-sidebar');
|
31 |
-
}
|
32 |
-
}
|
33 |
-
}
|
34 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @author Magebuzz <support@magebuzz.com>
|
4 |
+
*/
|
5 |
class Magebuzz_Catsidebarnav_Block_Catsidebarnav extends Mage_Catalog_Block_Navigation
|
6 |
{
|
7 |
+
public function _prepareLayout() {
|
8 |
+
return parent::_prepareLayout();
|
9 |
}
|
10 |
+
|
11 |
+
public function getCatsidebarnav() {
|
12 |
+
if (!$this->hasData('catsidebarnav')) {
|
13 |
+
$this->setData('catsidebarnav', Mage::registry('catsidebarnav'));
|
14 |
+
}
|
15 |
+
return $this->getData('catsidebarnav');
|
16 |
+
}
|
17 |
+
public function leftSidebarBlock() {
|
18 |
+
if (Mage::helper('catsidebarnav')->isEnabled()) {
|
19 |
+
$block = $this->getParentBlock();
|
20 |
+
if($block) {
|
21 |
+
if(Mage::helper('catsidebarnav')->displayOnSideBar() == 'left') {
|
22 |
+
$sidebarBlock = $this->getLayout()->createBlock('catsidebarnav/sidebar');
|
23 |
+
$block->insert($sidebarBlock,'', false, 'cat-sidebar');
|
24 |
+
}
|
25 |
+
}
|
26 |
+
}
|
27 |
+
}
|
28 |
+
public function rightSidebarBlock() {
|
29 |
+
if (Mage::helper('catsidebarnav')->isEnabled()) {
|
30 |
+
$block = $this->getParentBlock();
|
31 |
+
if($block) {
|
32 |
+
if(Mage::helper('catsidebarnav')->displayOnSideBar() == 'right') {
|
33 |
+
$sidebarBlock = $this->getLayout()->createBlock('catsidebarnav/sidebar');
|
34 |
+
|
35 |
+
$block->insert($sidebarBlock, '', false, 'cat-sidebar');
|
36 |
+
}
|
37 |
+
}
|
38 |
+
}
|
39 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
app/code/community/Magebuzz/Catsidebarnav/Block/Sidebar.php
CHANGED
@@ -1,159 +1,164 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
2 |
class Magebuzz_Catsidebarnav_Block_Sidebar extends Magebuzz_Catsidebarnav_Block_Catsidebarnav
|
3 |
{
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
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 |
-
|
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 |
|
150 |
-
|
151 |
|
152 |
-
|
153 |
-
|
|
|
|
|
|
|
|
|
154 |
}
|
155 |
-
public function addCssJsHead() {
|
156 |
-
|
157 |
-
return $this;
|
158 |
-
}
|
159 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @author Magebuzz <support@magebuzz.com>
|
4 |
+
*/
|
5 |
class Magebuzz_Catsidebarnav_Block_Sidebar extends Magebuzz_Catsidebarnav_Block_Catsidebarnav
|
6 |
{
|
7 |
+
public function _construct() {
|
8 |
+
$this->setTemplate('catsidebarnav/catsidebarnav.phtml');
|
9 |
+
return parent::_construct();
|
10 |
+
}
|
11 |
+
public function _prepareLayout() {
|
12 |
+
if (Mage::helper('catsidebarnav')->isEnabled()) {
|
13 |
+
$headBlock = $this->getLayout()->getBlock('head');
|
14 |
+
if ($headBlock) {
|
15 |
+
$type = Mage::helper('catsidebarnav')->getShowType();
|
16 |
+
switch($type) {
|
17 |
+
case "static":
|
18 |
+
$headBlock->addCss('css/magebuzz/catsidebarnav/static.css');
|
19 |
+
break;
|
20 |
+
case "click-2-click":
|
21 |
+
$headBlock->addCss('css/magebuzz/catsidebarnav/click.css');
|
22 |
+
$headBlock->addItem('skin_js','js/magebuzz/catsidebarnav/click2click.js');
|
23 |
+
break;
|
24 |
+
case "fly-out":
|
25 |
+
$headBlock->addCss('css/magebuzz/catsidebarnav/fly-out.css');
|
26 |
+
$headBlock->addItem('skin_js','js/magebuzz/catsidebarnav/fly-out/hoverIntent.js');
|
27 |
+
$headBlock->addItem('skin_js','js/magebuzz/catsidebarnav/fly-out/superfish.js');
|
28 |
+
$headBlock->addItem('skin_js','js/magebuzz/catsidebarnav/fly-out/fly-out.js');
|
29 |
+
break;
|
30 |
+
default:
|
31 |
+
$headBlock->addCss('css/magebuzz/catsidebarnav/static.css');
|
32 |
+
break;
|
33 |
+
}
|
34 |
+
}
|
35 |
+
}
|
36 |
+
return parent::_prepareLayout();
|
37 |
+
}
|
38 |
+
public function getStoreCategories() {
|
39 |
+
$helper = Mage::helper('catsidebarnav/category');
|
40 |
+
return $helper->getAllCategories();
|
41 |
+
}
|
42 |
+
protected function _renderCategoryMenuItemHtml($category, $level = 0, $isLast = false, $isFirst = false,$isOutermost = false, $outermostItemClass = '', $childrenWrapClass = '', $noEventAttributes = false) {
|
43 |
+
$showType=Mage::getStoreConfig('catsidebarnav/display_settings/show_type');
|
44 |
+
if (!$category->getIsActive()) {
|
45 |
+
return '';
|
46 |
+
}
|
47 |
+
$html = array();
|
48 |
|
49 |
+
// get all children
|
50 |
+
if (Mage::helper('catalog/category_flat')->isEnabled()) {
|
51 |
+
$children = (array)$category->getChildrenNodes();
|
52 |
+
$childrenCount = count($children);
|
53 |
+
} else {
|
54 |
+
$children = $category->getChildren();
|
55 |
+
$childrenCount = $children->count();
|
56 |
+
}
|
57 |
+
$hasChildren = ($children && $childrenCount);
|
58 |
|
59 |
+
// select active children
|
60 |
+
$activeChildren = array();
|
61 |
+
foreach ($children as $child) {
|
62 |
+
if ($child->getIsActive()) {
|
63 |
+
$activeChildren[] = $child;
|
64 |
+
}
|
65 |
+
}
|
66 |
+
$activeChildrenCount = count($activeChildren);
|
67 |
+
$hasActiveChildren = ($activeChildrenCount > 0);
|
68 |
|
69 |
+
// prepare list item html classes
|
70 |
+
$classes = array();
|
71 |
+
$classes[] = 'level' . $level;
|
72 |
+
$classes[] = 'nav-' . $this->_getItemPosition($level);
|
73 |
+
if ($this->isCategoryActive($category)) {
|
74 |
+
$classes[] = 'active';
|
75 |
+
}
|
76 |
+
$linkClass = '';
|
77 |
+
if ($isOutermost && $outermostItemClass) {
|
78 |
+
$classes[] = $outermostItemClass;
|
79 |
+
$linkClass = ' class="'.$outermostItemClass.'"';
|
80 |
+
}
|
81 |
+
if ($isFirst) {
|
82 |
+
$classes[] = 'first';
|
83 |
+
}
|
84 |
+
if ($isLast) {
|
85 |
+
$classes[] = 'last';
|
86 |
+
}
|
87 |
+
if ($hasActiveChildren) {
|
88 |
+
$classes[] = 'parent';
|
89 |
+
}
|
90 |
|
91 |
+
// prepare list item attributes
|
92 |
+
$attributes = array();
|
93 |
+
if (count($classes) > 0) {
|
94 |
+
$attributes['class'] = implode(' ', $classes);
|
95 |
+
}
|
96 |
+
if ($hasActiveChildren && !$noEventAttributes) {
|
97 |
+
$attributes['onmouseover'] = 'toggleMenu(this,1)';
|
98 |
+
$attributes['onmouseout'] = 'toggleMenu(this,0)';
|
99 |
+
}
|
100 |
|
101 |
+
// assemble list item with attributes
|
102 |
+
$htmlLi = '<li';
|
103 |
+
foreach ($attributes as $attrName => $attrValue) {
|
104 |
+
$htmlLi .= ' ' . $attrName . '="' . str_replace('"', '\"', $attrValue) . '"';
|
105 |
+
}
|
106 |
+
$htmlLi .= '>';
|
107 |
+
$html[] = $htmlLi;
|
108 |
+
if ($hasActiveChildren) {
|
109 |
+
if($showType == 'click-2-click'){
|
110 |
+
$html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
|
111 |
+
$html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
|
112 |
+
$html[] = '</a>';
|
113 |
+
$html[] = '<a href="javascript://" class="right show-cat"> ';
|
114 |
+
$html[] = '</a>';
|
115 |
+
}
|
116 |
+
else{
|
117 |
+
$html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
|
118 |
+
$html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
|
119 |
+
$html[] = '</a>';
|
120 |
+
}
|
121 |
+
}
|
122 |
+
else{
|
123 |
+
$html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
|
124 |
+
$html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
|
125 |
+
$html[] = '</a>';
|
126 |
+
}
|
127 |
+
// render children
|
128 |
+
$htmlChildren = '';
|
129 |
+
$j = 0;
|
130 |
+
foreach ($activeChildren as $child) {
|
131 |
+
$htmlChildren .= $this->_renderCategoryMenuItemHtml(
|
132 |
+
$child,
|
133 |
+
($level + 1),
|
134 |
+
($j == $activeChildrenCount - 1),
|
135 |
+
($j == 0),
|
136 |
+
false,
|
137 |
+
$outermostItemClass,
|
138 |
+
$childrenWrapClass,
|
139 |
+
$noEventAttributes
|
140 |
+
);
|
141 |
+
$j++;
|
142 |
+
}
|
143 |
+
if (!empty($htmlChildren)) {
|
144 |
+
if ($childrenWrapClass) {
|
145 |
+
$html[] = '<div class="' . $childrenWrapClass . '">';
|
146 |
+
}
|
147 |
+
$html[] = '<ul class="level' . $level . '">';
|
148 |
+
$html[] = $htmlChildren;
|
149 |
+
$html[] = '</ul>';
|
150 |
+
if ($childrenWrapClass) {
|
151 |
+
$html[] = '</div>';
|
152 |
+
}
|
153 |
+
}
|
154 |
|
155 |
+
$html[] = '</li>';
|
156 |
|
157 |
+
$html = implode("\n", $html);
|
158 |
+
return $html;
|
159 |
+
}
|
160 |
+
|
161 |
+
public function addCssJsHead() {
|
162 |
+
return $this;
|
163 |
}
|
|
|
|
|
|
|
|
|
164 |
}
|
app/code/community/Magebuzz/Catsidebarnav/Helper/Category.php
CHANGED
@@ -1,31 +1,35 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
3 |
class Magebuzz_Catsidebarnav_Helper_Category extends Mage_Catalog_Helper_Category
|
4 |
{
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
24 |
|
25 |
-
|
26 |
-
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @author Magebuzz <support@magebuzz.com>
|
4 |
+
*/
|
5 |
class Magebuzz_Catsidebarnav_Helper_Category extends Mage_Catalog_Helper_Category
|
6 |
{
|
7 |
+
public function getAllCategories($sorted=false, $asCollection=false, $toLoad=true)
|
8 |
+
{
|
9 |
+
$parent = Mage::app()->getStore()->getRootCategoryId();
|
10 |
+
$cacheKey = sprintf('%d-%d-%d-%d', $parent, $sorted, $asCollection, $toLoad);
|
11 |
+
if (isset($this->_storeCategories[$cacheKey])) {
|
12 |
+
return $this->_storeCategories[$cacheKey];
|
13 |
+
}
|
14 |
|
15 |
+
/**
|
16 |
+
* Check if parent node of the store still exists
|
17 |
+
*/
|
18 |
+
$category = Mage::getModel('catalog/category');
|
19 |
+
/**
|
20 |
+
* @var Mage_Catalog_Model_Category $category
|
21 |
+
*/
|
22 |
+
if (!$category->checkId($parent)) {
|
23 |
+
if ($asCollection) {
|
24 |
+
return new Varien_Data_Collection();
|
25 |
+
}
|
26 |
+
return array();
|
27 |
+
}
|
28 |
|
29 |
+
$categoryDepth = max(0, (int)Mage::getStoreConfig('catsidebarnav/display_settings/category_level'));
|
30 |
+
$storeCategories = $category->getCategories($parent, $categoryDepth, $sorted, $asCollection, $toLoad);
|
31 |
|
32 |
+
$this->_storeCategories[$cacheKey] = $storeCategories;
|
33 |
+
return $storeCategories;
|
34 |
+
}
|
35 |
}
|
app/code/community/Magebuzz/Catsidebarnav/Helper/Data.php
CHANGED
@@ -1,14 +1,16 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
3 |
class Magebuzz_Catsidebarnav_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
{
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @author Magebuzz <support@magebuzz.com>
|
4 |
+
*/
|
5 |
class Magebuzz_Catsidebarnav_Helper_Data extends Mage_Core_Helper_Abstract
|
6 |
{
|
7 |
+
public function isEnabled() {
|
8 |
+
return (int)Mage::getStoreConfig('catsidebarnav/display_settings/enabled');
|
9 |
+
}
|
10 |
+
public function displayOnSideBar() {
|
11 |
+
return Mage::getStoreConfig('catsidebarnav/display_settings/position');
|
12 |
+
}
|
13 |
+
public function getShowType(){
|
14 |
+
return Mage::getStoreConfig('catsidebarnav/display_settings/show_type');
|
15 |
+
}
|
16 |
}
|
app/code/community/Magebuzz/Catsidebarnav/Model/Catsidebarnav.php
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
3 |
class Magebuzz_Catsidebarnav_Model_Catsidebarnav extends Mage_Core_Model_Abstract
|
4 |
{
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @author Magebuzz <support@magebuzz.com>
|
4 |
+
*/
|
5 |
class Magebuzz_Catsidebarnav_Model_Catsidebarnav extends Mage_Core_Model_Abstract
|
6 |
{
|
7 |
+
public function _construct()
|
8 |
+
{
|
9 |
+
parent::_construct();
|
10 |
+
$this->_init('catsidebarnav/catsidebarnav');
|
11 |
+
}
|
12 |
}
|
app/code/community/Magebuzz/Catsidebarnav/Model/Mysql4/Catsidebarnav.php
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
3 |
class Magebuzz_Catsidebarnav_Model_Mysql4_Catsidebarnav extends Mage_Core_Model_Mysql4_Abstract
|
4 |
{
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @author Magebuzz <support@magebuzz.com>
|
4 |
+
*/
|
5 |
class Magebuzz_Catsidebarnav_Model_Mysql4_Catsidebarnav extends Mage_Core_Model_Mysql4_Abstract
|
6 |
{
|
7 |
+
public function _construct()
|
8 |
+
{
|
9 |
+
// Note that the catsidebarnav_id refers to the key field in your database table.
|
10 |
+
$this->_init('catsidebarnav/catsidebarnav', 'catsidebarnav_id');
|
11 |
+
}
|
12 |
}
|
app/code/community/Magebuzz/Catsidebarnav/Model/Mysql4/Catsidebarnav/Collection.php
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
3 |
class Magebuzz_Catsidebarnav_Model_Mysql4_Catsidebarnav_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
4 |
{
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @author Magebuzz <support@magebuzz.com>
|
4 |
+
*/
|
5 |
class Magebuzz_Catsidebarnav_Model_Mysql4_Catsidebarnav_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
6 |
{
|
7 |
+
public function _construct()
|
8 |
+
{
|
9 |
+
parent::_construct();
|
10 |
+
$this->_init('catsidebarnav/catsidebarnav');
|
11 |
+
}
|
12 |
}
|
app/code/community/Magebuzz/Catsidebarnav/Model/Session.php
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
3 |
class Magebuzz_Catsidebarnav_Model_Session extends Mage_Core_Model_Abstract
|
4 |
{
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @author Magebuzz <support@magebuzz.com>
|
4 |
+
*/
|
5 |
class Magebuzz_Catsidebarnav_Model_Session extends Mage_Core_Model_Abstract
|
6 |
{
|
7 |
+
public function _construct()
|
8 |
+
{
|
9 |
+
parent::_construct();
|
10 |
+
$this->_init('catsidebarnav');
|
11 |
+
}
|
12 |
}
|
app/code/community/Magebuzz/Catsidebarnav/Model/Status.php
CHANGED
@@ -1,15 +1,17 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
3 |
class Magebuzz_Catsidebarnav_Model_Status extends Varien_Object
|
4 |
{
|
5 |
-
|
6 |
-
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @author Magebuzz <support@magebuzz.com>
|
4 |
+
*/
|
5 |
class Magebuzz_Catsidebarnav_Model_Status extends Varien_Object
|
6 |
{
|
7 |
+
const STATUS_ENABLED = 1;
|
8 |
+
const STATUS_DISABLED = 2;
|
9 |
|
10 |
+
static public function getOptionArray()
|
11 |
+
{
|
12 |
+
return array(
|
13 |
+
self::STATUS_ENABLED => Mage::helper('catsidebarnav')->__('Enabled'),
|
14 |
+
self::STATUS_DISABLED => Mage::helper('catsidebarnav')->__('Disabled')
|
15 |
+
);
|
16 |
+
}
|
17 |
}
|
app/code/community/Magebuzz/Catsidebarnav/Model/System/Config/Position.php
CHANGED
@@ -1,14 +1,15 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
3 |
class Magebuzz_Catsidebarnav_Model_System_Config_Position
|
4 |
{
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
}
|
14 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @author Magebuzz <support@magebuzz.com>
|
4 |
+
*/
|
5 |
class Magebuzz_Catsidebarnav_Model_System_Config_Position
|
6 |
{
|
7 |
+
public function toOptionArray()
|
8 |
+
{
|
9 |
+
$options = array(
|
10 |
+
array('value'=>'left','label'=> Mage::helper('catsidebarnav')->__('Left Sidebar')),
|
11 |
+
array('value'=>'right','label'=> Mage::helper('catsidebarnav')->__('Right Sidebar')),
|
12 |
+
);
|
13 |
+
return $options;
|
14 |
+
}
|
|
|
15 |
}
|
app/code/community/Magebuzz/Catsidebarnav/Model/System/Config/Showlevel.php
CHANGED
@@ -1,17 +1,19 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
3 |
class Magebuzz_Catsidebarnav_Model_System_Config_Showlevel
|
4 |
{
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @author Magebuzz <support@magebuzz.com>
|
4 |
+
*/
|
5 |
class Magebuzz_Catsidebarnav_Model_System_Config_Showlevel
|
6 |
{
|
7 |
+
public function toOptionArray()
|
8 |
+
{
|
9 |
+
$options = array(
|
10 |
+
array('value'=>'all','label'=> Mage::helper('catsidebarnav')->__('All')),
|
11 |
+
array('value'=>1,'label'=> Mage::helper('catsidebarnav')->__('1')),
|
12 |
+
array('value'=>2,'label'=> Mage::helper('catsidebarnav')->__('2')),
|
13 |
+
array('value'=>3,'label'=> Mage::helper('catsidebarnav')->__('3')),
|
14 |
+
array('value'=>4,'label'=> Mage::helper('catsidebarnav')->__('4')),
|
15 |
+
);
|
16 |
+
|
17 |
+
return $options;
|
18 |
+
}
|
19 |
}
|
app/code/community/Magebuzz/Catsidebarnav/Model/System/Config/Type.php
CHANGED
@@ -1,15 +1,17 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
3 |
class Magebuzz_Catsidebarnav_Model_System_Config_Type
|
4 |
{
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @author Magebuzz <support@magebuzz.com>
|
4 |
+
*/
|
5 |
class Magebuzz_Catsidebarnav_Model_System_Config_Type
|
6 |
{
|
7 |
+
public function toOptionArray()
|
8 |
+
{
|
9 |
+
$options = array(
|
10 |
+
array('value'=>'static','label'=> Mage::helper('catsidebarnav')->__('Static')),
|
11 |
+
array('value'=>'click-2-click','label'=> Mage::helper('catsidebarnav')->__('Click to Click')),
|
12 |
+
array('value'=>'fly-out','label'=> Mage::helper('catsidebarnav')->__('Fly Out')),
|
13 |
+
);
|
14 |
+
|
15 |
+
return $options;
|
16 |
+
}
|
17 |
}
|
app/code/community/Magebuzz/Catsidebarnav/Model/Wysiwyg/Config.php
CHANGED
@@ -1,34 +1,37 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
2 |
class Magebuzz_Catsidebarnav_Model_Wysiwyg_Config extends Mage_Cms_Model_Wysiwyg_Config
|
3 |
{
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
|
27 |
-
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
}
|
32 |
-
return $config;
|
33 |
}
|
|
|
|
|
34 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @author Magebuzz <support@magebuzz.com>
|
4 |
+
*/
|
5 |
class Magebuzz_Catsidebarnav_Model_Wysiwyg_Config extends Mage_Cms_Model_Wysiwyg_Config
|
6 |
{
|
7 |
+
public function getConfig($data = array())
|
8 |
+
{
|
9 |
+
$config = new Varien_Object();
|
10 |
|
11 |
+
$config->setData(array(
|
12 |
+
'enabled' => $this->isEnabled(),
|
13 |
+
'hidden' => $this->isHidden(),
|
14 |
+
'use_container' => false,
|
15 |
+
'add_variables' => false,
|
16 |
+
'add_widgets' => false,
|
17 |
+
'no_display' => false,
|
18 |
+
'translator' => Mage::helper('cms'),
|
19 |
+
'files_browser_window_url' => Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg_images/index'),
|
20 |
+
'files_browser_window_width' => (int) Mage::getConfig()->getNode('adminhtml/cms/browser/window_width'),
|
21 |
+
'files_browser_window_height' => (int) Mage::getConfig()->getNode('adminhtml/cms/browser/window_height'),
|
22 |
+
'encode_directives' => true,
|
23 |
+
'directives_url' => Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg/directive'),
|
24 |
+
'popup_css' => Mage::getBaseUrl('js').'mage/adminhtml/wysiwyg/tiny_mce/themes/advanced/skins/default/dialog.css',
|
25 |
+
'content_css' => Mage::getBaseUrl('js').'mage/adminhtml/wysiwyg/tiny_mce/themes/advanced/skins/default/content.css',
|
26 |
+
'width' => '100%',
|
27 |
+
'plugins' => array()
|
28 |
+
));
|
29 |
|
30 |
+
$config->setData('directives_url_quoted', preg_quote($config->getData('directives_url')));
|
31 |
|
32 |
+
if (is_array($data)) {
|
33 |
+
$config->addData($data);
|
|
|
|
|
34 |
}
|
35 |
+
return $config;
|
36 |
+
}
|
37 |
}
|
app/code/community/Magebuzz/Catsidebarnav/controllers/IndexController.php
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
2 |
class Magebuzz_Catsidebarnav_IndexController extends Mage_Core_Controller_Front_Action
|
3 |
{
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @author Magebuzz <support@magebuzz.com>
|
4 |
+
*/
|
5 |
class Magebuzz_Catsidebarnav_IndexController extends Mage_Core_Controller_Front_Action
|
6 |
{
|
7 |
+
public function indexAction()
|
8 |
+
{
|
9 |
+
$this->loadLayout();
|
10 |
+
$this->renderLayout();
|
11 |
+
}
|
12 |
}
|
app/code/community/Magebuzz/Catsidebarnav/etc/adminhtml.xml
CHANGED
@@ -1,26 +1,26 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
+
<acl>
|
4 |
+
<resources>
|
5 |
+
<all>
|
6 |
+
<title>Allow Everything</title>
|
7 |
+
</all>
|
8 |
+
<admin>
|
9 |
+
<children>
|
10 |
+
<system>
|
11 |
+
<children>
|
12 |
+
<config>
|
13 |
+
<children>
|
14 |
+
<catsidebarnav translate="title">
|
15 |
+
<title>Catsidebarnav Permission Setting</title>
|
16 |
+
<sort_order>50</sort_order>
|
17 |
+
</catsidebarnav>
|
18 |
+
</children>
|
19 |
+
</config>
|
20 |
+
</children>
|
21 |
+
</system>
|
22 |
+
</children>
|
23 |
+
</admin>
|
24 |
+
</resources>
|
25 |
+
</acl>
|
26 |
</config>
|
app/code/community/Magebuzz/Catsidebarnav/etc/config.xml
CHANGED
@@ -1,131 +1,132 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
<modules>
|
4 |
-
|
5 |
-
|
6 |
-
</
|
|
|
|
|
7 |
</modules>
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
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 |
-
</connection>
|
88 |
-
</catsidebarnav_read>
|
89 |
-
</resources>
|
90 |
-
<blocks>
|
91 |
-
<catsidebarnav>
|
92 |
-
<class>Magebuzz_Catsidebarnav_Block</class>
|
93 |
-
</catsidebarnav>
|
94 |
-
<catalog>
|
95 |
-
<rewrite>
|
96 |
-
<navigation>Magebuzz_Catsidebarnav_Block_Catsidebarnav</navigation>
|
97 |
-
</rewrite>
|
98 |
-
</catalog>
|
99 |
-
</blocks>
|
100 |
-
<helpers>
|
101 |
-
<catsidebarnav>
|
102 |
-
<class>Magebuzz_Catsidebarnav_Helper</class>
|
103 |
-
</catsidebarnav>
|
104 |
-
<catalog>
|
105 |
-
<rewrite>
|
106 |
-
<category>Magebuzz_Catsidebarnav_Helper_Category</category>
|
107 |
-
</rewrite>
|
108 |
-
</catalog>
|
109 |
-
</helpers>
|
110 |
-
<template>
|
111 |
-
<email>
|
112 |
-
<catsidebarnav_general_email_template>
|
113 |
-
<label>Title Email</label>
|
114 |
-
<file>catsidebarnav_example.html</file>
|
115 |
-
<type>html</type>
|
116 |
-
</catsidebarnav_general_email_template>
|
117 |
-
</email>
|
118 |
-
</template>
|
119 |
-
</global>
|
120 |
-
<!--Set Default Value For Setting Options-->
|
121 |
-
<default>
|
122 |
-
<catsidebarnav>
|
123 |
-
<display_settings>
|
124 |
-
<enabled>1</enabled>
|
125 |
-
<position>left</position>
|
126 |
-
<category_level>0</category_level>
|
127 |
-
<show_type>static</show_type>
|
128 |
-
</display_settings>
|
129 |
-
</catsidebarnav>
|
130 |
-
</default>
|
131 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
+
<modules>
|
4 |
+
<Magebuzz_Catsidebarnav>
|
5 |
+
<version>0.1.3</version>
|
6 |
+
</Magebuzz_Catsidebarnav>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<routers>
|
10 |
+
<catsidebarnav>
|
11 |
+
<use>standard</use>
|
12 |
+
<args>
|
13 |
+
<module>Magebuzz_Catsidebarnav</module>
|
14 |
+
<frontName>catsidebarnav</frontName>
|
15 |
+
</args>
|
16 |
+
</catsidebarnav>
|
17 |
+
</routers>
|
18 |
+
<layout>
|
19 |
+
<updates>
|
20 |
+
<catsidebarnav>
|
21 |
+
<file>catsidebarnav.xml</file>
|
22 |
+
</catsidebarnav>
|
23 |
+
</updates>
|
24 |
+
</layout>
|
25 |
+
</frontend>
|
26 |
+
<admin>
|
27 |
+
<routers>
|
28 |
+
<catsidebarnav>
|
29 |
+
<use>admin</use>
|
30 |
+
<args>
|
31 |
+
<module>Magebuzz_Catsidebarnav</module>
|
32 |
+
<frontName>catsidebarnav</frontName>
|
33 |
+
</args>
|
34 |
+
</catsidebarnav>
|
35 |
+
</routers>
|
36 |
+
</admin>
|
37 |
+
<adminhtml>
|
38 |
+
<layout>
|
39 |
+
<updates>
|
40 |
+
<catsidebarnav>
|
41 |
+
<file>catsidebarnav.xml</file>
|
42 |
+
</catsidebarnav>
|
43 |
+
</updates>
|
44 |
+
</layout>
|
45 |
+
<translate>
|
46 |
<modules>
|
47 |
+
<Magebuzz_Catsidebarnav>
|
48 |
+
<files>
|
49 |
+
<default>Magebuzz_Catsidebarnav.csv</default>
|
50 |
+
</files>
|
51 |
+
</Magebuzz_Catsidebarnav>
|
52 |
</modules>
|
53 |
+
</translate>
|
54 |
+
</adminhtml>
|
55 |
+
<global>
|
56 |
+
<models>
|
57 |
+
<catsidebarnav>
|
58 |
+
<class>Magebuzz_Catsidebarnav_Model</class>
|
59 |
+
<resourceModel>catsidebarnav_mysql4</resourceModel>
|
60 |
+
</catsidebarnav>
|
61 |
+
<catsidebarnav_mysql4>
|
62 |
+
<class>Magebuzz_Catsidebarnav_Model_Mysql4</class>
|
63 |
+
<entities>
|
64 |
+
<catsidebarnav>
|
65 |
+
<table>catsidebarnav</table>
|
66 |
+
</catsidebarnav>
|
67 |
+
</entities>
|
68 |
+
</catsidebarnav_mysql4>
|
69 |
+
</models>
|
70 |
+
<resources>
|
71 |
+
<catsidebarnav_setup>
|
72 |
+
<setup>
|
73 |
+
<module>Magebuzz_Catsidebarnav</module>
|
74 |
+
</setup>
|
75 |
+
<connection>
|
76 |
+
<use>core_setup</use>
|
77 |
+
</connection>
|
78 |
+
</catsidebarnav_setup>
|
79 |
+
<catsidebarnav_write>
|
80 |
+
<connection>
|
81 |
+
<use>core_write</use>
|
82 |
+
</connection>
|
83 |
+
</catsidebarnav_write>
|
84 |
+
<catsidebarnav_read>
|
85 |
+
<connection>
|
86 |
+
<use>core_read</use>
|
87 |
+
</connection>
|
88 |
+
</catsidebarnav_read>
|
89 |
+
</resources>
|
90 |
+
<blocks>
|
91 |
+
<catsidebarnav>
|
92 |
+
<class>Magebuzz_Catsidebarnav_Block</class>
|
93 |
+
</catsidebarnav>
|
94 |
+
<catalog>
|
95 |
+
<rewrite>
|
96 |
+
<navigation>Magebuzz_Catsidebarnav_Block_Catsidebarnav</navigation>
|
97 |
+
</rewrite>
|
98 |
+
</catalog>
|
99 |
+
</blocks>
|
100 |
+
<helpers>
|
101 |
+
<catsidebarnav>
|
102 |
+
<class>Magebuzz_Catsidebarnav_Helper</class>
|
103 |
+
</catsidebarnav>
|
104 |
+
<catalog>
|
105 |
+
<rewrite>
|
106 |
+
<category>Magebuzz_Catsidebarnav_Helper_Category</category>
|
107 |
+
</rewrite>
|
108 |
+
</catalog>
|
109 |
+
</helpers>
|
110 |
+
<template>
|
111 |
+
<email>
|
112 |
+
<catsidebarnav_general_email_template>
|
113 |
+
<label>Title Email</label>
|
114 |
+
<file>catsidebarnav_example.html</file>
|
115 |
+
<type>html</type>
|
116 |
+
</catsidebarnav_general_email_template>
|
117 |
+
</email>
|
118 |
+
</template>
|
119 |
+
</global>
|
120 |
+
<!--Set Default Value For Setting Options-->
|
121 |
+
<default>
|
122 |
+
<catsidebarnav>
|
123 |
+
<display_settings>
|
124 |
+
<enabled>1</enabled>
|
125 |
+
<include_jquery>1</include_jquery>
|
126 |
+
<position>left</position>
|
127 |
+
<category_level>0</category_level>
|
128 |
+
<show_type>static</show_type>
|
129 |
+
</display_settings>
|
130 |
+
</catsidebarnav>
|
131 |
+
</default>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
</config>
|
app/code/community/Magebuzz/Catsidebarnav/etc/system.xml
CHANGED
@@ -1,69 +1,78 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
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 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
+
<tabs>
|
4 |
+
<magebuzz translate="label">
|
5 |
+
<label>Magebuzz Add-ons</label>
|
6 |
+
<sort_order>400</sort_order>
|
7 |
+
</magebuzz>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<catsidebarnav translate="label" module="catsidebarnav">
|
11 |
+
<label>Category Sidebar Navigation</label>
|
12 |
+
<tab>magebuzz</tab>
|
13 |
+
<frontend_type>text</frontend_type>
|
14 |
+
<sort_order>299</sort_order>
|
15 |
+
<show_in_default>1</show_in_default>
|
16 |
+
<show_in_website>1</show_in_website>
|
17 |
+
<show_in_store>1</show_in_store>
|
18 |
+
<groups>
|
19 |
+
<display_settings translate="label">
|
20 |
+
<label>General Setting</label>
|
21 |
+
<frontend_type>text</frontend_type>
|
22 |
+
<sort_order>1</sort_order>
|
23 |
+
<show_in_default>1</show_in_default>
|
24 |
+
<show_in_website>1</show_in_website>
|
25 |
+
<show_in_store>1</show_in_store>
|
26 |
+
<fields>
|
27 |
+
<enabled translate="label comment">
|
28 |
+
<label>Enabled</label>
|
29 |
+
<frontend_type>select</frontend_type>
|
30 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
31 |
+
<sort_order>1</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 |
+
</enabled>
|
36 |
+
<include_jquery>
|
37 |
+
<label>Include jQuery library</label>
|
38 |
+
<frontend_type>select</frontend_type>
|
39 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
40 |
+
<sort_order>1</sort_order>
|
41 |
+
<show_in_default>1</show_in_default>
|
42 |
+
<show_in_website>1</show_in_website>
|
43 |
+
<show_in_store>1</show_in_store>
|
44 |
+
</include_jquery>
|
45 |
+
<position translate="label comment">
|
46 |
+
<label>Position of Sidebar</label>
|
47 |
+
<frontend_type>select</frontend_type>
|
48 |
+
<source_model>catsidebarnav/system_config_position</source_model>
|
49 |
+
<sort_order>2</sort_order>
|
50 |
+
<show_in_default>1</show_in_default>
|
51 |
+
<show_in_website>1</show_in_website>
|
52 |
+
<show_in_store>1</show_in_store>
|
53 |
+
<comment>Display list category on left (or right) sidebar</comment>
|
54 |
+
</position>
|
55 |
+
<category_level translate="label comment">
|
56 |
+
<label>Category Depth</label>
|
57 |
+
<frontend_type>text</frontend_type>
|
58 |
+
<sort_order>3</sort_order>
|
59 |
+
<show_in_default>1</show_in_default>
|
60 |
+
<show_in_website>1</show_in_website>
|
61 |
+
<show_in_store>1</show_in_store>
|
62 |
+
<comment>Category level to show(0 - show all)</comment>
|
63 |
+
</category_level>
|
64 |
+
<show_type translate="label comment">
|
65 |
+
<label>Show Type</label>
|
66 |
+
<frontend_type>select</frontend_type>
|
67 |
+
<source_model>catsidebarnav/system_config_type</source_model>
|
68 |
+
<sort_order>4</sort_order>
|
69 |
+
<show_in_default>1</show_in_default>
|
70 |
+
<show_in_website>1</show_in_website>
|
71 |
+
<show_in_store>1</show_in_store>
|
72 |
+
</show_type>
|
73 |
+
</fields>
|
74 |
+
</display_settings>
|
75 |
+
</groups>
|
76 |
+
</catsidebarnav>
|
77 |
+
</sections>
|
78 |
</config>
|
app/code/{community → local}/Magebuzz/Info/Block/System/Config/Extensions.php
RENAMED
File without changes
|
app/code/{community → local}/Magebuzz/Info/Block/System/Config/General.php
RENAMED
File without changes
|
app/code/{community → local}/Magebuzz/Info/Helper/Data.php
RENAMED
File without changes
|
app/code/{community → local}/Magebuzz/Info/Model/Feed.php
RENAMED
File without changes
|
app/code/{community → local}/Magebuzz/Info/etc/adminhtml.xml
RENAMED
File without changes
|
app/code/{community → local}/Magebuzz/Info/etc/config.xml
RENAMED
File without changes
|
app/code/{community → local}/Magebuzz/Info/etc/system.xml
RENAMED
File without changes
|
app/design/adminhtml/default/default/layout/catsidebarnav.xml
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<catsidebarnav_adminhtml_catsidebarnav_edit>
|
4 |
+
<update handle="editor"/>
|
5 |
+
</catsidebarnav_adminhtml_catsidebarnav_edit>
|
6 |
+
<catsidebarnav_adminhtml_catsidebarnav_index>
|
7 |
+
<update handle="editor"/>
|
8 |
+
<reference name="content">
|
9 |
+
<block type="catsidebarnav/adminhtml_catsidebarnav" name="catsidebarnav" />
|
10 |
+
</reference>
|
11 |
+
</catsidebarnav_adminhtml_catsidebarnav_index>
|
12 |
+
</layout>
|
app/design/frontend/base/default/layout/catsidebarnav.xml
CHANGED
@@ -1,20 +1,23 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
20 |
</layout>
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="head">
|
5 |
+
<action method="addJs" ifconfig="catsidebarnav/display_settings/include_jquery">
|
6 |
+
<script>magebuzz/catsidebarnav/jquery.min.js</script>
|
7 |
+
</action>
|
8 |
+
<action method="addJs" ifconfig="catsidebarnav/display_settings/include_jquery">
|
9 |
+
<script>magebuzz/catsidebarnav/jquery.noconflict.js</script>
|
10 |
+
</action>
|
11 |
+
</reference>
|
12 |
+
<reference name="left">
|
13 |
+
<block type="catsidebarnav/catsidebarnav" name="left.catsidebarnav" before="-">
|
14 |
+
<action method="leftSidebarBlock" />
|
15 |
+
</block>
|
16 |
+
</reference>
|
17 |
+
<reference name="right">
|
18 |
+
<block type="catsidebarnav/catsidebarnav" name="right.catsidebarnav" before="-">
|
19 |
+
<action method="rightSidebarBlock" />
|
20 |
+
</block>
|
21 |
+
</reference>
|
22 |
+
</default>
|
23 |
</layout>
|
app/design/frontend/base/default/template/catsidebarnav/catsidebarnav.phtml
CHANGED
@@ -1,16 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php $_helper = Mage::helper('catsidebarnav'); ?>
|
2 |
<?php $_menu = $this->renderCategoriesMenuHtml(0,'level-top') ?>
|
3 |
<?php if($_helper->isEnabled()): ?>
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
<?php endif ?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @var $this Magebuzz_Catsidebarnav_Block_Sidebar
|
4 |
+
*/
|
5 |
+
?>
|
6 |
<?php $_helper = Mage::helper('catsidebarnav'); ?>
|
7 |
<?php $_menu = $this->renderCategoriesMenuHtml(0,'level-top') ?>
|
8 |
<?php if($_helper->isEnabled()): ?>
|
9 |
+
<?php if($_menu): ?>
|
10 |
+
<div class="block block-category-nav">
|
11 |
+
<div class="block-title">
|
12 |
+
<strong><span><?php echo $this->__('Categories') ?></span></strong>
|
13 |
+
</div>
|
14 |
+
<div class="block-content">
|
15 |
+
<ul id="category-sidebar-nav" class="category-sidebar-nav">
|
16 |
+
<?php echo $_menu ?>
|
17 |
+
</ul>
|
18 |
+
</div>
|
19 |
+
</div>
|
20 |
+
<?php endif ?>
|
21 |
+
<?php endif ?>
|
app/etc/modules/Magebuzz_Catsidebarnav.xml
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
+
<modules>
|
4 |
+
<Magebuzz_Catsidebarnav>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Magebuzz_Catsidebarnav>
|
8 |
+
</modules>
|
9 |
+
</config>
|
app/etc/modules/Magebuzz_Info.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<modules>
|
4 |
<Magebuzz_Info>
|
5 |
<active>true</active>
|
6 |
-
<codePool>
|
7 |
</Magebuzz_Info>
|
8 |
</modules>
|
9 |
</config>
|
3 |
<modules>
|
4 |
<Magebuzz_Info>
|
5 |
<active>true</active>
|
6 |
+
<codePool>local</codePool>
|
7 |
</Magebuzz_Info>
|
8 |
</modules>
|
9 |
</config>
|
package.xml
CHANGED
@@ -1,18 +1,20 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>magebuzz_category_sidebar_navigation</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
-
<license uri="http://opensource.org/licenses/osl-3.0.php">
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>
|
11 |
-
|
12 |
-
|
13 |
-
<
|
14 |
-
<
|
15 |
-
<
|
|
|
|
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><php><min>5.
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>magebuzz_category_sidebar_navigation</name>
|
4 |
+
<version>0.1.3</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Changing your website interface by moving the categories navigation to the left or right column.</summary>
|
10 |
+
<description>Version 0.1.3:
|
11 |
+
- Fixed conflict with some themes using ajax cart
|
12 |
+
- Work with menu level 3 and higher if 'click to click' option is selected</description>
|
13 |
+
<notes>Version 0.1.3</notes>
|
14 |
+
<authors><author><name>Neo Nguyen</name><user>MageBuzz</user><email>magebuzz@gmail.com</email></author><author><name>Minh Chu</name><user>HikariChu</user><email>scsilver94@gmail.com</email></author></authors>
|
15 |
+
<date>2015-03-25</date>
|
16 |
+
<time>08:21:16</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="Magebuzz"><dir name="Catsidebarnav"><dir name="Block"><file name="Catsidebarnav.php" hash="6e26b0f9ef469bd597ba70df92f3c2d2"/><file name="Sidebar.php" hash="6e7ae7600e8cc820bce2409874c58403"/></dir><dir name="Helper"><file name="Category.php" hash="1feb99d05ca44d35887e896d0ae7eef8"/><file name="Data.php" hash="ee31ba83ffd739aa0ed395c3291c8dba"/></dir><dir name="Model"><file name="Catsidebarnav.php" hash="9b8d75a21e1977f0962955c60a68ba94"/><dir name="Mysql4"><dir name="Catsidebarnav"><file name="Collection.php" hash="2bb9c26c94941e6a41b13bd5fd232511"/></dir><file name="Catsidebarnav.php" hash="8b047538baa0adcbbc4e3e8fa650fe41"/></dir><file name="Session.php" hash="5f8387109ec6ba95f638528d66991810"/><file name="Status.php" hash="29c86db0b1c441f063a4b32468b6b703"/><dir name="System"><dir name="Config"><file name="Position.php" hash="8415ab541796d2989c00cd372a7c4e5e"/><file name="Showlevel.php" hash="d01c6199033656c99046533eb52fd4cb"/><file name="Type.php" hash="2a01bad6c62de3ff7fe273e3b386be81"/></dir></dir><dir name="Wysiwyg"><file name="Config.php" hash="63dc2b5550b8bf985be845576bc5d42d"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="a7a4de7f683ebd2f2a621f87bb4abb77"/></dir><dir name="etc"><file name="adminhtml.xml" hash="02f1cd356cad11d52b96606cdc41473a"/><file name="config.xml" hash="167ec345c5a2ac1dddbf6847fd0d726a"/><file name="system.xml" hash="4fa0221b6203803fe6e9b91bc0e8073a"/></dir></dir></dir></target><target name="magelocal"><dir name="Magebuzz"><dir name="Info"><dir name="Block"><dir name="System"><dir name="Config"><file name="Extensions.php" hash="aa5773e8b5dc6a33b9d4cc1154fbb69d"/><file name="General.php" hash="2cbe45ec38e2fc090141d0df421bed6e"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="7582d16054340a767e7ed5190e71b0ad"/></dir><dir name="Model"><file name="Feed.php" hash="aa72a9d25541f123978c8598af191274"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4f60efb5ce51a052113a0e895c925fbc"/><file name="config.xml" hash="bc04f45fa0580e0f26a611e14fc2ca74"/><file name="system.xml" hash="ea315b0f9ca775ce9d11e373ba50d6d2"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="catsidebarnav.xml" hash="25561af54928c708cce25945341bd158"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="catsidebarnav.xml" hash="4539ed32bb50d4e6bd58656de65eeab7"/></dir><dir name="template"><dir name="catsidebarnav"><file name="catsidebarnav.phtml" hash="40bf44be99a40960dda1e08e554bffd8"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magebuzz_Catsidebarnav.xml" hash="1dfd5ff09c096cb9959a2013fa207bb9"/><file name="Magebuzz_Info.xml" hash="bd3e02ecfc3439f6fdb0c7c19007f30a"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magebuzz_Catsidebarnav.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="mage"><dir name="js"><dir name="magebuzz"><dir name="catsidebarnav"><file name="jquery.min.js" hash="a74f49c294a8cc83cf3639f68e8c60d7"/><file name="jquery.noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="magebuzz"><file name="facebook.png" hash="d6b1bea3a11c7cf5374e2937d731e315"/><file name="ok.gif" hash="a38bc2ee6e116e39c6e2e3013ee50f5e"/><file name="twitter.png" hash="9b6278124eaa0b2c19a2253bd844bbb4"/><file name="update.gif" hash="8342e11f7739fcfa25134707f0536ed6"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="magebuzz"><dir name="catsidebarnav"><file name="click.css" hash="7510173285778b81f61b50f3dd82c405"/><file name="fly-out.css" hash="886e4d33c267d13ef737d7f04f8b933f"/><dir name="images"><file name="arrow.png" hash="e8e9d70926d376f3648b9774bc7ca5aa"/><file name="arrow_active.png" hash="4b4fd980e8d907ac96f74530f3b2947b"/><file name="bg_title.gif" hash="55d53ef258d04e2d64c26ceb2b3009e4"/><file name="sub_icon.gif" hash="36821f0d22f8c48a2f474097a424b928"/><file name="sub_icon_2.gif" hash="dbd0c9671b6adf1a894ee11a8fce79c6"/></dir><file name="static.css" hash="1fdc2994114fc8f12c00b0c287ee77b1"/></dir></dir></dir><dir name="js"><dir name="magebuzz"><dir name="catsidebarnav"><file name="click2click.js" hash="f62a6965133b4960f729da65ece7fd42"/><dir name="fly-out"><file name="fly-out.js" hash="178afc72038e2197d430d5f9d57c067b"/><file name="hoverIntent.js" hash="1a27531c68df91ec891a075b0832c2e8"/><file name="superfish.js" hash="fc0e58c643434b422425d32999e10fec"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
|
18 |
<compatible/>
|
19 |
+
<dependencies><required><php><min>5.4.0</min><max>5.6.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5</min><max>1.9.1</max></package></required></dependencies>
|
20 |
</package>
|
skin/frontend/base/default/css/magebuzz/catsidebarnav/fly-out.css
CHANGED
@@ -1,56 +1,56 @@
|
|
1 |
-
.block-category-nav{}
|
2 |
/*** ESSENTIAL STYLES ***/
|
3 |
.category-sidebar-nav, .category-sidebar-nav * {
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
}
|
8 |
.category-sidebar-nav ul {
|
9 |
-
|
10 |
-
|
11 |
}
|
12 |
.category-sidebar-nav ul li {
|
13 |
-
|
14 |
}
|
15 |
.category-sidebar-nav li:hover {
|
16 |
-
|
17 |
}
|
18 |
.category-sidebar-nav li {
|
19 |
-
|
20 |
}
|
21 |
.category-sidebar-nav a {
|
22 |
-
|
23 |
-
|
24 |
}
|
25 |
.category-sidebar-nav a:hover{color:#f26522}
|
26 |
.category-sidebar-nav li:hover ul,
|
27 |
.category-sidebar-nav li.sfHover ul {
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
}
|
37 |
ul.category-sidebar-nav li:hover li ul,
|
38 |
ul.category-sidebar-nav li.sfHover li ul {
|
39 |
-
|
40 |
}
|
41 |
ul.category-sidebar-nav li li:hover ul,
|
42 |
ul.category-sidebar-nav li li.sfHover ul {
|
43 |
-
|
44 |
-
|
45 |
}
|
46 |
ul.category-sidebar-nav li li:hover li ul,
|
47 |
ul.category-sidebar-nav li li.sfHover li ul {
|
48 |
-
|
49 |
}
|
50 |
ul.category-sidebar-nav li li li:hover ul,
|
51 |
ul.category-sidebar-nav li li li.sfHover ul {
|
52 |
-
|
53 |
-
|
54 |
}
|
55 |
|
56 |
/*** DEMO SKIN ***/
|
@@ -60,17 +60,17 @@ ul.category-sidebar-nav li li li.sfHover ul {
|
|
60 |
.category-sidebar-nav li.last {background: none transparent!important;}
|
61 |
.category-sidebar-nav li {padding:3px 0;}
|
62 |
.category-sidebar-nav li li {
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
}
|
67 |
.category-sidebar-nav li li li {
|
68 |
-
|
69 |
}
|
70 |
.category-sidebar-nav li li li a:hover{color:#f26522}
|
71 |
.category-sidebar-nav li.sfHover,
|
72 |
.category-sidebar-nav a:focus, .category-sidebar-nav a:hover, .category-sidebar-nav a:active {
|
73 |
-
|
74 |
}
|
75 |
|
76 |
/*** arrows **/
|
@@ -82,16 +82,16 @@ ul.category-sidebar-nav li li li.sfHover ul {
|
|
82 |
.category-sidebar-nav li.sfHover li a{border:0 none;height: auto;}
|
83 |
.category-sidebar-nav li.sfHover li.parent li a{background: none transparent!important;}
|
84 |
.category-sidebar-nav li.sfHover li.parent a{
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
}
|
89 |
.category-sidebar-nav li.sfHover li li a{color:#595959;}
|
90 |
.category-sidebar-nav li.sfHover ul li a{ padding-left: 0;padding-right: 10px;}
|
91 |
.category-sidebar-nav li.sfHover ul li.sfHover a.hover{ color:#f26522}
|
92 |
.category-sidebar-nav li.sfHover a.level-top .sf-sub-indicator{ background:0 none;}
|
93 |
a > .sf-sub-indicator { /* give all except IE6 the correct values */
|
94 |
-
|
95 |
}
|
96 |
/* apply hovers to modern browsers */
|
97 |
a:focus > .sf-sub-indicator,
|
@@ -110,12 +110,12 @@ li.sfHover > a > .sf-sub-indicator {
|
|
110 |
.category-sidebar-nav ul a:active > .sf-sub-indicator,
|
111 |
.category-sidebar-nav ul li:hover > a > .sf-sub-indicator,
|
112 |
.category-sidebar-nav ul li.sfHover > a > .sf-sub-indicator {
|
113 |
-
|
114 |
}
|
115 |
|
116 |
/*** shadows for all but IE6 ***/
|
117 |
.sf-shadow ul {
|
118 |
}
|
119 |
.sf-shadow ul.sf-shadow-off {
|
120 |
-
|
121 |
}
|
1 |
+
.block-category-nav{position: relative;}
|
2 |
/*** ESSENTIAL STYLES ***/
|
3 |
.category-sidebar-nav, .category-sidebar-nav * {
|
4 |
+
margin: 0;
|
5 |
+
padding: 0;
|
6 |
+
list-style: none;
|
7 |
}
|
8 |
.category-sidebar-nav ul {
|
9 |
+
position: absolute;
|
10 |
+
top: -999em;
|
11 |
}
|
12 |
.category-sidebar-nav ul li {
|
13 |
+
/* width: 100%; */
|
14 |
}
|
15 |
.category-sidebar-nav li:hover {
|
16 |
+
visibility: inherit; /* fixes IE7 'sticky bug' */
|
17 |
}
|
18 |
.category-sidebar-nav li {
|
19 |
+
position: relative;
|
20 |
}
|
21 |
.category-sidebar-nav a {
|
22 |
+
display: block;
|
23 |
+
position: relative;
|
24 |
}
|
25 |
.category-sidebar-nav a:hover{color:#f26522}
|
26 |
.category-sidebar-nav li:hover ul,
|
27 |
.category-sidebar-nav li.sfHover ul {
|
28 |
+
background: none repeat scroll 0 0 #FFFFFF;
|
29 |
+
border: 1px solid #DDDDDD;
|
30 |
+
box-shadow: 3px 3px 3px #464646;
|
31 |
+
left: 185px;
|
32 |
+
padding:10px;
|
33 |
+
top: 2.5px;
|
34 |
+
width: 180px;
|
35 |
+
z-index: 99999;
|
36 |
}
|
37 |
ul.category-sidebar-nav li:hover li ul,
|
38 |
ul.category-sidebar-nav li.sfHover li ul {
|
39 |
+
top: -999em;
|
40 |
}
|
41 |
ul.category-sidebar-nav li li:hover ul,
|
42 |
ul.category-sidebar-nav li li.sfHover ul {
|
43 |
+
left: 185px; /* match ul width */
|
44 |
+
top: 0;
|
45 |
}
|
46 |
ul.category-sidebar-nav li li:hover li ul,
|
47 |
ul.category-sidebar-nav li li.sfHover li ul {
|
48 |
+
top: -999em;
|
49 |
}
|
50 |
ul.category-sidebar-nav li li li:hover ul,
|
51 |
ul.category-sidebar-nav li li li.sfHover ul {
|
52 |
+
left: 10em; /* match ul width */
|
53 |
+
top: 0;
|
54 |
}
|
55 |
|
56 |
/*** DEMO SKIN ***/
|
60 |
.category-sidebar-nav li.last {background: none transparent!important;}
|
61 |
.category-sidebar-nav li {padding:3px 0;}
|
62 |
.category-sidebar-nav li li {
|
63 |
+
background:0 none;
|
64 |
+
width:100%;
|
65 |
+
float:left;
|
66 |
}
|
67 |
.category-sidebar-nav li li li {
|
68 |
+
|
69 |
}
|
70 |
.category-sidebar-nav li li li a:hover{color:#f26522}
|
71 |
.category-sidebar-nav li.sfHover,
|
72 |
.category-sidebar-nav a:focus, .category-sidebar-nav a:hover, .category-sidebar-nav a:active {
|
73 |
+
outline: 0;
|
74 |
}
|
75 |
|
76 |
/*** arrows **/
|
82 |
.category-sidebar-nav li.sfHover li a{border:0 none;height: auto;}
|
83 |
.category-sidebar-nav li.sfHover li.parent li a{background: none transparent!important;}
|
84 |
.category-sidebar-nav li.sfHover li.parent a{
|
85 |
+
background: url(images/sub_icon_2.gif) no-repeat scroll right center transparent;
|
86 |
+
color: #595959;
|
87 |
+
margin-right: 10px;
|
88 |
}
|
89 |
.category-sidebar-nav li.sfHover li li a{color:#595959;}
|
90 |
.category-sidebar-nav li.sfHover ul li a{ padding-left: 0;padding-right: 10px;}
|
91 |
.category-sidebar-nav li.sfHover ul li.sfHover a.hover{ color:#f26522}
|
92 |
.category-sidebar-nav li.sfHover a.level-top .sf-sub-indicator{ background:0 none;}
|
93 |
a > .sf-sub-indicator { /* give all except IE6 the correct values */
|
94 |
+
|
95 |
}
|
96 |
/* apply hovers to modern browsers */
|
97 |
a:focus > .sf-sub-indicator,
|
110 |
.category-sidebar-nav ul a:active > .sf-sub-indicator,
|
111 |
.category-sidebar-nav ul li:hover > a > .sf-sub-indicator,
|
112 |
.category-sidebar-nav ul li.sfHover > a > .sf-sub-indicator {
|
113 |
+
background-position: -10px 0; /* arrow hovers for modern browsers*/
|
114 |
}
|
115 |
|
116 |
/*** shadows for all but IE6 ***/
|
117 |
.sf-shadow ul {
|
118 |
}
|
119 |
.sf-shadow ul.sf-shadow-off {
|
120 |
+
background: transparent;
|
121 |
}
|
skin/frontend/base/default/js/magebuzz/catsidebarnav/click2click.js
CHANGED
@@ -1,24 +1,14 @@
|
|
1 |
-
jQuery(document).ready(function
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
jQuery('#category-sidebar-nav li ul li ul').slideUp();
|
15 |
-
if (!jQuery(this).hasClass('active')){
|
16 |
-
jQuery(this).next().slideToggle();
|
17 |
-
jQuery('#category-sidebar-nav li ul li a.show-cat').removeClass('active');
|
18 |
-
jQuery(this).addClass('active');
|
19 |
-
}
|
20 |
-
else if (jQuery(this).hasClass('active')) {
|
21 |
-
jQuery(this).removeClass('active');
|
22 |
-
}
|
23 |
-
});
|
24 |
});
|
1 |
+
jQuery(document).ready(function() {
|
2 |
+
jQuery('#category-sidebar-nav li a.show-cat').click(function() {
|
3 |
+
jQuery(this).children('ul').slideUp();
|
4 |
+
|
5 |
+
if (!jQuery(this).hasClass('active')) {
|
6 |
+
jQuery(this).next().slideToggle();
|
7 |
+
jQuery(this).addClass('active');
|
8 |
+
}
|
9 |
+
else if (jQuery(this).hasClass('active')) {
|
10 |
+
jQuery(this).next().slideToggle();
|
11 |
+
jQuery(this).removeClass('active');
|
12 |
+
}
|
13 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
});
|