http://www.kidspowersource.com/site
The theme.php file looks fine to me...
Code
<?php
// ----------------------------------------------------------------------
// Copyright (c) 2002-2003 Shawn McKenzie
// http://spidean.mckenzies.net
// ----------------------------------------------------------------------
global $simple_urls, $simple_uri;
$simple_urls = false; // enable/disable simple URL functionality
$thename = "pnorange"; // Change to theme name (case sensitive)
//$thename = basename(dirname(__FILE__));
$uri=basename($_SERVER['PHP_SELF']); // Note: For PHP earlier than 4.1.0, use $HTTP_SERVER_VARS instead
if ($uri == "user.php" || $uri == "admin.php" || defined("LOADED_AS_MODULE"))
{ $simple_uri="old"; }
else{ $simple_uri="new"; }
if ($simple_urls)
require_once("themes/$thename/functions.php");
global $all_vars, $index;
$postnuke_theme = true;
$autotheme_theme = true;
//Include theme specific files for config, command definition, parsing and functions
include(dirname(__file__)."/theme.cfg");
themes_get_language();
include(dirname(__file__)."/includes/commands.inc.php");
include(dirname(__file__)."/includes/autotheme.inc.php");
//Tables that modules and others call so as to keep consistent with the theme
function OpenTable()
{
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable()
{
echo "</td></tr></table></td></tr></table>\n";
}
function OpenTable2()
{
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable2()
{
echo "</td></tr></table></td></tr></table>\n";
}
//This is the theme header - the layout that is rendered before the modules
function themeheader()
{
global $all_vars, $simple_urls, $simple_uri;
if ($simple_urls && $simple_uri=="old") {
ob_start();
}
extract($all_vars);
atThemeRender($output['header']);
if ($simple_urls && $simple_uri == "new") {
$contents = ob_get_contents();
ob_end_clean();
ob_start();
echo simplify_urls($contents); //display modified buffer to screen
} // End Simple URL
// echo "<SCRIPT src=\"themes/pnADDONS/js/fade.js\" type=text/javascript></SCRIPT>";
}
//This is the theme footer - the layout that is rendered after the modules
function themefooter()
{
global $all_vars, $simple_urls, $simple_uri;
extract($all_vars);
atThemeRender($output['footer']);
if ($simple_urls) {
$contents = ob_get_contents(); // Get output buffer content and flush buffer
ob_end_clean();
if ($simple_uri == "new") // Extra ob_start for New module
ob_start();
echo simplify_urls($contents); //display modified buffer to screen
}
}
//This displays the article summary on the main page
function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat)
{
global $all_vars;
extract($all_vars, EXTR_SKIP);
//$all_vars = get_defined_vars();
$summary_count ++;
if($alternate_summary) {
if($summary_count % 2 == 0) {
$sparts = $output['summary1'];
$scommands = $commands['summary1'];
} else {
$sparts = $output['summary2'];
$scommands = $commands['summary2'];
}
} else {
$sparts = $output['summary'];
$scommands = $commands['summary'];
}
$all_vars = get_defined_vars();
atThemeRender($sparts);
}
//This displays the full article when read more... is clicked in the article summary
function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat)
{
global $all_vars;
extract($all_vars, EXTR_SKIP);
$all_vars = get_defined_vars();
atThemeRender($output['article']);
}
//These are the side blocks
function themesidebox($block)
{
global $all_vars;
extract($all_vars, EXTR_SKIP);
switch($block['position']) {
case 'l':
$bparts = $output['leftblock'];
break;
case 'r':
$bparts = $output['rightblock'];
break;
case 'c':
$bparts = $output['centerblock'];
break;
case '1':
$bparts = $output['area1block'];
break;
case '2':
$bparts = $output['area2block'];
break;
case '3':
$bparts = $output['area3block'];
break;
case '4':
$bparts = $output['area4block'];
break;
case '5':
$bparts = $output['area5block'];
break;
case '6':
$bparts = $output['area6block'];
break;
case '7':
$bparts = $output['area7block'];
break;
case '8':
$bparts = $output['area8block'];
break;
case '9':
$bparts = $output['area9block'];
break;
case 't':
$bparts = $output['topblock'];
break;
case 'b':
$bparts = $output['bottomblock'];
break;
}
//Define custom block templates
$title = trim(strip_tags($block[title], ""));
if($custom_block) {
foreach($custom_block as $name => $file) {
if($name == $title && file_exists($themepath.$file)) {
$HTML = atTemplateLoad($themepath.$file);
$bparts = atCommandParse($HTML, $command);
}
}
}
//Echo parts and execute commands
if($bparts) {
$all_vars = get_defined_vars();
atThemeRender($bparts);
}
}
?>
// ----------------------------------------------------------------------
// Copyright (c) 2002-2003 Shawn McKenzie
// http://spidean.mckenzies.net
// ----------------------------------------------------------------------
global $simple_urls, $simple_uri;
$simple_urls = false; // enable/disable simple URL functionality
$thename = "pnorange"; // Change to theme name (case sensitive)
//$thename = basename(dirname(__FILE__));
$uri=basename($_SERVER['PHP_SELF']); // Note: For PHP earlier than 4.1.0, use $HTTP_SERVER_VARS instead
if ($uri == "user.php" || $uri == "admin.php" || defined("LOADED_AS_MODULE"))
{ $simple_uri="old"; }
else{ $simple_uri="new"; }
if ($simple_urls)
require_once("themes/$thename/functions.php");
global $all_vars, $index;
$postnuke_theme = true;
$autotheme_theme = true;
//Include theme specific files for config, command definition, parsing and functions
include(dirname(__file__)."/theme.cfg");
themes_get_language();
include(dirname(__file__)."/includes/commands.inc.php");
include(dirname(__file__)."/includes/autotheme.inc.php");
//Tables that modules and others call so as to keep consistent with the theme
function OpenTable()
{
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable()
{
echo "</td></tr></table></td></tr></table>\n";
}
function OpenTable2()
{
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable2()
{
echo "</td></tr></table></td></tr></table>\n";
}
//This is the theme header - the layout that is rendered before the modules
function themeheader()
{
global $all_vars, $simple_urls, $simple_uri;
if ($simple_urls && $simple_uri=="old") {
ob_start();
}
extract($all_vars);
atThemeRender($output['header']);
if ($simple_urls && $simple_uri == "new") {
$contents = ob_get_contents();
ob_end_clean();
ob_start();
echo simplify_urls($contents); //display modified buffer to screen
} // End Simple URL
// echo "<SCRIPT src=\"themes/pnADDONS/js/fade.js\" type=text/javascript></SCRIPT>";
}
//This is the theme footer - the layout that is rendered after the modules
function themefooter()
{
global $all_vars, $simple_urls, $simple_uri;
extract($all_vars);
atThemeRender($output['footer']);
if ($simple_urls) {
$contents = ob_get_contents(); // Get output buffer content and flush buffer
ob_end_clean();
if ($simple_uri == "new") // Extra ob_start for New module
ob_start();
echo simplify_urls($contents); //display modified buffer to screen
}
}
//This displays the article summary on the main page
function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat)
{
global $all_vars;
extract($all_vars, EXTR_SKIP);
//$all_vars = get_defined_vars();
$summary_count ++;
if($alternate_summary) {
if($summary_count % 2 == 0) {
$sparts = $output['summary1'];
$scommands = $commands['summary1'];
} else {
$sparts = $output['summary2'];
$scommands = $commands['summary2'];
}
} else {
$sparts = $output['summary'];
$scommands = $commands['summary'];
}
$all_vars = get_defined_vars();
atThemeRender($sparts);
}
//This displays the full article when read more... is clicked in the article summary
function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat)
{
global $all_vars;
extract($all_vars, EXTR_SKIP);
$all_vars = get_defined_vars();
atThemeRender($output['article']);
}
//These are the side blocks
function themesidebox($block)
{
global $all_vars;
extract($all_vars, EXTR_SKIP);
switch($block['position']) {
case 'l':
$bparts = $output['leftblock'];
break;
case 'r':
$bparts = $output['rightblock'];
break;
case 'c':
$bparts = $output['centerblock'];
break;
case '1':
$bparts = $output['area1block'];
break;
case '2':
$bparts = $output['area2block'];
break;
case '3':
$bparts = $output['area3block'];
break;
case '4':
$bparts = $output['area4block'];
break;
case '5':
$bparts = $output['area5block'];
break;
case '6':
$bparts = $output['area6block'];
break;
case '7':
$bparts = $output['area7block'];
break;
case '8':
$bparts = $output['area8block'];
break;
case '9':
$bparts = $output['area9block'];
break;
case 't':
$bparts = $output['topblock'];
break;
case 'b':
$bparts = $output['bottomblock'];
break;
}
//Define custom block templates
$title = trim(strip_tags($block[title], ""));
if($custom_block) {
foreach($custom_block as $name => $file) {
if($name == $title && file_exists($themepath.$file)) {
$HTML = atTemplateLoad($themepath.$file);
$bparts = atCommandParse($HTML, $command);
}
}
}
//Echo parts and execute commands
if($bparts) {
$all_vars = get_defined_vars();
atThemeRender($bparts);
}
}
?>
Can anyone help?
It is an AutoTheme.
I am running pn.726 and AutoTheme Lite.
