Skip to content

Instantly share code, notes, and snippets.

@Pop-Code
Created September 29, 2012 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pop-Code/3804672 to your computer and use it in GitHub Desktop.
Save Pop-Code/3804672 to your computer and use it in GitHub Desktop.
Facebook AWD comments template
<?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