PageRenderTime 37ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/archive-proyectos.php

https://bitbucket.org/jpcontrerasv/chasqui-theme
PHP | 63 lines | 41 code | 22 blank | 0 comment | 4 complexity | 3b9c3390d442479ffae6d093b5701e5c MD5 | raw file
  1. <?/*Template name: Proyectos*/?>
  2. <?php include 'header.php' ?>
  3. <div id="wrapper" class="box fleft fwidth">
  4. <div class="container-fluid">
  5. <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 filtros-galeria">
  6. <div class="button-group filters-button-group">
  7. <button class="button is-checked" data-filter="*">todo</button>
  8. <?php $wcatTerms = get_terms('tipodeobjeto', array('hide_empty' => 1, 'parent' =>0));
  9. foreach($wcatTerms as $wcatTerm) :
  10. ?>
  11. <button class="button" data-filter=".<?php echo $wcatTerm->name; ?>"><?php echo $wcatTerm->name; ?></button>
  12. <?php endforeach; ?>
  13. </div>
  14. <div class="grid fleft fwidth">
  15. <?php if ( have_posts() ) : ?>
  16. <?php while ( have_posts() ) : the_post(); ?>
  17. <div class="element-item <?php $terms = get_the_terms( $post->ID , 'tipodeobjeto' );
  18. foreach ( $terms as $term ) {
  19. $term_link = get_term_link( $term, 'tipodeobjeto' );
  20. if( is_wp_error( $term_link ) )
  21. continue;
  22. echo ' ' . $term->name . '';
  23. }
  24. ?> no-column">
  25. <div class="wrapper-item" style="background-image:url(<?php the_post_thumbnail_url(); ?>);">
  26. <div class="txt">
  27. <p><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
  28. </p>
  29. </div>
  30. </div>
  31. </div>
  32. <?php endwhile; ?>
  33. </div>
  34. <div class="clearfix"></div>
  35. <?php wpbeginner_numeric_posts_nav(); ?>
  36. <?php else : ?>
  37. <?php endif; ?>
  38. </div>
  39. </div>
  40. </div>
  41. <?php include 'footer.php' ?>