update + bricole

This commit is contained in:
Deltacms 2024-02-08 09:14:45 +01:00
parent c9899a7396
commit 25272e1b0b
2 changed files with 12 additions and 2 deletions

View File

@ -223,7 +223,7 @@ if( ! file_exists( 'core/vendor/tinymce/langs/'.$lang_page.'.js' )){
echo '<script> var lang_admin = "'.$lang_page.'"; </script>';
// Vendor tinymce ?>
<script src="core/vendor/tinymce/tinymce.min.js"></script><script src="core/vendor/tinymce/init.js"></script>
<br>
<div class="row">
<div class="col4 offset4">
<?php echo template::button('buttonCommentShowForm', [
@ -232,7 +232,7 @@ echo '<script> var lang_admin = "'.$lang_page.'"; </script>';
]); ?>
</div>
</div>
<br>
<div id="formCommentVisible" style="display: none;">
<?php // Formulaire
$action = helper::baseUrl().$this->getUrl().'#commentAnchor';

View File

@ -180,6 +180,16 @@ if ($this->getData(['core', 'dataVersion']) < 4502) {
$this->setData(['core', 'dataVersion', 4502]);
}
if ($this->getData(['core', 'dataVersion']) < 5001) {
$this->setData([ 'config', 'social', 'comment', 'button', '']);
$this->setData([ 'config', 'social', 'comment', 'group', '']);
$this->setData([ 'config', 'social', 'comment', 'user', '']);
$this->setData([ 'config', 'social', 'comment', 'subject', '']);
$this->setData([ 'config', 'social', 'comment', 'captcha', true]);
$this->setData([ 'config', 'social', 'comment', 'nbItemPage', '3']);
copy ('core/module/install/ressource/database_fr/base/comment.json', self::DATA_DIR . 'base' . '/comment.json');
foreach( $this->getData(['config', 'i18n']) as $key => $value){
if( $value === 'site') copy ('core/module/install/ressource/database_fr/base/comment.json', self::DATA_DIR . $key . '/comment.json');
}
$this->setData(['core', 'dataVersion', 5001]);
}
?>