HEX
Server: Apache/2
System: Linux localhost 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
User: rasad (1007)
PHP: 7.4.33
Disabled: shell_exec,system,passthru,exec,popen,ini_restore,socket_create,socket_create_listen,socket_create_pair,socket_listen,socket_bind,symlink,link,pfsockopen,ini_alter,dl,pcntl_exec,pcntl_fork,proc_close,proc_open,proc_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_uname,show_source,getfile,mkfifo
Upload Files
File: /home/rasad/public_html/wp-content/themes/ofogh/framework/print.php
<!DOCTYPE html>
<html <?php language_attributes(); ?> dir="rtl">
<head>
    <meta charset="utf-8" />
	<meta name="robots" content="noindex, nofollow">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>نسخه چاپی</title>
    <link rel="canonical" href="#">
	<link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" />
</head>
<body onload="window.print();">
<div class="print-content">
<div class="print-title">
<h2><?php the_title(); ?></h2>
<span>
<a class="tooltip tooltip-right" href="<?php the_permalink(); ?>" data-iro="بازگشت به صفحه اصلی"><i class="fa fa-home"></i></a>
 | 
<a class="tooltip tooltip-right" href="<?php the_permalink(); ?>" data-iro="پرینت نهایی" onclick="window.print()"><i class="fa fa-print"></i></a>
</span>
</div>
<div class="print-thum">
<?php the_post_thumbnail( $size ); ?>
</div>
<div class="print-entry">
<?php the_content(); ?>
</div>
<div class="clear"></div>
</div><!-- .content -->
<div class="print-copy">تمامی حقوق برای <a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a> محفوظ است.</div>
</body>
</html>
<style>
.gallery a {
  width: 100%;
}
</style>
<script type="text/javascript">
	(function($){
		$(document).ready(function(){
		
			String.prototype.toPersianDigit = function (a) {
				return this.replace(/\d+/g, function (digit) {
					var enDigitArr = [], peDigitArr = [];
					for (var i = 0; i < digit.length; i++) {
						enDigitArr.push(digit.charCodeAt(i));
					}
					for (var j = 0; j < enDigitArr.length; j++) {
						peDigitArr.push(String.fromCharCode(enDigitArr[j] + ((!!a && a == true) ? 1584 : 1728)));
					}
					return peDigitArr.join('');
				});
			};
			function TraceNodes(Node) {
				if (Node.nodeType == 3)//TextNode
					Node.nodeValue = Node.nodeValue.toPersianDigit();
			else
				for (var i = 0; i < Node.childNodes.length; i++)
					TraceNodes(Node.childNodes[i]);
			}
			TraceNodes(document);
			
		});
	})(jQuery);
</script>
<script type="text/javascript">
 window.onload=window.print();
</script>