Profil gallery
This commit is contained in:
parent
48de07f997
commit
c2d531872d
@ -372,9 +372,6 @@ class init extends common
|
||||
'add' => false,
|
||||
'option' => false,
|
||||
'theme' => false,
|
||||
'dirs' => false,
|
||||
'sortGalleries' => false,
|
||||
'sortPictures' => false,
|
||||
],
|
||||
'news' => [
|
||||
'add' => false,
|
||||
|
@ -598,6 +598,14 @@ class user extends common
|
||||
'config' => $this->getInput('profilEditNewsConfig', helper::FILTER_BOOLEAN),
|
||||
'option' => $this->getInput('profilEditNewsOption', helper::FILTER_BOOLEAN),
|
||||
],
|
||||
'gallery' => [
|
||||
'add' => $this->getInput('profilEditGalleryAdd', helper::FILTER_BOOLEAN),
|
||||
'edit' => $this->getInput('profilEditGalleryEdit', helper::FILTER_BOOLEAN),
|
||||
'delete' => $this->getInput('profilEditGalleryDelete', helper::FILTER_BOOLEAN),
|
||||
'config' => $this->getInput('profilEditGalleryConfig', helper::FILTER_BOOLEAN),
|
||||
'option' => $this->getInput('profilEditGalleryOption', helper::FILTER_BOOLEAN),
|
||||
'theme' => $this->getInput('profilEditGalleryConfig', helper::FILTER_BOOLEAN),
|
||||
],
|
||||
]
|
||||
]);
|
||||
|
||||
@ -666,7 +674,7 @@ class user extends common
|
||||
'page' => [
|
||||
'add' => $this->getInput('profilAddPageAdd', helper::FILTER_BOOLEAN),
|
||||
'edit' => $this->getInput('profilAddPageEdit', helper::FILTER_BOOLEAN),
|
||||
'delete' => $this->getInput('profilAddPageDElete', helper::FILTER_BOOLEAN),
|
||||
'delete' => $this->getInput('profilAddPageDelete', helper::FILTER_BOOLEAN),
|
||||
'duplicate' => $this->getInput('profilAddPageDuplicate', helper::FILTER_BOOLEAN),
|
||||
'module' => $this->getInput('profilAddPageModule', helper::FILTER_BOOLEAN),
|
||||
'cssEditor' => $this->getInput('profilAddPagecssEditor', helper::FILTER_BOOLEAN),
|
||||
@ -675,7 +683,7 @@ class user extends common
|
||||
'blog' => [
|
||||
'add' => $this->getInput('profilAddBlogAdd', helper::FILTER_BOOLEAN),
|
||||
'edit' => $this->getInput('profilAddBlogEdit', helper::FILTER_BOOLEAN),
|
||||
'delete' => $this->getInput('profilAddBlogDElete', helper::FILTER_BOOLEAN),
|
||||
'delete' => $this->getInput('profilAddBlogDelete', helper::FILTER_BOOLEAN),
|
||||
'config' => $this->getInput('profilAddBlogConfig', helper::FILTER_BOOLEAN),
|
||||
'option' => $this->getInput('profilAddBlogOption', helper::FILTER_BOOLEAN),
|
||||
'comment' => $this->getInput('profilAddBlogComment', helper::FILTER_BOOLEAN),
|
||||
@ -686,10 +694,18 @@ class user extends common
|
||||
'news' => [
|
||||
'add' => $this->getInput('profilAddNewsAdd', helper::FILTER_BOOLEAN),
|
||||
'edit' => $this->getInput('profilAddNewsEdit', helper::FILTER_BOOLEAN),
|
||||
'delete' => $this->getInput('profilAddNewsDElete', helper::FILTER_BOOLEAN),
|
||||
'delete' => $this->getInput('profilAddNewsDelete', helper::FILTER_BOOLEAN),
|
||||
'config' => $this->getInput('profilAddNewsConfig', helper::FILTER_BOOLEAN),
|
||||
'option' => $this->getInput('profilAddNewsOption', helper::FILTER_BOOLEAN),
|
||||
],
|
||||
'gallery' => [
|
||||
'add' => $this->getInput('profilAddGalleryAdd', helper::FILTER_BOOLEAN),
|
||||
'edit' => $this->getInput('profilAddGalleryEdit', helper::FILTER_BOOLEAN),
|
||||
'delete' => $this->getInput('profilAddGalleryDelete', helper::FILTER_BOOLEAN),
|
||||
'config' => $this->getInput('profilAddGalleryConfig', helper::FILTER_BOOLEAN),
|
||||
'option' => $this->getInput('profilAddGalleryOption', helper::FILTER_BOOLEAN),
|
||||
'theme' => $this->getInput('profilAddGalleryConfig', helper::FILTER_BOOLEAN),
|
||||
],
|
||||
]
|
||||
]);
|
||||
// Valeurs en sortie
|
||||
|
@ -151,6 +151,37 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4>
|
||||
<?php echo helper::translate('Galerie'); ?>
|
||||
</h4>
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilAddGalleryAdd', false, 'Ajouter'); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilAddGalleryEdit', false, 'Edit'); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilAddGalleryDelete', false, 'Supprimer'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilAddGalleryConfig', false, 'Configuration'); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilAddGalleryOption', false, 'Option'); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilAddGalleryTheme', false, 'Theme'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
|
@ -201,6 +201,49 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4>
|
||||
<?php echo helper::translate('Galerie'); ?>
|
||||
</h4>
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilEditGalleryAdd', false, 'Ajouter', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'add'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilEditGalleryEdit', false, 'Edit', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'edit'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilEditGalleryDelete', false, 'Supprimer', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'delete'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilEditGalleryConfig', false, 'Configuration', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'config'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilEditGalleryOption', false, 'Option', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'option'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('profilEditGalleryTheme', false, 'Theme', [
|
||||
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'theme'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
|
Loading…
Reference in New Issue
Block a user