forked from ZwiiCMS-Team/ZwiiCMS
10.2.dev33 persistances des positions de blocs durant la durée de la session.
This commit is contained in:
parent
fd333a1090
commit
4ed4a4e0d9
@ -9,6 +9,7 @@
|
||||
- la connexion d'un utilisateur sur un autre poste ou navigateur déconnecte la session précédente.
|
||||
- sécurisation du login
|
||||
- journalisation de l'utilisation du site
|
||||
- Ecran de configuration et d'édition des pages, les blocs sont pliables et dépliables afin d'alléger l'occupation sur l'écran. Le statut des blocs (fermés ; ouverts) est persistante au cours de la session.
|
||||
- Modifications :
|
||||
- Thème, les sélecteurs de couleur affiche la valeur RGBa d'une couleur différente de celle de la sélection.
|
||||
- Thème de l'administration, amélioration du rendu.
|
||||
|
@ -39,7 +39,7 @@ class common {
|
||||
const ACCESS_TIMER = 1800;
|
||||
|
||||
// Numéro de version
|
||||
const ZWII_VERSION = '10.2.00.dev32';
|
||||
const ZWII_VERSION = '10.2.00.dev33';
|
||||
const ZWII_UPDATE_CHANNEL = "v10";
|
||||
|
||||
public static $actions = [];
|
||||
|
@ -22,7 +22,8 @@
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.zwiico-minus,#info .zwiico-plus {
|
||||
.zwiico-minus,
|
||||
#info .zwiico-plus {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,22 @@ $( document).ready(function() {
|
||||
$("#configSmtpAuthParam").slideUp();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Initialisation des blocs
|
||||
*/
|
||||
|
||||
var i = ["info", "setup", "social", "ceo", "network", "smtp", "login", "logs", "script", "system" ];
|
||||
$.each(i,function(e) {
|
||||
if (getCookie(i[e]) === "true") {
|
||||
$("#" + i[e]).find(".zwiico-plus").hide();
|
||||
$("#" + i[e]).find(".zwiico-minus").show();
|
||||
$("#" + i[e]).find(".blockContainer").show();
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
*
|
||||
* Blocs dépliants
|
||||
*/
|
||||
|
||||
@ -42,6 +57,11 @@ $( document).ready(function() {
|
||||
$(this).find(".zwiico-plus").toggle();
|
||||
$(this).find(".zwiico-minus").toggle();
|
||||
$(this).find(".blockContainer").slideToggle();
|
||||
/*
|
||||
* Sauvegarder la position des blocs
|
||||
* true = bloc déplié
|
||||
*/
|
||||
document.cookie = $(this).attr('id') + "=" + $(this).find(".zwiico-minus").is(":visible");
|
||||
}).on("click", "span > input, input, textarea, label, option, button, a, .blockContainer", function(e) {
|
||||
// Empêcher les déclenchements dans les blocs
|
||||
e.stopPropagation();
|
||||
@ -100,3 +120,16 @@ $( document).ready(function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Lire un cookie s'il existe
|
||||
*/
|
||||
function getCookie(name) {
|
||||
var v = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
|
||||
return v ? v[2] : null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -72,7 +72,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<div class="block" id="setup">
|
||||
<h4><?php
|
||||
echo template::ico('plus','right');
|
||||
echo template::ico('minus','right');
|
||||
@ -241,7 +241,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<div class="block" id="ceo">
|
||||
<h4><?php
|
||||
echo template::ico('plus','right');
|
||||
echo template::ico('minus','right');
|
||||
@ -284,7 +284,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<div class="block" id="network">
|
||||
<h4><?php
|
||||
echo template::ico('plus','right');
|
||||
echo template::ico('minus','right');
|
||||
@ -318,7 +318,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<div class="block" id="smtp">
|
||||
<h4><?php
|
||||
echo template::ico('plus','right');
|
||||
echo template::ico('minus','right');
|
||||
@ -385,7 +385,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<div class="block" id="login">
|
||||
<h4><?php
|
||||
echo template::ico('plus','right');
|
||||
echo template::ico('minus','right');
|
||||
@ -432,7 +432,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<div class="block" id="logs">
|
||||
<h4><?php
|
||||
echo template::ico('plus','right');
|
||||
echo template::ico('minus','right');
|
||||
@ -466,7 +466,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<div class="block" id="script">
|
||||
<h4><?php
|
||||
echo template::ico('plus','right');
|
||||
echo template::ico('minus','right');
|
||||
@ -501,8 +501,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<div class="col12" >
|
||||
<div class="block" id="system">
|
||||
<h4><?php
|
||||
echo template::ico('plus','right');
|
||||
echo template::ico('minus','right');
|
||||
|
@ -53,6 +53,27 @@ function protectModule() {
|
||||
$( document ).ready(function() {
|
||||
|
||||
/**
|
||||
* Initialisation des blocs
|
||||
*/
|
||||
|
||||
var i = ["info", "layout", "setup", "position", "advanced", "ceo" ];
|
||||
$.each(i,function(e) {
|
||||
if (getCookie(i[e]) === "true") {
|
||||
$("#" + i[e]).find(".zwiico-plus").hide();
|
||||
$("#" + i[e]).find(".zwiico-minus").show();
|
||||
$("#" + i[e]).find(".blockContainer").show();
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Lire un cookie s'il existe
|
||||
*/
|
||||
function getCookie(name) {
|
||||
var v = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
|
||||
return v ? v[2] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Blocs dépliants
|
||||
*/
|
||||
|
||||
@ -60,6 +81,11 @@ $( document ).ready(function() {
|
||||
$(this).find(".zwiico-plus").toggle();
|
||||
$(this).find(".zwiico-minus").toggle();
|
||||
$(this).find(".blockContainer").slideToggle();
|
||||
/*
|
||||
* Sauvegarder la position des blocs
|
||||
* true = bloc déplié
|
||||
*/
|
||||
document.cookie = $(this).attr('id') + "=" + $(this).find(".zwiico-minus").is(":visible");
|
||||
}).on("click", "span > input, input, textarea, label, option, button, a, .blockContainer", function(e) {
|
||||
// Empêcher les déclenchements dans les blocs
|
||||
e.stopPropagation();
|
||||
|
@ -27,7 +27,7 @@ echo template::formOpen('pageEditForm');
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<div class="block" id="info">
|
||||
<h4>Informations générales</h4>
|
||||
<div class="row">
|
||||
<div class="col8">
|
||||
@ -95,7 +95,7 @@ echo template::formOpen('pageEditForm');
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12" id="pageEditBlockLayout">
|
||||
<div class="block" >
|
||||
<div class="block" id="layout">
|
||||
<h4><?php
|
||||
echo template::ico('plus','right');
|
||||
echo template::ico('minus','right');
|
||||
@ -158,7 +158,7 @@ echo template::formOpen('pageEditForm');
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12" id="pageEditMenu">
|
||||
<div class="block">
|
||||
<div class="block" id="position">
|
||||
<h4><?php
|
||||
echo template::ico('plus','right');
|
||||
echo template::ico('minus','right');
|
||||
@ -204,7 +204,7 @@ echo template::formOpen('pageEditForm');
|
||||
</div>
|
||||
<div class='row' id="pageEditAdvancedWrapper">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<div class="block" id="advanced">
|
||||
<h4><?php
|
||||
echo template::ico('plus','right');
|
||||
echo template::ico('minus','right');
|
||||
@ -230,7 +230,7 @@ echo template::formOpen('pageEditForm');
|
||||
</div>
|
||||
<div class='row' id="pageEditSeoWrapper">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<div class="block" id="ceo">
|
||||
<h4><?php
|
||||
echo template::ico('plus','right');
|
||||
echo template::ico('minus','right');
|
||||
|
Loading…
Reference in New Issue
Block a user