if ($group->groupowner_level_info['level_group_style'] && !$is_group_private) { $groupstyle_info = $database->database_fetch_assoc($database->database_query("SELECT groupstyle_css FROM se_groupstyles WHERE groupstyle_group_id='{$group->group_info['group_id']}' LIMIT 1")); $global_css = $groupstyle_info['groupstyle_css']; } // SET GLOBAL PAGE TITLE $global_page_title[0] = 2000312; $global_page_title[1] = $group->group_info['group_title']; $global_page_description[0] = 2000313; $global_page_description[1] = $group->group_info['group_desc']; // GET ACTIONS $actions_array = $actions->actions_display(0, $setting['setting_actions_actionsonprofile'], "se_actions.action_object_owner='group' AND se_actions.action_object_owner_id='{$group->group_info['group_id']}'"); $smarty->assign_by_ref('actions', $actions_array); // Игры команды $games = new se_game(); $gamescommand['past'] = $games->get_past_command_games($group->group_info['group_id']); $gamescommand['current'] = $games->get_current_command_games($group->group_info['group_id']); $gamescommand['future'] = $games->get_future_command_games($group->group_info['group_id']); // ASSIGN VARIABLES AND DISPLAY GROUP PAGE $smarty->assign_by_ref('group_groupcat_id', $group->group_info['group_groupcat_id']); $smarty->assign_by_ref('group', $group); $smarty->assign_by_ref('cats', $field->cats); $smarty->assign_by_ref('members', $members); $smarty->assign_by_ref('officers', $officers); $smarty->assign_by_ref('topics', $topics); $smarty->assign('gamescommand', $gamescommand); $smarty->assign('groupcat_info', $groupcat_info); $smarty->assign('total_comments', $total_comments); $smarty->assign('total_files', $total_files); $smarty->assign('is_group_private', $is_group_private); $smarty->assign('allowed_to_view', $allowed_to_view); $smarty->assign('allowed_to_comment', $allowed_to_comment);