forked from mdik/dokuwiki-template-bootstrap3
-
Notifications
You must be signed in to change notification settings - Fork 1
/
detail.php
executable file
·122 lines (102 loc) · 4.34 KB
/
detail.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
/**
* DokuWiki Bootstrap3 Template: Image Detail Page
*
* @link http://dokuwiki.org/template:bootstrap3
* @author Andreas Gohr <[email protected]>
* @author Anika Henke <[email protected]>
* @author Giuseppe Di Terlizzi <[email protected]>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();
@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
header('X-UA-Compatible: IE=edge,chrome=1');
include_once(dirname(__FILE__).'/tpl_global.php'); // Include template global variables
?><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
<head>
<meta charset="UTF-8" />
<title><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?> [<?php echo strip_tags($conf['title'])?>]</title>
<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<?php echo tpl_favicon(array('favicon', 'mobile')) ?>
<?php tpl_includeFile('meta.html') ?>
<?php foreach ($bootstrapStyles as $bootstrapStyle): ?>
<link type="text/css" rel="stylesheet" href="<?php echo $bootstrapStyle; ?>" />
<?php endforeach; ?>
<link type="text/css" rel="stylesheet" href="<?php echo DOKU_TPL ?>assets/font-awesome/css/font-awesome.min.css" />
<script type="text/javascript">/*<![CDATA[*/
var TPL_CONFIG = <?php echo json_encode($tplConfigJSON); ?>;
/*!]]>*/</script>
<?php tpl_metaheaders()?>
<script type="text/javascript" src="<?php echo DOKU_TPL ?>assets/bootstrap/js/bootstrap.min.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script type="text/javascript" src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script type="text/javascript" src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="container">
<!--[if IE 8 ]><div id="IE8"><![endif]-->
<div id="dokuwiki__detail" class="<?php echo tpl_classes(); ?>">
<?php html_msgarea() ?>
<?php if($ERROR): print $ERROR; ?>
<?php else: ?>
<h1 class="page-header">
<i class="fa fa-picture-o text-muted"></i> <?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG))?>
</h1>
<div class="row">
<div class="col-md-8">
<?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?>
</div>
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<i class="fa fa-picture-o"></i> <?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?>
</h4>
</div>
<div class="panel-body">
<?php
tpl_img_meta();
//Comment in for Debug
// dbg(tpl_img_getTag('Simple.Raw'));
?>
<hr/>
<dl class="dl-horizontal">
<?php
echo '<dt>'.$lang['reference'].':</dt>';
$media_usage = ft_mediause($IMG,true);
if(count($media_usage) > 0){
foreach($media_usage as $path){
echo '<dd>'.html_wikilink($path).'</dd>';
}
}else{
echo '<dd>'.$lang['nothingfound'].'</dd>';
}
?>
</dl>
<?php
// This message is available from release 2015-08-10 "Detritus"
if(isset($lang['media_acl_warning'])): ?>
<div class="alert alert-warning">
<i class="fa fa-warning"></i> <?php echo $lang['media_acl_warning']; ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<hr/>
<div class="btn-group">
<?php tpl_action('img_backto', 1) ?>
<?php tpl_action('mediaManager', 1) ?>
</div>
<?php endif; ?>
</div>
<!--[if IE 8 ]></div><![endif]-->
</body>
</html>