Merge branch '11200' into 11200_vendors
This commit is contained in:
commit
3279ead197
@ -45,7 +45,7 @@ class common {
|
|||||||
|
|
||||||
// Numéro de version
|
// Numéro de version
|
||||||
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/';
|
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/';
|
||||||
const ZWII_VERSION = '11.2.00.12';
|
const ZWII_VERSION = '11.2.00.14';
|
||||||
const ZWII_UPDATE_CHANNEL = "test";
|
const ZWII_UPDATE_CHANNEL = "test";
|
||||||
|
|
||||||
public static $actions = [];
|
public static $actions = [];
|
||||||
|
@ -337,9 +337,13 @@ td>.col12 {
|
|||||||
|
|
||||||
/* Notice */
|
/* Notice */
|
||||||
.notice {
|
.notice {
|
||||||
display: block; /* au lieu de inline-block notamment dans les input file*/
|
display: inline-block;
|
||||||
color: #E74C3C;
|
color: #E74C3C;
|
||||||
}
|
}
|
||||||
|
/* Mauvaise position dans les champs File*/
|
||||||
|
.inputFile.notice {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
/* Container */
|
/* Container */
|
||||||
.container {
|
.container {
|
||||||
|
@ -208,8 +208,9 @@ class config extends common {
|
|||||||
|
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
|
'title' => 'Configuration',
|
||||||
|
'view' => 'index',
|
||||||
'notification' => $successSitemap ? 'Mises à jour des fichiers sitemap et robots.txt' : 'Echec d\'écriture, le site map n\'a pas été mis à jour',
|
'notification' => $successSitemap ? 'Mises à jour des fichiers sitemap et robots.txt' : 'Echec d\'écriture, le site map n\'a pas été mis à jour',
|
||||||
'redirect' => helper::baseUrl() . 'config/advanced',
|
|
||||||
'state' => $successSitemap
|
'state' => $successSitemap
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@ -275,8 +276,9 @@ class config extends common {
|
|||||||
}
|
}
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
|
'title' => 'Configuration',
|
||||||
|
'view' => 'index',
|
||||||
'notification' => $success === false ? 'Service inaccessible ou erreur d\'écriture de l\'image' : 'Image générée avec succès',
|
'notification' => $success === false ? 'Service inaccessible ou erreur d\'écriture de l\'image' : 'Image générée avec succès',
|
||||||
'redirect' => helper::baseUrl() . 'config/advanced',
|
|
||||||
'state' => $success === false ? false : true
|
'state' => $success === false ? false : true
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@ -299,8 +301,9 @@ class config extends common {
|
|||||||
if ($file_parts['extension'] !== 'zip') {
|
if ($file_parts['extension'] !== 'zip') {
|
||||||
// Valeurs en sortie erreur
|
// Valeurs en sortie erreur
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
|
'title' => 'Restaurer',
|
||||||
|
'view' => 'restore',
|
||||||
'notification' => 'Le fichier n\'est pas une archive valide',
|
'notification' => 'Le fichier n\'est pas une archive valide',
|
||||||
'redirect' => helper::baseUrl() . 'config/restore',
|
|
||||||
'state' => false
|
'state' => false
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@ -308,8 +311,9 @@ class config extends common {
|
|||||||
if ($successOpen === FALSE) {
|
if ($successOpen === FALSE) {
|
||||||
// Valeurs en sortie erreur
|
// Valeurs en sortie erreur
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
|
'title' => 'Restaurer',
|
||||||
|
'view' => 'restore',
|
||||||
'notification' => 'Impossible de lire l\'archive',
|
'notification' => 'Impossible de lire l\'archive',
|
||||||
'redirect' => helper::baseUrl() . 'config/restore',
|
|
||||||
'state' => false
|
'state' => false
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@ -350,8 +354,9 @@ class config extends common {
|
|||||||
} elseif ($version === 0) { // Version invalide
|
} elseif ($version === 0) { // Version invalide
|
||||||
// Valeurs en sortie erreur
|
// Valeurs en sortie erreur
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
|
'title' => 'Restaurer',
|
||||||
|
'view' => 'restore',
|
||||||
'notification' => 'Cette archive n\'est pas une sauvegarde valide',
|
'notification' => 'Cette archive n\'est pas une sauvegarde valide',
|
||||||
'redirect' => helper::baseUrl() . 'config/restore',
|
|
||||||
'state' => false
|
'state' => false
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@ -375,12 +380,13 @@ class config extends common {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Message de notification
|
// Message de notification
|
||||||
$notification = $success === true ? 'Restauration effectuée avec succès' : 'Erreur inconnue';
|
$notification = $success === true ? 'Restaurer effectuée avec succès' : 'Erreur inconnue';
|
||||||
$redirect = $this->getInput('configRestoreImportUser', helper::FILTER_BOOLEAN) === true ? helper::baseUrl() . 'config/restore' : helper::baseUrl() . 'user/login/';
|
$redirect = $this->getInput('configRestoreImportUser', helper::FILTER_BOOLEAN) === true ? helper::baseUrl() . 'config/restore' : helper::baseUrl() . 'user/login/';
|
||||||
// Valeurs en sortie erreur
|
// Valeurs en sortie erreur
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
|
'title' => 'Restaurer',
|
||||||
|
'view' => 'restore',
|
||||||
'notification' => $notification,
|
'notification' => $notification,
|
||||||
'redirect' =>$redirect,
|
|
||||||
'state' => $success
|
'state' => $success
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@ -574,7 +580,8 @@ class config extends common {
|
|||||||
$this->generateFiles();
|
$this->generateFiles();
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'redirect' => helper::baseUrl() . $this->getUrl(),
|
'title' => 'Configuration',
|
||||||
|
'view' => 'index',
|
||||||
'notification' => 'Modifications enregistrées ' ,
|
'notification' => 'Modifications enregistrées ' ,
|
||||||
'state' => true
|
'state' => true
|
||||||
]);
|
]);
|
||||||
@ -616,8 +623,11 @@ class config extends common {
|
|||||||
}
|
}
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'notification' => 'Modifications enregistrées',
|
'title' => 'Éditeur de script dans ' . ucfirst($this->geturl(2)) ,
|
||||||
'redirect' => helper::baseUrl() . 'config/script/'. $this->geturl(2),
|
'vendor' => [
|
||||||
|
'codemirror'
|
||||||
|
],
|
||||||
|
'view' => 'script',
|
||||||
'state' => true
|
'state' => true
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@ -677,8 +687,9 @@ class config extends common {
|
|||||||
$this->setData(['core','baseUrl',helper::baseUrl(true,false)]);
|
$this->setData(['core','baseUrl',helper::baseUrl(true,false)]);
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
|
'title' => 'Restaurer',
|
||||||
|
'view' => 'restore',
|
||||||
'notification' => $success ? $c3. ' conversion' . ($c3 > 1 ? 's' : '') . ' effectuée' . ($c3 > 1 ? 's' : '') : 'Aucune conversion',
|
'notification' => $success ? $c3. ' conversion' . ($c3 > 1 ? 's' : '') . ' effectuée' . ($c3 > 1 ? 's' : '') : 'Aucune conversion',
|
||||||
'redirect' => helper::baseUrl() . 'config/restore',
|
|
||||||
'state' => $success ? true : false
|
'state' => $success ? true : false
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@ -695,14 +706,16 @@ class config extends common {
|
|||||||
file_put_contents(self::DATA_DIR . 'journal.log',$d);
|
file_put_contents(self::DATA_DIR . 'journal.log',$d);
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'redirect' => helper::baseUrl() . 'config/advanced',
|
'title' => 'Configuration',
|
||||||
|
'view' => 'index',
|
||||||
'notification' => 'Journal réinitialisé avec succès',
|
'notification' => 'Journal réinitialisé avec succès',
|
||||||
'state' => true
|
'state' => true
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'redirect' => helper::baseUrl() . 'config/advanced',
|
'title' => 'Configuration',
|
||||||
|
'view' => 'index',
|
||||||
'notification' => 'Aucun journal à effacer',
|
'notification' => 'Aucun journal à effacer',
|
||||||
'state' => false
|
'state' => false
|
||||||
]);
|
]);
|
||||||
@ -729,7 +742,8 @@ class config extends common {
|
|||||||
} else {
|
} else {
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'redirect' => helper::baseUrl() . 'config/advanced',
|
'title' => 'Configuration',
|
||||||
|
'view' => 'index',
|
||||||
'notification' => 'Aucun fichier journal à télécharger',
|
'notification' => 'Aucun fichier journal à télécharger',
|
||||||
'state' => false
|
'state' => false
|
||||||
]);
|
]);
|
||||||
@ -765,7 +779,8 @@ class config extends common {
|
|||||||
} else {
|
} else {
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'redirect' => helper::baseUrl() . 'config/advanced',
|
'title' => 'Configuration',
|
||||||
|
'view' => 'index',
|
||||||
'notification' => 'Aucune liste noire à télécharger',
|
'notification' => 'Aucune liste noire à télécharger',
|
||||||
'state' => false
|
'state' => false
|
||||||
]);
|
]);
|
||||||
@ -781,14 +796,16 @@ class config extends common {
|
|||||||
$this->setData(['blacklist',[]]);
|
$this->setData(['blacklist',[]]);
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'redirect' => helper::baseUrl() . 'config/advanced',
|
'title' => 'Configuration',
|
||||||
|
'view' => 'index',
|
||||||
'notification' => 'Liste noire réinitialisée avec succès',
|
'notification' => 'Liste noire réinitialisée avec succès',
|
||||||
'state' => true
|
'state' => true
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'redirect' => helper::baseUrl() . 'config/advanced',
|
'title' => 'Configuration',
|
||||||
|
'view' => 'index',
|
||||||
'notification' => 'Pas de liste à effacer',
|
'notification' => 'Pas de liste à effacer',
|
||||||
'state' => false
|
'state' => false
|
||||||
]);
|
]);
|
||||||
@ -806,7 +823,8 @@ class config extends common {
|
|||||||
$this->copyDir(self::BACKUP_DIR, self::FILE_DIR . 'source/backup' );
|
$this->copyDir(self::BACKUP_DIR, self::FILE_DIR . 'source/backup' );
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'redirect' => helper::baseUrl() . 'config/advanced',
|
'title' => 'Configuration',
|
||||||
|
'view' => 'index',
|
||||||
'notification' => 'Copie terminée',
|
'notification' => 'Copie terminée',
|
||||||
'state' => true
|
'state' => true
|
||||||
]);
|
]);
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
$( document).ready(function() {
|
$( document).ready(function() {
|
||||||
$("#configBackupForm").submit( function(e){
|
$("#configBackupForm").submit( function(e){
|
||||||
$("#configBackupSubmit").addClass("disabled").prop("disabled", true);
|
//$("#configBackupSubmit").addClass("disabled").prop("disabled", true);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var url = "<?php echo helper::baseUrl() . $this->getUrl(0); ?>/backup";
|
var url = "<?php echo helper::baseUrl() . $this->getUrl(0); ?>/backup";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@ -29,6 +29,9 @@ $( document).ready(function() {
|
|||||||
},
|
},
|
||||||
complete: function(){
|
complete: function(){
|
||||||
$("#configBackupSubmit").removeClass("disabled").prop("disabled", false);
|
$("#configBackupSubmit").removeClass("disabled").prop("disabled", false);
|
||||||
|
$("#configBackupSubmit").removeClass("uniqueSubmission").prop("uniqueSubmission", false);
|
||||||
|
$("#configBackupSubmit span").removeClass("zwiico-spin animate-spin");
|
||||||
|
$("#configBackupSubmit span").addClass("zwiico-check zwiico-margin-right").text("Sauvegarder");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -3,14 +3,15 @@
|
|||||||
<div class="col2">
|
<div class="col2">
|
||||||
<?php echo template::button('configBackupBack', [
|
<?php echo template::button('configBackupBack', [
|
||||||
'class' => 'buttonGrey',
|
'class' => 'buttonGrey',
|
||||||
'href' => helper::baseUrl() . 'config/advanced',
|
'href' => helper::baseUrl() . 'config',
|
||||||
'ico' => 'left',
|
'ico' => 'left',
|
||||||
'value' => 'Retour'
|
'value' => 'Retour'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2 offset8">
|
<div class="col2 offset8">
|
||||||
<?php echo template::submit('configBackupSubmit',[
|
<?php echo template::submit('configBackupSubmit',[
|
||||||
'value' => 'Sauvegarder'
|
'value' => 'Sauvegarder',
|
||||||
|
'uniqueSubmission' => true
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -22,26 +22,5 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.activeButton {
|
.activeButton {
|
||||||
filter : brightness(125%);
|
filter : brightness(150%);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Div d'aide
|
|
||||||
|
|
||||||
.helpDisplayContainer {
|
|
||||||
position: sticky;
|
|
||||||
background-color: white;
|
|
||||||
display: none;
|
|
||||||
width: 100%;
|
|
||||||
padding: 10px 10px;
|
|
||||||
-webkit-box-shadow: 5px 5px 11px 0px #222222;
|
|
||||||
box-shadow: 5px 5px 11px 0px #222222;
|
|
||||||
border-radius: 5px;
|
|
||||||
z-index: 30;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Bouton d'aide et croix de fermeture
|
|
||||||
|
|
||||||
.zwiico-cancel, .helpDisplayButton {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
*/
|
|
@ -38,21 +38,33 @@ $( document).ready(function() {
|
|||||||
$("#SmtpAuthParam").slideUp();
|
$("#SmtpAuthParam").slideUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
var configLayout = getCookie("configLayout");
|
||||||
* Cookie
|
if (configLayout == null) {
|
||||||
*/
|
$("#localeContainer").hide();
|
||||||
/*
|
$("#socialContainer").hide();
|
||||||
if ($("input[name=configCookieConsent]").is(':checked')) {
|
$("#connectContainer").hide();
|
||||||
$("#cookieContainer").slideDown();
|
$("#networkContainer").hide();
|
||||||
} else {
|
$("#setupContainer").show();
|
||||||
$("#cookieContainer").slideUp();
|
$("#configSetupButton").addClass("activeButton");
|
||||||
|
$("#configLocaleButton").removeClass("activeButton");
|
||||||
|
$("#configSocialButton").removeClass("activeButton");
|
||||||
|
$("#configConnectButton").removeClass("activeButton");
|
||||||
|
$("#configNetworkButton").removeClass("activeButton");
|
||||||
|
setCookie("configLayout","setup");
|
||||||
}
|
}
|
||||||
*/
|
$("#localeContainer").hide();
|
||||||
|
$("#socialContainer").hide();
|
||||||
|
$("#connectContainer").hide();
|
||||||
|
$("#networkContainer").hide();
|
||||||
|
$("#setupContainer").hide();
|
||||||
|
$("#" + configLayout + "Container" ).show();
|
||||||
|
$("#config" + capitalizeFirstLetter(configLayout) + "Button").addClass("activeButton");
|
||||||
|
|
||||||
|
|
||||||
// Gestion des événements
|
// Gestion des événements
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
/**
|
|
||||||
* Afficher et masquer options SMTP
|
* Afficher et masquer options SMTP
|
||||||
*/
|
*/
|
||||||
$("input[name=SmtpEnable]").on("change", function() {
|
$("input[name=SmtpEnable]").on("change", function() {
|
||||||
@ -128,20 +140,20 @@ $( document).ready(function() {
|
|||||||
$("#networkContainer").hide();
|
$("#networkContainer").hide();
|
||||||
$("#setupContainer").show();
|
$("#setupContainer").show();
|
||||||
$("#configSetupButton").addClass("activeButton");
|
$("#configSetupButton").addClass("activeButton");
|
||||||
$("#configLocalButton").removeClass("activeButton");
|
$("#configLocaleButton").removeClass("activeButton");
|
||||||
$("#configSocialButton").removeClass("activeButton");
|
$("#configSocialButton").removeClass("activeButton");
|
||||||
$("#configConnectButton").removeClass("activeButton");
|
$("#configConnectButton").removeClass("activeButton");
|
||||||
$("#configNetworkButton").removeClass("activeButton");
|
$("#configNetworkButton").removeClass("activeButton");
|
||||||
setCookie("configLayout","setup");
|
setCookie("configLayout","setup");
|
||||||
});
|
});
|
||||||
$("#configLocalButton").on("click", function() {
|
$("#configLocaleButton").on("click", function() {
|
||||||
$("#setupContainer").hide();
|
$("#setupContainer").hide();
|
||||||
$("#socialContainer").hide();
|
$("#socialContainer").hide();
|
||||||
$("#connectContainer").hide();
|
$("#connectContainer").hide();
|
||||||
$("#networkContainer").hide();
|
$("#networkContainer").hide();
|
||||||
$("#localeContainer").show();
|
$("#localeContainer").show();
|
||||||
$("#configSetupButton").removeClass("activeButton");
|
$("#configSetupButton").removeClass("activeButton");
|
||||||
$("#configLocalButton").addClass("activeButton");
|
$("#configLocaleButton").addClass("activeButton");
|
||||||
$("#configSocialButton").removeClass("activeButton");
|
$("#configSocialButton").removeClass("activeButton");
|
||||||
$("#configConnectButton").removeClass("activeButton");
|
$("#configConnectButton").removeClass("activeButton");
|
||||||
$("#configNetworkButton").removeClass("activeButton");
|
$("#configNetworkButton").removeClass("activeButton");
|
||||||
@ -154,7 +166,7 @@ $( document).ready(function() {
|
|||||||
$("#networkContainer").hide();
|
$("#networkContainer").hide();
|
||||||
$("#socialContainer").show();
|
$("#socialContainer").show();
|
||||||
$("#configSetupButton").removeClass("activeButton");
|
$("#configSetupButton").removeClass("activeButton");
|
||||||
$("#configLocalButton").removeClass("activeButton");
|
$("#configLocaleButton").removeClass("activeButton");
|
||||||
$("#configSocialButton").addClass("activeButton");
|
$("#configSocialButton").addClass("activeButton");
|
||||||
$("#configConnectButton").removeClass("activeButton");
|
$("#configConnectButton").removeClass("activeButton");
|
||||||
$("#configNetworkButton").removeClass("activeButton");
|
$("#configNetworkButton").removeClass("activeButton");
|
||||||
@ -167,7 +179,7 @@ $( document).ready(function() {
|
|||||||
$("#networkContainer").hide();
|
$("#networkContainer").hide();
|
||||||
$("#connectContainer").show();
|
$("#connectContainer").show();
|
||||||
$("#configSetupButton").removeClass("activeButton");
|
$("#configSetupButton").removeClass("activeButton");
|
||||||
$("#configLocalButton").removeClass("activeButton");
|
$("#configLocaleButton").removeClass("activeButton");
|
||||||
$("#configSocialButton").removeClass("activeButton");
|
$("#configSocialButton").removeClass("activeButton");
|
||||||
$("#configConnectButton").addClass("activeButton");
|
$("#configConnectButton").addClass("activeButton");
|
||||||
$("#configNetworkButton").removeClass("activeButton");
|
$("#configNetworkButton").removeClass("activeButton");
|
||||||
@ -180,46 +192,13 @@ $( document).ready(function() {
|
|||||||
$("#connectContainer").hide();
|
$("#connectContainer").hide();
|
||||||
$("#networkContainer").show();
|
$("#networkContainer").show();
|
||||||
$("#configSetupButton").removeClass("activeButton");
|
$("#configSetupButton").removeClass("activeButton");
|
||||||
$("#configLocalButton").removeClass("activeButton");
|
$("#configLocaleButton").removeClass("activeButton");
|
||||||
$("#configSocialButton").removeClass("activeButton");
|
$("#configSocialButton").removeClass("activeButton");
|
||||||
$("#configConnectButton").removeClass("activeButton");
|
$("#configConnectButton").removeClass("activeButton");
|
||||||
$("#configNetworkButton").addClass("activeButton");
|
$("#configNetworkButton").addClass("activeButton");
|
||||||
setCookie("configLayout","network");
|
setCookie("configLayout","network");
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
|
||||||
* Options des cookies
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
$("input[name=configCookieConsent]").on("change", function() {
|
|
||||||
if ($("input[name=configCookieConsent]").is(':checked')) {
|
|
||||||
$("#cookieContainer").slideDown();
|
|
||||||
} else {
|
|
||||||
$("#cookieContainer").slideUp();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
*/
|
|
||||||
|
|
||||||
var configLayout = getCookie("configLayout");
|
|
||||||
if (configLayout == null) {
|
|
||||||
$("#localeContainer").hide();
|
|
||||||
$("#socialContainer").hide();
|
|
||||||
$("#connectContainer").hide();
|
|
||||||
$("#networkContainer").hide();
|
|
||||||
$("#setupContainer").show();
|
|
||||||
$("#configSetupButton").addClass("activeButton");
|
|
||||||
$("#configLocaleButton").removeClass("activeButton");
|
|
||||||
$("#configSocialButton").removeClass("activeButton");
|
|
||||||
$("#configConnectButton").removeClass("activeButton");
|
|
||||||
$("#configNetworkButton").removeClass("activeButton");
|
|
||||||
setCookie("configLayout","setup");
|
|
||||||
}
|
|
||||||
$("#localeContainer").hide();
|
|
||||||
$("#socialContainer").hide();
|
|
||||||
$("#connectContainer").hide();
|
|
||||||
$("#networkContainer").hide();
|
|
||||||
$("#setupContainer").hide();
|
|
||||||
$("#" + configLayout + "Container" ).show();
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -231,7 +210,7 @@ function setCookie(name,value,days) {
|
|||||||
date.setTime(date.getTime() + (days*24*60*60*1000));
|
date.setTime(date.getTime() + (days*24*60*60*1000));
|
||||||
expires = "; expires=" + date.toUTCString();
|
expires = "; expires=" + date.toUTCString();
|
||||||
}
|
}
|
||||||
document.cookie = name + "=" + (value || "") + expires + "; path=/";
|
document.cookie = name + "=" + (value || "") + expires + "; path=/; samesite=lax";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCookie(name) {
|
function getCookie(name) {
|
||||||
@ -244,3 +223,8 @@ function getCookie(name) {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Define function to capitalize the first letter of a string
|
||||||
|
function capitalizeFirstLetter(string) {
|
||||||
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
||||||
|
}
|
@ -30,7 +30,7 @@
|
|||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2">
|
<div class="col2">
|
||||||
<?php echo template::button('configLocalButton', [
|
<?php echo template::button('configLocaleButton', [
|
||||||
'value' => 'Localisation'
|
'value' => 'Localisation'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,14 +3,15 @@
|
|||||||
<div class="col2">
|
<div class="col2">
|
||||||
<?php echo template::button('configRestoreBack', [
|
<?php echo template::button('configRestoreBack', [
|
||||||
'class' => 'buttonGrey',
|
'class' => 'buttonGrey',
|
||||||
'href' => helper::baseUrl() . 'config/advanced',
|
'href' => helper::baseUrl() . 'config',
|
||||||
'ico' => 'left',
|
'ico' => 'left',
|
||||||
'value' => 'Retour'
|
'value' => 'Retour'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2 offset8">
|
<div class="col2 offset8">
|
||||||
<?php echo template::submit('configRestoreSubmit',[
|
<?php echo template::submit('configRestoreSubmit',[
|
||||||
'value' => 'Restaurer'
|
'value' => 'Restaurer',
|
||||||
|
'uniqueSubmission' => true,
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<div class="col2">
|
<div class="col2">
|
||||||
<?php echo template::button('configManageBack', [
|
<?php echo template::button('configManageBack', [
|
||||||
'class' => 'buttonGrey',
|
'class' => 'buttonGrey',
|
||||||
'href' => helper::baseUrl() . 'config/advanced',
|
'href' => helper::baseUrl() . 'config',
|
||||||
'ico' => 'left',
|
'ico' => 'left',
|
||||||
'value' => 'Retour'
|
'value' => 'Retour'
|
||||||
]); ?>
|
]); ?>
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,41 +1,18 @@
|
|||||||
/**
|
/**
|
||||||
* This file is part of Zwii.
|
* This file is part of Zwii.
|
||||||
*
|
*
|
||||||
* For full copyright and license information, please see the LICENSE
|
* For full copyright and license information, please see the LICENSE
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*
|
*
|
||||||
* @author Rémi Jean <remi.jean@outlook.com>
|
* @author Rémi Jean <remi.jean@outlook.com>
|
||||||
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
||||||
* @author Frédéric Tempez <frederic.tempez@outlook.com>
|
* @author Frédéric Tempez <frederic.tempez@outlook.com>
|
||||||
* @copyright Copyright (C) 2018-2021, Frédéric Tempez
|
* @copyright Copyright (C) 2018-2021, Frédéric Tempez
|
||||||
* @license GNU General Public License, version 3
|
* @license GNU General Public License, version 3
|
||||||
* @link http://zwiicms.fr/
|
* @link http://zwiicms.fr/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** NE PAS EFFACER
|
/** NE PAS EFFACER
|
||||||
* admin.css
|
* admin.css
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#seo > .blockContainer,
|
|
||||||
#advanced > .blockContainer {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#info .zwiico-minus-circled,
|
|
||||||
#layout .zwiico-minus-circled,
|
|
||||||
#location .zwiico-minus-circled {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.zwiico-minus-circled,
|
|
||||||
#info .zwiico-plus-circled,
|
|
||||||
#layout .zwiico-plus-circled,
|
|
||||||
#location .zwiico-plus-circled {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.zwiico-minus-circled,
|
|
||||||
.zwiico-plus-circled {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,327 +1,305 @@
|
|||||||
<?php echo template::formOpen('pageEditForm'); ?>
|
<?php echo template::formOpen('pageEditForm'); ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col2">
|
<div class="col2">
|
||||||
<?php $href = helper::baseUrl() . $this->getUrl(2); ?>
|
<?php $href = helper::baseUrl() . $this->getUrl(2); ?>
|
||||||
<?php if ($this->getData(['page', $this->getUrl(2), 'moduleId']) === 'redirection' || 'code')$href = helper::baseUrl(); ?>
|
<?php if ($this->getData(['page', $this->getUrl(2), 'moduleId']) === 'redirection' || 'code')$href = helper::baseUrl(); ?>
|
||||||
<?php echo template::button('pageEditBack', [
|
<?php echo template::button('pageEditBack', [
|
||||||
'class' => 'buttonGrey',
|
'class' => 'buttonGrey',
|
||||||
'href' => $href,
|
'href' => $href,
|
||||||
'ico' => 'left',
|
'ico' => 'left',
|
||||||
'value' => 'Retour'
|
'value' => 'Retour'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2">
|
<div class="col2">
|
||||||
<?php echo template::button('pageEditHelp', [
|
<?php echo template::button('pageEditHelp', [
|
||||||
'href' => 'https://doc.zwiicms.fr/les-pages-simples',
|
'href' => 'https://doc.zwiicms.fr/les-pages-simples',
|
||||||
'target' => '_blank',
|
'target' => '_blank',
|
||||||
'ico' => 'help',
|
'ico' => 'help',
|
||||||
'value' => 'Aide',
|
'value' => 'Aide',
|
||||||
'class' => 'buttonHelp'
|
'class' => 'buttonHelp'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2 offset2">
|
<div class="col2 offset2">
|
||||||
<?php echo template::button('pageEditDuplicate', [
|
<?php echo template::button('pageEditDuplicate', [
|
||||||
'href' => helper::baseUrl() . 'page/duplicate/' . $this->getUrl(2) . '&csrf=' . $_SESSION['csrf'],
|
'href' => helper::baseUrl() . 'page/duplicate/' . $this->getUrl(2) . '&csrf=' . $_SESSION['csrf'],
|
||||||
'value' => 'Dupliquer',
|
'value' => 'Dupliquer',
|
||||||
'ico' => 'clone'
|
'ico' => 'clone'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2">
|
<div class="col2">
|
||||||
<?php echo template::button('pageEditDelete', [
|
<?php echo template::button('pageEditDelete', [
|
||||||
'class' => 'buttonRed',
|
'class' => 'buttonRed',
|
||||||
'href' => helper::baseUrl() . 'page/delete/' . $this->getUrl(2) . '&csrf=' . $_SESSION['csrf'],
|
'href' => helper::baseUrl() . 'page/delete/' . $this->getUrl(2) . '&csrf=' . $_SESSION['csrf'],
|
||||||
'value' => 'Supprimer',
|
'value' => 'Supprimer',
|
||||||
'ico' => 'cancel'
|
'ico' => 'cancel'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2">
|
<div class="col2">
|
||||||
<?php echo template::submit('pageEditSubmit'); ?>
|
<?php echo template::submit('pageEditSubmit', [
|
||||||
</div>
|
'uniqueSubmission' => true
|
||||||
</div>
|
]); ?>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col12">
|
</div>
|
||||||
<div class="block" id="info">
|
<div class="row">
|
||||||
<h4>Informations générales
|
<div class="col12">
|
||||||
<span id="infoHelpButton" class="helpDisplayButton">
|
<div class="block" id="info">
|
||||||
<a href="https://doc.zwiicms.fr/informations-generales" target="_blank">
|
<h4>Informations générales
|
||||||
<?php echo template::ico('help', 'left');?>
|
<span id="infoHelpButton" class="helpDisplayButton">
|
||||||
</a>
|
<a href="https://doc.zwiicms.fr/informations-generales" target="_blank">
|
||||||
</span>
|
<?php echo template::ico('help', 'left');?>
|
||||||
</h4>
|
</a>
|
||||||
<div class="row">
|
</span>
|
||||||
<div class="col6">
|
</h4>
|
||||||
<?php echo template::text('pageEditTitle', [
|
<div class="row">
|
||||||
'label' => 'Titre',
|
<div class="col6">
|
||||||
'value' => $this->getData(['page', $this->getUrl(2), 'title'])
|
<?php echo template::text('pageEditTitle', [
|
||||||
]); ?>
|
'label' => 'Titre',
|
||||||
</div>
|
'value' => $this->getData(['page', $this->getUrl(2), 'title'])
|
||||||
<div class="col2">
|
]); ?>
|
||||||
<?php echo template::text('pageEditShortTitle', [
|
</div>
|
||||||
'label' => 'Titre Court',
|
<div class="col2">
|
||||||
'value' => $this->getData(['page', $this->getUrl(2), 'shortTitle']),
|
<?php echo template::text('pageEditShortTitle', [
|
||||||
'help' => 'Le titre court est affiché dans les menus. Il peut être identique au titre de la page.'
|
'label' => 'Titre Court',
|
||||||
]); ?>
|
'value' => $this->getData(['page', $this->getUrl(2), 'shortTitle']),
|
||||||
</div>
|
'help' => 'Le titre court est affiché dans les menus. Il peut être identique au titre de la page.'
|
||||||
<div class="col4">
|
]); ?>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col9">
|
<div class="col4">
|
||||||
<?php echo template::hidden('pageEditModuleRedirect'); ?>
|
<div class="row">
|
||||||
<?php echo template::select('pageEditModuleId', $module::$moduleIds, [
|
<div class="col9">
|
||||||
'help' => 'En cas de changement de module, les données du module précédent seront supprimées.',
|
<?php echo template::hidden('pageEditModuleRedirect'); ?>
|
||||||
'label' => 'Module',
|
<?php echo template::select('pageEditModuleId', $module::$moduleIds, [
|
||||||
'selected' => $this->getData(['page', $this->getUrl(2), 'moduleId'])
|
'help' => 'En cas de changement de module, les données du module précédent seront supprimées.',
|
||||||
]); ?>
|
'label' => 'Module',
|
||||||
<?php echo template::hidden('pageEditModuleIdOld',['value' => $this->getData(['page', $this->getUrl(2), 'moduleId'])]); ?>
|
'selected' => $this->getData(['page', $this->getUrl(2), 'moduleId'])
|
||||||
<?php echo template::hidden('pageEditModuleIdOldText',[
|
]); ?>
|
||||||
'value' => array_key_exists($this->getData(['page', $this->getUrl(2), 'moduleId']),$module::$moduleIds)? $module::$moduleIds[$this->getData(['page', $this->getUrl(2), 'moduleId'])] : ucfirst($this->getData(['page', $this->getUrl(2), 'moduleId']))
|
<?php echo template::hidden('pageEditModuleIdOld',['value' => $this->getData(['page', $this->getUrl(2), 'moduleId'])]); ?>
|
||||||
]); ?>
|
<?php echo template::hidden('pageEditModuleIdOldText',[
|
||||||
</div>
|
'value' => array_key_exists($this->getData(['page', $this->getUrl(2), 'moduleId']),$module::$moduleIds)? $module::$moduleIds[$this->getData(['page', $this->getUrl(2), 'moduleId'])] : ucfirst($this->getData(['page', $this->getUrl(2), 'moduleId']))
|
||||||
<div class="col3 verticalAlignBottom">
|
]); ?>
|
||||||
<?php echo template::button('pageEditModuleConfig', [
|
</div>
|
||||||
'disabled' => (bool) $this->getData(['page', $this->getUrl(2), 'moduleId']) === false,
|
<div class="col3 verticalAlignBottom">
|
||||||
'uniqueSubmission' => true,
|
<?php echo template::button('pageEditModuleConfig', [
|
||||||
'value' => template::ico('gear')
|
'disabled' => (bool) $this->getData(['page', $this->getUrl(2), 'moduleId']) === false,
|
||||||
]); ?>
|
'uniqueSubmission' => true,
|
||||||
</div>
|
'value' => template::ico('gear')
|
||||||
</div>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col4">
|
</div>
|
||||||
<?php echo template::select('pageTypeMenu', $module::$typeMenu,[
|
<div class="row">
|
||||||
'label' => 'Aspect du lien',
|
<div class="col4">
|
||||||
'selected' => $this->getData(['page', $this->getUrl(2), 'typeMenu'])
|
<?php echo template::select('pageTypeMenu', $module::$typeMenu,[
|
||||||
]); ?>
|
'label' => 'Aspect du lien',
|
||||||
</div>
|
'selected' => $this->getData(['page', $this->getUrl(2), 'typeMenu'])
|
||||||
<div class="col4">
|
]); ?>
|
||||||
<?php echo template::file('pageIconUrl', [
|
</div>
|
||||||
'help' => 'Sélectionnez une image ou une icône de petite dimension',
|
<div class="col4">
|
||||||
'label' => 'Icône',
|
<?php echo template::file('pageIconUrl', [
|
||||||
'value' => $this->getData(['page', $this->getUrl(2), 'iconUrl'])
|
'help' => 'Sélectionnez une image ou une icône de petite dimension',
|
||||||
]); ?>
|
'label' => 'Icône',
|
||||||
</div>
|
'value' => $this->getData(['page', $this->getUrl(2), 'iconUrl'])
|
||||||
<div class="col4">
|
]); ?>
|
||||||
<?php echo template::select('configModulePosition', $module::$modulePosition,[
|
</div>
|
||||||
'help' => 'En position libre ajoutez le module en plaçant [MODULE] à l\'endroit voulu dans votre page.',
|
<div class="col4">
|
||||||
'label' => 'Position du module',
|
<?php echo template::select('configModulePosition', $module::$modulePosition,[
|
||||||
'selected' => $this->getData(['page', $this->getUrl(2), 'modulePosition'])
|
'help' => 'En position libre ajoutez le module en plaçant [MODULE] à l\'endroit voulu dans votre page.',
|
||||||
]); ?>
|
'label' => 'Position du module',
|
||||||
</div>
|
'selected' => $this->getData(['page', $this->getUrl(2), 'modulePosition'])
|
||||||
</div>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col12">
|
</div>
|
||||||
<?php echo template::textarea('pageEditContent', [
|
<div class="row">
|
||||||
'class' => 'editorWysiwyg',
|
<div class="col12">
|
||||||
//'value' => file_get_contents(self::DATA_DIR . self::$i18n . '/content/' . $this->getData(['page', $this->getUrl(2), 'content']))
|
<?php echo template::textarea('pageEditContent', [
|
||||||
'value' => $this->getPage($this->getUrl(2), self::$i18n)
|
'class' => 'editorWysiwyg',
|
||||||
]); ?>
|
//'value' => file_get_contents(self::DATA_DIR . self::$i18n . '/content/' . $this->getData(['page', $this->getUrl(2), 'content']))
|
||||||
</div>
|
'value' => $this->getPage($this->getUrl(2), self::$i18n)
|
||||||
</div>
|
]); ?>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col12" id="pageEditBlockLayout">
|
</div>
|
||||||
<div class="block" id="layout">
|
<div class="row">
|
||||||
<h4>Mise en page
|
<div class="col12" id="pageEditBlockLayout">
|
||||||
<span id="layoutHelpButton" class="helpDisplayButton">
|
<div class="block">
|
||||||
<a href="https://doc.zwiicms.fr/les-barres-laterales" target="_blank">
|
<h4>Mise en page
|
||||||
<?php echo template::ico('help', 'left');?>
|
<span id="layoutHelpButton" class="helpDisplayButton">
|
||||||
</a>
|
<a href="https://doc.zwiicms.fr/les-barres-laterales" target="_blank">
|
||||||
</span>
|
<?php echo template::ico('help', 'left');?>
|
||||||
<div class="openClose">
|
</a>
|
||||||
<?php
|
</span>
|
||||||
echo template::ico('plus-circled','right');
|
</h4>
|
||||||
echo template::ico('minus-circled','right');
|
<div class="blockContainer">
|
||||||
?>
|
<div class="row">
|
||||||
</div>
|
<div class="col6">
|
||||||
</h4>
|
<div class="row">
|
||||||
<div class="blockContainer">
|
<div class="col12">
|
||||||
<div class="row">
|
<?php echo template::select('pageEditBlock', $module::$pageBlocks, [
|
||||||
<div class="col6">
|
'label' => 'Gabarits de page / Barre latérale',
|
||||||
<div class="row">
|
'help' => 'Pour définir la page comme barre latérale, choisissez l\'option dans la liste.',
|
||||||
<div class="col12">
|
'selected' => $this->getData(['page', $this->getUrl(2) , 'block'])
|
||||||
<?php echo template::select('pageEditBlock', $module::$pageBlocks, [
|
]); ?>
|
||||||
'label' => 'Gabarits de page / Barre latérale',
|
</div>
|
||||||
'help' => 'Pour définir la page comme barre latérale, choisissez l\'option dans la liste.',
|
</div>
|
||||||
'selected' => $this->getData(['page', $this->getUrl(2) , 'block'])
|
</div>
|
||||||
]); ?>
|
<div class="col6">
|
||||||
</div>
|
<!-- Sélection des barres latérales -->
|
||||||
</div>
|
<?php if($this->getHierarchy($this->getUrl(2),false,true)): ?>
|
||||||
</div>
|
<?php echo template::hidden('pageEditBarLeft', [
|
||||||
<div class="col6">
|
'value' => $this->getData(['page', $this->getUrl(2), 'barLeft'])
|
||||||
<!-- Sélection des barres latérales -->
|
]); ?>
|
||||||
<?php if($this->getHierarchy($this->getUrl(2),false,true)): ?>
|
<?php else: ?>
|
||||||
<?php echo template::hidden('pageEditBarLeft', [
|
<?php echo template::select('pageEditBarLeft', $module::$pagesBarId, [
|
||||||
'value' => $this->getData(['page', $this->getUrl(2), 'barLeft'])
|
'label' => 'Barre latérale gauche :',
|
||||||
]); ?>
|
'selected' => $this->getData(['page', $this->getUrl(2), 'barLeft'])
|
||||||
<?php else: ?>
|
]); ?>
|
||||||
<?php echo template::select('pageEditBarLeft', $module::$pagesBarId, [
|
<?php endif; ?>
|
||||||
'label' => 'Barre latérale gauche :',
|
<?php if($this->getHierarchy($this->getUrl(2),false,true)): ?>
|
||||||
'selected' => $this->getData(['page', $this->getUrl(2), 'barLeft'])
|
<?php echo template::hidden('pageEditBarRight', [
|
||||||
]); ?>
|
'value' => $this->getData(['page', $this->getUrl(2), 'barRight'])
|
||||||
<?php endif; ?>
|
]); ?>
|
||||||
<?php if($this->getHierarchy($this->getUrl(2),false,true)): ?>
|
<?php else: ?>
|
||||||
<?php echo template::hidden('pageEditBarRight', [
|
<?php echo template::select('pageEditBarRight', $module::$pagesBarId, [
|
||||||
'value' => $this->getData(['page', $this->getUrl(2), 'barRight'])
|
'label' => 'Barre latérale droite :',
|
||||||
]); ?>
|
'selected' => $this->getData(['page', $this->getUrl(2), 'barRight'])
|
||||||
<?php else: ?>
|
]); ?>
|
||||||
<?php echo template::select('pageEditBarRight', $module::$pagesBarId, [
|
<?php endif; ?>
|
||||||
'label' => 'Barre latérale droite :',
|
<?php echo template::select('pageEditDisplayMenu', $module::$displayMenu, [
|
||||||
'selected' => $this->getData(['page', $this->getUrl(2), 'barRight'])
|
'label' => 'Contenu du menu vertical',
|
||||||
]); ?>
|
'selected' => $this->getData(['page', $this->getUrl(2), 'displayMenu']),
|
||||||
<?php endif; ?>
|
'help' => 'Par défaut le menu est affiché APRES le contenu de la page. Pour le positionner à un emplacement précis, insérez [MENU] dans le contenu de la page.'
|
||||||
<?php echo template::select('pageEditDisplayMenu', $module::$displayMenu, [
|
]); ?>
|
||||||
'label' => 'Contenu du menu vertical',
|
</div>
|
||||||
'selected' => $this->getData(['page', $this->getUrl(2), 'displayMenu']),
|
</div>
|
||||||
'help' => 'Par défaut le menu est affiché APRES le contenu de la page. Pour le positionner à un emplacement précis, insérez [MENU] dans le contenu de la page.'
|
</div>
|
||||||
]); ?>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="row">
|
||||||
</div>
|
<div class="col12" id="pageEditMenu">
|
||||||
</div>
|
<div class="block">
|
||||||
</div>
|
<h4>Emplacement dans le menu
|
||||||
<div class="row">
|
<span id="positionHelpButton" class="helpDisplayButton">
|
||||||
<div class="col12" id="pageEditMenu">
|
<a href="https://doc.zwiicms.fr/emplacement-dans-le-menu" target="_blank">
|
||||||
<div class="block" id="location">
|
<?php echo template::ico('help', 'left');?>
|
||||||
<h4>Emplacement dans le menu
|
</a>
|
||||||
<span id="positionHelpButton" class="helpDisplayButton">
|
</span>
|
||||||
<a href="https://doc.zwiicms.fr/emplacement-dans-le-menu" target="_blank">
|
</h4>
|
||||||
<?php echo template::ico('help', 'left');?>
|
<div class="blockContainer">
|
||||||
</a>
|
<div class="row">
|
||||||
</span>
|
<div class="col6">
|
||||||
<div class="openClose">
|
<?php echo template::select('pageEditPosition', [], [
|
||||||
<?php
|
'label' => 'Position',
|
||||||
echo template::ico('plus-circled','right');
|
'help' => '\'Ne pas afficher\' crée une page orpheline non accessible par le biais des menus.'
|
||||||
echo template::ico('minus-circled','right');
|
]); ?>
|
||||||
?>
|
</div>
|
||||||
</div>
|
<div class="col6">
|
||||||
</h4>
|
<?php if($this->getHierarchy($this->getUrl(2), false)): ?>
|
||||||
<div class="blockContainer">
|
<?php echo template::hidden('pageEditParentPageId', [
|
||||||
<div class="row">
|
'value' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
|
||||||
<div class="col6">
|
]); ?>
|
||||||
<?php echo template::select('pageEditPosition', [], [
|
<?php else: ?>
|
||||||
'label' => 'Position',
|
<?php echo template::select('pageEditParentPageId', $module::$pagesNoParentId, [
|
||||||
'help' => '\'Ne pas afficher\' crée une page orpheline non accessible par le biais des menus.'
|
'label' => 'Page parent',
|
||||||
]); ?>
|
'selected' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
|
||||||
</div>
|
]); ?>
|
||||||
<div class="col6">
|
<?php endif; ?>
|
||||||
<?php if($this->getHierarchy($this->getUrl(2), false)): ?>
|
</div>
|
||||||
<?php echo template::hidden('pageEditParentPageId', [
|
</div>
|
||||||
'value' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
|
|
||||||
]); ?>
|
<div class="row">
|
||||||
<?php else: ?>
|
<div class="col6">
|
||||||
<?php echo template::select('pageEditParentPageId', $module::$pagesNoParentId, [
|
<?php echo template::checkbox('pageEditDisable', true, 'Désactivée', [
|
||||||
'label' => 'Page parent',
|
'checked' => $this->getData(['page', $this->getUrl(2), 'disable']),
|
||||||
'selected' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
|
'help' => 'Une page désactivée n\'est pas cliquable en mode déconnecté, les pages enfants sont visibles et accessibles. La page d\'accueil n\'est pas désactivable.'
|
||||||
]); ?>
|
]); ?>
|
||||||
<?php endif; ?>
|
</div>
|
||||||
</div>
|
<div class="col6">
|
||||||
</div>
|
<?php echo template::checkbox('pageEditTargetBlank', true, 'Nouvel onglet', [
|
||||||
|
'checked' => $this->getData(['page', $this->getUrl(2), 'targetBlank'])
|
||||||
<div class="row">
|
]); ?>
|
||||||
<div class="col6">
|
</div>
|
||||||
<?php echo template::checkbox('pageEditDisable', true, 'Désactivée', [
|
</div>
|
||||||
'checked' => $this->getData(['page', $this->getUrl(2), 'disable']),
|
<div class="row">
|
||||||
'help' => 'Une page désactivée n\'est pas cliquable en mode déconnecté, les pages enfants sont visibles et accessibles. La page d\'accueil n\'est pas désactivable.'
|
<div class="col6">
|
||||||
]); ?>
|
<?php echo template::checkbox('pageEditHideTitle', true, 'Titre masqué', [
|
||||||
</div>
|
'checked' => $this->getData(['page', $this->getUrl(2), 'hideTitle'])
|
||||||
<div class="col6">
|
]); ?>
|
||||||
<?php echo template::checkbox('pageEditTargetBlank', true, 'Nouvel onglet', [
|
</div>
|
||||||
'checked' => $this->getData(['page', $this->getUrl(2), 'targetBlank'])
|
<div class="col6">
|
||||||
]); ?>
|
<?php echo template::checkbox('pageEditbreadCrumb', true, 'Fil d\'Ariane', [
|
||||||
</div>
|
'checked' => $this->getData(['page', $this->getUrl(2), 'breadCrumb']),
|
||||||
</div>
|
'help' => 'Affiche le nom de la page parente suivi du nom de la page, le titre ne doit pas être masqué.'
|
||||||
<div class="row">
|
]); ?>
|
||||||
<div class="col6">
|
</div>
|
||||||
<?php echo template::checkbox('pageEditHideTitle', true, 'Titre masqué', [
|
</div>
|
||||||
'checked' => $this->getData(['page', $this->getUrl(2), 'hideTitle'])
|
</div>
|
||||||
]); ?>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col6">
|
</div>
|
||||||
<?php echo template::checkbox('pageEditbreadCrumb', true, 'Fil d\'Ariane', [
|
<div class='row' id="pageEditAdvancedWrapper">
|
||||||
'checked' => $this->getData(['page', $this->getUrl(2), 'breadCrumb']),
|
<div class="col12">
|
||||||
'help' => 'Affiche le nom de la page parente suivi du nom de la page, le titre ne doit pas être masqué.'
|
<div class="block">
|
||||||
]); ?>
|
<h4>Options d'emplacement avancées
|
||||||
</div>
|
<span id="advancedHelpButton" class="helpDisplayButton">
|
||||||
</div>
|
<a href="https://doc.zwiicms.fr/options-d-emplacement-avancee" target="_blank">
|
||||||
</div>
|
<?php echo template::ico('help', 'left');?>
|
||||||
</div>
|
</a>
|
||||||
</div>
|
</span>
|
||||||
</div>
|
</h4>
|
||||||
<div class='row' id="pageEditAdvancedWrapper">
|
<div class="blockContainer">
|
||||||
<div class="col12">
|
<div class="row">
|
||||||
<div class="block" id="advanced">
|
<div class="col6">
|
||||||
<h4>Options d'emplacement avancées
|
<?php echo template::checkbox('pageEditHideMenuChildren', true, 'Masquer les pages enfants dans le menu horizontal', [
|
||||||
<span id="advancedHelpButton" class="helpDisplayButton">
|
'checked' => $this->getData(['page', $this->getUrl(2), 'hideMenuChildren'])
|
||||||
<a href="https://doc.zwiicms.fr/options-d-emplacement-avancee" target="_blank">
|
]); ?>
|
||||||
<?php echo template::ico('help', 'left');?>
|
</div>
|
||||||
</a>
|
<div class="col6">
|
||||||
</span>
|
<?php echo template::checkbox('pageEditHideMenuSide', true, 'Masquer la page et les pages enfants dans le menu d\'une barre latérale' , [
|
||||||
<div class="openClose">
|
'checked' => $this->getData(['page', $this->getUrl(2), 'hideMenuSide']),
|
||||||
<?php
|
'help' => 'La page est affichée dans un menu horizontal mais pas dans le menu vertical d\'une barre latérale.'
|
||||||
echo template::ico('plus-circled','right');
|
]); ?>
|
||||||
echo template::ico('minus-circled','right');
|
</div>
|
||||||
?>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</h4>
|
</div>
|
||||||
<div class="blockContainer">
|
</div>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col6">
|
<div class='row' id="pageEditSeoWrapper">
|
||||||
<?php echo template::checkbox('pageEditHideMenuChildren', true, 'Masquer les pages enfants dans le menu horizontal', [
|
<div class="col12">
|
||||||
'checked' => $this->getData(['page', $this->getUrl(2), 'hideMenuChildren'])
|
<div class="block">
|
||||||
]); ?>
|
<h4>Permission et référencement
|
||||||
</div>
|
<span id="seoHelpButton" class="helpDisplayButton">
|
||||||
<div class="col6">
|
<a href="https://doc.zwiicms.fr/permission-et-referencement" target="_blank">
|
||||||
<?php echo template::checkbox('pageEditHideMenuSide', true, 'Masquer la page et les pages enfants dans le menu d\'une barre latérale' , [
|
<?php echo template::ico('help', 'left');?>
|
||||||
'checked' => $this->getData(['page', $this->getUrl(2), 'hideMenuSide']),
|
</a>
|
||||||
'help' => 'La page est affichée dans un menu horizontal mais pas dans le menu vertical d\'une barre latérale.'
|
</span>
|
||||||
]); ?>
|
</h4>
|
||||||
</div>
|
<div class="blockContainer">
|
||||||
</div>
|
<div class="row">
|
||||||
</div>
|
<div class='col6'>
|
||||||
</div>
|
<?php echo template::select('pageEditGroup', self::$groupPublics, [
|
||||||
</div>
|
'label' => 'Groupe requis pour accéder à la page :',
|
||||||
</div>
|
'selected' => $this->getData(['page', $this->getUrl(2), 'group'])
|
||||||
<div class='row' id="pageEditSeoWrapper">
|
]); ?>
|
||||||
<div class="col12">
|
</div>
|
||||||
<div class="block" id="seo">
|
<div class='col12'>
|
||||||
<h4>Permission et référencement
|
<?php echo template::text('pageEditMetaTitle', [
|
||||||
<span id="seoHelpButton" class="helpDisplayButton">
|
'label' => 'Méta-titre',
|
||||||
<a href="https://doc.zwiicms.fr/permission-et-referencement" target="_blank">
|
'value' => $this->getData(['page', $this->getUrl(2), 'metaTitle'])
|
||||||
<?php echo template::ico('help', 'left');?>
|
]); ?>
|
||||||
</a>
|
<?php echo template::textarea('pageEditMetaDescription', [
|
||||||
</span>
|
'label' => 'Méta-description',
|
||||||
<div class="openClose">
|
//'maxlength' => '500',
|
||||||
<?php
|
'value' => $this->getData(['page', $this->getUrl(2), 'metaDescription'])
|
||||||
echo template::ico('plus-circled','right');
|
]); ?>
|
||||||
echo template::ico('minus-circled','right');
|
</div>
|
||||||
?>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</h4>
|
</div>
|
||||||
<div class="blockContainer">
|
</div>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class='col6'>
|
<?php echo template::formClose(); ?>
|
||||||
<?php echo template::select('pageEditGroup', self::$groupPublics, [
|
|
||||||
'label' => 'Groupe requis pour accéder à la page :',
|
|
||||||
'selected' => $this->getData(['page', $this->getUrl(2), 'group'])
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
<div class='col12'>
|
|
||||||
<?php echo template::text('pageEditMetaTitle', [
|
|
||||||
'label' => 'Méta-titre',
|
|
||||||
'value' => $this->getData(['page', $this->getUrl(2), 'metaTitle'])
|
|
||||||
]); ?>
|
|
||||||
<?php echo template::textarea('pageEditMetaDescription', [
|
|
||||||
'label' => 'Méta-description',
|
|
||||||
//'maxlength' => '500',
|
|
||||||
'value' => $this->getData(['page', $this->getUrl(2), 'metaDescription'])
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php echo template::formClose(); ?>
|
|
||||||
|
@ -19,7 +19,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col2">
|
<div class="col2">
|
||||||
<?php echo template::submit('blogAddPublish', [
|
<?php echo template::submit('blogAddPublish', [
|
||||||
'value' => 'Publier'
|
'value' => 'Publier',
|
||||||
|
'uniqueSubmission' => true
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,7 +19,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col2">
|
<div class="col2">
|
||||||
<?php echo template::submit('blogEditSubmit', [
|
<?php echo template::submit('blogEditSubmit', [
|
||||||
'value' => 'Publier'
|
'value' => 'Publier',
|
||||||
|
'uniqueSubmission' => true,
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,7 +19,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col2">
|
<div class="col2">
|
||||||
<?php echo template::submit('newsAddPublish', [
|
<?php echo template::submit('newsAddPublish', [
|
||||||
'value' => 'Publier'
|
'value' => 'Publier',
|
||||||
|
'uniqueSubmission' => true
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,7 +19,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col2">
|
<div class="col2">
|
||||||
<?php echo template::submit('newsEditSubmit', [
|
<?php echo template::submit('newsEditSubmit', [
|
||||||
'value' => 'Publier'
|
'value' => 'Publier',
|
||||||
|
'uniqueSubmission' => true
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user