magebuzz_category_sidebar_navigation - Version 0.1.3

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

Files changed (32) hide show
  1. app/code/community/Magebuzz/Catsidebarnav/Block/Catsidebarnav.php +34 -28
  2. app/code/community/Magebuzz/Catsidebarnav/Block/Sidebar.php +152 -147
  3. app/code/community/Magebuzz/Catsidebarnav/Helper/Category.php +28 -24
  4. app/code/community/Magebuzz/Catsidebarnav/Helper/Data.php +12 -10
  5. app/code/community/Magebuzz/Catsidebarnav/Model/Catsidebarnav.php +8 -6
  6. app/code/community/Magebuzz/Catsidebarnav/Model/Mysql4/Catsidebarnav.php +8 -6
  7. app/code/community/Magebuzz/Catsidebarnav/Model/Mysql4/Catsidebarnav/Collection.php +8 -6
  8. app/code/community/Magebuzz/Catsidebarnav/Model/Session.php +8 -6
  9. app/code/community/Magebuzz/Catsidebarnav/Model/Status.php +12 -10
  10. app/code/community/Magebuzz/Catsidebarnav/Model/System/Config/Position.php +11 -10
  11. app/code/community/Magebuzz/Catsidebarnav/Model/System/Config/Showlevel.php +15 -13
  12. app/code/community/Magebuzz/Catsidebarnav/Model/System/Config/Type.php +13 -11
  13. app/code/community/Magebuzz/Catsidebarnav/Model/Wysiwyg/Config.php +29 -26
  14. app/code/community/Magebuzz/Catsidebarnav/controllers/IndexController.php +8 -5
  15. app/code/community/Magebuzz/Catsidebarnav/etc/adminhtml.xml +23 -23
  16. app/code/community/Magebuzz/Catsidebarnav/etc/config.xml +127 -126
  17. app/code/community/Magebuzz/Catsidebarnav/etc/system.xml +75 -66
  18. app/code/{community → local}/Magebuzz/Info/Block/System/Config/Extensions.php +0 -0
  19. app/code/{community → local}/Magebuzz/Info/Block/System/Config/General.php +0 -0
  20. app/code/{community → local}/Magebuzz/Info/Helper/Data.php +0 -0
  21. app/code/{community → local}/Magebuzz/Info/Model/Feed.php +0 -0
  22. app/code/{community → local}/Magebuzz/Info/etc/adminhtml.xml +0 -0
  23. app/code/{community → local}/Magebuzz/Info/etc/config.xml +0 -0
  24. app/code/{community → local}/Magebuzz/Info/etc/system.xml +0 -0
  25. app/design/adminhtml/default/default/layout/catsidebarnav.xml +12 -0
  26. app/design/frontend/base/default/layout/catsidebarnav.xml +20 -17
  27. app/design/frontend/base/default/template/catsidebarnav/catsidebarnav.phtml +18 -13
  28. app/etc/modules/Magebuzz_Catsidebarnav.xml +7 -7
  29. app/etc/modules/Magebuzz_Info.xml +1 -1
  30. package.xml +12 -10
  31. skin/frontend/base/default/css/magebuzz/catsidebarnav/fly-out.css +36 -36
  32. 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
- public function _prepareLayout() {
5
- return parent::_prepareLayout();
6
  }
7
-
8
- public function getCatsidebarnav() {
9
- if (!$this->hasData('catsidebarnav')) {
10
- $this->setData('catsidebarnav', Mage::registry('catsidebarnav'));
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
- public function _construct() {
5
- $this->setTemplate('catsidebarnav/catsidebarnav.phtml');
6
- return parent::_construct();
7
- }
8
- public function _prepareLayout() {
9
- $headBlock = $this->getLayout()->getBlock('head');
10
- $headBlock->addJs('magebuzz/catsidebarnav/jquery.min.js');
11
- $headBlock->addJs('magebuzz/catsidebarnav/jquery.noconflict.js');
12
- $type = Mage::helper('catsidebarnav')->getShowType();
13
- switch($type) {
14
- case "static":
15
- $headBlock->addCss('css/magebuzz/catsidebarnav/static.css');
16
- break;
17
- case "click-2-click":
18
- $headBlock->addCss('css/magebuzz/catsidebarnav/click.css');
19
- $headBlock->addItem('skin_js','js/magebuzz/catsidebarnav/click2click.js');
20
- break;
21
- case "fly-out":
22
- $headBlock->addCss('css/magebuzz/catsidebarnav/fly-out.css');
23
- $headBlock->addItem('skin_js','js/magebuzz/catsidebarnav/fly-out/hoverIntent.js');
24
- $headBlock->addItem('skin_js','js/magebuzz/catsidebarnav/fly-out/superfish.js');
25
- $headBlock->addItem('skin_js','js/magebuzz/catsidebarnav/fly-out/fly-out.js');
26
- break;
27
- default:
28
- $headBlock->addCss('css/magebuzz/catsidebarnav/static.css');
29
- break;
30
- }
31
- return parent::_prepareLayout();
32
- }
33
- public function getStoreCategories() {
34
- $helper = Mage::helper('catsidebarnav/category');
35
- return $helper->getAllCategories();
36
- }
37
- protected function _renderCategoryMenuItemHtml($category, $level = 0, $isLast = false, $isFirst = false,$isOutermost = false, $outermostItemClass = '', $childrenWrapClass = '', $noEventAttributes = false) {
38
- $showType=Mage::getStoreConfig('catsidebarnav/display_settings/show_type');
39
- if (!$category->getIsActive()) {
40
- return '';
41
- }
42
- $html = array();
 
 
43
 
44
- // get all children
45
- if (Mage::helper('catalog/category_flat')->isEnabled()) {
46
- $children = (array)$category->getChildrenNodes();
47
- $childrenCount = count($children);
48
- } else {
49
- $children = $category->getChildren();
50
- $childrenCount = $children->count();
51
- }
52
- $hasChildren = ($children && $childrenCount);
53
 
54
- // select active children
55
- $activeChildren = array();
56
- foreach ($children as $child) {
57
- if ($child->getIsActive()) {
58
- $activeChildren[] = $child;
59
- }
60
- }
61
- $activeChildrenCount = count($activeChildren);
62
- $hasActiveChildren = ($activeChildrenCount > 0);
63
 
64
- // prepare list item html classes
65
- $classes = array();
66
- $classes[] = 'level' . $level;
67
- $classes[] = 'nav-' . $this->_getItemPosition($level);
68
- if ($this->isCategoryActive($category)) {
69
- $classes[] = 'active';
70
- }
71
- $linkClass = '';
72
- if ($isOutermost && $outermostItemClass) {
73
- $classes[] = $outermostItemClass;
74
- $linkClass = ' class="'.$outermostItemClass.'"';
75
- }
76
- if ($isFirst) {
77
- $classes[] = 'first';
78
- }
79
- if ($isLast) {
80
- $classes[] = 'last';
81
- }
82
- if ($hasActiveChildren) {
83
- $classes[] = 'parent';
84
- }
85
 
86
- // prepare list item attributes
87
- $attributes = array();
88
- if (count($classes) > 0) {
89
- $attributes['class'] = implode(' ', $classes);
90
- }
91
- if ($hasActiveChildren && !$noEventAttributes) {
92
- $attributes['onmouseover'] = 'toggleMenu(this,1)';
93
- $attributes['onmouseout'] = 'toggleMenu(this,0)';
94
- }
95
 
96
- // assemble list item with attributes
97
- $htmlLi = '<li';
98
- foreach ($attributes as $attrName => $attrValue) {
99
- $htmlLi .= ' ' . $attrName . '="' . str_replace('"', '\"', $attrValue) . '"';
100
- }
101
- $htmlLi .= '>';
102
- $html[] = $htmlLi;
103
- if ($hasActiveChildren) {
104
- if($showType == 'click-2-click'){
105
- $html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
106
- $html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
107
- $html[] = '</a>';
108
- $html[] = '<a href="javascript://" class="right show-cat">&nbsp;';
109
- $html[] = '</a>';
110
- }
111
- else{
112
- $html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
113
- $html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
114
- $html[] = '</a>';
115
- }
116
- }
117
- else{
118
- $html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
119
- $html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
120
- $html[] = '</a>';
121
- }
122
- // render children
123
- $htmlChildren = '';
124
- $j = 0;
125
- foreach ($activeChildren as $child) {
126
- $htmlChildren .= $this->_renderCategoryMenuItemHtml(
127
- $child,
128
- ($level + 1),
129
- ($j == $activeChildrenCount - 1),
130
- ($j == 0),
131
- false,
132
- $outermostItemClass,
133
- $childrenWrapClass,
134
- $noEventAttributes
135
- );
136
- $j++;
137
- }
138
- if (!empty($htmlChildren)) {
139
- if ($childrenWrapClass) {
140
- $html[] = '<div class="' . $childrenWrapClass . '">';
141
- }
142
- $html[] = '<ul class="level' . $level . '">';
143
- $html[] = $htmlChildren;
144
- $html[] = '</ul>';
145
- if ($childrenWrapClass) {
146
- $html[] = '</div>';
147
- }
148
- }
149
 
150
- $html[] = '</li>';
151
 
152
- $html = implode("\n", $html);
153
- return $html;
 
 
 
 
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">&nbsp;';
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
- public function getAllCategories($sorted=false, $asCollection=false, $toLoad=true)
6
- {
7
- $parent = Mage::app()->getStore()->getRootCategoryId();
8
- $cacheKey = sprintf('%d-%d-%d-%d', $parent, $sorted, $asCollection, $toLoad);
9
- if (isset($this->_storeCategories[$cacheKey])) {
10
- return $this->_storeCategories[$cacheKey];
11
- }
12
 
13
- /**
14
- * Check if parent node of the store still exists
15
- */
16
- $category = Mage::getModel('catalog/category');
17
- /* @var $category Mage_Catalog_Model_Category */
18
- if (!$category->checkId($parent)) {
19
- if ($asCollection) {
20
- return new Varien_Data_Collection();
21
- }
22
- return array();
23
- }
 
 
24
 
25
- $categoryDepth = max(0, (int)Mage::getStoreConfig('catsidebarnav/display_settings/category_level'));
26
- $storeCategories = $category->getCategories($parent, $categoryDepth, $sorted, $asCollection, $toLoad);
27
 
28
- $this->_storeCategories[$cacheKey] = $storeCategories;
29
- return $storeCategories;
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
- public function isEnabled() {
6
- return (int)Mage::getStoreConfig('catsidebarnav/display_settings/enabled');
7
- }
8
- public function displayOnSideBar() {
9
- return Mage::getStoreConfig('catsidebarnav/display_settings/position');
10
- }
11
- public function getShowType(){
12
- return Mage::getStoreConfig('catsidebarnav/display_settings/show_type');
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
- public function _construct()
6
- {
7
- parent::_construct();
8
- $this->_init('catsidebarnav/catsidebarnav');
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
- public function _construct()
6
- {
7
- // Note that the catsidebarnav_id refers to the key field in your database table.
8
- $this->_init('catsidebarnav/catsidebarnav', 'catsidebarnav_id');
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
- public function _construct()
6
- {
7
- parent::_construct();
8
- $this->_init('catsidebarnav/catsidebarnav');
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
- public function _construct()
6
- {
7
- parent::_construct();
8
- $this->_init('catsidebarnav');
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
- const STATUS_ENABLED = 1;
6
- const STATUS_DISABLED = 2;
7
 
8
- static public function getOptionArray()
9
- {
10
- return array(
11
- self::STATUS_ENABLED => Mage::helper('catsidebarnav')->__('Enabled'),
12
- self::STATUS_DISABLED => Mage::helper('catsidebarnav')->__('Disabled')
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
- public function toOptionArray()
6
- {
7
- $options = array(
8
- array('value'=>'left','label'=> Mage::helper('catsidebarnav')->__('Left Sidebar')),
9
- array('value'=>'right','label'=> Mage::helper('catsidebarnav')->__('Right Sidebar')),
10
- );
11
-
12
- return $options;
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
- public function toOptionArray()
6
- {
7
- $options = array(
8
- array('value'=>'all','label'=> Mage::helper('catsidebarnav')->__('All')),
9
- array('value'=>1,'label'=> Mage::helper('catsidebarnav')->__('1')),
10
- array('value'=>2,'label'=> Mage::helper('catsidebarnav')->__('2')),
11
- array('value'=>3,'label'=> Mage::helper('catsidebarnav')->__('3')),
12
- array('value'=>4,'label'=> Mage::helper('catsidebarnav')->__('4')),
13
- );
14
-
15
- return $options;
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
- public function toOptionArray()
6
- {
7
- $options = array(
8
- array('value'=>'static','label'=> Mage::helper('catsidebarnav')->__('Static')),
9
- array('value'=>'click-2-click','label'=> Mage::helper('catsidebarnav')->__('Click to Click')),
10
- array('value'=>'fly-out','label'=> Mage::helper('catsidebarnav')->__('Fly Out')),
11
- );
12
-
13
- return $options;
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
- public function getConfig($data = array())
5
- {
6
- $config = new Varien_Object();
7
 
8
- $config->setData(array(
9
- 'enabled' => $this->isEnabled(),
10
- 'hidden' => $this->isHidden(),
11
- 'use_container' => false,
12
- 'add_variables' => false,
13
- 'add_widgets' => false,
14
- 'no_display' => false,
15
- 'translator' => Mage::helper('cms'),
16
- 'files_browser_window_url' => Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg_images/index'),
17
- 'files_browser_window_width' => (int) Mage::getConfig()->getNode('adminhtml/cms/browser/window_width'),
18
- 'files_browser_window_height' => (int) Mage::getConfig()->getNode('adminhtml/cms/browser/window_height'),
19
- 'encode_directives' => true,
20
- 'directives_url' => Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg/directive'),
21
- 'popup_css' => Mage::getBaseUrl('js').'mage/adminhtml/wysiwyg/tiny_mce/themes/advanced/skins/default/dialog.css',
22
- 'content_css' => Mage::getBaseUrl('js').'mage/adminhtml/wysiwyg/tiny_mce/themes/advanced/skins/default/content.css',
23
- 'width' => '100%',
24
- 'plugins' => array()
25
- ));
26
 
27
- $config->setData('directives_url_quoted', preg_quote($config->getData('directives_url')));
28
 
29
- if (is_array($data)) {
30
- $config->addData($data);
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
- public function indexAction()
5
- {
6
- $this->loadLayout();
7
- $this->renderLayout();
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
- <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>
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
- <Magebuzz_Catsidebarnav>
5
- <version>0.1.1</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
- <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
- <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
- <position translate="label comment">
37
- <label>Position of Sidebar</label>
38
- <frontend_type>select</frontend_type>
39
- <source_model>catsidebarnav/system_config_position</source_model>
40
- <sort_order>2</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
- <comment>Display list category on left (or right) sidebar</comment>
45
- </position>
46
- <category_level translate="label comment">
47
- <label>Category Depth</label>
48
- <frontend_type>text</frontend_type>
49
- <sort_order>3</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>Category level to show(0 - show all)</comment>
54
- </category_level>
55
- <show_type translate="label comment">
56
- <label>Show Type</label>
57
- <frontend_type>select</frontend_type>
58
- <source_model>catsidebarnav/system_config_type</source_model>
59
- <sort_order>4</sort_order>
60
- <show_in_default>1</show_in_default>
61
- <show_in_website>1</show_in_website>
62
- <show_in_store>1</show_in_store>
63
- </show_type>
64
- </fields>
65
- </display_settings>
66
- </groups>
67
- </catsidebarnav>
68
- </sections>
 
 
 
 
 
 
 
 
 
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
- <default>
4
- <reference name="left">
5
- <block type="catsidebarnav/catsidebarnav" name="left.catsidebarnav" before="-">
6
- <action method="leftSidebarBlock" />
7
- </block>
8
- </reference>
9
- <reference name="right">
10
- <block type="catsidebarnav/catsidebarnav" name="right.catsidebarnav" before="-">
11
- <action method="rightSidebarBlock" />
12
- </block>
13
- </reference>
14
- </default>
15
- <catsidebarnav_index_index>
16
- <reference name="content">
17
- <block type="catsidebarnav/catsidebarnav" name="catsidebarnav" template="catsidebarnav/catsidebarnav.phtml" />
18
- </reference>
19
- </catsidebarnav_index_index>
 
 
 
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
- <?php if($_menu): ?>
5
- <div class="block block-category-nav">
6
- <div class="block-title">
7
- <strong><span><?php echo $this->__('Categories') ?></span></strong>
8
- </div>
9
- <div class="block-content">
10
- <ul id="category-sidebar-nav" class="category-sidebar-nav">
11
- <?php echo $_menu ?>
12
- </ul>
13
- </div>
14
- </div>
15
- <?php endif ?>
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
- <modules>
4
- <Magebuzz_Catsidebarnav>
5
- <active>true</active>
6
- <codePool>community</codePool>
7
- </Magebuzz_Catsidebarnav>
8
- </modules>
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>community</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.1</version>
5
  <stability>stable</stability>
6
- <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Allowing you to move the categories navigation to the left or right column</summary>
10
- <description>Allowing you to move the categories navigation to the left or right column</description>
11
- <notes>Category Sidebar Navigation</notes>
12
- <authors><author><name>Magebuzz</name><user>magebuzz</user><email>magebuzz@gmail.com</email></author></authors>
13
- <date>2014-07-11</date>
14
- <time>02:00:04</time>
15
- <contents><target name="magecommunity"><dir name="Magebuzz"><dir name="Catsidebarnav"><dir name="Block"><file name="Catsidebarnav.php" hash="8908800789fd847df2396d12e0ecbf35"/><file name="Sidebar.php" hash="de61d083da95a85d5e45af522d1f16d6"/></dir><dir name="Helper"><file name="Category.php" hash="2b9d7291653830969d232d58ea98e754"/><file name="Data.php" hash="d360eb17b9aca0a7a99af9a3134dc744"/></dir><dir name="Model"><file name="Catsidebarnav.php" hash="0b43dc19c684b3ab974eb7bebcfd4102"/><dir name="Mysql4"><dir name="Catsidebarnav"><file name="Collection.php" hash="cd82814f4021ac3ecdb9f51394d71046"/></dir><file name="Catsidebarnav.php" hash="913c1c2be3e2d5736190c1fbd841917f"/></dir><file name="Session.php" hash="a26bbbd765aa44ab1228c4c64daf52bf"/><file name="Status.php" hash="48ee9b59935a7d083685ff384a3f61e2"/><dir name="System"><dir name="Config"><file name="Position.php" hash="7eee11a78f3440a857a0c2d71ca70cda"/><file name="Showlevel.php" hash="d8a9e30d1bd52474ef3703a5fb96128d"/><file name="Type.php" hash="b113ef52d5863af047be5f8fbc1681f6"/></dir></dir><dir name="Wysiwyg"><file name="Config.php" hash="6f59457a7e0ca5548e3d459950ff9d0c"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="28c3fe51908c33beb180fc34a1252a88"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1d350724418c884ac3e561eb766ee984"/><file name="config.xml" hash="a0678f4ae037eea9dc58e104874d5b71"/><file name="system.xml" hash="45bc566bce07f5d73dd702ddf1af0e68"/></dir></dir><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="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="catsidebarnav.xml" hash="f1854e38a5be14abb77fd5797dcc79f0"/></dir><dir name="template"><dir name="catsidebarnav"><file name="catsidebarnav.phtml" hash="699c0b361f2be4139da5b172b8cfd61d"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magebuzz_Catsidebarnav.xml" hash="67a8647237adc1df2a7c263dcb1398b1"/><file name="Magebuzz_Info.xml" hash="81abb2ad3ff3428ae5b3b7c5aa04b937"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magebuzz_Catsidebarnav.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="mageskin"><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="3e332a582423cd23af98f0bedbf31c0b"/><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="19d34e70b3721463d334bd99e8eb1d79"/><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><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></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></contents>
 
 
16
  <compatible/>
17
- <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>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:&#xD;
11
+ - Fixed conflict with some themes using ajax cart&#xD;
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
- 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,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
- 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,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
- 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,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
- 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
  }
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
- jQuery('#category-sidebar-nav > li > a.show-cat').click(function(){
3
- jQuery('#category-sidebar-nav li ul').slideUp();
4
- if (!jQuery(this).hasClass('active')){
5
- jQuery(this).next().slideToggle();
6
- jQuery('#category-sidebar-nav li a.show-cat').removeClass('active');
7
- jQuery(this).addClass('active');
8
- }
9
- else if (jQuery(this).hasClass('active')) {
10
- jQuery(this).removeClass('active');
11
- }
12
- });
13
- jQuery('#category-sidebar-nav > li > ul > li > a.show-cat').click(function(){
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
  });