Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/06/2011, 17:38
Avatar de dropthebass
dropthebass
 
Fecha de Ingreso: abril-2008
Mensajes: 27
Antigüedad: 16 años, 1 mes
Puntos: 0
Respuesta: Problemas con el search.php

Hola Nekko! el código es:

Cita:
<?php get_header(); ?>



<?php include(TEMPLATEPATH . '/php/global-options.php'); ?>

<?php $count = 1; ?>

<!--Content-->
<div id="content">
<table height="120" width="960" background="http://www.lastmusic.es/wp-content/themes/deep-blue/images/fondo_publi.png">
<tr>

<td width="960">

<center><script type="text/javascript"><!--
google_ad_client = "ca-pub-0208941898340946";
/* Banner Alargado Grande */
google_ad_slot = "4071794342";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
<a href="http://www.lastmusic.es/?page_id=788"><font color="#FFFFFF" size="1"><b>ANUNCIATE AQUI</b></font></a>
</td>
</tr>
</table>
<div id="content-top">
<div id="content-bottom">
<!--Left Col-->
<div id="left-col">
<div id="left-col-top">
<div id="left-col-bottom">

<?php if (have_posts()) : ?>

<h2 class="archive-title">Resultados de busqueda:</h2>

<?php while (have_posts()) : the_post(); ?>

<!--Post-->
<div <?php post_class('single-post-unique'); ?> id="post-<?php the_ID(); ?>">

<div class="single-post-head">
<h2 class="single-post-title">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</h2>
<span class="single-post-comments"><?php if (!empty($post->post_password)) {} else { comments_popup_link('0', '1', '%', '', ''); } ?></span>
<div class="clear"></div>
</div><div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<img src="http://www.lastmusic.es/wp-content/themes/deep-blue/images/trans2.png" />
<?php if(function_exists(getILikeThis)) getILikeThis('get'); ?>
</div>

<div class="clear"></div>

<?php the_content(''); ?>
<br /><br /><span class="single-post-meta">Publicado: <?php the_time('j F, Y'); ?> a las <?php the_time(); ?></span>
<div class="clear"></div>

<?php edit_post_link('<br />','',''); ?>

<div class="meta-cats-tags">
<div class="meta-cats <?php if (!has_tag()) : ?>meta-cats-full<?php endif; ?>">
<span class="meta-cats-icon">Estilo/s:</span> <?php the_category(', ') ?>
</div>
<div class="meta-tags">
<?php if (has_tag()) : ?><?php the_tags('<span class="meta-tags-icon">Tags:</span> ', ', ', ''); ?><?php endif; ?>
</div>
</div>

<br />

<a class="read-more" rel="nofollow" href="<?php the_permalink(); ?>#more-<?php the_ID(); ?>">Continue Reading</a>

</div>
<!--Post End-->

<div class="clear"></div>

<?php if ($count == 1) : ?>
<!--468x60-->
<?php if ($at_468_after_post_display == 'Disable') {} else { include(TEMPLATEPATH . '/php/468x60.php'); } ?>
<!--468x60 End-->
<?php endif; $count++; ?>

<img class="post-divider" src="<?php bloginfo("template_directory"); ?>/images/post_divider.png" width="478" height="26" alt="" />

<?php endwhile; else: ?>

<div class="single-post-unique">

<div class="single-post-head">
<h2 class="single-post-title">Lo sentimos.</h2>
</div>

<div class="clear"></div>

<p>No encontramos resultados para tu busqueda.</p>

</div>

<?php endif; ?>

<div class="page-navi">

<?php global $wp_rewrite;
$wp_query->query_vars['paged'] > 1 ? $current = $wp_query->query_vars['paged'] : $current = 1;

$pagination = array(
'base' => @add_query_arg('paged','%#%'),
'format' => '',
'total' => $wp_query->max_num_pages,
'current' => $current,
'end_size' => 4,
'mid_size' => 4,
'type' => 'plain',
);

if ($wp_rewrite->using_permalinks())
$pagination['base'] = user_trailingslashit(trailingslashit(remove_query_ arg('s',get_pagenum_link(1))) . 'page/%#%/', 'paged');

if (!empty($wp_query->query_vars['s']))
$pagination['add_args'] = array('s'=>get_query_var('s'));

echo paginate_links($pagination); ?>

</div>
<div class="clear"></div>

</div>
</div>
</div>
<!--Left Col End-->
<?php get_sidebar(); ?>
</div>
</div>
</div>
<!--Content End-->
</div>
<!--Wrapper End-->
<?php get_footer(); ?>