mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-01-29 16:48:40 +00:00
auto fixes
This commit is contained in:
parent
b38aeb9b85
commit
bd7a9466ea
|
|
@ -32,9 +32,9 @@ echo $this->getData('nav')->render(); ?>
|
|||
?>
|
||||
<div class="portlet">
|
||||
<div class="portlet-head">
|
||||
<?= !($isSeen = \in_array($news->id, $seen)) ? '<strong>' : ''; ?>
|
||||
<?= ($isSeen = \in_array($news->id, $seen)) ? '' : '<strong>'; ?>
|
||||
<a href="<?= $url; ?>"><?= $this->printHtml($news->title); ?></a>
|
||||
<?= !$isSeen ? '</strong>' : ''; ?>
|
||||
<?= $isSeen ? '' : '</strong>'; ?>
|
||||
<span class="end-xs">
|
||||
<a class="content" href="<?= $profile; ?>"><?= $this->printHtml($this->renderUserName('%3$s %2$s %1$s', [$news->createdBy->name1, $news->createdBy->name2, $news->createdBy->name3, $news->createdBy->login ?? ''])); ?>
|
||||
</a> - <?= $news->publish->format('Y-m-d'); ?>
|
||||
|
|
@ -44,7 +44,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="portlet-body">
|
||||
<article><?= Markdown::parse(\substr($news->plain, 0, 500)); ?></article>
|
||||
<?php $tags = $news->getTags(); foreach ($tags as $tag) : ?>
|
||||
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>"><?= !empty($tag->icon) ? '<i class="' . $this->printHtml($tag->icon) . '"></i>' : ''; ?><?= $this->printHtml($tag->getL11n()); ?></span>
|
||||
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>"><?= empty($tag->icon) ? '' : '<i class="' . $this->printHtml($tag->icon) . '"></i>'; ?><?= $this->printHtml($tag->getL11n()); ?></span>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<div class="portlet-foot">
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</div>
|
||||
<div>
|
||||
<?php foreach ($tags as $tag) : ?>
|
||||
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>"><?= !empty($tag->icon) ? '<i class="' . $this->printHtml($tag->icon) . '"></i>' : ''; ?><?= $this->printHtml($tag->getL11n()); ?></span>
|
||||
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>"><?= empty($tag->icon) ? '' : '<i class="' . $this->printHtml($tag->icon) . '"></i>'; ?><?= $this->printHtml($tag->getL11n()); ?></span>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -381,7 +381,7 @@ function phpServe() : void
|
|||
|
||||
// Execute the command and store the process ID
|
||||
$output = [];
|
||||
echo \sprintf('Starting server...') . \PHP_EOL;
|
||||
echo 'Starting server...' . \PHP_EOL;
|
||||
echo \sprintf(' Current directory: %s', \getcwd()) . \PHP_EOL;
|
||||
echo \sprintf(' %s', $command);
|
||||
\exec($command, $output);
|
||||
|
|
@ -406,7 +406,7 @@ function phpServe() : void
|
|||
|
||||
// Kill the web server when the process ends
|
||||
\register_shutdown_function(function() use ($killCommand, $pid) : void {
|
||||
echo \PHP_EOL . \sprintf('Stopping server...') . \PHP_EOL;
|
||||
echo \PHP_EOL . 'Stopping server...' . \PHP_EOL;
|
||||
echo \sprintf(' %s - Killing process with ID %d', \date('r'), $pid) . \PHP_EOL;
|
||||
\exec($killCommand . $pid);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user