1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 01:24:05 +01:00

New templates: ad_top and ad_bottom. Make blank pages if you're not using them

This commit is contained in:
8chan 2015-02-16 16:33:13 -08:00
parent f67bbd4b62
commit eb6855ca8b
4 changed files with 18 additions and 5 deletions

View File

@ -32,7 +32,10 @@ if (preg_match('!'.$config['board_regex'].'/'.$config['dir']['res'].'\d+\.html!u
$return_link = '';
}
$ad = Element("ad_top.html", array());
$page = <<<EOT
<div style="text-align:center">$ad</div>
<div class="ban">
<p style="text-align:center"><img src="/static/404/{$errorimage}" style="width:100%"></p>
<p style="text-align:center"><a href="/index.html">[ Home ]</a>{$return_link}</p>

View File

@ -37,7 +37,9 @@
{% include 'attention_bar.html' %}
{{ config.ad.top }}
{% if board.uri not in config.banned_ad_boards %}
{% include 'ad_top.html' %}
{% endif %}
{% if not no_post_form %}
{% include 'post_form.html' %}
@ -74,7 +76,9 @@
{{ boardlist.bottom }}
{{ config.ad.bottom }}
{% if board.uri not in config.banned_ad_boards %}
{% include 'ad_bottom.html' %}
{% endif %}
<footer>
<p class="unimportant" style="margin-top:20px;text-align:center;">- <a href="http://tinyboard.org/">Tinyboard</a> +

View File

@ -15,7 +15,9 @@
<h1>{{ settings.title }} (<a href="{{link}}">/{{ board }}/</a>)</h1>
<div class="subtitle">{{ settings.subtitle }}</div>
</header>
{{ config.ad.top }}
{% if board.uri not in config.banned_ad_boards %}
{% include 'ad_top.html' %}
{% endif %}
<span>{% trans 'Sort by' %}: </span>
<select id="sort_by" style="display: inline-block">

View File

@ -45,7 +45,9 @@
<div class="banner">{% trans %}Posting mode: Reply{% endtrans %} <a class="unimportant" href="{{ return }}">[{% trans %}Return{% endtrans %}]</a> <a class="unimportant" href="javascript:window.scrollTo(0,document.body.scrollHeight);
">[{% trans %}Go to bottom {% endtrans %}]</a></div>
{{ config.ad.top }}
{% if board.uri not in config.banned_ad_boards %}
{% include 'ad_top.html' %}
{% endif %}
{% include 'post_form.html' %}
@ -66,7 +68,9 @@
{{ boardlist.bottom }}
{{ config.ad.bottom }}
{% if board.uri not in config.banned_ad_boards %}
{% include 'ad_bottom.html' %}
{% endif %}
<footer>
<p class="unimportant" style="margin-top:20px;text-align:center;">- <a href="http://tinyboard.org/">Tinyboard</a> +