Implode with <br>

This commit is contained in:
Markus Wang Halvorsen 2018-02-14 17:55:41 +01:00
parent 87c6523f35
commit 9f935cd810
6 changed files with 6 additions and 6 deletions

View File

@ -92,7 +92,7 @@ $events = array_values(array_filter(
<p class="subnote">
<?= $event->getStart()->format("(Y-m-d H:i:s)") . " - " . $event->getStop()->format("(Y-m-d H:i:s)"); ?>
</p>
<p><?= implode($event->getDescription(), "</p>\n<p>"); ?></p>
<p><?= implode($event->getDescription(), "<br>"); ?></p>
</div>
<div class="event-actions">

View File

@ -89,7 +89,7 @@ $projects = array_values(array_filter(
<div class="event-info">
<h3 class="no-chin"><?= $project->getName() . " (ID: " . $projectID . ")"; ?></h3>
<p class="subnote"><?= 'Organisert av: ' . $project->getOwner(); ?></p>
<p><?= implode($project->getDescription(), "</p>\n<p>"); ?></p>
<p><?= implode($project->getDescription(), "<br>"); ?></p>
</div>
<div class="event-actions">

View File

@ -77,7 +77,7 @@ $day = (isset($_GET['day']))
<?php $description = $event->getDescription(); ?>
<?php if ($limit) array_splice($description, $limit); ?>
<?= implode($description, "</p>\n<p>") ?>
<?= implode($description, "<br>") ?>
</div>
<?php if (!$limit || $limit > 4) {$limit = 4;} else $limit = 2; ?>

View File

@ -107,7 +107,7 @@ $motd = $motdfetcher->getMOTD();
}
echo "</h2>";
echo "<p>" . implode($motd["content"], "</p>\n<p>") . "</p>";
echo "<p>" . implode($motd["content"], "<br>") . "</p>";
?>
</div>
</main>

View File

@ -43,7 +43,7 @@ $agenda = new \pvv\side\Agenda([
<?php $description = $event->getDescription(); ?>
<?php if ($limit) array_splice($description, $limit); ?>
<?= implode($description, "</p>\n<p>") ?>
<?= implode($description, "<br>") ?>
</article>
<?php if (!$limit || $limit > 4) {$limit = 4;} else $limit = 2; ?>

View File

@ -78,7 +78,7 @@ $projects = array_values(array_filter(
<div class="event">
<div class="event-info">
<h3 class="no-chin"><?= '<a href="edit.php?id=' . $project->getID() . '">' . $project->getName() . '</a>'; ?></h3>
<p><?= implode($project->getDescription(), "</p>\n<p>"); ?></p>
<p><?= implode($project->getDescription(), "<br>"); ?></p>
</div>
</div>
</li>