rendered paste body<?php get_header();?>
<div id="wp-content">
<div id="wp-content-pri">
<?php
if ($posts){
function stupid_hack($str){
return preg_replace('|</ul>\s*<ul class="linklog">|', '', $str);
}
ob_start('stupid_hack');
foreach($posts as $post){
the_post();
if (in_category(18) && !is_single() ) :
?>
<ul class="linklog">
<li id="p<?php the_ID(); ?>"><i><?php the_date('d-m-Y', '', '<br />'); ?></i><b><?php echo wptexturize(strip_tags(stripslashes($post->post_title), '')); ?></b> <a href="<?php the_permalink(); ?>" title="Permalink: <?php echo wptexturize(strip_tags(stripslashes($post->post_title), '')); ?>" rel="bookmark">#</a> <?php edit_post_link('e'); ?>
<br /><?php the_content(); ?>
</li>
</ul>
<?php else: // If it's a regular post or a permalink page ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Link permanente a <?php the_title(); ?>"><?php the_title(); ?></a><?php foreach((get_the_category()) as $cat) { if ($cat->cat_name == 'noteworthy') { ?><span class="favorite"><img src="<?php bloginfo('template_url'); ?>/images/favorite.gif" alt="Favorite Entry" /></span><?php } } ?></h2>
<div class="post-meta">
<p>
<span class="post-meta-date"><?php the_time('d F Y') ?></span>
<span class="post-meta-time"><?php the_time() ?></span>
<span class="post-meta-category"><?php the_nice_category() ?></span>
<span class="post-meta-comments"><?php comments_popup_link('Dejar un comentario', '1 comentario', '% comentarios'); ?></span>
<?php edit_post_link('Editar', ' | ', ''); ?>
</p>
</div>
<?php the_content('Leer el resto de la entrada »'); ?>
</div>
<!-- <?php trackback_rdf(); ?> -->
<?php endif; // end if in category
}
} else {
echo '<p>Disculpá, no se encontraron posts.</p>';
}
?>
<div id="post-navigation-bot">
<div class="next"><?php next_posts_link('« Entradas anteriores') ?></div>
<div class="prev"><?php previous_posts_link('Entradas más nuevas »') ?></div>
</div>
</div>
<?php
get_sidebar();
get_footer();
?>