changeset 106:324f3a415237

Add extra HTML + sponsors box to layout.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 21 Oct 2013 22:11:40 +0300
parents a85f258f6beb
children 6e076b3630a0
files createdb.php fap.css index.php
diffstat 3 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/createdb.php	Mon Oct 21 16:26:42 2013 +0300
+++ b/createdb.php	Mon Oct 21 22:11:40 2013 +0300
@@ -126,6 +126,7 @@
 
   "siteMenuHeader" => array(VT_TEXT, "<div>13.FAP:&gt; <span class=\"mblink\">&#9632;</span></div>", "Site menu header text"),
   "siteMenuFooter" => array(VT_TEXT, "", "Site menu footer text"),
+  "siteExtraHTML" => array(VT_TEXT, "<div id=\"sponsors\">Gentle Eye</div>", "Extra global HTML code (f.e. sponsors box)"),
 );
 
 $sqlTables = array(
--- a/fap.css	Mon Oct 21 16:26:42 2013 +0300
+++ b/fap.css	Mon Oct 21 22:11:40 2013 +0300
@@ -96,6 +96,27 @@
 	box-shadow: 8px 8px 16px #000;
 }
 
+
+#sponsors {
+	position: fixed;
+	top: auto;
+	bottom: 1em;
+	left: 0.5em;
+	right: 1em;
+	margin: 0px;
+	padding: 5pt;
+	width: 8em;
+
+	color: #0f0;
+	text-shadow: 0px 0px 3px #0f0;
+
+	font-family: Impact;
+	font-size: 15pt;
+
+	text-align: center;
+}
+
+
 #menu div {
 	text-align: center;
 	font-size: 20pt;
--- a/index.php	Mon Oct 21 16:26:42 2013 +0300
+++ b/index.php	Mon Oct 21 22:11:40 2013 +0300
@@ -67,6 +67,8 @@
 
 </div>
 
+<? echo stGetSetting("siteExtraHTML") ?>
+
 <?
 $pageName = isset($_GET["p"]) ? $_GET["p"] : "news";
 $pageBasename = basename($pageName);