user_is_in_group($user, 'Registered')) { $class .= ' grp_Registered'; if (TikiLib::lib('user')->user_is_in_group($user, 'Admins')) { $class .= ' grp_Admins'; } } } if ($prefs['feature_perspective'] == 'y' && ! empty($_SESSION['current_perspective'])) { $class .= ' perspective' . $_SESSION['current_perspective']; $class .= ' perspective_' . preg_replace("/[^a-z0-9]/", "_", strtolower($_SESSION['current_perspective_name'])); } if ($categories = $smarty->getTemplateVars('objectCategoryIds')) { foreach ($categories as $cat) { if (in_array($cat, $prefs['categories_add_class_to_body_tag'])) { $class .= ' cat_' . str_replace(' ', '-', TikiLib::lib('categ')->get_category_name($cat)); } } } if (! empty($page) && $page == $prefs['tikiIndex']) { $class .= ' homepage'; } if (! empty($pageLang)) { $class .= ' lang_' . $pageLang; } else { $class .= ' lang_' . $prefs['language']; } if (getCookie('hide_zone_left')) { $class .= ' hide_zone_left'; } if (getCookie('hide_zone_right')) { $class .= ' hide_zone_right'; } if ($prefs['wiki_make_ordered_list_items_display_unique_numbers'] === 'y') { $class .= ' uol'; // add class to display all the ordered lists sub-items indented with unique numbering like "1.2", "1.2.1", etc. } if (! empty($onload)) { $back .= ' onload="' . $onload . '"'; } if (! empty($class)) { $back .= ' class="' . $class . '"'; } return $back; }