URL dans les pages

This commit is contained in:
Fred Tempez 2020-11-16 14:55:46 +01:00
parent d4d336d730
commit 24f463b77e
8 changed files with 48 additions and 19 deletions

View File

@ -457,6 +457,7 @@ class blog extends common {
for($i = $pagination['first']; $i < $pagination['last']; $i++) {
self::$comments[$commentIds[$i]] = $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'comment', $commentIds[$i]]);
}
self::$rssUrl = helper::baseUrl() . $this->getUrl(0) . '/rss';
// Valeurs en sortie
$this->addOutput([
'showBarEditButton' => true,

View File

@ -53,3 +53,12 @@
}
#rssFeed {
text-align: right;
float: right;
}
#rssFeed p {
display: inline;
vertical-align: top;
margin-left: 5px;
}

View File

@ -37,6 +37,13 @@
<?php echo $this->getData(['user', $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'userId']), 'firstname']); ?>
<?php echo $this->getData(['user', $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'userId']), 'lastname']); ?>
</p>
<?php echo template::formClose(); ?>
<!-- Bloc RSS-->
<div id="rssFeed">
<a type="application/rss+xml" href="<?php echo $module::$rssUrl ?> ">
<img src='module/news/ressource/feed-icon-16.gif' /><p>Syndication RSS</p>
</a>
</div>
<?php if($this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'closeComment'])): ?>
<p>Cet article ne reçoit pas de commentaire.</p>
<?php else: ?>
@ -106,9 +113,7 @@
</div>
</div>
</div>
<?php echo template::formClose(); ?>
<?php endif;?>
<div class="row">
<div class="col12">
<?php foreach($module::$comments as $commentId => $comment): ?>

View File

@ -48,6 +48,15 @@
}
}
#rssIcon {
/*
* Flux RSS
*/
#rssFeed {
text-align: right;
float: right;
}
#rssFeed p {
display: inline;
vertical-align: top;
margin-left: 5px;
}

View File

@ -1,11 +1,4 @@
<?php if($module::$articles): ?>
<div class="row">
<div class="col3 offset9 textAlignRight">
<a type="application/rss+xml" href="<?php echo $module::$rssUrl ?> ">
<img id="rssIcon" src='module/news/ressource/feed-icon-16.gif'>
</a>
</div>
</div>
<div class="row">
<div class="col12">
<?php foreach($module::$articles as $articleId => $article): ?>
@ -55,6 +48,11 @@
</div>
</div>
<?php echo $module::$pages; ?>
<div id="rssFeed">
<a type="application/rss+xml" href="<?php echo $module::$rssUrl ?> ">
<img src='module/news/ressource/feed-icon-16.gif' /><p>Syndication RSS</p>
</a>
</div>
<?php else: ?>
<?php echo template::speech('Aucun article.'); ?>
<?php endif; ?>

View File

@ -12,6 +12,15 @@
* @link http://zwiicms.fr/
*/
#rssIcon {
/*
* Flux RSS
*/
#rssFeed {
text-align: right;
float: right;
}
#rssFeed p {
display: inline;
vertical-align: top;
margin-left: 5px;
}

View File

@ -1,11 +1,4 @@
<?php if($module::$news): ?>
<div class="row">
<div class="col3 offset9 textAlignRight">
<a type="application/rss+xml" href="<?php echo $module::$rssUrl ?> ">
<img id="rssIcon" src='module/news/ressource/feed-icon-16.gif'>
</a>
</div>
</div>
<div class="row">
<div class="col12">
<?php foreach($module::$news as $newsId => $news): ?>
@ -28,6 +21,11 @@
</div>
</div>
<?php echo $module::$pages; ?>
<div id="rssFeed">
<a type="application/rss+xml" href="<?php echo $module::$rssUrl ?> ">
<img src='module/news/ressource/feed-icon-16.gif' /><p>Syndication RSS</p>
</a>
</div>
<?php else: ?>
<?php echo template::speech('Aucune news.'); ?>
<?php endif; ?>

View File

@ -1 +1 @@
<!-- rien -->
<!-- Volontairement vide -->