News tiret et espace

This commit is contained in:
Fred Tempez 2023-12-20 12:48:44 +01:00
parent f7ea87fb1d
commit 667417c750
2 changed files with 5 additions and 3 deletions

View File

@ -25,14 +25,16 @@
($this->getUser('group') === self::GROUP_ADMIN)
)
): ?>
 
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1); ?>">
<?php echo template::ico('pencil'); ?>
<?php echo helper::translate('Éditer') . '&nbsp;';?>
<?php echo helper::translate('Éditer');?>
</a>
<?php endif; ?>
<!-- Bloc RSS-->
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'feeds'])): ?>
<div id="rssFeed">
&nbsp;
<a type="application/rss+xml" href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/rss'; ?>"
target="_blank">
<img src='module/news/ressource/feed-icon-16.gif' />

View File

@ -21,18 +21,18 @@
</h2>
<div class="newsSignature">
<?php echo template::ico('user'); ?>
<?php echo $news['userId']; ?>
<?php echo $news['userId'] . ' - '; ?>
<?php echo template::ico('calendar-empty'); ?>
<?php echo helper::dateUTF8($module::$dateFormat, $news['publishedOn'], self::$siteContent) . ' - ' . helper::dateUTF8($module::$timeFormat, $news['publishedOn'], self::$siteContent); ?>
<!-- Bloc edition -->
<?php if (
$this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')
and
( // Propriétaire
($this->getUser('group') === self::GROUP_ADMIN)
)
): ?>
&nbsp;
<a
href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/edit/' . $newsId; ?>">
<?php echo template::ico('pencil'); ?> Éditer