From 398681b039fcd06f0628f0f8167c33f26c754926 Mon Sep 17 00:00:00 2001 From: following Date: Tue, 5 Feb 2013 21:27:46 +0100 Subject: [PATCH] configurable welcome message --- htdocs/index.php | 6 ++++++ htdocs/templates2/ocstyle/start.tpl | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/htdocs/index.php b/htdocs/index.php index 157adb2d..fd326982 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -19,6 +19,12 @@ if (!$tpl->is_cached()) { + // welcome message + if (isset ($opt['page']['message'])) + $tpl->assign('message',$opt['page']['message']); + else + $tpl->assign('message',$translate->t('You can find everything you need to go Geocaching ...', '', '', 0)); + // news entries $tpl->assign('news_onstart', $opt['news']['onstart'] ); diff --git a/htdocs/templates2/ocstyle/start.tpl b/htdocs/templates2/ocstyle/start.tpl index 93ce0ab4..3d82f1fe 100644 --- a/htdocs/templates2/ocstyle/start.tpl +++ b/htdocs/templates2/ocstyle/start.tpl @@ -9,7 +9,7 @@ {t}What do i find on this website?{/t}
-

{t}You can find everything you need to go Geocaching ...{/t}

+

{$message}