@@ -155,13 +155,14 @@ class="redux-social-profiles-container ' . esc_attr( $this->field['class'] ) . '
155155
156156 $ icon = ( $ social_provider_option && array_key_exists ( 'icon ' , $ social_provider_option ) && $ social_provider_option ['icon ' ] ) ? $ social_provider_option ['icon ' ] : $ social_provider_default ['icon ' ];
157157 $ name = ( $ social_provider_option && array_key_exists ( 'name ' , $ social_provider_option ) && $ social_provider_option ['name ' ] ) ? $ social_provider_option ['name ' ] : $ social_provider_default ['name ' ];
158+ $ class = ( $ social_provider_option && array_key_exists ( 'class ' , $ social_provider_option ) && $ social_provider_option ['class ' ] ) ? $ social_provider_option ['class ' ] : $ social_provider_default ['class ' ];
158159 $ order = ( $ social_provider_option && array_key_exists ( 'order ' , $ social_provider_option ) ) ? $ social_provider_option ['order ' ] : $ key ;
159160 $ order = intval ( $ order );
160161 $ enabled = ( $ social_provider_option && array_key_exists ( 'enabled ' , $ social_provider_option ) && $ social_provider_option ['enabled ' ] ) ? $ social_provider_option ['enabled ' ] : $ social_provider_default ['enabled ' ];
161162 $ display = ( $ enabled ) ? 'enabled ' : '' ;
162163
163164 echo '<li class="redux-social-profiles-item-enable ' . esc_attr ( $ display ) . '" id="redux-social-profiles-item-enable- ' . esc_attr ( $ key ) . '" data-key=" ' . esc_attr ( $ key ) . '" data-order=" ' . esc_attr ( $ order ) . '"> ' ;
164- Redux_Social_Profiles_Functions::render_icon ( $ icon , '' , '' , $ name );
165+ Redux_Social_Profiles_Functions::render_icon ( $ class , $ icon , '' , '' , $ name );
165166 echo '</li> ' ;
166167 }
167168
@@ -177,6 +178,7 @@ class="redux-social-profiles-container ' . esc_attr( $this->field['class'] ) . '
177178 $ social_provider_option = ( $ settings && is_array ( $ settings ) && array_key_exists ( $ key , $ settings ) ) ? $ settings [ $ key ] : null ;
178179 $ icon = ( $ social_provider_option && array_key_exists ( 'icon ' , $ social_provider_option ) && $ social_provider_option ['icon ' ] ) ? $ social_provider_option ['icon ' ] : $ social_provider_default ['icon ' ];
179180 $ id = ( $ social_provider_option && array_key_exists ( 'id ' , $ social_provider_option ) && $ social_provider_option ['id ' ] ) ? $ social_provider_option ['id ' ] : $ social_provider_default ['id ' ];
181+ $ class = ( $ social_provider_option && array_key_exists ( 'class ' , $ social_provider_option ) && $ social_provider_option ['class ' ] ) ? $ social_provider_option ['class ' ] : $ social_provider_default ['class ' ];
180182 $ enabled = ( $ social_provider_option && array_key_exists ( 'enabled ' , $ social_provider_option ) && $ social_provider_option ['enabled ' ] ) ? $ social_provider_option ['enabled ' ] : $ social_provider_default ['enabled ' ];
181183 $ name = ( $ social_provider_option && array_key_exists ( 'name ' , $ social_provider_option ) && $ social_provider_option ['name ' ] ) ? $ social_provider_option ['name ' ] : $ social_provider_default ['name ' ];
182184
@@ -196,6 +198,7 @@ class="redux-social-profiles-container ' . esc_attr( $this->field['class'] ) . '
196198
197199 $ profile_data = array (
198200 'id ' => $ id ,
201+ 'class ' => $ class ,
199202 'icon ' => $ icon ,
200203 'enabled ' => $ enabled ,
201204 'url ' => $ url ,
@@ -216,7 +219,7 @@ class="redux-social-profiles-hidden-data-' . esc_attr( $key ) . '"
216219 value=" ' . $ profile_data . '" /> ' ; // phpcs:ignore WordPress.Security.EscapeOutput
217220
218221 echo '<div class="redux-icon-preview"> ' ;
219- Redux_Social_Profiles_Functions::render_icon ( $ icon , $ color , $ background , $ name );
222+ Redux_Social_Profiles_Functions::render_icon ( $ class , $ icon , $ color , $ background , $ name );
220223 echo ' </div> ' ;
221224
222225 echo '<div class="redux-social-profiles-item-name"> ' ;
0 commit comments