<!-- facebook like button start -->
<iframe src="//www.facebook.com/plugins/like.php?href=<?php echo Mage::helper('core/url')->getCurrentUrl(); ?>&width&layout=button_count&action=like&show_faces=false&share=false&height=21&appId=<?php //echo Mage::getStoreConfig('facebookfree/settings/appid'); ?>" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:21px;" allowTransparency="true"></iframe>
<!-- facebook like button end -->
<!-- twitter button script start-->
<script type="text/javascript">
window.twttr=(function(d,s,id){var t,js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return}js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);return window.twttr||(t={_e:[],ready:function(f){t._e.push(f)}})}(document,"script","twitter-wjs"));
</script>
<!-- twitter button script end-->
<!-- twitter share button start -->
<a class="twitter-share-button" href="https://twitter.com/share" data-count="none">Tweet</a>
<!-- twitter share button end -->
<!-- google + start -->
<span class="googleplus">
<a href="https://plus.google.com/share?url=<?php echo $_product->getProductUrl(); ?>" target="_blank" >
<img src="<?php echo $this->getSkinUrl(); ?>images/gplus.jpg" alt="Google+" title="Google+"/>
</a>
</span>
<!-- google + end -->
<!-- pintrest start-->
<?php
$_pinlink['url'] = $_product->getProductUrl();
$_pinlink['media'] = $this->helper('catalog/image')->init($_product, 'image')->__toString() ;
$_pinlink['description'] = $_helper->productAttribute($_product, $_product->getName(), 'name') . " - " . strip_tags($_product->getDescription());
?>
<a href="http://pinterest.com/pin/create/button/?<?php echo http_build_query($_pinlink) ?>" class="pin-it-button" count-layout="horizontal"></a>
<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
<!-- pintrest end→
This blog is all about magento , php javescript ,mysql codes. In this i am trying to post the posts which i really feel to have these codes always with me and i am trying to publish most challenging codes which we need to use in daily development. I personally sometime needs to spent most of times to get the idea about these codes on net,thats why i thought to put all these codes on one place and i am trying to keep this work going on and in simple way which can help the communty
Wednesday, 12 November 2014
Social Plugin facebook like, twitter , pintrest, google+
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment