mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Support 'official' list bbcode format (using [*] ) as well as the 'legacy' one
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
/* Tag: unordered list [list]*line 1*line2*line 3*line 4*line5 etc[/list] */
|
/* Tag: unordered list [list][*]line 1[*]line2[*]line 3[*]line 4[*]line5 etc[/list] - preferred */
|
||||||
/* Tag: ordered list [list=<list type>]*line 1*line2*line 3*line 4*line5 etc[/list] */
|
/* Tag: ordered list [list=<list type>][*]line 1[*]line2[*]line 3[*]line 4[*]line5 etc[/list] - preferred */
|
||||||
|
/* Tag: unordered list [list]*line 1*line2*line 3*line 4*line5 etc[/list] - legacy*/
|
||||||
|
/* Tag: ordered list [list=<list type>]*line 1*line2*line 3*line 4*line5 etc[/list] - legacy */
|
||||||
/* valid list types:
|
/* valid list types:
|
||||||
disc
|
disc
|
||||||
circle
|
circle
|
||||||
@@ -11,8 +13,14 @@
|
|||||||
upper-alpha A, B, C
|
upper-alpha A, B, C
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (strpos($code_text,"[*]") !== FALSE)
|
||||||
$listitems = explode("*", $code_text);
|
{
|
||||||
|
$listitems = explode("[*]", $code_text);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$listitems = explode("*", $code_text);
|
||||||
|
}
|
||||||
|
|
||||||
if ($parm == '')
|
if ($parm == '')
|
||||||
{ /* unordered list */
|
{ /* unordered list */
|
||||||
|
Reference in New Issue
Block a user