From 5fa3ce821ba402d80ed98ae5781d52b491293614 Mon Sep 17 00:00:00 2001 From: kijima Date: Wed, 22 Jul 2020 04:06:57 +0900 Subject: [PATCH] Add document, setting --- main.php | 11 +++++------ style.ini | 22 +++++++++++----------- template.info.txt | 8 ++++---- tpl_header.php | 36 ++++++++++++++++-------------------- 4 files changed, 36 insertions(+), 41 deletions(-) diff --git a/main.php b/main.php index c7c2d3d..9d682c4 100755 --- a/main.php +++ b/main.php @@ -1,10 +1,9 @@ - * @author Clarence Lee + * @author Kijima Daigo * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) */ @@ -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; } diff --git a/style.ini b/style.ini index a42a56f..9ca911b 100755 --- a/style.ini +++ b/style.ini @@ -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 @@ -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 diff --git a/template.info.txt b/template.info.txt index 73ad939..0b92478 100755 --- a/template.info.txt +++ b/template.info.txt @@ -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 diff --git a/tpl_header.php b/tpl_header.php index 0463911..9cc4515 100755 --- a/tpl_header.php +++ b/tpl_header.php @@ -10,43 +10,39 @@ - +