Blog Balise de fermeture de commentaire - constantes dans les modules

This commit is contained in:
fredtempez 2021-02-18 10:07:05 +01:00
parent 23de277cd6
commit b5d31033ff
19 changed files with 69 additions and 17 deletions

View File

@ -1,5 +1,11 @@
# Changelog # Changelog
## version 10.4.04
- Correction :
- Module Blog : balise non fermée dans les commentaires.
- Modifications :
-Constantes de modules.
## version 10.4.03 ## version 10.4.03
- Corrections : - Corrections :
- En-tête html : absence de la langue. - En-tête html : absence de la langue.

View File

@ -1,5 +1,5 @@
# ZwiiCMS 10.4.03 # ZwiiCMS 10.4.04
Zwii est un CMS sans base de données (flat-file) qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation. Zwii est un CMS sans base de données (flat-file) qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation.

View File

@ -44,7 +44,7 @@ class common {
const ACCESS_TIMER = 1800; const ACCESS_TIMER = 1800;
// Numéro de version // Numéro de version
const ZWII_VERSION = '10.4.03'; const ZWII_VERSION = '10.4.04';
const ZWII_UPDATE_CHANNEL = "v10"; const ZWII_UPDATE_CHANNEL = "v10";
public static $actions = []; public static $actions = [];

View File

@ -14,6 +14,14 @@
class blog extends common { class blog extends common {
const VERSION = '4.4';
const REALNAME = 'Blog';
const DELETE = true;
const UPDATE = true;
const DATADIRECTORY = [
'fr/module.json'
];
const EDIT_OWNER = 'owner'; const EDIT_OWNER = 'owner';
const EDIT_GROUP = 'group'; const EDIT_GROUP = 'group';
const EDIT_ALL = 'all'; const EDIT_ALL = 'all';
@ -87,7 +95,6 @@ class blog extends common {
public static $users = []; public static $users = [];
const BLOG_VERSION = '4.3';
/** /**
* Flux RSS * Flux RSS

View File

@ -144,6 +144,7 @@
? strftime('%d %B %Y - %H:%M', $comment['createdOn']) ? strftime('%d %B %Y - %H:%M', $comment['createdOn'])
: utf8_encode(strftime('%d %B %Y - %H:%M', $comment['createdOn'])); : utf8_encode(strftime('%d %B %Y - %H:%M', $comment['createdOn']));
?> ?>
</h4>
<?php echo $comment['content']; ?> <?php echo $comment['content']; ?>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>

View File

@ -47,6 +47,6 @@
<?php echo template::speech('Aucun article.'); ?> <?php echo template::speech('Aucun article.'); ?>
<?php endif; ?> <?php endif; ?>
<div class="moduleVersion">Version <div class="moduleVersion">Version
<?php echo $module::BLOG_VERSION; ?> <?php echo $module::VERSION; ?>
</div> </div>

View File

@ -16,6 +16,14 @@
class form extends common { class form extends common {
const VERSION = '2.8';
const REALNAME = 'Formulaire';
const DELETE = true;
const UPDATE = true;
const DATADIRECTORY = [
'fr/module.json'
];
public static $actions = [ public static $actions = [
'config' => self::GROUP_MODERATOR, 'config' => self::GROUP_MODERATOR,
'data' => self::GROUP_MODERATOR, 'data' => self::GROUP_MODERATOR,
@ -32,7 +40,7 @@ class form extends common {
public static $pagination; public static $pagination;
const FORM_VERSION = '2.7';
// Objets // Objets
const TYPE_MAIL = 'mail'; const TYPE_MAIL = 'mail';

View File

@ -164,5 +164,5 @@
</div> </div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>
<div class="moduleVersion">Version <div class="moduleVersion">Version
<?php echo $module::FORM_VERSION; ?> <?php echo $module::VERSION; ?>
</div> </div>

View File

@ -26,5 +26,5 @@
<?php echo template::table([11, 1], $module::$data, ['Données', '']); ?> <?php echo template::table([11, 1], $module::$data, ['Données', '']); ?>
<?php echo $module::$pagination; ?> <?php echo $module::$pagination; ?>
<div class="moduleVersion">Version <div class="moduleVersion">Version
<?php echo $module::FORM_VERSION; ?> <?php echo $module::VERSION; ?>
</div> </div>

View File

@ -16,10 +16,19 @@
class gallery extends common { class gallery extends common {
const VERSION = '2.6';
const REALNAME = 'Galerie';
const DELETE = true;
const UPDATE = true;
const DATADIRECTORY = [
'fr/module.json'
];
const SORT_ASC = 'SORT_ASC'; const SORT_ASC = 'SORT_ASC';
const SORT_DSC = 'SORT_DSC'; const SORT_DSC = 'SORT_DSC';
const SORT_HAND = 'SORT_HAND'; const SORT_HAND = 'SORT_HAND';
const GALLERY_VERSION = '2.5';
public static $directories = []; public static $directories = [];

View File

@ -58,6 +58,6 @@
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="moduleVersion">Version <div class="moduleVersion">Version
<?php echo $module::GALLERY_VERSION; ?> <?php echo $module::VERSION; ?>
</div> </div>
</div> </div>

View File

@ -64,6 +64,6 @@
</div> </div>
<div class="moduleVersion">Version <div class="moduleVersion">Version
<?php echo $module::GALLERY_VERSION; ?> <?php echo $module::VERSION; ?>
</div> </div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>

View File

@ -139,7 +139,7 @@
<div class="row"> <div class="row">
<div class="col12"> <div class="col12">
<div class="moduleVersion">Version <div class="moduleVersion">Version
<?php echo $module::GALLERY_VERSION; ?> <?php echo $module::VERSION; ?>
</div> </div>
</div> </div>
</div> </div>

View File

@ -14,6 +14,14 @@
class news extends common { class news extends common {
const VERSION = '2.1';
const REALNAME = 'Actualités';
const DELETE = true;
const UPDATE = true;
const DATADIRECTORY = [
'fr/module.json'
];
public static $actions = [ public static $actions = [
'add' => self::GROUP_MODERATOR, 'add' => self::GROUP_MODERATOR,
'config' => self::GROUP_MODERATOR, 'config' => self::GROUP_MODERATOR,
@ -33,7 +41,6 @@ class news extends common {
false => 'Brouillon', false => 'Brouillon',
true => 'Publié' true => 'Publié'
]; ];
const NEWS_VERSION = '2.0';
public static $users = []; public static $users = [];

View File

@ -48,5 +48,5 @@
<?php endif; ?> <?php endif; ?>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>
<div class="moduleVersion">Version <div class="moduleVersion">Version
<?php echo $module::NEWS_VERSION; ?> <?php echo $module::VERSION; ?>
</div> </div>

View File

@ -14,12 +14,19 @@
class redirection extends common { class redirection extends common {
const VERSION = '1.5';
const REALNAME = 'Redirection';
const DELETE = true;
const UPDATE = true;
const DATADIRECTORY = [
'fr/module.json'
];
public static $actions = [ public static $actions = [
'config' => self::GROUP_MODERATOR, 'config' => self::GROUP_MODERATOR,
'index' => self::GROUP_VISITOR 'index' => self::GROUP_VISITOR
]; ];
const REDIRECTION_VERSION = '1.4';
/** /**
* Configuration * Configuration

View File

@ -37,5 +37,5 @@
</div> </div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>
<div class="moduleVersion">Version <div class="moduleVersion">Version
<?php echo $module::REDIRECTION_VERSION; ?> <?php echo $module::VERSION; ?>
</div> </div>

View File

@ -18,6 +18,14 @@
class search extends common { class search extends common {
const VERSION = '1.3';
const REALNAME = 'Recherche';
const DELETE = true;
const UPDATE = true;
const DATADIRECTORY = [
'fr/module.json'
];
public static $actions = [ public static $actions = [
'index' => self::GROUP_VISITOR, 'index' => self::GROUP_VISITOR,
'config' => self::GROUP_MODERATOR 'config' => self::GROUP_MODERATOR
@ -38,7 +46,6 @@ class search extends common {
400 => '400 caractères', 400 => '400 caractères',
]; ];
const SEARCH_VERSION = '1.2';
// Configuration vide // Configuration vide
public function config() { public function config() {

View File

@ -68,5 +68,5 @@
</div> </div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>
<div class="moduleVersion">Version <div class="moduleVersion">Version
<?php echo $module::SEARCH_VERSION; ?> <?php echo $module::VERSION; ?>
</div> </div>