Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header();?>
- <? if (!isset($_GET['s'])) {
- if (substr_count($_SERVER['REQUEST_URI'],"/page/") == 0 ) {
- if (substr_count($_SERVER['REQUEST_URI'] ,"/category/") == 0 ) {
- ?>
- <div align='center' style='height:330px;'>
- <img src='<?php bloginfo('template_directory'); ?>/images/title_box.jpg' border=0 style='margin-bottom:-85px;'>
- <?php imagescrollerfx_echo_embed_code(); ?></div>
- <script language="javascript" type="text/javascript"><!--
- function popitup(url)
- {
- if (browserName !="Microsoft Internet Explorer")
- {
- var centerWidth = (window.screen.width - 760) / 2;
- var centerHeight = (window.screen.height - 512) / 2;
- newWindow = window.open(url, 'name', 'resizable=0,width=' + 760 +
- ',height=' + 512 +
- ',left=' + centerWidth +
- ',top=' + centerHeight);
- }
- else {
- var centerWidth = (window.screen.width - 760) / 2;
- var centerHeight = (window.screen.height - 522) / 2;
- newWindow = window.open(url, 'name', 'resizable=0,width=' + 760 +
- ',height=' + 522 +
- ',left=' + centerWidth +
- ',top=' + centerHeight);
- }
- newWindow.focus();
- return false; }// -->
- </script>
- <SCRIPT language="JavaScript">
- <!--
- var browserName=navigator.appName;
- if (browserName !="Microsoft Internet Explorer")
- {
- function loadjscssfile(filename, filetype){
- if (filetype=="js"){ //if filename is a external JavaScript file
- var fileref=document.createElement('script')
- fileref.setAttribute("type","text/javascript")
- fileref.setAttribute("src", filename)
- }
- else if (filetype=="css"){ //if filename is an external CSS file
- var fileref=document.createElement("link")
- fileref.setAttribute("rel", "stylesheet")
- fileref.setAttribute("type", "text/css")
- fileref.setAttribute("href", filename)
- }
- if (typeof fileref!="undefined")
- document.getElementsByTagName("head")[0].appendChild(fileref)
- }
- loadjscssfile("common_min_2.1.js", "js") //dynamically load and add this .js file
- }
- else {
- document.write('<body style="background:#cecece;"><div style="margin-left:15px;">');
- }
- //-->
- </SCRIPT>
- <br><br>
- <table width="974" border="0" align="center">
- <tr>
- <td width="317" height="310" valign="top" background="<?php bloginfo('template_directory'); ?>/images/box_of.gif"><div class="officebox">
- <? include ("topboxoffice.txt"); ?>
- </div></td>
- <td width="317" valign="top" background="<?php bloginfo('template_directory'); ?>/images/open_w.gif"><div class="open">
- <? include ("openingthisweek.txt"); ?>
- </div></td>
- <td width="317" valign="top" background="<?php bloginfo('template_directory'); ?>/images/coming_s.gif"><div class="coming">
- <? include ("comingsoon.txt"); ?>
- </div></td>
- </tr>
- </table>
- <img src="<?php bloginfo('template_directory'); ?>/images/bg_m.png" style='margin-left:-12px;margin-bottom:-30px;'>
- <? } else {wp_title();echo "<br><br>";} } else {wp_title();echo "<br><br>";} } else {wp_title();echo "<br><br>";} ?>
- <div style='margin-left:0px;'>
- <div id="items">
- <?php if (have_posts()) : ?>
- <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
- $query_string=$query_string."&paged=$page&showposts=20";
- query_posts($query_string); ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="item">
- <div class="background"></div>
- <div class=bg><a href="<?php the_permalink(); ?>"><img class='imageOver' src='<?php bloginfo('template_directory'); ?>/images/zoom.gif' style=' position: absolute;
- top: 100px;
- left: 57px;
- width: 77px;
- height: 77px;border:0px;'></a>
- <?php
- $movietitle = the_title('','',false);
- $movietitle = str_replace(" ","||",$movietitle);
- //get videoid
- $mid = $wp_query->post->ID;
- $result = $wpdb->get_row("SELECT videoid FROM wp_posts WHERE ID='$mid' ") or die(mysql_error());
- $videoid = $result->videoid;
- if (!empty($videoid) && $videoid != "none") {
- ?>
- <a href="http://www.youtube.com/watch?v=<?=$videoid?>&width=560&height=340" rel="prettyPhoto[<? the_ID() ?>]" title="">
- <img class='imageOver img2' src='<?php bloginfo('template_directory'); ?>/images/play.png' alt='<?php the_title() ?>' style=' position: absolute;
- top: 179px;
- left: 65px;
- width: 62px;
- height: 19px;border:0px;'></a>
- <? } ?>
- <?php
- $bloginfo = get_bloginfo('url');
- $poster = get_the_excerpt(); echo str_replace('movie_posters',"$bloginfo/movie_posters",$poster); ?> </div>
- <div class="content">
- <h2><a href="<?php the_permalink(); ?>"><?php the_title() ?></a></h2>
- <p><?php unset($previousday);the_date('d F Y','','');?></p>
- </div>
- <div class="comments-link">
- <p><a href="<?php the_permalink() ?>#comments" class="c1" title="Comment on This Trailer"><?php comments_number('0', '1', '%'); ?></a></p>
- </div>
- </div>
- <?php endwhile; else: ?>
- <?php endif; ?>
- <div id="navi"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> </div>
- </div>
- </div>
- <center>
- <div id="items"><table width="974" border="0" style="margin-top:20px;position:relative:width:1000px;" align="center">
- <td><?=$ad4?></td>
- <td><?=$ad5?></td>
- <td><?=$ad6?></td>
- </tr></table></div>
- </center>
- <div id="items"><table width="974" border="0" style="position:relative:width:1000px;" align="center">
- <tr><td><?=$ad1?></td>
- <td><?=$ad2?></td>
- <td><?=$ad3?></td>
- </tr></table>
- </div>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement