1<?php
2
3/**
4 *
5 * Dokuwiki template Kajukk Dark
6 *
7 * @link     https://dokuwiki.org/template:kajukkd
8 * @author   S.C. Yoo <dryoo@live.com>
9 *
10 * Based on DokuWiki Starter Template
11 *
12 * @link     http://dokuwiki.org/template:starter
13 * @author   Anika Henke <anika@selfthinker.org>
14 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
15 *
16 * Does not support IE9
17 *
18 * Open source
19 *
20 *  Material Design Off Canvas Menu (the MIT license)
21 *    https://github.com/callmenick/Material-Menu
22 *
23 *  Minimal Hamburger Overlay Navigation Drawer In CSS
24 *    https://www.cssscript.com/hamburger-overlay-navigation-drawer/
25 *
26 *  GeShi Dark mode CSS from
27 *    https://cyberasylum.eu/how-to-change-geshi-stylesheet
28 */
29
30if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
31@require_once(dirname(__FILE__) . '/tpl_functions.php'); /* include hook for template functions */
32$showTools = true;
33// $showTools = !tpl_getConf('hideTools') || (tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']));
34$showSidebar = page_findnearest($conf['sidebar']) && ($ACT == 'show');
35//$sidebarElement = tpl_getConf('sidebarIsNav') ? 'nav' : 'aside';
36?>
37<!DOCTYPE html>
38<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js" style="background-image: url('<?php if (!$INFO['ismobile']) echo _tpl_background(true); ?>');">
39
40<head>
41    <meta charset="UTF-8" />
42    <title>
43        <?php echo (p_get_first_heading($ID)) ? p_get_first_heading($ID) : strrchr(':' . $INFO['id'], ":"); ?>
44        <?php if (strrchr(':' . $INFO['id'], ":") != ":" . $conf['start']) {
45            echo ' - ' . p_get_first_heading(':' . $INFO['namespace'] . ':' . $conf['start']) .
46                ' - ' . strip_tags($conf['title']);
47        } else {
48            echo ' - ' . strip_tags($conf['tagline']);
49        } ?>
50    </title>
51    <script>
52        (function(H) {
53            H.className = H.className.replace(/\bno-js\b/, 'js')
54        })(document.documentElement)
55    </script>
56    <?php tpl_metaheaders() ?>
57    <?php
58    /*
59     * support for https://www.dokuwiki.org/plugin:adultcontent
60     */
61    if (($ACT == "show") || ($ACT == "showtag")) $noadsense = false;
62    else $noadsense = true;
63    if (p_get_metadata($ID, "adult")) $noadsense = true;
64    /*
65     *  support for https://github.com/tatewake/dokuwiki-plugin-googleads/
66     */
67    if (($ACT != "edit") && (!$noadsense)) :
68        if (file_exists(DOKU_PLUGIN . 'googleads/code.php')) include_once(DOKU_PLUGIN . 'googleads/code.php');
69        if (function_exists('gads_code')) gads_code();
70    endif;
71    ?>
72    <!-- <link rel="preload" as="font" crossorigin="crossorigin" type="font/woff2" href="myfont.woff2"> -->
73    <!-- <link rel="stylesheet" href="lib/tpl/kajukkd/fonts/style.css"> -->
74    <meta name="viewport" content="width=device-width,initial-scale=1" />
75    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
76    <?php tpl_includeFile('meta.html') ?>
77
78</head>
79
80<body>
81    <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
82    <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
83             should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
84    <div id="dokuwiki__site">
85        <div id="dokuwiki__top" class=" site <?php echo tpl_classes(); ?>
86        <?php
87        // echo ($showSidebar) ? 'hasSidebar' : '';
88        ?>">
89            <!-- ********** HEADER ********** -->
90            <header id="dokuwiki__header">
91                <!-- <div class="pa d"> -->
92                <?php tpl_includeFile('header.html') ?>
93                <div class="headings">
94                    <h1>
95                        <?php // tpl_link(wl(), '<img src="' . _tpl_logo(). '" alt="' . $conf['title'] . '" />', 'id="dokuwiki__top" accesskey="h" title="[H]"')
96                        ?>
97                        <?php _tpl_icon() ?>
98                        <div class="clearer"></div>
99                </div>
100                <?php tpl_searchform() ?>
101                <div id="smartbtn" class="tools">
102                    <?php //if ($INFO['userinfo'] != "") : /* If logged-in */
103
104                    ?>
105                    <?php _tpl_smartbtn(); ?>
106
107
108                    <?php  /* if (!empty($_SERVER['REMOTE_USER'])) {
109                        echo '<div class="user">';
110
111                        tpl_actionlink('edit', '', '', ' &#xe90f;');
112                        //echo  "title='". _tpl_userinfo(true)."'>";
113
114                        echo '</div>';
115                    } else {
116                        echo '<div class="login">';
117                        tpl_actionlink('login', '', '', ' &#xe90f;');
118                        echo '</div>';
119                    } */
120                    ?>
121                    <!--- usertools were here -->
122                </div>
123                <!--   <div class="clearer"></div>
124
125
126
127                <div class="clearer"></div>
128                <hr class="a11y" /> -->
129                <!-- </div> -->
130            </header><!-- /header -->
131            <ul class="a11y skip">
132                <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
133            </ul>
134            <div class="wrapper">
135
136                <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
137                <!-- ********** CONTENT ********** -->
138
139                <main id="dokuwiki__content">
140                    <div class="pad">
141                        <?php tpl_flush() /* flush the output buffer */ ?>
142                        <!-- BREADCRUMBS -->
143                        <?php if ($conf['breadcrumbs']) { ?>
144                            <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
145                        <?php } ?>
146                        <?php if ($conf['youarehere']) { ?>
147                            <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
148                        <?php } ?>
149                        <?php tpl_includeFile('pageheader.html') ?>
150
151
152                        <div class="page">
153                            <!-- wikipage start -->
154                            <?php tpl_content() /* the main content */ ?>
155                            <!-- wikipage stop -->
156                            <div class="clearer"></div>
157                        </div>
158
159
160
161                        <?php tpl_flush() ?>
162                        <?php tpl_includeFile('pagefooter.html') ?>
163
164                        <?php /*Backlinks 참조문서 출력*/
165                        if ((ft_backlinks($ID) != null) &&
166                            (strrchr(':' . $INFO['id'], ":") != ":" . $conf['start'])
167                            && (($ACT == 'edit') or ($ACT == 'preview') or ($ACT == "show"))
168                        ) print '<h2>' . $lang['btn_backlink'] . '</h2>' .
169                            p_render('xhtml', p_get_instructions('{{backlinks>.}}'), $info);
170                        ?>
171
172                        <?php /* disqus */
173                        global $ACT;
174                        if ($ACT == 'show') {
175                            $disqus = &plugin_load('syntax', 'disqus');
176                            if ($disqus) echo $disqus->_disqus($shortname);
177                        }
178                        ?>
179                    </div>
180                </main><!-- /content -->
181
182                <div class="clearer"></div>
183                <hr class="a11y" />
184
185                <!-- PAGE ACTIONS -->
186                <?php if ($showTools) : ?>
187
188
189                    <!---------https://www.cssscript.com/hamburger-overlay-navigation-drawer/ ------------>
190                    <nav id="dokuwiki__pagetools" class="mh-menu-wrap " aria-labelledby="dokuwiki__pagetools_heading">
191
192                        <input type="checkbox" class="toggler " />
193                        <div class="hamburger">
194                            <div></div>
195                        </div>
196                        <div class="mh-menu ">
197                            <div class="">
198
199                                <h3 class="a11y" id="dokuwiki__pagetools_heading"><?php echo $lang['page_tools'] ?></h3>
200                                <ul>
201                                    <?php if (file_exists(DOKU_INC . 'inc/Menu/PageMenu.php')) {
202                                        echo (new \dokuwiki\Menu\PageMenu())->getListItems('action ', false);
203                                    } else {
204                                        _tpl_pagetools();
205                                    } ?>
206                                </ul>
207
208                            </div>
209                        </div>
210                    </nav>
211
212                <?php endif; ?>
213            </div><!-- /wrapper -->
214
215            <!-- ********** FOOTER ********** -->
216            <footer id="dokuwiki__footer">
217                <div class="pad">
218                    <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
219                    <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
220
221                    <?php tpl_includeFile('footer.html') ?>
222                </div>
223            </footer><!-- /footer -->
224
225
226        </div>
227    </div><!-- /site -->
228    <!--- 메뉴~~    --->
229    <div class="mm-menu-bg"></div>
230    <button id="mm-menu-toggle" class="mm-menu-toggle">Toggle Menu</button>
231
232    <nav id="mm-menu" class="mm-menu">
233
234        <!-- ********** ASIDE ********** -->
235        <?php // if ($showSidebar) :
236        ?>
237        <nav id="dokuwiki__aside" aria-label="<?php echo $lang['sidebar'] ?>">
238            <div class="mm-menu__header text-center">
239                <?php _tpl_logo(); ?>
240                <?php _tpl_title(); ?>
241                <!---- Tag Line ---->
242                <?php if ($conf['tagline']) : ?>
243                    <p class="claim"><?php echo $conf['tagline'] ?></p>
244                <?php endif ?>
245            </div>
246
247
248            <!-- SITE TOOLS -->
249            <nav id="dokuwiki__sitetools" aria-labelledby="dokuwiki__sitetools_heading">
250                <h3 class="a11y" id="dokuwiki__sitetools_heading"><?php echo $lang['site_tools'] ?></h3>
251
252                <?php
253                // mobile menu (combines all menus in one dropdown)
254                // if (file_exists(DOKU_INC . 'inc/Menu/MobileMenu.php')) {
255                //     echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']);
256                // } else {
257                //   tpl_actiondropdown($lang['tools']);
258                // }
259                ?>
260                <ul>
261                    <?php if (file_exists(DOKU_INC . 'inc/Menu/SiteMenu.php')) {
262                        echo (new \dokuwiki\Menu\SiteMenu())->getListItems('action ', false);
263                    } else {
264                        _tpl_sitetools();
265                    } ?>
266                </ul>
267            </nav>
268            <!-- USER TOOLS -->
269            <?php if ($conf['useacl']) : //&& $showTools
270            ?>
271                <nav id="dokuwiki__usertools" aria-labelledby="dokuwiki__usertools_heading">
272                    <h3 class="a11y" id="dokuwiki__usertools_heading"><?php echo $lang['user_tools'] ?></h3>
273                    <ul>
274                        <?php if (file_exists(DOKU_INC . 'inc/Menu/UserMenu.php')) {
275                            /* the first parameter is for an additional class, the second for if SVGs should be added */
276                            echo (new \dokuwiki\Menu\UserMenu())->getListItems('action ', false);
277                        } else {
278                            /* tool menu before Greebo */
279                            _tpl_usertools();
280                        } ?>
281
282
283                    </ul>
284                </nav>
285            <?php endif ?>
286            <div class="pad aside include group">
287                <?php tpl_includeFile('sidebarheader.html') ?>
288                <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
289                <?php tpl_includeFile('sidebarfooter.html') ?>
290                <div class="clearer"></div>
291            </div>
292        </nav><!-- /aside -->
293        <?php // endif;
294        ?>
295        <!---- mm-menu
296        <ul class="mm-menu__items">
297            <li class="mm-menu__item">
298                <a class="mm-menu__link" href="./?=main">
299                    <span class="mm-menu__link-text"><i class="fas fa-clinic-medical"></i> 병원소개</span>
300                </a>
301            </li>
302            <li class="mm-menu__item">
303                <a class="mm-menu__link" href="./?p=staffs">
304                    <span class="mm-menu__link-text"><i class="fas fa-hospital"></i> 의료진</span>
305                </a>
306            </li>
307            <li class="mm-menu__item">
308                <a class="mm-menu__link" href="./?p=info">
309                    <span class="mm-menu__link-text"><i class="fas fa-clock"></i> 진료안내</span>
310                </a>
311            </li>
312            <li class="mm-menu__item">
313                <a class="mm-menu__link" href="./?p=duty">
314                    <span class="mm-menu__link-text"><i class="fas fa-calendar-alt"></i> 당직표</span>
315                </a>
316            </li>
317            <li class="mm-menu__item">
318                <a class="mm-menu__link" href="./?p=loc">
319                    <span class="mm-menu__link-text"><i class="fas fa-map-marker"></i> 오시는 길</span>
320                </a>
321            </li>
322        </ul> -->
323    </nav><!-- /nav -->
324    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
325    <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?>
326</body>
327
328</html>