Configuration Blog
This commit is contained in:
parent
0cccc76b8e
commit
d1a5627494
|
@ -116,9 +116,9 @@ class agenda extends common {
|
|||
copy( './module/agenda/ressource/file/source/agenda/adresses/.htaccess', './site/file/source/agenda/adresses/.htaccess');
|
||||
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','5.2']);
|
||||
}
|
||||
// Mise à jour vers la version 5.4
|
||||
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '5.4', '<') ) {
|
||||
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','5.4']);
|
||||
// Mise à jour vers la version 5.5
|
||||
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '5.5', '<') ) {
|
||||
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','5.5']);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -123,6 +123,10 @@ class blog extends common {
|
|||
$this->setData(['module', $this->getUrl(0), 'texts', 'ReadMore', 'Lire la suite']);
|
||||
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','6.3']);
|
||||
}
|
||||
// Version 6.5
|
||||
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '6.5', '<') ) {
|
||||
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','6.5']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -14,11 +14,11 @@ echo template::formOpen('blogConfig'); ?>
|
|||
]); ?>
|
||||
</div>
|
||||
<div class="col2 offset4">
|
||||
<?php echo template::button('blogConfigTexts', [
|
||||
<?php if($this->getUser('group') >= self::GROUP_MODERATOR) { echo template::button('blogConfigTexts', [
|
||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/texts',
|
||||
'ico' => '',
|
||||
'value' => $text['blog_view']['config'][13]
|
||||
]); ?>
|
||||
]); } ?>
|
||||
</div>
|
||||
<div class="col2">
|
||||
<?php echo template::button('blogConfigAdd', [
|
||||
|
@ -33,7 +33,7 @@ echo template::formOpen('blogConfig'); ?>
|
|||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row" <?php if($this->getUser('group') < self::GROUP_MODERATOR) { echo 'style="display: none;"'; } ?> >
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4><?php echo $text['blog_view']['config'][3]; ?></h4>
|
||||
|
|
Loading…
Reference in New Issue