slider)){ $slides = ''; foreach($page->slider as $slide){ $description = (!empty($slide->description) ? '

'.$slide->description.'

' : ""); $slides .= "
  • {$slide->description}

  • "; } $page->slides = $slides; } $content = renderPage();