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:
parent
f67bbd4b62
commit
eb6855ca8b
3
404.php
3
404.php
@ -32,7 +32,10 @@ if (preg_match('!'.$config['board_regex'].'/'.$config['dir']['res'].'\d+\.html!u
|
|||||||
$return_link = '';
|
$return_link = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$ad = Element("ad_top.html", array());
|
||||||
|
|
||||||
$page = <<<EOT
|
$page = <<<EOT
|
||||||
|
<div style="text-align:center">$ad</div>
|
||||||
<div class="ban">
|
<div class="ban">
|
||||||
<p style="text-align:center"><img src="/static/404/{$errorimage}" style="width:100%"></p>
|
<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>
|
<p style="text-align:center"><a href="/index.html">[ Home ]</a>{$return_link}</p>
|
||||||
|
@ -37,7 +37,9 @@
|
|||||||
|
|
||||||
{% include 'attention_bar.html' %}
|
{% 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 %}
|
{% if not no_post_form %}
|
||||||
{% include 'post_form.html' %}
|
{% include 'post_form.html' %}
|
||||||
@ -74,7 +76,9 @@
|
|||||||
|
|
||||||
{{ boardlist.bottom }}
|
{{ boardlist.bottom }}
|
||||||
|
|
||||||
{{ config.ad.bottom }}
|
{% if board.uri not in config.banned_ad_boards %}
|
||||||
|
{% include 'ad_bottom.html' %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<p class="unimportant" style="margin-top:20px;text-align:center;">- <a href="http://tinyboard.org/">Tinyboard</a> +
|
<p class="unimportant" style="margin-top:20px;text-align:center;">- <a href="http://tinyboard.org/">Tinyboard</a> +
|
||||||
|
@ -15,7 +15,9 @@
|
|||||||
<h1>{{ settings.title }} (<a href="{{link}}">/{{ board }}/</a>)</h1>
|
<h1>{{ settings.title }} (<a href="{{link}}">/{{ board }}/</a>)</h1>
|
||||||
<div class="subtitle">{{ settings.subtitle }}</div>
|
<div class="subtitle">{{ settings.subtitle }}</div>
|
||||||
</header>
|
</header>
|
||||||
{{ config.ad.top }}
|
{% if board.uri not in config.banned_ad_boards %}
|
||||||
|
{% include 'ad_top.html' %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<span>{% trans 'Sort by' %}: </span>
|
<span>{% trans 'Sort by' %}: </span>
|
||||||
<select id="sort_by" style="display: inline-block">
|
<select id="sort_by" style="display: inline-block">
|
||||||
|
@ -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);
|
<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>
|
">[{% 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' %}
|
{% include 'post_form.html' %}
|
||||||
|
|
||||||
@ -66,7 +68,9 @@
|
|||||||
|
|
||||||
{{ boardlist.bottom }}
|
{{ boardlist.bottom }}
|
||||||
|
|
||||||
{{ config.ad.bottom }}
|
{% if board.uri not in config.banned_ad_boards %}
|
||||||
|
{% include 'ad_bottom.html' %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<p class="unimportant" style="margin-top:20px;text-align:center;">- <a href="http://tinyboard.org/">Tinyboard</a> +
|
<p class="unimportant" style="margin-top:20px;text-align:center;">- <a href="http://tinyboard.org/">Tinyboard</a> +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user