mise à jour blog 6.1
This commit is contained in:
parent
4aadb02de3
commit
8c82f617a4
10
module/blog/blog.php
Normal file → Executable file
10
module/blog/blog.php
Normal file → Executable file
@ -15,8 +15,10 @@
|
||||
|
||||
class blog extends common {
|
||||
|
||||
const VERSION = '6.0';
|
||||
const VERSION = '6.1';
|
||||
const REALNAME = 'Blog';
|
||||
const DELETE = true;
|
||||
const UPDATE = '0.0';
|
||||
const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json)
|
||||
|
||||
const EDIT_OWNER = 'owner';
|
||||
@ -868,7 +870,11 @@ class blog extends common {
|
||||
if($articlePublishedOn <= time() AND $articleIdsStates[$articleId]) {
|
||||
$articleIds[] = $articleId;
|
||||
// Nombre de commentaires approuvés par article
|
||||
self::$comments [$articleId] = count ( $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'comment']));
|
||||
if ( is_array($this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'comment'])) ) {
|
||||
self::$comments [$articleId] = count ( $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'comment']));
|
||||
} else {
|
||||
self::$comments [$articleId] = '0';
|
||||
}
|
||||
}
|
||||
}
|
||||
// Pagination
|
||||
|
2
module/blog/changes.md
Normal file → Executable file
2
module/blog/changes.md
Normal file → Executable file
@ -1,3 +1,5 @@
|
||||
# version 6.1
|
||||
- Icône RSS, lien incorrectd ans l'article.
|
||||
# version 6
|
||||
- mise à la norme avec le module news : le formulaire est sorti de l'écran principal
|
||||
- Présentation moderner de la liste des articles
|
||||
|
0
module/blog/vendor/FeedWriter/ATOM.php
vendored
Normal file → Executable file
0
module/blog/vendor/FeedWriter/ATOM.php
vendored
Normal file → Executable file
0
module/blog/vendor/FeedWriter/Feed.php
vendored
Normal file → Executable file
0
module/blog/vendor/FeedWriter/Feed.php
vendored
Normal file → Executable file
0
module/blog/vendor/FeedWriter/InvalidOperationException.php
vendored
Normal file → Executable file
0
module/blog/vendor/FeedWriter/InvalidOperationException.php
vendored
Normal file → Executable file
0
module/blog/vendor/FeedWriter/Item.php
vendored
Normal file → Executable file
0
module/blog/vendor/FeedWriter/Item.php
vendored
Normal file → Executable file
0
module/blog/vendor/FeedWriter/RSS1.php
vendored
Normal file → Executable file
0
module/blog/vendor/FeedWriter/RSS1.php
vendored
Normal file → Executable file
0
module/blog/vendor/FeedWriter/RSS2.php
vendored
Normal file → Executable file
0
module/blog/vendor/FeedWriter/RSS2.php
vendored
Normal file → Executable file
0
module/blog/vendor/furl/LICENSE
vendored
Normal file → Executable file
0
module/blog/vendor/furl/LICENSE
vendored
Normal file → Executable file
0
module/blog/vendor/furl/README.md
vendored
Normal file → Executable file
0
module/blog/vendor/furl/README.md
vendored
Normal file → Executable file
0
module/blog/vendor/furl/inc.json
vendored
Normal file → Executable file
0
module/blog/vendor/furl/inc.json
vendored
Normal file → Executable file
0
module/blog/vendor/furl/jquery.furl.js
vendored
Normal file → Executable file
0
module/blog/vendor/furl/jquery.furl.js
vendored
Normal file → Executable file
0
module/blog/view/add/add.js.php
Normal file → Executable file
0
module/blog/view/add/add.js.php
Normal file → Executable file
0
module/blog/view/add/add.php
Normal file → Executable file
0
module/blog/view/add/add.php
Normal file → Executable file
0
module/blog/view/article/article.js.php
Normal file → Executable file
0
module/blog/view/article/article.js.php
Normal file → Executable file
0
module/blog/view/article/article.php
Normal file → Executable file
0
module/blog/view/article/article.php
Normal file → Executable file
0
module/blog/view/comment/comment.js.php
Normal file → Executable file
0
module/blog/view/comment/comment.js.php
Normal file → Executable file
0
module/blog/view/comment/comment.php
Normal file → Executable file
0
module/blog/view/comment/comment.php
Normal file → Executable file
0
module/blog/view/config/config.js.php
Normal file → Executable file
0
module/blog/view/config/config.js.php
Normal file → Executable file
0
module/blog/view/config/config.php
Normal file → Executable file
0
module/blog/view/config/config.php
Normal file → Executable file
0
module/blog/view/edit/edit.js.php
Normal file → Executable file
0
module/blog/view/edit/edit.js.php
Normal file → Executable file
0
module/blog/view/edit/edit.php
Normal file → Executable file
0
module/blog/view/edit/edit.php
Normal file → Executable file
6
module/blog/view/index/index.php
Normal file → Executable file
6
module/blog/view/index/index.php
Normal file → Executable file
@ -121,7 +121,7 @@
|
||||
<?php echo count($article['comment']); ?>
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<?php echo template::ico('comment', 'left'); ?>
|
||||
<?php echo template::ico('comment', ['margin' => 'left']); ?>
|
||||
</div>
|
||||
<div class="blogDate">
|
||||
<?php echo template::ico('calendar-empty'); ?>
|
||||
@ -130,8 +130,8 @@
|
||||
: utf8_encode(strftime('%d %B %Y', $article['publishedOn'])); ?>
|
||||
</div>
|
||||
<p class="blogContent">
|
||||
<?php $length = $this->getData(['module',$this->getUrl(0), 'config', 'articlesLenght']) !== 0 ? $this->getData(['module',$this->getUrl(0), 'config', 'articlesLenght']) : 500 ?>
|
||||
<?php echo helper::subword(strip_tags($article['content'],'<br><p>'), 0, $length); ?>...
|
||||
<?php $lenght = $this->getData(['module',$this->getUrl(0), 'config', 'articlesLenght']) !== 0 ? $this->getData(['module',$this->getUrl(0), 'config', 'articlesLenght']) : 500 ?>
|
||||
<?php echo helper::subword(strip_tags($article['content'],'<br><p>'), 0, $lenght); ?>...
|
||||
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/' . $articleId; ?>">Lire la suite</a>
|
||||
</p>
|
||||
</div>
|
||||
|
0
module/blog/view/option/option.css
Normal file → Executable file
0
module/blog/view/option/option.css
Normal file → Executable file
0
module/blog/view/option/option.php
Normal file → Executable file
0
module/blog/view/option/option.php
Normal file → Executable file
0
module/blog/view/rss/rss.php
Normal file → Executable file
0
module/blog/view/rss/rss.php
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user