@@ -67,21 +67,13 @@ public static function shared_attributes( $field_key, $fields, $post, $params =
6767 return $ shared_attributes ;
6868 }
6969
70- public static function render_icon_slot ( $ field ) {
71- if ( isset ( $ field ['font-icon ' ] ) && !empty ( $ field ['font-icon ' ] ) ): ?>
72- <span slot="icon-start">
73- <i class="dt-icon <?php echo esc_html ( $ field ['font-icon ' ] ) ?> "></i>
74- </span>
75- <?php endif ;
76- }
77-
7870 public static function render_communication_channel ( $ field_key , $ fields , $ post , $ params = [] ) {
7971 $ shared_attributes = self ::shared_attributes ( $ field_key , $ fields , $ post , $ params );
8072 ?>
8173 <dt-multi-text <?php echo wp_kses_post ( $ shared_attributes ) ?>
82- value="<?php echo esc_attr ( isset ( $ post [$ field_key ] ) ? json_encode ( $ post [$ field_key ] ) : '' ) ?> "
83- <?php self :: render_icon_slot ( $ fields [$ field_key ] ) ?>
84- > </dt-multi-text>
74+ value="<?php echo esc_attr ( isset ( $ post [$ field_key ] ) ? json_encode ( $ post [$ field_key ] ) : '' ) ?> ">
75+ <?php dt_render_icon_slot ( $ fields [$ field_key ] ) ?>
76+ </dt-multi-text>
8577 <?php
8678 }
8779
@@ -160,9 +152,8 @@ public static function render_location_meta( $field_key, $fields, $post, $params
160152 $ shared_attributes = self ::shared_attributes ( $ field_key , $ fields , $ post , $ params );
161153 ?>
162154 <dt-location <?php echo wp_kses_post ( $ shared_attributes ) ?>
163- value="<?php echo esc_html ( $ post [$ field_key ] ?? '' ) ?> "
155+ value="<?php echo esc_html ( $ post [$ field_key ] ?? '' ) ?> ">
164156 <?php dt_render_icon_slot ( $ fields [$ field_key ] ) ?>
165- >
166157 </dt-location>
167158 <?php
168159 }
0 commit comments