"", ); extract(shortcode_atts($args, $atts)); if(isset($qode_options_proya['twitter_via']) && !empty($qode_options_proya['twitter_via'])) { $twitter_via = " via " . $qode_options_proya['twitter_via'] . " "; } else { $twitter_via = ""; } if(isset($_SERVER["https"])) { $count_char = 23; } else{ $count_char = 22; } $image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); $html = ""; if(isset($qode_options_proya['enable_social_share']) && $qode_options_proya['enable_social_share'] == "yes") { $post_type = get_post_type(); if(isset($qode_options_proya["post_types_names_$post_type"])) { if($qode_options_proya["post_types_names_$post_type"] == $post_type) { if ($post_type == "portfolio_page") { $html .= '
'; } elseif ($post_type == "post") { $html .= '
'; } elseif ($post_type == "page") { $html .= '
'; } $html .= '"; if($post_type == "portfolio_page" || $post_type == "post" || $post_type == "page") { $html .= '
'; } } } } return $html; } add_shortcode('social_share', 'social_share'); }