PluginProbe
WP-Print / 2.05
WP-Print v2.05
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.05, at print/wp-print.php

107 lines 3.0 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.0 Plugin: WP-Print 2.05 |
6 | Copyright (c) 2005 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 <style type="text/css" media="screen, print">
36 Body {
37 font-family: Verdana, Arial, Tahoma;
38 font-size: 12px;
39 color: #000000;
40 }
41 #Outline {
42 text-align: left;
43 width: 90%;
44 margin-left: auto;
45 margin-right: auto;
46 padding: 10px;
47 border: 1px solid #000000;
48 }
49 #BlogTitle {
50 font-weight: bold;
51 font-size: 16px;
52 margin-bottom: 5px;
53 }
54 #BlogDate {
55 margin-top: 5px;
56 margin-bottom: 10px;
57 }
58 #BlogContent {
59 padding: 10px;
60 margin-top: 10px;
61 }
62 HR.Divider {
63 width: 80%;
64 height: 1px;
65 color: #000000;
66 }
67 #CommentTitle {
68 font-weight: bold;
69 font-size: 16px;
70 padding-bottom: 10px;
71 }
72 .CommentDate {
73 margin-top: 5px;
74 margin-bottom: 10px;
75 }
76 .CommentContent {
77 padding: 2px 10px 10px 10px;
78 }
79 </style>
80 </head>
81 <body>
82 <p align="center"><b>- <?php bloginfo('name'); ?> - <?php bloginfo('url')?> -</b></p>
83 <center>
84 <div id="Outline">
85 <?php if (have_posts()): ?>
86 <?php while (have_posts()): the_post(); ?>
87 <p id="BlogTitle"><?php the_title(); ?></p>
88 <p id="BlogDate">Posted By <u><?php the_author(); ?></u> On <?php the_time('jS F Y @ H:i'); ?> In <?php print_categories('<u>', '</u>'); ?> | <u><?php print_comments_number(); ?></u></p>
89 <div id="BlogContent"><?php print_content(); ?></div>
90 <?php endwhile; ?>
91 <hr class="Divider" align="center" />
92 <?php if(print_can('comments')): ?>
93 <?php comments_template(); ?>
94 <?php endif; ?>
95 <p align="left">Article printed from <?php bloginfo('name'); ?>: <b><?php bloginfo('url'); ?></b></p>
96 <p align="left">URL to article: <b><?php the_permalink(); ?></b></p>
97 <?php if(print_can('links')): ?>
98 <p align="left"><?php print_links(); ?></p>
99 <?php endif; ?>
100 <p align="right">Click <a href="#Print" onclick="window.print(); return false;" title="Click here to print.">here</a> to print.</p>
101 <?php else: ?>
102 <p align="center">No posts matched your criteria.</p>
103 <?php endif; ?>
104 </div>
105 </center>
106 </body>
107 </html>