1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
#freeze
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);
    }}}}
 
 
//////////////////////////////////////////////////////////////////
//* ページ先頭と末尾に飛ぶリンクの配置変更(スキーン変更) [#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&amp;page=$r_page$id\">$s_label</a>";
//    +    return '<a href="'.$script.'?cmd=edit&amp;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);|
//
//////////////////////////////////////////////////////////////////
fileToHeader.png 234件 [詳細] fileToFooter_0.png 202件 [詳細] fileToFooter.png 239件 [詳細] fileParaEdit.png 245件 [詳細]
    初基 一覧 検索 最新 バックアップ リンク元   ヘルプ   最終更新のRSS