/** * 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; }
/** * Return the content of the right column * (image details) for the Mediamanager * * @author Kate Arzamastseva <*****@*****.**> */ function ajax_mediadetails() { global $DEL, $NS, $IMG, $AUTH, $JUMPTO, $REV, $lang, $fullscreen, $conf, $INPUT; $fullscreen = true; require_once DOKU_INC . 'lib/exe/mediamanager.php'; if ($INPUT->has('image')) { $image = cleanID($INPUT->str('image')); } if (isset($IMG)) { $image = $IMG; } if (isset($JUMPTO)) { $image = $JUMPTO; } if (isset($REV) && !$JUMPTO) { $rev = $REV; } html_msgarea(); tpl_mediaFileDetails($image, $rev); }