• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

blogger


コミットメタ情報

リビジョンb963e2bc596ef07c998810211f741c270da4febb (tree)
日時2017-08-27 06:44:36
作者umorigu <umorigu@gmai...>
コミッターumorigu

ログメッセージ

BugTrack/2426 topicpath plugin - Use CSS layout for slashes

変更サマリ

差分

--- a/plugin/topicpath.inc.php
+++ b/plugin/topicpath.inc.php
@@ -1,14 +1,14 @@
11 <?php
22 // PukiWiki - Yet another WikiWikiWeb clone
3-// $Id: topicpath.inc.php,v 1.9 2011/01/25 15:01:01 henoheno Exp $
4-// Copyright (C)
5-// 2004-2005 PukiWiki Developers Team
3+// topicpath.inc.php
4+// Copyright
5+// 2004-2017 PukiWiki Development Team
66 // 2003 reimy (Some bug fix)
77 // 2003 t.m (Migrate to 1.3)
88 // 2003 Nibun-no-ni (Originally written for PukiWiki 1.4.x)
9-// License: GPL (any version)
9+// License: GPL v2 or (at your option) any later version
1010 //
11-// 'topicpath' plugin for PukiWiki, available under GPL
11+// 'topicpath' plugin for PukiWiki
1212
1313 // Show a link to $defaultpage or not
1414 define('PLUGIN_TOPICPATH_TOP_DISPLAY', 1);
@@ -17,7 +17,7 @@ define('PLUGIN_TOPICPATH_TOP_DISPLAY', 1);
1717 define('PLUGIN_TOPICPATH_TOP_LABEL', 'Top');
1818
1919 // Separetor / of / topic / path
20-define('PLUGIN_TOPICPATH_TOP_SEPARATOR', ' / ');
20+define('PLUGIN_TOPICPATH_TOP_SEPARATOR', '<span class="topicpath-slash">/</span>');
2121
2222 // Show the page itself or not
2323 define('PLUGIN_TOPICPATH_THIS_PAGE_DISPLAY', 1);
@@ -32,8 +32,9 @@ function plugin_topicpath_convert()
3232
3333 function plugin_topicpath_inline()
3434 {
35- global $script, $vars, $defaultpage;
35+ global $vars, $defaultpage;
3636
37+ $script = get_script_uri();
3738 $page = isset($vars['page']) ? $vars['page'] : '';
3839 if ($page == '' || $page == $defaultpage) return '';
3940
@@ -64,10 +65,11 @@ function plugin_topicpath_inline()
6465 $element . '</a>';
6566 }
6667 }
67-
68- if (PLUGIN_TOPICPATH_TOP_DISPLAY)
69- $topic_path[] = make_pagelink($defaultpage, PLUGIN_TOPICPATH_TOP_LABEL);
70-
71- return join(PLUGIN_TOPICPATH_TOP_SEPARATOR, array_reverse($topic_path));
68+ $s = join(PLUGIN_TOPICPATH_TOP_SEPARATOR, array_reverse($topic_path));
69+ if (PLUGIN_TOPICPATH_TOP_DISPLAY) {
70+ $s = '<span class="topicpath-top">' .
71+ make_pagelink($defaultpage, PLUGIN_TOPICPATH_TOP_LABEL) .
72+ PLUGIN_TOPICPATH_TOP_SEPARATOR . '</span>' . $s;
73+ }
74+ return $s;
7275 }
73-
--- a/skin/pukiwiki.css
+++ b/skin/pukiwiki.css
@@ -610,6 +610,14 @@ td.vote_td2 {
610610 background-color:#EEF5FF;
611611 }
612612
613+/* topicpath.inc.php */
614+span.topicpath-slash {
615+ margin: 0 0.4em;
616+}
617+span.topicpath-top {
618+ user-select: none;
619+}
620+
613621 @media print {
614622 a:link,
615623 a:visited {