<span class="Dropdown-wrapper" uib-dropdown> <span class="HeroVideo-button" uib-dropdown-toggle> <i class="icon-share"></i> Share </span> <div class="Dropdown Dropdown--light Dropdown--bottomLeft"> <ul class="Dropdown-menu"> <li class="Dropdown-item"> <a class="Dropdown-link" href="<?php echo share_facebook($video->url); ?> "> <i class="icon-facebook"></i> Share on Facebook </a> </li> <li class="Dropdown-item"> <a class="Dropdown-link" href="<?php echo share_twitter($video->url); ?> "> <i class="icon-twitter"></i> Share on Twitter </a> </li> </ul> </div> </span> </div> </div> </div> </div> </div>
<div class="share"> <p>Share the deal <a href="#"><img border="0" src="static/images/myspace-icon.jpg"></a> <a href="<?php echo share_mail($team); ?> "><img border="0" src="static/images/mail-icon.jpg"></a> <a href="<?php echo share_twitter($team); ?> "><img border="0" src="static/images/twitter-2-icon.jpg"></a> <a href="<?php echo share_facebook($team); ?> "><img border="0" src="static/images/facebook-icon.jpg"></a></p> </div>
function print_share($url, $caption) { return share_twitter($url, $caption) . share_facebook($url, $caption) . share_vkontakte($url, $caption) . share_gplus($url, $caption); }