From d4a1ae35950f00f678b3eff6b35a0b835de90134 Mon Sep 17 00:00:00 2001 From: ctrlcctrlv Date: Thu, 8 Aug 2013 21:57:52 +0000 Subject: [PATCH] Advertisements --- inc/config.php | 9 +++++++++ templates/index.html | 5 +++++ templates/thread.html | 5 +++++ 3 files changed, 19 insertions(+) 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 %}
{{ config.global_message }}
{% endif %}
@@ -54,6 +56,9 @@ [{{ page.num }}]{% if loop.last %} {% endif %} {% endfor %} {{ btn.next }} {{ boardlist.bottom }} + + {{ config.ad.bottom }} +