function execute() { global $oscTemplate, $cPath; $OSCOM_CategoryTree = new category_tree(); $OSCOM_CategoryTree->setCategoryPath($cPath, '<strong>', '</strong>'); $OSCOM_CategoryTree->setSpacerString(' ', 1); $OSCOM_CategoryTree->setParentGroupString('<ul class="nav nav-list">', '</ul>', true); $data = '<div class="panel panel-default">' . ' <div class="panel-heading">' . MODULE_BOXES_CATEGORIES_BOX_TITLE . '</div>' . ' <div class="panel-body">' . $OSCOM_CategoryTree->getTree() . '</div>' . '</div>'; $oscTemplate->addBlock($data, $this->group); }
function execute() { global $oscTemplate, $cPath; $OSCOM_CategoryTree = new category_tree(); $OSCOM_CategoryTree->setCategoryPath($cPath, '<strong>', '</strong>'); $OSCOM_CategoryTree->setSpacerString(' ', 1); $OSCOM_CategoryTree->setParentGroupString('<ul class="nav nav-pills nav-stacked">', '</ul>', true); $category_tree = $OSCOM_CategoryTree->getTree(); ob_start(); include 'includes/modules/boxes/templates/categories.php'; $data = ob_get_clean(); $oscTemplate->addBlock($data, $this->group); }