PluginProbe
WP-Print / 2.55
WP-Print v2.55
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-posts.php

print-posts.php in WP-Print 2.55, at print-posts.php

64 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * WordPress Plugin: WP-Print
4 * Copyright (c) 2012 Lester "GaMerZ" Chan
5 *
6 * File Written By:
7 * - Lester "GaMerZ" Chan
8 * - http://lesterchan.net
9 *
10 * File Information:
11 * - Printer Friendly Post/Page Template
12 * - wp-content/plugins/wp-print/print-posts.php
13 */
14
15 global $text_direction;
16 ?>
17 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
18 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
19 <head>
20 <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
21 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
22 <meta name="Robots" content="noindex, nofollow" />
23 <?php if(@file_exists(get_stylesheet_directory().'/print-css.css')): ?>
24 <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/print-css.css" type="text/css" media="screen, print" />
25 <?php else: ?>
26 <link rel="stylesheet" href="<?php echo plugins_url('wp-print/print-css.css'); ?>" type="text/css" media="screen, print" />
27 <?php endif; ?>
28 <?php if('rtl' == $text_direction): ?>
29 <?php if(@file_exists(get_stylesheet_directory().'/print-css-rtl.css')): ?>
30 <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/print-css-rtl.css" type="text/css" media="screen, print" />
31 <?php else: ?>
32 <link rel="stylesheet" href="<?php echo plugins_url('wp-print/print-css-rtl.css'); ?>" type="text/css" media="screen, print" />
33 <?php endif; ?>
34 <?php endif; ?>
35 <link rel="canonical" href="<?php the_permalink(); ?>" />
36 </head>
37 <body>
38 <p style="text-align: center;"><strong>- <?php bloginfo('name'); ?> - <span dir="ltr"><?php bloginfo('url')?></span> -</strong></p>
39 <div class="Center">
40 <div id="Outline">
41 <?php if (have_posts()): ?>
42 <?php while (have_posts()): the_post(); ?>
43 <p id="BlogTitle"><?php the_title(); ?></p>
44 <p id="BlogDate"><?php _e('Posted By', 'wp-print'); ?> <u><?php the_author(); ?></u> <?php _e('On', 'wp-print'); ?> <?php the_time(sprintf(__('%s @ %s', 'wp-print'), get_option('date_format'), get_option('time_format'))); ?> <?php _e('In', 'wp-print'); ?> <?php print_categories('<u>', '</u>'); ?> | <u><a href='#comments_controls'><?php print_comments_number(); ?></a></u></p>
45 <div id="BlogContent"><?php print_content(); ?></div>
46 <?php endwhile; ?>
47 <hr class="Divider" style="text-align: center;" />
48 <?php if(print_can('comments')): ?>
49 <?php comments_template(); ?>
50 <?php endif; ?>
51 <p><?php _e('Article printed from', 'wp-print'); ?> <?php bloginfo('name'); ?>: <strong dir="ltr"><?php bloginfo('url'); ?></strong></p>
52 <p><?php _e('URL to article', 'wp-print'); ?>: <strong dir="ltr"><?php the_permalink(); ?></strong></p>
53 <?php if(print_can('links')): ?>
54 <p><?php print_links(); ?></p>
55 <?php endif; ?>
56 <p style="text-align: <?php echo ('rtl' == $text_direction) ? 'left' : '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>
57 <?php else: ?>
58 <p><?php _e('No posts matched your criteria.', 'wp-print'); ?></p>
59 <?php endif; ?>
60 </div>
61 </div>
62 <p style="text-align: center;"><?php echo stripslashes($print_options['disclaimer']); ?></p>
63 </body>
64 </html>