get_page_by_id(HOME_PAGE_ID); $data['page_title'] = $page['page_title']; $data['page_keywords'] = $page['page_keywords']; $data['page_description'] = $page['page_description']; if ($input->request->get_value('interview_year')) { $interview_manager->set_interview_year($input->request->get_value('interview_year')); } if ($input->request->get_value('interview_id')) { $interview = $interview_manager->get_public_interview_by_id($input->request->get_value('interview_id')); $categories = $interview_manager->get_categories_by_interview_id($interview['interview_id']); foreach ((array)$categories AS $category) { $category_list[] = $category['category_name']; } $category_keywords = implode(", ", $category_list); $data['page_title'] = $interview['report_title'].": Interview by: ".$interview['first_name']." ".$interview['last_name']; $data['page_keywords'] = $category_keywords; $data['page_description'] = $interview['interview_quote']; if (!$interview_manager->get_public_category()) { $one_category = array_shift($categories); $interview_manager->set_public_category($one_category['category_id']); } } switch ($input->request->get_value('view')) { case "interview": break; case "interviews": break; case "category": break; default: $section = 'home'; } include(SYSTEM_PATH."/templates/global/public.header.php"); ?> request->get_value('view')) { case "interview": $interview_manager->display_public_interview(); break; case "interviews": $interview_manager->display_public_interviews(); break; case "category": $interview_manager->display_public_category(); break; default: $interview_manager->display_public_home_page(); } ?>