Show maintenance mode / kb only above the navbar
This commit is contained in:
parent
b658af1098
commit
e8d0c9f901
@ -873,7 +873,6 @@ function hesk_show_notice($message,$title='',$append_colon=true) {
|
|||||||
<div class="alert alert-warning">
|
<div class="alert alert-warning">
|
||||||
<b><?php echo $title; ?></b> <?php echo $message; ?>
|
<b><?php echo $title; ?></b> <?php echo $message; ?>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
|
||||||
<?php
|
<?php
|
||||||
} // END hesk_show_notice()
|
} // END hesk_show_notice()
|
||||||
|
|
||||||
|
@ -37,7 +37,23 @@ if (!defined('IN_SCRIPT')) {die('Invalid attempt');}
|
|||||||
|
|
||||||
$num_mail = hesk_checkNewMail();
|
$num_mail = hesk_checkNewMail();
|
||||||
?>
|
?>
|
||||||
|
<?php
|
||||||
|
// Show a notice if we are in maintenance mode
|
||||||
|
if ( hesk_check_maintenance(false) )
|
||||||
|
{
|
||||||
|
echo '<div style="margin-bottom: -20px">';
|
||||||
|
hesk_show_notice($hesklang['mma2'], $hesklang['mma1'], false);
|
||||||
|
echo '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Show a notice if we are in "Knowledgebase only" mode
|
||||||
|
if ( hesk_check_kb_only(false) )
|
||||||
|
{
|
||||||
|
echo '<div style="margin-bottom: -20px">';
|
||||||
|
hesk_show_notice($hesklang['kbo2'], $hesklang['kbo1'], false);
|
||||||
|
echo '</div>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
<div class="enclosing">
|
<div class="enclosing">
|
||||||
<nav class="navbar navbar-default navbar-static-top" role="navigation">
|
<nav class="navbar navbar-default navbar-static-top" role="navigation">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
@ -101,21 +117,3 @@ $num_mail = hesk_checkNewMail();
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /.navbar-collapse -->
|
</div><!-- /.navbar-collapse -->
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<?php
|
|
||||||
// Show a notice if we are in maintenance mode
|
|
||||||
if ( hesk_check_maintenance(false) )
|
|
||||||
{
|
|
||||||
echo '<div style="padding: 20px 20px 0 20px; margin-bottom: -10px">';
|
|
||||||
hesk_show_notice($hesklang['mma2'], $hesklang['mma1'], false);
|
|
||||||
echo '</div>';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Show a notice if we are in "Knowledgebase only" mode
|
|
||||||
if ( hesk_check_kb_only(false) )
|
|
||||||
{
|
|
||||||
echo '<div style="padding: 20px 20px 0 20px; margin-bottom: -10px">';
|
|
||||||
hesk_show_notice($hesklang['kbo2'], $hesklang['kbo1'], false);
|
|
||||||
echo '</div>';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user