#contents *ls2_pプラグイン [#c5448ee4] 使用したプラグインの仕様 -[[ls2_1プラグイン: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%2Fls2_1.inc.php]]をカスタマイズして使用 **『'?cmd=read&page=』を省略する [#z5a107fc] 484c484,486 < $href = $script . '?cmd=read&page=' . $r_page; --- > // '?cmd=read&page=?(2012.12.29) > //$href = $script . '?cmd=read&page=' . $r_page; > $href = $script . '?' . $r_page; **diff表示(修正全体) [#x66b4e03] -bash-3.1$ diff ls2_1.inc.php ls2_p.inc.php 9c9 < MenuBar #ls2_1(hogehoge/,depth=1,relative) --- > MenuBar #ls2_p(hogehoge/,depth=1,relative) 18c18 < ((ls2_1.inc.php v1.18 ?)) --- > ((ls2_p.inc.php v1.18 ?)) 29c29 < #ls2_1([,]) --- > #ls2_p([,]) 31c31 < &ls2_1([,]); --- > &ls2_p([,]); 34c34 < //index.php?plugin=ls2_1 --- > //index.php?plugin=ls2_p 139c139 < define('PLUGIN_LS2_1_CSS_CLASS','ls2_1'); --- > define('PLUGIN_LS2_1_CSS_CLASS','ls2_p'); 141c141 < function plugin_ls2_1_init() --- > function plugin_ls2_p_init() 155c155 < function plugin_ls2_1_action() --- > function plugin_ls2_p_action() 157c157 < return plugin_ls2_1('', 'action'); --- > return plugin_ls2_p('', 'action'); 160c160 < function plugin_ls2_1_inline() --- > function plugin_ls2_p_inline() 165c165 < return plugin_ls2_1($args, 'inline'); --- > return plugin_ls2_p($args, 'inline'); 168c168 < function plugin_ls2_1_convert() --- > function plugin_ls2_p_convert() 170c170 < return plugin_ls2_1(func_get_args(), 'convert'); --- > return plugin_ls2_p(func_get_args(), 'convert'); 173c173 < function plugin_ls2_1($args, $calledby = 'convert') --- > function plugin_ls2_p($args, $calledby = 'convert') 242,244c242,244 < $params = plugin_ls2_1_check_params($args, $params); < $argparams = plugin_ls2_1_check_argparams($args, $argparams); < $arghtmlparams = plugin_ls2_1_check_arghtmlparams($args, $arghtmlparams); --- > $params = plugin_ls2_p_check_params($args, $params); > $argparams = plugin_ls2_p_check_argparams($args, $argparams); > $arghtmlparams = plugin_ls2_p_check_arghtmlparams($args, $arghtmlparams); 255c255 < $body = plugin_ls2_1_show_lists($prefix, $params, $calledby); --- > $body = plugin_ls2_p_show_lists($prefix, $params, $calledby); 278c278 < $tmp[] = 'plugin=ls2_1&prefix=' . rawurlencode($prefix); --- > $tmp[] = 'plugin=ls2_p&prefix=' . rawurlencode($prefix); 290c290 < return plugin_ls2_1_show_lists($prefix, $params, $calledby); --- > return plugin_ls2_p_show_lists($prefix, $params, $calledby); 296c296 < function plugin_ls2_1_show_lists($prefix, &$params, $calledby = 'convert') { --- > function plugin_ls2_p_show_lists($prefix, &$params, $calledby = 'convert') { 311c311 < list($params['lowdepth'], $params['highdepth']) = plugin_ls2_1_depth_option_analysis($params['depth']); --- > list($params['lowdepth'], $params['highdepth']) = plugin_ls2_p_depth_option_analysis($params['depth']); 315c315 < list($params['headnumber'], $params['tailnumber']) = plugin_ls2_1_number_option_analysis($params['number']); --- > list($params['headnumber'], $params['tailnumber']) = plugin_ls2_p_number_option_analysis($params['number']); 319c319 < list($params['title_number']) = plugin_ls2_1_number_option_analysis($params['title_number']); --- > list($params['title_number']) = plugin_ls2_p_number_option_analysis($params['title_number']); 375,376c375,376 < // datesort plugin_ls2_1_timecmp function < usort($pagestmp, "plugin_ls2_1_timecmp"); --- > // datesort plugin_ls2_p_timecmp function > usort($pagestmp, "plugin_ls2_p_timecmp"); 455c455 < plugin_ls2_1_get_headings($page, $params, $level, false, $prefix, $top_level, $pages); --- > plugin_ls2_p_get_headings($page, $params, $level, false, $prefix, $top_level, $pages); 459c459 < plugin_ls2_1_get_headings($page, $params, 1, false, $prefix, 1, $pages); --- > plugin_ls2_p_get_headings($page, $params, 1, false, $prefix, 1, $pages); 472c472 < function plugin_ls2_1_get_headings($page, &$params, $level = 1, $include = false, $prefix, $top_level = 1, &$pages) --- > function plugin_ls2_p_get_headings($page, &$params, $level = 1, $include = false, $prefix, $top_level = 1, &$pages) 484c484,486 < $href = $script . '?cmd=read&page=' . $r_page; --- > // '?cmd=read&page=?(2012.12.29) > //$href = $script . '?cmd=read&page=' . $r_page; > $href = $script . '?' . $r_page; 533c535 < plugin_ls2_1_list_push($params, $level); --- > plugin_ls2_p_list_push($params, $level); 535c537 < // LI TAG. display plugin_ls2_1_list_push --- > // LI TAG. display plugin_ls2_p_list_push 590c592 < plugin_ls2_1_list_push($params, $level + $hlevel); --- > plugin_ls2_p_list_push($params, $level + $hlevel); 596c598 < plugin_ls2_1_get_headings($matches[1], $params, $level + $hlevel + 1, true, $prefix, $top_level, $pages); --- > plugin_ls2_p_get_headings($matches[1], $params, $level + $hlevel + 1, true, $prefix, $top_level, $pages); 602c604 < function plugin_ls2_1_list_push(&$params, $level) --- > function plugin_ls2_p_list_push(&$params, $level) 667c669 < function plugin_ls2_1_depth_option_analysis($arg) --- > function plugin_ls2_p_depth_option_analysis($arg) 689c691 < function plugin_ls2_1_number_option_analysis($arg) --- > function plugin_ls2_p_number_option_analysis($arg) 705c707 < function plugin_ls2_1_timecmp($a, $b) --- > function plugin_ls2_p_timecmp($a, $b) 717c719 < function plugin_ls2_1_check_params($args, $params) --- > function plugin_ls2_p_check_params($args, $params) 733c735 < function plugin_ls2_1_check_argparams($args, $params) --- > function plugin_ls2_p_check_argparams($args, $params) 745c747 < function plugin_ls2_1_check_arghtmlparams($args, $params) --- > function plugin_ls2_p_check_arghtmlparams($args, $params) *ls2_pプラグインテスト filter=メモ [#c6c43071] タイトルに『メモ』があるものだけを表示 #ls2_p(/,filter=メモ) *ls2_pプラグインテスト except=メモ [#l7035bee] タイトルに『メモ』があるのを除いて表示 #ls2_p(/,except=メモ) *ls2_pプラグインテスト [#acf0f837] 全てをタイトルを表示 #ls2_p(/)