function atThemeExit() { $runningconfig = atGetRunningConfig(); extract($runningconfig); $display = ob_get_contents(); list($junk, $display) = atTemplateSplit($display, "#AUTOTHEME_START#"); $display = atThemeAddHeader() . $display; $display = str_replace('$', '\\$', $display); //atRunningSetVar('display', $display); //atCommandAdd('display', 'echo $display;'); $template = $template['dtd']; if (!$template) { $template = "HTML401_Transitional.html"; } if (@file_exists($themepath . $template)) { $file = $themepath . $template; } elseif (@file_exists($atdir . "templates/{$platform}/{$template}")) { $file = $atdir . "templates/{$platform}/{$template}"; } else { $file = $atdir . "templates/HTML.html"; } $HTML = atTemplateRead($file); $HTML = eregi_replace('\\<\\/head\\>', '', $HTML); $HTML = preg_replace('/(\\<\\!--[ ]*\\[|{)display(}|\\][ ]*--\\>)/', $display, $HTML); $output = atCommandReplace($HTML); ob_end_clean(); atTemplateDisplay($output); return die; }
function CloseTable2() { $runningconfig = atGetRunningConfig(); extract($runningconfig); if ($template['table2']) { $file = $template['table2']; $template = atTemplateCompile($themepath . $file); list($open, $output) = atTemplateSplit($template, "table-content"); atTemplateDisplay($output); } else { echo "</td></tr></table></td></tr></table>\n"; } }
function atThemeFooter() { atErrorCheck(); atModClose(); $runningconfig = atGetRunningConfig(); extract($runningconfig); $file = $template['main']; $template = atTemplateCompile($themepath . $file, 1); list($header, $output) = atTemplateSplit($template, "modules"); atTemplateDisplay($output); atThemeAddFooter(); atThemeClose(); atThemeExit(); }