File tree 7 files changed +14
-9
lines changed
7 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
+
2
3
/**
3
4
* @package JD Simple Contact Form
4
5
* @author JoomDev https://www.joomdev.com
9
10
defined ('_JEXEC ' ) or die;
10
11
extract ($ displayData );
11
12
$ show_label = $ field ->show_label === null ? 1 : $ field ->show_label ;
12
- if ($ field ->type == 'hidden ' ) {
13
+ if ($ field ->type == 'hidden ' ) {
13
14
echo $ input ;
14
15
} else {
15
16
?>
16
- <div class="jdscf-col-md-<?php echo $ field ->width ; ?> ">
17
- <div class="form-group">
18
- <?php if ($ show_label ) { ?>
17
+ <div class="jdscf-col-md-<?php echo $ field ->width ; ?> ">
18
+ <div class="form-group">
19
19
<?php echo $ label ; ?>
20
- <?php } ?>
21
- <?php echo $ input ; ? >
20
+ <?php echo $ input ; ?>
21
+ </div >
22
22
</div>
23
- </div>
24
23
<?php } ?>
Original file line number Diff line number Diff line change 9
9
defined ('_JEXEC ' ) or die;
10
10
extract ($ displayData );
11
11
$ attrs = [];
12
+ $ attrs [] = 'id=" ' . $ field ->id . '" ' ;
12
13
if (isset ($ field ->placeholder ) && !empty ($ field ->placeholder )) {
13
14
$ attrs [] = 'placeholder=" ' . $ field ->placeholder . '" ' ;
14
15
}
Original file line number Diff line number Diff line change 10
10
extract ($ displayData );
11
11
$ options = ModJDSimpleContactFormHelper::getOptions ($ field ->options );
12
12
$ attrs = [];
13
-
13
+ $ attrs [] = ' id=" ' . $ field -> id . ' " ' ;
14
14
if ($ field ->required ) {
15
15
$ attrs [] = 'required ' ;
16
16
if (isset ($ field ->custom_error ) && !empty (trim ($ field ->custom_error ))) {
Original file line number Diff line number Diff line change 9
9
defined ('_JEXEC ' ) or die;
10
10
extract ($ displayData );
11
11
$ attrs = [];
12
+ $ attrs [] = 'id=" ' . $ field ->id . '" ' ;
12
13
if ($ field ->required ) {
13
14
$ attrs [] = 'required ' ;
14
15
if (isset ($ field ->custom_error ) && !empty (trim ($ field ->custom_error ))) {
Original file line number Diff line number Diff line change 9
9
defined ('_JEXEC ' ) or die;
10
10
extract ($ displayData );
11
11
$ attrs = [];
12
+ $ attrs [] = 'id=" ' . $ field ->id . '" ' ;
12
13
switch ($ field ->type ) {
13
14
case 'email ' :
14
15
$ attrs [] = 'data-parsley-type="email" ' ;
Original file line number Diff line number Diff line change 9
9
defined ('_JEXEC ' ) or die;
10
10
extract ($ displayData );
11
11
$ attrs = [];
12
+ $ attrs [] = 'id=" ' . $ field ->id . '" ' ;
12
13
if ($ field ->required ) {
13
14
$ attrs [] = 'required ' ;
14
15
if (isset ($ field ->custom_error ) && !empty (trim ($ field ->custom_error ))) {
Original file line number Diff line number Diff line change 1
1
<?php
2
+
2
3
/**
3
4
* @package JD Simple Contact Form
4
5
* @author JoomDev https://www.joomdev.com
9
10
defined ('_JEXEC ' ) or die;
10
11
extract ($ displayData );
11
12
$ label = ModJDSimpleContactFormHelper::getLabelText ($ field );
13
+ $ show_label = $ field ->show_label === null ? 1 : $ field ->show_label ;
12
14
?>
13
- <label class="d-block">
15
+ <label for=" <?php echo $ field -> id ; ?> " class="<?php echo $ show_label ? ' d-block ' : ' d-none ' ; ?> ">
14
16
<?php echo $ label ; ?>
15
17
<?php if ($ field ->required ) { ?>
16
18
<small class="text-danger">*</small>
You can’t perform that action at this time.
0 commit comments