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                    </div>
173                </main><!-- /content -->
174
175                <div class="clearer"></div>
176                <hr class="a11y" />
177
178                <!-- PAGE ACTIONS -->
179                <?php if ($showTools) : ?>
180
181
182                    <!---------https://www.cssscript.com/hamburger-overlay-navigation-drawer/ ------------>
183                    <nav id="dokuwiki__pagetools" class="mh-menu-wrap " aria-labelledby="dokuwiki__pagetools_heading">
184
185                        <input type="checkbox" class="toggler " />
186                        <div class="hamburger">
187                            <div></div>
188                        </div>
189                        <div class="mh-menu ">
190                            <div class="">
191
192                                <h3 class="a11y" id="dokuwiki__pagetools_heading"><?php echo $lang['page_tools'] ?></h3>
193                                <ul>
194                                    <?php if (file_exists(DOKU_INC . 'inc/Menu/PageMenu.php')) {
195                                        echo (new \dokuwiki\Menu\PageMenu())->getListItems('action ', false);
196                                    } else {
197                                        _tpl_pagetools();
198                                    } ?>
199                                </ul>
200
201                            </div>
202                        </div>
203                    </nav>
204
205                <?php endif; ?>
206            </div><!-- /wrapper -->
207
208            <!-- ********** FOOTER ********** -->
209            <footer id="dokuwiki__footer">
210                <div class="pad">
211                    <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
212                    <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
213
214                    <?php tpl_includeFile('footer.html') ?>
215                </div>
216            </footer><!-- /footer -->
217
218
219        </div>
220    </div><!-- /site -->
221    <!--- 메뉴~~    --->
222    <div class="mm-menu-bg"></div>
223    <button id="mm-menu-toggle" class="mm-menu-toggle">Toggle Menu</button>
224
225    <nav id="mm-menu" class="mm-menu">
226
227        <!-- ********** ASIDE ********** -->
228        <? php // if ($showSidebar) :
229        ?>
230        <nav id="dokuwiki__aside" aria-label="<?php echo $lang['sidebar'] ?>">
231            <div class="mm-menu__header text-center">
232                <?php _tpl_logo(); ?>
233                <?php _tpl_title(); ?>
234                <!---- Tag Line ---->
235                <?php if ($conf['tagline']) : ?>
236                    <p class="claim"><?php echo $conf['tagline'] ?></p>
237                <?php endif ?>
238            </div>
239
240
241            <!-- SITE TOOLS -->
242            <nav id="dokuwiki__sitetools" aria-labelledby="dokuwiki__sitetools_heading">
243                <h3 class="a11y" id="dokuwiki__sitetools_heading"><?php echo $lang['site_tools'] ?></h3>
244
245                <?php
246                // mobile menu (combines all menus in one dropdown)
247                // if (file_exists(DOKU_INC . 'inc/Menu/MobileMenu.php')) {
248                //     echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']);
249                // } else {
250                //   tpl_actiondropdown($lang['tools']);
251                // }
252                ?>
253                <ul>
254                    <?php if (file_exists(DOKU_INC . 'inc/Menu/SiteMenu.php')) {
255                        echo (new \dokuwiki\Menu\SiteMenu())->getListItems('action ', false);
256                    } else {
257                        _tpl_sitetools();
258                    } ?>
259                </ul>
260            </nav>
261            <!-- USER TOOLS -->
262            <?php if ($conf['useacl']) : //&& $showTools
263            ?>
264                <nav id="dokuwiki__usertools" aria-labelledby="dokuwiki__usertools_heading">
265                    <h3 class="a11y" id="dokuwiki__usertools_heading"><?php echo $lang['user_tools'] ?></h3>
266                    <ul>
267                        <?php if (file_exists(DOKU_INC . 'inc/Menu/UserMenu.php')) {
268                            /* the first parameter is for an additional class, the second for if SVGs should be added */
269                            echo (new \dokuwiki\Menu\UserMenu())->getListItems('action ', false);
270                        } else {
271                            /* tool menu before Greebo */
272                            _tpl_usertools();
273                        } ?>
274
275
276                    </ul>
277                </nav>
278            <?php endif ?>
279            <div class="pad aside include group">
280                <?php tpl_includeFile('sidebarheader.html') ?>
281                <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
282                <?php tpl_includeFile('sidebarfooter.html') ?>
283                <div class="clearer"></div>
284            </div>
285        </nav><!-- /aside -->
286        <?php // endif;
287        ?>
288        <!---- mm-menu
289        <ul class="mm-menu__items">
290            <li class="mm-menu__item">
291                <a class="mm-menu__link" href="./?=main">
292                    <span class="mm-menu__link-text"><i class="fas fa-clinic-medical"></i> 병원소개</span>
293                </a>
294            </li>
295            <li class="mm-menu__item">
296                <a class="mm-menu__link" href="./?p=staffs">
297                    <span class="mm-menu__link-text"><i class="fas fa-hospital"></i> 의료진</span>
298                </a>
299            </li>
300            <li class="mm-menu__item">
301                <a class="mm-menu__link" href="./?p=info">
302                    <span class="mm-menu__link-text"><i class="fas fa-clock"></i> 진료안내</span>
303                </a>
304            </li>
305            <li class="mm-menu__item">
306                <a class="mm-menu__link" href="./?p=duty">
307                    <span class="mm-menu__link-text"><i class="fas fa-calendar-alt"></i> 당직표</span>
308                </a>
309            </li>
310            <li class="mm-menu__item">
311                <a class="mm-menu__link" href="./?p=loc">
312                    <span class="mm-menu__link-text"><i class="fas fa-map-marker"></i> 오시는 길</span>
313                </a>
314            </li>
315        </ul> -->
316    </nav><!-- /nav -->
317    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
318    <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?>
319</body>
320
321</html>