diff --git a/templates/themes/categories/frames.html b/templates/themes/categories/frames.html index 7d02d584..400d3a3f 100644 --- a/templates/themes/categories/frames.html +++ b/templates/themes/categories/frames.html @@ -8,21 +8,38 @@ {{ settings.title }} + {% include 'themes/categories/' ~ settings.file_sidebar %} {% include 'themes/categories/' ~ settings.file_news %} + diff --git a/templates/themes/categories/news.html b/templates/themes/categories/news.html index a6683fd4..bb391374 100644 --- a/templates/themes/categories/news.html +++ b/templates/themes/categories/news.html @@ -1,13 +1,16 @@ {% filter remove_whitespace %} -
+
{{ boardlist.top }}

{{ settings.title }}

{{ settings.subtitle }}
+

{{ description }}

- + logo +
+
{% if not news %}

{% trans %}(No news to show.){% endtrans %}

@@ -31,7 +34,7 @@ {% trans "Post Statistics" %}
- +
@@ -91,3 +94,4 @@ {% endfilter %} + diff --git a/templates/themes/categories/theme.php b/templates/themes/categories/theme.php index 44cae18f..a732a0e2 100644 --- a/templates/themes/categories/theme.php +++ b/templates/themes/categories/theme.php @@ -34,6 +34,9 @@ // Build homepage public static function homepage($settings) { global $config; + $description = 'Leftypol is a fun and enjoyable space where users can post anonymously.
' . + 'We engage in both serious political discourse and less serious informal discussions ' . + 'on various topics related to leftist thought.'; $query = query("SELECT * FROM ``news`` ORDER BY `time` DESC") or error(db_error()); $news = $query->fetchAll(PDO::FETCH_ASSOC); $stats = Categories::getPostStatistics($settings); @@ -42,6 +45,7 @@ Array( 'config' => $config, 'settings' => $settings, + 'description' => $description, 'categories' => Categories::getCategories($config), 'news' => $news, 'stats' => $stats, @@ -160,3 +164,4 @@ }; ?> +
{% trans "Board" %}