config->item('template_uri'); } function cdn_uri(){ $CI =& get_instance(); return $CI->config->item('cdn_uri'); } function images_uri(){ $CI =& get_instance(); return $CI->config->item('images_uri'); } function asset_uri(){ $CI =& get_instance(); return $CI->config->item('asset_uri'); } function tv_images_uri(){ $CI =& get_instance(); return $CI->config->item('pendopo_images_uri'); } function detail_video_uri(){ $CI =& get_instance(); return $CI->config->item('detail_video_uri'); } function detail_foto_uri(){ $CI =& get_instance(); return $CI->config->item('photo_server'); } ?>config->item('domain_uri'); if (file_exists($filename)) { include $filename; $uri_domain = 'http://'.'index.okezone.com'; $domain = $config["read_domain"][$channel_id]; //echo "
";
        //print_r($domain);
        //echo "
"; if(isset($domain)) { if(strlen($domain) >1) { $uri_domain = 'http://'.$domain; } } return $uri_domain; } } //function to get readcontroller in domain apps function read_article_uri($channel_id){ $CI =& get_instance(); $read_path = $CI->config->item('site_read'); $read_news = 'read'; //$domain = $CI->config->item('read_domain'); if(isset($read_path[$channel_id])) { if(strlen($read_path[$channel_id]) >1) { $read_news = $read_path[$channel_id]; } } return $read_news; } //function to get css by channel article function site_css($channel_id){ $CI =& get_instance(); $css_site = $CI->config->item('site_css'); $css = 'news'; //$domain = $CI->config->item('read_domain'); if(isset($css_site[$channel_id])) { if(strlen($css_site[$channel_id]) >1) { $css = $css_site[$channel_id]; } } return $css; } ?> window.onload=function(){ setInterval("displaytime()", 1000) } var t = \''.date("F d, Y H:i:s", time()).'\'; var D = new Array("Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"); var M = new Array("Januari","Pebruari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"); var SD = new Date(t); function padlength(what){ var output = (what.toString().length==1)? "0"+what : what; return output; } function displaytime(){ SD.setSeconds(SD.getSeconds()+1); var day =SD.getDay(); var dstr="   "+ D[SD.getDay()]+", "+padlength(SD.getDate())+" "+M[SD.getMonth()]+" "+SD.getFullYear(); var tstr=padlength(SD.getHours())+":"+padlength(SD.getMinutes())+":"+padlength(SD.getSeconds()); document.getElementById("servertime").innerHTML=dstr+" | "+tstr; } '; return $r; } function int_time(){ $cdate = mktime(date("H"), date("i"), date("s"), date("Y"), date("m"), date("d")); return 1.3; } ?>config->item('template_uri').$js."\">\n"; return $string; } function add_css($css=''){ $CI =& get_instance(); if (trim($css)=="") return false; $string = "config->item('template_uri').$css."\">\n"; return $string; } /** * function rev 1.0, ronald * * - addMobileCss * - addTitle * * addMobileCss("/css/a.css","screen,projection,tv"); * addMobileCss("/css/a.css","handheld"); * adTitle('m.okezone.com - okezone mobile web'); * **/ function addMobileCss($csspath, $type=null){ $media = (($type != null)) ? "media=\"".$type."\"" : ""; $string = "\n\t"; return $string; } function addTitle($title) { $string = "".$title."\n"; return $string; } ?> $val) { $str .= ''.$newline; } return $str; } } function fbmeta($meta = array(), $newline = "\n"){ $str = ''; foreach ($meta as $key => $val) { $str .= ''.$newline; //$str .= ''.$newline; } return $str; } ?>

Alamat Redaksi