From 39e53ab1f4b6ae635c17c647a990afa8e1ec66df Mon Sep 17 00:00:00 2001 From: Thomas Nilsen Date: Sun, 25 Nov 2018 18:50:31 +0100 Subject: [PATCH] Adds dropdown for subscription options to menu - Modifies menu to include email subscription in addition to Telegram subscription --- template.php | 88 +++++++++++++++++++++++++++++++++++----------------- 1 file changed, 60 insertions(+), 28 deletions(-) diff --git a/template.php b/template.php index 764f3c7..25b673c 100644 --- a/template.php +++ b/template.php @@ -1,6 +1,7 @@ -getTelegramUserData(); // TODO Is this needed any longer? + + // Create subscriber menu sections for later inclusion + // Check if we are on admin menu, if so do not display + $arr_url = explode("/", $_SERVER['PHP_SELF']); + $str_url = strtolower($arr_url[count($arr_url)-2]); + if ( 'admin' == $str_url ) { + $strSubsMenu = ''; + } else { + // Subscriber menu is to be shown... + $strSubsMenu = ''; + } + + + ?> @@ -57,36 +95,27 @@ class Template{ -
+
+ +
- + + +