HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/bristolfilton.co.uk/public_html/wp-content/themes/Yegor/inc/carousal.php
	<div class="top-feature">
		<div class="container"><div class="row">
					<ul id="top-slider">
					<?php 	
					$count = ft_of_get_option('fabthemes_slide_number','4');
					$slidecat =ft_of_get_option('fabthemes_slide_categories');
					
					$query = new WP_Query( array( 'cat' =>$slidecat,'posts_per_page' =>$count ) );
		           	if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post();	?>
		 	
			 		<li class="col-xs-3">
			 			
					<?php
						$thumb = get_post_thumbnail_id();
						$img_url = wp_get_attachment_url( $thumb,'full' ); //get full URL to image (use "large" or "medium" if the images too big)
						$image = aq_resize( $img_url, 720, 480, true ); //resize & crop the image
					?>
					
					<?php if($image) : ?>
						<a href="<?php the_permalink(); ?>"><img class="img-slide" src="<?php echo $image ?>"/></a>
					<?php endif; ?>
	
					
						<h3><?php the_title(); ?></h3>
					
						
					
			<?php endwhile; endif; ?>
					    		
		  </li>
		</ul>
		<div class="clearfix"></div>
		<div class="slide-pagination" id="top-page"></div>

		</div></div>
	</div>