Version Notes
Correction called for the installation of the database tables
Download this release
Release Info
Developer | Leonam Bernini |
Extension | easy_mega_menu |
Version | 3.0.2 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.0.2
- app/code/community/LeonamBernini/MegaMenu/Block/Html/Topmenu.php +52 -52
- app/code/community/LeonamBernini/MegaMenu/etc/config.xml +1 -1
- app/code/community/LeonamBernini/MegaMenu/sql/megamenu_setup/{mysql4-install-1.0.1.php → mysql4-install-3.0.2.php} +0 -0
- app/design/frontend/base/default/layout/leonambernini/buyfloatingbutton.xml +16 -0
- app/design/frontend/base/default/layout/leonambernini/extrabuttons.xml +23 -0
- package.xml +6 -6
- skin/frontend/base/default/leonam_bernini/megamenu/css/megamenu.css +12 -1
app/code/community/LeonamBernini/MegaMenu/Block/Html/Topmenu.php
CHANGED
@@ -27,56 +27,56 @@ class LeonamBernini_MegaMenu_Block_Html_Topmenu extends Mage_Page_Block_Html_Top
|
|
27 |
return $html;
|
28 |
}
|
29 |
|
30 |
-
public function __getHtml(Varien_Data_Tree_Node $menuTree, $childrenWrapClass)
|
31 |
-
{
|
32 |
-
$html = '';
|
33 |
-
|
34 |
-
$children = $menuTree->getChildren();
|
35 |
-
$parentLevel = $menuTree->getLevel();
|
36 |
-
$childLevel = is_null($parentLevel) ? 0 : $parentLevel + 1;
|
37 |
-
|
38 |
-
$counter = 1;
|
39 |
-
$childrenCount = $children->count();
|
40 |
-
|
41 |
-
$parentPositionClass = $menuTree->getPositionClass();
|
42 |
-
$itemPositionClassPrefix = $parentPositionClass ? $parentPositionClass . '-' : 'nav-';
|
43 |
-
|
44 |
-
foreach ($children as $child) {
|
45 |
-
|
46 |
-
$child->setLevel($childLevel);
|
47 |
-
$child->setIsFirst($counter == 1);
|
48 |
-
$child->setIsLast($counter == $childrenCount);
|
49 |
-
$child->setPositionClass($itemPositionClassPrefix . $counter);
|
50 |
-
|
51 |
-
$outermostClassCode = '';
|
52 |
-
$outermostClass = $menuTree->getOutermostClass();
|
53 |
-
|
54 |
-
if ($childLevel == 0 && $outermostClass) {
|
55 |
-
$outermostClassCode = ' class="' . $outermostClass . '" ';
|
56 |
-
$child->setClass($outermostClass);
|
57 |
-
}
|
58 |
-
|
59 |
-
$html .= '<li ' . $this->_getRenderedMenuItemAttributes($child) . '>';
|
60 |
-
$html .= '<a href="' . $child->getUrl() . '" ' . $outermostClassCode . '><span>'
|
61 |
-
. $this->escapeHtml($child->getName()) . '</span></a>';
|
62 |
-
|
63 |
-
if ($child->hasChildren()) {
|
64 |
-
if (!empty($childrenWrapClass)) {
|
65 |
-
$html .= '<div class="' . $childrenWrapClass . '">';
|
66 |
-
}
|
67 |
-
$html .= '<ul class="level' . $childLevel . '">';
|
68 |
-
$html .= $this->_getHtml($child, $childrenWrapClass);
|
69 |
-
$html .= '</ul>';
|
70 |
-
|
71 |
-
if (!empty($childrenWrapClass)) {
|
72 |
-
$html .= '</div>';
|
73 |
-
}
|
74 |
-
}
|
75 |
-
$html .= '</li>';
|
76 |
-
|
77 |
-
$counter++;
|
78 |
-
}
|
79 |
-
|
80 |
-
return $html;
|
81 |
-
}
|
82 |
}
|
27 |
return $html;
|
28 |
}
|
29 |
|
30 |
+
// public function __getHtml(Varien_Data_Tree_Node $menuTree, $childrenWrapClass)
|
31 |
+
// {
|
32 |
+
// $html = '';
|
33 |
+
//
|
34 |
+
// $children = $menuTree->getChildren();
|
35 |
+
// $parentLevel = $menuTree->getLevel();
|
36 |
+
// $childLevel = is_null($parentLevel) ? 0 : $parentLevel + 1;
|
37 |
+
//
|
38 |
+
// $counter = 1;
|
39 |
+
// $childrenCount = $children->count();
|
40 |
+
//
|
41 |
+
// $parentPositionClass = $menuTree->getPositionClass();
|
42 |
+
// $itemPositionClassPrefix = $parentPositionClass ? $parentPositionClass . '-' : 'nav-';
|
43 |
+
//
|
44 |
+
// foreach ($children as $child) {
|
45 |
+
//
|
46 |
+
// $child->setLevel($childLevel);
|
47 |
+
// $child->setIsFirst($counter == 1);
|
48 |
+
// $child->setIsLast($counter == $childrenCount);
|
49 |
+
// $child->setPositionClass($itemPositionClassPrefix . $counter);
|
50 |
+
//
|
51 |
+
// $outermostClassCode = '';
|
52 |
+
// $outermostClass = $menuTree->getOutermostClass();
|
53 |
+
//
|
54 |
+
// if ($childLevel == 0 && $outermostClass) {
|
55 |
+
// $outermostClassCode = ' class="' . $outermostClass . '" ';
|
56 |
+
// $child->setClass($outermostClass);
|
57 |
+
// }
|
58 |
+
//
|
59 |
+
// $html .= '<li ' . $this->_getRenderedMenuItemAttributes($child) . '>';
|
60 |
+
// $html .= '<a href="' . $child->getUrl() . '" ' . $outermostClassCode . '><span>'
|
61 |
+
// . $this->escapeHtml($child->getName()) . '</span></a>';
|
62 |
+
//
|
63 |
+
// if ($child->hasChildren()) {
|
64 |
+
// if (!empty($childrenWrapClass)) {
|
65 |
+
// $html .= '<div class="' . $childrenWrapClass . '">';
|
66 |
+
// }
|
67 |
+
// $html .= '<ul class="level' . $childLevel . '">';
|
68 |
+
// $html .= $this->_getHtml($child, $childrenWrapClass);
|
69 |
+
// $html .= '</ul>';
|
70 |
+
//
|
71 |
+
// if (!empty($childrenWrapClass)) {
|
72 |
+
// $html .= '</div>';
|
73 |
+
// }
|
74 |
+
// }
|
75 |
+
// $html .= '</li>';
|
76 |
+
//
|
77 |
+
// $counter++;
|
78 |
+
// }
|
79 |
+
//
|
80 |
+
// return $html;
|
81 |
+
// }
|
82 |
}
|
app/code/community/LeonamBernini/MegaMenu/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<LeonamBernini_MegaMenu>
|
5 |
-
<version>3.0.
|
6 |
</LeonamBernini_MegaMenu>
|
7 |
</modules>
|
8 |
|
2 |
<config>
|
3 |
<modules>
|
4 |
<LeonamBernini_MegaMenu>
|
5 |
+
<version>3.0.2</version>
|
6 |
</LeonamBernini_MegaMenu>
|
7 |
</modules>
|
8 |
|
app/code/community/LeonamBernini/MegaMenu/sql/megamenu_setup/{mysql4-install-1.0.1.php → mysql4-install-3.0.2.php}
RENAMED
File without changes
|
app/design/frontend/base/default/layout/leonambernini/buyfloatingbutton.xml
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<catalog_product_view>
|
4 |
+
<reference name="head">
|
5 |
+
<action method="addJs">
|
6 |
+
<script>leonam_bernini/buyfloatingbutton/buybutton.js</script>
|
7 |
+
</action>
|
8 |
+
<action method="addCss">
|
9 |
+
<stylesheet>leonam_bernini/buyfloatingbutton/css/buybutton.css</stylesheet>
|
10 |
+
</action>
|
11 |
+
</reference>
|
12 |
+
<reference name="product.info.form">
|
13 |
+
<block type="buyfloatingbutton/buyfloatingbutton" name="leonambernini.buyfloatingbutton" template="leonambernini/buyfloatingbutton/addtocart.phtml" output="toHtml"/>
|
14 |
+
</reference>
|
15 |
+
</catalog_product_view>
|
16 |
+
</layout>
|
app/design/frontend/base/default/layout/leonambernini/extrabuttons.xml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="head">
|
5 |
+
<action method="addCss">
|
6 |
+
<stylesheet>leonam_bernini/extrabuttons/css/extrabuttons.css</stylesheet>
|
7 |
+
</action>
|
8 |
+
</reference>
|
9 |
+
</default>
|
10 |
+
<catalog_product_view>
|
11 |
+
<reference name="product.info">
|
12 |
+
<block type="extrabuttons/extrabuttons" name="leonambernini.extrabuttons" as="leonambernini.extrabuttons" template="leonambernini/extrabuttons/extrabuttons.phtml"/>
|
13 |
+
</reference>
|
14 |
+
<reference name="product.info.media">
|
15 |
+
<block type="extrabuttons/extrabuttons" name="leonambernini.extrabuttons" as="leonambernini.extrabuttons" template="leonambernini/extrabuttons/extrabuttons.phtml"/>
|
16 |
+
</reference>
|
17 |
+
</catalog_product_view>
|
18 |
+
<catalog_category_default>
|
19 |
+
<reference name="product_list">
|
20 |
+
<block type="extrabuttons/extrabuttons" name="leonambernini.extrabuttons" as="leonambernini.extrabuttons" template="leonambernini/extrabuttons/extrabuttons.phtml"/>
|
21 |
+
</reference>
|
22 |
+
</catalog_category_default>
|
23 |
+
</layout>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>easy_mega_menu</name>
|
4 |
-
<version>3.0.
|
5 |
<stability>stable</stability>
|
6 |
-
<license uri="http://opensource.org/licenses/
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Easy Mega Menu extension for magento</summary>
|
10 |
<description>Mega menu easy to use yet full, was now easy to create a menu with quality and flexibility.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Leonam Bernini</name><user>leonambernini</user><email>leonam.b@hotmail.com</email></author></authors>
|
13 |
-
<date>2014-11-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="LeonamBernini"><dir name="MegaMenu"><dir name="Block"><dir name="Adminhtml"><dir name="Grid"><dir name="Renderer"><file name="Image.php" hash="7a3d8dc2e6a21199958f2f98fffea348"/></dir></dir><dir name="Megamenu"><dir name="Edit"><file name="Form.php" hash="87d678533750097e5938cb01296857d4"/><dir name="Tab"><file name="Form.php" hash="f98df641ab439a153f3f185ebd2d7af5"/></dir><file name="Tabs.php" hash="c21a5ff4036d436add0acb4d68eea72c"/></dir><file name="Edit.php" hash="21f4da1931881a4fb5ae1b6f5ad14d99"/><file name="Grid.php" hash="b489d4001814f90d7cfa69962619da33"/></dir><file name="Megamenu.php" hash="89a8d8d78268d870fa448d88c679d1b0"/></dir><dir name="Html"><dir name="Topmenu"><file name="Renderer.php" hash="154c25975739ee821ab4293d2b6ba351"/></dir><file name="Topmenu.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>easy_mega_menu</name>
|
4 |
+
<version>3.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/academic.php">Academic Free License 3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Easy Mega Menu extension for magento</summary>
|
10 |
<description>Mega menu easy to use yet full, was now easy to create a menu with quality and flexibility.</description>
|
11 |
+
<notes>Correction called for the installation of the database tables</notes>
|
12 |
<authors><author><name>Leonam Bernini</name><user>leonambernini</user><email>leonam.b@hotmail.com</email></author></authors>
|
13 |
+
<date>2014-11-14</date>
|
14 |
+
<time>13:00:44</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="LeonamBernini"><dir name="MegaMenu"><dir name="Block"><dir name="Adminhtml"><dir name="Grid"><dir name="Renderer"><file name="Image.php" hash="7a3d8dc2e6a21199958f2f98fffea348"/></dir></dir><dir name="Megamenu"><dir name="Edit"><file name="Form.php" hash="87d678533750097e5938cb01296857d4"/><dir name="Tab"><file name="Form.php" hash="f98df641ab439a153f3f185ebd2d7af5"/></dir><file name="Tabs.php" hash="c21a5ff4036d436add0acb4d68eea72c"/></dir><file name="Edit.php" hash="21f4da1931881a4fb5ae1b6f5ad14d99"/><file name="Grid.php" hash="b489d4001814f90d7cfa69962619da33"/></dir><file name="Megamenu.php" hash="89a8d8d78268d870fa448d88c679d1b0"/></dir><dir name="Html"><dir name="Topmenu"><file name="Renderer.php" hash="154c25975739ee821ab4293d2b6ba351"/></dir><file name="Topmenu.php" hash="edcaee6165d61e25364b7a2630278d10"/></dir><file name="Megamenu.php" hash="247f835affc88afaa71922a37c93ab19"/></dir><dir name="Helper"><file name="Data.php" hash="210840c7cea69df7a9c7308b64c6707f"/></dir><dir name="Model"><file name="Megamenu.php" hash="6fd2e85d4b0ad1900bb9fdc3e40e02ae"/><dir name="Mysql4"><dir name="Megamenu"><file name="Collection.php" hash="72d11f622ce9383b96b2d6cc3c85a848"/></dir><file name="Megamenu.php" hash="d9b2a354ec5e9b8e4d5fc8efa629775b"/></dir><dir name="Source"><file name="Action.php" hash="842a4ce1ff706ab41f24dafc225a2637"/><file name="DisplaySublevel.php" hash="3ecdc0f31448aeacabf3027cc0167cdc"/><file name="QtyLevels.php" hash="4775ba835e639d26a7aaa62899331490"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="ff6b3e45d45e9a461814410800467a4d"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="c0f88fba167915d5cbec53f32422c1a8"/><file name="config.xml" hash="b4f4b64148435939cf12b90ad476be70"/><file name="system.xml" hash="fa9d9e3d0a0e99baae46a1be229f5a49"/></dir><dir name="sql"><dir name="megamenu_setup"><file name="mysql4-install-3.0.2.php" hash="c6c7e05f751a14078f78bf9f34f166b7"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="leonambernini"><file name="buyfloatingbutton.xml" hash="ad4a7ddbdf23af47768214f0fd3f56a0"/><file name="extrabuttons.xml" hash="f71a4a10b05ad982fea38d174f66a7e3"/><file name="megamenu.xml" hash="e8b67090c61987e2eaa2da09064d66ae"/><file name="timerbanner.xml" hash="db036821f7e6876e4f8505df43327b93"/></dir></dir><dir name="template"><dir name="leonambernini"><dir name="megamenu"><dir name="topmenu"><file name="renderer.phtml" hash="3c9ea895a459540449ec3da289080266"/></dir><file name="topmenu.phtml" hash="3c6702c818ed452840504ec26687182b"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="LeonamBernini_MegaMenu.xml" hash="f63cc8dd91baef54618b05974f869b13"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="leonam_bernini"><dir name="megamenu"><dir name="css"><file name="megamenu.css" hash="7dfd5dfc031a9c61b8de796241b74f05"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="LeonamBernini_MegaMenu.csv" hash="bf8dcd3e8fce2df2457d68a7ec745fae"/></dir><dir name="pt_BR"><file name="LeonamBernini_MegaMenu.csv" hash="1f8e29b1d013633ae59192e082241478"/></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
skin/frontend/base/default/leonam_bernini/megamenu/css/megamenu.css
CHANGED
@@ -27,13 +27,17 @@ and open the template in the editor.
|
|
27 |
.nav-megamenu li.level2:hover .box-level2,
|
28 |
.nav-megamenu li.level3:hover .box-level3{ display: block; }
|
29 |
|
|
|
30 |
.nav-megamenu .box-children{ display: none; padding: 15px; position: absolute; }
|
31 |
|
32 |
.nav-megamenu li.level0:hover{ background-color: #fff; }
|
|
|
33 |
.nav-megamenu .box-level0{ background-color: #fff; border-radius: 0 0 5px 5px; box-shadow: 0 0 10px 0 #000; left: 0; top: 50px; min-width: 300px; z-index: 10; }
|
34 |
.nav-megamenu .open-left .box-level0{ left: auto; right: 0; }
|
35 |
-
.nav-megamenu .
|
|
|
36 |
.nav-megamenu .open-left .box-level1{ left: 0; right: auto; }
|
|
|
37 |
.nav-megamenu .box-level2{ background-color: #fff; left: 250px; top: 0; z-index: 30; }
|
38 |
|
39 |
.nav-megamenu .box-children ul{ position: relative; }
|
@@ -54,13 +58,20 @@ and open the template in the editor.
|
|
54 |
|
55 |
|
56 |
|
|
|
57 |
.nav-megamenu li.level0 .mega-menu-link{ display: block; font: 400 16px/20px 'Tahoma', sans-serif; padding: 15px 20px; text-decoration: none; }
|
58 |
|
|
|
59 |
.nav-megamenu li.level0 > .mega-menu-link{ color: #060606; }
|
|
|
60 |
.nav-megamenu li.level0 > .mega-menu-link:hover{ color: #007ED1; }
|
61 |
|
|
|
62 |
.nav-megamenu li.level1 > .mega-menu-link{ color: #060606; }
|
|
|
63 |
.nav-megamenu li.level1 > .mega-menu-link:hover{ color: #007ED1; }
|
64 |
|
|
|
65 |
.nav-megamenu li.level2 > .mega-menu-link{ color: #fff; }
|
|
|
66 |
.nav-megamenu li.level2 > .mega-menu-link:hover{ color: #e6ffff; }
|
27 |
.nav-megamenu li.level2:hover .box-level2,
|
28 |
.nav-megamenu li.level3:hover .box-level3{ display: block; }
|
29 |
|
30 |
+
.nav-megamenu li.level0 ul,
|
31 |
.nav-megamenu .box-children{ display: none; padding: 15px; position: absolute; }
|
32 |
|
33 |
.nav-megamenu li.level0:hover{ background-color: #fff; }
|
34 |
+
.nav-megamenu ul.level0,
|
35 |
.nav-megamenu .box-level0{ background-color: #fff; border-radius: 0 0 5px 5px; box-shadow: 0 0 10px 0 #000; left: 0; top: 50px; min-width: 300px; z-index: 10; }
|
36 |
.nav-megamenu .open-left .box-level0{ left: auto; right: 0; }
|
37 |
+
.nav-megamenu ul.level1,
|
38 |
+
.nav-megamenu .box-level1{ background-color: #000; border-radius: 0 0 5px 5px; left: 0; top: 35px; z-index: 20; }
|
39 |
.nav-megamenu .open-left .box-level1{ left: 0; right: auto; }
|
40 |
+
.nav-megamenu ul.level2,
|
41 |
.nav-megamenu .box-level2{ background-color: #fff; left: 250px; top: 0; z-index: 30; }
|
42 |
|
43 |
.nav-megamenu .box-children ul{ position: relative; }
|
58 |
|
59 |
|
60 |
|
61 |
+
.nav-megamenu li.level0 a,
|
62 |
.nav-megamenu li.level0 .mega-menu-link{ display: block; font: 400 16px/20px 'Tahoma', sans-serif; padding: 15px 20px; text-decoration: none; }
|
63 |
|
64 |
+
.nav-megamenu li.level0 .level-top,
|
65 |
.nav-megamenu li.level0 > .mega-menu-link{ color: #060606; }
|
66 |
+
.nav-megamenu li.level0 .level-top:hover,
|
67 |
.nav-megamenu li.level0 > .mega-menu-link:hover{ color: #007ED1; }
|
68 |
|
69 |
+
.nav-megamenu li.level1 a,
|
70 |
.nav-megamenu li.level1 > .mega-menu-link{ color: #060606; }
|
71 |
+
.nav-megamenu li.level1 a:hover,
|
72 |
.nav-megamenu li.level1 > .mega-menu-link:hover{ color: #007ED1; }
|
73 |
|
74 |
+
.nav-megamenu li.level2 a,
|
75 |
.nav-megamenu li.level2 > .mega-menu-link{ color: #fff; }
|
76 |
+
.nav-megamenu li.level2 a:hover,
|
77 |
.nav-megamenu li.level2 > .mega-menu-link:hover{ color: #e6ffff; }
|