<?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 Love Problem Solution Astrologer in India – Astrologer Arjun Shastri";

$page_metakey = "Online Love Problem Solution Astrologer in India, Astrologer Arjun Shastri, Love Problem Solution Online, Best Astrologer for Love Issues, Love Astrology Services, Online Astrology for Love Problems, Love Marriage Solution Astrologer, Indian Astrologer for Love Issues";

$page_metadesc = "Read expert blogs by Astrologer Arjun Shastri, a trusted Online Love Problem Solution Astrologer in India. Discover powerful love remedies, tips, and astrological guidance.";





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

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  <?php include 'app_top.php'; ?>
</head>

<body>
  <?php include 'app_header.php'; ?>
  <div class="img-breadcum img-breadcum2">
    <div class="container">
      <h1 class="tt">Blogs - Astrologer Arjun Shastri</h1>
    </div>
  </div>
  <div class="breadcum-sec">
    <div class="container-fluid px-md-5">
      <ul>
        <li><a href="<?= site_url; ?>" title="Home">Home</a></li>
        <li>Blogs</li>
      </ul>
    </div>
  </div>
  <div class="section bg-light">
    <div class="container">
      <div class="head-sec">
        <div class="tt fs-4">Latest <span>Blogs</span></div>
        <p>Tap into a wealth of astrological wisdom with our thoughtfully written blogs. Covering everything from love and relationships to career and personal growth, each post delivers practical insights and transformative solutions. Gain the knowledge to navigate life's challenges and make empowered choices that lead to a more fulfilled and harmonious life.</p>
      </div>
      <div class="row g-4 row-cols-1 row-cols-md-2 row-cols-lg-2">
      <?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'], 515, 290, $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">
          <div class="blog-bx">
            <a href="<?= site_url; ?>/blog/<?= getValidFileName($blog_res['catName']); ?>.htm" title="<?= $blog_res['blogDname']; ?>" class="img-bx">
              <img src="<?= $blog_img; ?>" alt="<?= $blog_res['blogDname']; ?>" title="<?= $blog_res['blogDname']; ?>">
            </a>
            <div class="tx-bx">
              <h2 class="tt"><a href="<?= site_url; ?>/blog/<?= getValidFileName($blog_res['catName']); ?>.htm" title="<?= $blog_res['blogDname']; ?>"><?= $blog_res['blogDname']; ?></a></h2>
              <p><?= substr($blog_shortdesc, 0, 150); ?>...</p>
              <a href="<?= site_url; ?>/blog/<?= getValidFileName($blog_res['catName']); ?>.htm" class="read-mr" title="Read More">Read More <svg fill="currentColor" width="20" height="20" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="icon line">
                  <path d="M3,12H21m-3,3,3-3L18,9" style="fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1;"> </path>
                </svg></a>
            </div>
          </div>
        </div>
        <?php } ?>
       
      </div>
    </div>
  </div>

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

</html>