Ejemplo n.º 1
0
        }
    }
}
$htmlHeader = ob_get_contents();
ob_end_clean();
if (!isset($_GET['noHTMLHeaderFooter'])) {
    if (!isset($_GET["noHeaderNoFooter"]) && !isset($_POST["noHeaderNoFooter"])) {
        if (ArchiConfig::getJsFooter() != '') {
            $footerJS = ArchiConfig::getJsFooter();
        }
        include 'modules/footer/index.php';
        $footerAndHeader['footer'] = $footer;
    } else {
        $footerJS = "";
        if (ArchiConfig::getJsFooter() != '') {
            $footerJS = ArchiConfig::getJsFooter();
        }
        if (!isset($config->isSiteLocal) || $config->isSiteLocal == false) {
            $analyticsJSvar = "<script type='text/javascript' src='js/analytics.js'></script>";
        }
        $footerAndHeader['footer'] = "</body>\n        </html>";
    }
}
$t = new Template('modules/archi/templates/general/');
$t->set_filenames(array('template' => 'template.tpl'));
$ajaxObj = new ajaxObject();
$t->assign_vars(array('ajaxFunctions' => $ajaxObj->getAjaxFunctions(), 'headerJS' => $headerJS, 'analyticsJS' => $analyticsJSvar, 'htmlHeader' => $htmlHeader, 'htmlModule' => $htmlModule, 'content' => ''));
$t->assign_vars($footerAndHeader);
ob_start();
$t->pparse('template');
$page = ob_get_contents();