/** * Handles a 'medialist' ajax call * * @see ajax_medialist() */ function _handleAjaxMediaList(&$event) { global $NS; if ($event->data !== 'preservefilenames_medialist') { return; } $event->preventDefault(); $NS = cleanID($_POST['ns']); if ($_POST['do'] === 'media') { $this->_mod_tpl_mediaFileList(); } else { tpl_mediaContent('fromAjax'); } }
<div id="media__manager" class="<?php echo tpl_classes(); ?> row"> <div id="mediamgr__aside" class="col-xs-4"> <h1><?php echo hsc($lang['mediaselect']); ?> </h1> <?php /* keep the id! additional elements are inserted via JS here */ ?> <div id="media__opts"></div> <?php tpl_mediaTree(); ?> </div> <div id="mediamgr__content" class="col-xs-8"> <?php tpl_mediaContent(); ?> </div> </div> </body> </html>
/** * Return list of files for the Mediamanager * * @author Andreas Gohr <*****@*****.**> */ function ajax_medialist() { global $conf; global $NS; $NS = $_POST['ns']; tpl_mediaContent(true); }
/** * Return list of files for the Mediamanager * * @author Andreas Gohr <*****@*****.**> */ function ajax_medialist() { global $conf; global $NS; global $INPUT; $NS = cleanID($INPUT->post->str('ns')); if ($INPUT->post->str('do') == 'media') { tpl_mediaFileList(); } else { tpl_mediaContent(true); } }
/** * Return list of files for the Mediamanager * * @author Andreas Gohr <*****@*****.**> */ function ajax_medialist() { global $conf; global $NS; $NS = $_POST['ns']; if ($_POST['do'] == 'media') { tpl_mediaFileList(); } else { tpl_mediaContent(true); } }
<?php echo hsc($lang['mediaselect'])?> [<?php echo strip_tags($conf['title'])?>] </title> <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> <?php tpl_metaheaders()?> <meta name="viewport" content="width=device-width,initial-scale=1" /> <?php echo tpl_favicon(array('favicon', 'mobile')) ?> <?php tpl_includeFile('meta.html') ?> </head> <body> <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]--> <div id="media__manager" class="dokuwiki"> <?php html_msgarea() ?> <div id="mediamgr__aside"><div class="pad"> <h1><?php echo hsc($lang['mediaselect'])?></h1> <?php /* keep the id! additional elements are inserted via JS here */?> <div id="media__opts"></div> <?php tpl_mediaTree() ?> </div></div> <div id="mediamgr__content"><div class="pad"> <?php tpl_mediaContent() ?> </div></div> </div> <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]--> </body> </html>
/** * Return list of files for the Mediamanager * * @author Andreas Gohr <*****@*****.**> */ function ajax_medialist() { global $NS; global $INPUT; $NS = cleanID($INPUT->post->str('ns')); $sort = $INPUT->post->bool('recent') ? 'date' : 'natural'; if ($INPUT->post->str('do') == 'media') { tpl_mediaFileList(); } else { tpl_mediaContent(true, $sort); } }
/** * Return list of files for the Mediamanager * * @author Andreas Gohr <*****@*****.**> */ function ajax_medialist() { global $conf; global $NS; require_once DOKU_INC . 'inc/media.php'; require_once DOKU_INC . 'inc/template.php'; $NS = $_POST['ns']; tpl_mediaContent(true); }