File tree Expand file tree Collapse file tree 3 files changed +80
-7
lines changed
templates/frontend/inputs Expand file tree Collapse file tree 3 files changed +80
-7
lines changed Original file line number Diff line number Diff line change 103
103
if ( $ divider_styles == 'style1 ' ) {
104
104
if ( $ fm ->field_label () ) {
105
105
?>
106
- <h2 class="ppom-divider-with-txt ppom-divider-line ppom-divider-line-clr ppom-divider-txt"><?php echo esc_html ( $ fm ->field_label () ); ?> </h2>
106
+ <h2 class="ppom-divider-with-txt ppom-divider-line ppom-divider-line-clr ppom-divider-txt">
107
+ <?php
108
+ echo wp_kses (
109
+ $ fm ->field_label (),
110
+ array (
111
+ 'span ' => array (
112
+ 'class ' => true ,
113
+ ),
114
+ )
115
+ );
116
+ ?>
117
+ </h2>
107
118
<?php } else { ?>
108
119
<hr class="ppom-divider-<?php echo esc_attr ( $ style1_border ); ?> ">
109
120
<?php
113
124
114
125
<!--Style 2-->
115
126
<?php if ( $ divider_styles == 'style2 ' ) { ?>
116
- <h2 class="ppom-divider-with-txt ppom-divider-gradient ppom-divider-txt"><?php echo esc_html ( $ fm ->field_label () ); ?> </h2>
127
+ <h2 class="ppom-divider-with-txt ppom-divider-gradient ppom-divider-txt">
128
+ <?php
129
+ echo wp_kses (
130
+ $ fm ->field_label (),
131
+ array (
132
+ 'span ' => array (
133
+ 'class ' => true ,
134
+ ),
135
+ )
136
+ );
137
+ ?>
138
+ </h2>
117
139
<?php } ?>
118
140
119
141
<!--Style 3-->
120
142
<?php if ( $ divider_styles == 'style3 ' ) { ?>
121
- <h2 class="ppom-divider-with-txt ppom-divider-donotcross ppom-divider-txt"><?php echo esc_html ( $ fm ->field_label () ); ?> </h2>
143
+ <h2 class="ppom-divider-with-txt ppom-divider-donotcross ppom-divider-txt">
144
+ <?php
145
+ echo wp_kses (
146
+ $ fm ->field_label (),
147
+ array (
148
+ 'span ' => array (
149
+ 'class ' => true ,
150
+ ),
151
+ )
152
+ );
153
+ ?>
154
+ </h2>
122
155
<?php } ?>
123
156
124
157
<!--Style 4-->
125
158
<?php if ( $ divider_styles == 'style4 ' ) { ?>
126
159
<div class="ppom-divider-easy-shadow">
127
160
<span></span>
128
- <span class="ppom-divider-txt"><?php echo esc_html ( $ fm ->field_label () ); ?> </span>
161
+ <span class="ppom-divider-txt">
162
+ <?php
163
+ echo wp_kses (
164
+ $ fm ->field_label (),
165
+ array (
166
+ 'span ' => array (
167
+ 'class ' => true ,
168
+ ),
169
+ )
170
+ );
171
+ ?>
172
+ </span>
129
173
<span></span>
130
174
</div>
131
175
<?php } ?>
132
176
133
177
<!--Style 5-->
134
178
<?php if ( $ divider_styles == 'style5 ' ) { ?>
135
179
136
- <h1 class="ppom-divider-fancy-heading ppom-divider-txt"><?php echo esc_html ( $ fm ->field_label () ); ?> </h1>
180
+ <h1 class="ppom-divider-fancy-heading ppom-divider-txt">
181
+ <?php
182
+ echo wp_kses (
183
+ $ fm ->field_label (),
184
+ array (
185
+ 'span ' => array (
186
+ 'class ' => true ,
187
+ ),
188
+ )
189
+ );
190
+ ?>
191
+ </h1>
137
192
<div class="ppom-divider-fancy-line">
138
193
<span></span>
139
194
</div>
Original file line number Diff line number Diff line change 51
51
class="<?php echo esc_attr ( $ fm ->label_classes () ); ?> "
52
52
for="<?php echo esc_attr ( $ fm ->data_name () ); ?> "
53
53
>
54
- <?php echo esc_html ( $ fm ->field_label () ); ?>
54
+ <?php
55
+ echo wp_kses (
56
+ $ fm ->field_label (),
57
+ array (
58
+ 'span ' => array (
59
+ 'class ' => true ,
60
+ ),
61
+ )
62
+ );
63
+ ?>
55
64
</label>
56
65
<?php endif ?>
57
66
Original file line number Diff line number Diff line change 54
54
class="<?php echo esc_attr ( $ fm ->label_classes () ); ?> "
55
55
for="<?php echo esc_attr ( $ fm ->data_name () ); ?> "
56
56
>
57
- <?php echo esc_html ( $ fm ->field_label () ); ?>
57
+ <?php
58
+ echo wp_kses (
59
+ $ fm ->field_label (),
60
+ array (
61
+ 'span ' => array (
62
+ 'class ' => true ,
63
+ ),
64
+ )
65
+ );
66
+ ?>
58
67
</label>
59
68
<?php endif ?>
60
69
You can’t perform that action at this time.
0 commit comments