Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="col-sm-3">
- <h3 class="epigrafe">
- <?php echo roots_title(); ?>
- </h3>
- </div>
- <?php
- $trabajo_output = false;
- $textos_output = false;
- $personal_output = false;
- ?>
- <?php while (have_posts()) : the_post();?>
- <?php if ( in_category( 'trabajo' ) ) : ?>
- <?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>"; ?>
- <?php elseif ( in_category( 'textos' ) ) : ?>
- <?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>"; ?>
- <?php elseif ( in_category( 'personal' ) ) : ?>
- <?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>"; ?>
- <?php endif; ?>
- <?php endwhile; ?>
- <!-- .......................... -->
- <div class="col-sm-3 columna trabajo">
- <div class="cabecera-resumen">
- <div class="cabecera-wrap">
- <img class="icn-home trabajo" src="/wp-content/themes/roots/assets/img/icn-trabajo-peq.png" />
- <h2 class="epigrafe">
- Trabajo
- </h2>
- </div>
- </div>
- <?php echo $trabajo_output; ?>
- <a class="btn boton" href="<?php echo esc_url( $category_link ); ?>" title="trabajos">Ver todos los trabajos</a>
- </div>
- <!-- .......................... -->
- <div class="col-sm-3 columna textos">
- <div class="cabecera-resumen">
- <div class="cabecera-wrap">
- <img class="icn-home textos" src="/wp-content/themes/roots/assets/img/icn-textos-peq.png" />
- <h2 class="epigrafe">
- Textos
- </h2>
- </div>
- </div>
- <?php echo $textos_output; ?>
- <a class="btn boton" href="<?php echo esc_url( $category_link ); ?>" title="textos">Ver todos los textos</a>
- </div>
- <!-- .......................... -->
- <div class="col-sm-3 columna personal">
- <div class="cabecera-resumen">
- <div class="cabecera-wrap">
- <img class="icn-home textos" src="/wp-content/themes/roots/assets/img/icn-personal-peq.png" />
- <h2 class="epigrafe">
- Personal
- </h2>
- </div>
- </div>
- <?php echo $personal_output; ?>
- <a class="btn boton" href="<?php echo esc_url( $category_link ); ?>" title="personal">Ver todo en personal</a>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement