350, 'h' => 220);
private $_defaultPicture;
function __construct($plugin, $mode, $renderer, $data){
parent::__construct($plugin, $mode, $renderer, $data);
$this->_defaultPicture = $data['defaultPicture'];
}
function _print($tab, $type) {
$this->renderer->doc .= '
';
}
private function _getFirstImage($pageId){
$meta = p_get_metadata($pageId);
$picture = $meta['relation']['firstimage'];
if ( $picture != "" ){
return ml($picture, self::$_dims, true);
} else {
if ( $this->_defaultPicture == '' ){
return "lib/tpl/dokuwiki/images/logo.png";
} else {
return ml($this->_defaultPicture, self::$_dims, true);
}
}
}
}