/** * Prints full-screen media manager * * @see tpl_media() */ function _mod_tpl_media() { global $DEL, $NS, $IMG, $AUTH, $JUMPTO, $REV, $lang, $fullscreen, $conf; $fullscreen = true; require_once DOKU_INC . 'lib/exe/mediamanager.php'; if ($_REQUEST['image']) { $image = cleanID($_REQUEST['image']); } if (isset($IMG)) { $image = $IMG; } if (isset($JUMPTO)) { $image = $JUMPTO; } if (isset($REV) && !$JUMPTO) { $rev = $REV; } echo '<div id="mediamanager__page">' . NL; echo '<h1>' . $lang['btn_media'] . '</h1>' . NL; html_msgarea(); echo '<div class="panel namespaces">' . NL; echo '<h2>' . $lang['namespaces'] . '</h2>' . NL; echo '<div class="panelHeader">'; echo $lang['media_namespaces']; echo '</div>' . NL; echo '<div class="panelContent" id="media__tree">' . NL; media_nstree($NS); echo '</div>' . NL; echo '</div>' . NL; echo '<div class="panel filelist">' . NL; $this->_mod_tpl_mediaFileList(); echo '</div>' . NL; echo '<div class="panel file">' . NL; echo '<h2 class="a11y">' . $lang['media_file'] . '</h2>' . NL; tpl_mediaFileDetails($image, $rev); echo '</div>' . NL; echo '</div>' . NL; }
/** * prints the namespace tree in the mediamanger popup * * Only allowed in mediamanager.php * * @author Andreas Gohr <*****@*****.**> */ function tpl_mediaTree() { global $NS; ptln('<div id="media__tree">'); media_nstree($NS); ptln('</div>'); }