windhamdavid 5 years ago
parent
commit
c64ff7a131
2 changed files with 15 additions and 24 deletions
  1. 2 2
      functions.php
  2. 13 22
      page-art.php

+ 2 - 2
functions.php

@@ -78,8 +78,8 @@ function dw_scripts() {
 		//wp_enqueue_script( 'boostrap', get_template_directory_uri() . '/js/bootstrap.min.js', 'jquery', '', true );
 		//wp_enqueue_script( 'offcanvas', get_template_directory_uri() . '/js/jasny-bootstrap.js', 'jquery', '', true );
 		//wp_enqueue_script( 'scripts', get_template_directory_uri() . '/js/scripts.js', 'jquery', '', true );
-		wp_enqueue_script( 'scriptmin', get_template_directory_uri() . '/js/script.min.js', '', '', true );
-		wp_enqueue_script( 'art', get_template_directory_uri() . '/js/art.js', 'jquery', '', true );
+		wp_enqueue_script( 'scriptmin', get_template_directory_uri() . '/js/v3-script.min.js', '', '', true );
+		wp_enqueue_script( 'art', get_template_directory_uri() . '/js/art.js', '', '', true );
 	}
 
 	elseif ( is_page('contact') ) {

+ 13 - 22
page-art.php

@@ -1,43 +1,34 @@
 <?php get_header(); ?>
-<div id="gallery" class="art-gallery carousel">
-	<div class="container leader">
+<div id="gallery" class="carousel carousel-fade ">
+	<div class="container leader art-gallery">
 		<div class="row">
 			<div class="col-sm-2">
 				<h4><a href="#figures">Figures</a></h4>
 				<h4><a href="#landscapes">Landscapes</a></h4>
-				<h4><a href="#still">Still Life</a></h4>	
+				<h4><a href="#still">Still Life</a></h4>
 				<h4><a href="#abstract">Abstract</a></h4>
 				<div class="controls">
-
-					<ol class="carousel-indicators">
-						<li data-target="#caro" data-slide-to="0" class="active"></li>
-						<li data-target="#caro" data-slide-to="1"></li>
-						<li data-target="#caro" data-slide-to="2"></li>
-						<li data-target="#caro" data-slide-to="3"></li>
-						<li data-target="#caro" data-slide-to="4"></li>
-						<li data-target="#caro" data-slide-to="5"></li>
-					</ol>
 					<div class="prev-next">
-						<a class="prev" href="#gallery" data-slide="prev">&lsaquo; Prev</a> - 
+						<a class="prev" href="#gallery" data-slide="prev">&lsaquo; Prev</a> -
 						<a class="next" href="#gallery" data-slide="next"> Next &rsaquo; </a>
 					</div>
-				</div>	
+				</div>
 			</div>
 			<div class="col-sm-10">
 				<div class="carousel-inner">
-					<div class="item active gallery-image">
+					<div class="carousel-item active gallery-image">
 						<img class="art-image" src="<?php echo get_template_directory_uri(); ?>/img/lemon-mater.jpg" alt="<?php the_title(); ?>"/>
 					</div>
-					<?php query_posts('category_name=paintings&showposts=12'); ?>
-					<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
-					<div class="item gallery-image">
+				<?php query_posts('category_name=paintings&showposts=12'); ?>
+				<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
+					<div class="carousel-item gallery-image">
 						<?php $img_url = wp_get_attachment_image_src(get_post_thumbnail_id(),'studio'); ?>
 						<img class="art-image" src="<?php echo $img_url[0];?>" alt="<?php the_title(); ?>"/>
 					</div>
-					<?php endwhile; ?>
-				</div>		
+				<?php endwhile; ?>
+				</div>
 			</div>
 		</div>
 	</div>
-</div>	
-<?php get_footer(); ?>
+</div>
+<?php get_footer(); ?>