summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/config.php9
-rw-r--r--templates/index.html5
-rw-r--r--templates/thread.html5
3 files changed, 19 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php
index 1b45da14..e889d682 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -728,6 +728,15 @@
// Automatically remove unnecessary whitespace when compiling HTML files from templates.
$config['minify_html'] = true;
+ /*
+ * Advertisement HTML to appear at the top and bottom of board pages.
+ */
+
+ // $config['ad'] = array(
+ // 'top' => '',
+ // 'bottom' => '',
+ // );
+
/*
* ====================
* Javascript
diff --git a/templates/index.html b/templates/index.html
index f8c1c594..39576e13 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -42,6 +42,8 @@
{% include 'boardlist.html' %}
{% endif %}
+ {{ config.ad.top }}
+
{% if config.global_message %}<hr /><div class="blotter">{{ config.global_message }}</div>{% endif %}
<hr />
<form name="postcontrols" action="{{ config.post_url }}" method="post">
@@ -54,6 +56,9 @@
[<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 }}
+
+ {{ config.ad.bottom }}
+
<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 &copy; 2010-2013 Tinyboard Development Group</p>
{% for footer in config.footer %}<p class="unimportant" style="text-align:center;">{{ footer }}</p>{% endfor %}
diff --git a/templates/thread.html b/templates/thread.html
index 9882230f..76d50f94 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -34,6 +34,8 @@
{% include 'post_form.html' %}
+ {{ config.ad.top }}
+
{% if config.global_message %}<hr /><div class="blotter">{{ config.global_message }}</div>{% endif %}
<hr />
<form name="postcontrols" action="{{ config.post_url }}" method="post">
@@ -45,6 +47,9 @@
<a href="{{ return }}">[{% trans %}Return{% endtrans %}]</a>
{{ boardlist.bottom }}
+
+ {{ config.ad.bottom }}
+
<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 &copy; 2010-2013 Tinyboard Development Group</p>
{% for footer in config.footer %}<p class="unimportant" style="text-align:center;">{{ footer }}</p>{% endfor %}