summaryrefslogtreecommitdiff
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/macros/common-page.ftl1
-rw-r--r--src/templates/pages/index.html.ftl1
-rw-r--r--src/templates/templates/banner.ftl6
3 files changed, 8 insertions, 0 deletions
diff --git a/src/templates/macros/common-page.ftl b/src/templates/macros/common-page.ftl
index 512128b..94cc5e3 100644
--- a/src/templates/macros/common-page.ftl
+++ b/src/templates/macros/common-page.ftl
@@ -12,6 +12,7 @@
</head>
<body>
<div id="notfooter">
+ <#include "/templates/banner.ftl">
<#include "/templates/header.ftl">
<#nested>
diff --git a/src/templates/pages/index.html.ftl b/src/templates/pages/index.html.ftl
index 94eaec3..1b59509 100644
--- a/src/templates/pages/index.html.ftl
+++ b/src/templates/pages/index.html.ftl
@@ -12,6 +12,7 @@
</head>
<body>
<div id="notfooter">
+ <#include "/templates/banner.ftl">
<header>
<h1>
<a href="http://myfoursquarechurch.com"><img src="${staticRoot}/images/foursquarelg.png"></a>
diff --git a/src/templates/templates/banner.ftl b/src/templates/templates/banner.ftl
new file mode 100644
index 0000000..3a2d23b
--- /dev/null
+++ b/src/templates/templates/banner.ftl
@@ -0,0 +1,6 @@
+<#assign bannerResult = get("bannerData", "riap://component/backend/banner")>
+<#if bannerResult.succeeded == true>
+ <#if (bannerData.html!"") != "">
+<div id="banner">${bannerData.html}</div>
+ </#if>
+</#if>