<?php
include_once '1010/lib/db/connection.php';
include('1010/common/library.php');
include('1010/common/helper.php');

$slug_url    = $_GET['slug_url'];

$select = $conn->query("select * from tbl_post where slug_url = '$slug_url'");
while ($c_data = $select->fetch_assoc()) {
?>
    <!DOCTYPE html>
    <html lang="en">

    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
        <title><?= $c_data['blog_title'] ?></title>
        <meta name="author" content="Busicus">
        <meta name="description" content="<? $postContent = $c_data['blog_body'];
                                            $postContentWithoutTags = strip_tags($postContent);
                                            $words = preg_split('/\s+/', $postContentWithoutTags, -1, PREG_SPLIT_NO_EMPTY);
                                            echo $shortContent = implode(' ', array_slice($words, 0, 30)); ?>">
        <meta name="keywords" content="Busicus, Web Development, Best SEO Support, POS Software, Best Software Company in Bangladesh, Best Cloud Management Software in Bangladesh, Customized Software in Bangladesh, Bangladesh, High-quality, Affordable, Software Industry">
        <meta name="google-site-verification" content="1249s3ujwjFWd_zv-FVyXqGqKzTFbAfhIMgOIYjXK20" />
        <?php include 'inc/link.php'; ?>

        <link rel="canonical" href="https://www.busicus.com/<?= $slug_url ?>" />
        <meta property="og:image" content="1010/files/blogs/<?= $c_data['pic'] ?>" />
        <meta property="og:publisher" content="https://www.busicus.com/" />
        <meta property="og:author" content="https://www.busicus.com/" />
        <meta property="og:title" content="<?= $c_data['blog_title'] ?>" />
        <meta property="og:site_name" content="Busicus" />
        <meta property="og:url" content="https://busicus.com/<?= $slug_url ?>" />
        <meta property="og:type" content="website" />
        <meta property="og:description" content="<? $postContent = $c_data['blog_body'];
                                                    $postContentWithoutTags = strip_tags($postContent);
                                                    $words = preg_split('/\s+/', $postContentWithoutTags, -1, PREG_SPLIT_NO_EMPTY);
                                                    echo $shortContent = implode(' ', array_slice($words, 0, 30)); ?>" />
        <meta property="og:locale" content="en_US" />
        <meta property="og:locale:alternate" content="bn_BD" />
        <meta property="og:image" content="1010/files/blogs/<?= $c_data['pic'] ?>" />
        <meta property="og:image:secure_url" content="1010/files/blogs/<?= $c_data['pic'] ?>" />
        <meta property="og:image:alt" content="Busicus" />
        <meta property="og:image:width" content="800" />
        <meta property="og:image:height" content="600" />
        <meta property="og:image:type" content="image/png" />
        <meta property="article:publisher" content="https://www.facebook.com/busicus" />
        <meta property="article:author" content="https://www.facebook.com/busicus" />
        <meta name="twitter:card" content="summary_large_image" />
        <meta name="twitter:site" content="@Busicus" />
        <meta name="twitter:title" content="<?= $c_data['blog_title'] ?>" />
        <meta name="twitter:site_name" content="Busicus" />
        <meta name="twitter:url" content="https://busicus.com/<?= $slug_url ?>" />
        <meta name="twitter:description" content="<? $postContent = $c_data['blog_body'];
                                                    $postContentWithoutTags = strip_tags($postContent);
                                                    $words = preg_split('/\s+/', $postContentWithoutTags, -1, PREG_SPLIT_NO_EMPTY);
                                                    echo $shortContent = implode(' ', array_slice($words, 0, 30)); ?>" />
        <meta name="twitter:image" content="1010/files/blogs/<?= $c_data['pic'] ?>" />
        <meta name="twitter:image:alt" content="Busicus" />
    </head>

    <body>
        <div id="page" class="site">
            <?php include 'inc/header.php'; ?>

            <div id="content" class="site-content">
                <div class="page-header flex-middle">
                    <div class="container">
                        <div class="inner flex-middle">
                            <h1 class="page-title"><?= $c_data['blog_title'] ?></h1>
                            <ul id="breadcrumbs" class="breadcrumbs none-style">
                                <li><a href="https://busicus.com/">Home</a></li>
                                <li class="active">Blog</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>



            <div class="entry-content">
                <div class="container">
                    <div class="row">

                        <div class="content-area col-lg-12 col-md-12 col-sm-12 col-xs-12">
                            <article class="blog-post post-box">
                                <div class="entry-media">
                                    <img src="1010/files/blogs/<?= $c_data['pic'] ?>" alt="<?= $c_data['blog_title'] ?>">
                                </div>
                                <div class="inner-post">
                                    <div class="entry-header">
                                        <div class="entry-meta">
                                            <span class="posted-on">Date - <a href="#"><?= $c_data['date'] ?>,</a></span>
                                            <span class="byline">By - <a class="url fn n" href="#">Admin</a></span>
                                        </div>
                                        <h3 class="entry-title"><a href="#"><?= $c_data['blog_title'] ?></a></h3>
                                    </div>
                                    <div class="entry-summary">
                                        <?= $c_data['blog_body'] ?>
                                    </div>
                                </div>
                            </article>


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

            <?php include "inc/footer.php"; ?>