'target', 'STILL' => 'still', 'STILL2' => 'still2', 'NAME' => 'name', 'CAPTION' => 'caption', 'STYLE' => 'style', 'RATIO' => 'ratio' ); public $values; protected $layout; protected $layouts = array( 'default' => 'view_default', 'lightbox' => 'view_in_lightbox', 'audio' => 'view_in_lightbox2' ); function __construct($keys,$config) { parent::__construct($keys,$config); } function view_in_toc() { $v = (object) $this->values; return sprintf("

%s

%s
", $this->href, $v->name, $v->town ); } function view_default() { $v = (object) $this->values; return sprintf("", $this->config['path'], $v->target ); } function view_in_lightbox1() { $v = (object) $this->values; $id = "video_".$v->name; return sprintf("
%s
%s
", $v->style, $v->target, $id, $v->still->get_src(1200), "/rsc/img/play-button.png", $id, $this->view_default(), $v->caption ); } function view_in_lightbox() { $v = (object) $this->values; $id = $v->name; $target = $this->config['path'].$v->target; return sprintf("
" ."
%s
", $v->style, $target, $v->still2, $target, $id, $v->still->get_src(1200), $id, $v->caption ); } function view_in_lightbox2() { $v = (object) $this->values; $id = $v->name; $target = $this->config['path'].$v->target; return sprintf("
" ."
%s
", $v->style, $target, //$v->still2, $target, $id, $v->ratio, $v->still->get_src(1200), $id, $v->caption ); } }