File: /home/rasad/domains/rasadeardakan.ir/private_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>