commit
3201df263f
@ -159,6 +159,11 @@ class User
|
|||||||
|
|
||||||
public static function _info($id = 0)
|
public static function _info($id = 0)
|
||||||
{
|
{
|
||||||
|
global $config;
|
||||||
|
if ($config['maintenance_mode'] == true) {
|
||||||
|
displayMaintenanceMessage();
|
||||||
|
// r2(U . 'logout', 'd', '');
|
||||||
|
}
|
||||||
if (!$id) {
|
if (!$id) {
|
||||||
$id = User::getID();
|
$id = User::getID();
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* maintenance top-bar
|
* maintenance top-bar
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -98,12 +98,15 @@
|
|||||||
height: 40px;
|
height: 40px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: #ef0404;
|
background: #ec2106;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #ffff;
|
color: #FFFFFF;
|
||||||
font-weight: bold;
|
font-family: serif;
|
||||||
|
font-weight: bolder;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-top-bar p {
|
.notification-top-bar p {
|
||||||
@ -118,6 +121,24 @@
|
|||||||
color: #1ABC9C;
|
color: #1ABC9C;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
display: inline;
|
||||||
|
font-size: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.notification-top-bar {
|
||||||
|
font-size: 12px;
|
||||||
|
height: auto;
|
||||||
|
line-height: normal;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-top-bar p a {
|
||||||
|
padding: 5px 10px;
|
||||||
|
margin: 5px 0;
|
||||||
|
font-size: 10px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
{if isset($xheader)}
|
{if isset($xheader)}
|
||||||
@ -431,8 +452,9 @@
|
|||||||
|
|
||||||
{if $_c['maintenance_mode'] == 1}
|
{if $_c['maintenance_mode'] == 1}
|
||||||
<div class="notification-top-bar">
|
<div class="notification-top-bar">
|
||||||
<p>{Lang::T('The website is currently in maintenance mode, this means that some or all functionality may be unavailable to regular users during this time.')}<small> <a
|
<p>{Lang::T('The website is currently in maintenance mode, this means that some or all functionality may be
|
||||||
href="{$_url}settings/maintenance">{Lang::T('Turn Off Maintenance Mode')}</a></small></p>
|
unavailable to regular users during this time.')}<small> <a
|
||||||
|
href="{$_url}settings/maintenance">{Lang::T('Turn Off')}</a></small></p>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user