$base_color, '--background-hover-color' => $hover_color ] ); } if (isset($atts['initialColor'])) { $var = $atts['initialColor']; $colors['--theme-icon-color'] = "var(--wp--preset--color--$var)"; } if (isset($atts['hoverColor'])) { $var = $atts['hoverColor']; $colors['--theme-icon-hover-color'] = "var(--wp--preset--color--$var)"; } foreach ($colors as $key => $value) { if (empty($value)) { continue; } $colors_css .= $key . ':' . $value . ';'; } } $style = ''; if (! empty($icons_size)) { $style .= '--theme-icon-size:' . $icons_size . 'px;'; } if (! empty($items_spacing)) { $style .= '--items-spacing:' . $items_spacing . 'px;'; } echo '
'; /** * blocksy_share_icons() function is already properly escaped. * Escaping it again here would cause SVG icons to not be outputed */ $attr = []; $data_icons_type = $type; if ($fill) { if ($type !== 'simple') { $data_icons_type .= ':' . $fill; } } echo blocksy_get_social_share_box([ 'type' => 'share', 'class' => '', 'html_atts' => array_merge( [ 'data-type' => 'type-3', ], $attr ), 'strategy' => [ 'strategy' => array_merge( $atts, [ 'share_box_visibility' => [ 'desktop' => true, 'tablet' => true, 'mobile' => true, ] ] ), ], 'links_wrapper_attr' => [ 'data-icons-type' => $data_icons_type, 'data-color' => $color ], ]); echo '
'; ?>