",html_calendar($month,$year),$html); // put the blog list into the template $html = str_replace("",html_bloglist($list_rows,$blogid),$html); // put the blog view into the template $html = str_replace("",html_blogview($view_rows,$view_comment_rows),$html); // process custom templates (new in 1.6.1) $keys = array_keys($user_templates); for ($i=0;$i<=count($keys);$i++){ $html = str_replace("",$user_templates[$keys[$i]],$html); } // process any user functions (new in 1.6.2) preg_match_all("//i",$html,$array_func); foreach ($array_func as $func){ $call_func = $func[0]; if ($call_func!="" && substr($call_func,0,1)!="<"){ $data = call_user_func($call_func); $html = str_replace("",$data,$html); } } // output the html! print $html; ?>