Skip to content

Commit

Permalink
Add document, setting
Browse files Browse the repository at this point in the history
  • Loading branch information
kijimaD committed Jul 21, 2020
1 parent 1591217 commit 5fa3ce8
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 41 deletions.
11 changes: 5 additions & 6 deletions main.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?php
/**
* DokuWiki Default Template 2012
* DokuWiki Template with Bootstrap4
*
* @link http://dokuwiki.org/template
* @author Anika Henke <anika@selfthinker.org>
* @author Clarence Lee <clarencedglee@gmail.com>
* @author Kijima Daigo <norimaking777@gmail.com>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/

Expand All @@ -15,12 +14,12 @@
$showSidebar = $hasSidebar && ($ACT=='show');

function ua_smt (){
//ユーザーエージェントを取得
// Get user agent
$ua = $_SERVER['HTTP_USER_AGENT'];
//スマホと判定する文字リスト
// Word list for checking mobile
$ua_list = array('iPhone','iPad','iPod','Android');
foreach ($ua_list as $ua_smt) {
//ユーザーエージェントに文字リストの単語を含む場合はTRUE、それ以外はFALSE
// mobile -> true
if (strpos($ua, $ua_smt) !== false) {
return true;
}
Expand Down
22 changes: 11 additions & 11 deletions style.ini
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ css/print.css = print
;------ guaranteed dokuwiki color placeholders that every plugin can use

; main text and background colors
__text__ = "#333" ; @ini_text
__background__ = "#fff" ; @ini_background
__text__ = "#000000" ; @ini_text
__background__ = "#ffffff" ; @ini_background
; alternative text and background colors
__text_alt__ = "#999" ; @ini_text_alt
__background_alt__ = "#eee" ; @ini_background_alt
__text_alt__ = "#999999" ; @ini_text_alt
__background_alt__ = "#ffffff" ; @ini_background_alt
; neutral text and background colors
__text_neu__ = "#666" ; @ini_text_neu
__background_neu__ = "#ddd" ; @ini_background_neu
__text_neu__ = "#000000" ; @ini_text_neu
__background_neu__ = "#ffffff" ; @ini_background_neu
; border color
__border__ = "#ccc" ; @ini_border
__border__ = "#000000" ; @ini_border

; highlighted text (e.g. search snippets)
__highlight__ = "#ff9" ; @ini_highlight
__highlight__ = "#dc3545" ; @ini_highlight

; default link color
__link__ = "#2b73b7" ; @ini_link
Expand All @@ -77,11 +77,11 @@ __link__ = "#2b73b7" ; @ini_link
__background_site__ = "#fbfaf9" ; @ini_background_site

; these are used for wiki links
__existing__ = "#080" ; @ini_existing
__missing__ = "#d30" ; @ini_missing
__existing__ = "#28a745" ; @ini_existing
__missing__ = "#ffc107" ; @ini_missing

; site and sidebar widths
__site_width__ = "75em" ; @ini_site_width
__site_width__ = "70em" ; @ini_site_width
__sidebar_width__ = "16em" ; @ini_sidebar_width
; cut off points for mobile devices
__tablet_width__ = "800px" ; @ini_tablet_width
Expand Down
8 changes: 4 additions & 4 deletions template.info.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
base dokuwiki
author Anika Henke
email anika@selfthinker.org
date 2015-07-26
author Kijima Daigo
email norimaking777@gmail.com
date 2020-07-22
name DokuWiki Template
desc DokuWiki's default template since 2012
desc DokuWiki's template with Bootstrap 4
url http://www.dokuwiki.org/template:dokuwiki
36 changes: 16 additions & 20 deletions tpl_header.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,39 @@
<!-- ********** HEADER ********** -->
<?php tpl_includeFile('header.html') ?>

<!-- ナビゲーションバー -->
<!-- Navigation bar -->
<nav class="navbar navbar-expand-md p-0">

<!-- サブコンポーネント -->
<!-- Sub component -->
<?php if($ID == 'start'): ?>
<div class="container">
<a class="navbar-brand text-dark" style="font-weight:900;" href="/doku.php?id=start">
<?php echo $conf['title']; ?>
</a>

<!-- タグライン? -->
<!-- Tagline -->
<?php if ($conf['tagline']): ?>
<p class="claim"><?php echo $conf['tagline']; ?></p>
<?php endif ?>

<!-- ハンバーガーボタン -->
<!-- Hamburgar button -->
<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">
<span class="navbar-toggler-icon"><i class="fas fa-bars"></i>
</span>
</button>

<!-- <ul class="a11y skip">
<li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content']; ?></a></li>
</ul> -->

<!-- ナビゲーション -->
<!-- Navigation -->
<div class="collapse navbar-collapse" id="navbar-content">

<ul class="navbar-nav mr-auto">

</ul>

<!-- トップメニュー -->
<!-- Topmenu -->
<ul class="navbar-nav py-3">
<!-- USER TOOLS -->
<!-- User tools -->

<!-- ページメニュー -->
<!-- Page menu -->

<!-- <li class="nav-item mx-2 dropdown d-lg-none">
<a href="#" class="nav-link dropdown-toggle" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">Page</a>
Expand All @@ -62,7 +58,7 @@
</ul>
</li> -->

<!-- モバイルツール -->
<!-- Mobile tool -->
<li class="nav-item mx-2 dropdown">
<a href="#" class=" nav-link dropdown-toggle" id="mldropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<?php if ($conf['useacl']):
Expand All @@ -86,7 +82,7 @@
</ul>
</li>

<!-- 検索 -->
<!-- Search bar -->
<li class="nav-item ml-0">
<?php /*tpl_searchform();*/ ?>
<form action="/doku.php?id=start" method="get" role="search" class="search doku_form" id="dw__search" accept-charset="utf-8"><input type="hidden" name="do" value="search" />
Expand Down Expand Up @@ -117,12 +113,12 @@
<div class="container border-bottom border-dark px-0">
<!-- <ul class="navbar-nav py-1">
<li class="nav-item"> -->
<?php echo $DOKU_TPL; ?>
<a href="/doku.php?id=start">
<img src="<?php echo tpl_basedir(); ?>images/arrow.png" style="width: 3em; height: 3em;">
</a>
<!-- </li>
</ul> -->
<?php echo $DOKU_TPL; ?>
<a href="/doku.php?id=start">
<img src="<?php echo tpl_basedir(); ?>images/arrow.png" style="width: 3em; height: 3em;">
</a>
<!-- </li>
</ul> -->
</div>
<?php endif; ?><!-- /start -->
</nav>
Expand Down

0 comments on commit 5fa3ce8

Please sign in to comment.