Codnitive_Sidenav - Version 1.6.72

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.72
Comparing to
See all releases


Code changes from version 1.6.66 to 1.6.72

app/code/community/Codnitive/Sidenav/Block/Navigation.php CHANGED
@@ -155,10 +155,16 @@ class Codnitive_Sidenav_Block_Navigation extends Mage_Catalog_Block_Navigation
155
  $thumbnail = $config->load($category->getId())->getThumbnailImageUrl();
156
  $ulThumb = ' ul-thumb';
157
  if (!empty($thumbnail)) {
158
- $image = '<img src="'.$thumbnail.'" width="'.$thumbWidth.'" height="'.$thumbHeight.'" />';
159
  $thumb = ' thumb';
160
- $liMarginLeft = 0;
161
- $ulMarginLeft = $thumbWidth + 3;
 
 
 
 
 
 
162
  $ulPaddingLeft = 0;
163
  }
164
  else {
@@ -176,11 +182,7 @@ class Codnitive_Sidenav_Block_Navigation extends Mage_Catalog_Block_Navigation
176
  $htmlLi .= ' style="margin-left: ' . $liMarginLeft . 'px;">';
177
  $html[] = $htmlLi;
178
 
179
- // add thumbnail image
180
- $html[] = $image;
181
-
182
- // add collapsible arrow
183
- $arrow = null;
184
  if ($config->getCollapsible()) {
185
  $width = 8;
186
  $height = 0;
@@ -192,10 +194,24 @@ class Codnitive_Sidenav_Block_Navigation extends Mage_Catalog_Block_Navigation
192
  if ($this->isCategoryActive($category)) {
193
  $expanded = 1;
194
  }
195
- $arrow = '<span class="arrow" onClick="expandMenu(this.parentNode)"
196
  style="width: ' . $width . 'px; height: ' . $height . 'px;"></span>';
197
  }
198
- $html[] = $arrow;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  $html[] = '<a href="' . $this->getCategoryUrl($category) . '"'
200
  . $linkClass.'><span class="category_name">'
201
  . $this->escapeHtml($category->getName()) . '</span></a>';
@@ -210,6 +226,11 @@ class Codnitive_Sidenav_Block_Navigation extends Mage_Catalog_Block_Navigation
210
  ->getSize();
211
  $html[] = '<span class="product-count">(' . $count . ')</span>';
212
  }
 
 
 
 
 
213
 
214
  // render children
215
  $htmlChildren = '';
155
  $thumbnail = $config->load($category->getId())->getThumbnailImageUrl();
156
  $ulThumb = ' ul-thumb';
157
  if (!empty($thumbnail)) {
158
+ $image = '<img src="'.$thumbnail.'" style= "width:'.$thumbWidth.'px; height:'.$thumbHeight.'px; float: left;" />';
159
  $thumb = ' thumb';
160
+ if ($config->getCollapsible() && $config->getThumbImageActive()) {
161
+ $liMarginLeft = $thumbWidth + 3;
162
+ $ulMarginLeft = 0;
163
+ }
164
+ else {
165
+ $liMarginLeft = 0;
166
+ $ulMarginLeft = $thumbWidth + 3;
167
+ }
168
  $ulPaddingLeft = 0;
169
  }
170
  else {
182
  $htmlLi .= ' style="margin-left: ' . $liMarginLeft . 'px;">';
183
  $html[] = $htmlLi;
184
 
185
+ // add collapsible arrow and wrraper
 
 
 
 
186
  if ($config->getCollapsible()) {
187
  $width = 8;
188
  $height = 0;
194
  if ($this->isCategoryActive($category)) {
195
  $expanded = 1;
196
  }
197
+ $html[] = '<span class="arrow" onClick="expandMenu(this.parentNode)"
198
  style="width: ' . $width . 'px; height: ' . $height . 'px;"></span>';
199
  }
200
+
201
+ // add thumbnail image
202
+ $html[] = $image;
203
+
204
+ // add wrapper
205
+ if ($config->getCollapsible() || $config->getThumbImageActive()) {
206
+ $wrapperMargin = $config->getCollapsible() ? 14 : 0;
207
+ /*if ($config->getThumbImageActive()) {
208
+ $extraMargin = !empty($thumbnail) ? $thumbWidth + 3 : 0;
209
+ }*/
210
+ $extraMargin = !$config->getThumbImageActive() ? 0 : !empty($thumbnail) ? $thumbWidth + 3 : 0;
211
+ $collWrapper = $wrapperMargin + $extraMargin;
212
+ $html[] = '<div class="collapsible-wrapper" style="margin-left: ' . $collWrapper . 'px;">';
213
+ }
214
+
215
  $html[] = '<a href="' . $this->getCategoryUrl($category) . '"'
216
  . $linkClass.'><span class="category_name">'
217
  . $this->escapeHtml($category->getName()) . '</span></a>';
226
  ->getSize();
227
  $html[] = '<span class="product-count">(' . $count . ')</span>';
228
  }
229
+
230
+ // close wrapper
231
+ if ($config->getCollapsible() || $config->getThumbImageActive()) {
232
+ $html[] = '</div>';
233
+ }
234
 
235
  // render children
236
  $htmlChildren = '';
app/code/community/Codnitive/Sidenav/etc/config.xml CHANGED
@@ -25,7 +25,7 @@
25
  <config>
26
  <modules>
27
  <Codnitive_Sidenav>
28
- <version>1.6.66</version>
29
  <title>Sidebar Navigation Menu Professional</title>
30
  <link><![CDATA[http://www.codnitive.com/]]></link>
31
  </Codnitive_Sidenav>
25
  <config>
26
  <modules>
27
  <Codnitive_Sidenav>
28
+ <version>1.6.72</version>
29
  <title>Sidebar Navigation Menu Professional</title>
30
  <link><![CDATA[http://www.codnitive.com/]]></link>
31
  </Codnitive_Sidenav>
app/etc/modules/Codnitive_Sidenav.xml CHANGED
@@ -32,7 +32,7 @@
32
  <Mage_Page />
33
  <Mage_Catalog />
34
  </depends>
35
- <version>1.6.66</version>
36
  </Codnitive_Sidenav>
37
  </modules>
38
  </config>
32
  <Mage_Page />
33
  <Mage_Catalog />
34
  </depends>
35
+ <version>1.6.72</version>
36
  </Codnitive_Sidenav>
37
  </modules>
38
  </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Codnitive_Sidenav</name>
4
- <version>1.6.66</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>
@@ -11,9 +11,9 @@
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>support@codnitive.com</email></author></authors>
14
- <date>2011-12-20</date>
15
- <time>21:05:16</time>
16
- <contents><target name="mageetc"><dir name="modules"><file name="Codnitive_Codall.xml" hash="1796ad4371c55c268c71be72d7b2876f"/><file name="Codnitive_Sidenav.xml" hash="52641ce21abf5131fec44bef040e5a91"/></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="62e20a1f93c1b0394a5b1f1fefe09447"/><file name="ECD.php" hash="c6aafe57abdba2fcf6b7555c5f10345c"/><dir name="Extensions"><file name="List.php" hash="a337458b525e4b20feb68f898c3a6b8e"/></dir><file name="PCD.php" hash="bb824cfd2a340ba4b4f70b442b7316e8"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="db05202ae83bf9e4cc4454acb5fd8615"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0bed954bf2a459b1f5d6a25050d770d7"/><file name="config.xml" hash="2be2d94e2d6f870a24fc114ddbe27bda"/><file name="system.xml" hash="a54d0a2284f244afc9b8b294cba2e11d"/></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="4778113a82ee845460a7b5bf8fe35c81"/></dir><dir name="fa_IR"><file name="Codnitive_Codall.csv" hash="3691ccfe6c605575aace69417351e0f7"/><file name="Codnitive_Sidenav.csv" hash="caf933bc40493f5edab311e319c001de"/></dir></target><target name="magecommunity"><dir name="Codnitive"><dir name="Sidenav"><dir><dir name="Block"><file name="Navigation.php" hash="1e3d9722efb977f9b1e89d58138c1fd1"/><dir name="Page"><dir name="Html"><file name="Head.php" hash="fa228820c5582eafda286428ce9755ce"/></dir></dir></dir><dir name="Helper"><file name="Category.php" hash="31f8b4c1f7391567a8396ea763d65f0f"/><file name="Data.php" hash="b9ea5a08afe28a117cb5c47ac6738896"/></dir><dir name="Model"><dir name="Config"><file name="ColumnOptions.php" hash="6196bfe8ca72a223ca468968a323c753"/><file name="ParentOptions.php" hash="fe28b0bcd0752bd11539256f85414a3b"/><file name="ThumbSizeOptions.php" hash="5a5930e3fe754fe3f1996f3344d4b4ab"/></dir><file name="Config.php" hash="014867ec2cc7319081b07c74fc7f4c03"/></dir><dir name="etc"><file name="adminhtml.xml" hash="fbd1336cfc8228ef03b56128f395d6c9"/><file name="config.xml" hash="b2249b31506615afd7fcd60193cecc11"/><file name="system.xml" hash="11d70403543d3078eb828739b5be54b9"/></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="8ffeb8059a2dcc67c665526512f1f2be"/></dir><dir name="template"><dir name="codnitive"><dir name="catalog"><dir name="navigation"><file name="customer.phtml" hash="735ff0d9563a73624d0cc36b80fb2807"/><file name="left.phtml" hash="d0dbc580be8ec02cb314444a8dda2244"/><file name="right.phtml" hash="7f8a880978554ed8405121b00a4539d1"/></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="139f5bbc9c6166d8d6ca0930757474b3"/></dir></dir><dir name="default"><dir name="css"><file name="sidenav.css" hash="5029eccaa81d56c56311faba25207a06"/><file name="sidenavcollapse.css" hash="70e2cec086adbc77ed5f87c2e20a6fc5"/></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="1679db09b139e13464dfd477ea3bc500"/></dir></dir><dir name="f002"><dir name="css"><file name="sidenav.css" hash="201e1c03431895a84eaf5bbe2fb9ec60"/></dir></dir><dir name="modern"><dir name="css"><file name="sidenav.css" hash="18ec93aa1924024a9051093da4615064"/><file name="sidenavcollapse.css.bak" hash="4ba9b8e5af018e0ff64813589e820528"/></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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Codnitive_Sidenav</name>
4
+ <version>1.6.72</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>
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>support@codnitive.com</email></author></authors>
14
+ <date>2012-01-05</date>
15
+ <time>16:01:28</time>
16
+ <contents><target name="mageetc"><dir name="modules"><file name="Codnitive_Codall.xml" hash="1796ad4371c55c268c71be72d7b2876f"/><file name="Codnitive_Sidenav.xml" hash="5915e4babd0031424f123b0a88a89a30"/></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="62e20a1f93c1b0394a5b1f1fefe09447"/><file name="ECD.php" hash="c6aafe57abdba2fcf6b7555c5f10345c"/><dir name="Extensions"><file name="List.php" hash="a337458b525e4b20feb68f898c3a6b8e"/></dir><file name="PCD.php" hash="bb824cfd2a340ba4b4f70b442b7316e8"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="db05202ae83bf9e4cc4454acb5fd8615"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0bed954bf2a459b1f5d6a25050d770d7"/><file name="config.xml" hash="2be2d94e2d6f870a24fc114ddbe27bda"/><file name="system.xml" hash="a54d0a2284f244afc9b8b294cba2e11d"/></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="4778113a82ee845460a7b5bf8fe35c81"/></dir><dir name="fa_IR"><file name="Codnitive_Codall.csv" hash="3691ccfe6c605575aace69417351e0f7"/><file name="Codnitive_Sidenav.csv" hash="caf933bc40493f5edab311e319c001de"/></dir></target><target name="magecommunity"><dir name="Codnitive"><dir name="Sidenav"><dir><dir name="Block"><file name="Navigation.php" hash="431b1d46db0b59bd89714f641935305c"/><dir name="Page"><dir name="Html"><file name="Head.php" hash="fa228820c5582eafda286428ce9755ce"/></dir></dir></dir><dir name="Helper"><file name="Category.php" hash="31f8b4c1f7391567a8396ea763d65f0f"/><file name="Data.php" hash="b9ea5a08afe28a117cb5c47ac6738896"/></dir><dir name="Model"><dir name="Config"><file name="ColumnOptions.php" hash="6196bfe8ca72a223ca468968a323c753"/><file name="ParentOptions.php" hash="fe28b0bcd0752bd11539256f85414a3b"/><file name="ThumbSizeOptions.php" hash="5a5930e3fe754fe3f1996f3344d4b4ab"/></dir><file name="Config.php" hash="014867ec2cc7319081b07c74fc7f4c03"/></dir><dir name="etc"><file name="adminhtml.xml" hash="fbd1336cfc8228ef03b56128f395d6c9"/><file name="config.xml" hash="bc5ecf631aa8f2e7cba73e3c17590474"/><file name="system.xml" hash="11d70403543d3078eb828739b5be54b9"/></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="8ffeb8059a2dcc67c665526512f1f2be"/></dir><dir name="template"><dir name="codnitive"><dir name="catalog"><dir name="navigation"><file name="customer.phtml" hash="735ff0d9563a73624d0cc36b80fb2807"/><file name="left.phtml" hash="d0dbc580be8ec02cb314444a8dda2244"/><file name="right.phtml" hash="7f8a880978554ed8405121b00a4539d1"/></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="365a3fe8b0eaae130a2e364886f4badd"/></dir></dir><dir name="default"><dir name="css"><file name="sidenav.css" hash="c4e9a58b76a22403b7ee91a008c43681"/><file name="sidenavcollapse.css" hash="70e2cec086adbc77ed5f87c2e20a6fc5"/></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="c81b0b412fe684953e0936332d042915"/></dir></dir><dir name="f002"><dir name="css"><file name="sidenav.css" hash="ae0471527d041e05ab862a53a350ab91"/></dir></dir><dir name="modern"><dir name="css"><file name="sidenav.css" hash="a36ef40d5d57ab2122a1420be8f4895d"/><file name="sidenavcollapse.css.bak" hash="4ba9b8e5af018e0ff64813589e820528"/></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 CHANGED
@@ -66,7 +66,8 @@ ul#sidebar-nav-menu li ul {
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 {
66
  font-weight: normal;
67
  }
68
  #sidebar-nav li.active,
69
+ #sidebar-nav li.active > a,
70
+ #sidebar-nav li.active > .collapsible-wrapper > a {
71
  color: #000;
72
  }
73
  #sidebar-nav ul.ul-thumb {
skin/frontend/default/default/css/sidenav.css CHANGED
@@ -68,7 +68,8 @@ ul#sidebar-nav-menu li ul {
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 {
68
  font-weight: normal;
69
  }
70
  #sidebar-nav li.active,
71
+ #sidebar-nav li.active > a,
72
+ #sidebar-nav li.active > .collapsible-wrapper > a {
73
  color: #D15E00;
74
  }
75
  #sidebar-nav ul.ul-thumb {
skin/frontend/default/default/js/sidenavcollapse.js CHANGED
@@ -24,20 +24,23 @@
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");
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
+ function expandMenu(parent)
28
+ {
29
  var mode = parent.getElementsByTagName("ul")[0].getAttribute("expanded");
30
  mode = mode == 1;
31
 
32
  (mode) ? collapse(parent) : expand(parent);
33
  }
34
 
35
+ function expand(parent)
36
+ {
37
  parent.getElementsByTagName("ul")[0].style.display = "block";
38
  parent.getElementsByTagName("span")[0].style.backgroundPosition = "right center";
39
  parent.getElementsByTagName("ul")[0].setAttribute("expanded", "1");
40
  }
41
 
42
+ function collapse(parent)
43
+ {
44
  parent.getElementsByTagName("ul")[0].style.display = "none";
45
  parent.getElementsByTagName("span")[0].style.backgroundPosition = "left center";
46
  parent.getElementsByTagName("ul")[0].setAttribute("expanded", "0");
skin/frontend/default/f002/css/sidenav.css CHANGED
@@ -84,7 +84,8 @@ ul#sidebar-nav-menu li ul {
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 {
84
  font-weight: normal;
85
  }
86
  #sidebar-nav li.active,
87
+ #sidebar-nav li.active > a,
88
+ #sidebar-nav li.active > .collapsible-wrapper > a {
89
  color: #005B98 !important;
90
  }
91
  #sidebar-nav ul.ul-thumb {
skin/frontend/default/modern/css/sidenav.css CHANGED
@@ -67,7 +67,8 @@ ul#sidebar-nav-menu li ul {
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 {
67
  font-weight: normal;
68
  }
69
  #sidebar-nav li.active,
70
+ #sidebar-nav li.active > a,
71
+ #sidebar-nav li.active > .collapsible-wrapper > a {
72
  color: #008000;
73
  }
74
  #sidebar-nav ul.ul-thumb {