Mise à jour des modules 1.10.01

This commit is contained in:
Fred Tempez 2024-05-08 18:47:43 +02:00
parent 397bdee655
commit e100a580ad
65 changed files with 37 additions and 18 deletions

View File

@ -51,7 +51,7 @@ class common
const ACCESS_TIMER = 1800; const ACCESS_TIMER = 1800;
// Numéro de version // Numéro de version
const ZWII_VERSION = '1.10.00'; const ZWII_VERSION = '1.10.01';
// URL autoupdate // URL autoupdate
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/'; const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/';

View File

@ -16,7 +16,7 @@
class blog extends common class blog extends common
{ {
const VERSION = '7.6'; const VERSION = '7.8';
const REALNAME = 'Blog'; const REALNAME = 'Blog';
const DELETE = true; const DELETE = true;
const UPDATE = '0.0'; const UPDATE = '0.0';
@ -196,9 +196,9 @@ class blog extends common
$feeds = new \FeedWriter\RSS2(); $feeds = new \FeedWriter\RSS2();
// En-tête // En-tête
$feeds->setTitle($this->getData(['page', $this->getUrl(0), 'title'])); $feeds->setTitle($this->getData(['page', $this->getUrl(0), 'title']) ? $this->getData(['page', $this->getUrl(0), 'title']): '');
$feeds->setLink(helper::baseUrl() . $this->getUrl(0)); $feeds->setLink(helper::baseUrl() . $this->getUrl(0));
$feeds->setDescription($this->getData(['page', $this->getUrl(0), 'metaDescription'])); $feeds->setDescription($this->getData(['page', $this->getUrl(0), 'metaDescription']) ? $this->getData(['page', $this->getUrl(0), 'metaDescription']): '');
$feeds->setChannelElement('language', 'fr-FR'); $feeds->setChannelElement('language', 'fr-FR');
$feeds->setDate(date('r', time())); $feeds->setDate(date('r', time()));
$feeds->addGenerator(); $feeds->addGenerator();
@ -361,7 +361,7 @@ class blog extends common
self::$dateFormat = $this->getData(['module', $this->getUrl(0), 'config', 'dateFormat']); self::$dateFormat = $this->getData(['module', $this->getUrl(0), 'config', 'dateFormat']);
self::$timeFormat = $this->getData(['module', $this->getUrl(0), 'config', 'timeFormat']); self::$timeFormat = $this->getData(['module', $this->getUrl(0), 'config', 'timeFormat']);
self::$comments[] = [ self::$comments[] = [
helper::dateUTF8(self::$dateFormat, $comment['createdOn']) . ' - ' . helper::dateUTF8(self::$timeFormat, $comment['createdOn']), helper::dateUTF8(self::$dateFormat, $comment['createdOn'], self::$i18nUI) . ' - ' . helper::dateUTF8(self::$timeFormat, $comment['createdOn'], self::$i18nUI),
$comment['content'], $comment['content'],
$comment['userId'] ? $this->getData(['user', $comment['userId'], 'firstname']) . ' ' . $this->getData(['user', $comment['userId'], 'lastname']) : $comment['author'], $comment['userId'] ? $this->getData(['user', $comment['userId'], 'firstname']) . ' ' . $this->getData(['user', $comment['userId'], 'lastname']) : $comment['author'],
$buttonApproval, $buttonApproval,
@ -530,7 +530,7 @@ class blog extends common
'<a href="' . helper::baseurl() . $this->getUrl(0) . '/' . $articleIds[$i] . '" target="_blank" >' . '<a href="' . helper::baseurl() . $this->getUrl(0) . '/' . $articleIds[$i] . '" target="_blank" >' .
$this->getData(['module', $this->getUrl(0), 'posts', $articleIds[$i], 'title']) . $this->getData(['module', $this->getUrl(0), 'posts', $articleIds[$i], 'title']) .
'</a>', '</a>',
helper::dateUTF8(self::$dateFormat, $this->getData(['module', $this->getUrl(0), 'posts', $articleIds[$i], 'publishedOn'])) . ' - ' . helper::dateUTF8(self::$timeFormat, $this->getData(['module', $this->getUrl(0), 'posts', $articleIds[$i], 'publishedOn'])), helper::dateUTF8(self::$dateFormat, $this->getData(['module', $this->getUrl(0), 'posts', $articleIds[$i], 'publishedOn']), self::$i18nUI) . ' - ' . helper::dateUTF8(self::$timeFormat, $this->getData(['module', $this->getUrl(0), 'posts', $articleIds[$i], 'publishedOn']), self::$i18nUI),
self::$states[$this->getData(['module', $this->getUrl(0), 'posts', $articleIds[$i], 'state'])], self::$states[$this->getData(['module', $this->getUrl(0), 'posts', $articleIds[$i], 'state'])],
// Bouton pour afficher les commentaires de l'article // Bouton pour afficher les commentaires de l'article
template::button('blogConfigComment' . $articleIds[$i], [ template::button('blogConfigComment' . $articleIds[$i], [

View File

@ -1,3 +1,8 @@
# Version 7.8
- Le flux RSS ne fonctionne pas si les méta de la page sont vides.
# Version 7.7
- Contrôle de la variable de session liée au contenu. Evite des erreurs lorsque plusieurs onglets sont ouverts.
# Version 7.6 # Version 7.6
- Mise à jour RSS Feed - Mise à jour RSS Feed
# Version 7.5 # Version 7.5

0
module/blog/ressource/feed-icon-16.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 652 B

After

Width:  |  Height:  |  Size: 652 B

0
module/blog/vendor/FeedWriter/ATOM.php vendored Normal file → Executable file
View File

0
module/blog/vendor/FeedWriter/Feed.php vendored Normal file → Executable file
View File

0
module/blog/vendor/FeedWriter/InvalidOperationException.php vendored Normal file → Executable file
View File

0
module/blog/vendor/FeedWriter/Item.php vendored Normal file → Executable file
View File

0
module/blog/vendor/FeedWriter/README.md vendored Normal file → Executable file
View File

0
module/blog/vendor/FeedWriter/RSS1.php vendored Normal file → Executable file
View File

0
module/blog/vendor/FeedWriter/RSS2.php vendored Normal file → Executable file
View File

0
module/blog/vendor/furl/LICENSE vendored Normal file → Executable file
View File

0
module/blog/vendor/furl/README.md vendored Normal file → Executable file
View File

0
module/blog/vendor/furl/inc.json vendored Normal file → Executable file
View File

0
module/blog/vendor/furl/jquery.furl.js vendored Normal file → Executable file
View File

0
module/blog/view/add/add.css Normal file → Executable file
View File

0
module/blog/view/add/add.js.php Normal file → Executable file
View File

0
module/blog/view/add/add.php Normal file → Executable file
View File

0
module/blog/view/article/article.css Normal file → Executable file
View File

0
module/blog/view/article/article.js.php Normal file → Executable file
View File

0
module/blog/view/comment/comment.css Normal file → Executable file
View File

0
module/blog/view/comment/comment.js.php Normal file → Executable file
View File

0
module/blog/view/comment/comment.php Normal file → Executable file
View File

0
module/blog/view/config/config.css Normal file → Executable file
View File

0
module/blog/view/config/config.js.php Normal file → Executable file
View File

0
module/blog/view/config/config.php Normal file → Executable file
View File

0
module/blog/view/edit/edit.css Normal file → Executable file
View File

0
module/blog/view/edit/edit.js.php Normal file → Executable file
View File

0
module/blog/view/edit/edit.php Normal file → Executable file
View File

0
module/blog/view/index/index.css Normal file → Executable file
View File

0
module/blog/view/option/option.css Normal file → Executable file
View File

0
module/blog/view/rss/rss.php Normal file → Executable file
View File

View File

@ -1,3 +1,5 @@
# Version 4.3
- Contrôle de la variable de session liée au contenu. Evite des erreurs lorsque plusieurs onglets sont ouverts.
# Version 4.2 # Version 4.2
- Termes des commandes de profils - Termes des commandes de profils
# Version 4.1 # Version 4.1

View File

@ -17,7 +17,7 @@
class form extends common class form extends common
{ {
const VERSION = '4.2'; const VERSION = '4.3';
const REALNAME = 'Formulaire'; const REALNAME = 'Formulaire';
const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json) const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json)

0
module/form/vendor/html-sortable/html-sortable.min.js vendored Normal file → Executable file
View File

0
module/form/vendor/html-sortable/inc.json vendored Normal file → Executable file
View File

0
module/form/vendor/html-sortable/lisezmoi.txt vendored Normal file → Executable file
View File

0
module/form/view/config/config.css Normal file → Executable file
View File

0
module/form/view/data/data.css Normal file → Executable file
View File

View File

@ -1,3 +1,5 @@
# Version 4.2
- Contrôle de la variable de session liée au contenu. Evite des erreurs lorsque plusieurs onglets sont ouverts.
# Version 4.1 # Version 4.1
- Termes des commandes de profils - Termes des commandes de profils
# Version 4.0 # Version 4.0

View File

@ -18,7 +18,7 @@ class gallery extends common
{ {
const VERSION = '4.1'; const VERSION = '4.2';
const REALNAME = 'Galerie'; const REALNAME = 'Galerie';
const DATADIRECTORY = self::DATA_DIR . 'gallery/'; const DATADIRECTORY = self::DATA_DIR . 'gallery/';

0
module/gallery/ressource/theme.css Normal file → Executable file
View File

0
module/gallery/ressource/vartheme.css Normal file → Executable file
View File

0
module/gallery/vendor/tablednd/inc.json vendored Normal file → Executable file
View File

0
module/gallery/vendor/tablednd/lisez-moi.txt vendored Normal file → Executable file
View File

0
module/gallery/vendor/tablednd/tablednd.min.js vendored Normal file → Executable file
View File

0
module/gallery/view/config/config.css Normal file → Executable file
View File

0
module/gallery/view/edit/edit.css Normal file → Executable file
View File

0
module/gallery/view/theme/theme.css Normal file → Executable file
View File

View File

@ -1,3 +1,7 @@
# Version 5.7
- Le flux RSS ne fonctionne pas si les méta de la page sont vides.
# Version 5.6
- Contrôle de la variable de session liée au contenu. Evite des erreurs lorsque plusieurs onglets sont ouverts.
# Version 5.5 # Version 5.5
- Mise à jour RSS Feed - Mise à jour RSS Feed
# Version 5.4 # Version 5.4

View File

@ -16,7 +16,7 @@
class news extends common class news extends common
{ {
const VERSION = '5.5'; const VERSION = '5.7';
const REALNAME = 'News'; const REALNAME = 'News';
const DATADIRECTORY = self::DATA_DIR . 'news/'; const DATADIRECTORY = self::DATA_DIR . 'news/';
@ -124,9 +124,9 @@ class news extends common
$feeds = new \FeedWriter\RSS2(); $feeds = new \FeedWriter\RSS2();
// En-tête // En-tête
$feeds->setTitle($this->getData(['page', $this->getUrl(0), 'title'])); $feeds->setTitle($this->getData(['page', $this->getUrl(0), 'title']) ? $this->getData(['page', $this->getUrl(0), 'title']): '');
$feeds->setLink(helper::baseUrl() . $this->getUrl(0)); $feeds->setLink(helper::baseUrl() . $this->getUrl(0));
$feeds->setDescription($this->getData(['page', $this->getUrl(0), 'metaDescription'])); $feeds->setDescription($this->getData(['page', $this->getUrl(0), 'metaDescription']) ? $this->getData(['page', $this->getUrl(0), 'metaDescription']): '');
$feeds->setChannelElement('language', 'fr-FR'); $feeds->setChannelElement('language', 'fr-FR');
$feeds->setDate(date('r', time())); $feeds->setDate(date('r', time()));
$feeds->addGenerator(); $feeds->addGenerator();

View File

@ -3,7 +3,7 @@
<div class="col1"> <div class="col1">
<?php echo template::button('newsConfigBack', [ <?php echo template::button('newsConfigBack', [
'class' => 'buttonGrey', 'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0). '/' . self::$siteContent, 'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0) . '/' . self::$siteContent,
'value' => template::ico('left') 'value' => template::ico('left')
]); ?> ]); ?>
</div> </div>

View File

@ -1,3 +1,5 @@
# Version 2.2
- Contrôle de la variable de session liée au contenu. Evite des erreurs lorsque plusieurs onglets sont ouverts.
# Version 2.1 # Version 2.1
- Edition du module ou de la page impossible. - Edition du module ou de la page impossible.
# Version 2.0 # Version 2.0

View File

@ -16,7 +16,7 @@
class redirection extends common class redirection extends common
{ {
const VERSION = '2.1'; const VERSION = '2.2';
const REALNAME = 'Redirection'; const REALNAME = 'Redirection';
const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json) const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json)

0
module/redirection/view/config/config.css Normal file → Executable file
View File

0
module/redirection/view/index/index.css Normal file → Executable file
View File

View File

@ -19,7 +19,7 @@
core.confirm( core.confirm(
message, message,
function() { function() {
$(location).attr("href", "<?php echo helper::baseUrl(); ?>page/edit/<?php echo $this->getUrl(0) . '/' . self::$siteContent; ?>"); $(location).attr("href", "<?php echo helper::baseUrl(); ?>page/edit/<?php echo $this->getUrl(0); ?>");
}, },
function() { function() {
$(location).attr("href", "<?php echo helper::baseUrl() . $this->getUrl(); ?>/force"); $(location).attr("href", "<?php echo helper::baseUrl() . $this->getUrl(); ?>/force");

View File

@ -1,3 +1,5 @@
# Version 3.2
- Contrôle de la variable de session liée au contenu. Evite des erreurs lorsque plusieurs onglets sont ouverts.
# Version 3.1 # Version 3.1
- Initialise un module installé dans une page sans avoir ouvert la page de configuration sans lancer de mise à jour. - Initialise un module installé dans une page sans avoir ouvert la page de configuration sans lancer de mise à jour.
# Version 3.0 # Version 3.0

View File

@ -20,7 +20,7 @@
class search extends common class search extends common
{ {
const VERSION = '3.1'; const VERSION = '3.2';
const REALNAME = 'Recherche'; const REALNAME = 'Recherche';
const DATADIRECTORY = self::DATA_DIR . 'search/'; const DATADIRECTORY = self::DATA_DIR . 'search/';

0
module/search/view/config/config.css Normal file → Executable file
View File

0
module/search/view/index/index.css Normal file → Executable file
View File

View File

@ -1,3 +1,5 @@
# Version 6.5
- Contrôle de la variable de session liée au contenu. Evite des erreurs lorsque plusieurs onglets sont ouverts.
# Version 6.4 # Version 6.4
- Corrige plusieurs bugs dans les fonctions de tri - Corrige plusieurs bugs dans les fonctions de tri
# Version 6.3 # Version 6.3