Guest User

Untitled

a guest
Oct 16th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Opiniones Pacientes Dexeus
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7. <div id="content" class="blog">
  8. <div class="g960">
  9. <p class="breadcrumb"><span class="init"><?php _e('<!--:es-->Usted está en:<!--:--><!--:en-->Your are in:<!--:--><!--:ca-->Vostè està en:<!--:-->'); ?></span> <a href="<?php echo qtrans_convertURL('/opiniones-pacientes-familia-dexeus/'); ?>">Opiniones Pacientes Familia Dexeus</a> > <?php echo single_cat_title( '', true ); ?></p>
  10. </div>
  11. <div class="g720">
  12. <ul class="post-list">
  13. <?php query_posts('category_name=testimonios&posts_per_page=3'); ?>
  14. <?php global $more; $rotator = 0; if (have_posts()) : while (have_posts()) : the_post(); $more = 0; $rotator++; ?>
  15. <li>
  16. <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  17. <div class="post-meta">
  18. <p><?php _e('<!--:en-->Written at<!--:--><!--:es-->Escrito el<!--:--><!--:ca-->Escrit el<!--:-->'); ?> <?php the_time('j F, Y'); ?>, <?php _e('<!--:en-->by<!--:--><!--:es-->por<!--:--><!--:ca-->per<!--:-->'); ?> <?php the_author_posts_link() ?>, <?php _e('<!--:en-->in<!--:--><!--:es-->en<!--:--><!--:ca-->a<!--:-->'); ?> <?php the_category(', ') ?>, <?php comments_popup_link(__('<!--:en-->and without Comments<!--:--><!--:es-->y sin Comentarios<!--:--><!--:ca-->i sense Comentaris<!--:-->'), __('<!--:en-->with<!--:--><!--:es-->con<!--:--><!--:ca-->amb<!--:-->').' 1 '.__('<!--:en-->Comment<!--:--><!--:es-->Comentario<!--:--><!--:ca-->Comentari<!--:-->'), __('<!--:en-->with<!--:--><!--:es-->con<!--:--><!--:ca-->amb<!--:-->').' % '.__('<!--:en-->Comments<!--:--><!--:es-->Comentarios<!--:--><!--:ca-->Comentaris anteriors<!--:-->')); ?></p>
  19. </div><!--.postMeta-->
  20. <div class="post-content">
  21. <?php if (get_the_post_thumbnail($post->ID, 'thumbnail')) { ?>
  22. <p class="featured-image"><a href="<?php the_permalink(); ?>"><?php echo get_the_post_thumbnail($post->ID, 'thumbnail'); ?></a></p>
  23. <?php } // end if ?>
  24. <?php if (has_more()) {
  25. the_content(__("<!--:es-->¿Quieres conocer mi historia? &raquo;<!--:--><!--:en-->Would you like to know more? &raquo;<!--:--><!--:ca-->Vols conèixer la resta? &raquo;<!--:-->"));
  26. } else {
  27. echo '<p>'.shorten_text(220).' <a href="';
  28. the_permalink();
  29. echo '">'.__("<!--:es-->Leer más &raquo;<!--:--><!--:en-->Read more &raquo;<!--:--><!--:ca-->Llegir més &raquo;<!--:-->").'</a></p>';
  30. }
  31. ?>
  32. </div>
  33. </li>
  34. <?php if (($rotator % 2 == 0) && is_sticky()) {
  35. /* echo '<li class="sticky-clear">&nbsp;</li>'; */
  36. } // end if ?>
  37. <?php endwhile; ?></ul><?php else: ?>
  38. <div class="no-results">
  39. <p>
  40. <strong>Pues ha habido algún tipo de error.</strong>
  41. <br />
  42. Aquí no hay nada.
  43. </p>
  44. <p>
  45. Lamentamos los problemas que pueda causar, pruebe con nuestro buscador.
  46. </p>
  47. </div><!--noResults-->
  48. <?php endif; ?>
  49. <div class="newer-older">
  50. <p class="older"><?php next_posts_link('&laquo; '.__('<!--:en-->Previous opinions<!--:--><!--:es-->Opiniones anteriores<!--:--><!--:ca-->Opinions anteriors<!--:-->')); ?></p>
  51. <p class="newer"><?php previous_posts_link(__('<!--:en-->Recent opinions<!--:--><!--:es-->Opiniones recientes<!--:--><!--:ca-->Opinions recents<!--:-->').' &raquo;'); ?></p>
  52. </div>
  53.  
  54. </div>
  55. <div class="g240"><?php if ( ! dynamic_sidebar( 'SidebarTestimonios' ) ) : ?><?php endif ?></div>
  56. <div class="clear">&nbsp;</div>
  57. </div>
  58. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment