forked from ZwiiCMS-Team/ZwiiCMS
[9.1.05] footer lien ZwiiCMS nouvel onglet
This commit is contained in:
parent
3660e40d6d
commit
f4e123937f
@ -28,7 +28,7 @@ class common {
|
||||
const GROUP_ADMIN = 3;
|
||||
|
||||
// Numéro de version
|
||||
const ZWII_VERSION = '9.1.05';
|
||||
const ZWII_VERSION = '9.1.06';
|
||||
|
||||
public static $actions = [];
|
||||
public static $coreModuleIds = [
|
||||
@ -1893,7 +1893,7 @@ class layout extends common {
|
||||
$items .= '>Motorisé par </span>';
|
||||
// Toujours afficher le nom du CMS
|
||||
$items .= '<span id="footerZwiiCMS">';
|
||||
$items .= '<a href="http://zwiicms.com/" onclic="window.open(this.href);return false" data-tippy-content="Zwii CMS sans base de données, très léger et performant">ZwiiCMS</a>';
|
||||
$items .= '<a href="http://zwiicms.com/" onclick="window.open(this.href);return false" data-tippy-content="Zwii CMS sans base de données, très léger et performant">ZwiiCMS</a>';
|
||||
$items .= '</span>';
|
||||
// Affichage du numéro de version
|
||||
$items .= '<span id="footerDisplayVersion"';
|
||||
|
@ -69,14 +69,14 @@ $( document ).ready(function() {
|
||||
$("#pageEditModuleId").val() === "code") {
|
||||
$("#pageEditHideTitleWrapper").removeClass("disabled");
|
||||
$("#pageEditHideTitleWrapper").hide();
|
||||
$("#pageEditBlockWrapper").removeClass("disabled");
|
||||
$("#pageEditBlockWrapper").hide();
|
||||
$("#pageEditBlockLayout").removeClass("disabled");
|
||||
$("#pageEditBlockLayout").hide();
|
||||
|
||||
} else {
|
||||
$("#pageEditHideTitleWrapper").addClass("disabled");
|
||||
$("#pageEditHideTitleWrapper").show();
|
||||
$("#pageEditBlockWrapper").addClass("disabled");
|
||||
$("#pageEditBlockWrapper").show();
|
||||
$("#pageEditBlockLayout").addClass("disabled");
|
||||
$("#pageEditBlockLayout").show();
|
||||
}
|
||||
/**
|
||||
* Masquer et démasquer la sélection des barres
|
||||
@ -111,8 +111,8 @@ $( document ).ready(function() {
|
||||
break;
|
||||
};
|
||||
if ($("#pageEditBlock").val() === "bar") {
|
||||
$("#PageEditMenu").removeClass("disabled");
|
||||
$("#PageEditMenu").slideUp();
|
||||
$("#pageEditMenu").removeClass("disabled");
|
||||
$("#pageEditMenu").slideUp();
|
||||
$("#pageEditHideTitleWrapper").removeClass("disabled");
|
||||
$("#pageEditHideTitleWrapper").slideUp();
|
||||
$("#pageEditbreadCrumbWrapper").removeClass("disabled");
|
||||
@ -125,8 +125,8 @@ $( document ).ready(function() {
|
||||
$("#pageEditDisplayMenuWrapper").slideDown();
|
||||
$("#pageEditGroupWrapper").removeClass("disabled");
|
||||
$("#pageEditGroupWrapper").slideUp();
|
||||
$("#PageEditMenuSpecial").removeClass("disabled");
|
||||
$("#PageEditMenuSpecial").slideUp();
|
||||
$("#pageEditMenuSpecial").removeClass("disabled");
|
||||
$("#pageEditMenuSpecial").slideUp();
|
||||
} else {
|
||||
$("#pageEditDisplayMenuWrapper").removeClass("disabled");
|
||||
$("#pageEditDisplayMenuWrapper").slideUp();
|
||||
@ -292,14 +292,14 @@ pageEditModuleIdDOM.on("change", function() {
|
||||
$(this).val() === "code") {
|
||||
$("#pageEditHideTitleWrapper").removeClass("disabled");
|
||||
$("#pageEditHideTitleWrapper").slideUp();
|
||||
$("#pageEditBlockWrapper").removeClass("disabled");
|
||||
$("#pageEditBlockWrapper").slideUp();
|
||||
$("#pageEditBlockLayout").removeClass("disabled");
|
||||
$("#pageEditBlockLayout").slideUp();
|
||||
}
|
||||
else {
|
||||
$("#pageEditHideTitleWrapper").addClass("disabled");
|
||||
$("#pageEditHideTitleWrapper").slideDown();
|
||||
$("#pageEditBlockWrapper").addClass("disabled");
|
||||
$("#pageEditBlockWrapper").slideDown();
|
||||
$("#pageEditBlockLayout").addClass("disabled");
|
||||
$("#pageEditBlockLayout").slideDown();
|
||||
}
|
||||
});
|
||||
|
||||
@ -339,10 +339,10 @@ pageEditBlockDOM.on("change", function() {
|
||||
break;
|
||||
}
|
||||
if ($(this).val() === "bar") {
|
||||
$("#PageEditMenu").removeClass("disabled");
|
||||
$("#PageEditMenu").slideUp();
|
||||
$("#PageEditMenuSpecial").removeClass("disabled");
|
||||
$("#PageEditMenuSpecial").slideUp();
|
||||
$("#pageEditMenu").removeClass("disabled");
|
||||
$("#pageEditMenu").slideUp();
|
||||
$("#pageEditMenuSpecial").removeClass("disabled");
|
||||
$("#pageEditMenuSpecial").slideUp();
|
||||
$("#pageEditHideTitleWrapper").removeClass("disabled");
|
||||
$("#pageEditHideTitleWrapper").slideUp();
|
||||
$("#pageEditbreadCrumbWrapper").removeClass("disabled");
|
||||
@ -356,10 +356,10 @@ pageEditBlockDOM.on("change", function() {
|
||||
$("#pageEditGroupWrapper").removeClass("disabled");
|
||||
$("#pageEditGroupWrapper").slideUp();
|
||||
} else {
|
||||
$("#PageEditMenu").addClass("disabled");
|
||||
$("#PageEditMenu").slideDown();
|
||||
$("#PageEditMenuSpecial").addClass("disabled");
|
||||
$("#PageEditMenuSpecial").slideDown();
|
||||
$("#pageEditMenu").addClass("disabled");
|
||||
$("#pageEditMenu").slideDown();
|
||||
$("#pageEditMenuSpecial").addClass("disabled");
|
||||
$("#pageEditMenuSpecial").slideDown();
|
||||
$("#pageEditHideTitleWrapper").addClass("disabled");
|
||||
$("#pageEditHideTitleWrapper").slideDown();
|
||||
$("#pageEditModuleIdWrapper").addClass("disabled");
|
||||
|
@ -89,8 +89,40 @@ $this->pages2Json();
|
||||
'value' => $this->getData(['page', $this->getUrl(2), 'content'])
|
||||
]); ?>
|
||||
<div class="row">
|
||||
<div class="col6">
|
||||
<div class="col6" id="pageEditMenu">
|
||||
<div class="block">
|
||||
<h4>Emplacements</h4>
|
||||
<?php if($this->getHierarchy($this->getUrl(2), false)): ?>
|
||||
<?php echo template::hidden('pageEditParentPageId', [
|
||||
'value' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
|
||||
]); ?>
|
||||
<?php else: ?>
|
||||
<?php echo template::select('pageEditParentPageId', $module::$pagesNoParentId, [
|
||||
'label' => 'Page parent',
|
||||
'selected' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
|
||||
]); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo template::select('pageEditPosition', [], [
|
||||
'label' => 'Position',
|
||||
'help' => 'Une page non affichée dans les menus est classée comme \'Page orpheline\' dans la liste des pages.'
|
||||
]); ?>
|
||||
<div class="row">
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('pageEditTargetBlank', true, 'Nouvel onglet', [
|
||||
'checked' => $this->getData(['page', $this->getUrl(2), 'targetBlank'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('pageEditDisable', true, 'Désactivée', [
|
||||
'checked' => $this->getData(['page', $this->getUrl(2), 'disable']),
|
||||
'help' => 'Une page désactivée figure dans le menu sans être cliquable, par exemple comme page parente sans contenu.'
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col6" id="pageEditBlockLayout">
|
||||
<div class="block" >
|
||||
<h4>Mise en page</h4>
|
||||
<?php echo template::select('pageEditBlock', $module::$pageBlocks, [
|
||||
'label' => 'Gabarits de page / Barre latérale',
|
||||
@ -141,42 +173,10 @@ $this->pages2Json();
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<div class="block" id="PageEditMenu">
|
||||
<h4>Emplacements</h4>
|
||||
<?php if($this->getHierarchy($this->getUrl(2), false)): ?>
|
||||
<?php echo template::hidden('pageEditParentPageId', [
|
||||
'value' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
|
||||
]); ?>
|
||||
<?php else: ?>
|
||||
<?php echo template::select('pageEditParentPageId', $module::$pagesNoParentId, [
|
||||
'label' => 'Page parent',
|
||||
'selected' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
|
||||
]); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo template::select('pageEditPosition', [], [
|
||||
'label' => 'Position',
|
||||
'help' => 'Une page non affichée dans les menus est classée comme \'Page orpheline\' dans la liste des pages.'
|
||||
]); ?>
|
||||
<div class="row">
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('pageEditTargetBlank', true, 'Nouvel onglet', [
|
||||
'checked' => $this->getData(['page', $this->getUrl(2), 'targetBlank'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('pageEditDisable', true, 'Désactivée', [
|
||||
'checked' => $this->getData(['page', $this->getUrl(2), 'disable']),
|
||||
'help' => 'Une page désactivée figure dans le menu sans être cliquable, par exemple comme page parente sans contenu.'
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block" id="PageEditMenuSpecial">
|
||||
<div class="col12" id="pageEditMenuSpecial">
|
||||
<div class="block">
|
||||
<h4>Options avancées d'emplacements</h4>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
|
@ -19,7 +19,7 @@ class redirection extends common {
|
||||
'index' => self::GROUP_VISITOR
|
||||
];
|
||||
|
||||
const REDIRECTION_VERSION = '1.2';
|
||||
const REDIRECTION_VERSION = '1.3';
|
||||
|
||||
/**
|
||||
* Configuration
|
||||
|
Loading…
Reference in New Issue
Block a user