HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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;
        }
    }
?>