xref: /template/sprintdoc/detail.php (revision 5c6ddbf8b29351dbab45fb87cd45106e942d7e06)
1994d0e8dSAndreas Gohr<!DOCTYPE html>
29e150176SJana Deutschländer<?php
39e150176SJana Deutschländer/**
49e150176SJana Deutschländer * DokuWiki Image Detail Page
59e150176SJana Deutschländer *
69e150176SJana Deutschländer * @author   Andreas Gohr <andi@splitbrain.org>
79e150176SJana Deutschländer * @author   Anika Henke <anika@selfthinker.org>
89e150176SJana Deutschländer * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
99e150176SJana Deutschländer */
109e150176SJana Deutschländer
119e150176SJana Deutschländer// must be run from within DokuWiki
129e150176SJana Deutschländerif (!defined('DOKU_INC')) die();
139e150176SJana Deutschländerheader('X-UA-Compatible: IE=edge,chrome=1');
149e150176SJana Deutschländer
15994d0e8dSAndreas Gohr?>
169e150176SJana Deutschländer<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
179e150176SJana Deutschländer lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
189e150176SJana Deutschländer<head>
199e150176SJana Deutschländer    <meta charset="UTF-8" />
209e150176SJana Deutschländer    <title>
219e150176SJana Deutschländer        <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?>
229e150176SJana Deutschländer        [<?php echo strip_tags($conf['title'])?>]
239e150176SJana Deutschländer    </title>
249e150176SJana Deutschländer    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
259e150176SJana Deutschländer    <?php tpl_metaheaders()?>
269e150176SJana Deutschländer    <meta name="viewport" content="width=device-width,initial-scale=1" />
279e150176SJana Deutschländer    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
289e150176SJana Deutschländer    <?php tpl_includeFile('meta.html') ?>
299e150176SJana Deutschländer</head>
309e150176SJana Deutschländer
3114353296SMichael Große<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> wide-content showSidebar">
3214353296SMichael Große<div id="dokuwiki__site">
3314353296SMichael Große    <?php include('tpl/nav-direct.php') ?>
3414353296SMichael Große
3514353296SMichael Große
3614353296SMichael Große    <div class="page-wrapper <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
3714353296SMichael Große        <?php
3814353296SMichael Große        tpl_includeFile('header.html');
3914353296SMichael Große        ?>
4014353296SMichael Große
4114353296SMichael Große        <div id="dokuwiki__header" class="header no-print">
4214353296SMichael Große            <div class="container">
4314353296SMichael Große                <div class="row">
4414353296SMichael Große                    <div class="col-xs-12">
4514353296SMichael Große                        <div class="claim main-sidebar">
4614353296SMichael Große                            <?php if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))){
4714353296SMichael Große
4814353296SMichael Große                                /* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */
4914353296SMichael Große                                include('tpl/main-sidebar-logo.php');
5014353296SMichael Große                            } ?>
5114353296SMichael Große                            <?php if ($conf['tagline']): ?>
5214353296SMichael Große                                <p class="claim"><?php echo $conf['tagline'] ?></p>
5314353296SMichael Große                            <?php endif ?>
5414353296SMichael Große
5514353296SMichael Große                        </div><!-- .headings -->
5614353296SMichael Große                    </div><!-- .col -->
5714353296SMichael Große                </div><!-- .row -->
5814353296SMichael Große            </div><!-- .container -->
5914353296SMichael Große        </div><!-- .header -->
6014353296SMichael Große
6114353296SMichael Große        <div class="sr-only nav-area-head">
6214353296SMichael Große            <h5 class="sr-only" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5>
6314353296SMichael Große        </div><!-- .nav-area-head -->
6414353296SMichael Große
6514353296SMichael Große        <div class="tools">
6614353296SMichael Große            <div class="container">
6714353296SMichael Große                <div class="row">
6814353296SMichael Große                    <div class="col-xs-12">
6914353296SMichael Große
7014353296SMichael Große                        <div class="sidebarheader main-sidebar">
7114353296SMichael Große                            <?php
7214353296SMichael Große                            tpl_includeFile('sidebarheader.html')
7314353296SMichael Große                            ?>
7414353296SMichael Große                        </div><!-- .sidebarheader -->
7514353296SMichael Große
7614353296SMichael Große                        <div class="search main-sidebar">
7714353296SMichael Große                            <?php
7814353296SMichael Große                            include('tpl/main-sidebar-search.php');
7914353296SMichael Große                            ?>
8014353296SMichael Große                        </div><!-- .search -->
8114353296SMichael Große
8214353296SMichael Große                        <div id="dokuwiki__aside">
8314353296SMichael Große                            <?php
8414353296SMichael Große                            include('tpl/main-sidebar-nav.php');
8514353296SMichael Große                            ?>
8614353296SMichael Große                        </div><!-- .aside -->
8714353296SMichael Große
8814353296SMichael Große                    </div><!-- .col -->
8914353296SMichael Große                </div><!-- .row -->
9014353296SMichael Große            </div><!-- .container -->
9114353296SMichael Große        </div><!-- .tools -->
9214353296SMichael Große
9314353296SMichael Große        <div class="top-header">
9414353296SMichael Große            <div class="container">
9514353296SMichael Große                <div class="row">
9614353296SMichael Große                    <div class="col-xs-12">
9714353296SMichael Große
9814353296SMichael Große                        <?php
9914353296SMichael Große                        $showTools = true;
10014353296SMichael Große                        include('tpl/nav-usertools-buttons.php');
10114353296SMichael Große                        tpl_includeFile('header.html');
10214353296SMichael Große                        ?>
10314353296SMichael Große
10414353296SMichael Große                    </div><!-- .col -->
10514353296SMichael Große                </div><!-- .row -->
10614353296SMichael Große            </div><!-- .container -->
10714353296SMichael Große        </div><!-- /top-header -->
10814353296SMichael Große
10914353296SMichael Große
11014353296SMichael Große        <div id="dokuwiki__detail">
1119e150176SJana Deutschländer        <?php html_msgarea() ?>
1129e150176SJana Deutschländer
11314353296SMichael Große            <div class="content group">
11414353296SMichael Große                <div class="container">
11514353296SMichael Große                    <div class="row">
11614353296SMichael Große                        <div class="col-xs-12">
11714353296SMichael Große                            <div class="breadcrumbs" data-do="<?php echo $ACT?>">
11814353296SMichael Große
11914353296SMichael Große                                <div class="togglelink page_main-content">
120ba5f92bcSMichael Große                                    <a href="#"><span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle')?></span></a>
12114353296SMichael Große                                </div>
12214353296SMichael Große
12314353296SMichael Große                                <h6 class="sr-only" role="heading" aria-level="2"><?php echo  tpl_getLang('head_menu_status')  ?></h6>
12414353296SMichael Große
12514353296SMichael Große                                <?php
12614353296SMichael Große
12714353296SMichael Große                                /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
12814353296SMichael Große                                /* page quality / page tasks */
12914353296SMichael Große                                /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
13014353296SMichael Große                                include('tpl/nav-page-quality-tasks.php');
13114353296SMichael Große                                ?>
13214353296SMichael Große
13314353296SMichael Große                                <?php
13414353296SMichael Große                                /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
13514353296SMichael Große                                /* breadcrumb */
13614353296SMichael Große                                /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
13714353296SMichael Große                                include('tpl/nav-breadcrumb.php');
13814353296SMichael Große                                ?>
13914353296SMichael Große
14014353296SMichael Große                                <h6 class="sr-only" role="heading" aria-level="2"><?php echo  $lang['page_tools']  ?></h6>
14114353296SMichael Große
142*5c6ddbf8SMichael Große                                <nav id="dokuwiki__pagetools">
143*5c6ddbf8SMichael Große                                    <div class="tools">
144*5c6ddbf8SMichael Große                                        <ul>
14514353296SMichael Große                                            <?php
146*5c6ddbf8SMichael Große                                            echo '<li>' . dokuwiki\template\sprintdoc\tpl::pageToolAction('mediaManager') . '</li>';
147*5c6ddbf8SMichael Große                                            echo '<li>' . dokuwiki\template\sprintdoc\tpl::pageToolAction('img_backto') . '</li>';
14814353296SMichael Große                                            ?>
149*5c6ddbf8SMichael Große                                        </ul>
150*5c6ddbf8SMichael Große                                    </div>
151*5c6ddbf8SMichael Große                                </nav>
15214353296SMichael Große
15314353296SMichael Große                            </div>
15414353296SMichael Große                            <div id="dokuwiki__content" class="page main-content">
15514353296SMichael Große
15614353296SMichael Große                                <div id="spr__meta-box"></div>
15714353296SMichael Große
1589e150176SJana Deutschländer        <?php if($ERROR): print $ERROR; ?>
1599e150176SJana Deutschländer        <?php else: ?>
1609e150176SJana Deutschländer
1619e150176SJana Deutschländer            <?php if($REV) echo p_locale_xhtml('showrev');?>
1629e150176SJana Deutschländer            <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG))?></h1>
1639e150176SJana Deutschländer
16414353296SMichael Große
1659e150176SJana Deutschländer                <?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?>
1669e150176SJana Deutschländer
1679e150176SJana Deutschländer                <div class="img_detail">
1689e150176SJana Deutschländer                    <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2>
1699e150176SJana Deutschländer
1709e150176SJana Deutschländer                    <?php if(function_exists('tpl_img_meta')): ?>
171f2a0ea7bSMichael Große                        <?php
172f2a0ea7bSMichael Große                        tpl_img_meta();
173f2a0ea7bSMichael Große
174f2a0ea7bSMichael Große                        /** @var helper_plugin_spatialhelper_index $spatial */
175f2a0ea7bSMichael Große                        $spatial = plugin_load('helper', 'spatialhelper_index');
176f2a0ea7bSMichael Große                        if ($spatial && plugin_load('helper', 'geophp')) {
177f2a0ea7bSMichael Große                            global $IMG;
178f2a0ea7bSMichael Große                            $point = $spatial->getCoordsFromExif($IMG);
179f2a0ea7bSMichael Große                            if ($point) {
180f2a0ea7bSMichael Große                                $long = $point->getX();
181f2a0ea7bSMichael Große                                $lat = $point->getY();
182f2a0ea7bSMichael Große                                $latShort = round($lat,3);
183f2a0ea7bSMichael Große                                $longShort = round($long,3);
184f2a0ea7bSMichael Große
185f2a0ea7bSMichael Große                                $hrefOSM = "https://www.openstreetmap.org/?mlat=$lat&mlon=$long#map=18/$lat/$long";
186f2a0ea7bSMichael 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;
187f2a0ea7bSMichael Große                                echo '<dl>';
188f2a0ea7bSMichael Große                                echo '<dt title="Open Street Maps">OSM:</dt><dd>';
189f2a0ea7bSMichael 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>';
190f2a0ea7bSMichael Große                                echo '</dd>';
191f2a0ea7bSMichael Große                                echo '</dl>';
192f2a0ea7bSMichael Große                            }
193f2a0ea7bSMichael Große                        }
194f2a0ea7bSMichael Große                        ?>
1959e150176SJana Deutschländer                    <?php else: /* deprecated since Release 2014-05-05 */ ?>
1969e150176SJana Deutschländer                        <dl>
1979e150176SJana Deutschländer                            <?php
1989e150176SJana Deutschländer                                $config_files = getConfigFiles('mediameta');
1999e150176SJana Deutschländer                                foreach ($config_files as $config_file) {
2009e150176SJana Deutschländer                                    if(@file_exists($config_file)) {
2019e150176SJana Deutschländer                                        include($config_file);
2029e150176SJana Deutschländer                                    }
2039e150176SJana Deutschländer                                }
2049e150176SJana Deutschländer
2059e150176SJana Deutschländer                                foreach($fields as $key => $tag){
2069e150176SJana Deutschländer                                    $t = array();
2079e150176SJana Deutschländer                                    if (!empty($tag[0])) {
2089e150176SJana Deutschländer                                        $t = array($tag[0]);
2099e150176SJana Deutschländer                                    }
2109e150176SJana Deutschländer                                    if(is_array($tag[3])) {
2119e150176SJana Deutschländer                                        $t = array_merge($t,$tag[3]);
2129e150176SJana Deutschländer                                    }
2139e150176SJana Deutschländer                                    $value = tpl_img_getTag($t);
2149e150176SJana Deutschländer                                    if ($value) {
2159e150176SJana Deutschländer                                        echo '<dt>'.$lang[$tag[1]].':</dt><dd>';
2169e150176SJana Deutschländer                                        if ($tag[2] == 'date') {
2179e150176SJana Deutschländer                                            echo dformat($value);
2189e150176SJana Deutschländer                                        } else {
2199e150176SJana Deutschländer                                            echo hsc($value);
2209e150176SJana Deutschländer                                        }
2219e150176SJana Deutschländer                                        echo '</dd>';
2229e150176SJana Deutschländer                                    }
2239e150176SJana Deutschländer                                }
2249e150176SJana Deutschländer                            ?>
2259e150176SJana Deutschländer                        </dl>
2269e150176SJana Deutschländer                    <?php endif; ?>
2279e150176SJana Deutschländer                    <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw')); ?>
2289e150176SJana Deutschländer                </div>
22914353296SMichael Große                            </div><!-- .main-content -->
23014353296SMichael Große                        </div><!-- .col -->
23114353296SMichael Große                    </div><!-- .row -->
23214353296SMichael Große                </div><!-- .container -->
23314353296SMichael Große            </div><!-- /.content -->
23414353296SMichael Große
23514353296SMichael Große
2369e150176SJana Deutschländer        <?php endif; ?>
2379e150176SJana Deutschländer    </div>
23814353296SMichael Große    </div><!-- /wrapper -->
23914353296SMichael Große
24014353296SMichael Große
24114353296SMichael Große
24214353296SMichael Große    <!-- ********** FOOTER ********** -->
24314353296SMichael Große
24414353296SMichael Große    <div id="dokuwiki__footer">
24514353296SMichael Große        <div class="container">
24614353296SMichael Große            <div class="row">
24714353296SMichael Große                <div class="col-xs-12">
24814353296SMichael Große
24914353296SMichael Große                    <div class="main-footer">
25014353296SMichael Große                        <p>
25114353296SMichael Große                            <?php
25214353296SMichael Große
25314353296SMichael Große
25414353296SMichael Große                            /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
25514353296SMichael Große                            /* copyright */
25614353296SMichael Große                            /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
25714353296SMichael Große                            tpl_license($img = false, $imgonly = false, $return = false, $wrap = false);
25814353296SMichael Große                            ?>
25914353296SMichael Große                        </p>
26014353296SMichael Große                    </div>
26114353296SMichael Große
26214353296SMichael Große                </div>
26314353296SMichael Große            </div>
26414353296SMichael Große        </div>
26514353296SMichael Große    </div><!-- /footer -->
26614353296SMichael Große
26714353296SMichael Große
26814353296SMichael Große    <?php tpl_includeFile('footer.html') ?>
26914353296SMichael Große</div><!-- .dokuwiki__site -->
27014353296SMichael Große
27114353296SMichael Große<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
27214353296SMichael Große
2739e150176SJana Deutschländer</body>
2749e150176SJana Deutschländer</html>
275