From bebb48af296cfc2f168d2ea8cd013ec9dfa893a2 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Fri, 28 Apr 2017 01:16:56 +0900 Subject: [PATCH] Add CSS theme selection dropdown and theme changing support to other pages provided by extensions/ themes. Radio theme is always cyberia themed however. --- templates/themes/basic/index.html | 14 +++++++++----- templates/themes/catalog/catalog.html | 9 +-------- templates/themes/donate/donate.html | 14 +++++++++----- templates/themes/faq/index.html | 13 +++++++++---- templates/themes/irc/irc.html | 12 ++++++++---- templates/themes/rules/rules.html | 23 +++++++++-------------- 6 files changed, 45 insertions(+), 40 deletions(-) diff --git a/templates/themes/basic/index.html b/templates/themes/basic/index.html index df6443d5..446b8c9d 100644 --- a/templates/themes/basic/index.html +++ b/templates/themes/basic/index.html @@ -4,13 +4,13 @@ - {{ settings.title }} {% if config.meta_keywords %}{% endif %} - {% if config.url_favicon %}{% endif %} - - - {% if config.font_awesome %}{% endif %} + + {{ settings.title }} + {% include 'header.html' %}
@@ -48,6 +48,10 @@
Tinyboard Copyright © 2010-2014 Tinyboard Development Group
vichan Copyright © 2012-2016 vichan-devel

+
+ {% endfilter %} diff --git a/templates/themes/catalog/catalog.html b/templates/themes/catalog/catalog.html index 0bf3e95e..4b39f776 100644 --- a/templates/themes/catalog/catalog.html +++ b/templates/themes/catalog/catalog.html @@ -90,15 +90,8 @@ vichan {{ config.version }} -
Tinyboard Copyright © 2010-2014 Tinyboard Development Group
vichan Copyright © 2012-2015 vichan-devel

-
lainchan Copyright © 2014-2017 lainchan Administration

- +
{{ settings.title }} - - - + {% include 'header.html' %} - {% if config.font_awesome %}{% endif %}
{{ boardlist.top }}
@@ -23,7 +23,7 @@

Thanks for donating

-

The server costs {{ settings.monthlyamount }} per month. If you buy stickers we get about 45-55% of whatever you spend. Historical donation records to the former owner are ForeverN2Dust is the top donator, giving about $3000. FOOFDOOF is #2 with $1000 and lots of cheap Chinese shit. Please specify what you'd like your money to go towards. If you don't want to buy stickers, but want to donate something else please either ask in /q/ or contact the Lainchan administration on IRC at #lainchan on Freenode. +

The server costs {{ settings.monthlyamount }} per month. If you buy stickers we get about 45-55% of whatever you spend. Historical donation records to the former owner are ForeverN2Dust is the top donator, giving about $3000. FOOFDOOF is #2 with $1000 and lots of cheap Chinese shit. Please specify what you'd like your money to go towards. If you don't want to buy stickers, but want to donate something else please either ask in /q/ or contact the Lainchan administration on IRC at #lainchan on Laincan IRC at irc.lainchan.org or Freenode.

Buy stickers here

@@ -51,6 +51,10 @@
+
+ diff --git a/templates/themes/faq/index.html b/templates/themes/faq/index.html index d9551d58..49c4ab77 100644 --- a/templates/themes/faq/index.html +++ b/templates/themes/faq/index.html @@ -7,10 +7,11 @@ {{ settings.title }} {% if config.meta_keywords %}{% endif %} - {% if config.url_favicon %}{% endif %} - - - {% if config.font_awesome %}{% endif %} + + {{ settings.title }} + {% include 'header.html' %}
@@ -122,6 +123,10 @@
Tinyboard Copyright © 2010-2014 Tinyboard Development Group
vichan Copyright © 2012-2016 vichan-devel

+
+ {% endfilter %} diff --git a/templates/themes/irc/irc.html b/templates/themes/irc/irc.html index 5fe1106a..36e62dbc 100644 --- a/templates/themes/irc/irc.html +++ b/templates/themes/irc/irc.html @@ -4,12 +4,12 @@ + {{ settings.title }} - - - + {% include 'header.html' %} -
@@ -26,6 +26,10 @@

Web Client - Point your own clients to #{{ settings.channel }} on {{ settings.server }}:+{{ settings.port }} .

+
+ {% endfilter %} diff --git a/templates/themes/rules/rules.html b/templates/themes/rules/rules.html index 737fa1e3..5b60d939 100755 --- a/templates/themes/rules/rules.html +++ b/templates/themes/rules/rules.html @@ -4,13 +4,13 @@ + {{ settings.title }} - - - - + {% include 'header.html' %} - +
{{ boardlist.top }}
@@ -25,15 +25,10 @@ {% include 'rules.html' %} - +
+ {% endfilter %} - - - - - - - -