[FIX] mpos theme notification fix
This commit is contained in:
parent
e6088fed2e
commit
e3317f320c
@ -182,6 +182,10 @@ if ($setting->getValue('maintenance'))
|
||||
if ($motd = $setting->getValue('system_motd'))
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => $motd, 'DISMISS' => 'yes', 'ID' => 'motd', 'TYPE' => 'alert alert-info');
|
||||
|
||||
// check for deprecated theme
|
||||
if ($setting->getValue('website_theme') == "mpos")
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'You are using an old Theme that will not be maintained in the future.', 'TYPE' => 'alert alert-warning');
|
||||
|
||||
// So we can display additional info
|
||||
$smarty->assign('DEBUG', $config['DEBUG']);
|
||||
|
||||
|
||||
BIN
public/site_assets/bootstrap/images/bubble.jpg
Normal file
BIN
public/site_assets/bootstrap/images/bubble.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
BIN
public/site_assets/bootstrap/images/bullet.gif
Normal file
BIN
public/site_assets/bootstrap/images/bullet.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 308 B |
BIN
public/site_assets/bootstrap/images/loading.gif
Normal file
BIN
public/site_assets/bootstrap/images/loading.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.0 KiB |
@ -796,7 +796,7 @@ line-height: 150%;
|
||||
|
||||
/* Alerts */
|
||||
|
||||
#main h4.info {
|
||||
#main h4.alert-info {
|
||||
display: block;
|
||||
width: 95%;
|
||||
margin: 20px 30px 0 30px;
|
||||
@ -812,7 +812,7 @@ padding: 10px 0;
|
||||
text-indent: 40px;
|
||||
font-size: 14px;}
|
||||
|
||||
#main h4.warning {
|
||||
#main h4.alert-warning {
|
||||
display: block;
|
||||
width: 95%;
|
||||
margin: 20px 30px 0 30px;
|
||||
@ -828,7 +828,7 @@ padding: 10px 0;
|
||||
text-indent: 40px;
|
||||
font-size: 14px;}
|
||||
|
||||
#main h4.errormsg {
|
||||
#main h4.alert-danger {
|
||||
display: block;
|
||||
width: 95%;
|
||||
margin: 20px 30px 0 30px;
|
||||
@ -844,7 +844,7 @@ padding: 10px 0;
|
||||
text-indent: 40px;
|
||||
font-size: 14px;}
|
||||
|
||||
#main h4.success {
|
||||
#main h4.alert-success {
|
||||
display: block;
|
||||
width: 95%;
|
||||
margin: 20px 30px 0 30px;
|
||||
|
||||
39
public/templates/bootstrap/home/shoutbox.tpl
Normal file
39
public/templates/bootstrap/home/shoutbox.tpl
Normal file
@ -0,0 +1,39 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-4">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading"><i class="fa fa-comments-o fa-fw"></i> Shoutbox
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<form method="post" id="form" role="form">
|
||||
<input type="hidden" id="nick" value="{$GLOBAL.userdata.username|escape}">
|
||||
<div class="form-group">
|
||||
<label>Message</label>
|
||||
<input class="form-control" id="message" type="text" MAXLENGTH="255">
|
||||
</div>
|
||||
<input class="btn btn-success" id="send" type="submit" value="Shout it!">
|
||||
</div>
|
||||
</form>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading"><i class="fa fa-comments-o fa-fw"></i> Latest Messages
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="content">
|
||||
<div id="loading"><img src="{$PATH}/images/loading.gif" alt="Loading..."></div>
|
||||
<ul>
|
||||
<!--
|
||||
{section name=shoutbox loop=$SHOUTBOX}
|
||||
{$SHOUTBOX[shoutbox].user}
|
||||
{/section}
|
||||
-->
|
||||
<ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="{$PATH}/js/shoutbox.js"></script>
|
||||
</div>
|
||||
</div>
|
||||
7
sql/018_shoutbox_update.sql
Normal file
7
sql/018_shoutbox_update.sql
Normal file
@ -0,0 +1,7 @@
|
||||
CREATE TABLE IF NOT EXISTS `shoutbox` (
|
||||
`id` int(5) NOT NULL AUTO_INCREMENT,
|
||||
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`user` varchar(25) NOT NULL DEFAULT 'anonymous',
|
||||
`message` varchar(255) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
|
||||
Loading…
Reference in New Issue
Block a user