Advertisement
Guest User

Błąd

a guest
Feb 1st, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.47 KB | None | 0 0
  1. <?php get_header();?>
  2. <? if (!isset($_GET['s'])) {
  3. if (substr_count($_SERVER['REQUEST_URI'],"/page/") == 0 ) {
  4. if (substr_count($_SERVER['REQUEST_URI'] ,"/category/") == 0 ) {
  5. ?>
  6. <div align='center' style='height:330px;'>
  7. <img src='<?php bloginfo('template_directory'); ?>/images/title_box.jpg' border=0 style='margin-bottom:-85px;'>
  8. <?php imagescrollerfx_echo_embed_code(); ?></div>
  9. <script language="javascript" type="text/javascript"><!--
  10.  
  11. function popitup(url)
  12. {
  13. if (browserName !="Microsoft Internet Explorer")
  14.  
  15. {
  16. var centerWidth = (window.screen.width - 760) / 2;
  17. var centerHeight = (window.screen.height - 512) / 2;
  18.  
  19. newWindow = window.open(url, 'name', 'resizable=0,width=' + 760 +
  20. ',height=' + 512 +
  21. ',left=' + centerWidth +
  22. ',top=' + centerHeight);
  23. }
  24. else {
  25. var centerWidth = (window.screen.width - 760) / 2;
  26. var centerHeight = (window.screen.height - 522) / 2;
  27.  
  28. newWindow = window.open(url, 'name', 'resizable=0,width=' + 760 +
  29. ',height=' + 522 +
  30. ',left=' + centerWidth +
  31. ',top=' + centerHeight);
  32. }
  33. newWindow.focus();
  34. return false; }// -->
  35. </script>
  36. <SCRIPT language="JavaScript">
  37. <!--
  38.  
  39. var browserName=navigator.appName;
  40.  
  41. if (browserName !="Microsoft Internet Explorer")
  42.  
  43. {
  44.  
  45. function loadjscssfile(filename, filetype){
  46.  
  47. if (filetype=="js"){ //if filename is a external JavaScript file
  48.  
  49. var fileref=document.createElement('script')
  50.  
  51. fileref.setAttribute("type","text/javascript")
  52.  
  53. fileref.setAttribute("src", filename)
  54.  
  55. }
  56.  
  57. else if (filetype=="css"){ //if filename is an external CSS file
  58.  
  59. var fileref=document.createElement("link")
  60.  
  61. fileref.setAttribute("rel", "stylesheet")
  62.  
  63. fileref.setAttribute("type", "text/css")
  64.  
  65. fileref.setAttribute("href", filename)
  66.  
  67. }
  68.  
  69. if (typeof fileref!="undefined")
  70.  
  71. document.getElementsByTagName("head")[0].appendChild(fileref)
  72.  
  73. }
  74.  
  75.  
  76.  
  77. loadjscssfile("common_min_2.1.js", "js") //dynamically load and add this .js file
  78.  
  79. }
  80.  
  81. else {
  82.  
  83. document.write('<body style="background:#cecece;"><div style="margin-left:15px;">');
  84.  
  85. }
  86.  
  87. //-->
  88.  
  89. </SCRIPT>
  90. <br><br>
  91. <table width="974" border="0" align="center">
  92. <tr>
  93. <td width="317" height="310" valign="top" background="<?php bloginfo('template_directory'); ?>/images/box_of.gif"><div class="officebox">
  94. <? include ("topboxoffice.txt"); ?>
  95. </div></td>
  96. <td width="317" valign="top" background="<?php bloginfo('template_directory'); ?>/images/open_w.gif"><div class="open">
  97. <? include ("openingthisweek.txt"); ?>
  98. </div></td>
  99. <td width="317" valign="top" background="<?php bloginfo('template_directory'); ?>/images/coming_s.gif"><div class="coming">
  100. <? include ("comingsoon.txt"); ?>
  101. </div></td>
  102. </tr>
  103. </table>
  104.  
  105. <img src="<?php bloginfo('template_directory'); ?>/images/bg_m.png" style='margin-left:-12px;margin-bottom:-30px;'>
  106. <? } else {wp_title();echo "<br><br>";} } else {wp_title();echo "<br><br>";} } else {wp_title();echo "<br><br>";} ?>
  107. <div style='margin-left:0px;'>
  108. <div id="items">
  109.  
  110. <?php if (have_posts()) : ?>
  111. <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
  112. $query_string=$query_string."&paged=$page&showposts=20";
  113. query_posts($query_string); ?>
  114. <?php while (have_posts()) : the_post(); ?>
  115.  
  116. <div class="item">
  117. <div class="background"></div>
  118. <div class=bg><a href="<?php the_permalink(); ?>"><img class='imageOver' src='<?php bloginfo('template_directory'); ?>/images/zoom.gif' style=' position: absolute;
  119. top: 100px;
  120. left: 57px;
  121. width: 77px;
  122. height: 77px;border:0px;'></a>
  123. <?php
  124. $movietitle = the_title('','',false);
  125. $movietitle = str_replace(" ","||",$movietitle);
  126.  
  127. //get videoid
  128. $mid = $wp_query->post->ID;
  129. $result = $wpdb->get_row("SELECT videoid FROM wp_posts WHERE ID='$mid' ") or die(mysql_error());
  130. $videoid = $result->videoid;
  131.  
  132. if (!empty($videoid) && $videoid != "none") {
  133. ?>
  134. <a href="http://www.youtube.com/watch?v=<?=$videoid?>&width=560&height=340" rel="prettyPhoto[<? the_ID() ?>]" title="">
  135. <img class='imageOver img2' src='<?php bloginfo('template_directory'); ?>/images/play.png' alt='<?php the_title() ?>' style=' position: absolute;
  136. top: 179px;
  137. left: 65px;
  138. width: 62px;
  139. height: 19px;border:0px;'></a>
  140. <? } ?>
  141. <?php
  142. $bloginfo = get_bloginfo('url');
  143. $poster = get_the_excerpt(); echo str_replace('movie_posters',"$bloginfo/movie_posters",$poster); ?> </div>
  144. <div class="content">
  145. <h2><a href="<?php the_permalink(); ?>"><?php the_title() ?></a></h2>
  146. <p><?php unset($previousday);the_date('d F Y','','');?></p>
  147. </div>
  148. <div class="comments-link">
  149. <p><a href="<?php the_permalink() ?>#comments" class="c1" title="Comment on This Trailer"><?php comments_number('0', '1', '%'); ?></a></p>
  150. </div>
  151. </div>
  152. <?php endwhile; else: ?>
  153. <?php endif; ?>
  154. <div id="navi"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> </div>
  155. </div>
  156. </div>
  157. <center>
  158. <div id="items"><table width="974" border="0" style="margin-top:20px;position:relative:width:1000px;" align="center">
  159. <td><?=$ad4?></td>
  160. <td><?=$ad5?></td>
  161. <td><?=$ad6?></td>
  162. </tr></table></div>
  163. </center>
  164. <div id="items"><table width="974" border="0" style="position:relative:width:1000px;" align="center">
  165. <tr><td><?=$ad1?></td>
  166. <td><?=$ad2?></td>
  167. <td><?=$ad3?></td>
  168. </tr></table>
  169. </div>
  170. <?php get_sidebar(); ?>
  171.  
  172. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement