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();
10header('X-UA-Compatible: IE=edge,chrome=1');
11
12?><!DOCTYPE html>
13<html lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>" class="popup no-js">
14<head>
15    <meta charset="utf-8" />
16    <title>
17        <?php echo hsc($lang['mediaselect'])?>
18        [<?php echo strip_tags($conf['title'])?>]
19    </title>
20    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
21    <?php tpl_metaheaders()?>
22    <meta name="viewport" content="width=device-width,initial-scale=1" />
23    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
24    <?php tpl_includeFile('meta.html') ?>
25</head>
26
27<body>
28    <div id="media__manager" class="dokuwiki">
29        <?php html_msgarea() ?>
30        <div id="mediamgr__aside"><div class="pad">
31            <h1><?php echo hsc($lang['mediaselect'])?></h1>
32
33            <?php /* keep the id! additional elements are inserted via JS here */?>
34            <div id="media__opts"></div>
35
36            <?php tpl_mediaTree() ?>
37        </div></div>
38
39        <div id="mediamgr__content"><div class="pad">
40            <?php tpl_mediaContent() ?>
41        </div></div>
42    </div>
43</body>
44</html>