diff --git a/inc/config.php b/inc/config.php index 9aa83e8f..34a72ce4 100644 --- a/inc/config.php +++ b/inc/config.php @@ -1921,3 +1921,7 @@ //Empty board alias $config['boards_alias'] = array(); + + //Logo location for themes + $config['logo'] = 'static/logo.png'; + diff --git a/inc/instance-config.php b/inc/instance-config.php index 5337197a..a5b18a43 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -109,6 +109,9 @@ $config['secure_trip_salt'] = 'ODQ2NDM0ODlmMmRhNzk2M2EyNjJlOW'; //Banners $config['url_banner'] = '/banners.php'; +//Logo location for themes +$config['logo'] = 'static/leftypol_logo.png'; + //Date format $config['post_date'] = '%F (%a) %T'; 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..b9ffecca 100644 --- a/templates/themes/categories/news.html +++ b/templates/themes/categories/news.html @@ -1,13 +1,30 @@ {% filter remove_whitespace %} -
+
+ {{ boardlist.top }}

{{ settings.title }}

+
{{ settings.subtitle }}
+

{{ description }}

- +
+
{% if not news %}

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

@@ -31,7 +48,7 @@ {% trans "Post Statistics" %}
- +
@@ -91,3 +108,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" %}