Created
September 29, 2012 17:33
-
-
Save Pop-Code/3804672 to your computer and use it in GitHub Desktop.
Facebook AWD comments template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do not delete these lines | |
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) | |
die (esc_html__('Please do not load this page directly. Thanks!','Polished')); | |
if ( post_password_required() ) { ?> | |
<p class="nocomments"><?php esc_html_e('This post is password protected. Enter the password to view comments.','Polished') ?></p> | |
<?php | |
return; | |
} | |
?> | |
<!-- You can start editing here. --> | |
<?php if ('open' == $post->comment_status) : ?> | |
<div id="comment-section" class="clearfix"> | |
<?php echo do_shortcode('[AWD_comments url="'.get_permalink($post->ID).'"]'); ?> | |
</div> <!-- end comment-section --> | |
<?php endif: ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment