';
foreach ($this->socials as $key => $social) {
if (!empty($instance[$social['name']])) {
echo '
';
}
}
echo '
';
echo htmlspecialchars_decode(esc_html($after_widget));
}
function update($new_instance, $old_instance)
{
$instance = $old_instance;
$instance = $new_instance;
/* Strip tags (if needed) and update the widget settings. */
$instance['title'] = strip_tags($new_instance['title']);
return $instance;
}
function form($instance)
{
?>