I use CMS Magento, the jquery-1.10.2.min.js library is initially jquery-1.10.2.min.js in the template. I want to set an accordion for the menu. Do I need to install jquery-ui accordion besides this library? Below is the code in the .phtml file with the attached accordion, but not jquery, a js.
<?php if (!Mage::registry('current_category')) return ?> <?php $categoryId = 3; $category = Mage::getModel('catalog/category')->load($categoryId); $_categories = $category->getChildrenCategories(); ?> <?php $_count = is_array($_categories)?count($_categories):$_categories->count(); ?> <?php if($_count): ?> <div class="block block-layered-nav block-layered-nav--no-filters"> <div class="block-content toggle-content open"> <dl id="narrow-by-list2"> <dt><?php echo $this->__('Каталог') ?></dt> <dd> <ol> <?php foreach ($_categories as $_category): ?> <?php if($_category->getIsActive()): ?> <li> <a href="<?php echo $this->getCategoryUrl($_category) ?>"<?php if ($this->isCategoryActive($_category)): ?> class="current"<?php endif; ?>> <?php echo $this->escapeHtml($_category->getName()) ?> </a> </li> <?php endif; ?> <?php endforeach ?> </ol> </dd> </dl> <script type="text/javascript">decorateDataList('narrow-by-list2')</script> </div> </div> <?php endif; ?>