<?php
include "config/MainFunction.php";
$angels = $use->angels();
$articles = $use->randomArticleSeven();
$angels = $use->mergeArray($angels, $articles);
?>
<!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 href="css/font-awesome.min.css" rel="stylesheet">
    <link href="css/bootstrap.css" rel="stylesheet">
    <link href="css/reset.css" rel="stylesheet">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <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=Lobster&display=swap" rel="stylesheet">
    <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=Poppins:wght@300;400;500&display=swap" rel="stylesheet">
    <link href="css/owl.carousel.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&family=Rubik:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    <link href="css/responsive.css" rel="stylesheet">
    <link rel="icon" type="image/png" href="images/arch-logo.png" />
    <title>Lords Message</title>
</head>

<body>

     <header class="w-100 clearfix MainHeader py-2 bg-white" id="TopHeader">
          <div class="header_sec container">
                    <nav class="navbar navbar-expand-lg p-0">
                        <a class="navbar-brand head_logo" href="avascript:void(0)">
                            <img src="images/arch-logo.png" class="img-fluid" alt="No Logo"></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>
                                <li class="nav-item d-lg-block d-none">
                                    <a class="nav-link" href="javascript:void(0);"> <i class="penci-faicon fa fa-search"></i></a>
                                </li>
                                
                            </ul>
                        </div>


                    </nav>
                </div>
       </header>


<div class="left-ads"> 
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4801985982356333"
     crossorigin="anonymous"></script>
<!-- New - AV Square -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4801985982356333"
     data-ad-slot="4947244465"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>

</div>
<div class="right-ads"> 
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4801985982356333"
     crossorigin="anonymous"></script>
<!-- New - AV Square -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4801985982356333"
     data-ad-slot="4947244465"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>

</div>
    <!--------------section first------------>
    <section class="w-100 clearfix tarot_card py-5" id="Tarotcard">
        <div class="tarot_part">
            <div class="container">
            <div class="row">
            <div class="col-xl-6 m-auto">
                <div class="heading_tarot text-center pt-lg-5">
                    <h1>You have Lord's Message </h1>
                    <div class="text-center">
                         <h2>TODAY</h2>
                    </div>                    
                </div>
                <div class="tarot_btn mt-5 text-center pl-xl-4">
                        <a href="#Cardsection" class="text-decoration-none btn" onclick="reveal_message(this)">
                            Reveal My Message
                        </a>
                    </div>
                </div>
                </div>
            </div>
           
        </div>
    </section>
    <!--------------section first------------>
<section class="w-100 clearfix angel_section py-5" id="Angelsection">
           <div class="container-fluid">
                          <div class="about_angel py-sm-5 my-xl-5">
               <div class="row">
                   <div class="col-md-4">
                       <div class="angel_divine">
                           <img src="images/angle_boy.png" class="img-fluid">
                       </div>
                   </div>
                   <div class="col-md-8">
                       <div class="angel_image pl-xl-4 pr-md-5">
                       <div class="angel_image-flex">
                        <p>Angels are pure divine beings of light. Many of them work with humankind to bring about peace and guidance.</p>
                        <p>To connect with the angels, you do not need special skills as everyone has the ability to communicate with them. In doing so you will find that it leads to a happier, more peaceful and fulfilling life.</p>
                        <p>Angels are pure divine beings of light. Many of them work with humankind to ring about peace and guidance.To connect with the angels, you do not need special skills as everyone has the ability to communicate with them. In doing so you will find that it leads to a happier, more peaceful and fulfilling life.</p>
                         <div class="about_angel text-center py-4">
                        <a href="javascript:void(0);" class="btn">
                           Learn More About Angels
                       </a>
                       </div>
                       </div>
                       </div>
                   </div>
               </div>
               </div>
           </div>
     </section>
   
                <section class="w-100 clearfix card_section" id="Cardsection">
        <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 class="second_heading text-center">
                <h2>Which Arcana Do You Wish To Hear From Today?</h2>
                <p>Tap an Arcana Card below to reveal their message for you:</p>
            </div>
            
              <div class="card_section py-5">
                <div class="row">
                    <?php   foreach ($angels as $angel){ ?>
                <div class="col-lg-3 col-md-4 col-6">
                     <div class="black_images text-center">            
                        <a href="article.php?url=<?= $angel['url'] ?>">
                            <div class="black_images_1 py-2 h-100">
                                <img src="images/card/<?= ($angel['angel']) ?>.png" class="img-fluid">
                            </div>
                        </a>
                     </div>
                </div>
            <?php } ?>
            </div>
            </div>
        </div>
    </section>
<div class="container text-center">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4801985982356333"
     crossorigin="anonymous"></script>
<ins class="adsbygoogle"
     style="display:block; text-align:center;"
     data-ad-layout="in-article"
     data-ad-format="fluid"
     data-ad-client="ca-pub-4801985982356333"
     data-ad-slot="7397862576"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>

</div>


    <section class="w-100 clearfix populerarticle py-5" id="Articlesection">
        <div class="container">
            <div class="populer_section pt-4">
                <div class="row">
                <?php foreach ($use->popularArticles() as $article) : ?>
                    <div class="col-lg-4 col-md-6">
                        <a href="article.php?url=<?= $article['url'] ?>" class="text-decoration-none">
                            <div class="article_box my-lg-0 my-3">
                                <div class="article_img">
                                    <img src="images/thumb/<?= $article['image'] ?>" class="img-fluid">
                                </div>
                                <div class="article_content pt-sm-5 pt-3">
                                    <h4><?= $article['title'] ?>
                                    </h4>
                                </div>
                                <div class="article_btn">
                                    <span>Read More</span>
                                </div>
                            </div>
                        </a>
                    </div>
                    <?php endforeach; ?>
               <!--      <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>
            </div>
        </div>
    </section>
        <section class="footer text-center py-5">
            <div class="footer_logo">
                <a href="javascript:void(0);">
                    <img src="images/footer_logo.png" class="img-fluid">
                 </a>
            </div>
            <p class="footer-text mb-0">© Copyright AngelicPrayer 2020 - All Right Reserved.</p>
            <div class="footer-links">
               <ul class="nav header_menu_1 text-md-right text-center">
                               
                                <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);"> About us |</a>
                                </li>
                                 <li class="nav-item">
                                    <a class="nav-link" href="javascript:void(0);"> Contact us |</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="javascript:void(0);">  Privacy Policy |</a>
                                </li>
                                 <li class="nav-item">
                                    <a class="nav-link" href="javascript:void(0);"> Disclaimer |</a>
                                </li>
                                 <li class="nav-item">
                                    <a class="nav-link" href="javascript:void(0);">  Terms & Conditions |</a>
                                </li>
                                
                            </ul>
            </div>
            <div class="container">
        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4801985982356333"
     crossorigin="anonymous"></script>
<ins class="adsbygoogle"
     style="display:block"
     data-ad-format="autorelaxed"
     data-ad-client="ca-pub-4801985982356333"
     data-ad-slot="1746366052"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>


</div>
        </section>

        
        <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 reveal_message() {
            $('html, body').animate({
                scrollTop: $("#Cardsection").offset().top
            }, 1000);
        }
        function openNav() {
            document.getElementById("collapsibleNavbar").style.transform = "translate(0%, 0%)";
        }

        function closeNav() {
            document.getElementById("collapsibleNavbar").style.transform = "translate(-130%, 0%)";
        }
    </script>

    </body>

    </html>