1<?php
2
3/**
4 * DokuWiki Media Manager Popup
5 *
6 * @author   Andreas Gohr <andi@splitbrain.org>
7 * @author   Petr Kajzar <petr.kajzar@centrum.cz>
8 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
9 */
10
11// must be run from within DokuWiki
12if (!defined('DOKU_INC')) die();
13
14?><!DOCTYPE html>
15<html lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>" class="popup no-js">
16<head>
17<meta charset="utf-8">
18<meta name="viewport" content="width=device-width">
19<title>
20    <?php echo hsc($lang['mediaselect'])?> [<?php echo strip_tags($conf['title'])?>]
21</title>
22<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
23<?php tpl_metaheaders()?>
24<?php echo tpl_favicon(array('favicon')) ?>
25<?php tpl_includeFile('meta.html') ?>
26</head>
27
28<body>
29    <div id="media__manager" class="dokuwiki">
30        <?php html_msgarea() ?>
31        <nav id="mediamgr__aside"><div class="pad">
32            <h1><?php echo hsc($lang['mediaselect'])?></h1>
33
34            <?php /* keep the id! additional elements are inserted via JS here */?>
35            <div id="media__opts"></div>
36
37            <?php tpl_mediaTree() ?>
38        </div></nav>
39
40        <main id="mediamgr__content">
41            <?php tpl_mediaContent() ?>
42        </main>
43    </div>
44</body>
45</html>