Guest User

Untitled

a guest
Feb 11th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. <div class="row">
  2. <div class="col-sm-12 col-md-12 col-lg-12 text-center" id="title-col">
  3. <h1 class="display-4 text-center text-uppercase"><?php _e('Showcase') ?></h1>
  4. <p class="lead text-center"><?php _e('lorem ipsum') ?></p>
  5. </div>
  6. <?php
  7. $args = array(
  8. 'post_type' => 'showcase'
  9. );
  10. $showcase = new WP_Query( $args );
  11. ?>
  12. <?php if( $showcase->have_posts() ): while( $showcase->have_posts() ): $showcase->the_post(); ?>
  13. <div class="col-sm-12 col-md-3 col-lg-3" id="showcase-col">
  14. <a class="open-modal" data-target="#showcaseModal-<?php echo get_the_ID();?>" data-toggle="modal">
  15. <div class="card">
  16. <img class="card-img-top" src="<?php the_post_thumbnail_url('full'); ?>" alt="<?php the_title(); ?>" id="">
  17. <div class="overlay">
  18. <p class="lead text-center ovl"><i class="fas fa-search-plus"></i></p>
  19. <h4 class="text-center"><?php the_title(); ?></h4>
  20. <?php the_content(); ?>
  21. </div>
  22. </div>
  23. </a>
  24. </div>
  25.  
  26. <!-- Modal -->
  27. <div class="modal fade" id="showcaseModal-<?php echo get_the_ID(); ?>" tabindex="-1" role="dialog" aria-labelledby="ProductShowcaseModal" aria-hidden="true">
  28. <div class="modal-dialog" role="document">
  29. <div class="modal-content">
  30. <div class="modal-header">
  31. <h5 class="modal-title" id="exampleModalLabel"><?php the_title(); ?></h5>
  32. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  33. <span aria-hidden="true">&times;</span>
  34. </button>
  35. </div>
  36. <div class="modal-body">
  37. <img class="img-responsive w-100" src="<?php the_post_thumbnail_url('full'); ?>">
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42.  
  43. <?php endwhile; ?>
  44. <?php endif; wp_reset_postdata(); ?>
  45. </div>
Add Comment
Please, Sign In to add comment