'', 'class' => '', 'visibility' => '', 'size' => '', 'align' => '', 'scale' => '', 'style' => '', ), $atts)); // Get Custom Share icons if set if(get_theme_mod('custom_share_icons')){ return do_shortcode(get_theme_mod('custom_share_icons')); } $wrapper_class = array('social-icons','share-icons', 'share-row', 'relative'); if( $class ) $wrapper_class[] = $class; if( $visibility ) $wrapper_class[] = $visibility; if( $align ) { $wrapper_class[] = 'full-width'; $wrapper_class[] = 'text-'.$align; } if ( $style ) $wrapper_class[] = 'icon-style-'.$style; $link = get_permalink(); if ( is_woocommerce_activated() ) { if ( is_shop() ) { $link = get_permalink( wc_get_page_id( 'shop' ) ); } if ( is_product_category() || is_category() ) { $link = get_category_link( get_queried_object()->term_id ); } } if ( is_home() && ! is_front_page() ) { $link = get_permalink( get_option( 'page_for_posts' ) ); } $featured_image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' ); $share_img = $featured_image ? $featured_image['0'] : ''; $post_title = rawurlencode( get_the_title() ); $whatsapp_text = $post_title . ' - ' . $link; if($title) $title = ''.$title.''; // Style default // Get Custom Theme Style if(!$style) $style = get_theme_mod('social_icons_style','outline'); $classes = get_flatsome_icon_class($style); $classes = $classes. ' tooltip'; $share = get_theme_mod('social_icons', array('facebook','twitter','email','linkedin','pinterest','whatsapp')); // Scale if($scale) $scale = 'style="font-size:'.$scale.'%"'; // Fix old depricated if(!isset($share[0])){ $fix_share = array(); foreach ($share as $key => $value) { if($value == '1') $fix_share[] = $key; } $share = $fix_share; } ob_start(); ?>
>
'', 'class' => '', 'visibility' => '', 'style' => 'outline', 'align' => '', 'scale' => '', 'twitter' => '', 'facebook' => '', 'pinterest' => '', 'email' => '', 'phone' => '', 'instagram' => '', 'tiktok' => '', 'rss' => '', 'linkedin' => '', 'youtube' => '', 'flickr' => '', 'vkontakte' => '', 'px500' => '', 'telegram' => '', 'twitch' => '', 'discord' => '', 'snapchat' => '', // Depricated 'size' => '', ), $atts)); ob_start(); $wrapper_class = array('social-icons','follow-icons'); if( $class ) $wrapper_class[] = $class; if( $visibility ) $wrapper_class[] = $visibility; if( $align ) { $wrapper_class[] = 'full-width'; $wrapper_class[] = 'text-'.$align; } // Use global follow links if non is set individually. $has_custom_link = $twitter || $facebook || $instagram || $tiktok || $snapchat || $youtube || $pinterest || $linkedin || $px500 || $vkontakte || $telegram || $flickr || $email || $phone || $rss || $twitch || $discord; if ( ! $has_custom_link ) { $twitter = get_theme_mod( 'follow_twitter' ); $facebook = get_theme_mod( 'follow_facebook' ); $instagram = get_theme_mod( 'follow_instagram' ); $tiktok = get_theme_mod( 'follow_tiktok' ); $snapchat = get_theme_mod( 'follow_snapchat' ); $youtube = get_theme_mod( 'follow_youtube' ); $pinterest = get_theme_mod( 'follow_pinterest' ); $linkedin = get_theme_mod( 'follow_linkedin' ); $px500 = get_theme_mod( 'follow_500px' ); $vkontakte = get_theme_mod( 'follow_vk' ); $telegram = get_theme_mod( 'follow_telegram' ); $flickr = get_theme_mod( 'follow_flickr' ); $email = get_theme_mod( 'follow_email' ); $phone = get_theme_mod( 'follow_phone' ); $rss = get_theme_mod( 'follow_rss' ); $twitch = get_theme_mod( 'follow_twitch' ); $discord = get_theme_mod( 'follow_discord' ); } if($size == 'small') $style = 'small'; $style = get_flatsome_icon_class($style); // Scale if($scale) $scale = 'style="font-size:'.$scale.'%"'; ?>
>