Another bbcode quote fix by jtb
This commit is contained in:
parent
94db99efe6
commit
a0ef54e7ad
@ -204,8 +204,8 @@ class serendipity_event_bbcode extends serendipity_event
|
|||||||
'/(?<!\\\\)\[img(?::\w+)?=([0-9]*?)x([0-9]*?)\]' . $pattern_url . '\[\/img(?::\w+)?\]/si' => "<img width=\"\\1\" height=\"\\2\" src=\"\\3\" alt=\"\\3\" class=\"bb-image\" />",
|
'/(?<!\\\\)\[img(?::\w+)?=([0-9]*?)x([0-9]*?)\]' . $pattern_url . '\[\/img(?::\w+)?\]/si' => "<img width=\"\\1\" height=\"\\2\" src=\"\\3\" alt=\"\\3\" class=\"bb-image\" />",
|
||||||
|
|
||||||
// [quote]
|
// [quote]
|
||||||
'/(?<!\\\\)\[quote(?::\w+)?\](.*?)\[\/quote(?::\w+)?\]/si' => "<div class=\"bb-code-title\">QUOTE:</div><div class=\"bb-code\">\\1</div>",
|
'/(?<!\\\\)\[quote(?::\w+)?\](.*?)\[\/quote(?::\w+)?\]/si' => "<div class=\"bb-code-title\">QUOTE:</div><div class=\"bb-quote\">\\1</div>",
|
||||||
'/(?<!\\\\)\[quote(?::\w+)?=(?:"|"|\')?(.*?)["\']?(?:"|"|\')?\](.*?)\[\/quote\]/si' => "<div class=\"bb-code-title\">QUOTE \\1:</div><div class=\"bb-code\">\\2</div>",
|
'/(?<!\\\\)\[quote(?::\w+)?=(?:"|"|\')?(.*?)["\']?(?:"|"|\')?\](.*?)\[\/quote\]/si' => "<div class=\"bb-code-title\">QUOTE \\1:</div><div class=\"bb-quote\">\\2</div>",
|
||||||
|
|
||||||
// [list]
|
// [list]
|
||||||
'/(?<!\\\\)(?:\s*<br\s*\/?>\s*)?\[\*(?::\w+)?\](.*?)(?=(?:\s*<br\s*\/?>\s*)?\[\*|(?:\s*<br\s*\/?>\s*)?\[\/?list)/si' => "\n<li class=\"bb-listitem\">\\1</li>",
|
'/(?<!\\\\)(?:\s*<br\s*\/?>\s*)?\[\*(?::\w+)?\](.*?)(?=(?:\s*<br\s*\/?>\s*)?\[\*|(?:\s*<br\s*\/?>\s*)?\[\/?list)/si' => "\n<li class=\"bb-listitem\">\\1</li>",
|
||||||
@ -268,7 +268,7 @@ class serendipity_event_bbcode extends serendipity_event
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
.bb-code, .bb-php, .bb-code-title, .bb-php-title {
|
.bb-quote .bb-code, .bb-php, .bb-code-title, .bb-php-title {
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
color: black;
|
color: black;
|
||||||
@ -286,10 +286,16 @@ class serendipity_event_bbcode extends serendipity_event
|
|||||||
font-family: courier, "courier new";
|
font-family: courier, "courier new";
|
||||||
background-color: #DDDDDD;
|
background-color: #DDDDDD;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
white-space: nowrap;
|
white-space: pre;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 24em;
|
max-height: 24em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bb-quote {
|
||||||
|
background-color: #DDDDDD;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.bb-list-ordered-d {
|
.bb-list-ordered-d {
|
||||||
list-style-type: decimal;
|
list-style-type: decimal;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user