File: D:/HostingSpaces/NVonken/mijneigenlied.com/wwwroot/Core/Page Elements/headerphoto.element.php
<?php
class Element_HeaderPhoto
{
public $elementName = 'HeaderPhoto';
var $_tpl;
public static function Settings()
{
return array( "Pageable" => false,
"DisplayName" => "HeaderPhoto",
"Version" => 1.0,
"Filename" => "headerphoto.element.php");
}
public function __construct(){
General::Load("Photo");
$this->_tpl = new tpl();
}
public function Run(){
$headers = Photo::SelectHeaders();
$html = '';
foreach($headers as $header){
$this->_tpl->assign("img_src", SETTING_ROOT . "/uploads/header/" . $header->Filename);
$html .= $this->_tpl->Parse("Header/item");
}
return $html;
}
}
?>