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@require_once(dirname(__FILE__).'/tpl_functions.php');
11header('X-UA-Compatible: IE=edge,chrome=1');
12
13?><!DOCTYPE html>
14<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
15  lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>" class="popup no-js">
16<head>
17    <meta charset="UTF-8" />
18    <title>
19        <?php echo hsc($lang['mediaselect'])?>
20        [<?php echo strip_tags($conf['title'])?>]
21    </title>
22    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" />
23    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css" />
24    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
25    <?php tpl_metaheaders()?>
26    <meta name="viewport" content="width=device-width,initial-scale=1" />
27    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
28    <?php tpl_includeFile('meta.html') ?>
29    <link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css' />
30</head>
31
32<body class="<?php echo tpl_classes(); ?> media-popup">
33    <div id="media__manager">
34        <?php html_msgarea() ?>
35        <div id="mediamgr__aside"><div class="group">
36            <h1><?php echo hsc($lang['mediaselect'])?></h1>
37
38            <?php /* keep the id! additional elements are inserted via JS here */?>
39            <div id="media__opts"></div>
40
41            <?php tpl_mediaTree() ?>
42        </div></div>
43
44        <div id="mediamgr__content"><div class="group">
45            <?php tpl_mediaContent() ?>
46        </div></div>
47    </div>
48</body>
49</html>
50