Adding MindTheDark version 2025-03-17 (c5e286f).
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
cd81ae610b
commit
19df4a7159
126 changed files with 6282 additions and 0 deletions
138
templates/55/MindTheDark/detail.php
Normal file
138
templates/55/MindTheDark/detail.php
Normal file
|
@ -0,0 +1,138 @@
|
|||
<?php
|
||||
/**
|
||||
* DokuWiki Image Detail Page
|
||||
*
|
||||
* @author Andreas Gohr <andi@splitbrain.org>
|
||||
* @author Anika Henke <anika@selfthinker.org>
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*/
|
||||
|
||||
/**
|
||||
* MindTheDark theme settings ******************************************************
|
||||
*/
|
||||
$configUserChoice = tpl_getConf('userChoice');
|
||||
$configAutoDark = tpl_getConf('autoDark');
|
||||
$theme = tpl_getConf('theme');
|
||||
|
||||
if ($configUserChoice) {
|
||||
|
||||
if (isset($_COOKIE["theme"])) {
|
||||
$theme = $_COOKIE["theme"];
|
||||
}
|
||||
else {
|
||||
// If the cookie has never been set and both options are enabled,
|
||||
// then the auto mode will be used until the user makes a choice
|
||||
if ($configAutoDark) {
|
||||
$theme = "auto";
|
||||
}
|
||||
else {
|
||||
$theme = "light";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($configAutoDark and !$configUserChoice) {
|
||||
$theme = "auto";
|
||||
}
|
||||
|
||||
// must be run from within DokuWiki
|
||||
if (!defined('DOKU_INC')) die();
|
||||
header('X-UA-Compatible: IE=edge,chrome=1');
|
||||
|
||||
?><!DOCTYPE html>
|
||||
<html lang="<?php echo $conf['lang']?>"
|
||||
dir="<?php echo $lang['direction'] ?>"
|
||||
class="no-js"
|
||||
theme="<?php echo $theme ?>">
|
||||
|
||||
<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" />
|
||||
<meta name="configUserChoice" id="configUserChoice" content="<?php echo $configUserChoice ?>" />
|
||||
<?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(); ?>">
|
||||
|
||||
<?php include('tpl_header.php') ?>
|
||||
|
||||
<div class="wrapper group" id="dokuwiki__detail">
|
||||
|
||||
<!-- ********** CONTENT ********** -->
|
||||
<div id="dokuwiki__content"><div class="pad group">
|
||||
<?php html_msgarea() ?>
|
||||
|
||||
<?php if(!$ERROR): ?>
|
||||
<div class="pageId"><span><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG)); ?></span></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="page group">
|
||||
<?php tpl_flush() ?>
|
||||
<?php tpl_includeFile('pageheader.html') ?>
|
||||
<!-- detail start -->
|
||||
<?php
|
||||
if($ERROR):
|
||||
echo '<h1>'.$ERROR.'</h1>';
|
||||
else: ?>
|
||||
<?php if($REV) echo p_locale_xhtml('showrev');?>
|
||||
<h1><?php echo nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h1>
|
||||
|
||||
<?php tpl_img(900,700); /* parameters: maximum width, maximum height (and more) */ ?>
|
||||
|
||||
<div class="img_detail">
|
||||
<?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>
|
||||
<p><?php echo $lang['media_acl_warning']; ?></p>
|
||||
</div>
|
||||
<?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- detail stop -->
|
||||
<?php tpl_includeFile('pagefooter.html') ?>
|
||||
<?php tpl_flush() ?>
|
||||
|
||||
<?php /* doesn't make sense like this; @todo: maybe add tpl_imginfo()?
|
||||
<div class="docInfo"><?php tpl_pageinfo(); ?></div>
|
||||
*/ ?>
|
||||
|
||||
</div></div><!-- /content -->
|
||||
|
||||
<hr class="a11y" />
|
||||
|
||||
<!-- PAGE ACTIONS -->
|
||||
<?php if (!$ERROR): ?>
|
||||
<div id="dokuwiki__pagetools">
|
||||
<h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
|
||||
<div class="tools">
|
||||
<ul>
|
||||
<?php echo (new \dokuwiki\Menu\DetailMenu())->getListItems(); ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div><!-- /wrapper -->
|
||||
|
||||
<?php include('tpl_footer.php') ?>
|
||||
</div></div><!-- /site -->
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue