commit
8ba8bbb8aa
|
@ -27,7 +27,7 @@
|
||||||
$b->build($settings, $board);
|
$b->build($settings, $board);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($settings['has_overboard']) {
|
if(isset($settings['has_overboard']) && $settings['has_overboard']) {
|
||||||
$board = $settings['overboard_location'];
|
$board = $settings['overboard_location'];
|
||||||
$action = generation_strategy("sb_catalog", array($board));
|
$action = generation_strategy("sb_catalog", array($board));
|
||||||
if ($action == 'delete') {
|
if ($action == 'delete') {
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
{% filter remove_whitespace %}
|
{% filter remove_whitespace %}
|
||||||
{{ boardlist.top }}
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
{{ boardlist.top }}
|
||||||
<header>
|
<header>
|
||||||
<h1>{{ settings.title }}</h1>
|
<h1>{{ settings.title }}</h1>
|
||||||
<div class="subtitle">{{ settings.subtitle }}</div>
|
<div class="subtitle">{{ settings.subtitle }}</div>
|
||||||
|
<link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}">
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="ban">
|
<div class="ban">
|
||||||
|
|
|
@ -28,13 +28,15 @@
|
||||||
// Build homepage
|
// Build homepage
|
||||||
public static function homepage($settings) {
|
public static function homepage($settings) {
|
||||||
global $config;
|
global $config;
|
||||||
|
$query = query("SELECT * FROM ``news`` ORDER BY `time` DESC") or error(db_error());
|
||||||
|
$news = $query->fetchAll(PDO::FETCH_ASSOC);
|
||||||
return Element(
|
return Element(
|
||||||
'themes/categories/frames.html',
|
'themes/categories/frames.html',
|
||||||
Array(
|
Array(
|
||||||
'config' => $config,
|
'config' => $config,
|
||||||
'settings' => $settings,
|
'settings' => $settings,
|
||||||
'categories' => Categories::getCategories($config),
|
'categories' => Categories::getCategories($config),
|
||||||
|
'news' => $news,
|
||||||
'boardlist' => createBoardlist(false)
|
'boardlist' => createBoardlist(false)
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue