diff options
| -rw-r--r-- | mod.php | 2 | ||||
| -rw-r--r-- | stylesheets/style.css | 16 | ||||
| -rw-r--r-- | templates/index.html | 17 | ||||
| -rw-r--r-- | templates/page.html | 15 | ||||
| -rw-r--r-- | templates/thread.html | 17 |
5 files changed, 49 insertions, 18 deletions
@@ -2088,6 +2088,8 @@ $value = '<span style="color:maroon;">' . utf8tohtml(substr($value, 0, 110) . (mb_strlen($value) > 110 ? '…' : '')) . '</span>'; } elseif(gettype($value) == 'integer') { $value = '<span style="color:black;">' . $value . '</span>'; + } 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 %}<div class="top_notice">You have <a href="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr />{% endif %}
{% if config.url_banner %}<img class="banner" src="{{ config.url_banner }}" {% if config.banner_width or config.banner_height %}style="{% if config.banner_width %}width:{{ config.banner_width }}px{% endif %};{% if config.banner_width %}height:{{ config.banner_height }}px{% endif %}" {% endif %}alt="" />{% endif %}
- <h1>{{ board.url }} - {{ board.name }}</h1>
- <div class="title">{% if board.title %}{{ board.title }}{% endif %}<p>{% if mod %}<a href="?/">{% trans %}Return to dashboard{% endtrans %}</a>{% endif %}</p></div>
+ <header>
+ <h1>{{ board.url }} - {{ board.name }}</h1>
+ <div class="subtitle">
+ {% if board.title %}
+ {{ board.title }}
+ {% endif %}
+ {% if mod %}<p><a href="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %}
+ </div>
+ </header>
{% include 'post_form.html' %}
@@ -51,8 +58,10 @@ [<a {% if page.selected %}class="selected"{% endif %}{% if not page.selected %}href="{{ page.link }}"{% endif %}>{{ page.num }}</a>]{% if loop.last %} {% endif %}
{% endfor %} {{ btn.next }}</div>
{{ boardlist.bottom }}
- <p class="unimportant" style="margin-top:20px;text-align:center;">Powered by <a href="http://tinyboard.org/">Tinyboard</a> {{ config.version }} | <a href="http://tinyboard.org/">Tinyboard</a> Copyright © 2010-2012 Tinyboard Development Group</p>
- {% for footer in config.footer %}<p class="unimportant" style="text-align:center;">{{ footer }}</p>{% endfor %}
+ <footer>
+ <p class="unimportant" style="margin-top:20px;text-align:center;">Powered by <a href="http://tinyboard.org/">Tinyboard</a> {{ config.version }} | <a href="http://tinyboard.org/">Tinyboard</a> Copyright © 2010-2012 Tinyboard Development Group</p>
+ {% for footer in config.footer %}<p class="unimportant" style="text-align:center;">{{ footer }}</p>{% endfor %}
+ </footer>
<script type="text/javascript">{% raw %}
ready();
{% endraw %}</script>
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 @@ </head>
<body>
{% if pm %}<div class="top_notice">You have <a href="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr />{% endif %}
- <h1>{{ title }}</h1>
- <div class="title">{% if subtitle %}{{subtitle}}{% endif %}<p>{% if mod %}<a href="?/">{% trans %}Return to dashboard{% endtrans %}</a>{% endif %}</p></div>
+ <header>
+ <h1>{{ title }}</h1>
+ <div class="subtitle">
+ {% if subtitle %}
+ {{ subtitle }}
+ {% endif %}
+ {% if mod %}<p><a href="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %}
+ </div>
+ </header>
{{ body }}
<hr />
- <p class="unimportant" style="margin-top:20px;text-align:center;">Powered by <a href="http://tinyboard.org/">Tinyboard</a> {{ config.version }} | <a href="http://tinyboard.org/">Tinyboard</a> Copyright © 2010-2012 Tinyboard Development Group</p>
+ <footer>
+ <p class="unimportant" style="margin-top:20px;text-align:center;">Powered by <a href="http://tinyboard.org/">Tinyboard</a> {{ config.version }} | <a href="http://tinyboard.org/">Tinyboard</a> Copyright © 2010-2012 Tinyboard Development Group</p>
+ </footer>
</body>
</html>
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 %}<div class="top_notice">You have <a href="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr />{% endif %}
{% if config.url_banner %}<img class="banner" src="{{ config.url_banner }}" {% if config.banner_width or config.banner_height %}style="{% if config.banner_width %}width:{{ config.banner_width }}px{% endif %};{% if config.banner_width %}height:{{ config.banner_height }}px{% endif %}" {% endif %}alt="" />{% endif %}
- <h1>{{ board.url }} - {{ board.name }}</h1>
- <div class="title">{% if board.title %}{{ board.title }}{% endif %}<p>{% if mod %}<a href="?/">{% trans %}Return to dashboard{% endtrans %}</a>{% endif %}</p></div>
+ <header>
+ <h1>{{ board.url }} - {{ board.name }}</h1>
+ <div class="subtitle">
+ {% if board.title %}
+ {{ board.title }}
+ {% endif %}
+ {% if mod %}<p><a href="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %}
+ </div>
+ </header>
<div class="banner">{% trans %}Posting mode: Reply{% endtrans %} <a class="unimportant" href="{{ return }}">[{% trans %}Return{% endtrans %}]</a></div>
@@ -53,8 +60,10 @@ <a href="{{ return }}">[{% trans %}Return{% endtrans %}]</a>
{{ boardlist.bottom }}
- <p class="unimportant" style="margin-top:20px;text-align:center;">Powered by <a href="http://tinyboard.org/">Tinyboard</a> {{ config.version }} | <a href="http://tinyboard.org/">Tinyboard</a> Copyright © 2010-2012 Tinyboard Development Group</p>
- {% for footer in config.footer %}<p class="unimportant" style="text-align:center;">{{ footer }}</p>{% endfor %}
+ <footer>
+ <p class="unimportant" style="margin-top:20px;text-align:center;">Powered by <a href="http://tinyboard.org/">Tinyboard</a> {{ config.version }} | <a href="http://tinyboard.org/">Tinyboard</a> Copyright © 2010-2012 Tinyboard Development Group</p>
+ {% for footer in config.footer %}<p class="unimportant" style="text-align:center;">{{ footer }}</p>{% endfor %}
+ </footer>>
<script type="text/javascript">{% raw %}
ready();
{% endraw %}</script>
|
