(upstream) * @author Michael Klier (upstrema) * @author Gina Haeussge (upstream) * @author lainme */ // must be run within Dokuwiki if (!defined('DOKU_INC')) die(); class helper_plugin_miniblog_entry extends DokuWiki_Plugin { public function entry_list($ns) { global $conf; // pages to display search($pages, $conf['datadir'], 'search_pagename', array('query'=>'.txt'), $ns); // sort $entries = array(); foreach ((array)$pages as $page) { $date = p_get_metadata($page['id'], 'date created', METADATA_DONT_RENDER); $user = p_get_metadata($page['id'], 'user', METADATA_DONT_RENDER); $entries[$date] = array( 'id' => $page['id'], 'date' => $date, 'user' => $user, ); } krsort($entries); return $entries; } public function entry_content($id, $canonical=false) { global $conf; $ins = p_cached_instructions(wikiFN($id), false, $id); // delete heading, resolve internal links and remove comment $head = false; for ($i=0; $i