PluginProbe
WP-Print / 2.31
WP-Print v2.31
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.php

print.php in WP-Print 2.31, at print.php

49 lines 1.3 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.5 Plugin: WP-Print 2.31 |
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 | - Process Printing Page |
14 | - wp-content/plugins/wp-print/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 ### Print Options
31 $print_options = get_option('print_options');
32
33 ### Determine Text Direction
34 $text_direction = 'ltr';
35 $text_align = 'left';
36 $text_align_opposite = 'right';
37 if($print_options['text_direction'] == 'rtl') {
38 $text_direction = 'rtl';
39 $text_align = 'right';
40 $text_align_opposite = 'left';
41 }
42
43 ### Load Print Post/Page Template
44 if(file_exists(TEMPLATEPATH.'/print-posts.php')) {
45 include(TEMPLATEPATH.'/print-posts.php');
46 } else {
47 include(WP_PLUGIN_DIR.'/wp-print/print-posts.php');
48 }
49 ?>