mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-13 23:28:40 +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 Modules\News\Models\PermissionCategory;
|
||||||
use phpOMS\Account\PermissionType;
|
use phpOMS\Account\PermissionType;
|
||||||
use phpOMS\Contract\RenderableInterface;
|
use phpOMS\Contract\RenderableInterface;
|
||||||
use phpOMS\DataStorage\Database\Query\OrderType;
|
|
||||||
use phpOMS\Message\Http\RequestStatusCode;
|
use phpOMS\Message\Http\RequestStatusCode;
|
||||||
use phpOMS\Message\RequestAbstract;
|
use phpOMS\Message\RequestAbstract;
|
||||||
use phpOMS\Message\ResponseAbstract;
|
use phpOMS\Message\ResponseAbstract;
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ $newsList = $this->getData('news') ?? [];
|
||||||
<?php
|
<?php
|
||||||
$count = 0;
|
$count = 0;
|
||||||
foreach ($newsList as $key => $news) : ++$count;
|
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';
|
$color = 'darkred';
|
||||||
|
|
||||||
if ($news->getType() === NewsType::ARTICLE) { $color = 'green'; }
|
if ($news->getType() === NewsType::ARTICLE) { $color = 'green'; }
|
||||||
|
|
@ -66,7 +66,7 @@ $newsList = $this->getData('news') ?? [];
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-foot">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -12,7 +12,6 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use Modules\News\Models\NewsType;
|
|
||||||
use phpOMS\Uri\UriFactory;
|
use phpOMS\Uri\UriFactory;
|
||||||
|
|
||||||
/** @var \phpOMS\Views\View $this */
|
/** @var \phpOMS\Views\View $this */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user