<?php
   include "config/MainFunction.php";
   // $base_url = $use->getbaseurl();
   $angel_icons = $use->angels();
   $articles = $use->randomArticleSeven();
   $angels = $use->mergeArray($angel_icons, $articles);
   // $horoscope_sign_menus = $use->horoscope_sign_menus();
   ?>
<!doctype html>
<html lang="en">
   <head>
      <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4801985982356333"
         crossorigin="anonymous"></script>
      <!-- Required meta tags -->
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <!-- Bootstrap CSS -->
      <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
      <link rel="stylesheet" href="css/new-style.css?<?php echo time();?>">
      <link rel="stylesheet" href="css/bootstrap.css?<?php echo time();?>">
      <link rel="stylesheet" href="css/font-awesome.min.css">
      <link rel="stylesheet" href="css/message.css?<?php echo time();?>">
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
      <link rel="preconnect" href="https://fonts.googleapis.com">
      <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
      <link href="https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@800&display=swap" rel="stylesheet">
      <link rel="icon" type="image/png" href="images/arch-logo.png" />
      <title>Lords Message Mp3</title>
   </head>
   <body>
      <div class="left_ad">
         <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4801985982356333"
            crossorigin="anonymous"></script>
         <!-- NEW AV Display Horizontal -->
         <ins class="adsbygoogle"
            style="display:block"
            data-ad-client="ca-pub-4801985982356333"
            data-ad-slot="4851590288"
            data-ad-format="auto"
            data-full-width-responsive="true"></ins>
         <script>
            (adsbygoogle = window.adsbygoogle || []).push({});
         </script>
      </div>
      <div class="right_ad">
         <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4801985982356333"
            crossorigin="anonymous"></script>
         <!-- NEW AV Display Horizontal -->
         <ins class="adsbygoogle"
            style="display:block"
            data-ad-client="ca-pub-4801985982356333"
            data-ad-slot="4851590288"
            data-ad-format="auto"
            data-full-width-responsive="true"></ins>
         <script>
            (adsbygoogle = window.adsbygoogle || []).push({});
         </script>
      </div>
      <header class="w-100 clearfix MainHeader px-md-4 py-2" id="TopHeader">
         <div class="header_sec container-fluid">
            <nav class="navbar navbar-expand-lg p-0">
               <a class="navbar-brand head_logo" href="javascript:void(0)">
               <img class="logo" src="images/arch-logo.png" alt="Logi"></a>
               <button class="navbar-toggler" type="button" id="sidebar" onclick="openNav()">
               ☰
               </button>
               <div class="side_bar pl-xl-5" id="collapsibleNavbar">
                  <ul class="navbar-nav header_menu">
                     <a href="javascript:void(0)" class="closebtn d-lg-none d-block text-decoration-none text-dark" onclick="closeNav()">×</a>
                     <li class="nav-item">
                        <a class="nav-link" href="javascript:void(0);">Home</a>
                     </li>
                     <li class="nav-item">
                        <a class="nav-link" href="javascript:void(0);">Daily Message</a>
                     </li>
                     <li class="nav-item">
                        <a class="nav-link" href="javascript:void(0);">Guardian Angel</a>
                     </li>
                     <li class="nav-item">
                        <a class="nav-link" href="javascript:void(0);">Protection</a>
                     </li>
                     <li class="nav-item">
                        <a class="nav-link" href="javascript:void(0);"> Blessing & Prayers</a>
                     </li>
                     <li class="nav-item">
                        <a class="nav-link" href="javascript:void(0);"> Healing</a>
                     </li>
                  </ul>
               </div>
            </nav>
         </div>
      </header>
      <section class="intro">
         <div class="border_top py-4">
            <div class="container">
               <div class="row ">
                  <div class="col-md-12">
                     <div class="ready_today text-center">
                        <div class="inner_part">
                           <div class="Guardvare">
                              <h2 class="mb-0">You Have Lord'S Message Today   </h2>
                           </div>
                           <div class="reveal_message">
                              <div class="message_img">
                                 <a href="#reveal_card" class="text-decoration-none">
                                 <img src="images/message.png" alt="Logi">
                                 </a>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
         <div class="second_section">
            <div class="container">
               <div class="row">
                  <div class="col-md-6">
                     <div class="second_img">
                        <img src="images/second_img.png">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="second_text">
                        <h1>OUR LORD HAS A MESSAGE FOR YOU.</h1>
                        <p>The words in these messages are filled with divine
                           wisdom, and they're designed to help guide your
                           life on the right path so that all of God's blessings
                           can come into fruition! Listen closely - it could be
                           what helps save or lands an important opportunity<br><br>
                           When we are feeling lost and in need of guidance,
                           Our Lord gives us wisdom from the Bible. Listen to
                           his messages here for making your best decisions!<br><br>
                           Let this be your daily guiding light in life.
                        </p>
                     </div>
                  </div>
               </div>
            </div>
         </div>
         <div class="container">
            <div class="ads" style="text-align: center; margin: 0 auto; margin-top: 5px; margin-bottom: 5px">
               <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
               <!-- AP - Horizontal -->
               <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4801985982356333" data-ad-slot="5263271406" data-ad-format="auto" data-full-width-responsive="true"></ins>
               <script>
                  (adsbygoogle = window.adsbygoogle || []).push({});
               </script>
            </div>
         </div>
      </section>
      <section class="cards_images w-100 clearfix" id="reveal_card">
         <div class="container pb-5">
            <div class="heading_zodiac text-center">
               <h3>PICK WHICH LORD'S MESSAGE YOU WISH TO HEAR TODAY!</h3>
               <h4>Tap On The Lord's Message Below To Reveal His Message
                 
               </h4>
            </div>
            <div class="row d-flex align-items-center justify-content-center py-5" id="cards_img">
               <?php 
                  if(count($angels) > 0){
                  foreach ($angels as $angel){ ?>
               <div class="flip-box">
                  <a href="article.php?url=<?= $angel['url'] ?>">
                     <div class="flip-container flip-box-inner">
                        <div class="flip-box-front">
                           <img src="images/card/<?= ($angel['angel']) ?>.png" alt="<?= $angel['angel'] ?>" title="<?= $angel['angel'] ?>" class="">
                        </div>
                     </div>
                  </a>
               </div>
               <?php }}else{ 
                  foreach ($angel_icons as $angel){ ?>
               <div class="flip-box">
                  <a href="javascript:void(0)">
                     <div class="flip-container flip-box-inner">
                        <div class="flip-box-front">
                           <img src="images/card/<?= ($angel['angel']) ?>.png" alt="<?= ($angel['angel']) ?>" title="<?= $angel['angel'] ?>" class="">
                        </div>
                     </div>
                  </a>
               </div>
               <?php }} ?>  
            </div>
         </div>
         <div class="container py-5">
         <div class="row">
            <?php foreach ($use->popularArticles() as $article) : ?>
            <div class="col-md-4 mb-3">
               <div class="box h-100 text-center position-relative">
                  <div class="image">
                     <img src="images/thumb/<?= $article['image'] ?>" alt="" style="width: 100%;object-fit: cover">
                  </div>
                  <div class="box_small">
                     <div class="text">
                        <h4><?= $article['title'] ?></h4>
                     </div>
                     <div class="text-left px-3  pb-2 read_more">
                        <a href="article.php?url=<?= $article['url'] ?>" class="text-link btn">Read More</a>
                     </div>
                  </div>
               </div>
            </div>
            <?php endforeach; ?>
         </div>
         <div class="ads" style="text-align: center; margin: 0 auto; margin-top: 5px; margin-bottom: 5px">
            <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
            <!-- AP - Horizontal -->
            <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4801985982356333" data-ad-slot="5263271406" data-ad-format="auto" data-full-width-responsive="true"></ins>
            <script>
               (adsbygoogle = window.adsbygoogle || []).push({});
            </script>
         </div>
      </section>
      <section class="footer">
        <div class="container">
            <div class="first_footer pb-3 mb-3">
            <div class="row">
                <div class="col-md-6">
                     <a class="footer_logo" href="avascript:void(0)">
                         <img  src="images/arch-logo.png" alt="Logi">
                     </a>
                </div>
                <div class="col-md-6">
                    <div class="follow_part text-center">
                        <h5>Follow Us</h5>
                           <ul class="nav footer_menu">
                               <li class="nav-item">
                                    <a class="nav-link" href="javascript:void(0);"> <i class="fa fa-facebook" aria-hidden="true"></i>
                                    </a>
                                 </li>
                                 <li class="nav-item">
                                    <a class="nav-link" href="javascript:void(0);"> <i class="fa fa-instagram" aria-hidden="true"></i>

                                    </a>
                                 </li>
                                 <li class="nav-item">
                                    <a class="nav-link" href="javascript:void(0);"> <i class="fa fa-twitter" aria-hidden="true"></i>
                                    </a>
                                 </li>
                           </ul>
                    </div>
                </div>
            </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                     <p class="footer-text">© 2021 ARCHANGEL RAPHAEL - All rights reserved.</p>
                </div>
                <div class="col-md-6">
                    <div class="footer-links text-right">
                        <a class="footer-link" href="terms-and-conditions.php">Terms &amp; Conditions</a>
                        <a class="footer-link" href="privacy-policy.php">Privacy Policy</a>
                 </div>
                </div>
            </div>
        </div>          
      </section>
      <script src="js/jquery.min.js"></script>
      <script src="js/popper.min.js"></script>
      <script src="js/bootstrap.min.js"></script>
      <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.2.0/jquery.flexslider-min.js"></script>
      <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
      <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js" integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT" crossorigin="anonymous"></script>
      <script>
         function openNav() {
               document.getElementById("collapsibleNavbar").style.transform = "translate(0%, 0%)";
               }
         
               function closeNav() {
               document.getElementById("collapsibleNavbar").style.transform = "translate(-130%, 0%)";
               }
         
         
         
      </script>
   </body>
</html>