| '.$body_section." |
%'.$obj_prefix.'_SEARCH%
',search_box_html($action_id),$template_content); $template_content=str_replace('%'.$obj_prefix.'_SEARCH%',search_box_html($action_id),$template_content); if(strpos($template_content,'%'.$obj_prefix.'_CATEGORY_LIST_VER%')!==false) $template_content=str_replace('%'.$obj_prefix.'_CATEGORY_LIST_VER%',category_sidebar($cat_allocation,'ver'),$template_content); if(strpos($template_content,'%'.$obj_prefix.'_CATEGORY_LIST_HOR%')!==false) $template_content=str_replace('%'.$obj_prefix.'_CATEGORY_LIST_HOR%',category_sidebar($cat_allocation,'hor'),$template_content); if(strpos($template_content,'%'.$obj_prefix.'_ARCHIVE%')!==false) $template_content=str_replace('%'.$obj_prefix.'_ARCHIVE%',archive_sidebar($archive_entries),$template_content); if(strpos($template_content,'%'.$entries_obj.'%')!==false) $template_content=str_replace('%'.$entries_obj.'%',entries_sidebar($entries_recent),$template_content); if($most_visted_enabled && strpos($template_content,'%'.$entries_obj.'%')!==false) $template_content=str_replace('%'.$obj_prefix.'_MOST_VISITED%',entries_sidebar($entries_most_visited),$template_content); if($ranking_enabled && strpos($template_content,'%'.$entries_obj.'%')!==false) $template_content=str_replace('%'.$obj_prefix.'_TOP_RANK%',entries_sidebar($entries_top_rank),$template_content); if(strpos($template_content,'%'.$obj_prefix.'_CATEGORY_FILTER%')!==false) $template_content=str_replace('%'.$obj_prefix.'_CATEGORY_FILTER%',categories_combo_html($action_id,(isset($category)?$category:'All')),$template_content); if($enable_comments && strpos($template_content,'%'.$obj_prefix.'_RECENT_COMMENTS%')!==false) $template_content=str_replace('%'.$obj_prefix.'_RECENT_COMMENTS%',recentcomments_html($comments_records),$template_content); $objects=array($entries_obj,$obj_prefix.'_ARCHIVE',$obj_prefix.'_CATEGORY_LIST_VER',$obj_prefix.'_CATEGORY_LIST_HOR',$obj_prefix.'_MOST_VISITED',$obj_prefix.'_RECENT_COMMENTS',$obj_prefix.'_CATEGORY_FILTER',$obj_prefix.'_TOP_RANK'); foreach($objects as $key=>$object) { if(strpos($template_content,'%'.$object.'(')!==false) { $template_content=f_obj_clearing($object,$template_content); $obj_content_t=f_GFS($template_content,'%'.$object.'(',')%'); $obj_content=f_p_tag_clearing($obj_content_t); $template_content=str_replace('%'.$object.'('.$obj_content_t.')%','%'.$object.'('.$obj_content.')%',$template_content); $template_content=f_obj_div_replacing('%'.$object.'('.$obj_content.')%',$template_content); $for_replace='%'.$object.'('.$obj_content.')%'; if($key==0) $template_content=str_replace($for_replace,entries_sidebar($entries_recent,$obj_content),$template_content); elseif($key==1) $template_content=str_replace($for_replace,archive_sidebar($archive_entries,$obj_content),$template_content); elseif($key==2) $template_content=str_replace($for_replace,category_sidebar($cat_allocation,'ver',$obj_content),$template_content); elseif($key==3) $template_content=str_replace($for_replace,category_sidebar($cat_allocation,'hor',$obj_content),$template_content); elseif($key==4 && $most_visted_enabled) $template_content=str_replace($for_replace,entries_sidebar($entries_most_visited,$obj_content),$template_content); if($key==5 && !$enable_comments) $template_content=str_replace($for_replace,'',$template_content); elseif($key==5) $template_content=str_replace($for_replace,recentcomments_html($comments_records,$obj_content),$template_content); elseif($key==6) $template_content= str_replace($for_replace,categories_combo_html($action_id,(isset($category)?$category:'All'),$obj_content),$template_content); elseif($key==7 && $ranking_enabled) $template_content=str_replace($for_replace,entries_sidebar($entries_top_rank,$obj_content),$template_content); } } $admin_link=$doc_dir.'centraladmin.php?pageid='.$page_id.'&indexflag=index&'.$lg_; $template_content=str_replace('%LINK_TO_ADMIN%',$admin_link,$template_content); $template_content=str_replace('',''.$blog_css,$template_content); // meta tags fixation $template_content=str_replace(array('| '.$v.' | '; if($k==6 || $k==13) $file_type_buffer.='