@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb009 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
wordpress
/
wp-content
/
themes
/
goal-10
/
Path :
Upload File :
New :
File
Dir
//homepage/wordpress/wp-content/themes/goal-10/comments.php
<?php // Do not delete these lines if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!'); if (!empty($post->post_password)) { // if there's a password if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie ?> <p class="center"> <?php _e("This post is password protected. Enter the password to view comments."); ?> <p> <?php return; } } /* Function for seperating comments from track- and pingbacks. */ function comment_type_detection($commenttxt = 'Comment', $trackbacktxt = 'Trackback', $pingbacktxt = 'Pingback') { global $comment; if (preg_match('|trackback|', $comment->comment_type)) return $trackbacktxt; elseif (preg_match('|pingback|', $comment->comment_type)) return $pingbacktxt; else return $commenttxt; } $templatedir = get_bloginfo('template_directory'); ?> <!-- You can start editing here. --> <?php if (($comments) or ('open' == $post-> comment_status)) { ?> <hr /> <h4 class="center"><?php printf(__('%1$s %2$s to “%3$s”'), '<span id="comments">' . get_comments_number() . '</span>', ($post->comment_count == 1) ? __('Response'): __('Responses'), get_the_title() ) ?></h4> <span class="metarss"> <?php comments_rss_link('Feed for this Entry'); ?> </span> <span class="metatrackback"> <?php if ('open' == $post-> ping_status) { ?> <a href="<?php trackback_url() ?>" title="Copy this URI to trackback this entry."> <?php _e('Trackback Address'); ?> </a> <?php } ?> </span> <ol class="commentlist" id="commentlist"> <?php if ($comments) { ?> <?php $count_pings = 1; foreach ($comments as $comment) { if (comment_type_detection() == "Comment") { ?> <?php $i++; /* For different background colors */ ($i % 2 == 1) ? $bg_comment = 'class_comment1' : $bg_comment = 'class_comment2'; ?> <li id="comment-<?php comment_ID() ?>" class="<?php echo $bg_comment; ?>"> <a href="#comment-<?php comment_ID() ?>" class="counter" title="Permanent Link to this Comment"><?php echo $count_pings; $count_pings++; ?></a> <p class="comment-header"> <?php comment_author_link() ?> Says</p> <div class="comment-cotent"> <?php comment_text() ?> </div> <p class="comment-footer"> <?php if ( $user_ID ) { edit_comment_link('Edit Link'); } ?> <a href="#comment-<?php comment_ID() ?>" title="<?php _e('Permanent Link to this Comment'); ?>"> <?php comment_date('M jS, Y') ?> at <?php comment_time() ?> </a></p> <?php if ($comment->comment_approved == '0') : ?> <p><strong> <?php _e('Your comment is awaiting moderation.'); ?> </strong></p> <?php endif; ?> </li> <?php } } /* end for each comment */ ?> </ol> <?php $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND comment_approved = '1' AND comment_type!= '' ORDER BY comment_date"); ?> <?php if ($comments) { ?> <ol class="pinglist"> <?php $count_pings = 1; foreach ($comments as $comment) { if (comment_type_detection() != "Comment") { ?> <li class="item" id="comment-<?php comment_ID() ?>"> <a href="#comment-<?php comment_ID() ?>" title="Permanent Link to this Comment" class="counter"><?php echo $count_pings; $count_pings++; ?></a> <p class="comment-header"> <?php comment_author_link() ?> </p> <?php comment_type(); ?> on <a href="#comment-<?php comment_ID() ?>" title="Permalink to Comment"> <?php comment_date('M jS, Y') ?> at <?php comment_time() ?> </a> <?php edit_comment_link('Edit Link','<span>','</span>'); ?> </li> <?php } } /* end for each comment */ ?> </ol> <?php } ?> <?php } else { // this is displayed if there are no comments so far ?> <?php if ('open' == $post-> comment_status) { ?> <!-- If comments are open, but there are no comments. --> <li id="leavecomment"> <?php _e('No Comments'); ?> </li> <?php } else { // comments are closed ?> <!-- If comments are closed. --> <?php if (is_single) { // To hide comments entirely on Pages without comments ?> <li> <?php _e('Comments are currently closed.'); ?> </li> <?php } ?> <?php } ?> </ol> <?php } ?> <!-- Reply Form --> <?php if ('open' == $post-> comment_status) : ?> <div id="loading" style="display: none;"> <?php _e('Posting Your Comment'); ?> <br /> <?php _e('Please Wait'); ?> </div> <h4 class="center"> <?php _e('Leave a Reply'); ?> </h4> <?php if ( get_option('comment_registration') && !$user_ID ) : ?> <p><?php printf(__('You must <a href="%s">login</a> to post a comment.'), get_option('siteurl') . '/wp-login.php?redirect_to=' . get_permalink()) ?></p> > <?php else : ?> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <?php if ( $user_ID ) { ?> <div class="metalinks"><?php printf(__('Logged in as %s.'), '<a href="' . get_option('siteurl') . '/wp-admin/profile.php">' . $user_identity . '</a>') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account'); ?>"> <?php _e('Logout'); ?> »</a></div> <?php } elseif ($comment_author != "") { ?> <p><small><?php printf(__('Welcome back <strong>%s</strong>'), $comment_author) ?></p> <?php } ?> <?php if ( !$user_ID ) { ?> <p> <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> <label for="author"><small><strong> <?php _e('Name'); ?> </strong> <?php if ($req) __('(required)'); ?> </small></label> </p> <p> <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> <label for="email"><small><strong> <?php _e('Mail'); ?> </strong> ( <?php _e('will not be published'); ?> ) <?php if ($req) __('(required)'); ?> </small></label> </p> <p> <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> <label for="url"><small><strong> <?php _e('Website'); ?> </strong></small></label> </p> <?php } ?> <p> <textarea name="comment" id="comment" cols="50" rows="10" tabindex="4"></textarea> </p> <p> <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment'); ?>" /> </p> <p><small><strong>XHTML:</strong> <?php echo allowed_tags(); ?></small> <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> <br class="clear" /> </p> <?php do_action('comment_form', $post->ID); ?> </form> <?php endif; // If registration required and not logged in ?> <?php endif; // if you delete this the sky will fall on your head ?> <?php } ?>