mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-04 19:18:41 +00:00
Improve readme
This commit is contained in:
parent
5528ab5580
commit
ca2a143069
|
|
@ -34,9 +34,22 @@ $newsList = $this->getData('news');
|
|||
elseif ($news->getType() === \Modules\News\Models\NewsType::LINK) { $color = 'yellow'; }
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td data-label=""><a href="<?= $url; ?>"><?= $news->isFeatured() ? '<i class="fa fa-star favorite"></i>' : ''; ?></a>
|
||||
<td data-label="<?= $this->getHtml('Type', 'News') ?>"><a href="<?= $url; ?>"><span class="tag <?= $this->printHtml($color); ?>"><?= $this->getHtml('TYPE' . $news->getType(), 'News') ?></span></a>
|
||||
<td data-label="<?= $this->getHtml('Title', 'News') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($news->getTitle()); ?></a>
|
||||
<td data-label="">
|
||||
<?php if ($news->isFeatured()) : ?>
|
||||
<a href="<?= $url; ?>">
|
||||
<i class="fa fa-star favorite"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<td data-label="<?= $this->getHtml('Type', 'News') ?>">
|
||||
<a href="<?= $url; ?>">
|
||||
<span class="tag <?= $this->printHtml($color); ?>">
|
||||
<?= $this->getHtml('TYPE' . $news->getType(), 'News') ?>
|
||||
</span>
|
||||
</a>
|
||||
<td data-label="<?= $this->getHtml('Title', 'News') ?>">
|
||||
<a href="<?= $url; ?>">
|
||||
<?= $this->printHtml($news->getTitle()); ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($count === 0) : ?>
|
||||
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user