/** * Renders the HTML for the social share buttons. * * @return string */ protected function renderSocialShareButtons() { static $content = ''; if (empty($content)) { $shareButtons = $this->integrationHelper->getShareButtons(); $content = "<div class='share-buttons'>\n"; foreach ($shareButtons as $network => $button) { $content .= $button; } $content .= "</div>\n"; //load the css into the header by calling the sharebtn_css view $this->templating->render('MauticPageBundle:SubscribedEvents\\PageToken:sharebtn_css.html.php'); } return $content; }