1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00

Merge pull request #2523 from Jimmi08/patch-10

improved param $class in contact subject shordcode
This commit is contained in:
Cameron 2017-03-25 13:09:07 -07:00 committed by GitHub
commit d6091754b0

View File

@ -147,10 +147,10 @@ class contact_shortcodes extends e_shortcode
{
$size = 'input-xxlarge';
}
$class = (!empty($parm['class'])) ? $parm['class'] : 'tbox '.$size.' form-control';
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>";
return "<textarea cols='{$cols}' id='contactBody' rows='{$rows}' title='".LANCONTACT_20."' name='body' ".$placeholder." required='required' class='".$class."'>".stripslashes(varset($_POST['body']))."</textarea>";
}