$subswidth = trim($yj_sub_group_width_array[$child_rows[$item->parent_id][$item->id]]); $yj_load_mod_class = ' has_module holdsgroup" style="width:' . $subswidth . 'px!important;'; $addGroupTitleClass = ' holdsgroupTitle '; } } $item_link = implode($item_link_array); } elseif ($yj_item_type == 2 && $item->level > $allow_level && !empty($yj_position)) { if (!is_array($yj_position)) { $yj_position = array($yj_position); } $item_link_array = array(); foreach ($yj_position as $yj_position_value) { $yj_modules = YJModuleHelper::getModules($yj_position_value); $yj_attribs['yj_style'] = 'YJsgxhtml'; foreach ($yj_modules as $yj_module) { $yj_load_mod = YJModuleHelper::renderModule($yj_module, $yj_attribs); $yj_load_mod_class = ' has_modpoz'; $item_link_array[] = '' . $yj_module_details . '<div class="yjm_module">' . $yj_load_mod . '</div>'; if ($yj_mega_menus && isset($yj_pgroup_holder) && $yj_pgroup_holder == 1 && isset($yj_psub_width) && !empty($yj_psub_width)) { $subswidth = trim($yj_sub_group_width_array[$child_rows[$item->parent_id][$item->id]]); $yj_load_mod_class = ' has_modpoz holdsgroup" style="width:' . $subswidth . 'px!important;'; $addGroupTitleClass = ' holdsgroupTitle '; } } } $item_link = implode($item_link_array); } elseif ($yj_mega_menus && isset($yj_pgroup_holder) && $yj_pgroup_holder == 1 && isset($yj_psub_width) && !empty($yj_psub_width)) { $subswidth = trim($yj_sub_group_width_array[$child_rows[$item->parent_id][$item->id]]); $yj_load_mod_class = ' holdsgroup" style="width:' . $subswidth . 'px!important;'; $addGroupTitleClass = ' holdsgroupTitle '; } else {
/** * Checks if a module is enabled * * @param string The module name * * @return boolean */ public static function isEnabled($module) { $result = YJModuleHelper::getModule($module); return !is_null($result); }