87 lines
3.4 KiB
PHP
87 lines
3.4 KiB
PHP
|
<?php
|
||
|
/**
|
||
|
* DokuWiki Image Detail Page
|
||
|
*
|
||
|
* @author Ruediger Marwein <henryxiv@hotmail.com>
|
||
|
*/
|
||
|
|
||
|
// must be run from within DokuWiki
|
||
|
if (!defined('DOKU_INC')) die();
|
||
|
?><!DOCTYPE html>
|
||
|
<html 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>
|
||
|
<?php tpl_metaheaders()?>
|
||
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||
|
<?php echo tpl_favicon(array('favicon', 'mobile')) ?>
|
||
|
<?php tpl_includeFile('meta.html') ?>
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
|
||
|
<div id="dokuwiki__site"><div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?>">
|
||
|
<article id="dokuwiki__detail">
|
||
|
<div class="container">
|
||
|
<!-- PAGE ACTIONS -->
|
||
|
<?php if (!$ERROR): ?>
|
||
|
<div id="dokuwiki__pagetools">
|
||
|
<div class="container">
|
||
|
<h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
|
||
|
<div class="tools">
|
||
|
<ul class="list-group">
|
||
|
<?php echo (new \dokuwiki\Menu\DetailMenu())->getListItems("list-group-item "); ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php endif; ?>
|
||
|
|
||
|
<h1>DETAIL</h1>
|
||
|
<?php html_msgarea() ?>
|
||
|
<?php if(!$ERROR): ?>
|
||
|
<div class="pageId"><span><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG)); ?></span></div>
|
||
|
<?php endif; ?>
|
||
|
|
||
|
<?php
|
||
|
if($ERROR):
|
||
|
echo '<div class="alert alert-danger" role="alert">'.$ERROR.'</div>';
|
||
|
else: ?>
|
||
|
<?php if($REV) echo p_locale_xhtml('showrev');?>
|
||
|
<h1><?php echo nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h1>
|
||
|
|
||
|
<?php tpl_img(1280,1280); /* parameters: maximum width, maximum height (and more) */ ?>
|
||
|
|
||
|
<div class="img_detail panel">
|
||
|
<div class="panel-body">
|
||
|
<?php tpl_img_meta(); ?>
|
||
|
<dl>
|
||
|
<?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>
|
||
|
<div class="alert alert-danger" role="alert"><?php echo $lang['media_acl_warning']; ?></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
|
||
|
<?php endif; ?>
|
||
|
</div>
|
||
|
</article>
|
||
|
<hr class="a11y" />
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|