diff --git a/functions.php b/functions.php index 3b01a4e..e8c2126 100644 --- a/functions.php +++ b/functions.php @@ -142,57 +142,6 @@ function kspace_cat_breadcrumb_with_rss($categoryName, $icon, $categoryType, $rs ID ), 'full' ); - - // Construct sharing URL without using any script - $twitterURL = 'https://twitter.com/intent/tweet?text='.$mypost_Title.'&url='.$mypost_URL.'&via=mypost_'; - $facebookURL = 'https://www.facebook.com/sharer/sharer.php?u='.$mypost_URL; - $bufferURL = 'https://bufferapp.com/add?url='.$mypost_URL.'&text='.$mypost_Title; - $whatsappURL = 'whatsapp://send?text='.$mypost_Title . ' ' . $mypost_URL; - $linkedInURL = 'https://www.linkedin.com/shareArticle?mini=true&url='.$mypost_URL.'&title='.$mypost_Title; - $diasporaURL = 'http://sharetodiaspora.github.io/?title=' . $mypost_Title . '&url=' . $mypost_URL; - - // Based on popular demand added Pinterest too - $pinterestURL = 'https://pinterest.com/pin/create/button/?url='.$mypost_URL.'&media='.$mypost_Thumbnail[0].'&description='.$mypost_Title; - - // Add sharing button at the end of page/page content - $content .= ''; - $content .= '
'; - $content .= ' '; - $content .= ' '; - $content .= ''; - $content .= '
'; - - return $content; - }else{ - // if not a post/page then don't include sharing button - return $content; - } -}; -add_filter( 'the_content', 'mypost_social_sharing_buttons'); - /* 3. Plus d'info sur les tags * * Permet d'afficher un lien vers plus d'informations.