You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
561 B
PHP
21 lines
561 B
PHP
<?php
|
|
|
|
|
|
// Imageslider mit der Bildbeschreibung als Titel
|
|
if(count($page->slider)){
|
|
$slides = '';
|
|
foreach($page->slider as $slide){
|
|
$description = (!empty($slide->description) ? '<h2><span>'.$slide->description.'</span></h2>' : "");
|
|
$slides .= "<li>
|
|
<div class='slider-image'>
|
|
<img class='img-responsive' src='{$slide->size(1200,675)->url}'></img>
|
|
<h2><span>{$slide->description}</span></h2>
|
|
</div>
|
|
</li>";
|
|
}
|
|
$page->slides = $slides;
|
|
}
|
|
|
|
|
|
$content = renderPage();
|