summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2011-06-13 21:46:32 +0200
committerJonas Smedegaard <dr@jones.dk>2021-03-24 10:08:41 +0100
commit3a8d05c5fb83714de71709fd13573dae8d33f5ab (patch)
treeaefbfb29f4ae8c1f2f8b038805b05b4f47781814
parent951915f67836cdba60d4cb1c046c0cd9719331ea (diff)
add BRANDING in pageheader above header, and add branding template
-rw-r--r--branding.tmpl12
-rw-r--r--page.tmpl7
2 files changed, 19 insertions, 0 deletions
diff --git a/branding.tmpl b/branding.tmpl
new file mode 100644
index 0000000..86b8550
--- /dev/null
+++ b/branding.tmpl
@@ -0,0 +1,12 @@
+<div class="branding-logo">
+<TMPL_IF NAME="LOGO">
+<a href="<TMPL_VAR BASEURL>"><img src="<TMPL_VAR BASEURL><TMPL_VAR NAME=LOGO>" alt="<TMPL_VAR NAME=TEXT>" /></a>
+<TMPL_ELSE>
+<a href="<TMPL_VAR BASEURL>"><TMPL_VAR NAME=TEXT></a>
+</TMPL_IF>
+</div>
+<TMPL_IF NAME="TAGLINE">
+<div class="branding-tagline">
+<a href="<TMPL_VAR BASEURL>"><TMPL_VAR NAME=TAGLINE></a>
+</div>
+</TMPL_IF>
diff --git a/page.tmpl b/page.tmpl
index 48189c9..46f78ab 100644
--- a/page.tmpl
+++ b/page.tmpl
@@ -43,6 +43,13 @@
<TMPL_IF HTML5><article class="page"><TMPL_ELSE><div class="page"></TMPL_IF>
<TMPL_IF HTML5><section class="pageheader"><TMPL_ELSE><div class="pageheader"></TMPL_IF>
+
+<TMPL_IF BRANDING>
+<div class="branding">
+<TMPL_VAR BRANDING>
+</div>
+</TMPL_IF>
+
<TMPL_IF HTML5><header class="header"><TMPL_ELSE><div class="header"></TMPL_IF>
<span>
<span class="parentlinks">