Esempio n. 1
0
 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";
     }
 }
Esempio n. 2
0
function atModOutput($file)
{
    $globalconfig = atGetGlobalConfig();
    extract($globalconfig);
    $modname = atGetModName();
    if (file_exists($themepath . "modules/{$modname}/{$file}")) {
        $file = $themepath . "modules/{$modname}/{$file}";
    } elseif (file_exists("modules/{$modname}/templates/{$file}")) {
        $file = "modules/{$modname}/templates/{$file}";
    } else {
        return false;
    }
    $output = atTemplateCompile($file);
    ob_start();
    atTemplateDisplay($output);
    $display = ob_get_contents();
    ob_end_clean();
    return $display;
}