relsi

Wordpress - Inserindo Botões redes socias

Nov 22nd, 2011
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.90 KB | None | 0 0
  1. <?php if ( have_posts() ) : ?>
  2.  
  3.     <?php while ( have_posts() ) : the_post(); ?>
  4.  
  5.         <h1 class="botoes">
  6.             <?php the_title(); ?>
  7.  
  8.             //botão like do facebook
  9.  
  10.             <iframe src="http://www.facebook.com/plugins/like.php?href=<?php the_permalink() ?>&layout=button_count&show_faces=true&width=30&action=like&colorscheme=light&height=25&locale=pt_BR" scrolling="no" frameborder="0" style="border:none; width:70px; height:20px;" allowTransparency="true"></iframe>
  11.            //botão do twitter
  12.           <a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-lang="pt">Tweetar</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
  13.  
  14.            //botão do google +1
  15.           <g:plusone size="medium"></g:plusone>
  16.       </h1>  
  17.  
  18.        <?php the_content(); ?>
  19.  
  20.     <?php endwhile; ?>
  21.  
  22. <?php endif; ?>
  23.  
Advertisement
Add Comment
Please, Sign In to add comment