Skip to content

Commit

Permalink
Update script initialisation to match Mage
Browse files Browse the repository at this point in the history
  • Loading branch information
tommypyatt committed Feb 13, 2018
1 parent 7ac135d commit f67b402
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions view/frontend/templates/html/topmenu.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $categories = $block->getStoreCategories(true);
$itemCount = 0;
?>
<nav class="navigation">
<ul class="ui-menu ui-widget ui-widget-content ui-corner-all">
<ul data-mage-init='{"menu":{"responsive":true, "expanded":true, "position":{"my":"left top","at":"left bottom"}}}'>
<?php foreach ($categories as $category) : ?>
<li class="level0 nav-<?= $itemCount++ ?> first level-top ui-menu-item">
<a href="<?php echo $block->getCategoryUrl($category); ?>" class="level-top ui-corner-all">
Expand All @@ -31,12 +31,3 @@ $itemCount = 0;
<?php endforeach; ?>
</ul>
</nav>
<script type="text/x-magento-init">
{
".nav__wrapper": {
"navigation": {}
}
}


</script>

0 comments on commit f67b402

Please sign in to comment.