Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

Commit

Permalink
Forgot a few things, will track down if there is more. It gave me an …
Browse files Browse the repository at this point in the history
…error that the layout.tpl or header.tpl doesn't exist, changed a few things to read the .php's.
  • Loading branch information
Kyle committed Jul 17, 2012
1 parent f62a7a5 commit caaf851
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.php
Expand Up @@ -68,20 +68,20 @@
$BaseTemplate->Set('title', MainController::$page_title .' - '.SITE_NAME);
$BaseTemplate->Set('page_title', MainController::$page_title .' - '.SITE_NAME);

if(file_exists(SKINS_PATH.'/layout.tpl'))
if(file_exists(SKINS_PATH.'/layout.php'))
{
$BaseTemplate->Set('page_htmlhead', Template::Get('core_htmlhead.tpl', true));
$BaseTemplate->Set('page_htmlreq', Template::Get('core_htmlreq.tpl', true));
$BaseTemplate->Set('page_htmlhead', Template::Get('core_htmlhead.php', true));
$BaseTemplate->Set('page_htmlreq', Template::Get('core_htmlreq.php', true));
$BaseTemplate->Set('page_content', $page_content);

$BaseTemplate->ShowTemplate('layout.tpl');
$BaseTemplate->ShowTemplate('layout.php');
}
else
{
# It's a template sammich!
$BaseTemplate->ShowTemplate('header.tpl');
$BaseTemplate->ShowTemplate('header.php');
echo $page_content;
$BaseTemplate->ShowTemplate('footer.tpl');
$BaseTemplate->ShowTemplate('footer.php');
}

# Force connection close
Expand Down

0 comments on commit caaf851

Please sign in to comment.