mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-05-28 07:08:40 +00:00
Fix relative path
This commit is contained in:
parent
5d910df5ef
commit
18f3628e28
|
|
@ -26,7 +26,7 @@ $newsList = $this->getData('news');
|
|||
<td><?= $this->getHtml('Type', 'News') ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Title', 'News') ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($newsList as $key => $news) : $count++;
|
||||
<?php $count = 0; foreach ($newsList as $key => $news) : ++$count;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/news/article?{?}&id=' . $news->getId());
|
||||
$color = 'darkred';
|
||||
if ($news->getType() === \Modules\News\Models\NewsType::ARTICLE) { $color = 'green'; }
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<tr>
|
||||
<td colspan="4">
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($articles as $key => $news) : $count++; $url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/news/article?{?}&id=' . $news->getId());
|
||||
<?php $count = 0; foreach ($articles as $key => $news) : ++$count; $url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/news/article?{?}&id=' . $news->getId());
|
||||
$color = 'darkred';
|
||||
if ($news->getType() === \Modules\News\Models\NewsType::ARTICLE) { $color = 'green'; }
|
||||
elseif ($news->getType() === \Modules\News\Models\NewsType::HEADLINE) { $color = 'purple'; }
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td><?= $this->getHtml('Author') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<td><?= $this->getHtml('Date') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($newsList as $key => $news) : $count++;
|
||||
<?php $count = 0; foreach ($newsList as $key => $news) : ++$count;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/news/article?{?}&id=' . $news->getId());
|
||||
$color = 'darkred';
|
||||
if ($news->getType() === \Modules\News\Models\NewsType::ARTICLE) { $color = 'green'; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user