Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 38 lines (36 sloc) 1.652 kb
642c326 Intial Code
jeremyclark13 authored
1 <?php // Do not delete these lines
2 if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
3 die (__('Please do not load this page directly. Thanks!','techozoic'));
4 if (function_exists('post_password_required')) {
5 if ( post_password_required() ) {
6 echo '<p class="nocomments">'.__('This post is password protected. Enter the password to view comments.','techozoic').'</p>';
7 return;
8 }
9 } else {
10 if (!empty($post->post_password)) { // if there's a password
11 if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
12 ?>
13 <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.','techozoic')?></p>
14 <?php return;
15 }
16 }
816e03c Fixed error when comment added to page comments would be closed
jeremyclark13 authored
17 }
642c326 Intial Code
jeremyclark13 authored
18 /* This variable is for alternating comment background */
19 $oddcomment = 'class="alt" ';
20 if ( have_comments() ) { ?>
11c6607 Code clean up removed deprecated functions
jeremyclark13 authored
21 <h3 id="comments"><?php comments_number(__('No Comments' ,'techozoic'), __('One Comment' ,'techozoic'), _n('% Comment' , '% Comments',get_comments_number(),'techozoic'));?></h3>
642c326 Intial Code
jeremyclark13 authored
22 <ol class="commentlist">
23 <?php wp_list_comments('type=comment&callback=techozoic_comment'); ?>
24 </ol>
25 <ol class="trackback">
26 <?php wp_list_comments('type=pings&callback=techozoic_ping'); ?>
27 </ol>
28 <div class="navigation">
29 <div class="alignleft"><?php previous_comments_link() ?></div>
30 <div class="alignright"><?php next_comments_link() ?></div>
31 </div>
32 <?php } // this is displayed if there are no comments so far
816e03c Fixed error when comment added to page comments would be closed
jeremyclark13 authored
33
2514cfa 1.8.8.4 fixes
jeremyclark13 authored
34 if ('open' == $post->comment_status) {
2ba7c8d Fixed layout error with ie 7. Fixed error with two column setting alway...
jeremyclark13 authored
35 comment_form(array('comment_notes_after' => ' '));
642c326 Intial Code
jeremyclark13 authored
36 } //End if comment open
37 ?>
Something went wrong with that request. Please try again.