Browse Source

Blog Balise de fermeture de commentaire - constantes dans les modules

Branche10.4
fredtempez 5 months ago
parent
commit
b5d31033ff
  1. 6
      CHANGES.md
  2. 2
      README.md
  3. 2
      core/core.php
  4. 9
      module/blog/blog.php
  5. 1
      module/blog/view/article/article.php
  6. 2
      module/blog/view/config/config.php
  7. 10
      module/form/form.php
  8. 2
      module/form/view/config/config.php
  9. 2
      module/form/view/data/data.php
  10. 11
      module/gallery/gallery.php
  11. 2
      module/gallery/view/config/config.php
  12. 2
      module/gallery/view/edit/edit.php
  13. 2
      module/gallery/view/theme/theme.php
  14. 9
      module/news/news.php
  15. 2
      module/news/view/config/config.php
  16. 9
      module/redirection/redirection.php
  17. 2
      module/redirection/view/config/config.php
  18. 9
      module/search/search.php
  19. 2
      module/search/view/config/config.php

6
CHANGES.md

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

2
README.md

@ -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.

2
core/core.php

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

9
module/blog/blog.php

@ -14,6 +14,14 @@
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_GROUP = 'group';
const EDIT_ALL = 'all';
@ -87,7 +95,6 @@ class blog extends common {
public static $users = [];
const BLOG_VERSION = '4.3';
/**
* Flux RSS

1
module/blog/view/article/article.php

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

2
module/blog/view/config/config.php

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

10
module/form/form.php

@ -16,6 +16,14 @@
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 = [
'config' => self::GROUP_MODERATOR,
'data' => self::GROUP_MODERATOR,
@ -32,7 +40,7 @@ class form extends common {
public static $pagination;
const FORM_VERSION = '2.7';
// Objets
const TYPE_MAIL = 'mail';

2
module/form/view/config/config.php

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

2
module/form/view/data/data.php

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

11
module/gallery/gallery.php

@ -16,10 +16,19 @@
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_DSC = 'SORT_DSC';
const SORT_HAND = 'SORT_HAND';
const GALLERY_VERSION = '2.5';
public static $directories = [];

2
module/gallery/view/config/config.php

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

2
module/gallery/view/edit/edit.php

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

2
module/gallery/view/theme/theme.php

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

9
module/news/news.php

@ -14,6 +14,14 @@
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 = [
'add' => self::GROUP_MODERATOR,
'config' => self::GROUP_MODERATOR,
@ -33,7 +41,6 @@ class news extends common {
false => 'Brouillon',
true => 'Publié'
];
const NEWS_VERSION = '2.0';
public static $users = [];

2
module/news/view/config/config.php

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

9
module/redirection/redirection.php

@ -14,12 +14,19 @@
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 = [
'config' => self::GROUP_MODERATOR,
'index' => self::GROUP_VISITOR
];
const REDIRECTION_VERSION = '1.4';
/**
* Configuration

2
module/redirection/view/config/config.php

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

9
module/search/search.php

@ -18,6 +18,14 @@
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 = [
'index' => self::GROUP_VISITOR,
'config' => self::GROUP_MODERATOR
@ -38,7 +46,6 @@ class search extends common {
400 => '400 caractères',
];
const SEARCH_VERSION = '1.2';
// Configuration vide
public function config() {

2
module/search/view/config/config.php

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