Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/09/2009, 23:14
Avatar de lbenz
lbenz
 
Fecha de Ingreso: marzo-2003
Ubicación: Haedo
Mensajes: 445
Antigüedad: 21 años, 1 mes
Puntos: 4
Error: unexpected $end

hola.. la solucion seria super simple... ahora tengo un problema... ponga donde ponga el codigo me tira un error...

la categoria esta bine. es la 1.. siempre es la uno la general...

el error que me tira es el siguiente

Parse error: syntax error, unexpected $end in /home/desdeaca/public_html/wp-content/themes/lightword/index.php on line 49





y el codigo del index del theme es el siguiente..

Código php:
Ver original
  1. <?php get_header(); ?>
  2. <div id="content-body">
  3. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  4. <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  5. <h2><a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  6. <div class="comm_date"><span class="data"><span class="j"><?php the_time('j'); ?></span><br/><span class="my"><?php the_time('M/y'); ?></span></span><span class="nr_comm"><?php if($dsq_version){ echo '<a class="nr_comm_spot" href="'; echo the_permalink(); echo '">N/A</a>';  }else{ ?><a class="nr_comm_spot" href="<?php the_permalink(); ?>#respond"><?php echo comments_number('0', '1', '%' ); ?></a><?php } ?></span></div>
  7. <?php edit_post_link(__('Edit this post','lightword'), '', ''); ?>
  8. <?php the_content(''); ?>
  9. <?php if ( is_single() ) : ?>
  10. <?php if ($lw_enjoy_post == "true" && is_attachment() != TRUE) : ?>
  11. <div class="promote">
  12. <h3><?php _e('Enjoy this article?','lightword'); ?></h3>
  13. <p><a href="<?php bloginfo('rss2_url'); ?>"><?php  _e('Consider subscribing to our rss feed!','lightword'); ?></a></p>
  14. </div>
  15.  
  16. <?php endif; endif; ?>
  17.  
  18. <div class="cat_tags">
  19. <div class="category"><?php $tag = get_the_tags(); if (!$tag) { ?><?php _e('Clasificado en:','lightword'); ?> <?php the_category(', '); }else the_tags(__('Tagged as: ','lightword'),', '); ?></div>
  20. <div class="continue"><?php $pos=strpos($post->post_content, '<!--more-->'); if(is_single() || $pos==''){ ?><a class="nr_comm_spot" href="<?php the_permalink(); ?>#respond"><?php comments_number(__('Sin Comentarios','lightword'), __('1 Comentario','lightword'), __('% Comentarios','lightword')); ?></a><?php }else{ ?><a title="<?php _e('Seguir leyendo sobre ','lightword'); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>#more-<?php echo $id; ?>"><?php _e('Seguir leyendo','lightword'); ?></a><?php } ?></div>
  21. <div class="clear"></div></div><div class="cat_tags_close"></div>
  22.  
  23. <?php wp_link_pages('before=<div class="nav_link">&after=</div>&next_or_number=number&pagelink=<span class="page_number">%</span>'); ?>
  24. </div>
  25. <?php if ( is_attachment() != TRUE ) : comments_template(); endif; ?>
  26.  
  27. <?php endwhile; else: ?>
  28.  
  29. <h2><?php _e('No encontrado','lightword'); ?></h2>
  30. <p><?php  _e("Lo sentimos, no encontramos lo que buscas","lightword"); ?></p>
  31.  
  32. <?php endif; ?>
  33.  
  34. <div class="newer_older">
  35.  
  36. <span class="newer"><?php previous_posts_link(__('&laquo; Anteriores','lightword')) ?></span>
  37. <span class="older"><?php next_posts_link(__('Siguientes &raquo;','lightword')) ?></span>
  38.  
  39. </div>
  40. </div>
  41. <?php get_sidebar(); ?>
  42. <?php get_footer(); ?>


si me pueden ayudar les agradeceria.. saludos

Leo
__________________
que fea firma que tenia... prefiero tener esto

Última edición por AlvaroG; 18/09/2009 a las 09:35