development->status(); $this->load->model('xml/mcontent_populate_xml','xml_content'); $handler = $this->config->item('handler'); switch ($handler) { case "db" : $this->load->model('db/mcontent_populate','db_content'); $this->load->model('db/msoccer_populate', 'db_soccer'); break; case "sparks" : $this->load->model('db/mcontent_populate_sparks','db_content'); $this->load->model('db/msoccer_populate_sparks', 'db_soccer'); break; } $this->load->helper('analytics'); $this->load->helper('contentdate'); $this->load->helper('teams'); #Css $a['html']['css'] = add_css('/css/main-style.css'); $a['html']['css'] .= add_css('/css/animate.css'); $a['html']['css'] .= add_css('/css/normalize.css'); $a['html']['css'] .= add_css('/css/others.css'); $a['html']['css'] .= add_css('/css/detail2.css'); #Js $a['html']['top_js'] = add_js('/js/modernizr.custom.js'); $a['html']['top_js'] .= add_js('/js/vendor/jquery-1.10.2.min.js'); $a['html']['top_js'] .= add_js('/js/dropit.js'); $a['html']['top_js'] .= add_js('/js/fred/jquery.carouFredSel-6.2.1-packed.js'); $a['html']['top_js'] .= add_js('/js/fred/helper-plugins/jquery.touchSwipe.min.js'); $a['html']['top_js'] .= add_js('/js/bjqs-1.3.min.js'); $a['html']['top_js'] .= add_js('/js/Chart.js'); $a['html']['top_js'] .= add_js('/js/jquery.jcarousel.min.js'); $a['html']['top_js'] .= add_js('/js/jquery.pikachoose.min.js'); $a['html']['top_js'] .= add_js('/js/uisearch.js'); #Analytics $a['html']['analytics'] = google(); #Channel Bola $channel_pd = $this->config->item('channel_pd'); $channel_news = $this->config->item('channel_news'); $channel_highlight = $this->config->item('channel_highlight'); $channel_freekick = $this->config->item('channel_freekick'); $channel_contestant = $this->config->item('channel_contestant'); $channel_polling = $this->config->item('channel_polling'); $channel_video = $this->config->item('channel_video'); $category_video = $this->config->item('category_video'); $category_photo = $this->config->item('category_photo'); $playlist_content = $this->config->item('playlist_content'); $playlist_topic = $this->config->item('playlist_content_topic'); #Header $t['menu_active'] = 'freekick'; $a['content']['header'] = $this->load->view('template/vheader', $t, TRUE); #Match $t['match'] = $this->db_soccer->get_match_result(9, 0, 16); $a['content']['match'] = $this->load->view('template/vmatch', $t, TRUE); #Trending Topics & Headline $t['topic'] = $this->xml_content->get_playlist_topic($playlist_topic, 0, 16); $t['headline'] = $this->xml_content->get_headline($channel_freekick, 0, 8); $a['content']['headline'] = $this->load->view('highlight/vheadline', $t, TRUE); #Video $t['video'] = $this->xml_content->get_content_by_channel_id($channel_video, 2, 0, 3); //$t['video'] = $this->db_content->get_content_by_category_id($channel_video, 2, 0, 3); $a['content']['video'] = $this->load->view('highlight/vvideo', $t, TRUE); #Photo $t['photo'] = $this->db_content->get_content_by_category_id_lite($category_photo, 3, 0, 3); $a['content']['photo'] = $this->load->view('highlight/vphoto', $t, TRUE); #Klasemen $t['data_list'] = $this->db_soccer->get_competiton(9, 3); $a['content']['klasemen'] = $this->load->view('highlight/vklasemen', $t, TRUE); #Breaking $t['breaking'] = $this->xml_content->get_breaking($channel_freekick, 0, 15); $a['content']['breaking'] = $this->load->view('highlight/vbreaking', $t, TRUE); #Most Shared $t['shared'] = $this->xml_content->get_most_shared($channel_pd, 0, 5); $a['content']['most_shared'] = $this->load->view('template/vmost_shared', $t, TRUE); #Most View $t['viewed'] = $this->xml_content->get_most_viewed($channel_pd, 0, 0, 5); $a['content']['most_viewed'] = $this->load->view('template/vmost_viewed', $t, TRUE); #Most Commented $t['commented'] = $this->xml_content->get_most_commented($channel_pd, 0, 5); $a['content']['most_commented'] = $this->load->view('template/vmost_commented', $t, TRUE); #Polling $t['poll'] = $this->db_content->get_vote(1, 0, 12); $a['content']['polling'] = $this->load->view('home/vpolling', $t, TRUE); #Channel //$t['headline_channel'] = $this->xml_content->get_headline($this->config->item('channel_news'), 0, 4); //$t['breaking_channel'] = $this->xml_content->get_breaking($this->config->item('channel_news'), 0, 4); //$a['content']['channel'] = $this->load->view('template/vchannel', $t, TRUE); #Suplement 1 $t['name_1'] = "NEWS"; $t['sup_1'] = $this->xml_content->get_breaking($this->config->item('channel_news'), 0, 7); $a['content']['sup_1'] = $this->load->view('template/vsuplement_1', $t, TRUE); #Suplement 2 $t['name_2'] = "HIGHLIGHT"; $t['sup_2'] = $this->xml_content->get_breaking($this->config->item('channel_highlight'), 0, 7); $a['content']['sup_2'] = $this->load->view('template/vsuplement_2', $t, TRUE); #Suplement 3 $t['name_3'] = "FREE KICK"; $t['sup_3'] = $this->xml_content->get_breaking($this->config->item('channel_freekick'), 0, 7); $a['content']['sup_3'] = $this->load->view('template/vsuplement_3', $t, TRUE); #Video Program $t['video'] = $this->xml_content->get_content_by_channel_id($this->config->item('vid_mj'), 2, 0, 6); $a['content']['vid_program'] = $this->load->view('template/vvideo_program', $t, TRUE); #Footer $a['content']['footer'] = $this->load->view('template/vfooter',$t,TRUE); #Title $a['html']['title'] = climiter(ucwords($t['breaking'][0]['title'].' FREE KICK | '.APPSNAMED), 60); #Metaname $a['html']['metaname'] = meta($t['breaking'][0]['title'],$t['breaking'][0]['title'],$t['breaking'][0]['date_published']); #Output $this->load->view('pages/vhighlight', $a, FALSE); } } ?> Page Not Found