xref: /template/sprintdoc/detail.php (revision 1fc95e4da6733dbfd6643acd48333894b4f013bf)
1<!DOCTYPE html>
2<?php
3/**
4 * DokuWiki sprintDoc Detail Template
5 *
6 * @link     FIXME
7 * @author   Jana Deutschlaender <deutschlaender@cosmocode.de>
8 * @author   Michael Grosse <grosse@cosmocode.de>
9 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
10 */
11use dokuwiki\template\sprintdoc\Template;
12
13if (!defined('DOKU_INC')) die();                        /* must be run from within DokuWiki */
14header('X-UA-Compatible: IE=edge,chrome=1');
15
16global $JSINFO;
17if (empty($JSINFO)) {
18    $JSINFO = array();
19}
20
21?>
22<html class="edge no-js" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>">
23<head>
24<?php
25/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
26/* meta and link relations */
27/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
28?>
29<meta charset="utf-8" />
30<meta name="viewport" content="width=device-width, initial-scale=1.0" />
31<?php tpl_metaheaders() ?>
32<?php
33
34
35/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
36/* page title */
37/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
38?>
39<title><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG)) ?> [<?php echo strip_tags($conf['title']) ?>]</title>
40
41<script type="text/javascript">(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
42<?php
43
44
45/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
46/* favicons */
47/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
48?>
49<?php
50include('tpl/favicon_tiles.php');
51?>
52<?php
53
54
55/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
56/* Include Hook: meta.html */
57/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
58?>
59<?php tpl_includeFile('meta.html') ?>
60</head>
61
62<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> wide-content showSidebar">
63<div id="dokuwiki__site">
64    <?php
65
66
67/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
68/* template Include: tpl/nav-direct */
69/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
70    ?>
71    <?php include('tpl/nav-direct.php') ?>
72
73
74    <div class="page-wrapper <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
75        <?php
76
77
78/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
79/* Include Hook: header.html */
80/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
81            tpl_includeFile('header.html');
82        ?>
83
84        <div id="dokuwiki__header" class="header no-print">
85            <div class="container">
86                <div class="row">
87                    <div class="col-xs-12">
88                        <div class="claim main-sidebar">
89                            <?php if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))) {
90
91
92/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
93/* Logo */
94/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
95/* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */
96                                include('tpl/main-sidebar-logo.php');
97                            } ?>
98                            <div class="main-title">
99                                <?php if ($conf['title']):
100
101
102/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
103/* Wiki Title Mobile */
104/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
105                                    <p class="title mobile-only"><?php echo $conf['title'] ?></p>
106                                <?php endif ?>
107                            </div><!-- .main-title -->
108
109                        </div><!-- .headings -->
110                    </div><!-- .col -->
111                    <div class="col-xs-12">
112                        <div class="main-title desktop-only">
113                            <?php if ($conf['title']):
114
115
116/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
117/* Wiki Title Desktop */
118/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
119                                <p class="title"><?php echo $conf['title'] ?></p>
120                            <?php endif ?>
121                            <?php if ($conf['tagline']):
122
123
124/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
125/* Wiki Tagline Desktop */
126/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
127                                <p class="claim"><?php echo $conf['tagline'] ?></p>
128                            <?php endif ?>
129                        </div><!-- .main-title -->
130                    </div><!-- .col -->
131
132                </div><!-- .row -->
133            </div><!-- .container -->
134        </div><!-- .header -->
135        <?php
136
137
138/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
139/* headline menu area (Accessibility ) */
140/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
141        ?>
142        <div class="sr-only nav-area-head">
143            <h5 class="sr-only" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5>
144        </div><!-- .nav-area-head -->
145
146        <div class="tools">
147            <div class="container">
148                <div class="row">
149                    <div class="col-xs-12">
150
151
152                        <div class="search main-sidebar">
153                            <?php
154
155
156/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
157/* search form */
158/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
159                            include('tpl/main-sidebar-search.php');
160                            ?>
161                        </div><!-- .search -->
162
163                        <div class="sidebarheader main-sidebar">
164                            <?php
165
166
167/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
168/* Include Hook: sidebarheader.html */
169/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
170                            tpl_includeFile('sidebarheader.html')
171                            ?>
172                        </div><!-- .sidebarheader -->
173
174
175                        <div id="dokuwiki__aside">
176                            <?php
177
178
179/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
180/* sidebar */
181/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
182                            include('tpl/main-sidebar-nav.php');
183                            ?>
184                        </div><!-- .aside -->
185
186                    </div><!-- .col -->
187                </div><!-- .row -->
188            </div><!-- .container -->
189        </div><!-- .tools -->
190
191        <div class="top-header">
192            <div class="container">
193                <div class="row">
194                    <div class="col-xs-12">
195
196                        <?php
197
198
199/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
200/* User Tools but no MagicMatcher Bar */
201/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
202                        $showTools = true;
203                        include('tpl/nav-usertools-buttons.php');
204
205
206/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
207/* Include Hook: header.html */
208/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
209                        tpl_includeFile('header.html');
210                        ?>
211
212                    </div><!-- .col -->
213                </div><!-- .row -->
214            </div><!-- .container -->
215        </div><!-- /top-header -->
216
217
218        <div id="dokuwiki__detail">
219
220            <?php tpl_flush(); /* flush the output buffer */ ?>
221
222            <div class="content group">
223                <div class="container">
224                    <div class="row">
225                        <div class="col-xs-12">
226                            <div class="breadcrumbs" data-do="<?php echo $ACT ?>">
227
228                                <div class="togglelink page_main-content">
229                                    <a href="#"><span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle') ?></span></a>
230                                </div>
231
232                                <h6 class="sr-only" role="heading" aria-level="2"><?php echo tpl_getLang('head_menu_status') ?></h6>
233
234                                <?php
235
236
237/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
238/* breadcrumb */
239/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
240                                include('tpl/nav-breadcrumb.php');
241                                ?>
242
243                                <h6 class="sr-only" role="heading" aria-level="2"><?php echo $lang['page_tools'] ?></h6>
244
245                                <?php
246
247
248/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
249/* page tools */
250/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
251                                <nav id="dokuwiki__pagetools">
252                                    <div class="tools">
253                                        <ul>
254                                            <?php
255                                            echo '<li>' . dokuwiki\template\sprintdoc\tpl::pageToolAction('mediaManager') . '</li>';
256                                            echo '<li>' . dokuwiki\template\sprintdoc\tpl::pageToolAction('img_backto') . '</li>';
257                                            ?>
258                                        </ul>
259                                    </div>
260                                </nav>
261
262                            </div>
263                            <div id="dokuwiki__content" class="page main-content">
264
265                                <div id="spr__meta-box"></div>
266                                <div class="msg-area"><?php html_msgarea();/*msg('Information.', 0);msg('Success', 1);msg('Notification', 2);msg('Fehler', -1);*/ ?></div>
267
268
269                                <?php if ($ERROR): print $ERROR; ?>
270                                <?php else: ?>
271
272                                <?php if ($REV) {
273                                    echo p_locale_xhtml('showrev');
274                                } ?>
275
276                                <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG)) ?></h1>
277                                <?php
278
279
280/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
281/* image */
282/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
283                                ?>
284                                <div class="img-link">
285                                    <?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?>
286                                </div>
287                                <?php
288
289
290/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
291/* meta data of image */
292/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
293                                ?>
294                                <div class="img_detail">
295                                    <?php
296                                        $simple_title = hsc(tpl_img_getTag('simple.title'));
297                                        if(strlen($simple_title) > 0) {
298                                    ?>
299                                    <h4><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h4>
300                                    <?php
301                                        } else {
302                                            echo '<h4>' . tpl_getLang('meta_data') . '</h4>';
303                                        }
304                                    ?>
305
306                                    <?php
307                                    tpl_img_meta();
308
309
310
311
312/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
313/* open street maps if geo data is available */
314/** @var helper_plugin_spatialhelper_index $spatial */
315/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
316                                    $spatial = plugin_load('helper', 'spatialhelper_index');
317                                    if ($spatial && plugin_load('helper', 'geophp')) {
318                                        global $IMG;
319                                        $point = $spatial->getCoordsFromExif($IMG);
320                                        if ($point) {
321                                            $long = $point->getX();
322                                            $lat = $point->getY();
323                                            $latShort = round($lat, 3);
324                                            $longShort = round($long, 3);
325
326                                            $hrefOSM = "https://www.openstreetmap.org/?mlat=$lat&mlon=$long#map=18/$lat/$long";
327                                            $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;
328                                            echo '<div class="os-map">';
329                                            echo '<h4 lang="en">OSM (Open Street Maps):</h4>';
330                                            echo '<iframe width="100%" height="350" frameborder="0" src="' . $srcOSM . '"></iframe><br/><p><a class="button" target="_blank" title="' . tpl_getLang('osm_zoom_link_title') . '" href="' . $hrefOSM . '">' . tpl_getLang('osm_zoom_link_text') . '</a></p>';
331                                            echo '</div>';
332                                        }
333                                    }
334                                    ?>
335                                    <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw')); ?>
336                                </div>
337                            </div><!-- .main-content -->
338                        </div><!-- .col -->
339                    </div><!-- .row -->
340                </div><!-- .container -->
341            </div><!-- /.content -->
342
343
344        <?php endif; ?>
345        </div>
346    </div><!-- /wrapper -->
347
348
349    <!-- ********** FOOTER ********** -->
350
351    <div id="dokuwiki__footer">
352        <div class="container">
353            <div class="row">
354                <div class="col-xs-12">
355
356                    <div class="main-footer">
357                        <p>
358                            <?php
359
360
361/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
362/* copyright */
363/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
364                            tpl_license($img = false, $imgonly = false, $return = false, $wrap = false);
365                            ?>
366                        </p>
367                    </div>
368
369                </div>
370            </div>
371        </div>
372    </div><!-- /footer -->
373
374
375    <?php tpl_includeFile('footer.html') ?>
376</div><!-- .dokuwiki__site -->
377
378<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
379
380</body>
381</html>
382