>
template_helper->is_valid_tag( $title_tag );
echo wp_sprintf( '<%1$s class="betterdocs-social-share-title-tag">%2$s%1$s>', esc_attr( $title_tag ), esc_html( $title ) );
}
?>
',
esc_html( betterdocs()->assets->icon( 'social/share-icon.svg' ) )
);
if ( ! empty( $links ) ) {
foreach ( $links as $key => $social ) {
echo wp_sprintf(
'
',
esc_attr( $social['alt'] ),
esc_url( $social['link'] ),
esc_html( $social['icon-2'] ),
esc_attr( $social['alt'] )
);
}
}
?>