PluginProbe
WP-Print / 2.40
WP-Print v2.40
3.0.0 trunk 1.00 2.00 2.01 2.02 2.03 2.04 2.05 2.06 2.10 2.11 2.20 2.30 2.31 2.40 2.50 2.52 2.53 2.54 2.55 2.56 2.57 2.57.1 2.57.2 All 29 releases
wp-print / print-comments.php

print-comments.php in WP-Print 2.40, at print-comments.php

40 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 +----------------------------------------------------------------+
4 | |
5 | WordPress 2.6 Plugin: WP-Print 2.40 |
6 | Copyright (c) 2008 Lester "GaMerZ" Chan |
7 | |
8 | File Written By: |
9 | - Lester "GaMerZ" Chan |
10 | - http://lesterchan.net |
11 | |
12 | File Information: |
13 | - Printer Friendly Comments Template |
14 | - wp-content/plugins/wp-print/print-comments.php |
15 | |
16 +----------------------------------------------------------------+
17 */
18 ?>
19
20
21 <?php if($comments) : ?>
22 <?php $comment_count = 1; global $text_direction; ?>
23 <span style='float:<?php echo ('rtl' == $text_direction) ? 'left' : 'right'; ?>' id='comments_controls'><?php print_comments_number(); ?> (<a href="#" onclick="javascript:document.getElementById('comments_box').style.display = 'block'; return false;"><?php _e('Open', 'wp-print'); ?></a> | <a href="#" onclick="javascript:document.getElementById('comments_box').style.display = 'none'; return false;"><?php _e('Close', 'wp-print'); ?></a>)</span>
24 <div id="comments_box">
25 <p id="CommentTitle"><?php print_comments_number(); ?> <?php _e('To', 'wp-print'); ?> "<?php the_title(); ?>"</p>
26 <?php foreach ($comments as $comment) : ?>
27 <p class="CommentDate">
28 <strong>#<?php echo number_format_i18n($comment_count); ?> <?php comment_type(__('Comment', 'wp-print'), __('Trackback', 'wp-print'), __('Pingback', 'wp-print')); ?></strong> <?php _e('By', 'wp-print'); ?> <u><?php comment_author(); ?></u> <?php _e('On', 'wp-print'); ?> <?php comment_date(sprintf(__('%s @ %s', 'wp-print'), get_option('date_format'), get_option('time_format'))); ?>
29 </p>
30 <div class="CommentContent">
31 <?php if ($comment->comment_approved == '0') : ?>
32 <p><em><?php _e('Your comment is awaiting moderation.', 'wp-print'); ?></em></p>
33 <?php endif; ?>
34 <?php print_comments_content(); ?>
35 </div>
36 <?php $comment_count++; ?>
37 <?php endforeach; ?>
38 <hr class="Divider" style="text-align: center;" />
39 </div>
40 <?php endif; ?>