2015-01-23, 01:50:52
(2015-01-22, 16:24:20)TrueWarrior Wrote: Hello,
i love your plugin
Is there any chance to integrate to posts facebook sharing ?
So i could add button to every post and user can share it on facebook.
Go to GetSimple Admin -> Themes -> Components, create a component named nm-facebook-share (for example) with this code:
Code:
<p>
<a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode(nm_post_url(false)); ?>">Share this post on Facebook</a>
</p>
Go to News Manager Settings, enable Custom settings and enter this below:
Code:
single componentBottomPost nm-facebook-share
Code:
single componentAfterPost nm-facebook-share
Of course you can (or will want to) customize the component to suit your needs (html code, link text, image button, or whatever).