Implode with <br>
This commit is contained in:
parent
87c6523f35
commit
9f935cd810
|
@ -92,7 +92,7 @@ $events = array_values(array_filter(
|
||||||
<p class="subnote">
|
<p class="subnote">
|
||||||
<?= $event->getStart()->format("(Y-m-d H:i:s)") . " - " . $event->getStop()->format("(Y-m-d H:i:s)"); ?>
|
<?= $event->getStart()->format("(Y-m-d H:i:s)") . " - " . $event->getStop()->format("(Y-m-d H:i:s)"); ?>
|
||||||
</p>
|
</p>
|
||||||
<p><?= implode($event->getDescription(), "</p>\n<p>"); ?></p>
|
<p><?= implode($event->getDescription(), "<br>"); ?></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="event-actions">
|
<div class="event-actions">
|
||||||
|
|
|
@ -89,7 +89,7 @@ $projects = array_values(array_filter(
|
||||||
<div class="event-info">
|
<div class="event-info">
|
||||||
<h3 class="no-chin"><?= $project->getName() . " (ID: " . $projectID . ")"; ?></h3>
|
<h3 class="no-chin"><?= $project->getName() . " (ID: " . $projectID . ")"; ?></h3>
|
||||||
<p class="subnote"><?= 'Organisert av: ' . $project->getOwner(); ?></p>
|
<p class="subnote"><?= 'Organisert av: ' . $project->getOwner(); ?></p>
|
||||||
<p><?= implode($project->getDescription(), "</p>\n<p>"); ?></p>
|
<p><?= implode($project->getDescription(), "<br>"); ?></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="event-actions">
|
<div class="event-actions">
|
||||||
|
|
|
@ -77,7 +77,7 @@ $day = (isset($_GET['day']))
|
||||||
|
|
||||||
<?php $description = $event->getDescription(); ?>
|
<?php $description = $event->getDescription(); ?>
|
||||||
<?php if ($limit) array_splice($description, $limit); ?>
|
<?php if ($limit) array_splice($description, $limit); ?>
|
||||||
<?= implode($description, "</p>\n<p>") ?>
|
<?= implode($description, "<br>") ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if (!$limit || $limit > 4) {$limit = 4;} else $limit = 2; ?>
|
<?php if (!$limit || $limit > 4) {$limit = 4;} else $limit = 2; ?>
|
||||||
|
|
|
@ -107,7 +107,7 @@ $motd = $motdfetcher->getMOTD();
|
||||||
}
|
}
|
||||||
echo "</h2>";
|
echo "</h2>";
|
||||||
|
|
||||||
echo "<p>" . implode($motd["content"], "</p>\n<p>") . "</p>";
|
echo "<p>" . implode($motd["content"], "<br>") . "</p>";
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
@ -43,7 +43,7 @@ $agenda = new \pvv\side\Agenda([
|
||||||
|
|
||||||
<?php $description = $event->getDescription(); ?>
|
<?php $description = $event->getDescription(); ?>
|
||||||
<?php if ($limit) array_splice($description, $limit); ?>
|
<?php if ($limit) array_splice($description, $limit); ?>
|
||||||
<?= implode($description, "</p>\n<p>") ?>
|
<?= implode($description, "<br>") ?>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<?php if (!$limit || $limit > 4) {$limit = 4;} else $limit = 2; ?>
|
<?php if (!$limit || $limit > 4) {$limit = 4;} else $limit = 2; ?>
|
||||||
|
|
|
@ -78,7 +78,7 @@ $projects = array_values(array_filter(
|
||||||
<div class="event">
|
<div class="event">
|
||||||
<div class="event-info">
|
<div class="event-info">
|
||||||
<h3 class="no-chin"><?= '<a href="edit.php?id=' . $project->getID() . '">' . $project->getName() . '</a>'; ?></h3>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue