page-art.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php get_header(); ?>
  2. <div id="gallery" class="carousel carousel-fade ">
  3. <div class="container leader art-gallery">
  4. <div class="row">
  5. <div class="col-sm-2">
  6. <h4><a href="#figures">Figures</a></h4>
  7. <h4><a href="#landscapes">Landscapes</a></h4>
  8. <h4><a href="#still">Still Life</a></h4>
  9. <h4><a href="#abstract">Abstract</a></h4>
  10. <div class="controls">
  11. <div class="prev-next">
  12. <a class="prev" data-slide="prev">&lsaquo; Prev</a> -
  13. <a class="next" data-slide="next"> Next &rsaquo;</a>
  14. </div>
  15. </div>
  16. </div>
  17. <div class="col-sm-10">
  18. <div class="carousel-inner">
  19. <div class="carousel-item active gallery-image">
  20. <img class="art-image" src="<?php echo get_template_directory_uri(); ?>/img/lemon-mater.jpg" alt="<?php the_title(); ?>"/>
  21. </div>
  22. <?php query_posts('category_name=paintings&showposts=12'); ?>
  23. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  24. <div class="carousel-item gallery-image">
  25. <?php $img_url = wp_get_attachment_image_src(get_post_thumbnail_id(),'studio'); ?>
  26. <img class="art-image" src="<?php echo $img_url[0];?>" alt="<?php the_title(); ?>"/>
  27. </div>
  28. <?php endwhile; ?>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. <?php get_footer(); ?>