File Manager V1.5

[SYSTEM@ROOT]: /home/ketechno/dakotaoilug.com/
INJECT_FILE:
NEW_ENTRY:

FILE_CONTENT: index.php

<?php
require_once 'header.php';
require_once 'admin/functions.php';

// Get homepage sliders and services
$homepage_sliders = getAllHomepageSliders();
$homepage_services = getAllHomepageServices();
$homepage_features = getAllHomepageFeatures();
$homepage_works = getAllHomepageWorks();
?>

<!--Main Slider-->
    <section class="main-slider">
        <div class="main-slider-carousel owl-carousel owl-theme">
            <?php if ($homepage_sliders && !empty($homepage_sliders)): ?>
                <?php foreach ($homepage_sliders as $slider): ?>
                    <div class="slide" style="background-image:url(<?php echo htmlspecialchars($slider['background_image']); ?>)">
                        <div class="auto-container">
                            <div class="content">
                                <h2><?php echo htmlspecialchars($slider['title']); ?> <span><?php echo htmlspecialchars($slider['subtitle']); ?></span></h2>
                            </div>
                        </div>
                    </div>
                <?php endforeach; ?>
            <?php endif; ?>
        </div>
    </section>
    <!--End Main Slider-->

    <style>
        .main-slider .slide {
            background-size: cover;
            background-position: center;
            height: 700px; /* Adjust height as needed */
        }
        @media (max-width: 768px) {
            .main-slider .slide {
                height: 500px; /* Adjust for mobile */
            }
        }
    </style>

    <!--Services Section-->
    <section class="services-section" style="background-image:url(images/resource/image-1.png)">
	
        <div class="auto-container">
             
            <!--Upper Section-->
            <div class="upper-section">
			<div class="sec-title centered">
                    <h3 style="color:#f2791d; font-weight:700;">Our Services</h3>
                </div>
                <div class="row clearfix">
				
                    
                    <?php if ($homepage_services && !empty($homepage_services)): ?>
                        <?php foreach ($homepage_services as $service): ?>
                            <!--Services Block-->
							
                            <div class="services-block col-lg-4 col-md-6 col-sm-12">
                               <a href="service_detail.php?slug=<?php 
                                            $slug = $service['slug'] ?? strtolower(str_replace(' ', '-', preg_replace('/[^A-Za-z0-9\-\s]/', '', $service['title'])));
                                            echo urlencode($slug); 
                                        ?>"> <div class="inner-box wow fadeInLeft" data-wow-delay="0ms" data-wow-duration="1500ms">
                                    <div class="content">
                                        <div class="image">
                                            <img src="<?php echo htmlspecialchars($service['image']); ?>" alt="<?php echo htmlspecialchars($service['title']); ?>" />
                                           
                                        </div>
                                        <h3><?php echo htmlspecialchars($service['title']); ?></h3>
										
                                        <div class="text">
                                            <?php echo htmlspecialchars($service['description']); ?>
                                            
                                        </div>
                                    </div>
                                </div></a>
                            </div>
                        <?php endforeach; ?>
                    <?php endif; ?>
                    
                </div>
            </div>
            
            <!--Lower Section-->
            <div class="lower-section">
                <div class="row clearfix">
                    
                    <!--Image Column-->
                    <div class="image-column col-lg-6 col-md-12 col-sm-12">
                        <div class="inner-column">
                            <div class="image">
                                <img src="images/resource/p2.jpeg" alt="" />
                            </div>
                        </div>
                    </div>
                    
                    <!--Content Column-->
                    <div class="content-column col-lg-6 col-md-12 col-sm-12">
					 <div class="inner-column">
					<h2>Aviation Medical Evacuation</h2>

 <h3>Connecting you with expert care, wherever you need it.</h3>

 <div class="text">We partner with top medical professionals and aviation specialists to provide seamless medical evacuation services. Our team coordinates every detail, linking you with the right experts and resources for safe and comfortable transport.
<br>
- Access to specialized medical equipment and personnel<br>
- Personalized support for patients with unique needs</div>

                      <br> <hr>
                            <h2>Unlock the power of precision with aviation Fuel Services!</h2>
                            <h3>If it Runs on Jet fuel we'll still supply It!</h3>
                            <div class="text">Every Flight has a story to tell, and with the right fuel, you can hear it loud and clear!
							Whether you're a seasoned service or just starting out</div>
                             <!--<a href="services.php" class="theme-btn btn-style-two">read more</a>-->
                            <a href="appointment.php" class="theme-btn btn-style-two">Order Fuel </a>
                        </div>
                    </div>
                    
                </div>
            </div>
            
        </div>
    </section>
    <!--End Services Section-->
    
    <!--Services Section Two
    <section class="services-section-two" style="padding:5px;">
        <div class="auto-container">
        <div class="sec-title centered">
                    <h3 style="color:#2ed0b0;">Our Services</h3>
                </div>
            <div class="row clearfix">
                <?php// if ($homepage_features && !empty($homepage_features)): ?>
                    <?php //foreach ($homepage_features as $feature): ?>
                        <!--Services Block Two
                        <div class="services-block-two col-lg-3 col-md-6 col-sm-12">
                            <div class="inner-box wow fadeInLeft" data-wow-delay="0ms" data-wow-duration="1500ms">
                                <div class="icon-box">
                                    <span class="<?php //echo htmlspecialchars($feature['icon']); ?>"></span>
                                </div>
                                <h3><a href="feature_detail.php?id=<?php// echo (int)$feature['id']; ?>"><?php// echo htmlspecialchars($feature['title']); ?></a></h3>
                                <div class="text">
                                    <?php
                                  //$desc = htmlspecialchars($feature['description']);
                                   // echo strlen($desc) > 100 ? substr($desc, 0, 100) . '...' : $desc;
                                    ?>
                                </div>
                            </div>
                        </div>
                    <?php// endforeach; ?>
                <?php// endif; ?>
            </div>
        </div>
    </section>
    <!--End Services Section Two-->
    
    <!--Accordian Section-->
        <section class="accordian-section" >
            <div class="auto-container">
                <div class="row clearfix">
                    
                    <!--Accordian Column-->
                    <div class="accordian-column col-lg-6 col-md-12 col-sm-12">
                        <div class="inner-column">
                            
                            <ul class="accordion-box accordion-style-one">
                                        
                                <!--Block-->
                                <li class="accordion block active-block">
                                    <div class="acc-btn active"><div class="icon-outer">
									<span class="icon icon-plus flaticon-plus-symbol">
									</span> <span class="icon icon-minus flaticon-substract">
									</span></div>Why use quality Aircraft fuel</div>
                                    <div class="acc-content current">
                                        <div class="content">
                                            <div class="text">
                                                <p><strong>Enhanced Safety</strong></br> The primary reason for strict fuel quality standards
												is safety. Contaminated or off-specification fuel can lead to severe 
												issues, including engine malfunctions or complete in-flight engine failure, 
												which can have catastrophic consequences.
    </p>
                                            </div>
                                        </div>
                                    </div>
                                </li>

                                <!--Block-->
                                <li class="accordion block ">
                                    <div class="acc-btn "><div class="icon-outer"><span class="icon icon-plus flaticon-plus-symbol">
									</span> <span class="icon icon-minus flaticon-substract"></span></div>Engine Performance and Reliability</div>
                                    <div class="acc-content ">
                                        <div class="content">
                                            <div class="text">
                                                <p>Clean, high-quality fuel ensures the engine performs optimally, delivering 
												the correct power output and throttle response. The correct fuel
												properties, such as specific viscosity and octane ratings 
												(for Avgas), prevent issues like engine knocking or detonation 
												(in piston engines) and guarantee consistent performance across varying flight conditions.</br>
  
	</p>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                
                                <!--Block-->
                                <li class="accordion block">
                                    <div class="acc-btn"><div class="icon-outer">
									<span class="icon icon-plus flaticon-plus-symbol"></span>
									<span class="icon icon-minus flaticon-substract"></span></div> Environmental Benefits </div>
                                    <div class="acc-content">
                                        <div class="content">
                                            <div class="text">
                                                <p> High-quality fuels, particularly sustainable aviation fuels (SAF), have fewer impurities (like sulfur) 
												and burn cleaner, resulting in lower emissions of harmful pollutants and a smaller carbon footprint. 
                                            </div>
                                        </div>
                                    </div>
                                </li>
                
                            </ul>
                            
                        </div>
                    </div>
                    <!--Content Column-->
                    <div class="content-column col-lg-6 col-md-12 col-sm-12">
                        <div class="inner-column">
                            <h2>Don’t miss out!, Get regular tips on benefits of quality Fuel </h2>
                            <h3>Potential issues emerging from contaminated aviation fuels</h3>
                            <div class="text">
    1. Corrosion – The reaction between the fuel and aircraft components leads to corrosion.</br>
    2. Engine failure – The most severe problem posed by impure fuel, engine failure might lead to grounded aircraft </br>
    3. Degradation – Fuel degradation affects the efficient operation of the aircraft, with the insufficient
	heat energy derivable from the fuel resulting in performance lag</br>
    </div>
                            <a href="appointment.php" class="theme-btn btn-style-three">Order Fuel</a>
                             <!-- <a href="appointment.php" class="theme-btn btn-style-one" >Book an Appoinment</a>-->
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!--End Accordian Section-->
        <!--Expert Section-->
        <section class="expert-section" style="background-image:url(images/background/2.png)">
            <div class="auto-container">
                <!--Sec Title-->
                <div class="sec-title centered">
                    <h3 style="color:#2ed0b0;">Our Recent works</h3>
                </div>
                
                <div class="row clearfix">
                    <?php 
                    // Get homepage works
                    $homepage_works = getAllHomepageWorks();
                    
                    if ($homepage_works && !empty($homepage_works)): 
                        foreach ($homepage_works as $work): 
                    ?>
                    <!--Team Block-->
                    <div class="team-block col-lg-4 col-md-6 col-sm-12">
                        <div class="inner-box wow fadeInLeft" data-wow-delay="0ms" data-wow-duration="1500ms">
                            <div class="image">
                                <a href="<?php echo htmlspecialchars($work['link_url']); ?>">
                                    <img src="<?php echo htmlspecialchars($work['image_url']); ?>" alt="<?php echo htmlspecialchars($work['title']); ?>" />
                                </a>
                            </div>
                            <div class="lower-content">
                                <h3><a href="<?php echo htmlspecialchars($work['link_url']); ?>"><?php echo htmlspecialchars($work['title']); ?></a></h3>
                                <div class="text"><?php echo htmlspecialchars($work['description']); ?></div>
                                 <!-- <a href="feature_detail.php?id=4" class="theme-btn btn-style-two">Read more</a>-->
                            </div>
                        </div>
                    </div>
                    <?php 
                        endforeach; 
                    else: 
                    ?>
                    <!--Default Works if No Database Content-->
                    <div class="team-block col-lg-4 col-md-6 col-sm-12">
                        <div class="inner-box wow fadeInLeft" data-wow-delay="0ms" data-wow-duration="1500ms">
                            <div class="image">
                                <a href="services.php#"><img src="images/resource/car-repairs.jpeg" alt="" /></a>
                            </div>
                            <div class="lower-content">
                                <h3><a href="services.php">Car Repairs</a></h3>
                                <div class="text">Professional car repair services</div>
                                <a href="services.php" class="theme-btn btn-style-two">Read more</a>
                            </div>
                        </div>
                    </div>
                    <?php endif; ?>
                </div>
            </div>
        </section>
<?php require_once 'footer.php'; ?>
[ KEMBALI ]