page-art.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php get_header(); ?>
  2. <div id="gallery" class="art-gallery carousel">
  3. <div class="container leader">
  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. <ol class="carousel-indicators">
  12. <li data-target="#caro" data-slide-to="0" class="active"></li>
  13. <li data-target="#caro" data-slide-to="1"></li>
  14. <li data-target="#caro" data-slide-to="2"></li>
  15. <li data-target="#caro" data-slide-to="3"></li>
  16. <li data-target="#caro" data-slide-to="4"></li>
  17. <li data-target="#caro" data-slide-to="5"></li>
  18. </ol>
  19. <div class="prev-next">
  20. <a class="prev" href="#gallery" data-slide="prev">&lsaquo; Prev</a> -
  21. <a class="next" href="#gallery" data-slide="next"> Next &rsaquo; </a>
  22. </div>
  23. </div>
  24. </div>
  25. <div class="col-sm-10">
  26. <div class="carousel-inner">
  27. <div class="item active gallery-image">
  28. <img class="art-image" src="<?php echo get_template_directory_uri(); ?>/img/lemon-mater.jpg" alt="<?php the_title(); ?>"/>
  29. </div>
  30. <?php query_posts('category_name=paintings&showposts=12'); ?>
  31. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  32. <div class="item gallery-image">
  33. <?php $img_url = wp_get_attachment_image_src(get_post_thumbnail_id(),'studio'); ?>
  34. <img class="art-image" src="<?php echo $img_url[0];?>" alt="<?php the_title(); ?>"/>
  35. </div>
  36. <?php endwhile; ?>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. <?php get_footer(); ?>