PluginProbe
WP-Print / 2.10
WP-Print v2.10
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 / wp-print.php

wp-print.php in WP-Print 2.10, at print/wp-print.php

113 lines 3.6 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.1 Plugin: WP-Print 2.10 |
6 | Copyright (c) 2007 Lester "GaMerZ" Chan |
7 | |
8 | File Written By: |
9 | - Lester "GaMerZ" Chan |
10 | - http://www.lesterchan.net |
11 | |
12 | File Information: |
13 | - Printer Friendly Page |
14 | - wp-print.php |
15 | |
16 +----------------------------------------------------------------+
17 */
18
19
20 ### Variables
21 $links_text = '';
22
23 ### Actions
24 add_action('init', 'print_content');
25
26 ### Filters
27 add_filter('wp_title', 'print_pagetitle');
28 add_filter('comments_template', 'print_template_comments');
29 ?>
30 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
31 <html xmlns="http://www.w3.org/1999/xhtml">
32 <head>
33 <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
34 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
35 <meta name="Robots" content="noindex, nofollow" />
36 <style type="text/css" media="screen, print">
37 Body {
38 font-family: Verdana, Arial, Tahoma;
39 font-size: 12px;
40 color: #000000;
41 }
42 #Outline {
43 text-align: left;
44 width: 90%;
45 margin-left: auto;
46 margin-right: auto;
47 padding: 10px;
48 border: 1px solid #000000;
49 }
50 #BlogTitle {
51 font-weight: bold;
52 font-size: 16px;
53 margin-bottom: 5px;
54 }
55 #BlogDate {
56 margin-top: 5px;
57 margin-bottom: 10px;
58 }
59 #BlogContent {
60 padding: 10px;
61 margin-top: 10px;
62 }
63 HR.Divider {
64 width: 80%;
65 height: 1px;
66 color: #000000;
67 }
68 #CommentTitle {
69 font-weight: bold;
70 font-size: 16px;
71 padding-bottom: 10px;
72 }
73 .CommentDate {
74 margin-top: 5px;
75 margin-bottom: 10px;
76 }
77 .CommentContent {
78 padding: 2px 10px 10px 10px;
79 }
80 @media print {
81 #print-link {
82 display: none;
83 }
84 }
85 </style>
86 </head>
87 <body>
88 <p style="text-align: center;"><strong>- <?php bloginfo('name'); ?> - <?php bloginfo('url')?> -</strong></p>
89 <center>
90 <div id="Outline">
91 <?php if (have_posts()): ?>
92 <?php while (have_posts()): the_post(); ?>
93 <p id="BlogTitle"><?php the_title(); ?></p>
94 <p id="BlogDate"><?php _e('Posted By', 'wp-print'); ?> <u><?php the_author(); ?></u> <?php _e('On', 'wp-print'); ?> <?php the_time(get_option("date_format").' @ '.get_option("time_format")); ?> <?php _e('In', 'wp-print'); ?> <?php print_categories('<u>', '</u>'); ?> | <u><?php print_comments_number(); ?></u></p>
95 <div id="BlogContent"><?php print_content(); ?></div>
96 <?php endwhile; ?>
97 <hr class="Divider" style="text-align: center;" />
98 <?php if(print_can('comments')): ?>
99 <?php comments_template(); ?>
100 <?php endif; ?>
101 <p style="text-align: left;"><?php _e('Article printed from', 'wp-print'); ?> <?php bloginfo('name'); ?>: <strong><?php bloginfo('url'); ?></strong></p>
102 <p style="text-align: left;"><?php _e('URL to article', 'wp-print'); ?>: <strong><?php the_permalink(); ?></strong></p>
103 <?php if(print_can('links')): ?>
104 <p style="text-align: left;"><?php print_links(); ?></p>
105 <?php endif; ?>
106 <p style="text-align: right;" id="print-link"><?php _e('Click', 'wp-print'); ?> <a href="#Print" onclick="window.print(); return false;" title="<?php _e('Click here to print.', 'wp-print'); ?>"><?php _e('here', 'wp-print'); ?></a> <?php _e('to print.', 'wp-print'); ?></p>
107 <?php else: ?>
108 <p style="text-align: left;"><?php _e('No posts matched your criteria.', 'wp-print'); ?></p>
109 <?php endif; ?>
110 </div>
111 </center>
112 </body>
113 </html>