22 defined(
'XOOPS_ROOT_PATH') or die('Restricted access');
27 include_once
$GLOBALS['xoops']->path('class/xoopsblock.php');
34 require_once
$GLOBALS[
'xoops']->path(
'include/xoops13_header.php');
38 $xoopsOption[
'theme_use_smarty'] = 1;
41 require_once
$GLOBALS[
'xoops']->path(
'class/template.php');
42 require_once
$GLOBALS[
'xoops']->path(
'class/theme.php');
43 require_once
$GLOBALS[
'xoops']->path(
'class/theme_blocks.php');
45 if (@$xoopsOption[
'template_main']) {
46 if (
false === strpos($xoopsOption[
'template_main'],
':')) {
47 $xoopsOption[
'template_main'] =
'db:' . $xoopsOption[
'template_main'];
65 if (defined(
"XOOPS_STARTPAGE_REDIRECTED")) {
67 $xoTheme->headContent($params,
"<base href='" . XOOPS_URL .
'/modules/' . $xoopsConfig[
'startpage'] .
"/' />",
$tpl, $repeat);
70 if (@is_object(
$xoTheme->plugins[
'xos_logos_PageBuilder'])) {
71 $aggreg =&
$xoTheme->plugins[
'xos_logos_PageBuilder'];
73 $xoopsTpl->assign_by_ref(
'xoops_lblocks', $aggreg->blocks[
'canvas_left']);
74 $xoopsTpl->assign_by_ref(
'xoops_rblocks', $aggreg->blocks[
'canvas_right']);
75 $xoopsTpl->assign_by_ref(
'xoops_ccblocks', $aggreg->blocks[
'page_topcenter']);
76 $xoopsTpl->assign_by_ref(
'xoops_clblocks', $aggreg->blocks[
'page_topleft']);
77 $xoopsTpl->assign_by_ref(
'xoops_crblocks', $aggreg->blocks[
'page_topright']);
78 $xoopsTpl->assign(
'xoops_showlblock', !empty($aggreg->blocks[
'canvas_left']));
79 $xoopsTpl->assign(
'xoops_showrblock', !empty($aggreg->blocks[
'canvas_right']));
80 $xoopsTpl->assign(
'xoops_showcblock', !empty($aggreg->blocks[
'page_topcenter']) || !empty($aggreg->blocks[
'page_topleft']) || !empty($aggreg->blocks[
'page_topright']));
84 if (!empty($xoopsModule)) {
85 $xoTheme->contentCacheLifetime = @$xoopsConfig[
'module_cache'][$xoopsModule->getVar(
'mid',
'n')];
87 }
else if (!empty($xoopsOption[
'template_main']) && $xoopsOption[
'template_main'] ==
'db:system_homepage.html') {
88 $xoTheme->contentCacheLifetime = 604800;
97 if (!isset($xoopsOption[
'template_main']) && $xoopsModule) {
99 include
$GLOBALS[
'xoops']->path(
'include/old_theme_functions.php');
101 $xoopsTheme[
'thename'] = $xoopsConfig[
'theme_set'];