This repository has been archived on 2025-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
host_rhein/rhein/page/default_wohnung/default_wohnung.php

19 lines
718 B
PHP

<?php
class default_wohnung extends SYSTEM\PAGE\Page {
public function html() {
$vars = \SYSTEM\locale::getStrings(\DBD\locale_string::CATEGORY_RHEIN_TEXT);
$vars['gallery_house'] = $this->gallery();
//return $vars['rhein_wohnung'].'</br></br>'.saimod_webcraft_gallery::getGallery(2);
return SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new PPAGE(),'default_wohnung/default_wohnung.tpl'), $vars);
}
private function gallery(){
$pics = \SYSTEM\FILES\files::get('house');
$result = '';
foreach($pics as $pic){
$result .= '<img src="api.php?call=files&cat=house&id='.$pic.'" alt="" />';
}
return $result;
}
}