mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-05 03:28:41 +00:00
Merge remote-tracking branch 'origin/develop' into develop
# Conflicts: # Admin/Controller.php
This commit is contained in:
commit
5ad87c53b6
|
|
@ -262,7 +262,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
|
|||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public function getCreatedBy() : int
|
||||
public function getCreatedBy()
|
||||
{
|
||||
return $this->createdBy;
|
||||
}
|
||||
|
|
@ -273,7 +273,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
|
|||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public function setCreatedBy(int $id)
|
||||
public function setCreatedBy($id)
|
||||
{
|
||||
$this->createdBy = $id;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td data-label=""><a href="<?= $url; ?>"><?= $news->isFeatured() ? '<i class="fa fa-star favorite"></i>' : ''; ?></a>
|
||||
<td data-label="<?= $this->getText('Type'); ?>"><a href="<?= $url; ?>"><span class="tag <?= $color; ?>"><?= $this->getText('TYPE' . $news->getType()); ?></span></a>
|
||||
<td data-label="<?= $this->getText('Title'); ?>"><a href="<?= $url; ?>"><?= $news->getTitle(); ?></a>
|
||||
<td data-label="<?= $this->getText('Author'); ?>"><a href="<?= $url; ?>"><?= $news->getCreatedBy(); ?></a>
|
||||
<td data-label="<?= $this->getText('Author'); ?>"><a href="<?= $url; ?>"><?= $news->getCreatedBy()->getName1(); ?></a>
|
||||
<td data-label="<?= $this->getText('Date'); ?>"><a href="<?= $url; ?>"><?= $news->getPublish()->format('Y-m-d'); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($count === 0) : ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user