/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: convert_html.php,v 1.10 2003/02/03 11:56:28 panda Exp $
+// $Id: convert_html.php,v 1.11 2003/02/03 12:46:56 panda Exp $
//
function &convert_html(&$lines)
$text = preg_replace("/<p>#contents<\/p>/",$this->getContents(),$text);
// ´ØÏ¢¤¹¤ë¥Ú¡¼¥¸
- $text = preg_replace('/#related/e','make_related($vars[\'page\'],TRUE)',$text);
+ // <p>¤Î¤È¤¤Ï¹ÔƬ¤«¤é¡¢<del>¤Î¤È¤¤Ï¾¤ÎÍ×ÁǤλÒÍ×ÁǤȤ·¤Æ¸ºß
+ $text = preg_replace('/<(p|del)>#related<\/\1>/e','make_related($vars[\'page\'],\'$1\')',$text);
return $text;
}
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: html.php,v 1.49 2003/01/31 01:49:35 panda Exp $
+// $Id: html.php,v 1.50 2003/02/03 12:46:56 panda Exp $
//
// ËÜʸ¤ò½ÐÎÏ
$lastmodified = $is_read ?
get_date('D, d M Y H:i:s T',get_filetime($_page)).' '.get_pg_passage($_page,FALSE) : '';
- $related = ($is_read and $related_link) ? make_related($_page,FALSE) : '';
+ $related = ($is_read and $related_link) ? make_related($_page) : '';
$attaches = ($is_read and exist_plugin_action('attach')) ? attach_filelist() : '';
}
// ´ØÏ¢¤¹¤ë¥Ú¡¼¥¸
-function make_related($page,$_isrule)
+function make_related($page,$tag='')
{
global $script,$vars,$related,$rule_related_str,$related_str;
+ global $_list_left_margin, $_list_margin, $_list_pad_str;
$links = links_get_related($page);
$r_page = rawurlencode($page);
$s_page = htmlspecialchars($page);
$passage = get_passage($lastmod);
- $_links[] = $_isrule ?
+ $_links[] = $tag ?
"<a href=\"$script?$r_page\" title=\"$s_page $passage\">$s_page</a>" :
"<a href=\"$script?$r_page\">$s_page</a>$passage";
}
- return join($_isrule ? $rule_related_str : $related_str,$_links);
+ if ($tag) {
+ $retval = join($rule_related_str,$_links);
+ if ($tag == 'p') {
+ $margin = $_list_left_margin + $_list_margin;
+ $style = sprintf($_list_pad_str,1,$margin,$margin);
+ $retval = "\n<ul class=\"list1\" style=\"$style\">\n<li>$retval</li>\n</ul>\n";
+ }
+ }
+ else {
+ $retval = join($related_str,$_links);
+ }
+ return $retval;
}
// Ãí¼á½èÍý
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: pukiwiki.ini.php,v 1.19 2003/02/03 10:25:11 panda Exp $
+// $Id: pukiwiki.ini.php,v 1.20 2003/02/03 12:46:56 panda Exp $
//
// PukiWiki setting file
"''(?!')((?:(?!'').)*)''" => '<strong>$1</strong>',
'&(#[0-9]+|#x[0-9a-f]+|[0-9a-zA-Z]+);' => '&$1;',
"~\r" => '<br />', /* ¹ÔËö¤Ë¥Á¥ë¥À¤Ï²þ¹Ô */
+'#related' => '<del>#related</del>',
);
/////////////////////////////////////////////////