URL dans les pages

mutual
Fred Tempez 2 years ago
parent d4d336d730
commit 24f463b77e
  1. 1
      module/blog/blog.php
  2. 9
      module/blog/view/article/article.css
  3. 9
      module/blog/view/article/article.php
  4. 11
      module/blog/view/index/index.css
  5. 12
      module/blog/view/index/index.php
  6. 11
      module/news/view/index/index.css
  7. 12
      module/news/view/index/index.php
  8. 2
      module/news/view/rss/rss.php

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

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

@ -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): ?>

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

@ -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; ?>

@ -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;
}

@ -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; ?>

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

Loading…
Cancel
Save