mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 16:46:50 +02:00
new module creation
This commit is contained in:
20
e107_files/bbcode/textarea.bb
Normal file
20
e107_files/bbcode/textarea.bb
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
|
||||
/* Tag: [textarea name=name&style=style&row=rows&whatever=whatever]value[/textarea] */
|
||||
|
||||
|
||||
$tastr = "";
|
||||
|
||||
parse_str($parm, $tmp);
|
||||
|
||||
foreach($tmp as $key => $p)
|
||||
{
|
||||
$tastr .= $tp -> toAttribute($key)." = '".$tp -> toAttribute($p)."' ";
|
||||
}
|
||||
|
||||
|
||||
preg_match ("#\](.*?)\[/textarea#", $full_text, $match);
|
||||
$value = $match[1];
|
||||
|
||||
return "<textarea $tastr>$value</textarea>";
|
||||
|
Reference in New Issue
Block a user