<?php
include('wp-config.php');
$wtb=$_GET['id'];
?>
<?php query_posts('p='.$wtb.''); global $more; $more = 0; while (have_posts()) : the_post(); ?>
<?php get_header(); ?>
<?
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
<div id="contenttop">
<div class="breadcrump">
<?php the_breadcrumb(); ?>
</div>
</div>
<div id="content">
<?php include (TEMPLATEPATH . '/sidebar_left.php'); ?>
<div class="postsbody">
<div class="pages">
<div class="rateit">
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
</div>
<h2><?php wp_title(''); ?></h2>
<div class="playgame">
<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">
<param name="movie" value="<?php $values = get_post_custom_values("gameswf"); echo $values[0]; ?>" />
<param name="quality" value="high" />
<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>
</object>
</div>
<div class="inads">
<?if ($wp_72890_disable == "false") { ?>
<? if ($wp_72890) { ?>
<div class="posttop"></div>
<div class="adsa">
<? echo stripslashes($wp_72890); ?>
</div>
<? } else { ?>
<div class="posttop"></div>
<div class="adsa">
<img src="https://www.google.com/adsense/static/en_GB/images/leaderboard.gif" alt="" />
</div>
<? } ?>
<? } else { ?>
<? } ?>
</div>
</div>
<div id="similargame">
<h3>Outros Jogos</h3>
<div class="randgames">
<?php $recent = new WP_Query("showposts=4&orderby=rand"); while($recent->have_posts()) : $recent->the_post();?>
<div class="wtbgame">
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<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]; ?>&w=142&zc=1&q=118" width="142" height="118" alt="<?php the_title(); ?>"></a>
<?php else: ?>
<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>
<?php endif; ?>
<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>
</div>
<?php endwhile; ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>
<?php endwhile; ?>