mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-06 12:08:40 +00:00
continue implementation
This commit is contained in:
parent
91532f1963
commit
d21b093f5b
|
|
@ -34,9 +34,9 @@ return ['News' => [
|
|||
'Publish' => 'Veröffentlichen',
|
||||
'Settings' => 'Einstellungen',
|
||||
'Status' => 'Status',
|
||||
'TYPE0' => 'Artikel',
|
||||
'TYPE1' => 'Verknüpfung',
|
||||
'TYPE2' => 'Überschrift',
|
||||
'TYPE1' => 'Artikel',
|
||||
'TYPE2' => 'Verknüpfung',
|
||||
'TYPE3' => 'Überschrift',
|
||||
'Title' => 'Titel',
|
||||
'Type' => 'Typ',
|
||||
'Visible' => 'Sichtbar',
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ return ['News' => [
|
|||
'Publish' => 'Publish',
|
||||
'Settings' => 'Settings',
|
||||
'Status' => 'Status',
|
||||
'TYPE0' => 'Article',
|
||||
'TYPE1' => 'Link',
|
||||
'TYPE2' => 'Headline',
|
||||
'TYPE1' => 'Article',
|
||||
'TYPE2' => 'Link',
|
||||
'TYPE3' => 'Headline',
|
||||
'Title' => 'Title',
|
||||
'Type' => 'Type',
|
||||
'Visible' => 'Visible',
|
||||
|
|
|
|||
|
|
@ -38,9 +38,9 @@ $newsList = $this->data['news'] ?? [];
|
|||
$url = UriFactory::build('{/base}/news/article?{?}&id=' . $news->id);
|
||||
$color = 'darkred';
|
||||
|
||||
if ($news->getType() === NewsType::ARTICLE) { $color = 'green'; }
|
||||
elseif ($news->getType() === NewsType::HEADLINE) { $color = 'purple'; }
|
||||
elseif ($news->getType() === NewsType::LINK) { $color = 'yellow'; }
|
||||
if ($news->type === NewsType::ARTICLE) { $color = 'green'; }
|
||||
elseif ($news->type === NewsType::HEADLINE) { $color = 'purple'; }
|
||||
elseif ($news->type === NewsType::LINK) { $color = 'yellow'; }
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td data-label="">
|
||||
|
|
@ -52,7 +52,7 @@ $newsList = $this->data['news'] ?? [];
|
|||
<td data-label="<?= $this->getHtml('Type', 'News'); ?>">
|
||||
<a href="<?= $url; ?>">
|
||||
<span class="tag <?= $this->printHtml($color); ?>">
|
||||
<?= $this->getHtml('TYPE' . $news->getType(), 'News'); ?>
|
||||
<?= $this->getHtml('TYPE' . $news->type, 'News'); ?>
|
||||
</span>
|
||||
</a>
|
||||
<td data-label="<?= $this->getHtml('Title', 'News'); ?>">
|
||||
|
|
|
|||
|
|
@ -40,9 +40,11 @@ echo $this->data['nav']->render(); ?>
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<div class="box wf-100">
|
||||
<?= $this->getData('editor')->getData('text')->render('iNews', 'plain', 'docForm', $news->plain, $news->content); ?>
|
||||
</div>
|
||||
<section class="portlet">
|
||||
<div class="portlet-body">
|
||||
<?= $this->getData('editor')->getData('text')->render('iNews', 'plain', 'docForm', $news->plain, $news->content); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user