mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-09 05:18:41 +00:00
Fix tables
This commit is contained in:
parent
621454b04d
commit
bf44c6e70b
|
|
@ -25,7 +25,7 @@ $newsList = $this->getData('news');
|
|||
<tr>
|
||||
<td>
|
||||
<td><?= $this->getHtml('Type', 'News') ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Title', 'News') ?>
|
||||
<td><?= $this->getHtml('Title', 'News') ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($newsList as $key => $news) : $count++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/news/article?{?}&id=' . $news->getId());
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
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><a href="<?= $url; ?>"><?= $news->isFeatured() ? '<i class="fa fa-star favorite"></i>' : ''; ?></a>
|
||||
<td data-label="<?= $this->getHtml('Type') ?>"><a href="<?= $url; ?>"><span class="tag <?= $this->printHtml($color); ?>"><?= $this->getHtml('TYPE' . $news->getType()) ?></span></a>
|
||||
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($news->getTitle()); ?></a>
|
||||
<td data-label="<?= $this->getHtml('Author') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($news->getCreatedBy()->getName1()); ?></a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user