|
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"> |
107 | | - <?php |
108 | | - echo wp_kses( |
109 | | - $fm->field_label(), |
110 | | - array( |
111 | | - 'span' => array( |
112 | | - 'class' => true, |
113 | | - ), |
114 | | - ) |
115 | | - ); |
116 | | - ?> |
117 | | - </h2> |
| 106 | + <h2 class="ppom-divider-with-txt ppom-divider-line ppom-divider-line-clr ppom-divider-txt"><?php echo wp_kses( $fm->field_label(), array( 'span' => array( 'class' => true, 'data-*' => true, 'title' => true ) ) ); ?></h2> |
118 | 107 | <?php } else { ?> |
119 | 108 | <hr class="ppom-divider-<?php echo esc_attr( $style1_border ); ?>"> |
120 | 109 | <?php |
|
124 | 113 |
|
125 | 114 | <!--Style 2--> |
126 | 115 | <?php if ( $divider_styles == 'style2' ) { ?> |
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> |
| 116 | + <h2 class="ppom-divider-with-txt ppom-divider-gradient ppom-divider-txt"><?php echo wp_kses( $fm->field_label(), array( 'span' => array( 'class' => true, 'data-*' => true, 'title' => true ) ) ); ?></h2> |
139 | 117 | <?php } ?> |
140 | 118 |
|
141 | 119 | <!--Style 3--> |
142 | 120 | <?php if ( $divider_styles == 'style3' ) { ?> |
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> |
| 121 | + <h2 class="ppom-divider-with-txt ppom-divider-donotcross ppom-divider-txt"><?php echo wp_kses( $fm->field_label(), array( 'span' => array( 'class' => true, 'data-*' => true, 'title' => true ) ) ); ?></h2> |
155 | 122 | <?php } ?> |
156 | 123 |
|
157 | 124 | <!--Style 4--> |
158 | 125 | <?php if ( $divider_styles == 'style4' ) { ?> |
159 | 126 | <div class="ppom-divider-easy-shadow"> |
160 | 127 | <span></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> |
| 128 | + <span class="ppom-divider-txt"><?php echo wp_kses( $fm->field_label(), array( 'span' => array( 'class' => true, 'data-*' => true, 'title' => true ) ) ); ?></span> |
173 | 129 | <span></span> |
174 | 130 | </div> |
175 | 131 | <?php } ?> |
176 | 132 |
|
177 | 133 | <!--Style 5--> |
178 | 134 | <?php if ( $divider_styles == 'style5' ) { ?> |
179 | 135 |
|
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> |
| 136 | + <h1 class="ppom-divider-fancy-heading ppom-divider-txt"><?php echo wp_kses( $fm->field_label(), array( 'span' => array( 'class' => true, 'data-*' => true, 'title' => true ) ) ); ?></h1> |
192 | 137 | <div class="ppom-divider-fancy-line"> |
193 | 138 | <span></span> |
194 | 139 | </div> |
|
0 commit comments