

<div class="fullwidthbanner-container">
		<div class="fullwidthbanner" >
			<ul>	

			<?php 
            $featucat = get_option('op_feat_cat');
	        $slides = get_option('op_feat_slides');
	        if (get_option('op_recent_featured_flex') == 'Recent posts') {
	        $my_query = new WP_Query('showposts='. $slides .'');	
	        } else {
            $my_query = new WP_Query('showposts='. $slides .'&category_name='. $featucat .'');	
	        }
            if ($my_query->have_posts()) :
            ?>					
		
            <?php while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?>	
			
			
			<li data-transition="cube" data-slotamount="6" data-masterspeed="200" data-delay="7000" >
				
                <?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'post-thumbnails', false, '' ); $thumbnailSrc = $src[0]; ?>	
	            <?php $image = aq_resize( $thumbnailSrc, 1140, 600, true ); ?>
		        <img alt="<?php the_title(); ?>" src="<?php echo $image ?>" data-bgposition="left center" data-kenburns="on" data-duration="10000" data-ease="Linear.easeNone" data-bgfit="115" data-bgfitend="115" data-bgpositionend="right bottom" />
				
						<div class="tp-caption large_bg_black sfb stt tp-resizeme"
							data-x="center" data-hoffset="0"
							data-y="180" 
							data-speed="600"
							data-start="800"
							data-easing="Back.easeOut"
							data-endspeed="300"
							style="z-index: 3"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?> &raquo;</a>
						</div>
			
						<div class="tp-caption medium_bg_red customin customout tp-resizeme"
							data-x="center" data-hoffset="0"
							data-y="bottom" data-voffset="-100"
							data-customin="x:0;y:0;z:0;rotationX:0;rotationY:0;rotationZ:0;scaleX:0;scaleY:0;skewX:0;skewY:0;opacity:0;transformPerspective:600;transformOrigin:50% 50%;"
							data-customout="x:0;y:0;z:0;rotationX:0;rotationY:0;rotationZ:0;scaleX:0.75;scaleY:0.75;skewX:0;skewY:0;opacity:0;transformPerspective:600;transformOrigin:50% 50%;"
							data-speed="1000"
							data-start="1000"
							data-easing="Back.easeOut"
							data-endspeed="300"
							style="z-index: 4"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php echo get_option('op_read_more'); ?></a>
						</div>
			</li>
			
			<?php endwhile; wp_reset_query(); ?> 
            <?php endif; ?> 		
					
			</ul>
			<div class="tp-bannertimer"></div>
			
		</div>
	</div>
			<script type="text/javascript">

				var revapi;

				(function($){ 
                $(window).load(function(){ 

					   revapi = jQuery('.fullwidthbanner').revolution(
						{
							dottedOverlay:"none",
						delay:9000,
						startwidth:1140,
						startheight: 500,
						hideThumbs:200,
						
						thumbWidth:100,
						thumbHeight:50,
						thumbAmount:5,
						
						navigationType:"bullet",
						navigationArrows:"solo",
						navigationStyle:"round",
						
						touchenabled:"on",
						onHoverStop:"off",
						
						navigationHAlign:"center",
						navigationVAlign:"bottom",
						navigationHOffset:0,
						navigationVOffset:0,

						soloArrowLeftHalign:"left",
						soloArrowLeftValign:"center",
						soloArrowLeftHOffset:20,
						soloArrowLeftVOffset:0,

						soloArrowRightHalign:"right",
						soloArrowRightValign:"center",
						soloArrowRightHOffset:20,
						soloArrowRightVOffset:0,
								
						shadow:2,
						fullWidth:"on",
						fullScreen:"off",

						stopLoop:"off",
						stopAfterLoops:-1,
						stopAtSlide:-1,

						
						shuffle:"off",
						
						autoHeight:"off",						
						forceFullWidth:"off",						
												
						hideThumbsOnMobile:"off",
						hideBulletsOnMobile:"off",
						hideArrowsOnMobile:"off",
						hideThumbsUnderResolution:0,
						
						hideSliderAtLimit:0,
						hideCaptionAtLimit:0,
						hideAllCaptionAtLilmit:0,
						startWithSlide:0,
						fullScreenOffsetContainer: ""
						});

				})
                })(jQuery);

			</script>
