<?php
include_once("include/main.inc.php");
$hover = 'blog';

$blog_query = mysqli_query($GLOBALS['dbconn'], "select catImage,catName,blogDname,catDesc,blog_written,blogDate from blog_tbl");

$page_metatitle = "Blogs | Online Astrology Consultation Services in India – Acharya Vijay Shastri";

$page_metakey = "Online Astrology Consultation Services in India, Astrology Services India, Acharya Vijay Shastri, Online Astrologer India, Best Astrologer in India, Online Horoscope Reading";

$page_metadesc = "Explore expert Online Astrology Consultation Services in India with Acharya Vijay Shastri. Get accurate predictions and personalized guidance from a trusted astrologer";

?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <?php include 'apps/app_top.php'; ?>
</head>

<body>
    <?php include 'apps/app_header.php'; ?>

    <div class="heading_banner" style="background-image: url(<?= site_url; ?>/assets/images/blogs-banner.jpg)">
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">
                    <h1 class="cat_title">Our Blogs- <?=$admin_res['companyName'];?></h1>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>

    <div class="inner_breadcrumb hidden_xs">
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <ul class="breadcrumb">
                        <li><a href="<?= site_url; ?>" title="Home">Home</a></li>
                        <li class="active">Our Blogs</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>


    <div class="blog_page">
        <div class="container">
            <h2 class="title_1">Our Blogs</h2>
            <div class="clearfix"></div>
            <div class="row">
                <?php
                    while ($blog_res = mysqli_fetch_array($blog_query)) {
                        $date = new DateTime($blog_res['blogDate']);

                        $day = $date->format('d');

                        $month = $date->format('F');

                        $year = $date->format('Y');

                        if ($blog_res['catImage'] != '') {

                            $blog_img =  getImage($blog_res['catImage'], 414, 286, $blog_res['catName'], "/uploaded-files/blog/images/");
                        } else {

                            $blog_img = NO_IMG_URL;
                        }


                        $blog_shortdesc = str_ireplace('{companyName}', $admin_res['companyName'], $blog_res['catDesc']);

                    ?>
                <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12 wow zoomIn" data-wow-delay=".2s">
                    <article class="blogPost">
                        <div class="image">
                            <img src="<?= $blog_img; ?>" alt="<?= $blog_res['blogDname']; ?>" title="<?= $blog_res['blogDname']; ?>">
                            <!-- <ul class="postDate">
                                <li class="date"><span class="day"> 25 </span></li>
                                <li class="comment"> Apr</li>
                            </ul> -->
                        </div>
                        <div class="postContent">
                            <h3 class="postTitle"><a href="<?= site_url; ?>/blog/<?= getValidFileName($blog_res['catName']); ?>.htm" title="<?= $blog_res['blogDname']; ?>"><?= $blog_res['blogDname']; ?></a></h3>
                            <p><?= substr($blog_shortdesc, 0, 138); ?>...</p>
                            <a class="mainBtn3" href="<?= site_url; ?>/blog/<?= getValidFileName($blog_res['catName']); ?>.htm" title="Read More"><span>Read More</span> </a>

                        </div>
                    </article>
                   
                </div>
                <?php } ?>
                <!-- <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12 wow zoomIn" data-wow-delay=".2s">
                    <article class="blogPost">
                        <div class="image">
                            <img src="assets/images/blogImage2.jpg" alt="">
                            <ul class="postDate">
                                <li class="date"><span class="day"> 25 </span></li>
                                <li class="comment"> Apr</li>
                            </ul>
                        </div>
                        <div class="postContent">
                            <h3 class="postTitle"><a href="blog_details.php">How To Consult A Famous Astrologer in India For Life Changing Guidance</a></h3>
                            <p>Neque porro quisquam est, qui is dolor emr ipsum quia dolor sit amet the consec tetur is adipis ci velit,sed the quia non num quam. Neque porro quis quam est, i dolor emr ipsum quia dolor sit ame consec tetur...</p>
                            <a class="mainBtn3" href="blog_details.php" title="Read More"><span>Read More</span> </a>
                        </div>
                    </article>
                </div>

                <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12 wow zoomIn" data-wow-delay=".2s">
                    <article class="blogPost">
                        <div class="image">
                            <img src="assets/images/blogImage3.jpg" alt="">
                            <ul class="postDate">
                                <li class="date"><span class="day"> 25 </span></li>
                                <li class="comment"> Apr</li>
                            </ul>
                        </div>
                        <div class="postContent">
                            <h3 class="postTitle"><a href="blog_details.php">Awakening the Soul: The Magic of Rudraksha Beads</a></h3>
                            <p>Neque porro quisquam est, qui is dolor emr ipsum quia dolor sit amet the consec tetur is adipis ci velit,sed the quia non num quam. Neque porro quis quam est, i dolor emr ipsum quia dolor sit ame consec tetur...</p>
                            <a class="mainBtn3" href="blog_details.php" title="Read More"><span>Read More</span> </a>
                        </div>
                    </article>
                </div>

                <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12 wow zoomIn" data-wow-delay=".2s">
                    <article class="blogPost">
                        <div class="image">
                            <img src="assets/images/blogImage4.jpg" alt="">
                            <ul class="postDate">
                                <li class="date"><span class="day"> 25 </span></li>
                                <li class="comment"> APr</li>
                            </ul>
                        </div>
                        <div class="postContent">
                            <h3 class="postTitle"><a href="blog_details.php">Radiant Relationships: Positive Vashikaran For Love And Harmony</a></h3>
                            <p>Neque porro quisquam est, qui is dolor emr ipsum quia dolor sit amet the consec tetur is adipis ci velit,sed the quia non num quam. Neque porro quis quam est, i dolor emr ipsum quia dolor sit ame consec tetur...</p>
                            <a class="mainBtn3" href="blog_details.php" title="Read More"><span>Read More</span> </a>
                        </div>
                    </article>
                </div> -->
            </div>
        </div>
    </div>

    <?php include "apps/app_testimonials.php"; ?>
    <?php include "apps/app_faq.php"; ?>

    <?php include 'apps/app_footer.php'; ?>
    <?php include 'apps/app_bottom.php'; ?>
</body>

</html>