xref: /template/sprintdoc/detail.php (revision fa31b96cc4fcf7b1ac51920ced1fb7822903d1f3)
1994d0e8dSAndreas Gohr<!DOCTYPE html>
29e150176SJana Deutschländer<?php
39e150176SJana Deutschländer/**
4*fa31b96cSJana Deutschländer * DokuWiki sprintDoc Detail Template
59e150176SJana Deutschländer *
6*fa31b96cSJana Deutschländer * @link     FIXME
7*fa31b96cSJana Deutschländer * @author   Jana Deutschlaender <deutschlaender@cosmocode.de>
8*fa31b96cSJana Deutschländer * @author   Michael Grosse <grosse@cosmocode.de>
99e150176SJana Deutschländer * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
109e150176SJana Deutschländer */
11*fa31b96cSJana Deutschländeruse dokuwiki\template\sprintdoc\Template;
129e150176SJana Deutschländer
13*fa31b96cSJana Deutschländerif (!defined('DOKU_INC')) die();                        /* must be run from within DokuWiki */
149e150176SJana Deutschländerheader('X-UA-Compatible: IE=edge,chrome=1');
159e150176SJana Deutschländer
16e1c37e40SMichael Großeglobal $JSINFO;
17e1c37e40SMichael Großeif (empty($JSINFO)) {
18e1c37e40SMichael Große    $JSINFO = array();
19e1c37e40SMichael Große}
20e1c37e40SMichael Große
21994d0e8dSAndreas Gohr?>
22*fa31b96cSJana Deutschländer<html class="edge no-js" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>">
239e150176SJana Deutschländer<head>
24*fa31b96cSJana Deutschländer<?php
25*fa31b96cSJana Deutschländer/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
26*fa31b96cSJana Deutschländer/* meta and link relations */
27*fa31b96cSJana Deutschländer/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
28*fa31b96cSJana Deutschländer?>
29*fa31b96cSJana Deutschländer<meta charset="utf-8" />
30*fa31b96cSJana Deutschländer<meta name="viewport" content="width=device-width, initial-scale=1.0" />
319e150176SJana Deutschländer<?php tpl_metaheaders() ?>
32*fa31b96cSJana Deutschländer<?php
33*fa31b96cSJana Deutschländer
34*fa31b96cSJana Deutschländer
35*fa31b96cSJana Deutschländer/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
36*fa31b96cSJana Deutschländer/* page title */
37*fa31b96cSJana Deutschländer/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
38*fa31b96cSJana Deutschländer?>
39*fa31b96cSJana Deutschländer<title><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG)) ?> [<?php echo strip_tags($conf['title']) ?>]</title>
40*fa31b96cSJana Deutschländer
41*fa31b96cSJana Deutschländer<script type="text/javascript">(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
42*fa31b96cSJana Deutschländer<?php
43*fa31b96cSJana Deutschländer
44*fa31b96cSJana Deutschländer
45*fa31b96cSJana Deutschländer/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
46*fa31b96cSJana Deutschländer/* favicons */
47*fa31b96cSJana Deutschländer/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
48*fa31b96cSJana Deutschländer?>
49*fa31b96cSJana Deutschländer<?php
50*fa31b96cSJana Deutschländerinclude('tpl/favicon_tiles.php');
51*fa31b96cSJana Deutschländer?>
52*fa31b96cSJana Deutschländer<?php
53*fa31b96cSJana Deutschländer
54*fa31b96cSJana Deutschländer
55*fa31b96cSJana Deutschländer/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
56*fa31b96cSJana Deutschländer/* Include Hook: meta.html */
57*fa31b96cSJana Deutschländer/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
58*fa31b96cSJana Deutschländer?>
599e150176SJana Deutschländer<?php tpl_includeFile('meta.html') ?>
609e150176SJana Deutschländer</head>
619e150176SJana Deutschländer
6214353296SMichael Große<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> wide-content showSidebar">
6314353296SMichael Große<div id="dokuwiki__site">
6414353296SMichael Große    <?php include('tpl/nav-direct.php') ?>
6514353296SMichael Große
6614353296SMichael Große
6714353296SMichael Große    <div class="page-wrapper <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
6814353296SMichael Große        <?php
6914353296SMichael Große        tpl_includeFile('header.html');
7014353296SMichael Große        ?>
7114353296SMichael Große
7214353296SMichael Große        <div id="dokuwiki__header" class="header no-print">
7314353296SMichael Große            <div class="container">
7414353296SMichael Große                <div class="row">
7514353296SMichael Große                    <div class="col-xs-12">
7614353296SMichael Große                        <div class="claim main-sidebar">
7714353296SMichael Große                            <?php if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))) {
7814353296SMichael Große
7914353296SMichael Große                                /* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */
8014353296SMichael Große                                include('tpl/main-sidebar-logo.php');
8114353296SMichael Große                            } ?>
8214353296SMichael Große                            <?php if ($conf['tagline']): ?>
8314353296SMichael Große                                <p class="claim"><?php echo $conf['tagline'] ?></p>
8414353296SMichael Große                            <?php endif ?>
8514353296SMichael Große
8614353296SMichael Große                        </div><!-- .headings -->
8714353296SMichael Große                    </div><!-- .col -->
8814353296SMichael Große                </div><!-- .row -->
8914353296SMichael Große            </div><!-- .container -->
9014353296SMichael Große        </div><!-- .header -->
9114353296SMichael Große
9214353296SMichael Große        <div class="sr-only nav-area-head">
9314353296SMichael Große            <h5 class="sr-only" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5>
9414353296SMichael Große        </div><!-- .nav-area-head -->
9514353296SMichael Große
9614353296SMichael Große        <div class="tools">
9714353296SMichael Große            <div class="container">
9814353296SMichael Große                <div class="row">
9914353296SMichael Große                    <div class="col-xs-12">
10014353296SMichael Große
10114353296SMichael Große                        <div class="sidebarheader main-sidebar">
10214353296SMichael Große                            <?php
10314353296SMichael Große                            tpl_includeFile('sidebarheader.html')
10414353296SMichael Große                            ?>
10514353296SMichael Große                        </div><!-- .sidebarheader -->
10614353296SMichael Große
10714353296SMichael Große                        <div class="search main-sidebar">
10814353296SMichael Große                            <?php
10914353296SMichael Große                            include('tpl/main-sidebar-search.php');
11014353296SMichael Große                            ?>
11114353296SMichael Große                        </div><!-- .search -->
11214353296SMichael Große
11314353296SMichael Große                        <div id="dokuwiki__aside">
11414353296SMichael Große                            <?php
11514353296SMichael Große                            include('tpl/main-sidebar-nav.php');
11614353296SMichael Große                            ?>
11714353296SMichael Große                        </div><!-- .aside -->
11814353296SMichael Große
11914353296SMichael Große                    </div><!-- .col -->
12014353296SMichael Große                </div><!-- .row -->
12114353296SMichael Große            </div><!-- .container -->
12214353296SMichael Große        </div><!-- .tools -->
12314353296SMichael Große
12414353296SMichael Große        <div class="top-header">
12514353296SMichael Große            <div class="container">
12614353296SMichael Große                <div class="row">
12714353296SMichael Große                    <div class="col-xs-12">
12814353296SMichael Große
12914353296SMichael Große                        <?php
13014353296SMichael Große                        $showTools = true;
13114353296SMichael Große                        include('tpl/nav-usertools-buttons.php');
13214353296SMichael Große                        tpl_includeFile('header.html');
13314353296SMichael Große                        ?>
13414353296SMichael Große
13514353296SMichael Große                    </div><!-- .col -->
13614353296SMichael Große                </div><!-- .row -->
13714353296SMichael Große            </div><!-- .container -->
13814353296SMichael Große        </div><!-- /top-header -->
13914353296SMichael Große
14014353296SMichael Große
14114353296SMichael Große        <div id="dokuwiki__detail">
1429e150176SJana Deutschländer            <?php html_msgarea() ?>
1439e150176SJana Deutschländer
14414353296SMichael Große            <div class="content group">
14514353296SMichael Große                <div class="container">
14614353296SMichael Große                    <div class="row">
14714353296SMichael Große                        <div class="col-xs-12">
14814353296SMichael Große                            <div class="breadcrumbs" data-do="<?php echo $ACT ?>">
14914353296SMichael Große
15014353296SMichael Große                                <div class="togglelink page_main-content">
151ecb77cc5SMichael Große                                    <a href="#"><span
152ecb77cc5SMichael Große                                            class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle') ?></span></a>
15314353296SMichael Große                                </div>
15414353296SMichael Große
155ecb77cc5SMichael Große                                <h6 class="sr-only" role="heading"
156ecb77cc5SMichael Große                                    aria-level="2"><?php echo tpl_getLang('head_menu_status') ?></h6>
15714353296SMichael Große
15814353296SMichael Große                                <?php
15914353296SMichael Große
16014353296SMichael Große                                /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
16114353296SMichael Große                                /* page quality / page tasks */
16214353296SMichael Große                                /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
16314353296SMichael Große                                include('tpl/nav-page-quality-tasks.php');
16414353296SMichael Große                                ?>
16514353296SMichael Große
16614353296SMichael Große                                <?php
16714353296SMichael Große                                /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
16814353296SMichael Große                                /* breadcrumb */
16914353296SMichael Große                                /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
17014353296SMichael Große                                include('tpl/nav-breadcrumb.php');
17114353296SMichael Große                                ?>
17214353296SMichael Große
17314353296SMichael Große                                <h6 class="sr-only" role="heading" aria-level="2"><?php echo $lang['page_tools'] ?></h6>
17414353296SMichael Große
1755c6ddbf8SMichael Große                                <nav id="dokuwiki__pagetools">
1765c6ddbf8SMichael Große                                    <div class="tools">
1775c6ddbf8SMichael Große                                        <ul>
17814353296SMichael Große                                            <?php
1795c6ddbf8SMichael Große                                            echo '<li>' . dokuwiki\template\sprintdoc\tpl::pageToolAction('mediaManager') . '</li>';
1805c6ddbf8SMichael Große                                            echo '<li>' . dokuwiki\template\sprintdoc\tpl::pageToolAction('img_backto') . '</li>';
18114353296SMichael Große                                            ?>
1825c6ddbf8SMichael Große                                        </ul>
1835c6ddbf8SMichael Große                                    </div>
1845c6ddbf8SMichael Große                                </nav>
18514353296SMichael Große
18614353296SMichael Große                            </div>
18714353296SMichael Große                            <div id="dokuwiki__content" class="page main-content">
18814353296SMichael Große
18914353296SMichael Große                                <div id="spr__meta-box"></div>
19014353296SMichael Große
1919e150176SJana Deutschländer                                <?php if ($ERROR): print $ERROR; ?>
1929e150176SJana Deutschländer                                <?php else: ?>
1939e150176SJana Deutschländer
194ecb77cc5SMichael Große                                <?php if ($REV) {
195ecb77cc5SMichael Große                                    echo p_locale_xhtml('showrev');
196ecb77cc5SMichael Große                                } ?>
1979e150176SJana Deutschländer                                <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG)) ?></h1>
1982ac13e14SJana Deutschländer                                <div class="img-link">
1999e150176SJana Deutschländer                                    <?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?>
2002ac13e14SJana Deutschländer                                </div>
2019e150176SJana Deutschländer
202*fa31b96cSJana Deutschländer                                <div class="img_detail"><?php
203*fa31b96cSJana Deutschländer                                    $simple_title = hsc(tpl_img_getTag('simple.title'));
204*fa31b96cSJana Deutschländer                                    if(strlen($simple_title) > 0) { ?>
205*fa31b96cSJana Deutschländer                                    <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2><?php
206*fa31b96cSJana Deutschländer                                    }
207*fa31b96cSJana Deutschländer                                    ?>
2089e150176SJana Deutschländer
209f2a0ea7bSMichael Große                                    <?php
210f2a0ea7bSMichael Große                                    tpl_img_meta();
211f2a0ea7bSMichael Große
212f2a0ea7bSMichael Große                                    /** @var helper_plugin_spatialhelper_index $spatial */
213f2a0ea7bSMichael Große                                    $spatial = plugin_load('helper', 'spatialhelper_index');
214f2a0ea7bSMichael Große                                    if ($spatial && plugin_load('helper', 'geophp')) {
215f2a0ea7bSMichael Große                                        global $IMG;
216f2a0ea7bSMichael Große                                        $point = $spatial->getCoordsFromExif($IMG);
217f2a0ea7bSMichael Große                                        if ($point) {
218f2a0ea7bSMichael Große                                            $long = $point->getX();
219f2a0ea7bSMichael Große                                            $lat = $point->getY();
220f2a0ea7bSMichael Große                                            $latShort = round($lat, 3);
221f2a0ea7bSMichael Große                                            $longShort = round($long, 3);
222f2a0ea7bSMichael Große
223f2a0ea7bSMichael Große                                            $hrefOSM = "https://www.openstreetmap.org/?mlat=$lat&mlon=$long#map=18/$lat/$long";
224f2a0ea7bSMichael Große                                            $srcOSM = 'https://www.openstreetmap.org/export/embed.html?bbox=' . ($long - 0.004) . ',' . ($lat - 0.002) . ',' . ($long + 0.004) . ',' . ($lat + 0.002) . '&layer=mapnik&marker=' . $lat . ',' . $long;
225f2a0ea7bSMichael Große                                            echo '<dl>';
226f2a0ea7bSMichael Große                                            echo '<dt title="Open Street Maps">OSM:</dt><dd>';
227f2a0ea7bSMichael Große                                            echo '<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="' . $srcOSM . '" style="border: 1px solid black"></iframe><br/><small><a href="' . $hrefOSM . '">View Larger Map</a></small>';
228f2a0ea7bSMichael Große                                            echo '</dd>';
229f2a0ea7bSMichael Große                                            echo '</dl>';
230f2a0ea7bSMichael Große                                        }
231f2a0ea7bSMichael Große                                    }
232f2a0ea7bSMichael Große                                    ?>
2339e150176SJana Deutschländer                                    <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw')); ?>
2349e150176SJana Deutschländer                                </div>
23514353296SMichael Große                            </div><!-- .main-content -->
23614353296SMichael Große                        </div><!-- .col -->
23714353296SMichael Große                    </div><!-- .row -->
23814353296SMichael Große                </div><!-- .container -->
23914353296SMichael Große            </div><!-- /.content -->
24014353296SMichael Große
24114353296SMichael Große
2429e150176SJana Deutschländer        <?php endif; ?>
2439e150176SJana Deutschländer        </div>
24414353296SMichael Große    </div><!-- /wrapper -->
24514353296SMichael Große
24614353296SMichael Große
24714353296SMichael Große    <!-- ********** FOOTER ********** -->
24814353296SMichael Große
24914353296SMichael Große    <div id="dokuwiki__footer">
25014353296SMichael Große        <div class="container">
25114353296SMichael Große            <div class="row">
25214353296SMichael Große                <div class="col-xs-12">
25314353296SMichael Große
25414353296SMichael Große                    <div class="main-footer">
25514353296SMichael Große                        <p>
25614353296SMichael Große                            <?php
25714353296SMichael Große
25814353296SMichael Große
25914353296SMichael Große                            /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
26014353296SMichael Große                            /* copyright */
26114353296SMichael Große                            /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
26214353296SMichael Große                            tpl_license($img = false, $imgonly = false, $return = false, $wrap = false);
26314353296SMichael Große                            ?>
26414353296SMichael Große                        </p>
26514353296SMichael Große                    </div>
26614353296SMichael Große
26714353296SMichael Große                </div>
26814353296SMichael Große            </div>
26914353296SMichael Große        </div>
27014353296SMichael Große    </div><!-- /footer -->
27114353296SMichael Große
27214353296SMichael Große
27314353296SMichael Große    <?php tpl_includeFile('footer.html') ?>
27414353296SMichael Große</div><!-- .dokuwiki__site -->
27514353296SMichael Große
27614353296SMichael Große<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
27714353296SMichael Große
2789e150176SJana Deutschländer</body>
2799e150176SJana Deutschländer</html>
280