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'); /* include hook for template functions */ 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 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 23 <?php tpl_metaheaders()?> 24 <meta name="viewport" content="width=device-width,initial-scale=1" /> 25 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 26 <?php tpl_includeFile('meta.html') ?> 27 28 <?php 29 $baseDir = tpl_basedir(); 30 echo '<link type="text/css" rel="stylesheet" href="' . $baseDir . 'assets/fontawesome/css/all.min.css">'; 31 echo '<link type="text/css" rel="stylesheet" href="' . $baseDir . 'assets/bootstrap/bootstrap.min.css">'; 32 echo '<link type="text/css" rel="stylesheet" href="' . $baseDir . 'assets/mikio.css">'; 33 echo '<script type="text/javascript" src="' . $baseDir . 'assets/mikio-mediamanager.js"></script>'; 34 ?> 35 36 37</head> 38 39<body> 40 <!--[if IE 8 ]><div id="IE8"><![endif]--> 41 <div id="media__manager" class="<?php echo tpl_classes(); ?>"> 42 <?php html_msgarea() ?> 43 <div id="mediamgr__aside"><div class="pad"> 44 <h1><?php echo hsc($lang['mediaselect'])?></h1> 45 46 <?php /* keep the id! additional elements are inserted via JS here */?> 47 <div id="media__opts"></div> 48 49 <?php tpl_mediaTree() ?> 50 </div></div> 51 52 <div id="mediamgr__content"><div class="pad"> 53 <?php tpl_mediaContent() ?> 54 </div></div> 55 </div> 56 <!--[if lte IE 8 ]></div><![endif]--> 57</body> 58</html> 59