@@ -24,31 +24,31 @@ $prefix = $block->showPrefix();
24
24
$ middle = $ block ->showMiddlename ();
25
25
$ suffix = $ block ->showSuffix ();
26
26
?>
27
- <?php if (($ prefix || $ middle || $ suffix ) && !$ block ->getNoWrap ()) : ?>
27
+ <?php if (($ prefix || $ middle || $ suffix ) && !$ block ->getNoWrap ()): ?>
28
28
<div class="field required fullname <?= $ block ->escapeHtmlAttr ($ block ->getContainerClassName ()) ?> ">
29
29
<label for="<?= $ block ->escapeHtmlAttr ($ block ->getFieldId ('firstname ' )) ?> " class="label"><span><?= $ block ->escapeHtml (__ ('Name ' )) ?> </span></label>
30
30
<div class="control">
31
31
<fieldset class="fieldset fieldset-fullname">
32
32
<div class="fields">
33
33
<?php endif ; ?>
34
34
35
- <?php if ($ prefix ) : ?>
35
+ <?php if ($ prefix ): ?>
36
36
<div class="field field-name-prefix<?= $ block ->isPrefixRequired () ? ' required ' : '' ?> ">
37
37
<label class="label" for="<?= $ block ->escapeHtmlAttr ($ block ->getFieldId ('prefix ' )) ?> "><span><?= $ block ->escapeHtml ($ block ->getStoreLabel ('prefix ' )) ?> </span></label>
38
38
<div class="control">
39
- <?php if ($ block ->getPrefixOptions () === false ) : ?>
39
+ <?php if ($ block ->getPrefixOptions () === false ): ?>
40
40
<input type="text" id="<?= $ block ->escapeHtmlAttr ($ block ->getFieldId ('prefix ' )) ?> "
41
41
name="<?= $ block ->escapeHtmlAttr ($ block ->getFieldName ('prefix ' )) ?> "
42
42
value="<?= $ block ->escapeHtmlAttr ($ block ->getObject ()->getPrefix ()) ?> "
43
43
title="<?= $ block ->escapeHtmlAttr ($ block ->getStoreLabel ('prefix ' )) ?> "
44
44
class="input-text <?= $ block ->escapeHtmlAttr ($ block ->getAttributeValidationClass ('prefix ' )) ?> " <?= $ block ->isPrefixRequired () ? ' data-validate="{required:true}" ' : '' ?> >
45
- <?php else : ?>
45
+ <?php else : ?>
46
46
<select id="<?= $ block ->escapeHtmlAttr ($ block ->getFieldId ('prefix ' )) ?> "
47
47
name="<?= $ block ->escapeHtmlAttr ($ block ->getFieldName ('prefix ' )) ?> "
48
48
title="<?= $ block ->escapeHtmlAttr ($ block ->getStoreLabel ('prefix ' )) ?> "
49
49
class="<?= $ block ->escapeHtmlAttr ($ block ->getAttributeValidationClass ('prefix ' )) ?> " <?= $ block ->isPrefixRequired () ? ' data-validate="{required:true}" ' : '' ?> >
50
- <?php foreach ($ block ->getPrefixOptions () as $ _option ) : ?>
51
- <option value="<?= $ block ->escapeHtmlAttr (__ ($ _option )) ?> "<?php if ($ block ->getObject ()->getPrefix () == $ _option ) : ?> selected="selected"<?php endif ; ?> >
50
+ <?php foreach ($ block ->getPrefixOptions () as $ _option ): ?>
51
+ <option value="<?= $ block ->escapeHtmlAttr (__ ($ _option )) ?> "<?php if ($ block ->getObject ()->getPrefix () == $ _option ): ?> selected="selected"<?php endif ; ?> >
52
52
<?= $ block ->escapeHtml (__ ($ _option )) ?>
53
53
</option>
54
54
<?php endforeach ; ?>
@@ -67,7 +67,7 @@ $suffix = $block->showSuffix();
67
67
class="input-text <?= $ block ->escapeHtmlAttr ($ block ->getAttributeValidationClass ('firstname ' )) ?> " <?= ($ block ->getAttributeValidationClass ('firstname ' ) == 'required-entry ' ) ? ' data-validate="{required:true}" ' : '' ?> >
68
68
</div>
69
69
</div>
70
- <?php if ($ middle ) : ?>
70
+ <?php if ($ middle ): ?>
71
71
<?php $ isMiddlenameRequired = $ block ->isMiddlenameRequired (); ?>
72
72
<div class="field field-name-middlename<?= $ isMiddlenameRequired ? ' required ' : '' ?> ">
73
73
<label class="label" for="<?= $ block ->escapeHtmlAttr ($ block ->getFieldId ('middlename ' )) ?> "><span><?= $ block ->escapeHtml ($ block ->getStoreLabel ('middlename ' )) ?> </span></label>
@@ -90,23 +90,23 @@ $suffix = $block->showSuffix();
90
90
class="input-text <?= $ block ->escapeHtmlAttr ($ block ->getAttributeValidationClass ('lastname ' )) ?> " <?= ($ block ->getAttributeValidationClass ('lastname ' ) == 'required-entry ' ) ? ' data-validate="{required:true}" ' : '' ?> >
91
91
</div>
92
92
</div>
93
- <?php if ($ suffix ) : ?>
93
+ <?php if ($ suffix ): ?>
94
94
<div class="field field-name-suffix<?= $ block ->isSuffixRequired () ? ' required ' : '' ?> ">
95
95
<label class="label" for="<?= $ block ->escapeHtmlAttr ($ block ->getFieldId ('suffix ' )) ?> "><span><?= $ block ->escapeHtml ($ block ->getStoreLabel ('suffix ' )) ?> </span></label>
96
96
<div class="control">
97
- <?php if ($ block ->getSuffixOptions () === false ) : ?>
97
+ <?php if ($ block ->getSuffixOptions () === false ): ?>
98
98
<input type="text" id="<?= $ block ->escapeHtmlAttr ($ block ->getFieldId ('suffix ' )) ?> "
99
99
name="<?= $ block ->escapeHtmlAttr ($ block ->getFieldName ('suffix ' )) ?> "
100
100
value="<?= $ block ->escapeHtmlAttr ($ block ->getObject ()->getSuffix ()) ?> "
101
101
title="<?= $ block ->escapeHtmlAttr ($ block ->getStoreLabel ('suffix ' )) ?> "
102
102
class="input-text <?= $ block ->escapeHtmlAttr ($ block ->getAttributeValidationClass ('suffix ' )) ?> " <?= $ block ->isSuffixRequired () ? ' data-validate="{required:true}" ' : '' ?> >
103
- <?php else : ?>
103
+ <?php else : ?>
104
104
<select id="<?= $ block ->escapeHtmlAttr ($ block ->getFieldId ('suffix ' )) ?> "
105
105
name="<?= $ block ->escapeHtmlAttr ($ block ->getFieldName ('suffix ' )) ?> "
106
106
title="<?= $ block ->escapeHtmlAttr ($ block ->getStoreLabel ('suffix ' )) ?> "
107
107
class="<?= $ block ->escapeHtmlAttr ($ block ->getAttributeValidationClass ('suffix ' )) ?> " <?= $ block ->isSuffixRequired () ? ' data-validate="{required:true}" ' : '' ?> >
108
- <?php foreach ($ block ->getSuffixOptions () as $ _option ) : ?>
109
- <option value="<?= $ block ->escapeHtmlAttr (__ ($ _option )) ?> "<?php if ($ block ->getObject ()->getSuffix () == $ _option ) : ?> selected="selected"<?php endif ; ?> >
108
+ <?php foreach ($ block ->getSuffixOptions () as $ _option ): ?>
109
+ <option value="<?= $ block ->escapeHtmlAttr (__ ($ _option )) ?> "<?php if ($ block ->getObject ()->getSuffix () == $ _option ): ?> selected="selected"<?php endif ; ?> >
110
110
<?= $ block ->escapeHtml (__ ($ _option )) ?>
111
111
</option>
112
112
<?php endforeach ; ?>
@@ -116,7 +116,7 @@ $suffix = $block->showSuffix();
116
116
</div>
117
117
<?php endif ; ?>
118
118
119
- <?php if (($ prefix || $ middle || $ suffix ) && !$ block ->getNoWrap ()) : ?>
119
+ <?php if (($ prefix || $ middle || $ suffix ) && !$ block ->getNoWrap ()): ?>
120
120
</div>
121
121
</fieldset>
122
122
</div>
0 commit comments