'no', 'label_text' => esc_html__( 'Share: ', 'woodmart' ), 'is_element' => false, 'layout' => '', 'type' => 'share', 'align' => 'center', 'tooltip' => 'no', 'style' => 'default', 'size' => 'default', 'form' => 'circle', 'color' => 'dark', 'css_animation' => 'none', 'el_class' => '', 'title_classes' => '', 'page_link' => false, 'elementor' => false, 'sticky' => false, 'css' => '', ), $atts )); if ( woodmart_get_opt( 'dark_version' ) ) { $color = 'light'; } $target = '_blank'; $title_classes = $title_classes ? ' ' . $title_classes : ''; $classes = 'wd-social-icons'; if ( function_exists( 'vc_shortcode_custom_css_class' ) ) { $classes .= ' ' . vc_shortcode_custom_css_class( $css ); } $classes .= woodmart_get_old_classes( ' woodmart-social-icons' ); $classes .= ! empty( $layout ) ? ' wd-layout-' . $layout : ''; $classes .= ' icons-design-' . $style; $classes .= ' icons-size-' . $size; $classes .= ' color-scheme-' . $color; $classes .= ' social-' . $type; $classes .= ' social-form-' . $form; $classes .= ( $el_class ) ? ' ' . $el_class : ''; $classes .= woodmart_get_css_animation( $css_animation ); $classes .= apply_filters( 'vc_shortcodes_css_class', '', '', $atts ); $align = $align ? $align : 'center'; $classes .= ' text-' . $align; $thumb_id = get_post_thumbnail_id(); $thumb_url = wp_get_attachment_image_src( $thumb_id, 'thumbnail-size', true ); $page_title = get_the_title(); if ( ! $page_link ) { $page_link = get_the_permalink(); } if ( woodmart_woocommerce_installed() && is_shop() ) { $page_link = get_permalink( get_option( 'woocommerce_shop_page_id' ) ); } if ( woodmart_woocommerce_installed() && ( is_product_category() || is_category() ) ) { $page_link = get_category_link( get_queried_object()->term_id ); } if ( is_home() && ! is_front_page() ) { $page_link = get_permalink( get_option( 'page_for_posts' ) ); } if ( ! $elementor ) { ob_start(); } woodmart_enqueue_inline_style( 'social-icons' ); ?>