HEX
Server: Apache/2.4.46 (Ubuntu)
System: Linux localhost 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64
User: root (0)
PHP: 7.4.16
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/acharya-rajnikant-backup/wp-content/themes/aacharyarajnikant/index.php
<?php
//Template Name: Home Page
get_header(); ?>
<!-- ================> Banner section start here <================== -->
<div class="banner__slider banner-style3 overflow-hidden">
    <div class="swiper-wrapper">
        <?php if (have_rows('hero_slides')): ?>
            <?php while (have_rows('hero_slides')): the_row();
                $alignment = get_sub_field('slide_alignment');
                $alignment_class = '';
                if ($alignment == 'center') {
                    $alignment_class = 'm-lg-auto text-lg-center';
                } elseif ($alignment == 'right') {
                    $alignment_class = 'ms-lg-auto';
                }
            ?>
                <div class="swiper-slide">
                    <div class="banner" style="background-image: url(<?php the_sub_field('slide_bg'); ?>);">
                        <div class="container">
                            <div class="banner__content <?php echo esc_attr($alignment_class); ?>">
                                <h2 class="text-white"><?php the_sub_field('slide_title'); ?></h2>
                                <p class="text-white"><?php the_sub_field('slide_desc'); ?></p>
                                <a href="<?php echo esc_url(get_sub_field('slide_btn_link') ?: '#'); ?>" class="default-btn move-right"><span><?php echo esc_html(get_sub_field('slide_btn_text') ?: 'GET HELP NOW'); ?></span></a>
                            </div>
                        </div>
                    </div>
                </div>
            <?php endwhile; ?>
        <?php else: ?>
            <div class="swiper-slide">
                <div class="banner" style="background-image: url(<?php echo get_template_directory_uri(); ?>/assets/images/banner/07.jpg);">
                    <div class="container">
                        <div class="banner__content ms-lg-auto">
                            <h2 class="text-white">A Powerful Religon Theme</h2>
                            <p class="text-white">Enthusiastically underwhelm quality benefits rather than professional
                                "outside the box" thinking. Distinctively network highly efficient leadership skills</p>
                            <a href="#" class="default-btn move-right"><span>GET HELP NOW</span></a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="swiper-slide">
                <div class="banner" style="background-image: url(<?php echo get_template_directory_uri(); ?>/assets/images/banner/08.jpg);">
                    <div class="container">
                        <div class="banner__content ms-lg-auto">
                            <h2>Love To Human Is Biggest Peace</h2>
                            <p>Enthusiastically underwhelm quality benefits rather than professional "outside the box"
                                thinking. Distinctively network highly efficient leadership skills</p>
                            <a href="#" class="default-btn move-right"><span>GET HELP NOW</span></a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="swiper-slide">
                <div class="banner" style="background-image: url(<?php echo get_template_directory_uri(); ?>/assets/images/banner/09.jpg);">
                    <div class="container">
                        <div class="banner__content m-lg-auto text-lg-center">
                            <h2 class="text-white">Religion Can't Divide You And Others</h2>
                            <p class="text-white">Enthusiastically underwhelm quality benefits rather than professional
                                "outside the box" thinking. Distinctively network highly efficient leadership skills</p>
                            <a href="#" class="default-btn move-right"><span>GET HELP NOW</span></a>
                        </div>
                    </div>
                </div>
            </div>
        <?php endif; ?>
    </div>
</div>
<!-- ================> Banner section end here <================== -->


<!-- ================> Event Time section start here <================== -->
<div class="eventtime">
    <div class="container">
        <div class="eventtime__area">
            <div class="eventtime__left">
                <h2><?php echo esc_html(get_field('event_title') ?: 'Upcoming Event'); ?></h2>
            </div>
            <div class="eventtime__center">
                <ul class="countdown count-down" data-date="<?php echo esc_attr(get_field('event_countdown_date') ?: 'Nove 09, 2022 21:14:01'); ?>">
                    <li class="clock-item">
                        <span class="count-number days">00</span>
                        <p class="count-text">Days</p>
                    </li>

                    <li class="clock-item">
                        <span class="count-number hours">00</span>
                        <p class="count-text">Hours</p>
                    </li>

                    <li class="clock-item">
                        <span class="count-number minutes">00</span>
                        <p class="count-text">Minutes</p>
                    </li>

                    <li class="clock-item">
                        <span class="count-number seconds">00</span>
                        <p class="count-text">Seconds</p>
                    </li>
                </ul>
            </div>
            <div class="eventtime__right">
                <a href="<?php echo esc_url(get_field('event_btn_link') ?: '#'); ?>" class="default-btn move-right"><span><?php echo esc_html(get_field('event_btn_text') ?: 'ALL EVENTS'); ?></span></a>
            </div>
        </div>
    </div>
</div>
<!-- ================> Event Time section end here <================== -->


<!-- ================> Service section start here <================== -->
<div class="service padding--top padding--bottom">
    <div class="container">
        <div class="section__header text-center">
            <h2><?php echo esc_html(get_field('services_title') ?: 'Our Services'); ?></h2>
            <?php if (get_field('services_desc')): ?>
                <p><?php echo esc_html(get_field('services_desc')); ?></p>
            <?php endif; ?>
        </div>
        <div class="section__wrapper">
            <div class="row g-4 align-items-center">
                <div class="col-lg-3 col-12">
                    <div class="service__left">
                        <?php if (have_rows('services_left_list')): ?>
                            <?php while (have_rows('services_left_list')): the_row(); ?>
                                <div class="service__item">
                                    <div class="service__inner">
                                        <div class="service__icon">
                                            <i class="<?php the_sub_field('service_icon'); ?>"></i>
                                        </div>
                                        <div class="service__content">
                                            <h5><?php the_sub_field('service_title'); ?></h5>
                                            <p><?php the_sub_field('service_desc'); ?></p>
                                        </div>
                                    </div>
                                </div>
                            <?php endwhile; ?>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col-lg-6 col-12">
                    <div class="service__center">
                        <div class="service__text">
                            <p><?php echo esc_html(get_field('services_center_top') ?: 'WHAT'); ?></p>
                            <h3><?php echo esc_html(get_field('services_center_mid') ?: 'Services'); ?></h3>
                            <h6><?php echo esc_html(get_field('services_center_bot') ?: 'WE PROVID'); ?></h6>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-12">
                    <div class="service__right">
                        <?php if (have_rows('services_right_list')): ?>
                            <?php while (have_rows('services_right_list')): the_row(); ?>
                                <div class="service__item">
                                    <div class="service__inner">
                                        <div class="service__icon">
                                            <i class="<?php the_sub_field('service_icon'); ?>"></i>
                                        </div>
                                        <div class="service__content">
                                            <h5><?php the_sub_field('service_title'); ?></h5>
                                            <p><?php the_sub_field('service_desc'); ?></p>
                                        </div>
                                    </div>
                                </div>
                            <?php endwhile; ?>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- ================> Service section end here <================== -->


<!-- ================> gallery section start here <================== -->
<?php
$festival_terms = get_terms(array(
    'taxonomy' => 'festival_category',
    'hide_empty' => true,
));
?>
<div class="gallery padding--top padding--bottom bg-light">
    <div class="container-fluid">
        <div class="section__header text-center">
            <h2><?php echo get_theme_mod('gallery_section_title', 'Hindu Festival'); ?></h2>
        </div>
        <div class="section__wrapper">
            <div class="gallery__filter">
                <ul>
                    <li data-filter="*" class="active">All</li>
                    <?php if (!empty($festival_terms) && !is_wp_error($festival_terms)) : ?>
                        <?php foreach ($festival_terms as $term) : ?>
                            <li data-filter=".<?php echo esc_attr($term->slug); ?>"><?php echo esc_html($term->name); ?></li>
                        <?php endforeach; ?>
                    <?php endif; ?>
                </ul>
            </div>
            <div class="row g-0 grid">
                <?php
                $gallery_args = array(
                    'post_type'      => 'festival_gallery',
                    'posts_per_page' => 12,
                    'post_status'    => 'publish',
                );
                $gallery_query = new WP_Query($gallery_args);

                if ($gallery_query->have_posts()) :
                    while ($gallery_query->have_posts()) : $gallery_query->the_post();
                        $terms = get_the_terms(get_the_ID(), 'festival_category');
                        $term_classes = '';
                        if ($terms && !is_wp_error($terms)) {
                            foreach ($terms as $term) {
                                $term_classes .= $term->slug . ' ';
                            }
                        }
                        $image_url = get_the_post_thumbnail_url(get_the_ID(), 'full');
                ?>
                        <div class="col-xl-2 col-lg-4 col-sm-6 col-12 <?php echo esc_attr($term_classes); ?>">
                            <div class="gallery__item">
                                <div class="gallery__inner">
                                    <div class="gallery__thumb">
                                        <?php if (has_post_thumbnail()) : ?>
                                            <?php the_post_thumbnail('full', array('class' => 'w-100')); ?>
                                        <?php else : ?>
                                            <img src="<?php echo get_template_directory_uri(); ?>/assets/images/gallery/home-3/01.jpg" alt="gallery-thumb" class="w-100">
                                        <?php endif; ?>
                                    </div>
                                    <div class="gallery__content text-center">
                                        <a href="<?php echo esc_url($image_url); ?>" data-rel="lightcase" class="gallery__icon"><i class="fas fa-plus"></i></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php
                    endwhile;
                    wp_reset_postdata();
                else :
                    ?>
                    <div class="col-12 text-center">
                        <p>No gallery items found. Please add items in Festivals Gallery.</p>
                    </div>
                <?php endif; ?>
            </div>
            <div class="text-center mt-5">
                <a href="<?php echo get_permalink(get_page_by_path('gallery')); ?>" class="default-btn move-right"><span>View All</span></a>
            </div>
        </div>
    </div>
</div>
<!-- ================> gallery section end here <================== -->


<!-- ================> Event section start here <================== -->
<div class="event padding--top padding--bottom">
    <div class="container">
        <div class="section__header text-center">
            <h2>Recent Event</h2>
            <p>Enthusiastically underwhelm quality benefits rather than professional outside the box thinking.
                Distinctively network highly efficient leadership skills</p>
        </div>
        <div class="section__wrapper">
            <div class="row g-4 justify-content-center">
                <?php
                $event_args = array(
                    'post_type'      => 'event',
                    'posts_per_page' => 3,
                    'post_status'    => 'publish',
                );
                $event_query = new WP_Query($event_args);

                if ($event_query->have_posts()) :
                    while ($event_query->have_posts()) : $event_query->the_post();
                        $event_date = get_field('event_date');
                        $event_time = get_field('event_time');
                        $event_location = get_field('event_location');

                        $day = '';
                        $month = '';
                        if ($event_date) {
                            $date_obj = date_create($event_date);
                            $day = date_format($date_obj, 'd');
                            $month = date_format($date_obj, 'M');
                        }
                ?>
                        <div class="col-lg-4 col-sm-6 col-12">
                            <div class="event__item">
                                <div class="event__inner">
                                    <div class="event__thumb">
                                        <a href="<?php the_permalink(); ?>">
                                            <?php if (has_post_thumbnail()) : ?>
                                                <?php the_post_thumbnail('full'); ?>
                                            <?php else : ?>
                                                <img src="<?php echo get_template_directory_uri(); ?>/assets/images/event/07.jpg" alt="event thumb">
                                            <?php endif; ?>
                                        </a>
                                        <?php if ($day && $month) : ?>
                                            <div class="event__thumb-date">
                                                <h6><?php echo esc_html($day); ?></h6>
                                                <p><?php echo esc_html($month); ?></p>
                                            </div>
                                        <?php endif; ?>
                                    </div>
                                    <div class="event__content">
                                        <a href="<?php the_permalink(); ?>">
                                            <h5><?php the_title(); ?></h5>
                                        </a>
                                        <div class="event__metapost">
                                            <ul class="event__metapost-info">
                                                <?php if ($event_time) : ?>
                                                    <li><i class="far fa-clock"></i> <?php echo esc_html($event_time); ?></li>
                                                <?php endif; ?>
                                                <?php if ($event_location) : ?>
                                                    <li><i class="fas fa-map-marker-alt"></i> <?php echo esc_html($event_location); ?></li>
                                                <?php endif; ?>
                                            </ul>
                                            <ul class="event__metapost-comentshare">
                                                <li class="event__metapost-coment">
                                                    <i class="far fa-comments"></i>
                                                    <a href="<?php comments_link(); ?>" class="event__metapost-count"><?php echo get_comments_number(); ?></a>
                                                </li>
                                                <li class="event__metapost-share">
                                                    <i class="fas fa-share-alt"></i>
                                                    <ul>
                                                        <li><a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode(get_permalink()); ?>" target="_blank"><i class="fab fa-facebook-f"></i></a></li>
                                                        <li><a href="https://twitter.com/intent/tweet?text=<?php echo urlencode(get_the_title()); ?>&url=<?php echo urlencode(get_permalink()); ?>" target="_blank"><i class="fab fa-twitter"></i></a></li>
                                                        <li><a href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo urlencode(get_permalink()); ?>&title=<?php echo urlencode(get_the_title()); ?>" target="_blank"><i class="fab fa-linkedin-in"></i></a></li>
                                                    </ul>
                                                </li>
                                            </ul>
                                        </div>
                                        <?php the_excerpt(); ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php
                    endwhile;
                    wp_reset_postdata();
                else :
                    ?>
                    <p class="text-center">No events found.</p>
                <?php endif; ?>
            </div>
        </div>
    </div>
</div>
<!-- ================> Event section end here <================== -->


<!-- ================> Shedule section start here <================== -->
<?php
$schedule_bg = get_field('schedule_bg_image') ?: get_template_directory_uri() . '/assets/images/bg-img/07.jpg';
?>
<div class="shedule padding--top padding--bottom bg-img"
    style="background: url(<?php echo esc_url($schedule_bg); ?>) rgba(0,0,0,.4);">
    <div class="container">
        <div class="row g-4">
            <div class="col-xl-4 col-12">
                <div class="section__header mb-xl-0 text-white">
                    <h2 class="text-white"><?php echo esc_html(get_field('schedule_title') ?: 'Festival Schedule'); ?></h2>
                    <?php if (get_field('schedule_desc_1')): ?>
                        <p><?php echo esc_html(get_field('schedule_desc_1')); ?></p>
                    <?php endif; ?>
                    <?php if (get_field('schedule_desc_2')): ?>
                        <p class="mb-0"><?php echo esc_html(get_field('schedule_desc_2')); ?></p>
                    <?php endif; ?>
                </div>
            </div>
            <div class="col-xl-8 col-12">
                <div class="section__wrapper">
                    <div class="shedule__top">
                        <?php if (have_rows('schedule_items')): ?>
                            <?php while (have_rows('schedule_items')): the_row(); ?>
                                <div class="shedule__item">
                                    <div class="shedule__inner">
                                        <div class="shedule__content">
                                            <div class="shedule__left">
                                                <div class="shedule__title">
                                                    <h6><?php the_sub_field('item_title'); ?></h6>
                                                    <p><?php the_sub_field('item_date_text'); ?></p>
                                                </div>
                                            </div>
                                            <div class="shedule__right">
                                                <div class="shedule__time">
                                                    <ul class="countdown count-down" data-date="<?php the_sub_field('item_countdown_date'); ?>">
                                                        <li class="clock-item">
                                                            <span class="count-number days">00</span>
                                                            <p class="count-text">Days</p>
                                                        </li>
                                                        <li class="clock-item">
                                                            <span class="count-number hours">00</span>
                                                            <p class="count-text">Hours</p>
                                                        </li>
                                                        <li class="clock-item">
                                                            <span class="count-number minutes">00</span>
                                                            <p class="count-text">Minutes</p>
                                                        </li>
                                                        <li class="clock-item">
                                                            <span class="count-number seconds">00</span>
                                                            <p class="count-text">Seconds</p>
                                                        </li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            <?php endwhile; ?>
                        <?php endif; ?>
                    </div>
                    <div class="shedule__bottom">
                        <div class="shedule__sunrise">
                            <div class="shedule__sunrise-item">
                                <div class="shedule__sunrise-inner">
                                    <div class="shedule__sunrise-thumb">
                                        <?php
                                        $sunrise_img = get_field('sunrise_image') ?: get_template_directory_uri() . '/assets/images/shedule/sun.png';
                                        ?>
                                        <img src="<?php echo esc_url($sunrise_img); ?>" alt="event sunrise">
                                    </div>
                                    <div class="shedule__sunrise-content">
                                        <h3><?php echo esc_html(get_field('sunrise_title') ?: 'SUNRISE'); ?></h3>
                                        <p><?php echo esc_html(get_field('sunrise_time') ?: '5.10 AM'); ?></p>
                                    </div>
                                </div>
                            </div>
                            <div class="shedule__sunrise-item">
                                <div class="shedule__sunrise-inner">
                                    <div class="shedule__sunrise-thumb">
                                        <?php
                                        $sunset_img = get_field('sunset_image') ?: get_template_directory_uri() . '/assets/images/shedule/sun2.png';
                                        ?>
                                        <img src="<?php echo esc_url($sunset_img); ?>" alt="event sunrise">
                                    </div>
                                    <div class="shedule__sunrise-content">
                                        <h3><?php echo esc_html(get_field('sunset_title') ?: 'SUNset'); ?></h3>
                                        <p><?php echo esc_html(get_field('sunset_time') ?: '5.10 AM'); ?></p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- ================> Shedule section end here <================== -->


<!-- ================> Sermon section start here <================== -->
<div class="sermon padding--top padding--bottom bg-light">
    <div class="container">
        <div class="section__header text-center">
            <h2>Latest Sermons</h2>
            <p>Proin Eget Tortor Risus. Cras ultricies ligula sed magna dictum porta. Vivamus suscipit tortor eget
                felis porttitor volutpat.</p>
        </div>
        <div class="section__wrapper">
            <div class="row g-4">
                <?php
                $sermon_args = array(
                    'post_type'      => 'sermon',
                    'posts_per_page' => 4,
                    'post_status'    => 'publish',
                );
                $sermon_query = new WP_Query($sermon_args);

                if ($sermon_query->have_posts()) :
                    while ($sermon_query->have_posts()) : $sermon_query->the_post();
                        $video_url = get_field('video_url');
                        $audio_url = get_field('audio_url');
                        $pdf_url = get_field('pdf_url');
                        $gallery_url = get_field('gallery_url');
                ?>
                        <div class="col-lg-6 col-12">
                            <div class="sermon__item">
                                <div class="sermon__inner">
                                    <div class="sermon__thumb">
                                        <?php if (has_post_thumbnail()) : ?>
                                            <?php the_post_thumbnail('full'); ?>
                                        <?php else : ?>
                                            <img src="<?php echo get_template_directory_uri(); ?>/assets/images/sermon/01.jpg" alt="sermon thumb">
                                        <?php endif; ?>
                                    </div>
                                    <div class="sermon__content">
                                        <a>
                                            <h6><?php the_title(); ?></h6>
                                        </a>
                                        <ul class="sermon__content-metapost">
                                            <li><i class="far fa-calendar"></i> <?php echo get_the_date('d M Y'); ?></li>
                                            <li><i class="fas fa-user"></i> <?php the_author(); ?></li>
                                        </ul>
                                        <ul class="sermon__content-social">
                                            <?php if ($video_url) : ?>
                                                <li><a href="<?php echo esc_url($video_url); ?>" data-rel="lightcase"><i class="fas fa-video"></i></a></li>
                                            <?php endif; ?>
                                            <?php if ($audio_url) : ?>
                                                <li><a href="<?php echo esc_url($audio_url); ?>" target="_blank"><i class="fas fa-headphones-alt"></i></a></li>
                                            <?php endif; ?>
                                            <?php if ($pdf_url) : ?>
                                                <li><a href="<?php echo esc_url($pdf_url); ?>" target="_blank"><i class="fas fa-file-alt"></i></a></li>
                                            <?php endif; ?>
                                            <?php if ($gallery_url) : ?>
                                                <li><a href="<?php echo esc_url($gallery_url); ?>"><i class="fas fa-image"></i></a></li>
                                            <?php endif; ?>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php
                    endwhile;
                    wp_reset_postdata();
                else :
                    ?>
                    <p class="text-center">No sermons found.</p>
                <?php endif; ?>
            </div>
        </div>
    </div>
</div>
<!-- ================> Sermon section end here <================== -->


<!-- ================> Cause section start here <================== -->
<?php
$cause_stat_1_value   = get_field('cause_stat_1_value', 'option') ?: '82.5%';
$cause_stat_1_label   = get_field('cause_stat_1_label', 'option') ?: 'Founded';
$cause_stat_2_value   = get_field('cause_stat_2_value', 'option') ?: '$ 1650';
$cause_stat_2_label   = get_field('cause_stat_2_label', 'option') ?: 'Donate';
$cause_stat_3_value   = get_field('cause_stat_3_value', 'option') ?: '$ 2000';
$cause_stat_3_label   = get_field('cause_stat_3_label', 'option') ?: 'Goal';
$cause_stat_4_value   = get_field('cause_stat_4_value', 'option') ?: '10';
$cause_stat_4_label   = get_field('cause_stat_4_label', 'option') ?: 'Donator';
$cause_stat_5_value   = get_field('cause_stat_5_value', 'option') ?: '60';
$cause_stat_5_label   = get_field('cause_stat_5_label', 'option') ?: 'Day to go';
$cause_donate_text    = get_field('cause_donate_text', 'option') ?: '66% Donated / $10,013 To Go';
$cause_donate_percent = get_field('cause_donate_percent', 'option') ?: '60%';
$cause_donate_link    = get_field('cause_donate_link', 'option') ?: '#';
?>
<div class="cause padding--top padding--bottom bg-img"
    style="background: url(<?php echo get_template_directory_uri(); ?>/assets/images/bg-img/08.jpg) rgba(0,0,0,.4);">
    <div class="container">
        <div class="section__header text-center">
            <h2 class="text-white">Urgent Causes</h2>
        </div>
        <div class="section__wrapper">
            <div class="cause__top row justify-content-center g-4 row-cols-xl-5 row-cols-md-3 row-cols-sm-2 row-cols-1">
                <div class="cause__item">
                    <div class="cause__inner">
                        <div class="cause__content">
                            <h3><?php echo esc_html($cause_stat_1_value); ?></h3>
                            <h6><?php echo esc_html($cause_stat_1_label); ?></h6>
                        </div>
                    </div>
                </div>
                <div class="cause__item">
                    <div class="cause__inner">
                        <div class="cause__content">
                            <h3><?php echo esc_html($cause_stat_2_value); ?></h3>
                            <h6><?php echo esc_html($cause_stat_2_label); ?></h6>
                        </div>
                    </div>
                </div>
                <div class="cause__item">
                    <div class="cause__inner">
                        <div class="cause__content">
                            <h3><?php echo esc_html($cause_stat_3_value); ?></h3>
                            <h6><?php echo esc_html($cause_stat_3_label); ?></h6>
                        </div>
                    </div>
                </div>
                <div class="cause__item">
                    <div class="cause__inner">
                        <div class="cause__content">
                            <h3><?php echo esc_html($cause_stat_4_value); ?></h3>
                            <h6><?php echo esc_html($cause_stat_4_label); ?></h6>
                        </div>
                    </div>
                </div>
                <div class="cause__item">
                    <div class="cause__inner">
                        <div class="cause__content">
                            <h3><?php echo esc_html($cause_stat_5_value); ?></h3>
                            <h6><?php echo esc_html($cause_stat_5_label); ?></h6>
                        </div>
                    </div>
                </div>
            </div>
            <div class="cause__bottom">
                <div class="cause__bars">
                    <div class="donaterange__content text-center">
                        <h4><?php echo esc_html($cause_donate_text); ?></h4>
                        <div class="donaterange__bars" data-percent="<?php echo esc_attr($cause_donate_percent); ?>">
                            <div class="donaterange__bar"></div>
                        </div>
                        <a href="<?php echo esc_url($cause_donate_link); ?>" class="default-btn move-right"><span>Donate <i class="fas fa-heart"></i></span></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- ================> Cause section end here <================== -->



<!-- ================> Sponsor section start here <================== -->
<div class="sponsor">
    <div class="container">
        <div class="sponsor__slider overflow-hidden">
            <div class="swiper-wrapper">
                <?php
                if (have_rows('sponsor_logos', 'option')) :
                    while (have_rows('sponsor_logos', 'option')) : the_row();
                        $logo      = get_sub_field('sponsor_logo');
                        $logo_url  = get_sub_field('sponsor_url');
                        $logo_src  = $logo ? $logo['url'] : '';
                        $logo_alt  = $logo ? $logo['alt'] : 'sponsor';
                ?>
                        <div class="swiper-slide">
                            <div class="sponsor__item">
                                <div class="sponsor__inner">
                                    <div class="sponsor__thumb">
                                        <?php if ($logo_url) : ?>
                                            <a href="<?php echo esc_url($logo_url); ?>" target="_blank">
                                                <img src="<?php echo esc_url($logo_src); ?>" alt="<?php echo esc_attr($logo_alt); ?>">
                                            </a>
                                        <?php else : ?>
                                            <img src="<?php echo esc_url($logo_src); ?>" alt="<?php echo esc_attr($logo_alt); ?>">
                                        <?php endif; ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php
                    endwhile;
                else :
                    // Fallback static logos if no ACF data entered yet
                    for ($s = 1; $s <= 4; $s++) :
                    ?>
                        <div class="swiper-slide">
                            <div class="sponsor__item">
                                <div class="sponsor__inner">
                                    <div class="sponsor__thumb">
                                        <img src="<?php echo get_template_directory_uri(); ?>/assets/images/sponsor/0<?php echo $s; ?>.png" alt="sponsor thumb">
                                    </div>
                                </div>
                            </div>
                        </div>
                <?php
                    endfor;
                endif;
                ?>
            </div>
        </div>
    </div>
</div>
<!-- ================> Sponsor section end here <================== -->


<!-- ================> Contact section start here <================== -->
<?php
$contact_title = get_field('contact_title', get_the_ID()) ?: 'Contact Us';
$contact_desc  = get_field('contact_description', get_the_ID()) ?: 'Proin gravida nibh vel velit auctor aliquet. Aenean sollicitudin, lorem quis bibendum auctor, nisi elit consequat ipsum, nec sagittis sem nibh id elit.';
?>
<div class="contact padding--top padding--bottom bg-light">
    <div class="container">
        <div class="section__header text-center">
            <h2><?php echo esc_html($contact_title); ?></h2>
            <p><?php echo esc_html($contact_desc); ?></p>
        </div>
        <div class="section__wrapper">
            <div class="contact__form">
                <form class="d-flex flex-wrap justify-content-between"
                    action="<?php echo esc_url(admin_url('admin-ajax.php')); ?>"
                    id="contact-form"
                    method="POST">
                    <input type="hidden" name="action" value="contact_form">
                    <input type="text" placeholder="Your Name" id="contact_name" name="name" required="required">
                    <input type="email" placeholder="Your Email" id="contact_email" name="email" required>
                    <input class="w-100" type="text" placeholder="Subject" id="contact_subject" name="subject" required>
                    <textarea placeholder="Your Message" rows="8" name="message" id="contact_message" required></textarea>
                    <div class="text-center w-100">
                        <button type="submit" class="default-btn move-right"><span>SEND NOW</span></button>
                    </div>
                </form>
                <div class="form-message mt-3"></div>
            </div>
        </div>
    </div>
</div>
<!-- ================> Contact section end here <================== -->


<!-- ================> Location section start here <================== -->
<?php get_template_part('inc/location'); ?>
<!-- ================> Location section end here <================== -->



<?php get_footer(); ?>