'.essb_kilomega($total_shares).''; } } $button_text = stripslashes($button_text); $button_window_title = essb_option_value('sharebutton_window_title'); $button_user_message = essb_option_value('sharebutton_user_message'); $salt = mt_rand(); // Generating the share button that will appear on screen if ($button_position != 'manual') { if ($button_bg != '' || $button_color != '') { $output .= ''; } if ($button_position == 'inline' || $button_position == 'inline-full') { $output .= '
'; } $output .= '
'.$button_text.''.$total_counter_code.'
'; if ($button_position == 'inline' || $button_position == 'inline-full') { $output .= '
'; } } $output .= '
'; $output .= ''; $output .= '
'; $button_window_title = stripslashes($button_window_title); $button_window_title = do_shortcode($button_window_title); if ($button_window_title != '') { $button_window_title = preg_replace(array('#%%title%%#', '#%%siteurl%%#', '#%%permalink%%#'), array(get_the_title(), get_site_url(), get_permalink()), $button_window_title); $button_window_title = essb_post_details_to_content($button_window_title); $output .= '

'.$button_window_title.'

'; } $button_user_message = stripslashes($button_user_message); $button_user_message = do_shortcode($button_user_message); if ($button_user_message != '') { $button_user_message = preg_replace(array('#%%title%%#', '#%%siteurl%%#', '#%%permalink%%#'), array(get_the_title(), get_site_url(), get_permalink()), $button_user_message); $button_user_message = essb_post_details_to_content($button_user_message); $output .= '

'.$button_user_message.'

'; } $output .= $share_buttons; $output .= '
'; $output .= '
'; return $output; } }