SPR-814: html5 instead of xhtml
This commit is contained in:
parent
abea45224d
commit
fa31b96cc4
1 changed files with 49 additions and 23 deletions
68
detail.php
68
detail.php
|
@ -1,17 +1,16 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* DokuWiki Image Detail Page
|
* DokuWiki sprintDoc Detail Template
|
||||||
*
|
*
|
||||||
* @author Andreas Gohr <andi@splitbrain.org>
|
* @link FIXME
|
||||||
* @author Anika Henke <anika@selfthinker.org>
|
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
|
||||||
|
* @author Michael Grosse <grosse@cosmocode.de>
|
||||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
*/
|
*/
|
||||||
|
use dokuwiki\template\sprintdoc\Template;
|
||||||
|
|
||||||
// must be run from within DokuWiki
|
if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
|
||||||
if (!defined('DOKU_INC')) {
|
|
||||||
die();
|
|
||||||
}
|
|
||||||
header('X-UA-Compatible: IE=edge,chrome=1');
|
header('X-UA-Compatible: IE=edge,chrome=1');
|
||||||
|
|
||||||
global $JSINFO;
|
global $JSINFO;
|
||||||
|
@ -20,20 +19,43 @@ if (empty($JSINFO)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
|
<html class="edge no-js" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>">
|
||||||
lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8"/>
|
<?php
|
||||||
<title>
|
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||||
<?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG)) ?>
|
/* meta and link relations */
|
||||||
[<?php echo strip_tags($conf['title']) ?>]
|
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||||
</title>
|
?>
|
||||||
<script>(function (H) {
|
<meta charset="utf-8" />
|
||||||
H.className = H.className.replace(/\bno-js\b/, 'js')
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
})(document.documentElement)</script>
|
|
||||||
<?php tpl_metaheaders() ?>
|
<?php tpl_metaheaders() ?>
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1"/>
|
<?php
|
||||||
<?php echo tpl_favicon(array('favicon', 'mobile')) ?>
|
|
||||||
|
|
||||||
|
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||||
|
/* page title */
|
||||||
|
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||||
|
?>
|
||||||
|
<title><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG)) ?> [<?php echo strip_tags($conf['title']) ?>]</title>
|
||||||
|
|
||||||
|
<script type="text/javascript">(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||||
|
/* favicons */
|
||||||
|
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||||
|
?>
|
||||||
|
<?php
|
||||||
|
include('tpl/favicon_tiles.php');
|
||||||
|
?>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||||
|
/* Include Hook: meta.html */
|
||||||
|
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||||
|
?>
|
||||||
<?php tpl_includeFile('meta.html') ?>
|
<?php tpl_includeFile('meta.html') ?>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
@ -177,8 +199,12 @@ if (empty($JSINFO)) {
|
||||||
<?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?>
|
<?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="img_detail">
|
<div class="img_detail"><?php
|
||||||
<h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2>
|
$simple_title = hsc(tpl_img_getTag('simple.title'));
|
||||||
|
if(strlen($simple_title) > 0) { ?>
|
||||||
|
<h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2><?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
tpl_img_meta();
|
tpl_img_meta();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue