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        <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
26    <link href="<?php echo tpl_getMediaFile(array("bs/bootstrap.min.css")); ?>" rel="stylesheet">
27    <script src="<?php echo tpl_getMediaFile(array("bs/bootstrap.min.js")); ?>" type="text/javascript"></script>
28</head>
29<body>
30    <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
31    <div id="media__manager" class="dokuwiki">
32        <?php html_msgarea() ?>
33        <div id="mediamgr__aside"><div class="pad">
34            <h1><?php echo hsc($lang['mediaselect'])?></h1>
35
36            <?php /* keep the id! additional elements are inserted via JS here */?>
37            <div id="media__opts"></div>
38
39            <?php tpl_mediaTree() ?>
40        </div></div>
41
42        <div id="mediamgr__content"><div class="pad">
43            <?php tpl_mediaContent() ?>
44        </div></div>
45    </div>
46    <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]-->
47<script>
48jQuery(document).ready(function()
49{
50
51        jQuery("button, #media__manager  .qq-upload-button,#media__manager .qq-upload-action").addClass( "btn btn-default" );
52  //    jQuery(".dokuwiki .secedit button").addClass("btn btn-default btn-xs pull-right");
53
54});
55</script>
56</body>
57</html>
58