$title, "__HOPP_BODY_FUNCTION__" => "hopp_element_body", "__HOPP_HEAD_FUNCTION__" => "hopp_element_head" ); } basic_template_container_with_variables("main", $variables_array); } function hopp_element_body( $variables_array="") { if(!is_array($variables_array)) { $variables_array=array( "__HOPP_INSIDE_BODY_FUNCTION__" => "hopp_body_handler" ); } basic_template_container_with_variables("body", $variables_array); } function hopp_element_head($variables_array="") { if(!is_array($variables_array)) { $variables_array=array( "__HOPP_INSIDE_HEAD_FUNCTION__" => "hopp_head_handler" ); } basic_template_container_with_variables("head", $variables_array); } function hopp_element_generic_text($var_name, $template_name, $text, $htmlize=0) { if($htmlize) $text=nl2br(htmlentities(stripslashes($text))); $variables_array=array( $var_name => $text ); basic_template_container_with_variables($template_name, $variables_array); } function hopp_element_title_text($text, $htmlize=0) { hopp_element_generic_text("__HOPP_TITLE_CONTENT__", "title", $text, $htmlize); } function hopp_element_subtitle_text($text, $htmlize=0) { hopp_element_generic_text("__HOPP_SUBTITLE_CONTENT__", "subtitle", $text, $htmlize); } function hopp_element_paragraph_text($text, $htmlize=0) { hopp_element_generic_text("__HOPP_PARAGRAPH_CONTENT__", "paragraph", $text, $htmlize); } function hopp_element_subtitle_include($filename, $htmlize=0) { hopp_element_subtitle_text(hopp_element_get_corrected_filename_text($filename), $htmlize); } function hopp_element_get_corrected_filename_text($filename) { $filename_corrected=basic_template_container_probe_name($filename); s_log("filename_corrected: $filename_corrected"); if($filename_corrected) { $fd = fopen ($filename_corrected, "r"); $file_content = fread ($fd, filesize ($filename_corrected)); fclose ($fd); } return $file_content; } #--------------------------------------------------------------------- } //__HOPP_TEMPLATE_ELEMENTS ?>