forked from ZwiiCMS-Team/ZwiiCMS
[9.0.19] fix private pages shown in sitemap
This commit is contained in:
parent
8d224d2ab6
commit
fee1487cc4
@ -28,7 +28,7 @@ class common {
|
|||||||
const GROUP_ADMIN = 3;
|
const GROUP_ADMIN = 3;
|
||||||
|
|
||||||
// Numéro de version stable
|
// Numéro de version stable
|
||||||
const ZWII_VERSION = '9.0.18';
|
const ZWII_VERSION = '9.0.19';
|
||||||
|
|
||||||
public static $actions = [];
|
public static $actions = [];
|
||||||
public static $coreModuleIds = [
|
public static $coreModuleIds = [
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
<?php foreach($this->getHierarchy() as $parentId => $childIds): ?>
|
<?php foreach($this->getHierarchy() as $parentId => $childIds): ?>
|
||||||
<li>
|
<li>
|
||||||
<?php if ($this->getData(['page', $parentId, 'disable']) == false ||
|
<?php if ($this->getData(['page', $parentId, 'disable']) == false ||
|
||||||
$this->getData(['page', $parentId, 'block']) !== 'bar') { ?>
|
$this->getData(['page', $parentId, 'block']) !== 'bar' ||
|
||||||
|
$this->getUser('group') >= $module::$actions[$action]) { ?>
|
||||||
<a href="<?php echo helper::baseUrl() . $parentId; ?>"><?php echo $this->getData(['page', $parentId, 'title']); ?></a>
|
<a href="<?php echo helper::baseUrl() . $parentId; ?>"><?php echo $this->getData(['page', $parentId, 'title']); ?></a>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<?php echo $this->getData(['page', $parentId, 'title']); }?>
|
<?php echo $this->getData(['page', $parentId, 'title']); }?>
|
||||||
@ -10,7 +11,8 @@
|
|||||||
<?php foreach($childIds as $childId): ?>
|
<?php foreach($childIds as $childId): ?>
|
||||||
<li>
|
<li>
|
||||||
<?php if ($this->getData(['page', $childId, 'disable']) == false ||
|
<?php if ($this->getData(['page', $childId, 'disable']) == false ||
|
||||||
$this->getData(['page', $childId, 'block']) == 'bar') { ?>
|
$this->getData(['page', $childId, 'block']) == 'bar' ||
|
||||||
|
$this->getUser('group') >= $module::$actions[$action]) { ?>
|
||||||
<a href="<?php echo helper::baseUrl() . $childId; ?>"><?php echo $this->getData(['page', $childId, 'title']); ?></a>
|
<a href="<?php echo helper::baseUrl() . $childId; ?>"><?php echo $this->getData(['page', $childId, 'title']); ?></a>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<?php echo $this->getData(['page', $childId, 'title']); }?>
|
<?php echo $this->getData(['page', $childId, 'title']); }?>
|
||||||
|
2
core/vendor/tinymce/link_list.json
vendored
2
core/vendor/tinymce/link_list.json
vendored
@ -1 +1 @@
|
|||||||
[{"title":"Accueil","value":"?accueil","menu":[{"title":"Galeries","value":"?galeries"},{"title":"Enfant","value":"?enfant"},{"title":"Mise en page","value":"?mise-en-page"},{"title":"Menu lat\u00e9ral","value":"?menu-lateral"}]},{"title":"Priv\u00e9e","value":"?privee"},{"title":"Blog","value":"?blog"},{"title":"Site de Zwii","value":"?site-de-zwii"},{"title":"Contact","value":"?contact"}]
|
[{"title":"Accueil","value":"?accueil","menu":[{"title":"Galeries","value":"?galeries"},{"title":"Enfant","value":"?enfant"},{"title":"Mise en page","value":"?mise-en-page"},{"title":"Menu lat\u00e9ral","value":"?menu-lateral"}]},{"title":"Blog","value":"?blog"},{"title":"Site de Zwii","value":"?site-de-zwii"},{"title":"Contact","value":"?contact"}]
|
Loading…
Reference in New Issue
Block a user