mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-01-27 07:38:41 +00:00
Automated formatting changes
This commit is contained in:
parent
90d67b49f1
commit
0227388df7
|
|
@ -23,7 +23,6 @@ use Modules\News\Models\NullNewsSeen;
|
|||
use Modules\News\Models\PermissionCategory;
|
||||
use phpOMS\Account\PermissionType;
|
||||
use phpOMS\Contract\RenderableInterface;
|
||||
use phpOMS\DataStorage\Database\Query\OrderType;
|
||||
use phpOMS\Message\Http\RequestStatusCode;
|
||||
use phpOMS\Message\RequestAbstract;
|
||||
use phpOMS\Message\ResponseAbstract;
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ $newsList = $this->getData('news') ?? [];
|
|||
<?php
|
||||
$count = 0;
|
||||
foreach ($newsList as $key => $news) : ++$count;
|
||||
$url = UriFactory::build('{/prefix}news/article?{?}&id=' . $news->getId());
|
||||
$url = UriFactory::build('{/prefix}news/article?{?}&id=' . $news->getId());
|
||||
$color = 'darkred';
|
||||
|
||||
if ($news->getType() === NewsType::ARTICLE) { $color = 'green'; }
|
||||
|
|
@ -66,7 +66,7 @@ $newsList = $this->getData('news') ?? [];
|
|||
</table>
|
||||
</div>
|
||||
<div class="portlet-foot">
|
||||
<a class="button" href="<?= UriFactory::build('{/prefix}news/dashboard?{?}') ?>"><?= $this->getHtml('More', '0', '0'); ?></a>
|
||||
<a class="button" href="<?= UriFactory::build('{/prefix}news/dashboard?{?}'); ?>"><?= $this->getHtml('More', '0', '0'); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -12,7 +12,6 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
use Modules\News\Models\NewsType;
|
||||
use phpOMS\Uri\UriFactory;
|
||||
|
||||
/** @var \phpOMS\Views\View $this */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user