the categories theme was using the frameset theme's templates...
This commit is contained in:
parent
d446ba94b9
commit
bbe8660244
@ -23,18 +23,31 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
{% for category, boards in categories %}
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Boards</legend>
|
<legend>
|
||||||
<ul>
|
{{ category }}
|
||||||
|
</legend>
|
||||||
{% for board in boards %}
|
{% for board in boards %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ config.board_path|sprintf(board.uri) }}">
|
<a href="{{ board.uri }}">{{ board.title }}</a>
|
||||||
{{ board.title }}
|
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{% for category, links in config.custom_categories %}
|
||||||
|
<fieldset>
|
||||||
|
<legend>
|
||||||
|
{{ category }}
|
||||||
|
</legend>
|
||||||
|
{% for title, uri in links %}
|
||||||
|
<li>
|
||||||
|
<a href="{{ uri }}">{{ title }}</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</fieldset>
|
||||||
|
{% endfor %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
{% endfilter %}
|
{% endfilter %}
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
public static function homepage($settings) {
|
public static function homepage($settings) {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
return Element('themes/frameset/frames.html', Array('config' => $config, 'settings' => $settings));
|
return Element('themes/categories/frames.html', Array('config' => $config, 'settings' => $settings));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build news page
|
// Build news page
|
||||||
@ -39,7 +39,7 @@
|
|||||||
$query = query("SELECT * FROM `news` ORDER BY `time` DESC") or error(db_error());
|
$query = query("SELECT * FROM `news` ORDER BY `time` DESC") or error(db_error());
|
||||||
$news = $query->fetchAll(PDO::FETCH_ASSOC);
|
$news = $query->fetchAll(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
return Element('themes/frameset/news.html', Array(
|
return Element('themes/categories/news.html', Array(
|
||||||
'settings' => $settings,
|
'settings' => $settings,
|
||||||
'config' => $config,
|
'config' => $config,
|
||||||
'news' => $news
|
'news' => $news
|
||||||
@ -61,7 +61,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Element('themes/frameset/sidebar.html', Array(
|
return Element('themes/categories/sidebar.html', Array(
|
||||||
'settings' => $settings,
|
'settings' => $settings,
|
||||||
'config' => $config,
|
'config' => $config,
|
||||||
'categories' => $categories
|
'categories' => $categories
|
||||||
|
@ -23,31 +23,18 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
{% for category, boards in categories %}
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>
|
<legend>Boards</legend>
|
||||||
{{ category }}
|
<ul>
|
||||||
</legend>
|
|
||||||
{% for board in boards %}
|
{% for board in boards %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ board.uri }}">{{ board.title }}</a>
|
<a href="{{ config.board_path|sprintf(board.uri) }}">
|
||||||
|
{{ board.title }}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% for category, links in config.custom_categories %}
|
|
||||||
<fieldset>
|
|
||||||
<legend>
|
|
||||||
{{ category }}
|
|
||||||
</legend>
|
|
||||||
{% for title, uri in links %}
|
|
||||||
<li>
|
|
||||||
<a href="{{ uri }}">{{ title }}</a>
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</fieldset>
|
|
||||||
{% endfor %}
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
{% endfilter %}
|
{% endfilter %}
|
||||||
|
Loading…
Reference in New Issue
Block a user