Browse Source

the categories theme was using the frameset theme's templates...

pull/40/head
Michael Save 12 years ago
parent
commit
bbe8660244
  1. 29
      templates/themes/categories/sidebar.html
  2. 6
      templates/themes/categories/theme.php
  3. 29
      templates/themes/frameset/sidebar.html

29
templates/themes/categories/sidebar.html

@ -23,18 +23,31 @@
</ul> </ul>
</fieldset> </fieldset>
<fieldset> {% for category, boards in categories %}
<legend>Boards</legend> <fieldset>
<ul> <legend>
{{ 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 %}

6
templates/themes/categories/theme.php

@ -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

29
templates/themes/frameset/sidebar.html

@ -23,31 +23,18 @@
</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="{{ board.uri }}">{{ board.title }}</a> <a href="{{ config.board_path|sprintf(board.uri) }}">
</li> {{ board.title }}
{% endfor %} </a>
</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> </li>
{% endfor %} {% endfor %}
</fieldset> </ul>
{% endfor %} </fieldset>
</body> </body>
</html> </html>
{% endfilter %} {% endfilter %}

Loading…
Cancel
Save