Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Arquivo comments.php, baseado no tema Toolbox 0.1
- * para funcionar o popup inclua também comments_popup_script(400,500); antes da função wp_head() no header.php
- * para funcionar os comments do Facebook, inclua também a Javascript SDK
- */
- ?>
- <div id="comments">
- <?php if ( post_password_required() ) : ?>
- <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'toolbox' ); ?></p>
- </div><!-- #comments -->
- <?php return; endif; ?>
- <div class="fb-comments" data-href="<?php echo get_permalink(); ?>" data-num-posts="5" data-width="505"></div>
- <div class="commentlist">
- <?php
- wp_list_comments(
- array (
- 'type' => 'comment',
- 'style' => 'div'
- )
- );
- ?></div>
- <?php if (comments_open()) : ?>
- <?php comments_popup_link( 'Não usa Facebook? Comente aqui!', '1 comentário - Não usa Facebook? Comente aqui!', '% comentários - Não usa Facebook? Comente aqui!', 'comments-link', 'Comments are off for this post'); ?>
- <?php endif; ?>
- </div><!-- #comments -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement