<?php

//Main theme commands
$command['[modules]'] = '';
$command['[theme-path]'] = 'echo $themepath;';
$command['[image-path]'] = 'echo $imgpath;';
$command['[banners]'] = 'if ($banners) { include("banners.php"); }';
$command['[footer-msg]'] = 'footmsg();';
$command['[site-slogan]'] = 'echo $slogan;';
$command['[site-name]'] = 'echo $sitename;';
$command['[open-table]'] = 'OpenTable();';
$command['[close-table]'] = 'CloseTable();';
$command['[open-table2]'] = 'OpenTable2();';
$command['[close-table2]'] = 'CloseTable2();';
/*
$command['[date]'] = 'echo ml_ftime(_DATELONG, (GetUserTime(time())));';
$command['[time]'] = 'echo ml_ftime(_TIMEBRIEF, (GetUserTime(time())));';
*/
$command['[logo-image]'] = 'if ($logoimg && file_exists($imgpath.$logoimg)) {'
.'echo "<img src=\"".$imgpath.$logoimg."\" alt=\"".$module_name."\" />\n"; }';
$command['[user]'] = 'echo $username;';
$command['[user-welcome]'] = 'echo _WELCOME." ".$username;';
$command['[user-links]'] = 'if (!$loggedin) {'
.'echo "<a href=\"modules.php?name=Your_Account&op=new_user\">'._NEWACCOUNT.'</a> | '
.'<a href=\"modules.php?name=Your_Account\">'._LOGIN.'</a>"; }'
.'else {'
.'echo "<a href=\"modules.php?name=Your_Account\">'._MYACCOUNT.'</a> | '
.'<a href=\"modules.php?name=Your_Account&op=logout\">'._LOGOUT.'</a>"; }';
$command['[user-login]'] = 'if (!$loggedin) {'
.'echo "<form action=\"modules.php?name=Your_Account\" method=\"post\">\n'
.'  <span class=\"pn-normal\">'._NICKNAME.'</span>\n'
.'  <input type=\"text\" name=\"uname\" size=\"14\" maxlength=\"25\">\n'
.'  <span class=\"pn-normal\">'._PASSWORD.'</span>\n'
.'  <input type=\"password\" name=\"pass\" size=\"14\" maxlength=\"20\">\n'
.'  <input type=\"checkbox\" value=\"1\" name=\"rememberme\" />\n'
.'  <span class=\"pn-normal\">'._REMEMBERME.'</span>\n'
.'  <input type=\"hidden\" name=\"module\" value=\"NS-User\" />\n'
.'  <input type=\"hidden\" name=\"op\" value=\"login\" />\n'
.'  <input type=\"hidden\" name=\"url\" value=\"index.php\" />\n";'
.'$btn = "<input class=\"pn-button\" type=\"submit\" value=\"'._LOGIN.'\" />\n";'  //New 3
.'if (file_exists($imgpath."login.gif")) {'
.'   $btn = "<input type=\"image\" src=\"".$imgpath."login.gif\" value=\"'._LOGIN.'\" />\n"; }'
.'elseif (file_exists($imgpath."login.jpg")) {'
.'   $btn = "<input type=\"image\" src=\"".$imgpath."login.jpg\" value=\"'._LOGIN.'\" />\n"; }'
.'elseif (file_exists($imgpath."login.png")) {'
.'   $btn = "<input type=\"image\" src=\"".$imgpath."login.png\" value=\"'._LOGIN.'\" />\n"; }'
.'echo $btn;'
.'echo "</form>\n"; }';
/*
$command['[search]'] = 'echo "<form action=\"modules.php\" method=\"post\">\n'
.'  <input type=\"hidden\" name=\"name\" value=\"Search\" />\n'
.'  <input type=\"hidden\" name=\"file\" value=\"index\" />\n'
.'  <input type=\"hidden\" name=\"op\" value=\"modload\" />\n'
.'  <input type=\"hidden\" name=\"action\" value=\"search\" />\n'
.'  <input type=\"hidden\" name=\"active_comments\" value=\"1\" />\n'
.'  <input type=\"hidden\" name=\"active_downloads\" value=\"1\" />\n'
.'  <input type=\"hidden\" name=\"active_faqs\" value=\"1\" />\n'
.'  <input type=\"hidden\" name=\"active_reviews\" value=\"1\" />\n'
.'  <input type=\"hidden\" name=\"active_sections\" value=\"1\" />\n'
.'  <input type=\"hidden\" name=\"active_stories\" value=\"1\" />\n'
.'  <input type=\"hidden\" name=\"active_users\" value=\"1\" />\n'
.'  <input type=\"hidden\" name=\"active_weblinks\" value=\"1\" />\n'
.'  <input type=\"hidden\" name=\"overview\" value=\"1\" />\n'
.'  <input type=\"hidden\" name=\"bool\" value=\"AND\" />\n'
.'  <input type=\"hidden\" name=\"stories_cat\" value=\"\" />\n'
.'  <input type=\"hidden\" name=\"stories_topics\" value=\"\" />\n'
.'  <input type=\"text\" name=\"q\" value=\"\" size=\"12\" />\n";'
.'$btn = "<input class=\"pn-button\" type=\"submit\" value=\"'._SEARCH.'\" />\n";'  //New 3
.'if (file_exists($imgpath."search.gif")) {'
.'   $btn = "<input type=\"image\" src=\"".$imgpath."search.gif\" value=\"Search\" />\n"; }'
.'elseif (file_exists($imgpath."search.jpg")) {'
.'   $btn = "<input type=\"image\" src=\"".$imgpath."search.jpg\" value=\"Search\" />\n"; }'
.'elseif (file_exists($imgpath."search.png")) {'
.'   $btn = "<input type=\"image\" src=\"".$imgpath."search.png\" value=\"Search\" />\n"; }'
.'echo $btn;'
.'echo "</form>\n";';
*/
//Block commands
$command['[block-title]'] = 'echo $title;';
$command['[block-content]'] = 'echo $content;';
$command['[left-blocks]'] = 'if (($index == 1 || $block_display["left"]) && $block_display["left"] != false) { blocks("left"); }';
//$command['[center-blocks]'] = 'if ($index == 1 || $block_display["center"]) { blocks("center"); }';
$command['[right-blocks]'] = 'if (($index == 1 || $block_display["right"]) && $block_display["right"] != false) { blocks("right"); }';

//Article commands
$command['[topic]'] = 'echo $topictext;';
$command['[title]'] = 'echo $title;';
$command['[posted-by]'] = 'if($informant) { echo _POSTEDBY." $informant";'
.'} else { echo _POSTEDBY." $anonymous"; }';
$command['[posted-date-time]'] = 'echo _ON." $datetime $timezone";';
$command['[topic-image]'] = 'if(file_exists($imgpath."topics/$topicimage")) { $topicpath = $themepath; }'
.'echo "<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"".$topicpath."images/topics/$topicimage\" border=\"0\" alt=\"$topictext\" /></a>";';
$command['[article-text]'] = 'echo $bodytext;';
$command['[article-notes]'] = 'if($notes) { echo _NOTE." ".$notes; }';
$command['[article-more]'] = 'echo $morelink;';
$command['[article-edit-del]'] = 'if($admin) { echo "[ <a href=admin.php?op=EditStory&sid=$sid>Edit</a> | <a href=admin.php?op=RemoveStory&sid=$sid>Delete</a> ]"; }';
$command['[article-reads]'] = 'echo $counter." "._READS;';

//Colors used by modules (these are defined in theme.cfg)
$command['[color1]'] = 'echo $bgcolor1;';
$command['[color2]'] = 'echo $bgcolor2;';
$command['[color3]'] = 'echo $bgcolor3;';
$command['[color4]'] = 'echo $bgcolor4;';
$command['[color5]'] = 'echo $textcolor1;';
$command['[color6]'] = 'echo $textcolor2;';

?>
