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{ -