mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2025-04-24 04:10:32 -04:00
parent
c3fc84e0bc
commit
6ab36fff62
10
template.php
10
template.php
@ -26,7 +26,7 @@ class Template{
|
||||
if ( 'admin' == $str_url ) {
|
||||
$strSubsMenu = '';
|
||||
} else {
|
||||
if (SUBSCRIBE_EMAIL || SUBSCRIBE_TELEGRAM ) {
|
||||
if ($SUBSCRIBE_EMAIL || $SUBSCRIBE_TELEGRAM ) {
|
||||
// Subscriber menu is to be shown...
|
||||
$strSubsMenu = '<ul class="nav navbar-nav mr-auto">';
|
||||
// If subscriber is not logged on, display subscriber menus
|
||||
@ -35,11 +35,11 @@ class Template{
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" role="button" href="#"><span class="glyphicon glyphicon-th"></span> '. _('Subscribe').'</a>
|
||||
<ul class="dropdown-menu ">';
|
||||
|
||||
if ( SUBSCRIBE_EMAIL ) {
|
||||
if ( $SUBSCRIBE_EMAIL ) {
|
||||
$strSubsMenu .= '<li><a href="?do=email_subscription&new=1"><span class="glyphicon glyphicon-envelope"></span> '._('Subscribe via email').'</a></li>';
|
||||
}
|
||||
if ( SUBSCRIBE_TELEGRAM ) {
|
||||
$strSubsMenu .= '<li><a href="#"><script async src="https://telegram.org/js/telegram-widget.js?4" data-telegram-login="'.TG_BOT_USERNAME.'" data-size="small" data-userpic="false" data-auth-url="'.WEB_URL.'/telegram_check.php" data-request-access="write"></script></a></li>';
|
||||
if ( $SUBSCRIBE_TELEGRAM ) {
|
||||
$strSubsMenu .= '<li><a href="#"><script async src="https://telegram.org/js/telegram-widget.js?4" data-telegram-login="'.$TG_BOT_USERNAME.'" data-size="small" data-userpic="false" data-auth-url="'.WEB_URL.'/telegram_check.php" data-request-access="write"></script></a></li>';
|
||||
}
|
||||
$strSubsMenu .= '</ul>';
|
||||
}
|
||||
@ -238,7 +238,7 @@ class Template{
|
||||
<?php }?>
|
||||
<script src="<?php echo WEB_URL;?>/js/vendor/bootstrap.min.js"></script>
|
||||
<script src="<?php echo WEB_URL;?>/js/main.js"></script>
|
||||
<?php if ( GOOGLE_RECAPTCHA ) { ?><script src='https://www.google.com/recaptcha/api.js'></script><?php }?>
|
||||
<?php if ( $GOOGLE_RECAPTCHA ) { ?><script src='https://www.google.com/recaptcha/api.js'></script><?php }?>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
|
Loading…
Reference in New Issue
Block a user