'); } if(isset($_GET["poster"])) { $poster = $_GET["poster"]; print str_replace("{imgPoster}", $poster, ''); } ?>
'; /* TWITTER */ $twitter = '
'; /* GOOGLE PLUS */ $google = '
'; /* PINTEREST */ $pinterest = '
'; /* ************************ */ /* END SOCIAL BUTTON MARKUP */ /* ************************ */ //////////////////////////////////// // BEGIN DEV CODE, EDIT WITH CAUTION //////////////////////////////////// $social = ""; //if($useFacebook && isset($facebook)) $social .= $facebook; //if($useGoogle && isset($google)) $social .= $google; //if($usePinterest && isset($pinterest)) $social .= $pinterest; //if($useTwitter && isset($twitter)) $social .= $twitter; if($social != "") { if(isset($_GET["url"])) { $urls = $_GET["url"]; $social = str_replace("{socialToShare}", $urls, $social); $social = str_replace("{urlToShare}", urlencode($urls), $social); $splits = explode("#/", $urls); if(count($splits) > 1) $urls = $splits[0] . "?url=" . $splits[1]; $social = str_replace("{googleToShare}", $urls, $social); } if(isset($_GET["poster"])) { $social = str_replace("{imgPoster}", $_GET["poster"], $social); } if(isset($_GET["title"])) { $social = str_replace("{contentTitle}", strip_tags(urldecode($_GET["title"])), $social); } print $social; } if(!$useTwitter) $useTwitter = "0"; if(!$useGoogle) $useGoogle = "0"; if(!$usePinterest) $usePinterest = "0"; if(!$useFacebook) $useFacebook = "0"; //print ''; ?>