File tree Expand file tree Collapse file tree
skin/frontend/base/default Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,6 +106,8 @@ private function _getMenuMainAttributes()
106106 'sort_order ' => 20 ,
107107 'global ' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE ,
108108 'group ' => 'MegaMenu Settings ' ,
109+ 'required ' => false ,
110+ 'default ' => 1
109111 ),
110112 'menu_dropdown_width ' => array (
111113 'type ' => 'text ' ,
Original file line number Diff line number Diff line change 99<config >
1010 <modules >
1111 <TheExtensionLab_MegaMenu >
12- <version >1.5.2 </version >
12+ <version >1.5.3 </version >
1313 </TheExtensionLab_MegaMenu >
1414 </modules >
1515
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /** @var TheExtensionLab_MegaMenu_Model_Resource_Setup $this */
4+ $ installer = $ this ;
5+
6+ $ installer ->updateAttribute (
7+ Mage_Catalog_Model_Category::ENTITY ,
8+ 'menu_dropdown_type ' ,
9+ 'is_required ' ,
10+ false
11+ );
12+
13+ $ installer ->updateAttribute (
14+ Mage_Catalog_Model_Category::ENTITY ,
15+ 'menu_dropdown_type ' ,
16+ 'default_value ' ,
17+ 1
18+ );
19+
20+ $ installer ->endSetup ();
Original file line number Diff line number Diff line change 2121
2222 <?php foreach ($ optionIds as $ key => $ value ):?>
2323 <li>
24- <a href="<?php echo Mage::helper ('theextensionlab_megamenu/attribute_url ' )->getFilterUrl ($ this ->getCategoryId (),$ parentAttribute ->getAttributeCode (),$ key )?> "><?php echo $ collection [$ key ]->getValue ();?> </a>
24+ <a href="<?php echo Mage::helper ('theextensionlab_megamenu/attribute_url ' )->getFilterUrl ($ this ->getCategoryId (),$ parentAttribute ->getAttributeCode (),$ key )?> ">
25+ <span><?php echo $ collection [$ key ]->getValue ();?> </span>
26+ </a>
2527 </li>
2628 <?php endforeach ;?>
2729
Original file line number Diff line number Diff line change 2424 <li class="section-title"><span><?php echo $ this ->__ ('Shop By %s ' ,$ parentAttribute ->getFrontendLabel ());?> </span></li>
2525 <?php foreach ($ optionIds as $ key => $ value ):?>
2626 <li>
27- <a href="<?php echo Mage::helper ('theextensionlab_megamenu/attribute_url ' )->getFilterUrl ($ this ->getCategoryId (),$ parentAttribute ->getAttributeCode (),$ key )?> "><?php echo $ collection [$ key ]->getValue ();?> </a>
27+ <a href="<?php echo Mage::helper ('theextensionlab_megamenu/attribute_url ' )->getFilterUrl ($ this ->getCategoryId (),$ parentAttribute ->getAttributeCode (),$ key )?> ">
28+ <span><?php echo $ collection [$ key ]->getValue ();?> </span>
29+ </a>
2830 </li>
2931 <?php endforeach ;?>
3032 </ul>
Original file line number Diff line number Diff line change 2626 <?php if ($ categoryNode ):?>
2727
2828 <li <?php if (!empty ($ category ->children ) && !$ this ->hasTitle ()): echo 'class="section-title" ' ;endif ;?> >
29- <span>
29+
3030 <a href="<?php echo $ categoryNode ->getUrl (); ?> ">
31- <?php echo $ this ->_getCustomCategoryMenuName ($ categoryNode ,$ category );?>
31+ <span> < ?php echo $ this ->_getCustomCategoryMenuName ($ categoryNode ,$ category );?> </span >
3232 </a>
33- </span>
33+
3434 </li>
3535
3636 <?php if (!empty ($ category ->children )):?>
4646 <?php endif ;?>
4747 <?php } ?>
4848 <li <?php if (!empty ($ category ->children )):echo 'class="view-all small-only-view-all" ' ;endif ;?> >
49- <span>
49+
5050 <a href="<?php echo $ categoryNode ->getUrl (); ?> ">
51- <?php echo $ this ->__ ('View All %s ' , $ this ->_getCustomCategoryMenuName ($ categoryNode ,$ category ));?>
51+ <span> < ?php echo $ this ->__ ('View All %s ' , $ this ->_getCustomCategoryMenuName ($ categoryNode ,$ category ));?> </span >
5252 </a>
53- </span>
53+
5454 </li>
5555 <?php endif ;?>
5656 <?php endif ; ?>
Original file line number Diff line number Diff line change 2727
2828 <?php if ($ categoryNode ):?>
2929 <li <?php if (!empty ($ category ->children ) && !$ this ->hasTitle ()): echo 'class="section-title" ' ;endif ;?> >
30- <span>
31- <a href="<?php echo $ categoryNode ->getUrl (); ?> ">
32- <?php echo $ this ->_getCustomCategoryMenuName ($ categoryNode ,$ category );?>
33- </a>
34- </span>
30+ <a href="<?php echo $ categoryNode ->getUrl (); ?> ">
31+ <span><?php echo $ this ->_getCustomCategoryMenuName ($ categoryNode ,$ category );?> </span>
32+ </a>
3533 </li>
3634
3735 <?php if (!empty ($ category ->children )):?>
4139 <?php $ childCategoryNode = $ childNodes [$ childCategoryNodeId ]; ?>
4240 <li>
4341 <a href="<?php echo $ childCategoryNode ->getUrl ();?> ">
44- <?php echo $ this ->_getCustomCategoryMenuName ($ childCategoryNode , $ childCategory );?>
42+ <span> < ?php echo $ this ->_getCustomCategoryMenuName ($ childCategoryNode , $ childCategory );?> </span >
4543 </a>
4644 </li>
4745 <?php endif ;?>
4846 <?php } ?>
4947 <li <?php if (!empty ($ category ->children )):echo 'class="view-all small-only-view-all" ' ;endif ;?> >
5048 <span>
5149 <a href="<?php echo $ categoryNode ->getUrl (); ?> ">
52- <?php echo $ this ->__ ('View All %s ' , $ this ->_getCustomCategoryMenuName ($ categoryNode ,$ category ));?>
50+ <span> < ?php echo $ this ->__ ('View All %s ' , $ this ->_getCustomCategoryMenuName ($ categoryNode ,$ category ));?> </span >
5351 </a>
5452 </span>
5553 </li>
Original file line number Diff line number Diff line change 1919 <li <?php echo $ this ->_getRenderedMenuItemAttributes ($ child );?> >
2020 <?php if (!$ this ->_isCategoryPlaceholder ($ child )):?>
2121 <a href="<?php echo $ child ->getUrl ();?> " class="<?php echo $ this ->getCategoryLiClass ($ child )?> ">
22- <?php echo $ this ->escapeHtml ($ this ->__ ($ child ->getName ()))?>
22+ <span> < ?php echo $ this ->escapeHtml ($ this ->__ ($ child ->getName ()))?> </span >
2323 </a>
2424 <?php else :?>
2525 <span class="<?php echo $ this ->getCategoryLiClass ($ child )?> "><?php echo $ this ->escapeHtml ($ this ->__ ($ child ->getName ()))?> </span>
Original file line number Diff line number Diff line change 2020 <?php foreach ($ featuredProductsCollection as $ featuredProduct ): ?>
2121 <div class="featured-product <?php echo $ this ->getDisplayClass (); ?> ">
2222 <a href="<?php echo $ featuredProduct ->getProductUrl (); ?> ">
23- <?php if ($ featuredProduct ->hasMenuImage ()): ?>
24- <?php $ imageUrl = $ _helper ->init ($ featuredProduct , 'menu_image ' ) ?>
25- <img src="<?php echo $ imageUrl ?> "/>
26- <?php endif ; ?>
27- <?php echo $ featuredProduct ->getName (); ?>
23+ <span>
24+ <?php if ($ featuredProduct ->hasMenuImage ()): ?>
25+ <?php $ imageUrl = $ _helper ->init ($ featuredProduct , 'menu_image ' ) ?>
26+ <img src="<?php echo $ imageUrl ?> "/>
27+ <?php endif ; ?>
28+ <?php echo $ featuredProduct ->getName (); ?>
29+ </span>
2830 </a>
2931 <p><?php echo Mage::helper ('core ' )->currency ($ featuredProduct ->getFinalPrice (),true ,true );?> </p>
3032 <a class="button" href="<?php echo $ featuredProduct ->getProductUrl (); ?> ">
Original file line number Diff line number Diff line change 1- @media only screen and (max-width : 769 px ) {
1+ @media only screen and (max-width : 770 px ) {
22 /*------------- Widget Blocks --------------*/
33 .list-block {
44 margin-left : 0px ;
1111 padding-bottom : 15px ;
1212 }
1313}
14- @media only screen and (max-width : 769 px ) {
14+ @media only screen and (max-width : 770 px ) {
1515 .megamenu-nav-primary li .level0 {
1616 display : block;
1717 }
223223 width : 100% ;
224224 }
225225}
226- @media only screen and (min-width : 770 px ) and (max-width : 979px ) {
226+ @media only screen and (min-width : 771 px ) and (max-width : 979px ) {
227227 .hide-on-medium {
228228 display : none !important ;
229229 }
230230}
231- @media only screen and (min-width : 979 px ) {
231+ @media only screen and (min-width : 980 px ) {
232232 .hide-on-large {
233233 display : none !important ;
234234 }
You can’t perform that action at this time.
0 commit comments