Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 112466

Mraztek on "Why my carousel is not working?"

$
0
0

Why my capsular is not working?

this is my entire code i modify it but i can't find out why is not working property

when i click on a thumbnail supposed to playy the video but i won't.

screenshot
http://s9.postimage.org/rsg59imr3/image.jpg

get_header(); ?>

<?php
		/* Load scripts only when needed */
		wp_enqueue_script('jquery-carousel');
		wp_enqueue_script('jquery-slides');
		wp_enqueue_script('jplayer');
?>
<?php while (have_posts()) : the_post(); global $post;?>

<div class="home-featured wall">
<div class="wrap cf">	

        <div class="slider">
	<div class="slider-wrap">
		<?php // jQuery slides pluin will add tag '<div class="slides">' here ?>
			<div class="slide <?php echo is_video() ? 'item-video' : 'item-post'; ?>" data-id="<?php the_ID(); ?>">
				<?php
					$thumb_size = 'custom-large';
					dp_thumb_html($thumb_size);
				?>
			<div class="caption">
					<h2 class="title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('Permalink to %s', 'dp'), get_the_title()); ?>"><?php the_title(); ?></a></h2>
				</div>
			</div><!-- end .slide -->
			<?php endwhile; ?>
		<?php // </div><!-- end .slides--> ?>
	</div><!-- end .slider-wrap -->
	</div><!-- end .slider -->

<?php
	$args = (array)get_option('dp_home_featured');
	$args = dp_parse_query_args($args);
	$autoplay = !empty($args['autoplay']) ? true : false;
	$query = new WP_Query($args);
?>
<?php if($query->have_posts()): ?>

	<div class="carousel">
	<div class="carousel-container">
		<div class="carousel-clip">
			<ul class="slider-pagination carousel-list">
				<?php $items = ''; $i = 0; while ($query->have_posts()) : $query->the_post(); global $post; ?>
				<li data-id="<?php the_ID(); ?>" class="<?php echo is_video() ? 'item-video' : 'item-post'; ?>">
				<div class="inner">
					<?php
					$thumb_size = 'custom-small';
					dp_thumb_html($thumb_size);
					?>
			<div class="data">
						<h2 class="title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('Permalink to %s', 'dp'), get_the_title()); ?>"><?php the_title(); ?></a></h2>

						<p class="meta">
							<span class="time"><?php printf(__('%s ago', 'dp'), human_time(get_the_time('U'))); ?></span>
						</p>
					</div>
				</div>
				</li>
				<?php $i++; endwhile; ?>
			</ul>
		</div><!-- end .carousel-clip -->

		<div class="carousel-prev"></div>
		<div class="carousel-next"></div>
	</div><!-- end .carousel-container -->
	</div><!-- end .carousel -->

<?php endif; wp_reset_query(); ?>

</div><!-- end .wrap -->
</div><!-- end #wall -->

Viewing all articles
Browse latest Browse all 112466

Trending Articles