mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-17 00:48:42 +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'; }
|
elseif ($news->getType() === \Modules\News\Models\NewsType::LINK) { $color = 'yellow'; }
|
||||||
?>
|
?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
<td data-label=""><a href="<?= $url; ?>"><?= $news->isFeatured() ? '<i class="fa fa-star favorite"></i>' : ''; ?></a>
|
<td data-label="">
|
||||||
<td data-label="<?= $this->getHtml('Type', 'News') ?>"><a href="<?= $url; ?>"><span class="tag <?= $this->printHtml($color); ?>"><?= $this->getHtml('TYPE' . $news->getType(), 'News') ?></span></a>
|
<?php if ($news->isFeatured()) : ?>
|
||||||
<td data-label="<?= $this->getHtml('Title', 'News') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($news->getTitle()); ?></a>
|
<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 endforeach; ?>
|
||||||
<?php if ($count === 0) : ?>
|
<?php if ($count === 0) : ?>
|
||||||
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user