mirror of
https://github.com/e107inc/e107.git
synced 2025-01-18 05:09:05 +01:00
Contact Menu/Page body shortcode now supports placeholder.
This commit is contained in:
parent
1a3d313e03
commit
0be6ec5070
@ -121,13 +121,16 @@ class contact_shortcodes extends e_shortcode
|
||||
parse_str($parm, $parm);
|
||||
$rows = vartrue($parm['rows'],10);
|
||||
$cols = vartrue($parm['cols'],70);
|
||||
$placeholder = !empty($parm['placeholder']) ? "placeholder=\"".$parm['placeholder']."\"" : "";
|
||||
|
||||
if($cols > 60)
|
||||
{
|
||||
$size = 'input-xxlarge';
|
||||
}
|
||||
|
||||
|
||||
|
||||
return "<textarea cols='{$cols}' id='contactBody' rows='{$rows}' title='".LANCONTACT_20."' name='body' required='required' class='tbox {$size} form-control'>".stripslashes(varset($_POST['body']))."</textarea>";
|
||||
return "<textarea cols='{$cols}' id='contactBody' rows='{$rows}' title='".LANCONTACT_20."' name='body' ".$placeholder." required='required' class='tbox {$size} form-control'>".stripslashes(varset($_POST['body']))."</textarea>";
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user