<?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 align="center"><div class="indextop">
<div class="randomgames">
<div class="randomtop"><div class="randomtop123"><h2>Juegos gratis</h2></div></div>
<div class="randomgame">
<?php $recent = new WP_Query("cat=&showposts=10&orderby=rand"); while($recent->have_posts()) : $recent->the_post();?>
<div class="gamethumb">
<div class="thumbs">
<a href="<?php the_permalink() ?>"><img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" alt="juegos flash" height="80" width="96" onMouseOver="return tooltip('<?php echo $contenttt=substr(get_the_content(), 0, 150); ?>','<b>juegos online</b>','width:200');" onMouseOut="return hideTip();" /></a><br />
</div>
<div class="thumbtitle">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Jugar a <?php the_title_attribute(); ?>" alt="juegos flash"><?php
$tit = the_title('','',FALSE);
echo substr($tit, 0, 15);
if (strlen($tit) > 15) echo " ...";
?></a>
</div>
</div>
<?php endwhile; ?>
</div>
<div class="randombottom"></div>
</div>
<?php include (TEMPLATEPATH . '/ads/ad-336-280.php'); ?>
</div>
<div class="indexbottom">
<?php include (TEMPLATEPATH . '/ads/ad-120-600.php'); ?>
<div class="newgames">
<div class="newgamestop"><div class="randomtop123"><h2>Juegos online</h2></div></div>
<div class="newgamesgame">
<?php $recent = new WP_Query("cat=&showposts=21"); while($recent->have_posts()) : $recent->the_post();?>
<div class="gamethumb2">
<div class="thumbs">
<a href="<?php the_permalink() ?>" title="Jugar a <?php the_title_attribute(); ?>"><img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" alt="juegos online" height="80" width="96" onMouseOver="return tooltip('<?php echo $contenttt=substr(get_the_content(), 0, 150); ?>','<b>juegos online</b>','width:200');" onMouseOut="return hideTip();" /></a>
</div>
<div class="thumbtitle">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Jugar a <?php the_title_attribute(); ?>"><?php
$tit = the_title('','',FALSE);
echo substr($tit, 0, 15);
if (strlen($tit) > 15) echo " ...";
?></a>
</div>
</div>
<?php endwhile; ?>
</div>
<div class="newgamesbottom"></div>
</div>
</div>
</div>
</div>
<div id="pagemenu">
<div class="gotop">
<a class="home" href="<?php echo get_option('home'); ?>/#header">Top</a>
</div>
</div>
<div class="footermenus">
<?if ($tg_comments == "false") { ?>
<div class="footermenu">
Ultimos Comentarios
<?php
global $wpdb;
$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID,
comment_post_ID, comment_author, comment_date_gmt, comment_approved,
comment_type,comment_author_url,
SUBSTRING(comment_content,1,30) AS com_excerpt
FROM $wpdb->comments
LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID =
$wpdb->posts.ID)
WHERE comment_approved = '1' AND comment_type = '' AND
post_password = ''
ORDER BY comment_date_gmt DESC
LIMIT 7";
$comments = $wpdb->get_results($sql);
$output = $pre_HTML;
$output .= "\n<ul>";
foreach ($comments as $comment) {
$output .= "\n<li>".strip_tags($comment->comment_author)
.":" . " <a href=\"" . get_permalink($comment->ID) .
"#comment-" . $comment->comment_ID . "\" title=\"on " .
$comment->post_title . "\">" . strip_tags($comment->com_excerpt)
."</a>...</li>";
}
$output .= "\n</ul>";
$output .= $post_HTML;
echo $output;?>
</div>
<? } else { ?>
</div>
<? } ?>
<div class="footermenu">
<h2>juegos online, juegos flash, juegos gratis, juegos de accion, juegos de coches, juegos de peleas</h2>
</div>
<div class="footermenu"><a href=http://www.ademails.com/estadisticas1060009799.htm>
<script type="text/javascript" language="JavaScript">
<!--
document.write("<img src=\"http://www.ademails.com/cgi-bin/contador.cgi?ID=1060009799");
document.write("&referer=");
document.write(escape(document.referrer));
document.write("\" border=0 alt=\"Estadisticas\">");
// -->
</script><noscript><img src=http://www.ademails.com/cgi-bin/contador.cgi?ID=1060009799 border=0 alt="Estadisticas"></noscript></a>
<div id="contentbottom123"><a href="http://www.juegosmon.net/juegos/accion">juegos de accion</a> - <a href="http://www.juegosmon.net/juegos/conduccion">juegos de coches</a> - <a href="http://www.juegosmon.net/juegos/lucha"> juegos de peleas</a> - <a href="http://www.juegosmon.net/juegos/aventura">juegos de aventura</a> - <a href="http://www.juegosmon.net/juegos/estrategia">juegos de estrategia</a></div>