Figured it out. To add a new page within the administration portal and keep the administration template do the following.
- Open /skin1/single/home.tpl
- Add an else if statement similar to the following
Code:
{elseif $main eq "test"}{include file="test.tpl"}
- Create a new template in /skin/test.tpl
- Create a new administration page /admin/test.php and add the following code
Code:
<?php
require "./auth.php";
require $xcart_dir."/include/security.php";
$smarty->assign("main", "test");
$smarty->assign("tpldir", $tpldir);
include $xcart_dir."/modules/gold_display.php";
func_display("test.tpl",$smarty);
?>
- The second property in the $smarty->assign method calls the expression assigned in the elseif statements in /skin1/single/home.tpl