mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-18 07:16:11 +02:00
fixes #533, add a "messages" box (blue colorscheme)
This commit is contained in:
@@ -28,7 +28,7 @@ $('#menubar').lightAccordion({
|
||||
|
||||
/* in case we have several infos/errors/warnings display bullets */
|
||||
jQuery(document).ready(function() {
|
||||
var eiw = ["infos","erros","warnings"];
|
||||
var eiw = ["infos","erros","warnings", "messages"];
|
||||
|
||||
for (var i = 0; i < eiw.length; i++) {
|
||||
var boxType = eiw[i];
|
||||
@@ -143,6 +143,7 @@ jQuery(document).ready(function() {
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
<div class="eiw">
|
||||
{if isset($errors)}
|
||||
<div class="errors">
|
||||
<i class="eiw-icon icon-cancel"></i>
|
||||
@@ -176,5 +177,18 @@ jQuery(document).ready(function() {
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if isset($messages)}
|
||||
<div class="messages">
|
||||
<i class="eiw-icon icon-info-circled-1"></i>
|
||||
<ul>
|
||||
{foreach from=$messages item=message}
|
||||
<li>{$message}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div> {* .eiw *}
|
||||
|
||||
{$ADMIN_CONTENT}
|
||||
</div>
|
||||
|
||||
@@ -803,7 +803,7 @@ h2:lang(en) { text-transform:capitalize; }
|
||||
/**
|
||||
* Informations box in administration
|
||||
*/
|
||||
.infos, .errors, .warnings {
|
||||
.infos, .errors, .warnings, .messages {
|
||||
text-align: left;
|
||||
margin: 15px 10px 15px 15px;
|
||||
padding: 5px;
|
||||
@@ -811,7 +811,7 @@ h2:lang(en) { text-transform:capitalize; }
|
||||
min-height: 54px;
|
||||
}
|
||||
|
||||
.infos ul, .errors ul, .warnings ul {
|
||||
.infos ul, .errors ul, .warnings ul, .messages ul {
|
||||
margin-top:18px;
|
||||
}
|
||||
|
||||
@@ -839,7 +839,14 @@ h2:lang(en) { text-transform:capitalize; }
|
||||
border-left:4px solid #ee8800;
|
||||
}
|
||||
|
||||
.infos li, .errors li, .warnings li { list-style-type:none; }
|
||||
.messages {
|
||||
color: #00529b;
|
||||
background-color:#bde5f8;
|
||||
border-left:4px solid #00529b;
|
||||
}
|
||||
|
||||
|
||||
.infos li, .errors li, .warnings li, .messages li { list-style-type:none; }
|
||||
.infos .submit {margin-left:30px;}
|
||||
|
||||
.checkActions {text-align:left;padding:0;margin:0;}
|
||||
|
||||
@@ -65,6 +65,7 @@ $page = array(
|
||||
'infos' => array(),
|
||||
'errors' => array(),
|
||||
'warnings' => array(),
|
||||
'messages' => array(),
|
||||
);
|
||||
$user = array();
|
||||
$lang = array();
|
||||
|
||||
@@ -637,7 +637,7 @@ function flush_page_messages()
|
||||
global $template, $page;
|
||||
if ($template->get_template_vars('page_refresh') === null)
|
||||
{
|
||||
foreach (array('errors','infos','warnings') as $mode)
|
||||
foreach (array('errors','infos','warnings', 'messages') as $mode)
|
||||
{
|
||||
if (isset($_SESSION['page_'.$mode]))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user