Codnitive_Sidenav - Version 1.6.32

Version Notes

Please note: first test all modules in a test store then install theme on your original store. Always make backup of your store before installation.

Download this release

Release Info

Developer Hassan Barza
Extension Codnitive_Sidenav
Version 1.6.32
Comparing to
See all releases


Version 1.6.32

Files changed (46) hide show
  1. app/code/community/Codnitive/Sidenav/Block/Navigation.php +315 -0
  2. app/code/community/Codnitive/Sidenav/Block/Page/Html/Head.php +40 -0
  3. app/code/community/Codnitive/Sidenav/Helper/Category.php +67 -0
  4. app/code/community/Codnitive/Sidenav/Helper/Data.php +25 -0
  5. app/code/community/Codnitive/Sidenav/Model/Config.php +163 -0
  6. app/code/community/Codnitive/Sidenav/Model/Config/ColumnOptions.php +51 -0
  7. app/code/community/Codnitive/Sidenav/Model/Config/ThumbSizeOptions.php +46 -0
  8. app/code/community/Codnitive/Sidenav/etc/adminhtml.xml +48 -0
  9. app/code/community/Codnitive/Sidenav/etc/config.xml +151 -0
  10. app/code/community/Codnitive/Sidenav/etc/system.xml +162 -0
  11. app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/Contact.php +36 -0
  12. app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/ECD.php +25 -0
  13. app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/Extensions/List.php +56 -0
  14. app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/PCD.php +25 -0
  15. app/code/local/Codnitive/Codall/Helper/Data.php +25 -0
  16. app/code/local/Codnitive/Codall/etc/adminhtml.xml +48 -0
  17. app/code/local/Codnitive/Codall/etc/config.xml +106 -0
  18. app/code/local/Codnitive/Codall/etc/system.xml +64 -0
  19. app/design/frontend/base/default/layout/sidenav.xml +61 -0
  20. app/design/frontend/base/default/template/codnitive/catalog/navigation/customer.phtml +57 -0
  21. app/design/frontend/base/default/template/codnitive/catalog/navigation/left.phtml +57 -0
  22. app/design/frontend/base/default/template/codnitive/catalog/navigation/right.phtml +57 -0
  23. app/etc/modules/Codnitive_Codall.xml +33 -0
  24. app/etc/modules/Codnitive_Sidenav.xml +38 -0
  25. app/locale/en_US/Codnitive_Codall.csv +3 -0
  26. app/locale/en_US/Codnitive_Sidenav.csv +32 -0
  27. app/locale/fa_IR/Codnitive_Codall.csv +3 -0
  28. app/locale/fa_IR/Codnitive_Sidenav.csv +32 -0
  29. package.xml +19 -0
  30. skin/frontend/default/blank/css/sidenav.css +92 -0
  31. skin/frontend/default/default/css/sidenav.css +94 -0
  32. skin/frontend/default/default/css/sidenavcollapse.css +54 -0
  33. skin/frontend/default/default/images/arrows.gif +0 -0
  34. skin/frontend/default/default/images/bkg_block-sidebarnav-actions.gif +0 -0
  35. skin/frontend/default/default/images/bkg_block-sidebarnav-layered-dd.gif +0 -0
  36. skin/frontend/default/default/images/bkg_block-sidebarnav-title.gif +0 -0
  37. skin/frontend/default/default/images/blue_arrows.gif +0 -0
  38. skin/frontend/default/default/images/green_arrows.gif +0 -0
  39. skin/frontend/default/default/images/orange_arrows.gif +0 -0
  40. skin/frontend/default/default/js/sidenavcollapse.js +44 -0
  41. skin/frontend/default/f002/css/sidenav.css +110 -0
  42. skin/frontend/default/modern/css/sidenav.css +93 -0
  43. skin/frontend/default/modern/css/sidenavcollapse.css.bak +54 -0
  44. skin/frontend/default/modern/images/arrows.gif +0 -0
  45. skin/frontend/default/modern/images/bkg_block-sidebarnav-actions.gif +0 -0
  46. skin/frontend/default/modern/images/bkg_block-sidebarnav-title.gif +0 -0
app/code/community/Codnitive/Sidenav/Block/Navigation.php ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Codnitive
16
+ * @package Codnitive_Sidenav
17
+ * @author Hassan Barza <h.barza@gmail.com>
18
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+
22
+
23
+ class Codnitive_Sidenav_Block_Navigation extends Mage_Catalog_Block_Navigation
24
+ {
25
+ /**
26
+ * Extension config model object
27
+ *
28
+ */
29
+ protected $_config;
30
+
31
+ /**
32
+ * Construct parent and define $_config
33
+ *
34
+ */
35
+ protected function _construct()
36
+ {
37
+ parent::_construct();
38
+ $this->_config = Mage::getModel('sidenav/config');
39
+ }
40
+
41
+ /**
42
+ * Get store categories navigation menu
43
+ *
44
+ * @return string
45
+ */
46
+ public function getCategoriesNavMenu()
47
+ {
48
+ $navigationMenu = $this->renderCategoriesMenuHtml(0);
49
+ return $navigationMenu ? $navigationMenu : FALSE;
50
+ }
51
+
52
+ /**
53
+ * Get catagories of current store
54
+ *
55
+ * @return Varien_Data_Tree_Node_Collection
56
+ */
57
+ public function getStoreCategories()
58
+ {
59
+ return Mage::helper('sidenav/category')->getStoreCategories();
60
+ }
61
+
62
+ /**
63
+ * Render category to html
64
+ *
65
+ * @param Mage_Catalog_Model_Category $category
66
+ * @param int Nesting level number
67
+ * @param boolean Whether ot not this item is last, affects list item class
68
+ * @param boolean Whether ot not this item is first, affects list item class
69
+ * @param boolean Whether ot not this item is outermost, affects list item class
70
+ * @param string Extra class of outermost list items
71
+ * @param string If specified wraps children list in div with this class
72
+ * @param boolean Whether ot not to add on* attributes to list item
73
+ * @return string
74
+ */
75
+ protected function _renderCategoryMenuItemHtml($category, $level = 0, $isLast = false, $isFirst = false,
76
+ $isOutermost = false, $outermostItemClass = '', $childrenWrapClass = '', $noEventAttributes = false)
77
+ {
78
+ if (!$category->getIsActive()) {
79
+ return '';
80
+ }
81
+ $html = array();
82
+ $js = null;
83
+
84
+ // get all children
85
+ if (Mage::helper('catalog/category_flat')->isEnabled()) {
86
+ $children = (array)$category->getChildrenNodes();
87
+ $childrenCount = count($children);
88
+ } else {
89
+ $children = $category->getChildren();
90
+ $childrenCount = $children->count();
91
+ }
92
+ $hasChildren = ($children && $childrenCount);
93
+
94
+ // select active children
95
+ $activeChildren = array();
96
+ foreach ($children as $child) {
97
+ if ($child->getIsActive()) {
98
+ $activeChildren[] = $child;
99
+ }
100
+ }
101
+ $activeChildrenCount = count($activeChildren);
102
+ $hasActiveChildren = ($activeChildrenCount > 0);
103
+
104
+ // prepare list item html classes
105
+ $classes = array();
106
+ $classes[] = 'level' . $level;
107
+ $classes[] = 'nav-' . $this->_getItemPosition($level);
108
+ if ($this->isCategoryActive($category)) {
109
+ $classes[] = 'active';
110
+ }
111
+ $linkClass = '';
112
+ if ($isOutermost && $outermostItemClass) {
113
+ $classes[] = $outermostItemClass;
114
+ $linkClass = ' class="'.$outermostItemClass.'"';
115
+ }
116
+ if ($isFirst) {
117
+ $classes[] = 'first';
118
+ }
119
+ if ($isLast) {
120
+ $classes[] = 'last';
121
+ }
122
+ if ($hasActiveChildren) {
123
+ $classes[] = 'parent';
124
+ }
125
+
126
+ // prepare list item attributes
127
+ $attributes = array();
128
+ if (count($classes) > 0) {
129
+ $attributes['class'] = implode(' ', $classes);
130
+ }
131
+ if ($hasActiveChildren && !$noEventAttributes) {
132
+ $attributes['onmouseover'] = 'toggleMenu(this,1)';
133
+ $attributes['onmouseout'] = 'toggleMenu(this,0)';
134
+ }
135
+
136
+ // assemble list item with attributes
137
+ $config = Mage::getModel('sidenav/config');
138
+ $thumbWidth = 14;
139
+ $thumbHeight = 14;
140
+ $liMarginLeft = 0;
141
+ $ulMarginLeft = 5;
142
+ $ulPaddingLeft = 10;
143
+
144
+ // define image thumbnail variables
145
+ if ($config->getThumbImageActive()) {
146
+ if ($config->getThumbSize()) {
147
+ $thumbWidth = $config->getThumbWidth();
148
+ $thumbHeight = $config->getThumbHeight();
149
+ }
150
+ $thumbnail = $config->load($category->getId())->getThumbnailImageUrl();
151
+ $ulThumb = ' ul-thumb';
152
+ if (!empty($thumbnail)) {
153
+ $image = '<img src="'.$thumbnail.'" width="'.$thumbWidth.'" height="'.$thumbHeight.'" />';
154
+ $thumb = ' thumb';
155
+ $liMarginLeft = 0;
156
+ $ulMarginLeft = $thumbWidth + 3;
157
+ $ulPaddingLeft = 0;
158
+ }
159
+ else {
160
+ $thumb = ' no-thumb';
161
+ $liMarginLeft = $thumbWidth + 3;
162
+ $ulMarginLeft = 0;
163
+ $ulPaddingLeft = 0;
164
+ }
165
+ }
166
+
167
+ $htmlLi .= '<li';
168
+ foreach ($attributes as $attrName => $attrValue) {
169
+ $htmlLi .= ' ' . $attrName . '="' . str_replace('"', '\"', $attrValue) . $thumb . '"';
170
+ }
171
+ $htmlLi .= ' style="margin-left: ' . $liMarginLeft . 'px;">';
172
+ $html[] = $htmlLi;
173
+
174
+ // add thumbnail image
175
+ $html[] = $image;
176
+
177
+ // add collapsible arrow
178
+ $arrow = null;
179
+ if ($config->getCollapsible()) {
180
+ $width = 8;
181
+ $height = 0;
182
+ $expanded = 0;
183
+ if ($hasActiveChildren) {
184
+ $width = 8;
185
+ $height = 10;
186
+ }
187
+ if ($this->isCategoryActive($category)) {
188
+ $expanded = 1;
189
+ }
190
+ $arrow = '<span class="arrow" onClick="expandMenu(this.parentNode)"
191
+ style="width: ' . $width . 'px; height: ' . $height . 'px;"></span>';
192
+ }
193
+ $html[] = $arrow;
194
+ $html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
195
+ $html[] = '<span class="category_name">' . $this->escapeHtml($category->getName()) . '</span></a>';
196
+ // $html[] = '</a>';
197
+
198
+ // add product count
199
+ if ($config->getShowProductCount()) {
200
+ $count = Mage::getModel('catalog/layer')
201
+ ->setCurrentCategory($category->getID())
202
+ ->getProductCollection()
203
+ ->getSize();
204
+ $html[] = '<span class="product-count">(' . $count . ')</span>';
205
+ }
206
+
207
+ // render children
208
+ $htmlChildren = '';
209
+ $j = 0;
210
+ foreach ($activeChildren as $child) {
211
+ $htmlChildren .= $this->_renderCategoryMenuItemHtml(
212
+ $child,
213
+ ($level + 1),
214
+ ($j == $activeChildrenCount - 1),
215
+ ($j == 0),
216
+ false,
217
+ $outermostItemClass,
218
+ $childrenWrapClass,
219
+ $noEventAttributes
220
+ );
221
+ $j++;
222
+ }
223
+ if (!empty($htmlChildren)) {
224
+ if ($childrenWrapClass) {
225
+ $html[] = '<div class="' . $childrenWrapClass . '">';
226
+ }
227
+ $html[] = '<ul class="level' . $level . $ulThumb .
228
+ '" style="margin-left: ' . $ulMarginLeft .
229
+ 'px; padding-left: ' . $ulPaddingLeft . 'px;" expanded="' . $expanded . '">';
230
+ $html[] = $htmlChildren;
231
+ $html[] = '</ul>';
232
+ if ($childrenWrapClass) {
233
+ $html[] = '</div>';
234
+ }
235
+ }
236
+
237
+ $html[] = '</li>';
238
+
239
+ $html = implode("\n", $html);
240
+ return $html;
241
+ }
242
+
243
+ /**
244
+ * Render categories menu in HTML
245
+ *
246
+ * @param int Level number for list item class to start from
247
+ * @param string Extra class of outermost list items
248
+ * @param string If specified wraps children list in div with this class
249
+ * @return string
250
+ */
251
+ public function renderCategoriesMenuHtml($level = 0, $outermostItemClass = '', $childrenWrapClass = '')
252
+ {
253
+ $activeCategories = array();
254
+ foreach ($this->getStoreCategories() as $child) {
255
+ if ($child->getIsActive()) {
256
+ $activeCategories[] = $child;
257
+ }
258
+ }
259
+ $activeCategoriesCount = count($activeCategories);
260
+ $hasActiveCategoriesCount = ($activeCategoriesCount > 0);
261
+
262
+ if (!$hasActiveCategoriesCount) {
263
+ return '';
264
+ }
265
+
266
+ $html = '';
267
+ $j = 0;
268
+ foreach ($activeCategories as $category) {
269
+ $html .= $this->_renderCategoryMenuItemHtml(
270
+ $category,
271
+ $level,
272
+ ($j == $activeCategoriesCount - 1),
273
+ ($j == 0),
274
+ true,
275
+ $outermostItemClass,
276
+ $childrenWrapClass,
277
+ true
278
+ );
279
+ $j++;
280
+ }
281
+
282
+ return $html;
283
+ }
284
+
285
+ /**
286
+ * Get extension enable status
287
+ *
288
+ * @return bool
289
+ */
290
+ public function getCheckActive()
291
+ {
292
+ return $this->_config->checkActive();
293
+ }
294
+
295
+ /**
296
+ * Get selected column
297
+ *
298
+ * @return string
299
+ */
300
+ public function getColumn()
301
+ {
302
+ return $this->_config->getColumnValue();
303
+ }
304
+
305
+ /**
306
+ * Get category title
307
+ *
308
+ * @return string
309
+ */
310
+ public function getTitle()
311
+ {
312
+ return $this->_config->setTitle();
313
+ }
314
+
315
+ }
app/code/community/Codnitive/Sidenav/Block/Page/Html/Head.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Codnitive
16
+ * @package Codnitive_Sidenav
17
+ * @author Hassan Barza <h.barza@gmail.com>
18
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+
22
+
23
+ class Codnitive_Sidenav_Block_Page_Html_Head extends Mage_Page_Block_Html_Head
24
+ {
25
+
26
+ /**
27
+ * Construct parent and adds necessary css and js files
28
+ *
29
+ */
30
+ protected function _construct()
31
+ {
32
+ parent::_construct();
33
+ $config = Mage::getModel('sidenav/config');
34
+ if ($config->getCollapsible() && $config->checkActive()) {
35
+ $this->addCss('codnitive/sidenav/css/sidenavcollapse.css');
36
+ $this->addItem('skin_js', 'codnitive/sidenav/js/sidenavcollapse.js');
37
+ }
38
+ }
39
+
40
+ }
app/code/community/Codnitive/Sidenav/Helper/Category.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Codnitive
16
+ * @package Codnitive_Sidenav
17
+ * @author Hassan Barza <h.barza@gmail.com>
18
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+
22
+ /**
23
+ * Catalog category helper
24
+ *
25
+ * @category Codnitive
26
+ * @package Codnitive_Sidenav
27
+ * @author Hassan Barza <h.barza@gmail.com>
28
+ */
29
+ class Codnitive_Sidenav_Helper_Category extends Mage_Catalog_Helper_Category
30
+ {
31
+ /**
32
+ * Retrieve current store categories
33
+ *
34
+ * @param boolean|string $sorted
35
+ * @param boolean $asCollection
36
+ * @return Varien_Data_Tree_Node_Collection|Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Collection|array
37
+ */
38
+ public function getStoreCategories($sorted=false, $asCollection=false, $toLoad=true)
39
+ {
40
+ $parent = Mage::app()->getStore()->getRootCategoryId();
41
+ $cacheKey = sprintf('%d-%d-%d-%d', $parent, $sorted, $asCollection, $toLoad);
42
+ if (isset($this->_storeCategories[$cacheKey])) {
43
+ return $this->_storeCategories[$cacheKey];
44
+ }
45
+
46
+ /**
47
+ * Check if parent node of the store still exists
48
+ */
49
+ $category = Mage::getModel('catalog/category');
50
+ /**
51
+ * @var $category Mage_Catalog_Model_Category
52
+ */
53
+ if (!$category->checkId($parent)) {
54
+ if ($asCollection) {
55
+ return new Varien_Data_Collection();
56
+ }
57
+ return array();
58
+ }
59
+
60
+ $recursionLevel = max(0, Mage::getModel('sidenav/config')->getMaxDepth());
61
+ $storeCategories = $category->getCategories($parent, $recursionLevel, $sorted, $asCollection, $toLoad);
62
+
63
+ $this->_storeCategories[$cacheKey] = $storeCategories;
64
+ return $storeCategories;
65
+ }
66
+
67
+ }
app/code/community/Codnitive/Sidenav/Helper/Data.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Codnitive
16
+ * @package Codnitive_Sidenav
17
+ * @author Hassan Barza <h.barza@gmail.com>
18
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+
22
+ class Codnitive_Sidenav_Helper_Data extends Mage_Core_Helper_Data
23
+ {
24
+
25
+ }
app/code/community/Codnitive/Sidenav/Model/Config.php ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Codnitive
22
+ * @package Codnitive_Sidenav
23
+ * @author Hassan Barza <h.barza@gmail.com>
24
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+
28
+
29
+ /**
30
+ * Catalog category
31
+ *
32
+ * @category Design
33
+ * @package Codnitive_Sidenav
34
+ * @author Hassan Barza <h.barza@gmail.com>
35
+ */
36
+ class Codnitive_Sidenav_Model_Config extends Mage_Catalog_Model_Category
37
+ {
38
+ /**
39
+ * Retrieve Thumbnail image URL
40
+ *
41
+ * @return string
42
+ */
43
+ public function getThumbnailImageUrl()
44
+ {
45
+ $url = false;
46
+ if ($image = $this->getThumbnail()) {
47
+ $url = Mage::getBaseUrl('media').'catalog/category/'.$image;
48
+ }
49
+ return $url;
50
+ }
51
+
52
+ /**
53
+ * Check for extension enable option status
54
+ *
55
+ * @return bool (1|0)
56
+ */
57
+ public function checkActive()
58
+ {
59
+ return Mage::getStoreConfig('codnitivecatalog/sidenav/active');
60
+ }
61
+
62
+ /**
63
+ * Set title
64
+ *
65
+ * @return string
66
+ */
67
+ public function setTitle()
68
+ {
69
+ $title = Mage::getStoreConfig('codnitivecatalog/sidenav/title');
70
+ return !empty ($title) ? $title : 'Categories';
71
+ }
72
+
73
+ /**
74
+ * Check for top navigation remove stting
75
+ *
76
+ * @return bool (1|0)
77
+ */
78
+ public function getRemoveTopNav()
79
+ {
80
+ return Mage::getStoreConfig('codnitivecatalog/sidenav/remove_top_nav');
81
+ }
82
+
83
+ /**
84
+ * Get column option value to define selected column
85
+ *
86
+ * @return string
87
+ */
88
+ public function getColumnValue()
89
+ {
90
+ return Mage::getStoreConfig('codnitivecatalog/sidenav/column');
91
+ }
92
+
93
+ /**
94
+ * Get gategory maximal depth number
95
+ *
96
+ * @return string
97
+ */
98
+ public function getMaxDepth()
99
+ {
100
+ return Mage::getStoreConfig('codnitivecatalog/sidenav/max_depth');
101
+ }
102
+
103
+ /**
104
+ * Get collapsible menu status
105
+ *
106
+ * @return bool (1|0)
107
+ */
108
+ public function getCollapsible()
109
+ {
110
+ return Mage::getStoreConfig('codnitivecatalog/sidenav/collapsible');
111
+ }
112
+
113
+ /**
114
+ * Get show product count setting
115
+ *
116
+ * @return bool (1|0)
117
+ */
118
+ public function getShowProductCount()
119
+ {
120
+ return Mage::getStoreConfig('codnitivecatalog/sidenav/product_count');
121
+ }
122
+
123
+ /**
124
+ * Check for extension enable option status
125
+ *
126
+ * @return bool (1|0)
127
+ */
128
+ public function getThumbImageActive()
129
+ {
130
+ return Mage::getStoreConfig('codnitivecatalog/sidenav/thumbnail');
131
+ }
132
+
133
+ /**
134
+ * Get thumbnail size setting
135
+ *
136
+ * @return bool
137
+ */
138
+ public function getThumbSize()
139
+ {
140
+ return Mage::getStoreConfig('codnitivecatalog/sidenav/thumb_size');
141
+ }
142
+
143
+ /**
144
+ * Get thumbnail width size
145
+ *
146
+ * @return string
147
+ */
148
+ public function getThumbWidth()
149
+ {
150
+ return Mage::getStoreConfig('codnitivecatalog/sidenav/thumb_width');
151
+ }
152
+
153
+ /**
154
+ * Get thumbnail height size
155
+ *
156
+ * @return string
157
+ */
158
+ public function getThumbHeight()
159
+ {
160
+ return Mage::getStoreConfig('codnitivecatalog/sidenav/thumb_height');
161
+ }
162
+
163
+ }
app/code/community/Codnitive/Sidenav/Model/Config/ColumnOptions.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Codnitive
16
+ * @package Codnitive_Sidenav
17
+ * @author Hassan Barza <h.barza@gmail.com>
18
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+
22
+ class Codnitive_Sidenav_Model_Config_ColumnOptions extends Mage_Core_Model_Config_Data
23
+ {
24
+
25
+ const LEFT_COL_VALUE = 'left_col';
26
+ const RIGHT_COL_VALUE = 'right_col';
27
+ const BOTH_COL_VALUE = 'both_col';
28
+
29
+ /**
30
+ * Fills the select field with values
31
+ *
32
+ * @return array
33
+ */
34
+ public function toOptionArray()
35
+ {
36
+ return array(
37
+ array(
38
+ 'value' => self::LEFT_COL_VALUE,
39
+ 'label' => Mage::helper('sidenav')->__('Left Column')
40
+ ),
41
+ array(
42
+ 'value' => self::RIGHT_COL_VALUE,
43
+ 'label' => Mage::helper('sidenav')->__('Right Column')
44
+ ),
45
+ array(
46
+ 'value' => self::BOTH_COL_VALUE,
47
+ 'label' => Mage::helper('sidenav')->__('Both Columns')
48
+ ),
49
+ );
50
+ }
51
+ }
app/code/community/Codnitive/Sidenav/Model/Config/ThumbSizeOptions.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Codnitive
16
+ * @package Codnitive_Sidenav
17
+ * @author Hassan Barza <h.barza@gmail.com>
18
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+
22
+ class Codnitive_Sidenav_Model_Config_ThumbSizeOptions extends Mage_Core_Model_Config_Data
23
+ {
24
+
25
+ const DEFAULT_VALUE = 0;
26
+ const CUSTOM_VALUE = 1;
27
+
28
+ /**
29
+ * Fills the select field with values
30
+ *
31
+ * @return array
32
+ */
33
+ public function toOptionArray()
34
+ {
35
+ return array(
36
+ array(
37
+ 'value' => self::DEFAULT_VALUE,
38
+ 'label' => Mage::helper('sidenav')->__('Default')
39
+ ),
40
+ array(
41
+ 'value' => self::CUSTOM_VALUE,
42
+ 'label' => Mage::helper('sidenav')->__('Custom')
43
+ ),
44
+ );
45
+ }
46
+ }
app/code/community/Codnitive/Sidenav/etc/adminhtml.xml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * DISCLAIMER
13
+ *
14
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
15
+ * versions in the future. If you wish to customize Magento for your
16
+ * needs please refer to http://www.magentocommerce.com for more information.
17
+ *
18
+ * @category Codnitive
19
+ * @package Codnitive_Sidnav
20
+ * @author Hassan Barza <h.barza@gmail.com>
21
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
22
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23
+ */
24
+ -->
25
+ <config>
26
+ <acl>
27
+ <resources>
28
+ <all>
29
+ <title>Allow Everything</title>
30
+ </all>
31
+ <admin>
32
+ <children>
33
+ <system>
34
+ <children>
35
+ <config>
36
+ <children>
37
+ <codnitivecatalog>
38
+ <title>CODNITIVE Catalog</title>
39
+ </codnitivecatalog>
40
+ </children>
41
+ </config>
42
+ </children>
43
+ </system>
44
+ </children>
45
+ </admin>
46
+ </resources>
47
+ </acl>
48
+ </config>
app/code/community/Codnitive/Sidenav/etc/config.xml ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * DISCLAIMER
13
+ *
14
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
15
+ * versions in the future. If you wish to customize Magento for your
16
+ * needs please refer to http://www.magentocommerce.com for more information.
17
+ *
18
+ * @category Codnitive
19
+ * @package Codnitive_Sidenav
20
+ * @author Hassan Barza <h.barza@gmail.com>
21
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
22
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23
+ */
24
+ -->
25
+ <config>
26
+ <modules>
27
+ <Codnitive_Sidenav>
28
+ <version>1.6.32</version>
29
+ <title>Sidebar Navigation Menu Professional</title>
30
+ <link><![CDATA[http://www.codnitive.com/]]></link>
31
+ </Codnitive_Sidenav>
32
+ </modules>
33
+ <global>
34
+ <models>
35
+ <sidenav>
36
+ <class>Codnitive_Sidenav_Model</class>
37
+ </sidenav>
38
+ <sidenavconfig>
39
+ <class>Codnitive_Sidenav_Model_Config</class>
40
+ </sidenavconfig>
41
+ </models>
42
+ <helpers>
43
+ <sidenav>
44
+ <class>Codnitive_Sidenav_Helper</class>
45
+ </sidenav>
46
+ </helpers>
47
+ <resources>
48
+ <sidenav_setup>
49
+ <setup>
50
+ <module>Codnitive_Sidenav</module>
51
+ </setup>
52
+ <connection>
53
+ <use>core_setup</use>
54
+ </connection>
55
+ </sidenav_setup>
56
+ <sidenav_write>
57
+ <connection>
58
+ <use>core_write</use>
59
+ </connection>
60
+ </sidenav_write>
61
+ <sidenav_read>
62
+ <connection>
63
+ <use>core_read</use>
64
+ </connection>
65
+ </sidenav_read>
66
+ </resources>
67
+ <blocks>
68
+ <page>
69
+ <rewrite>
70
+ <html_head>Codnitive_Sidenav_Block_Page_Html_Head</html_head>
71
+ </rewrite>
72
+ </page>
73
+ <sidenav>
74
+ <class>Codnitive_Sidenav_Block</class>
75
+ </sidenav>
76
+ </blocks>
77
+ </global>
78
+
79
+ <adminhtml>
80
+ <acl>
81
+ <resources>
82
+ <all>
83
+ <title>Allow Everything</title>
84
+ </all>
85
+ <admin>
86
+ <children>
87
+ <system>
88
+ <children>
89
+ <config>
90
+ <children>
91
+ <codnitivecatalog>
92
+ <title>CODNITIVE Catalog</title>
93
+ </codnitivecatalog>
94
+ </children>
95
+ </config>
96
+ </children>
97
+ </system>
98
+ </children>
99
+ </admin>
100
+ </resources>
101
+ </acl>
102
+
103
+ <translate>
104
+ <modules>
105
+ <Codnitive_Sidenav>
106
+ <files>
107
+ <default>Codnitive_Sidenav.csv</default>
108
+ </files>
109
+ </Codnitive_Sidenav>
110
+ </modules>
111
+ </translate>
112
+ </adminhtml>
113
+
114
+ <frontend>
115
+ <translate>
116
+ <modules>
117
+ <Codnitive_Sidenav>
118
+ <files>
119
+ <default>Codnitive_Sidenav.csv</default>
120
+ </files>
121
+ </Codnitive_Sidenav>
122
+ </modules>
123
+ </translate>
124
+
125
+ <layout>
126
+ <updates>
127
+ <sidenav>
128
+ <file>sidenav.xml</file>
129
+ </sidenav>
130
+ </updates>
131
+ </layout>
132
+ </frontend>
133
+
134
+ <default>
135
+ <codnitivecatalog>
136
+ <sidenav>
137
+ <active>1</active>
138
+ <title>Categories</title>
139
+ <remove_top_nav>0</remove_top_nav>
140
+ <column>left_col</column>
141
+ <max_depth>0</max_depth>
142
+ <collapsible>1</collapsible>
143
+ <product_count>0</product_count>
144
+ <thumbnail>0</thumbnail>
145
+ <thumb_size>0</thumb_size>
146
+ <thumb_width>14</thumb_width>
147
+ <thumb_height>14</thumb_height>
148
+ </sidenav>
149
+ </codnitivecatalog>
150
+ </default>
151
+ </config>
app/code/community/Codnitive/Sidenav/etc/system.xml ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * DISCLAIMER
13
+ *
14
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
15
+ * versions in the future. If you wish to customize Magento for your
16
+ * needs please refer to http://www.magentocommerce.com for more information.
17
+ *
18
+ * @category Codnitive
19
+ * @package Codnitive_Sidenav
20
+ * @author Hassan Barza <h.barza@gmail.com>
21
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
22
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23
+ */
24
+ -->
25
+ <config>
26
+ <sections>
27
+ <codnitivecatalog translate="label" module="sidenav">
28
+ <label>Catalog</label>
29
+ <tab>codall</tab>
30
+ <frontend_type>text</frontend_type>
31
+ <sort_order>200</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>1</show_in_store>
35
+ <groups>
36
+ <sidenav translate="label" module="sidenav">
37
+ <label>Sidebar Navigation Menu Professional</label>
38
+ <sort_order>450</sort_order>
39
+ <show_in_default>1</show_in_default>
40
+ <show_in_website>1</show_in_website>
41
+ <show_in_store>1</show_in_store>
42
+ <fields>
43
+ <active translate="label">
44
+ <label>Enabled</label>
45
+ <frontend_type>select</frontend_type>
46
+ <source_model>adminhtml/system_config_source_yesno</source_model>
47
+ <sort_order>1</sort_order>
48
+ <show_in_default>1</show_in_default>
49
+ <show_in_website>1</show_in_website>
50
+ <show_in_store>1</show_in_store>
51
+ <!--<comment>You must refresh "Blocks HTML output" cache if it's enabled.</comment>-->
52
+ </active>
53
+ <title translate="label">
54
+ <label>Title</label>
55
+ <frontend_type>text</frontend_type>
56
+ <sort_order>2</sort_order>
57
+ <show_in_default>1</show_in_default>
58
+ <show_in_website>1</show_in_website>
59
+ <show_in_store>1</show_in_store>
60
+ </title>
61
+ <remove_top_nav translate="label">
62
+ <label>Remove Top Navigation Menu</label>
63
+ <frontend_type>select</frontend_type>
64
+ <source_model>adminhtml/system_config_source_yesno</source_model>
65
+ <sort_order>3</sort_order>
66
+ <show_in_default>1</show_in_default>
67
+ <show_in_website>1</show_in_website>
68
+ <show_in_store>1</show_in_store>
69
+ </remove_top_nav>
70
+ <column translate="label">
71
+ <label>Show In</label>
72
+ <frontend_type>select</frontend_type>
73
+ <!--<backend_model>sidenavconfig/ColumnOptions</backend_model>-->
74
+ <source_model>sidenavconfig/ColumnOptions</source_model>
75
+ <sort_order>5</sort_order>
76
+ <show_in_default>1</show_in_default>
77
+ <show_in_website>1</show_in_website>
78
+ <show_in_store>1</show_in_store>
79
+ </column>
80
+ <max_depth translate="label">
81
+ <label>Maximal Depth</label>
82
+ <frontend_type>text</frontend_type>
83
+ <sort_order>6</sort_order>
84
+ <show_in_default>1</show_in_default>
85
+ <show_in_website>1</show_in_website>
86
+ <show_in_store>1</show_in_store>
87
+ <comment>Set to 0 or leave empty for unlimit depth.</comment>
88
+ </max_depth>
89
+ <collapsible translate="label">
90
+ <label>Collapsible</label>
91
+ <frontend_type>select</frontend_type>
92
+ <source_model>adminhtml/system_config_source_yesno</source_model>
93
+ <sort_order>7</sort_order>
94
+ <show_in_default>1</show_in_default>
95
+ <show_in_website>1</show_in_website>
96
+ <show_in_store>1</show_in_store>
97
+ </collapsible>
98
+ <product_count translate="label">
99
+ <label>Show Product Count</label>
100
+ <frontend_type>select</frontend_type>
101
+ <source_model>adminhtml/system_config_source_yesno</source_model>
102
+ <sort_order>8</sort_order>
103
+ <show_in_default>1</show_in_default>
104
+ <show_in_website>1</show_in_website>
105
+ <show_in_store>1</show_in_store>
106
+ </product_count>
107
+ <thumbnail translate="label">
108
+ <label>Thumbnail Enabled</label>
109
+ <frontend_type>select</frontend_type>
110
+ <source_model>adminhtml/system_config_source_yesno</source_model>
111
+ <sort_order>10</sort_order>
112
+ <show_in_default>1</show_in_default>
113
+ <show_in_website>1</show_in_website>
114
+ <show_in_store>1</show_in_store>
115
+ <comment>Shows thumbnail of menus.</comment>
116
+ </thumbnail>
117
+ <thumb_size translate="label">
118
+ <label>Thumbnail Size</label>
119
+ <frontend_type>select</frontend_type>
120
+ <!--<backend_model>sidenavconfig/ThumbSizeOptions</backend_model>-->
121
+ <source_model>sidenavconfig/ThumbSizeOptions</source_model>
122
+ <sort_order>11</sort_order>
123
+ <show_in_default>1</show_in_default>
124
+ <show_in_website>1</show_in_website>
125
+ <show_in_store>1</show_in_store>
126
+ <comment>Applies for all thumbnails.</comment>
127
+ <depends>
128
+ <thumbnail>1</thumbnail>
129
+ </depends>
130
+ </thumb_size>
131
+ <thumb_width translate="label">
132
+ <label>Width</label>
133
+ <frontend_type>text</frontend_type>
134
+ <sort_order>12</sort_order>
135
+ <show_in_default>1</show_in_default>
136
+ <show_in_website>1</show_in_website>
137
+ <show_in_store>1</show_in_store>
138
+ <comment>A number based on 'px' (default: 14).</comment>
139
+ <depends>
140
+ <thumb_size>1</thumb_size>
141
+ <thumbnail>1</thumbnail>
142
+ </depends>
143
+ </thumb_width>
144
+ <thumb_height translate="label">
145
+ <label>Height</label>
146
+ <frontend_type>text</frontend_type>
147
+ <sort_order>13</sort_order>
148
+ <show_in_default>1</show_in_default>
149
+ <show_in_website>1</show_in_website>
150
+ <show_in_store>1</show_in_store>
151
+ <comment>A number based on 'px' (default: 14).</comment>
152
+ <depends>
153
+ <thumb_size>1</thumb_size>
154
+ <thumbnail>1</thumbnail>
155
+ </depends>
156
+ </thumb_height>
157
+ </fields>
158
+ </sidenav>
159
+ </groups>
160
+ </codnitivecatalog>
161
+ </sections>
162
+ </config>
app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/Contact.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Codnitive
16
+ * @package Codnitive_Codall
17
+ * @author Hassan Barza <h.barza@gmail.com>
18
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ class Codnitive_Codall_Block_System_Config_Form_Fieldset_Contact
22
+ extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
23
+ {
24
+ public function render(Varien_Data_Form_Element_Abstract $element)
25
+ {
26
+ $local = Mage::app()->getLocale()->getLocaleCode();
27
+ $html = $this->_getHeaderHtml($element);
28
+ if ($local == 'fa_IR')
29
+ $html .= include 'PCD.php';
30
+ else
31
+ $html .= include 'ECD.php';
32
+ $html .= $this->_getFooterHtml($element);
33
+
34
+ return $html;
35
+ }
36
+ }
app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/ECD.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Codnitive
16
+ * @package Codnitive_Codall
17
+ * @author Hassan Barza <h.barza@gmail.com>
18
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ return <<<ECD
22
+
23
+ <p>Please <a href='http://www.codnitive.com/' target='_blank'>contact us</a>, if you have any question.</p>
24
+
25
+ ECD;
app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/Extensions/List.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Codnitive
16
+ * @package Codnitive_Codall
17
+ * @author Hassan Barza <h.barza@gmail.com>
18
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ class Codnitive_Codall_Block_System_Config_Form_Fieldset_Extensions_List
22
+ extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
23
+ {
24
+ public function render(Varien_Data_Form_Element_Abstract $element)
25
+ {
26
+ $html = $this->_getHeaderHtml($element);
27
+ $modules = Mage::getConfig()->getNode('modules')->children();
28
+ $linkTitle = Mage::helper('codall')->__('Goto Extension Page');
29
+
30
+ foreach ($modules as $moduleName => $values) {
31
+ if (0 !== strpos($moduleName, 'Codnitive_')) {
32
+ continue;
33
+ }
34
+ /*if($moduleName == 'Codnitive_Codall'){
35
+ continue;
36
+ }*/
37
+ if ($values->title) {
38
+ $moduleName = (string) $values->title;
39
+ }
40
+ if ($values->link) {
41
+ $link = (string) $values->link;
42
+ $moduleName = "<a href='{$link}' target='_blank' title='{$linkTitle}'>{$moduleName}</a>";
43
+ }
44
+
45
+ $field = $element->addField($moduleName, 'label', array(
46
+ 'label' => $moduleName,
47
+ 'value' => (string) $values->version
48
+ ));
49
+ $html .= $field->toHtml();
50
+ }
51
+
52
+ $html .= $this->_getFooterHtml($element);
53
+
54
+ return $html;
55
+ }
56
+ }
app/code/local/Codnitive/Codall/Block/System/Config/Form/Fieldset/PCD.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Codnitive
16
+ * @package Codnitive_Codall
17
+ * @author Hassan Barza <h.barza@gmail.com>
18
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ return <<<PCD
22
+
23
+ اگر هر گونه سوالی دارید، لطفا <a href='http://www.codnitive.com/' target='_blank'>با ما تماس بگیرید</a>.
24
+
25
+ PCD;
app/code/local/Codnitive/Codall/Helper/Data.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Codnitive
16
+ * @package Codnitive_Codall
17
+ * @author Hassan Barza <h.barza@gmail.com>
18
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+
22
+ class Codnitive_Codall_Helper_Data extends Mage_Core_Helper_Data
23
+ {
24
+
25
+ }
app/code/local/Codnitive/Codall/etc/adminhtml.xml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * DISCLAIMER
13
+ *
14
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
15
+ * versions in the future. If you wish to customize Magento for your
16
+ * needs please refer to http://www.magentocommerce.com for more information.
17
+ *
18
+ * @category Codnitive
19
+ * @package Codnitive_Codall
20
+ * @author Hassan Barza <h.barza@gmail.com>
21
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
22
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23
+ */
24
+ -->
25
+ <config>
26
+ <acl>
27
+ <resources>
28
+ <all>
29
+ <title>Allow Everything</title>
30
+ </all>
31
+ <admin>
32
+ <children>
33
+ <system>
34
+ <children>
35
+ <config>
36
+ <children>
37
+ <codall>
38
+ <title>CODNITIVE Information</title>
39
+ </codall>
40
+ </children>
41
+ </config>
42
+ </children>
43
+ </system>
44
+ </children>
45
+ </admin>
46
+ </resources>
47
+ </acl>
48
+ </config>
app/code/local/Codnitive/Codall/etc/config.xml ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * DISCLAIMER
13
+ *
14
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
15
+ * versions in the future. If you wish to customize Magento for your
16
+ * needs please refer to http://www.magentocommerce.com for more information.
17
+ *
18
+ * @category Codnitive
19
+ * @package Codnitive_Codall
20
+ * @author Hassan Barza <h.barza@gmail.com>
21
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
22
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23
+ */
24
+ -->
25
+ <config>
26
+ <modules>
27
+ <Codnitive_Codall>
28
+ <version>1.0.10</version>
29
+ <title>CODNITIVE® Information</title>
30
+ <link><![CDATA[http://www.codnitive.com/]]></link>
31
+ </Codnitive_Codall>
32
+ </modules>
33
+
34
+ <global>
35
+ <models>
36
+ <codall>
37
+ <class>Codnitive_Codall_Model</class>
38
+ </codall>
39
+ </models>
40
+ <helpers>
41
+ <codall>
42
+ <class>Codnitive_Codall_Helper</class>
43
+ </codall>
44
+ </helpers>
45
+ <resources>
46
+ <codall_setup>
47
+ <setup>
48
+ <module>Codnitive_Codall</module>
49
+ </setup>
50
+ <connection>
51
+ <use>core_setup</use>
52
+ </connection>
53
+ </codall_setup>
54
+ <codall_write>
55
+ <connection>
56
+ <use>core_write</use>
57
+ </connection>
58
+ </codall_write>
59
+ <codall_read>
60
+ <connection>
61
+ <use>core_read</use>
62
+ </connection>
63
+ </codall_read>
64
+ </resources>
65
+ <blocks>
66
+ <codall>
67
+ <class>Codnitive_Codall_Block</class>
68
+ </codall>
69
+ </blocks>
70
+ </global>
71
+
72
+ <adminhtml>
73
+ <translate>
74
+ <modules>
75
+ <Codnitive_Codall>
76
+ <files>
77
+ <default>Codnitive_Codall.csv</default>
78
+ </files>
79
+ </Codnitive_Codall>
80
+ </modules>
81
+ </translate>
82
+
83
+ <acl>
84
+ <resources>
85
+ <all>
86
+ <title>Allow Everything</title>
87
+ </all>
88
+ <admin>
89
+ <children>
90
+ <system>
91
+ <children>
92
+ <config>
93
+ <children>
94
+ <codall>
95
+ <title>CODNITIVE Information</title>
96
+ </codall>
97
+ </children>
98
+ </config>
99
+ </children>
100
+ </system>
101
+ </children>
102
+ </admin>
103
+ </resources>
104
+ </acl>
105
+ </adminhtml>
106
+ </config>
app/code/local/Codnitive/Codall/etc/system.xml ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * DISCLAIMER
13
+ *
14
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
15
+ * versions in the future. If you wish to customize Magento for your
16
+ * needs please refer to http://www.magentocommerce.com for more information.
17
+ *
18
+ * @category Codnitive
19
+ * @package Codnitive_Codall
20
+ * @author Hassan Barza <h.barza@gmail.com>
21
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
22
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23
+ */
24
+ -->
25
+ <config>
26
+ <tabs>
27
+ <codall translate="label" module="codall">
28
+ <label>CODNITIVE®</label>
29
+ <sort_order>200</sort_order>
30
+ </codall>
31
+ </tabs>
32
+
33
+ <sections>
34
+ <codall translate="label" module="codall">
35
+ <label>Information</label>
36
+ <tab>codall</tab>
37
+ <frontend_type>text</frontend_type>
38
+ <sort_order>99999</sort_order>
39
+ <show_in_default>1</show_in_default>
40
+ <show_in_website>1</show_in_website>
41
+ <show_in_store>1</show_in_store>
42
+ <groups>
43
+ <contact translate="label comment" module="codall">
44
+ <label>Contact</label>
45
+ <frontend_type>text</frontend_type>
46
+ <frontend_model>codall/system_config_form_fieldset_contact</frontend_model>
47
+ <sort_order>10</sort_order>
48
+ <show_in_default>1</show_in_default>
49
+ <show_in_website>1</show_in_website>
50
+ <show_in_store>1</show_in_store>
51
+ </contact>
52
+ <extensions translate="label" module="codall">
53
+ <label>Installed Extensions</label>
54
+ <frontend_type>text</frontend_type>
55
+ <frontend_model>codall/system_config_form_fieldset_extensions_list</frontend_model>
56
+ <sort_order>20</sort_order>
57
+ <show_in_default>1</show_in_default>
58
+ <show_in_website>1</show_in_website>
59
+ <show_in_store>1</show_in_store>
60
+ </extensions>
61
+ </groups>
62
+ </codall>
63
+ </sections>
64
+ </config>
app/design/frontend/base/default/layout/sidenav.xml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magentocommerce.com for more information.
21
+ *
22
+ * @category Codnitive
23
+ * @package Codnitive_Sidenav
24
+ * @author Hassan Barza <h.barza@gmail.com>
25
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
26
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
27
+ */
28
+
29
+ Supported layout update handles (action):
30
+ - catalog_navigation
31
+
32
+ -->
33
+ <layout version="1.2.0">
34
+
35
+ <!--
36
+ Default layout
37
+ -->
38
+ <default>
39
+ <reference name="head">
40
+ <action method="addCss" ifconfig="codnitivecatalog/sidenav/active"><stylesheet>codnitive/sidenav/css/sidenav.css</stylesheet></action>
41
+ </reference>
42
+ <reference name="top.menu">
43
+ <action method="unsetChild" ifconfig="codnitivecatalog/sidenav/remove_top_nav"><name>catalog.topnav</name></action>
44
+ </reference>
45
+
46
+ <!-- Mage_Codnitive_Catalog -->
47
+ <reference name="left">
48
+ <block type="catalog/navigation" name="category_side_nav_left" before="-" template="codnitive/catalog/navigation/left.phtml"/>
49
+ </reference>
50
+ <reference name="right">
51
+ <block type="catalog/navigation" name="category_side_nav_right" before="-" template="codnitive/catalog/navigation/right.phtml"/>
52
+ </reference>
53
+ </default>
54
+
55
+ <customer_account translate="label">
56
+ <reference name="left">
57
+ <block type="catalog/navigation" name="catalog_side_nav_customer" after="customer_account_navigation" template="codnitive/catalog/navigation/customer.phtml"/>
58
+ </reference>
59
+ </customer_account>
60
+
61
+ </layout>
app/design/frontend/base/default/template/codnitive/catalog/navigation/customer.phtml ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Codnitive
22
+ * @package Codnitive_Sidenav
23
+ * @author Hassan Barza <h.barza@gmail.com>
24
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+ ?>
28
+ <?php
29
+ /**
30
+ * Sidebar menu for store
31
+ *
32
+ * @see Codnitive_Sidenav_Block_Navigation
33
+ */
34
+ ?>
35
+
36
+ <?php
37
+ $sidebarnav = Mage::getBlockSingleton('sidenav/navigation');
38
+ $isActive = $sidebarnav->getCheckActive();
39
+ $categories = $sidebarnav->getCategoriesNavMenu();
40
+ $column = $sidebarnav->getColumn();
41
+ $title = $sidebarnav->getTitle(); ?>
42
+ <?php if ($isActive && $column == 'right_col'): ?>
43
+ <div id="sidebar-nav" class="sidebar-nav-customer">
44
+ <div class="block-title">
45
+ <strong><span><?php echo Mage::helper('sidenav')->__($title) ?></span></strong>
46
+ </div>
47
+ <div class="block-content">
48
+ <ul id="sidebar-nav-menu">
49
+ <?php
50
+ echo $categories ?
51
+ $categories :
52
+ Mage::helper('sidenav')->__('There are no categories in store.');
53
+ ?>
54
+ </ul>
55
+ </div>
56
+ </div>
57
+ <?php endif ?>
app/design/frontend/base/default/template/codnitive/catalog/navigation/left.phtml ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Codnitive
22
+ * @package Codnitive_Sidenav
23
+ * @author Hassan Barza <h.barza@gmail.com>
24
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+ ?>
28
+ <?php
29
+ /**
30
+ * Sidebar menu for store
31
+ *
32
+ * @see Codnitive_sidenav_Block_Navigation
33
+ */
34
+ ?>
35
+
36
+ <?php
37
+ $sidebarnav = Mage::getBlockSingleton('sidenav/navigation');
38
+ $isActive = $sidebarnav->getCheckActive();
39
+ $categories = $sidebarnav->getCategoriesNavMenu();
40
+ $column = $sidebarnav->getColumn();
41
+ $title = $sidebarnav->getTitle(); ?>
42
+ <?php if ($isActive && ($column == 'left_col' || $column == 'both_col')): ?>
43
+ <div id="sidebar-nav" class="sidebar-nav-left">
44
+ <div class="block-title">
45
+ <strong><span><?php echo Mage::helper('sidenav')->__($title) ?></span></strong>
46
+ </div>
47
+ <div class="block-content">
48
+ <ul id="sidebar-nav-menu">
49
+ <?php
50
+ echo $categories ?
51
+ $categories :
52
+ Mage::helper('sidenav')->__('There are no categories in store.');
53
+ ?>
54
+ </ul>
55
+ </div>
56
+ </div>
57
+ <?php endif ?>
app/design/frontend/base/default/template/codnitive/catalog/navigation/right.phtml ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Codnitive
22
+ * @package Codnitive_Sidenav
23
+ * @author Hassan Barza <h.barza@gmail.com>
24
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+ ?>
28
+ <?php
29
+ /**
30
+ * Sidebar menu for store
31
+ *
32
+ * @see Codnitive_Sidenav_Block_Navigation
33
+ */
34
+ ?>
35
+
36
+ <?php
37
+ $sidebarnav = Mage::getBlockSingleton('sidenav/navigation');
38
+ $isActive = $sidebarnav->getCheckActive();
39
+ $categories = $sidebarnav->getCategoriesNavMenu();
40
+ $column = $sidebarnav->getColumn();
41
+ $title = $sidebarnav->getTitle(); ?>
42
+ <?php if ($isActive && ($column == 'right_col' || $column == 'both_col')): ?>
43
+ <div id="sidebar-nav" class="sidebar-nav-right">
44
+ <div class="block-title">
45
+ <strong><span><?php echo Mage::helper('sidenav')->__($title) ?></span></strong>
46
+ </div>
47
+ <div class="block-content">
48
+ <ul id="sidebar-nav-menu">
49
+ <?php
50
+ echo $categories ?
51
+ $categories :
52
+ Mage::helper('sidenav')->__('There are no categories in store.');
53
+ ?>
54
+ </ul>
55
+ </div>
56
+ </div>
57
+ <?php endif ?>
app/etc/modules/Codnitive_Codall.xml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * DISCLAIMER
13
+ *
14
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
15
+ * versions in the future. If you wish to customize Magento for your
16
+ * needs please refer to http://www.magentocommerce.com for more information.
17
+ *
18
+ * @category Codnitive
19
+ * @package Codnitive_Codall
20
+ * @author Hassan Barza <h.barza@gmail.com>
21
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
22
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23
+ */
24
+ -->
25
+ <config>
26
+ <modules>
27
+ <Codnitive_Codall>
28
+ <active>true</active>
29
+ <codePool>local</codePool>
30
+ <version>1.0.10</version>
31
+ </Codnitive_Codall>
32
+ </modules>
33
+ </config>
app/etc/modules/Codnitive_Sidenav.xml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * DISCLAIMER
13
+ *
14
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
15
+ * versions in the future. If you wish to customize Magento for your
16
+ * needs please refer to http://www.magentocommerce.com for more information.
17
+ *
18
+ * @category Codnitive
19
+ * @package Codnitive_Sidenav
20
+ * @author Hassan Barza <h.barza@gmail.com>
21
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
22
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23
+ */
24
+ -->
25
+ <config>
26
+ <modules>
27
+ <Codnitive_Sidenav>
28
+ <active>true</active>
29
+ <codePool>community</codePool>
30
+ <depends>
31
+ <Mage_Core />
32
+ <Mage_Page />
33
+ <Mage_Catalog />
34
+ </depends>
35
+ <version>1.6.32</version>
36
+ </Codnitive_Sidenav>
37
+ </modules>
38
+ </config>
app/locale/en_US/Codnitive_Codall.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ "Information","Information"
2
+ "Contact","Contact"
3
+ "Installed Extensions","Installed Extensions"
app/locale/en_US/Codnitive_Sidenav.csv ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "",""
2
+ "[GLOBAL]","[GLOBAL]"
3
+ "[STORE VIEW]","[STORE VIEW]"
4
+ "Applies for all thumbnails.","Applies for all thumbnails."
5
+ "Both Columns","Both Columns"
6
+ "Catalog","Catalog"
7
+ "Categories","Categories"
8
+ "Collapsible","Collapsible"
9
+ "Custom","Custom"
10
+ "Default","Default"
11
+ "Enabled","Enabled"
12
+ "Height","Height"
13
+ "Left Column","Left Column"
14
+ "Maximal Depth","Maximal Depth"
15
+ "No","No"
16
+ "A number based on 'px' (default: 14).","A number based on 'px' (default: 14)."
17
+ "Remove Top Navigation Menu","Remove Top Navigation Menu"
18
+ "Right Column","Right Column"
19
+ "Set to 0 or leave empty for unlimit depth.","Set to 0 or leave empty for unlimit depth."
20
+ "Shows thumbnail of menus.","Shows thumbnail of menus."
21
+ "Show In","Show In"
22
+ "Show Product Count","Show Product Count"
23
+ "Sidebar Navigation Menu Professional","Sidebar Navigation Menu Professional"
24
+ "There are no categories in store.","There are no categories in store."
25
+ "Thumbnail Enabled","Thumbnail Enabled"
26
+ "Thumbnail Size","Thumbnail Size"
27
+ "Title","Title"
28
+ "Use Default","Use Default"
29
+ "Use Website","Use Website"
30
+ "Width","Width"
31
+ "Yes","Yes"
32
+ "You must refresh ""Blocks HTML output"" cache if it's enabled.","You must refresh ""Blocks HTML output"" cache if it's enabled."
app/locale/fa_IR/Codnitive_Codall.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ "Information","اطلاعات"
2
+ "Contact","تماس"
3
+ "Installed Extensions","اکستنشن‌های نصب شده"
app/locale/fa_IR/Codnitive_Sidenav.csv ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "",""
2
+ "[GLOBAL]","[سراسری]"
3
+ "[STORE VIEW]","[نمای فروشگاه]"
4
+ "Applies for all thumbnails.","برای همه‌ی تصاویر کوچک اعمال می‌شود."
5
+ "Both Columns","هر دو ستون"
6
+ "Catalog","کاتالوگ"
7
+ "Categories","رده‌ها"
8
+ "Collapsible","تاشو"
9
+ "Custom","سفارشی"
10
+ "Default","پیش فرض"
11
+ "Enabled","ممکن‌شده"
12
+ "Height","بلندی"
13
+ "Left Column","ستون چپ"
14
+ "Maximal Depth","عمق نهایی"
15
+ "No","خیر"
16
+ "A number based on 'px' (default: 14).","عددی بر مبنای 'px' (پیش فرض: 14)."
17
+ "Remove Top Navigation Menu","برداشتن منوی ناوبری بالایی"
18
+ "Right Column","ستون راست"
19
+ "Set to 0 or leave empty for unlimit depth.","برای عمق نهایی نا محدود 0(صفر) وارد کنید یا خالی بگذارید."
20
+ "Shows thumbnail of menus.","تصویر کوچک منوها را نمایش می‌دهد."
21
+ "Show In","نمایش در"
22
+ "Show Product Count","نمایش تعداد محصول"
23
+ "Sidebar Navigation Menu Professional","منوی ناوبری نوارکناری حرفه‌ای"
24
+ "There are no categories in store.","هیچ رده‌ای در فرورشگاه وجود ندارد."
25
+ "Thumbnail Enabled","تصویر کوچک ممکن‌شده"
26
+ "Thumbnail Size","اندازه‌ی تصویر کوچک"
27
+ "Title","عنوان"
28
+ "Use Default","استفاده از پیش فرض"
29
+ "Use Website","استفاده از وب‌سایت"
30
+ "Width","پهنا"
31
+ "Yes","بلی"
32
+ "You must refresh ""Blocks HTML output"" cache if it's enabled.","اگر کش ""خروجی HTML بلاک‌ها"" ممکن شده است شما باید آن را رفرش کنید."
package.xml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Codnitive_Sidenav</name>
4
+ <version>1.6.32</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://www.opensource.org/licenses/gpl-3.0.html">GNU General Public License, version 3 (GPLv3)</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Adds new blocks to store side columns with lots of functionalities like showing categories thumbnail images, collapsible menus and more. This category navigation can use as a fast navigation sidebar.</summary>
10
+ <description>This extension will add a very useful and professional vertical navigation bar. The new block will add to right, left or both columns with unique and nice design.&#xD;
11
+ With this navigation menu users can navigate to all site categories simply and fast.</description>
12
+ <notes>Please note: first test all modules in a test store then install theme on your original store. Always make backup of your store before installation.</notes>
13
+ <authors><author><name>Hassan Barza</name><user>hbarza</user><email>h.barza@gmail.com</email></author></authors>
14
+ <date>2011-11-19</date>
15
+ <time>21:52:07</time>
16
+ <contents><target name="mageetc"><dir name="modules"><file name="Codnitive_Codall.xml" hash="0592601a7953e9a9246dce2cdc23a634"/><file name="Codnitive_Sidenav.xml" hash="81da4d5de313c861d8a03f1952a66cb8"/></dir></target><target name="magelocal"><dir name="Codnitive"><dir name="Codall"><dir><dir name="Block"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Fieldset"><file name="Contact.php" hash="7fede9b1b803e48c56a815a87ef1818c"/><file name="ECD.php" hash="8c15f314139287c263a2bab193eb48bd"/><dir name="Extensions"><file name="List.php" hash="581ddbeb063c36df0c0ea6e042dd90e8"/></dir><file name="PCD.php" hash="9020d44ada456d95860c6ca2e8431e84"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="b60940085573edb2cf719897c658fa25"/></dir><dir name="etc"><file name="adminhtml.xml" hash="8722d7be66c0807160b765a6d6c9d0f8"/><file name="config.xml" hash="ed5154fd4f55af5844eb21ff876f366c"/><file name="system.xml" hash="159a0bf73395276041f6580362e550ac"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Codnitive_Codall.csv" hash="bea852e5e3c3f17c54d3c21e96115c68"/><file name="Codnitive_Sidenav.csv" hash="d91a28529b3c0c6b8ef7ce0debd3d9a1"/></dir><dir name="fa_IR"><file name="Codnitive_Codall.csv" hash="3691ccfe6c605575aace69417351e0f7"/><file name="Codnitive_Sidenav.csv" hash="5e82ef2d511754ceaeed8c0b35de7ad2"/></dir></target><target name="magecommunity"><dir name="Codnitive"><dir name="Sidenav"><dir><dir name="Block"><file name="Navigation.php" hash="22e68367a86892894fc056bbcaf83c82"/><dir name="Page"><dir name="Html"><file name="Head.php" hash="27981237c2523d3b4293e65931e66763"/></dir></dir></dir><dir name="Helper"><file name="Category.php" hash="c40783fde68cbc601654d83d1f284e0e"/><file name="Data.php" hash="420eb8765798f280167983095a9c726b"/></dir><dir name="Model"><dir name="Config"><file name="ColumnOptions.php" hash="7ee74c6acb8943b987b2dcdc8cb0fca6"/><file name="ThumbSizeOptions.php" hash="824968e95581910bdd7ae8937335b45a"/></dir><file name="Config.php" hash="a85349bad69d1bfca64950db2a599cdc"/></dir><dir name="etc"><file name="adminhtml.xml" hash="c92483d88e08bd40f59d23ed03fcb0f7"/><file name="config.xml" hash="368bfc57f13638f8bf68ef0394fb2511"/><file name="system.xml" hash="2d68dd6448f66a988b9171fa2e07fa58"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="sidenav.xml" hash="1f1aacc3dbe9fff4029a7d93bff3a682"/></dir><dir name="template"><dir name="codnitive"><dir name="catalog"><dir name="navigation"><file name="customer.phtml" hash="38f24e9cc7b7b3f373cbda497ca64322"/><file name="left.phtml" hash="4af19f635d8b91a428dc362b2917c820"/><file name="right.phtml" hash="594d987fc1d416859ec6221b0d671041"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="blank"><dir name="css"><file name="sidenav.css" hash="e45d4f2410228643a8426133d8c67142"/></dir></dir><dir name="default"><dir name="css"><file name="sidenav.css" hash="5e6ba9ebee9a775b3fdebaa3ca14be4d"/><file name="sidenavcollapse.css" hash="324b76eb0fed62f2d80c04d357b3778e"/></dir><dir name="images"><file name="bkg_block-sidebarnav-actions.gif" hash="da2970eac0a22c850b19ee3680475d51"/><file name="bkg_block-sidebarnav-layered-dd.gif" hash="6ae6f8184e87de496fb74eeec65737c9"/><file name="bkg_block-sidebarnav-title.gif" hash="a269d8b84748540f9a4a4fb316d333ba"/><file name="arrows.gif" hash="8e21f0dded4452c5fac26eac28d92176"/><file name="blue_arrows.gif" hash="a0c521ab87e5ee381e37c2603247e4b8"/><file name="green_arrows.gif" hash="83318262141f58fae387a2d9256f0be7"/><file name="orange_arrows.gif" hash="7eafae6b1389de8f7fdcdaccedcbbc0b"/></dir><dir name="js"><file name="sidenavcollapse.js" hash="ea1a9320820478b97be1c92e0b0ff210"/></dir></dir><dir name="f002"><dir name="css"><file name="sidenav.css" hash="e3197aa63343a16fdbabe56f91e08149"/></dir></dir><dir name="modern"><dir name="css"><file name="sidenav.css" hash="09d381260bfb5ff77d789bc7374c167b"/><file name="sidenavcollapse.css.bak" hash="96782b558c89712bfad914f327ad29d0"/></dir><dir name="images"><file name="bkg_block-sidebarnav-actions.gif" hash="1f29cb35ff7946056eecd61ad3dabdfd"/><file name="bkg_block-sidebarnav-title.gif" hash="1e7d3408f8fc509f4e6e2869557d3c1d"/><file name="arrows.gif" hash="83318262141f58fae387a2d9256f0be7"/></dir></dir></dir></dir></target></contents>
17
+ <compatible/>
18
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
+ </package>
skin/frontend/default/blank/css/sidenav.css ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Magento
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the Academic Free License (AFL 3.0)
7
+ * that is bundled with this package in the file LICENSE_AFL.txt.
8
+ * It is also available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/afl-3.0.php
10
+ * If you did not receive a copy of the license and are unable to
11
+ * obtain it through the world-wide-web, please send an email
12
+ * to license@magentocommerce.com so we can send you a copy immediately.
13
+ *
14
+ * DISCLAIMER
15
+ *
16
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
17
+ * versions in the future. If you wish to customize Magento for your
18
+ * needs please refer to http://www.magentocommerce.com for more information.
19
+ *
20
+ * @category Codnitive
21
+ * @package Codnitive_Sidenav
22
+ * @author Hassan Barza <h.barza@gmail.com>
23
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ /* <<< Sidebar Navigation ==================================================================== */
28
+ #sidebar-nav {
29
+ margin-bottom: 10px;
30
+ border: 1px solid #DDD;
31
+ }
32
+ #sidebar-nav .block-title {
33
+ border-bottom: 1px solid #DDD;
34
+ height: 18px !important;
35
+ padding: 3px 10px;
36
+ }
37
+ #sidebar-nav .block-title strong {
38
+ font-size: 14px;
39
+ font-weight: bold;
40
+ color: #000;
41
+ }
42
+ #sidebar-nav .block-content {
43
+ padding: 10px;
44
+ overflow: auto;
45
+ }
46
+ #sidebar-nav .block-content a {
47
+ color: #777;
48
+ }
49
+ ul#sidebar-nav-menu > li {
50
+ border-bottom: 1px dotted #CCC;
51
+ list-style: inside disc;
52
+ font-weight: bold;
53
+ padding: 8px 0;
54
+ }
55
+ ul#sidebar-nav-menu > li:last-child {
56
+ border-bottom: 0 none;
57
+ margin-bottom: 5px;
58
+ }
59
+ /*
60
+ ul#sidebar-nav-menu > li > ul {
61
+ margin-left: 5px;
62
+ }
63
+ */
64
+ ul#sidebar-nav-menu li ul {
65
+ /* padding-left: 10px; */
66
+ font-weight: normal;
67
+ }
68
+ #sidebar-nav li.active,
69
+ #sidebar-nav li.active > a {
70
+ color: #000;
71
+ }
72
+ #sidebar-nav ul.ul-thumb {
73
+ padding-left: 0;
74
+ }
75
+ ul#sidebar-nav-menu > li.parent > ul.ul-thumb {
76
+ padding-left: 10px;
77
+ }
78
+ #sidebar-nav li.thumb {
79
+ list-style-type: none;
80
+ }
81
+ ul#sidebar-nav-menu > li.no-thumb {
82
+ margin-left: 0 !important;
83
+ list-style-type: none;
84
+ }
85
+ #sidebar-nav img {
86
+ border: 0 none !important;
87
+ outline: 0 none !important;
88
+ }
89
+ #sidebar-nav span.product-count {
90
+ color: #000;
91
+ }
92
+ /* >>> Sidebar Navigation ==================================================================== */
skin/frontend/default/default/css/sidenav.css ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Magento
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the Academic Free License (AFL 3.0)
7
+ * that is bundled with this package in the file LICENSE_AFL.txt.
8
+ * It is also available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/afl-3.0.php
10
+ * If you did not receive a copy of the license and are unable to
11
+ * obtain it through the world-wide-web, please send an email
12
+ * to license@magentocommerce.com so we can send you a copy immediately.
13
+ *
14
+ * DISCLAIMER
15
+ *
16
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
17
+ * versions in the future. If you wish to customize Magento for your
18
+ * needs please refer to http://www.magentocommerce.com for more information.
19
+ *
20
+ * @category Codnitive
21
+ * @package Codnitive_Sidenav
22
+ * @author Hassan Barza <h.barza@gmail.com>
23
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ /* <<< Sidebar Navigation ==================================================================== */
28
+ #sidebar-nav {
29
+ margin-bottom: 15px;
30
+ }
31
+ #sidebar-nav .block-title {
32
+ border: 0 none !important;
33
+ height: 18px !important;
34
+ background: url('../images/bkg_block-sidebarnav-title.gif') 0 0 no-repeat;
35
+ padding: 4px 9px 2px;
36
+ }
37
+ #sidebar-nav .block-title strong {
38
+ font: bold 13px/16px Arial, Helvetica, sans-serif;
39
+ text-transform: uppercase;
40
+ color: #FFF;
41
+ }
42
+ #sidebar-nav .block-content {
43
+ background: #DEE5E8 url('../images/bkg_block-sidebarnav-actions.gif') 0 0 repeat-x;
44
+ padding: 6px 9px;
45
+ border: 1px solid #C4C1BC;
46
+ overflow: auto;
47
+ }
48
+ #sidebar-nav .block-content a {
49
+ color: #0D004C;
50
+ }
51
+ ul#sidebar-nav-menu > li {
52
+ background: url('../images/bkg_block-sidebarnav-layered-dd.gif') 0 100% repeat-x;
53
+ list-style: inside disc;
54
+ font-weight: bold;
55
+ padding: 8px 0;
56
+ }
57
+ ul#sidebar-nav-menu > li:last-child {
58
+ background: none;
59
+ margin-bottom: 5px;
60
+ }
61
+ /*
62
+ ul#sidebar-nav-menu > li > ul {
63
+ margin-left: 5px;
64
+ }
65
+ */
66
+ ul#sidebar-nav-menu li ul {
67
+ /* padding-left: 10px; */
68
+ font-weight: normal;
69
+ }
70
+ #sidebar-nav li.active,
71
+ #sidebar-nav li.active > a {
72
+ color: #D15E00;
73
+ }
74
+ #sidebar-nav ul.ul-thumb {
75
+ padding-left: 0;
76
+ }
77
+ ul#sidebar-nav-menu > li.parent > ul.ul-thumb {
78
+ padding-left: 10px;
79
+ }
80
+ #sidebar-nav li.thumb {
81
+ list-style-type: none;
82
+ }
83
+ ul#sidebar-nav-menu > li.no-thumb {
84
+ margin-left: 0 !important;
85
+ list-style-type: none;
86
+ }
87
+ #sidebar-nav img {
88
+ border: 0 none !important;
89
+ outline: 0 none !important;
90
+ }
91
+ #sidebar-nav span.product-count {
92
+ color: #000;
93
+ }
94
+ /* >>> Sidebar Navigation ==================================================================== */
skin/frontend/default/default/css/sidenavcollapse.css ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Magento
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the Academic Free License (AFL 3.0)
7
+ * that is bundled with this package in the file LICENSE_AFL.txt.
8
+ * It is also available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/afl-3.0.php
10
+ * If you did not receive a copy of the license and are unable to
11
+ * obtain it through the world-wide-web, please send an email
12
+ * to license@magentocommerce.com so we can send you a copy immediately.
13
+ *
14
+ * DISCLAIMER
15
+ *
16
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
17
+ * versions in the future. If you wish to customize Magento for your
18
+ * needs please refer to http://www.magentocommerce.com for more information.
19
+ *
20
+ * @category Codnitive
21
+ * @package Codnitive_Sidenav
22
+ * @author Hassan Barza <h.barza@gmail.com>
23
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ /* <<< Sidebar Navigation ==================================================================== */
28
+ #sidebar-nav li.thumb img {
29
+ float: left;
30
+ margin-right: 3px;
31
+ }
32
+ #sidebar-nav-menu .arrow {
33
+ float: left;
34
+ background: url('../images/arrows.gif') left center no-repeat;
35
+ display: block;
36
+ margin-top: 2px;
37
+ /*width: 8px;
38
+ height: 8px;*/
39
+ margin: 3px 3px 0;
40
+ }
41
+ ul#sidebar-nav-menu li ul {
42
+ display: none;
43
+ }
44
+ #sidebar-nav li.active > ul {
45
+ display: block;
46
+ }
47
+ #sidebar-nav li.active > .arrow {
48
+ display: block;
49
+ background: url('../images/arrows.gif') right center no-repeat;
50
+ }
51
+ ul#sidebar-nav-menu > li {
52
+ list-style: none !important;
53
+ }
54
+ /* >>> Sidebar Navigation ==================================================================== */
skin/frontend/default/default/images/arrows.gif ADDED
Binary file
skin/frontend/default/default/images/bkg_block-sidebarnav-actions.gif ADDED
Binary file
skin/frontend/default/default/images/bkg_block-sidebarnav-layered-dd.gif ADDED
Binary file
skin/frontend/default/default/images/bkg_block-sidebarnav-title.gif ADDED
Binary file
skin/frontend/default/default/images/blue_arrows.gif ADDED
Binary file
skin/frontend/default/default/images/green_arrows.gif ADDED
Binary file
skin/frontend/default/default/images/orange_arrows.gif ADDED
Binary file
skin/frontend/default/default/js/sidenavcollapse.js ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Magento
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the Academic Free License (AFL 3.0)
7
+ * that is bundled with this package in the file LICENSE_AFL.txt.
8
+ * It is also available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/afl-3.0.php
10
+ * If you did not receive a copy of the license and are unable to
11
+ * obtain it through the world-wide-web, please send an email
12
+ * to license@magentocommerce.com so we can send you a copy immediately.
13
+ *
14
+ * DISCLAIMER
15
+ *
16
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
17
+ * versions in the future. If you wish to customize Magento for your
18
+ * needs please refer to http://www.magentocommerce.com for more information.
19
+ *
20
+ * @category Codnitive
21
+ * @package Codnitive_Sidenav
22
+ * @author Hassan Barza <h.barza@gmail.com>
23
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ function expandMenu(parent) {
28
+ var mode = parent.getElementsByTagName("ul")[0].getAttribute("expanded");
29
+ mode = mode == 1;
30
+
31
+ (mode) ? collapse(parent) : expand(parent);
32
+ }
33
+
34
+ function expand(parent) {
35
+ parent.getElementsByTagName("ul")[0].style.display = "block";
36
+ parent.getElementsByTagName("span")[0].style.backgroundPosition = "right center";
37
+ parent.getElementsByTagName("ul")[0].setAttribute("expanded", "1");
38
+ }
39
+
40
+ function collapse(parent) {
41
+ parent.getElementsByTagName("ul")[0].style.display = "none";
42
+ parent.getElementsByTagName("span")[0].style.backgroundPosition = "left center";
43
+ parent.getElementsByTagName("ul")[0].setAttribute("expanded", "0");
44
+ }
skin/frontend/default/f002/css/sidenav.css ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Magento
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the Academic Free License (AFL 3.0)
7
+ * that is bundled with this package in the file LICENSE_AFL.txt.
8
+ * It is also available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/afl-3.0.php
10
+ * If you did not receive a copy of the license and are unable to
11
+ * obtain it through the world-wide-web, please send an email
12
+ * to license@magentocommerce.com so we can send you a copy immediately.
13
+ *
14
+ * DISCLAIMER
15
+ *
16
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
17
+ * versions in the future. If you wish to customize Magento for your
18
+ * needs please refer to http://www.magentocommerce.com for more information.
19
+ *
20
+ * @category Codnitive
21
+ * @package Codnitive_Sidenav
22
+ * @author Hassan Barza <h.barza@gmail.com>
23
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ /* <<< Sidebar Navigation ==================================================================== */
28
+ #sidebar-nav {
29
+ margin-bottom: 5px;
30
+ line-height: 1.4em;
31
+ font-size: .96em;
32
+ }
33
+ #sidebar-nav .block-title {
34
+ border: 1px solid #CCC;
35
+ border-radius: 8px 8px 0 0;
36
+ -webkit-border-radius: 8px 8px 0 0;
37
+ -moz-border-radius: 8px 8px 0 0;
38
+ background: #FCFDFD url('../images/box-header-bg.gif') 0 100% repeat-x;
39
+ margin: 0;
40
+ padding: 2px 10px 0;
41
+ }
42
+ #sidebar-nav .block-title strong {
43
+ display: block;
44
+ font: bold 12px/16px Arial, Helvetica, sans-serif;
45
+ min-height: 16px;
46
+ line-height: 30px;
47
+ color: #007ED3;
48
+ }
49
+ #sidebar-nav .block-content {
50
+ background: #FCFCFC url('../images/box-content-bg.gif') 0 0 repeat-x;
51
+ padding: 5px;
52
+ border: 1px solid #CCC;
53
+ border-top: 0 none !important;
54
+ border-radius: 0 0 8px 8px;
55
+ -webkit-border-radius: 0 0 8px 8px;
56
+ -moz-border-radius: 0 0 8px 8px;
57
+ overflow: auto;
58
+ }
59
+ #sidebar-nav .block-content a {
60
+ color: #555452;
61
+ }
62
+ ul#sidebar-nav-menu {
63
+ margin: 0;
64
+ padding: 5px 9px;
65
+ }
66
+ ul#sidebar-nav-menu > li {
67
+ list-style: inside disc;
68
+ font-weight: bold;
69
+ padding: 5px 0;
70
+ }
71
+ ul#sidebar-nav-menu > li > a {
72
+ color: #2F2F2F !important;
73
+ }
74
+ ul#sidebar-nav-menu > li:last-child {
75
+ margin-bottom: 5px;
76
+ }
77
+ /*
78
+ ul#sidebar-nav-menu > li > ul {
79
+ margin-left: 5px;
80
+ }
81
+ */
82
+ ul#sidebar-nav-menu li ul {
83
+ /* padding-left: 10px; */
84
+ font-weight: normal;
85
+ }
86
+ #sidebar-nav li.active,
87
+ #sidebar-nav li.active > a {
88
+ color: #005B98 !important;
89
+ }
90
+ #sidebar-nav ul.ul-thumb {
91
+ padding-left: 0;
92
+ }
93
+ ul#sidebar-nav-menu > li.parent > ul.ul-thumb {
94
+ padding-left: 10px;
95
+ }
96
+ #sidebar-nav li.thumb {
97
+ list-style-type: none;
98
+ }
99
+ ul#sidebar-nav-menu > li.no-thumb {
100
+ margin-left: 0 !important;
101
+ list-style-type: none;
102
+ }
103
+ #sidebar-nav img {
104
+ border: 0 none !important;
105
+ outline: 0 none !important;
106
+ }
107
+ #sidebar-nav span.product-count {
108
+ color: #000;
109
+ }
110
+ /* >>> Sidebar Navigation ==================================================================== */
skin/frontend/default/modern/css/sidenav.css ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Magento
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the Academic Free License (AFL 3.0)
7
+ * that is bundled with this package in the file LICENSE_AFL.txt.
8
+ * It is also available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/afl-3.0.php
10
+ * If you did not receive a copy of the license and are unable to
11
+ * obtain it through the world-wide-web, please send an email
12
+ * to license@magentocommerce.com so we can send you a copy immediately.
13
+ *
14
+ * DISCLAIMER
15
+ *
16
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
17
+ * versions in the future. If you wish to customize Magento for your
18
+ * needs please refer to http://www.magentocommerce.com for more information.
19
+ *
20
+ * @category Codnitive
21
+ * @package Codnitive_Sidenav
22
+ * @author Hassan Barza <h.barza@gmail.com>
23
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ /* <<< Sidebar Navigation ==================================================================== */
28
+ #sidebar-nav {
29
+ margin-bottom: 20px;
30
+ }
31
+ #sidebar-nav .block-title {
32
+ border: 0 none !important;
33
+ height: 18px !important;
34
+ background: url('../images/bkg_block-sidebarnav-title.gif') 0 0 no-repeat;
35
+ padding: 4px 10px 2px;
36
+ }
37
+ #sidebar-nav .block-title strong {
38
+ font: bold 12px/16px Arial, Helvetica, sans-serif;
39
+ text-transform: uppercase;
40
+ color: #FFF;
41
+ }
42
+ #sidebar-nav .block-content {
43
+ background: #EFEFEF url('../images/bkg_block-sidebarnav-actions.gif') 0 0 repeat-x;
44
+ padding: 12px 10px;
45
+ border: 1px solid #C4C1BC;
46
+ overflow: auto;
47
+ }
48
+ #sidebar-nav .block-content a {
49
+ color: #444;
50
+ }
51
+ ul#sidebar-nav-menu > li {
52
+ border-bottom: 1px solid #CCC;
53
+ list-style: inside disc;
54
+ font-weight: bold;
55
+ padding: 8px 0;
56
+ }
57
+ ul#sidebar-nav-menu > li:last-child {
58
+ border-bottom: 0 none;
59
+ }
60
+ /*
61
+ ul#sidebar-nav-menu > li > ul {
62
+ margin-left: 5px;
63
+ }
64
+ */
65
+ ul#sidebar-nav-menu li ul {
66
+ /* padding-left: 10px; */
67
+ font-weight: normal;
68
+ }
69
+ #sidebar-nav li.active,
70
+ #sidebar-nav li.active > a {
71
+ color: #008000;
72
+ }
73
+ #sidebar-nav ul.ul-thumb {
74
+ padding-left: 0;
75
+ }
76
+ ul#sidebar-nav-menu > li.parent > ul.ul-thumb {
77
+ padding-left: 10px;
78
+ }
79
+ #sidebar-nav li.thumb {
80
+ list-style-type: none;
81
+ }
82
+ ul#sidebar-nav-menu > li.no-thumb {
83
+ margin-left: 0 !important;
84
+ list-style-type: none;
85
+ }
86
+ #sidebar-nav img {
87
+ border: 0 none !important;
88
+ outline: 0 none !important;
89
+ }
90
+ #sidebar-nav span.product-count {
91
+ color: #000;
92
+ }
93
+ /* >>> Sidebar Navigation ==================================================================== */
skin/frontend/default/modern/css/sidenavcollapse.css.bak ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Magento
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the Academic Free License (AFL 3.0)
7
+ * that is bundled with this package in the file LICENSE_AFL.txt.
8
+ * It is also available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/afl-3.0.php
10
+ * If you did not receive a copy of the license and are unable to
11
+ * obtain it through the world-wide-web, please send an email
12
+ * to license@magentocommerce.com so we can send you a copy immediately.
13
+ *
14
+ * DISCLAIMER
15
+ *
16
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
17
+ * versions in the future. If you wish to customize Magento for your
18
+ * needs please refer to http://www.magentocommerce.com for more information.
19
+ *
20
+ * @category Codnitive
21
+ * @package Codnitive_Sidenav
22
+ * @author Hassan Barza <h.barza@gmail.com>
23
+ * @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ /* <<< Sidebar Navigation ==================================================================== */
28
+ #sidebar-nav li.thumb img {
29
+ float: left;
30
+ /*margin-right: 3px;*/
31
+ }
32
+ #sidebar-nav-menu .arrow {
33
+ float: left;
34
+ background: url('../images/arrows.gif') left center no-repeat;
35
+ display: block;
36
+ margin-top: 2px;
37
+ /*width: 8px;
38
+ height: 8px;*/
39
+ margin: 3px 3px 0;
40
+ }
41
+ ul#sidebar-nav-menu li ul {
42
+ display: none;
43
+ }
44
+ #sidebar-nav li.active > ul {
45
+ display: block;
46
+ }
47
+ #sidebar-nav li.active > .arrow {
48
+ display: block;
49
+ background: url('../images/arrows.gif') right center no-repeat;
50
+ }
51
+ ul#sidebar-nav-menu > li {
52
+ list-style: none !important;
53
+ }
54
+ /* >>> Sidebar Navigation ==================================================================== */
skin/frontend/default/modern/images/arrows.gif ADDED
Binary file
skin/frontend/default/modern/images/bkg_block-sidebarnav-actions.gif ADDED
Binary file
skin/frontend/default/modern/images/bkg_block-sidebarnav-title.gif ADDED
Binary file