HEX
Server: Apache/2.4.65 (Debian)
System: Linux 744648315b55 6.8.0-84-generic #84-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 5 22:36:38 UTC 2025 x86_64
User: (1000)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/desert-companion/inc/themes/celexo/front/section-blog.php
<?php  
	$cosmobit_blog_options_hide_show= get_theme_mod('cosmobit_blog_options_hide_show','1');
	$cosmobit_blog2_ttl		= get_theme_mod('cosmobit_blog2_ttl','Our Blog'); 
	$cosmobit_blog2_subttl	= get_theme_mod('cosmobit_blog2_subttl','Latest Posts'); 
	$cosmobit_blog2_text	= get_theme_mod('cosmobit_blog2_text','The majority have suffered alteration in some form, by cted ipsum dolor sit amet, consectetur adipisicing elit.'); 
	$cosmobit_blog2_num		= get_theme_mod('cosmobit_blog2_num','6'); 
	if($cosmobit_blog_options_hide_show=='1'):
?>	
<section id="blog2_options" class="dt__posts dt__posts--two dt-py-default front2--blog">
	<div class="dt-container">
		<?php if ( ! empty( $cosmobit_blog2_ttl )  || ! empty( $cosmobit_blog2_subttl ) || ! empty( $cosmobit_blog2_text )) : ?>
			<div class="dt-row dt-mb-5 dt-pb-2">
				<div class="dt-col-xl-7 dt-col-lg-8 dt-mx-auto dt-text-center">
					<div class="dt__siteheading wow fadeInUp">
						<?php if ( ! empty( $cosmobit_blog2_ttl ) ) : ?>
							<div class="subtitle"><?php echo wp_kses_post($cosmobit_blog2_ttl); ?></div>
						<?php endif; ?>
						
						<?php if ( ! empty( $cosmobit_blog2_subttl ) ) : ?>
							<h2 class="title"><?php echo wp_kses_post($cosmobit_blog2_subttl); ?></h2>
						<?php endif; ?>
						
						<?php if ( ! empty( $cosmobit_blog2_text ) ) : ?>
							<div class="text">
								<?php echo wp_kses_post($cosmobit_blog2_text ); ?>
							</div>
						<?php endif; ?>
					</div>
				</div>
			</div>
			<?php endif; ?>
		<div class="dt-row wow fadeInUp">
			<div class="dt-col-lg-12 dt-col-md-12 dt-col-12">
				<div class="dt__posts-carousel dt__dotstyle--one owl-carousel owl-theme">
					<?php 
						$cosmobit_post_args = array( 'post_type' => 'post', 'posts_per_page' => $cosmobit_blog2_num,'post__not_in'=>get_option("sticky_posts")) ; 	
						
						$cosmobit_wp_query = new WP_Query($cosmobit_post_args);
						if($cosmobit_wp_query)
						{	
						while($cosmobit_wp_query->have_posts()):$cosmobit_wp_query->the_post();
						?>
						<div class="owl-carousel-item">
							<?php get_template_part('template-parts/content','page'); ?>
						</div>
					<?php endwhile; } wp_reset_postdata(); ?>
				</div>
			</div>
		</div>
	</div>
</section>
<?php endif; ?>