news 6 bug date

This commit is contained in:
Fred Tempez 2024-10-16 11:53:31 +02:00
parent c0e6781dda
commit 823e1cfd0e
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@
<div id="rssFeed"> <div id="rssFeed">
<a type="application/rss+xml" href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/rss'; ?>" <a type="application/rss+xml" href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/rss'; ?>"
target="_blank"> target="_blank">
<img src='module/news/ressource/feed-icon-16.gif' /> &nbsp;<img src='module/news/ressource/feed-icon-16.gif' />
<?php <?php
echo '<p>' . $this->getData(['module', $this->getUrl(0), 'config', 'feedsLabel']) . '</p>'; echo '<p>' . $this->getData(['module', $this->getUrl(0), 'config', 'feedsLabel']) . '</p>';
?> ?>

View File

@ -36,7 +36,7 @@
<?php echo template::ico('calendar-empty', ['margin' => 'left']); ?> <?php echo template::ico('calendar-empty', ['margin' => 'left']); ?>
<?php endif; ?> <?php endif; ?>
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'showDate']) === true): ?> <?php if ($this->getData(['module', $this->getUrl(0), 'config', 'showDate']) === true): ?>
<?php echo helper::dateUTF8($module::$dateFormat, $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'publishedOn']), self::$i18nUI); ?> <?php echo helper::dateUTF8($module::$dateFormat, $this->getData(['module', $this->getUrl(0), 'posts', $newsId, 'publishedOn']), self::$i18nUI); ?>
<?php endif; ?> <?php endif; ?>
<?php if ( <?php if (
$this->getData(['module', $this->getUrl(0), 'config', 'showDate']) === true $this->getData(['module', $this->getUrl(0), 'config', 'showDate']) === true
@ -45,7 +45,7 @@
<?php echo '&nbsp;-&nbsp;'; ?> <?php echo '&nbsp;-&nbsp;'; ?>
<?php endif; ?> <?php endif; ?>
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'showTime']) === true): ?> <?php if ($this->getData(['module', $this->getUrl(0), 'config', 'showTime']) === true): ?>
<?php echo helper::dateUTF8($module::$timeFormat, $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'publishedOn']), self::$i18nUI); ?> <?php echo helper::dateUTF8($module::$timeFormat, $this->getData(['module', $this->getUrl(0), 'posts', $newsId, 'publishedOn']), self::$i18nUI); ?>
<?php endif; ?> <?php endif; ?>
<!-- Bloc edition --> <!-- Bloc edition -->
<?php if ( <?php if (