Advertisement
aitormendez

Página de archivos wordpress e451

Mar 2nd, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.58 KB | None | 0 0
  1. <div class="col-sm-3">
  2.   <h3 class="epigrafe">
  3.       <?php echo roots_title(); ?>
  4.     </h3>
  5. </div>
  6.  
  7. <?php
  8.  
  9. $trabajo_output = false;
  10. $textos_output = false;
  11. $personal_output = false;
  12.  
  13. ?>
  14.  
  15. <?php while (have_posts()) : the_post();?>
  16.   <?php if ( in_category( 'trabajo' ) ) : ?>
  17.     <?php $trabajo_output.= "<h3><a href=". get_permalink(). ">". get_the_title() . "</a></h3>" . get_the_post_thumbnail($page->ID, 'medium', array('class' => 'img-responsive miniatura')) . "<p>" . get_the_excerpt() . "</p>"; ?>
  18.  
  19.   <?php elseif ( in_category( 'textos' ) ) : ?>
  20.     <?php $textos_output.= "<h3><a href=". get_permalink(). ">". get_the_title() . "</a></h3>" . get_the_post_thumbnail($page->ID, 'medium', array('class' => 'img-responsive miniatura')) . "<p>" . get_the_excerpt() . "</p>"; ?>
  21.  
  22.   <?php elseif ( in_category( 'personal' ) ) : ?>
  23.     <?php $personal_output.= "<h3><a href=". get_permalink(). ">". get_the_title() . "</a></h3>" . get_the_post_thumbnail($page->ID, 'medium', array('class' => 'img-responsive miniatura')) . "<p>" . get_the_excerpt() . "</p>"; ?>
  24.  
  25.   <?php endif; ?>
  26.  
  27. <?php endwhile; ?>
  28.  
  29.  
  30.  
  31. <!-- .......................... -->
  32.  
  33.  
  34.  
  35. <div class="col-sm-3 columna trabajo">
  36.   <div class="cabecera-resumen">
  37.     <div class="cabecera-wrap">
  38.       <img class="icn-home trabajo" src="/wp-content/themes/roots/assets/img/icn-trabajo-peq.png" />
  39.         <h2 class="epigrafe">
  40.           Trabajo
  41.         </h2>
  42.       </div>
  43.   </div>
  44.  
  45. <?php echo $trabajo_output; ?>
  46.  
  47.   <a class="btn boton" href="<?php echo esc_url( $category_link ); ?>" title="trabajos">Ver todos los trabajos</a>
  48. </div>
  49.  
  50.  
  51.  
  52. <!-- .......................... -->
  53.  
  54.  
  55.  
  56. <div class="col-sm-3 columna textos">
  57.   <div class="cabecera-resumen">
  58.     <div class="cabecera-wrap">
  59.       <img class="icn-home textos" src="/wp-content/themes/roots/assets/img/icn-textos-peq.png" />
  60.         <h2 class="epigrafe">
  61.           Textos
  62.         </h2>
  63.       </div>
  64.   </div>
  65.  
  66. <?php echo $textos_output; ?>
  67.  
  68.   <a class="btn boton" href="<?php echo esc_url( $category_link ); ?>" title="textos">Ver todos los textos</a>
  69. </div>
  70.  
  71.  
  72.  
  73. <!-- .......................... -->
  74.  
  75.  
  76.  
  77. <div class="col-sm-3 columna personal">
  78.   <div class="cabecera-resumen">
  79.     <div class="cabecera-wrap">
  80.       <img class="icn-home textos" src="/wp-content/themes/roots/assets/img/icn-personal-peq.png" />
  81.         <h2 class="epigrafe">
  82.           Personal
  83.         </h2>
  84.       </div>
  85.   </div>
  86.  
  87. <?php echo $personal_output; ?>
  88.  
  89.   <a class="btn boton" href="<?php echo esc_url( $category_link ); ?>" title="personal">Ver todo en personal</a>
  90. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement