';
+ }
+
+
+ echo Element('page.html', Array(
+ 'config'=>$config,
+ 'title'=>'News',
+ 'body'=>$body,
+ 'mod'=>true
+ )
+ );
} elseif(preg_match('/^\/inbox$/', $query, $match)) {
$query = prepare("SELECT `unread`,`pms`.`id`, `time`, `sender`, `to`, `message`, `username` FROM `pms` LEFT JOIN `mods` ON `mods`.`id` = `sender` WHERE `to` = :mod ORDER BY `unread` DESC, `time` DESC");
$query->bindValue(':mod', $mod['id'], PDO::PARAM_INT);
diff --git a/templates/homepage/frameset/theme.php b/templates/homepage/frameset/theme.php
index 3964a469..5942f3c2 100644
--- a/templates/homepage/frameset/theme.php
+++ b/templates/homepage/frameset/theme.php
@@ -12,12 +12,19 @@ Users never have to leave the homepage; they can do all their browsing from the
// Theme configuration
$theme['config'] = Array();
+
$theme['config'][] = Array(
- 'title' => 'Page title',
+ 'title' => 'Title',
'name' => 'title',
'type' => 'text'
);
+ $theme['config'][] = Array(
+ 'title' => 'Slogan',
+ 'name' => 'subtitle',
+ 'type' => 'text'
+ );
+
// Unique function name for building everything
$config['build_function'] = 'frameset_build';
@@ -32,6 +39,7 @@ Users never have to leave the homepage; they can do all their browsing from the
file_put_contents($config['dir']['home'] . $config['file_index'], Frameset::homepage($settings));
file_put_contents($config['dir']['home'] . 'sidebar.html', Frameset::sidebar($settings));
+ file_put_contents($config['dir']['home'] . 'news.html', Frameset::news($settings));
}
// Build homepage
@@ -52,11 +60,52 @@ Users never have to leave the homepage; they can do all their browsing from the
// Sidebar
. ''
// Main
- . ''
+ . ''
// Finish page
. '