@@ -155,13 +155,14 @@ class="redux-social-profiles-container ' . esc_attr( $this->field['class'] ) . '
155
155
156
156
$ icon = ( $ social_provider_option && array_key_exists ( 'icon ' , $ social_provider_option ) && $ social_provider_option ['icon ' ] ) ? $ social_provider_option ['icon ' ] : $ social_provider_default ['icon ' ];
157
157
$ 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 ' ];
158
159
$ order = ( $ social_provider_option && array_key_exists ( 'order ' , $ social_provider_option ) ) ? $ social_provider_option ['order ' ] : $ key ;
159
160
$ order = intval ( $ order );
160
161
$ enabled = ( $ social_provider_option && array_key_exists ( 'enabled ' , $ social_provider_option ) && $ social_provider_option ['enabled ' ] ) ? $ social_provider_option ['enabled ' ] : $ social_provider_default ['enabled ' ];
161
162
$ display = ( $ enabled ) ? 'enabled ' : '' ;
162
163
163
164
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 );
165
166
echo '</li> ' ;
166
167
}
167
168
@@ -177,6 +178,7 @@ class="redux-social-profiles-container ' . esc_attr( $this->field['class'] ) . '
177
178
$ social_provider_option = ( $ settings && is_array ( $ settings ) && array_key_exists ( $ key , $ settings ) ) ? $ settings [ $ key ] : null ;
178
179
$ icon = ( $ social_provider_option && array_key_exists ( 'icon ' , $ social_provider_option ) && $ social_provider_option ['icon ' ] ) ? $ social_provider_option ['icon ' ] : $ social_provider_default ['icon ' ];
179
180
$ 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 ' ];
180
182
$ enabled = ( $ social_provider_option && array_key_exists ( 'enabled ' , $ social_provider_option ) && $ social_provider_option ['enabled ' ] ) ? $ social_provider_option ['enabled ' ] : $ social_provider_default ['enabled ' ];
181
183
$ name = ( $ social_provider_option && array_key_exists ( 'name ' , $ social_provider_option ) && $ social_provider_option ['name ' ] ) ? $ social_provider_option ['name ' ] : $ social_provider_default ['name ' ];
182
184
@@ -196,6 +198,7 @@ class="redux-social-profiles-container ' . esc_attr( $this->field['class'] ) . '
196
198
197
199
$ profile_data = array (
198
200
'id ' => $ id ,
201
+ 'class ' => $ class ,
199
202
'icon ' => $ icon ,
200
203
'enabled ' => $ enabled ,
201
204
'url ' => $ url ,
@@ -216,7 +219,7 @@ class="redux-social-profiles-hidden-data-' . esc_attr( $key ) . '"
216
219
value=" ' . $ profile_data . '" /> ' ; // phpcs:ignore WordPress.Security.EscapeOutput
217
220
218
221
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 );
220
223
echo ' </div> ' ;
221
224
222
225
echo '<div class="redux-social-profiles-item-name"> ' ;
0 commit comments