| 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 |
* - Process Printing Page |
| 12 |
* - wp-content/plugins/wp-print/print.php |
| 13 |
*/ |
| 14 |
|
| 15 |
|
| 16 |
### Variables |
| 17 |
$links_text = ''; |
| 18 |
|
| 19 |
### Actions |
| 20 |
add_action('init', 'print_content'); |
| 21 |
|
| 22 |
### Filters |
| 23 |
add_filter('wp_title', 'print_pagetitle'); |
| 24 |
add_filter('comments_template', 'print_template_comments'); |
| 25 |
|
| 26 |
### Print Options |
| 27 |
$print_options = get_option('print_options'); |
| 28 |
|
| 29 |
### Load Print Post/Page Template |
| 30 |
if(file_exists(get_stylesheet_directory().'/print-posts.php')) { |
| 31 |
include(get_stylesheet_directory().'/print-posts.php'); |
| 32 |
} else { |
| 33 |
include(WP_PLUGIN_DIR.'/wp-print/print-posts.php'); |
| 34 |
} |