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