meraproject/module/ui/input/image/model.php
keboss-m 5c21d25d45 Initial commit: Merakomis portal, Docker stack and user-reader API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 11:04:05 +03:00

17 lines
320 B
PHP

<?
namespace ui\input;
class Image extends Input {
public function render(array $opt = array()): string
{
if(file_exists($file = dirname(__FILE__).'/views/'.$this->theme.'.php')) {
ob_start();include($file);return ob_get_clean();
} else {
return '';
}
}
}