Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Facebook Like Button para usar nos arquivos: page.php e single.php
- function facebook_like(){
- global $post;
- $url = urlencode(get_permalink($post->ID));
- $button = '<iframe src="http://www.facebook.com/plugins/like.php?href='.$url.'&layout=standard&show_faces=true&width=330&action=like&font=tahoma&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:330px; height:80px;" allowTransparency="true"></iframe>';
- echo $button;
- }
- /*
- Coloque <?php facebook_like() ?> onde quiser que o botão apareça
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement