|
11 | 11 | <?php tpl_includeFile('header.html') ?>
|
12 | 12 |
|
13 | 13 | <!-- Navigation bar -->
|
14 |
| -<nav class="navbar navbar-expand-md p-0"> |
| 14 | +<nav class="navbar navbar-expand-md"> |
15 | 15 |
|
16 | 16 | <!-- Sub component -->
|
17 |
| - <?php if($ID == 'start'): ?> |
18 |
| - <div class="container"> |
19 |
| - <a class="navbar-brand text-dark" style="font-weight:900;" href="<?php echo wl() ?>"> |
| 17 | + <div class="container p-0"> |
| 18 | + <a class="navbar-brand text-dark" style="font-weight:900;" href="<?php echo wl() ?>"> |
| 19 | + <h3> |
20 | 20 | <?php echo $conf['title']; ?>
|
21 |
| - </a> |
22 |
| - |
23 |
| - <!-- Tagline --> |
24 |
| - <?php if ($conf['tagline']): ?> |
25 |
| - <p class="claim"><?php echo $conf['tagline']; ?></p> |
26 |
| - <?php endif ?> |
27 |
| - |
28 |
| - <!-- Hamburgar button --> |
29 |
| - <button class="navbar-toggler btn" type="button" data-toggle="collapse" data-target="#navbar-content" aria-controls="navbar-content" aria-expanded="false" aria-label="Toggle navigation"> |
30 |
| - <span class="navbar-toggler-icon"><i class="fas fa-bars"></i> |
31 |
| - </span> |
32 |
| - </button> |
33 |
| - |
34 |
| - <!-- Navigation --> |
35 |
| - <div class="collapse navbar-collapse" id="navbar-content"> |
36 |
| - |
37 |
| - <ul class="navbar-nav mr-auto"> |
38 |
| - |
39 |
| - </ul> |
40 |
| - |
41 |
| - <!-- Topmenu --> |
42 |
| - <ul class="navbar-nav py-3"> |
43 |
| - <!-- User tools --> |
44 |
| - |
45 |
| - <!-- Page menu --> |
46 |
| - |
47 |
| - <!-- <li class="nav-item mx-2 dropdown d-lg-none"> |
48 |
| - <a href="#" class="nav-link dropdown-toggle" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">Page</a> |
49 |
| - <ul class="dropdown-menu" aria-labelledby="navbarDropdown"> |
50 |
| - <?php |
51 |
| - $items = (new \dokuwiki\Menu\PageMenu())->getItems(); |
52 |
| - foreach($items as $item) { |
53 |
| - echo '<li><a class="nav-item mx-2" href="'.$item->getLink().'" title="'.$item->getTitle().'">' |
54 |
| - . $item->getLabel() |
55 |
| - . '</a></li>'; |
56 |
| - } |
57 |
| - ?> |
58 |
| - </ul> |
59 |
| - </li> --> |
60 |
| - |
61 |
| - <!-- Mobile tool --> |
62 |
| - <li class="nav-item mx-2 dropdown"> |
63 |
| - <a href="#" class=" nav-link dropdown-toggle" id="mldropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> |
64 |
| - <?php if ($conf['useacl']): |
65 |
| - if (!empty($_SERVER['REMOTE_USER'])) { |
66 |
| - echo $_SERVER['REMOTE_USER']; |
67 |
| - }else{ |
68 |
| - echo 'N/A'; |
69 |
| - } |
70 |
| - endif |
71 |
| - ?> |
72 |
| - </a> |
73 |
| - <ul class="dropdown-menu" aria-labelledby="navbarDropdown"> |
74 |
| - <?php |
75 |
| - $items = (new \dokuwiki\Menu\MobileMenu())->getItems(); |
76 |
| - foreach($items as $item) { |
77 |
| - echo '<li><a class="nav-item mx-2" href="'.$item->getLink().'" title="'.$item->getTitle().'">' |
78 |
| - . $item->getLabel() |
79 |
| - . '</a></li>'; |
80 |
| - } |
81 |
| - ?> |
82 |
| - </ul> |
83 |
| - </li> |
84 |
| - |
85 |
| - <!-- Search bar --> |
86 |
| - <li class="nav-item ml-0"> |
87 |
| - <?php /*tpl_searchform();*/ ?> |
88 |
| - <form action="/doku.php?id=start" method="get" role="search" class="search doku_form form-group form-inline" id="dw__search" accept-charset="utf-8"><input type="hidden" name="do" value="search" /> |
89 |
| - <input type="hidden" name="id" value="start" /> |
90 |
| - <div class="no"> |
91 |
| - <input name="q" class="edit border-secondary text-secondary form-control" type="text" title="[F]" accesskey="f" placeholder="" autocomplete="on" id="qsearch__in" value="" /> |
92 |
| - <button value="1" type="submit" title="検索" class="border-secondary btn-outline-secondary form-control"><i class="fas fa-search"></i></button> |
93 |
| - </div> |
94 |
| - </form> |
95 |
| - </li> |
96 |
| - |
97 |
| - <!-- BREADCRUMBS --> |
98 |
| - <?php if($conf['breadcrumbs'] || $conf['youarehere']): ?> |
99 |
| - <!-- <div class="breadcrumbs"> |
100 |
| - <?php if($conf['youarehere']): ?> |
101 |
| - <div class="youarehere"><?php tpl_youarehere() ?></div> |
102 |
| - <?php endif ?> |
103 |
| - <?php if($conf['breadcrumbs']): ?> |
104 |
| - <div class="trace"><?php tpl_breadcrumbs() ?></div> |
105 |
| - <?php endif ?> |
106 |
| - </div> --> |
107 |
| - <?php endif ?> |
108 |
| - |
109 |
| - <hr class="a11y" /> |
110 |
| - </ul> |
111 |
| - </div> |
112 |
| - <?php else: ?> |
113 |
| - <div class="container border-bottom border-dark px-0"> |
114 |
| - <h3> |
115 |
| - <a href="<?php echo wl() ?>" class="text-dark" style="text-decoration:none;"> |
116 |
| - <i class="fas fa-long-arrow-alt-left"></i>Home |
117 |
| - </a> |
118 |
| - </h3> |
119 |
| - |
120 |
| - <?php |
121 |
| - /* $logoSize = array(); |
122 |
| - $logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png'), false, $logoSize); */ |
123 |
| - // display logo and wiki title in a link to the home page |
124 |
| - /* tpl_link( |
125 |
| - * wl(), |
126 |
| - * 'Home', |
127 |
| - * 'accesskey="h" title="[H]"' |
128 |
| - ); */ |
129 |
| - ?> |
130 |
| - </div> |
131 |
| - <?php endif; ?><!-- /start --> |
| 21 | + </h3> |
| 22 | + </a> |
| 23 | + |
| 24 | + <!-- Tagline --> |
| 25 | + <?php if ($conf['tagline']): ?> |
| 26 | + <p class="claim"><?php echo $conf['tagline']; ?></p> |
| 27 | + <?php endif ?> |
| 28 | + |
| 29 | + <!-- Hamburgar button --> |
| 30 | + <button class="navbar-toggler btn" type="button" data-toggle="collapse" data-target="#navbar-content" aria-controls="navbar-content" aria-expanded="false" aria-label="Toggle navigation"> |
| 31 | + <span class="navbar-toggler-icon"><i class="fas fa-bars"></i> |
| 32 | + </span> |
| 33 | + </button> |
| 34 | + |
| 35 | + <!-- Navigation --> |
| 36 | + <div class="collapse navbar-collapse" id="navbar-content"> |
| 37 | + |
| 38 | + <ul class="navbar-nav mr-auto"> |
| 39 | + |
| 40 | + </ul> |
| 41 | + |
| 42 | + <!-- Topmenu --> |
| 43 | + <ul class="navbar-nav pt-3"> |
| 44 | + <!-- User tools --> |
| 45 | + |
| 46 | + <!-- Page menu --> |
| 47 | + |
| 48 | + <!-- <li class="nav-item mx-2 dropdown d-lg-none"> |
| 49 | + <a href="#" class="nav-link dropdown-toggle" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">Page</a> |
| 50 | + <ul class="dropdown-menu" aria-labelledby="navbarDropdown"> |
| 51 | + <?php |
| 52 | + $items = (new \dokuwiki\Menu\PageMenu())->getItems(); |
| 53 | + foreach($items as $item) { |
| 54 | + echo '<li><a class="nav-item mx-2" href="'.$item->getLink().'" title="'.$item->getTitle().'">' |
| 55 | + . $item->getLabel() |
| 56 | + . '</a></li>'; |
| 57 | + } |
| 58 | + ?> |
| 59 | + </ul> |
| 60 | + </li> --> |
| 61 | + |
| 62 | + <!-- Mobile tool --> |
| 63 | + <li class="nav-item mx-2 dropdown"> |
| 64 | + <a href="#" class="nav-link dropdown-toggle text-secondary" id="mldropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> |
| 65 | + <?php if ($conf['useacl']): |
| 66 | + if (!empty($_SERVER['REMOTE_USER'])) { |
| 67 | + echo $_SERVER['REMOTE_USER']; |
| 68 | + }else{ |
| 69 | + echo 'N/A'; |
| 70 | + } |
| 71 | + endif |
| 72 | + ?> |
| 73 | + </a> |
| 74 | + <ul class="dropdown-menu" aria-labelledby="navbarDropdown"> |
| 75 | + <?php |
| 76 | + $items = (new \dokuwiki\Menu\MobileMenu())->getItems(); |
| 77 | + foreach($items as $item) { |
| 78 | + echo '<li><a class="nav-item mx-2" href="'.$item->getLink().'" title="'.$item->getTitle().'">' |
| 79 | + . $item->getLabel() |
| 80 | + . '</a></li>'; |
| 81 | + } |
| 82 | + ?> |
| 83 | + </ul> |
| 84 | + </li> |
| 85 | + |
| 86 | + <!-- Search bar --> |
| 87 | + <li class="nav-item ml-0"> |
| 88 | + <?php /*tpl_searchform();*/ ?> |
| 89 | + <form action="/doku.php?id=start" method="get" role="search" class="search doku_form form-group form-inline" id="dw__search" accept-charset="utf-8"><input type="hidden" name="do" value="search" /> |
| 90 | + <input type="hidden" name="id" value="start" /> |
| 91 | + <div class="no"> |
| 92 | + <input name="q" class="edit border-secondary text-secondary form-control" type="text" title="[F]" accesskey="f" placeholder="" autocomplete="on" id="qsearch__in" value="" /> |
| 93 | + <button value="1" type="submit" title="検索" class="border-secondary btn-outline-secondary form-control"><i class="fas fa-search"></i></button> |
| 94 | + </div> |
| 95 | + </form> |
| 96 | + </li> |
| 97 | + |
| 98 | + <!-- BREADCRUMBS --> |
| 99 | + <?php if($conf['breadcrumbs'] || $conf['youarehere']): ?> |
| 100 | + <!-- <div class="breadcrumbs"> |
| 101 | + <?php if($conf['youarehere']): ?> |
| 102 | + <div class="youarehere"><?php tpl_youarehere() ?></div> |
| 103 | + <?php endif ?> |
| 104 | + <?php if($conf['breadcrumbs']): ?> |
| 105 | + <div class="trace"><?php tpl_breadcrumbs() ?></div> |
| 106 | + <?php endif ?> |
| 107 | + </div> --> |
| 108 | + <?php endif ?> |
| 109 | + |
| 110 | + <hr class="a11y" /> |
| 111 | + </ul> |
| 112 | + </div> |
| 113 | + <!-- /start --> |
132 | 114 | </nav>
|
133 | 115 | <!-- /header -->
|
0 commit comments