From fe8cafb6ea62bfb2f0fe357dad959033d94322b1 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sat, 31 Mar 2012 21:01:55 +1100 Subject: [PATCH] small stylesheet change --- mod.php | 2 ++ stylesheets/style.css | 16 +++++++++------- templates/index.html | 17 +++++++++++++---- templates/page.html | 15 ++++++++++++--- templates/thread.html | 17 +++++++++++++---- 5 files changed, 49 insertions(+), 18 deletions(-) diff --git a/mod.php b/mod.php index ff5840c4..b0e6cb08 100644 --- a/mod.php +++ b/mod.php @@ -2088,6 +2088,8 @@ $value = '' . utf8tohtml(substr($value, 0, 110) . (mb_strlen($value) > 110 ? '…' : '')) . ''; } elseif(gettype($value) == 'integer') { $value = '' . $value . ''; + } elseif(is_object($value) && get_class($value) == 'Closure') { + $value = '[callback]'; } $data .= diff --git a/stylesheets/style.css b/stylesheets/style.css index cc444734..d77f05b5 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -38,22 +38,24 @@ p.intro label { h2 { color: #AF0A0F; font-size: 11pt; - margin: 0px; - padding: 0px; + margin: 0; + padding: 0; } -h1 { +header { + margin: 1em 0; +} +header h1 { font-family: tahoma; letter-spacing: -2px; font-size: 20pt; - margin-bottom: 0; + margin: 0; } -div.title, h1 { +header div.subtitle, h1 { color: #AF0A0F; text-align: center; } -div.title { +header div.subtitle { font-size: 8pt; - margin-bottom: 2em; } form { margin-bottom: 4em; diff --git a/templates/index.html b/templates/index.html index 1e277256..f89199aa 100644 --- a/templates/index.html +++ b/templates/index.html @@ -34,8 +34,15 @@ {{ boardlist.top }} {% if pm %}
You have an unread PM{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.

{% endif %} {% if config.url_banner %}{% endif %} -

{{ board.url }} - {{ board.name }}

-
{% if board.title %}{{ board.title }}{% endif %}

{% if mod %}{% trans %}Return to dashboard{% endtrans %}{% endif %}

+
+

{{ board.url }} - {{ board.name }}

+
+ {% if board.title %} + {{ board.title }} + {% endif %} + {% if mod %}

{% trans %}Return to dashboard{% endtrans %}

{% endif %} +
+
{% include 'post_form.html' %} @@ -51,8 +58,10 @@ [{{ page.num }}]{% if loop.last %} {% endif %} {% endfor %} {{ btn.next }} {{ boardlist.bottom }} -

Powered by Tinyboard {{ config.version }} | Tinyboard Copyright © 2010-2012 Tinyboard Development Group

- {% for footer in config.footer %}

{{ footer }}

{% endfor %} + diff --git a/templates/page.html b/templates/page.html index e2ad0acb..39d73bbd 100644 --- a/templates/page.html +++ b/templates/page.html @@ -11,10 +11,19 @@ {% if pm %}
You have an unread PM{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.

{% endif %} -

{{ title }}

-
{% if subtitle %}{{subtitle}}{% endif %}

{% if mod %}{% trans %}Return to dashboard{% endtrans %}{% endif %}

+
+

{{ title }}

+
+ {% if subtitle %} + {{ subtitle }} + {% endif %} + {% if mod %}

{% trans %}Return to dashboard{% endtrans %}

{% endif %} +
+
{{ body }}
-

Powered by Tinyboard {{ config.version }} | Tinyboard Copyright © 2010-2012 Tinyboard Development Group

+ diff --git a/templates/thread.html b/templates/thread.html index dae51dd7..1cb9428d 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -35,8 +35,15 @@ {{ boardlist.top }} {% if pm %}
You have an unread PM{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.

{% endif %} {% if config.url_banner %}{% endif %} -

{{ board.url }} - {{ board.name }}

-
{% if board.title %}{{ board.title }}{% endif %}

{% if mod %}{% trans %}Return to dashboard{% endtrans %}{% endif %}

+
+

{{ board.url }} - {{ board.name }}

+
+ {% if board.title %} + {{ board.title }} + {% endif %} + {% if mod %}

{% trans %}Return to dashboard{% endtrans %}

{% endif %} +
+
@@ -53,8 +60,10 @@ [{% trans %}Return{% endtrans %}] {{ boardlist.bottom }} -

Powered by Tinyboard {{ config.version }} | Tinyboard Copyright © 2010-2012 Tinyboard Development Group

- {% for footer in config.footer %}

{{ footer }}

{% endfor %} + >