");
require_once THEME."functions.php";
require_once INCLUDES."theme_functions_include.php";
function render_page($license = false) {
add_handler("theme_output");
global $settings, $main_style, $locale, $mysql_queries_time;
echo "
\n";
//Header
echo "
\n".showbanners()."
\n";
echo "\n";
// Content
echo "
\n";
if (LEFT) { echo "
".LEFT."
\n"; }
if (RIGHT) { echo "
".RIGHT."
\n"; }
echo "
";
echo "
".U_CENTER."
\n";
echo "
".CONTENT."
\n";
echo "
".L_CENTER."
\n";
echo "
\n";
echo "
\n";
echo "
\n";
//Footer
echo "\n";
echo "\n";
echo "
\n";
echo "
\n";
if (!$license) { echo showcopyright(); }
echo "
Theme designed by
Falcon\n";
echo "
".stripslashes($settings['footer']);
?>
\n";
echo "
\n";
echo "
\n";
}
function render_comments($c_data, $c_info){
global $locale;
if (!empty($c_data)){
echo "\n";
} else {
echo "\n";
}
}
function render_news($subject, $news, $info) {
global $locale, $settings, $aidlink;
set_image("edit", THEME."images/icons/news_edit.png");
echo "
\n";
echo "
\n";
echo "
".$subject."
\n";
if (iADMIN && checkrights("N")) {
echo "
\n";
echo "
\n";
echo "
\n"; }
echo "
\n";
echo "
\n";
echo "
\n";
echo "
\n";
echo "- ".$locale['global_075']."
\n";
echo "- ".showdate("%d %b %Y", $info['news_date'])."
\n";
echo "- ".profile_link($info['user_id'], $info['user_name'], $info['user_status'])."
\n";
if ($info['cat_id']) { echo "- ".$info['cat_name']."
\n";
} else { echo "- ".$locale['global_080']."
\n"; }
if ($info['news_ext'] == "y" || ($info['news_allow_comments'] && $settings['comments_enabled'] == "1")) {
echo "- ".$info['news_reads'].$locale['global_074']."
\n"; }
if ($info['news_allow_comments'] && $settings['comments_enabled'] == "1") {
echo "\n"; }
echo "
\n";
echo "
\n";
echo "
\n";
if ($info['news_sticky'] == "1") {
echo "
";
}
echo $info['cat_image'].$news."
\n";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") {
echo "
\n";
}
echo "
\n";
echo "
\n";
}
function render_article($subject, $article, $info) {
global $locale, $settings, $aidlink;
set_image("edit", THEME."images/icons/article_edit.png");
echo "
\n";
echo "
\n";
echo "
".$subject."
\n";
if (iADMIN && checkrights("A")) {
echo "
\n";
echo "
\n";
echo "
\n"; }
echo "
\n";
echo "
\n";
echo "
\n";
echo "
\n";
echo "- ".$locale['global_075']."
\n";
echo "- ".showdate("%d %b %Y", $info['article_date'])."
\n";
echo "- ".profile_link($info['user_id'], $info['user_name'], $info['user_status'])."
\n";
if ($info['cat_id']) {
echo "- ".$info['cat_name']."
\n";
} else { echo "- ".$locale['global_080']."
\n"; }
echo "- ".$info['article_reads'].$locale['global_074']."
\n";
if ($info['article_allow_comments'] && $settings['comments_enabled'] == "1") {
echo "\n"; }
echo "
\n";
echo "
\n";
echo "
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
\n";
echo "
\n";
}
function opentable($title) {
echo "
\n";
echo "
".$title."
\n";
echo "
\n";
}
function closetable() {
echo "
\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "
\n";
echo "
\n";
echo "
".$title."
\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "
".panelbutton($state, $boxname)."
\n";
}
echo "
\n";
echo "
\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "
\n"; }
echo "
\n";
}
?>