mirror of
https://github.com/e107inc/e107.git
synced 2025-01-18 05:09:05 +01:00
Merge pull request #2522 from Jimmi08/patch-9
possibility to format contact subject shortcode
This commit is contained in:
commit
95c4415b9b
@ -120,9 +120,15 @@ class contact_shortcodes extends e_shortcode
|
||||
|
||||
|
||||
|
||||
/* example {CONTACT_SUBJECT} */
|
||||
/* example {CONTACT_SUBJECT: class=form-control} */
|
||||
/* example {CONTACT_SUBJECT: class=col-md-12&placeholder=".LANCONTACT_05." *} */
|
||||
|
||||
function sc_contact_subject($parm='')
|
||||
{
|
||||
return "<input type='text' id='contactSubject' title='".LANCONTACT_19."' name='subject' required='required' size='30' class='tbox form-control' value=\"".varset($_POST['subject'])."\" />";
|
||||
$class = (!empty($parm['class'])) ? $parm['class'] : 'tbox form-control';
|
||||
$placeholder = (!empty($parm['placeholder'])) ? " placeholder= '".$parm['placeholder']."'" : '';
|
||||
return "<input type='text' id='contactSubject' title='".LANCONTACT_19."' name='subject' required='required' size='30' ".$placeholder." class='".$class."' value=\"".varset($_POST['subject'])."\" />";
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user