1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36:
<?php
defined('ICMS_ROOT_PATH') or die("ImpressCMS root path not defined");
class icms_ipf_form_elements_Blockoptions extends icms_form_elements_Tray {
public function __construct($object, $key) {
$var = $object->vars[$key];
parent::__construct($var['form_caption'], ' ', 'options_tray');
$func = $object->getVar('edit_func');
require_once ICMS_ROOT_PATH . "/modules/" . $object->handler->getModuleDirname($object->getVar('mid', 'e')) . "/blocks/" . $object->getVar('func_file') ;
icms_loadLanguageFile($object->handler->getModuleDirname($object->getVar('mid', 'e')), 'blocks');
if (!function_exists($func)) return;
$visible_label = new icms_form_elements_Label('', $func(explode('|', $object->getVar('options'))));
$this->addElement($visible_label);
}
}