TITLE:その他
%indent
#contents
////////////////////////////////////////////////////////////////
* パンくずリストの改造 [#y1668ba8]
//-- topicpath.inc.php L32
** 方針 [#k7075b52]
- トップページでも「トップ## >##」と表示し欲しい。
-- 全ページにおける表記の統一。
-- 前後のデザインのための位取りが必要。
- [[PukiWiki公式/自作プラグイン/topicpath.inc.php>http://pukiwiki.sourceforge.jp/?%E8%87%AA%E4%BD%9C%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%2Ftopicpath.inc.php]]~
コメント teanan 2005-05-16 (月) 16:19:10 を参考
** 実装 [#l8038490]
- ##plugin/topicpath.inc.php## の ##function plugin_topicpath_inline## 入り口付近。
#code(diff){{{{
function plugin_topicpath_inline()
{
global $script, $vars, $defaultpage;
$page = isset($vars['page']) ? $vars['page'] : '';
- if ($page == '' || $page == $defaultpage) return '';
+ if ($page == '') return '';
+ if ($page == $defaultpage) return PLUGIN_TOPICPATH_TOP_LABEL.PLUGIN_TOPICPATH_TOP_SEPARATOR;
$parts = explode('/', $page);
}}}}
////////////////////////////////////////////////////////////////
* コメント [#kc8067c6]
#pcomment
//////////////////////////////////////////////////////////////////
//* ページ先頭と末尾に飛ぶリンクの配置変更(スキーン変更) [#y55b1181]
//
//** 方針 [#k63c1756]
//- リンクのために一行を取らせない。
//- 段組プラグイン column との相性から、右揃え属性は避けた方が無難。
//- 段編集プラグイン paraedit のアイコンとを一箇所に集めるべし。
//
//** 実装 [#ycd993d6]
//- ##plugin/edit.inc.php## の ##function plugin_edit_inline## にて、
// #code(diff){{{{
// function plugin_edit_inline()
// {
// static $usage = '&edit(pagename,anchor);';
//
// global $script, $vars, $fixed_heading_edited;
// - global $_symbol_paraedit;
// + global $_symbol_paraedit, $_symbol_paraedit_tool;
//
// if (!$fixed_heading_edited || is_freeze($vars['page'])) {
// return '';
// }
//
// // Arguments
// $args = func_get_args();
//
// // {label}. Strip anchor tags only
// $s_label = strip_htmltag(array_pop($args), FALSE);
// if ($s_label == '') {
// $s_label = $_symbol_paraedit;
// }
//
// list($page, $id) = array_pad($args, 2, '');
// if (!is_page($page)) {
// $page = $vars['page'];
// }
// if ($id != '') {
// $id = '&id=' . rawurlencode($id);
// }
// $r_page = rawurlencode($page);
// - return "<a class=\"anchor_super\" href=\"$script?cmd=edit&page=$r_page$id\">$s_label</a>";
// + return '<a href="'.$script.'?cmd=edit&page='.$r_page.$id.'">'.$s_label.'</a>'.$_symbol_paraedit_tool;
// }
// }}}}
//-- ##class="anchor_super"## を取ったのは、単にアイコンが小さくなるのを避けるため。
////
//- ##default.ini.php## の先頭と前半にて、
// #code(diff){{{{
// /////////////////////////////////////////////////
// // 特殊シンボル
// -$_symbol_paraedit = '<img src="./image/plus/paraedit.png" width="9" height="9" alt="Edit" title="Edit" />';
// +$_symbol_paraedit = '<img src="./image/ParaEdit.png" class="tool_icon" alt="Edit" title="Edit" />';
// +$_symbol_paraedit_tool
// + = '<a href="#header"><img src="./image/ToHeader.png" class="tool_icon" alt="ToHeader" title="ToHeader" /></a>'
// + . '<a href="#footer"><img src="./image/ToFooter.png" class="tool_icon" alt="ToFooter" title="ToFooter" /></a>';
// $_symbol_extanchor = '<img src="./image/plus/ext.png" alt="" title="" class="ext" onclick="return open_uri(\'$1\', \'$2\');" />';
// $_symbol_innanchor = '<img src="./image/plus/inn.png" alt="" title="" class="inn" onclick="return open_uri(\'$1\', \'$2\');" />';
//
// ……
//
// /////////////////////////////////////////////////
// // 大・小見出しから目次へ戻るリンクの文字
// -$top = $_msg_content_back_to_top;
// +$top = ''; // paraeditで表示
// }}}}
////
//** 添付:アイコン [#w4b548a2]
//|ParaEdit.png: |&attachref(./ParaEdit.png);|
//|ToHeeder.png: |&attachref(./ToHeader.png);|
//|ToFooter.png: |&attachref(./ToFooter.png);|
//
//////////////////////////////////////////////////////////////////
//* コメント [#r77cb898]
//#pcomment
//
////////////////////////////////////////////////////////////////