Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php foreach ($menus as $class => $id): ?>
- <?php $_category = Mage::getModel('catalog/category')->load($id) ?>
- <?php if ($_category && $_category->getIsActive()): ?>
- <li class="<?= $class ?>">
- <a href="<?= $_category->getUrl() ?>"><?= $_category->getName() ?></a>
- <i id="<?= $class ?>"></i>
- <ul>
- <?php
- $children = Mage::getModel('catalog/category')
- ->getCategories($_category->getId(), 2, true);
- ?>
- <?php foreach ($children as $k => $child): ?>
- <?php if ($child->getIsActive()) : ?>
- <li class="<?= ($child->getId() == $active) ? 'active' : '' ?>">
- <a href="<?= $child->getUrl() ?>"><?= $this->escapeHtml($child->getName()) ?></a>
- </li>
- <?php endif ?>
- <?php endforeach; ?>
- </ul>
- </li>
- <?php endif; ?>
- <?php endforeach; ?>
- <li class="mobile_shop">
- <a href="http://local.magento.lc/shop.html">Shop</a>
- <i id="mobile_shop"></i>
- <ul>
- <li class="">
- <a href="http://local.magento.lc/shop/ladies.html">Ladies</a>
- </li>
- <li class="">
- <a href="http://local.magento.lc/shop/gents.html">Gents</a>
- </li>
- <li class="">
- <a href="http://local.magento.lc/shop/home.html">Home</a>
- </li>
- <li class="">
- <a href="http://local.magento.lc/shop/taste.html">Taste</a>
- </li>
- <li class="">
- <a href="http://local.magento.lc/shop/jewelry.html">Jewelry</a>
- </li>
- </ul>
- </li>
- <li class="mobile_gift_guide">
- <a href="http://local.magento.lc/gift-guide.html">Gift Guide</a>
- <i id="mobile_gift_guide"></i>
- <ul>
- <li class="">
- <a href="http://local.magento.lc/shop/ladies.html">Ladies</a>
- </li>
- <li class="">
- <a href="http://local.magento.lc/shop/gents.html">Gents</a>
- </li>
- <li class="">
- <a href="http://local.magento.lc/shop/home.html">Home</a>
- </li>
- <li class="">
- <a href="http://local.magento.lc/shop/taste.html">Taste</a>
- </li>
- <li class="">
- <a href="http://local.magento.lc/shop/jewelry.html">Jewelry</a>
- </li>
- </ul>
- </li>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement