'title', 'ARTIST' => 'artist', 'DATE' => 'date', 'IMAGE' => 'img', 'CATALOGUE' => 'catalogue' ); public $values; protected $layout; protected $layouts = array( 'default' => 'view_in_toc', 'toc' => 'view_in_toc' ); function __construct($keys,$config) { parent::__construct($keys,$config); } function simple() { return sprintf("sdsd"); } function view_in_toc() { $f3 = \Base::instance(); $v = (object) $this->values; $img = new CachedImage($this->config['path'].$v->img); $img_html = sprintf('cover art', $img->get_src(1000)); return sprintf( "
" ."%s" ."" ."%s" ."
" ."

%s

%s%s

" ."
", $v->catalogue, $this->href, $img_html, $v->title, $v->artist, $v->date ? ' - '.$v->date.'' : '' , ); } }