forked from ZwiiCMS-Team/ZwiiCMS
modif options d'activation
This commit is contained in:
parent
8023df17e6
commit
f987aecbff
@ -31,10 +31,6 @@ class blog extends common {
|
|||||||
|
|
||||||
public static $pages;
|
public static $pages;
|
||||||
|
|
||||||
public static $rssUrl;
|
|
||||||
|
|
||||||
public static $rssLabel;
|
|
||||||
|
|
||||||
public static $states = [
|
public static $states = [
|
||||||
false => 'Brouillon',
|
false => 'Brouillon',
|
||||||
true => 'Publié'
|
true => 'Publié'
|
||||||
@ -476,8 +472,6 @@ class blog extends common {
|
|||||||
for($i = $pagination['first']; $i < $pagination['last']; $i++) {
|
for($i = $pagination['first']; $i < $pagination['last']; $i++) {
|
||||||
self::$comments[$commentIds[$i]] = $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'comment', $commentIds[$i]]);
|
self::$comments[$commentIds[$i]] = $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'comment', $commentIds[$i]]);
|
||||||
}
|
}
|
||||||
self::$rssUrl = helper::baseUrl() . $this->getUrl(0) . '/rss';
|
|
||||||
self::$rssLabel = $this->getData(['module', $this->getUrl(0), 'config','feedsLabel']);
|
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'showBarEditButton' => true,
|
'showBarEditButton' => true,
|
||||||
@ -506,8 +500,6 @@ class blog extends common {
|
|||||||
for($i = $pagination['first']; $i < $pagination['last']; $i++) {
|
for($i = $pagination['first']; $i < $pagination['last']; $i++) {
|
||||||
self::$articles[$articleIds[$i]] = $this->getData(['module', $this->getUrl(0), 'posts', $articleIds[$i]]);
|
self::$articles[$articleIds[$i]] = $this->getData(['module', $this->getUrl(0), 'posts', $articleIds[$i]]);
|
||||||
}
|
}
|
||||||
self::$rssUrl = helper::baseUrl() . $this->getUrl(0) . '/rss';
|
|
||||||
self::$rssLabel = $this->getData(['module', $this->getUrl(0), 'config','feedsLabel']);
|
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'showBarEditButton' => true,
|
'showBarEditButton' => true,
|
||||||
|
@ -39,14 +39,16 @@
|
|||||||
</p>
|
</p>
|
||||||
<?php echo template::formClose(); ?>
|
<?php echo template::formClose(); ?>
|
||||||
<!-- Bloc RSS-->
|
<!-- Bloc RSS-->
|
||||||
<div id="rssFeed">
|
<?php if ($this->getData(['module',$this->getUrl(0), 'config', 'feeds'])): ?>
|
||||||
<a type="application/rss+xml" href="<?php echo $module::$rssUrl ?> ">
|
<div id="rssFeed">
|
||||||
<img src='module/news/ressource/feed-icon-16.gif' />
|
<a type="application/rss+xml" href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/rss'; ?> ">
|
||||||
<?php
|
<img src='module/news/ressource/feed-icon-16.gif' />
|
||||||
echo '<p>' . $module::$rssLabel . '</p>' ;
|
<?php
|
||||||
?>
|
echo '<p>' . $this->getData(['module',$this->getUrl(0), 'config', 'feedsLabel']) . '</p>' ;
|
||||||
</a>
|
?>
|
||||||
</div>
|
</a>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
<?php if($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'closeComment'])): ?>
|
<?php if($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'closeComment'])): ?>
|
||||||
<p>Cet article ne reçoit pas de commentaire.</p>
|
<p>Cet article ne reçoit pas de commentaire.</p>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
@ -48,14 +48,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php echo $module::$pages; ?>
|
<?php echo $module::$pages; ?>
|
||||||
<div id="rssFeed">
|
<?php if ($this->getData(['module',$this->getUrl(0), 'config', 'feeds'])): ?>
|
||||||
<a type="application/rss+xml" href="<?php echo $module::$rssUrl ?> ">
|
<div id="rssFeed">
|
||||||
<img src='module/news/ressource/feed-icon-16.gif' />
|
<a type="application/rss+xml" href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/rss'; ?> ">
|
||||||
<?php
|
<img src='module/news/ressource/feed-icon-16.gif' />
|
||||||
echo '<p>' . $module::$rssLabel . '</p>' ;
|
<?php
|
||||||
?>
|
echo '<p>' . $this->getData(['module',$this->getUrl(0), 'config', 'feedsLabel']) . '</p>' ;
|
||||||
</a>
|
?>
|
||||||
</div>
|
</a>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php echo template::speech('Aucun article.'); ?>
|
<?php echo template::speech('Aucun article.'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
@ -29,10 +29,6 @@ class news extends common {
|
|||||||
|
|
||||||
public static $pages;
|
public static $pages;
|
||||||
|
|
||||||
public static $rssUrl;
|
|
||||||
|
|
||||||
public static $rssLabel;
|
|
||||||
|
|
||||||
public static $states = [
|
public static $states = [
|
||||||
false => 'Brouillon',
|
false => 'Brouillon',
|
||||||
true => 'Publié'
|
true => 'Publié'
|
||||||
@ -299,8 +295,6 @@ class news extends common {
|
|||||||
for($i = $pagination['first']; $i < $pagination['last']; $i++) {
|
for($i = $pagination['first']; $i < $pagination['last']; $i++) {
|
||||||
self::$news[$newsIds[$i]] = $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i]]);
|
self::$news[$newsIds[$i]] = $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i]]);
|
||||||
}
|
}
|
||||||
self::$rssUrl = helper::baseUrl() . $this->getUrl(0) . '/rss';
|
|
||||||
self::$rssLabel = $this->getData(['module', $this->getUrl(0), 'config','feedsLabel']);
|
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'showBarEditButton' => true,
|
'showBarEditButton' => true,
|
||||||
|
@ -21,14 +21,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php echo $module::$pages; ?>
|
<?php echo $module::$pages; ?>
|
||||||
<div id="rssFeed">
|
<?php if ($this->getData(['module',$this->getUrl(0), 'config', 'feeds'])): ?>
|
||||||
<a type="application/rss+xml" href="<?php echo $module::$rssUrl ?> ">
|
<div id="rssFeed">
|
||||||
<img src='module/news/ressource/feed-icon-16.gif' />
|
<a type="application/rss+xml" href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/rss'; ?> ">
|
||||||
<?php
|
<img src='module/news/ressource/feed-icon-16.gif' />
|
||||||
echo '<p>' . $module::$rssLabel . '</p>' ;
|
<?php
|
||||||
?>
|
echo '<p>' . $this->getData(['module',$this->getUrl(0), 'config', 'feedsLabel']) . '</p>' ;
|
||||||
</a>
|
?>
|
||||||
</div>
|
</a>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php echo template::speech('Aucune news.'); ?>
|
<?php echo template::speech('Aucune news.'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user