Skip to content

Commit 90523ab

Browse files
committed
Merge pull request #37 from TheExtensionLab/dev
1.5.3 - Multiple Fixes
2 parents 452e4d4 + 7d554c4 commit 90523ab

13 files changed

Lines changed: 66 additions & 36 deletions

File tree

app/code/community/TheExtensionLab/MegaMenu/Model/Resource/Setup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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',

app/code/community/TheExtensionLab/MegaMenu/etc/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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();

app/design/frontend/base/default/template/theextensionlab/megamenu/attributes/li-only-list.phtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
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

app/design/frontend/base/default/template/theextensionlab/megamenu/attributes/list.phtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
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>

app/design/frontend/base/default/template/theextensionlab/megamenu/categories/li-only-list.phtml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
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)):?>
@@ -46,11 +46,11 @@
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; ?>

app/design/frontend/base/default/template/theextensionlab/megamenu/categories/list.phtml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@
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)):?>
@@ -41,15 +39,15 @@
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>

app/design/frontend/base/default/template/theextensionlab/megamenu/page/html/topmenu/renderer.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
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>

app/design/frontend/base/default/template/theextensionlab/megamenu/products/featured.phtml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@
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(); ?>">

skin/frontend/base/default/css/theextensionlab/megamenu/responsive.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@media only screen and (max-width: 769px) {
1+
@media only screen and (max-width: 770px) {
22
/*------------- Widget Blocks --------------*/
33
.list-block {
44
margin-left: 0px;
@@ -11,7 +11,7 @@
1111
padding-bottom: 15px;
1212
}
1313
}
14-
@media only screen and (max-width: 769px) {
14+
@media only screen and (max-width: 770px) {
1515
.megamenu-nav-primary li.level0 {
1616
display: block;
1717
}
@@ -223,12 +223,12 @@
223223
width: 100%;
224224
}
225225
}
226-
@media only screen and (min-width: 770px) and (max-width: 979px) {
226+
@media only screen and (min-width: 771px) and (max-width: 979px) {
227227
.hide-on-medium {
228228
display: none !important;
229229
}
230230
}
231-
@media only screen and (min-width: 979px) {
231+
@media only screen and (min-width: 980px) {
232232
.hide-on-large {
233233
display: none !important;
234234
}

0 commit comments

Comments
 (0)