*/ /** * Class helper_plugin_bookcreator */ class helper_plugin_bookcreator extends DokuWiki_Plugin { /** * Create a item for list of available saved selections * * @param array $item with at least the entries: * - string 'id' pageid * - int 'mtime' unixtime modification date * @param bool $isbookmanager if in bookmanager, show delete button(if allowed) and date * @return string */ public function createListitem($item, $isbookmanager = false) { $itemtitle = p_get_first_heading($item['id']); $nons = noNS($item['id']); $url = wl($this->getConf('save_namespace').":".$nons); $out = "
  • "; if(($isbookmanager) && (auth_quickaclcheck($item['id']) >= AUTH_DELETE)) { $out .= "" . inlineSVG(__DIR__ . '/images/notebook-remove-outline.svg') . " "; } $out .= "" . inlineSVG(__DIR__ . '/images/notebook-edit-outline.svg') . " " . "".inlineSVG(__DIR__ . '/images/notebook-outline.svg')." $itemtitle"; if($isbookmanager) { $out .= ' ('.dformat($item['mtime']).')'; } $out .= '
  • '; return $out; } }