1
0
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:
Cameron 2017-01-04 09:54:55 -08:00
parent 1a3d313e03
commit 0be6ec5070

View File

@ -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>";
}