Advertisement
nrms

custom WP page

Jun 15th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.85 KB | None | 0 0
  1. <?php
  2. include('wp-config.php');
  3. $wtb=$_GET['id'];
  4. ?>
  5. <?php query_posts('p='.$wtb.''); global $more; $more = 0;  while (have_posts()) : the_post(); ?>
  6.  
  7. <?php get_header(); ?>
  8. <?
  9. global $options;
  10. foreach ($options as $value) {
  11.     if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
  12. }
  13. ?>
  14. <div id="contenttop">
  15.         <div class="breadcrump">
  16.             <?php the_breadcrumb(); ?>
  17.         </div>
  18. </div>
  19.  
  20. <div id="content">
  21.  
  22. <?php include (TEMPLATEPATH . '/sidebar_left.php'); ?>
  23.  
  24. <div class="postsbody">
  25.        
  26.     <div class="pages">
  27.         <div class="rateit">
  28.         <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
  29.         </div>
  30.         <h2><?php wp_title(''); ?></h2>
  31.        
  32.         <div class="playgame">
  33.  
  34. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="500">
  35.     <param name="movie" value="<?php $values = get_post_custom_values("gameswf"); echo $values[0]; ?>" />
  36.     <param name="quality" value="high" />
  37.     <embed src="<?php $values = get_post_custom_values("gameswf"); echo $values[0]; ?>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="500"></embed>
  38. </object>
  39.    
  40.         </div>
  41.     <div class="inads">
  42.     <?if ($wp_72890_disable == "false") { ?>
  43.             <? if ($wp_72890) { ?>
  44.         <div class="posttop"></div>
  45.     <div class="adsa">
  46.         <? echo stripslashes($wp_72890); ?>
  47.     </div>
  48.             <? } else { ?>
  49.     <div class="posttop"></div>
  50.     <div class="adsa">
  51.         <img src="https://www.google.com/adsense/static/en_GB/images/leaderboard.gif" alt="" />
  52.     </div>
  53.             <? } ?>
  54.     <? } else { ?>
  55.     <? } ?>
  56.     </div>
  57.     </div> 
  58.  
  59.         <div id="similargame">
  60.         <h3>Outros Jogos</h3>
  61.         <div class="randgames">
  62.         <?php $recent = new WP_Query("showposts=4&orderby=rand"); while($recent->have_posts()) : $recent->the_post();?>
  63.                 <div class="wtbgame">
  64.                     <?php if( get_post_meta($post->ID, "thumb", true) ): ?>
  65.                         <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>&amp;w=142&amp;zc=1&amp;q=118" width="142" height="118" alt="<?php the_title(); ?>"></a>
  66.                     <?php else: ?>
  67.                         <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/nothumb.gif" width="142" height="118" alt="<?php the_title(); ?>"></a>
  68.                     <?php endif; ?>
  69.                     <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php $tit = the_title('','',FALSE); echo substr($tit, 0, 14); if (strlen($tit) > 14) echo " ..."; ?></a>
  70.                 </div> 
  71.         <?php endwhile; ?>
  72.         </div>
  73.         </div>
  74.        
  75. </div>
  76.  
  77. </div>
  78.  
  79. <?php get_footer(); ?>
  80.  
  81. <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement