$dat) { $feat = $dat['feature']; if ($feat === '' or ( isset($prefs[$feat]) and $prefs[$feat] == 'y' )) { $sections_enabled[$sec] = $dat; } } ksort($sections_enabled); $smarty->assign_by_ref('sections_enabled', $sections_enabled); if (! empty($section)) { $smarty->assign('section', $section); } if (! empty($section_class)) { $smarty->assign('section_class', $section_class); } elseif (! empty($section)) { $section_class = 'tiki_' . str_replace(' ', '_', $section); $smarty->assign('section_class', $section_class); } function current_object() { return Sections::currentObject(); }