D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
proc
/
self
/
root
/
proc
/
self
/
root
/
home
/
shubmkcj
/
designpitara.com
/
Filename :
blogs.php
back
Copy
<?php ini_set('error_reporting', 0); ini_set('display_errors', 0); include 'dash/config.php'; $url = $_GET['url']; // Program to display URL of current page. if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') $link = "https"; else $link = "http"; // Here append the common URL characters. $link .= "://"; // Append the host(domain name, ip) to the URL. $link .= $_SERVER['HTTP_HOST']; // Append the requested resource location to the URL $link .= $_SERVER['REQUEST_URI']; if($url == ''){ ?> <!DOCTYPE html> <html class="no-js" lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title></title> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="robots" content="follow,index"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="canonical" href="<?php echo $link ?>" /> <!-- favicon --> <link rel="shortcut icon" type="image/x-icon" href="/img/logo/favicon.ico"> <!-- all css here --> <!-- bootstrap v3.3.6 css --> <link rel="stylesheet" href="/css/bootstrap.min.css"> <!-- owl.carousel css --> <link rel="stylesheet" href="/css/owl.carousel.css"> <link rel="stylesheet" href="/css/owl.transitions.css"> <!-- meanmenu css --> <link rel="stylesheet" href="/css/meanmenu.min.css"> <!-- font-awesome css --> <link rel="stylesheet" href="/css/font-awesome.min.css"> <link rel="stylesheet" href="/css/icon.css"> <link rel="stylesheet" href="/css/flaticon.css"> <!-- magnific css --> <link rel="stylesheet" href="/css/magnific.min.css"> <!-- venobox css --> <link rel="stylesheet" href="/css/venobox.css"> <!-- style css --> <link rel="stylesheet" href="/style.css"> <!-- responsive css --> <link rel="stylesheet" href="/css/responsive.css"> <!-- modernizr css --> <script src="/js/vendor/modernizr-2.8.3.min.js"></script> </head> <body> <?php include 'inner-header.php' ?> <!-- header end --> <!-- Start breadcumb Area --> <div class="page-area"> <div class="breadcumb-overlay"></div> <div class="container"> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="breadcrumb text-center"> <div class="section-headline white-headline"> <h3>Blog</h3> </div> <ul class="breadcrumb-bg"> <li class="home-bread">Home</li> <li>Blog</li> </ul> </div> </div> </div> </div> </div> <!-- End breadcumb Area --> <!--Blog Area Start--> <div class="blog-page-area page-padding"> <div class="container"> <div class="row"> <div class="blog-sidebar row-two"> <div class="col-md-8 col-sm-8 col-xs-12"> <div class="row"> <div class="blog-left-content"> <?php $sql = "SELECT * FROM `atul_blogs` WHERE `atul_blogs`.`status`='active' order by `atul_blogs`.`id` desc"; $result = mysqli_query($conn,$sql); while($row = mysqli_fetch_assoc($result)){ $blogs_categ_id = $row['blogs_categ_id']; $sql1 = "SELECT * FROM `b_category` WHERE `b_category`.`id`='$blogs_categ_id'"; $result1 = mysqli_query($conn,$sql1); while($row1 = mysqli_fetch_assoc($result1)){ $blogs_categ_url = $row1['url']; } ?> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="single-blog"> <div class="blog-image"> <a class="image-scale" href="blog/<?php echo $blogs_categ_url; ?>/<?php echo $row['url']; ?>"> <img class="multi_blog_img" src="/admin/blogs/blogs-files/<?php echo $row['picture']; ?>" alt="<?php echo $row['title']; ?>"> </a> </div> <div class="blog-content"> <div class="blog-meta"> <span class="date-type"> <?php echo $row['date_add']; ?> </span> </div> <a href="blog/<?php echo $blogs_categ_url; ?>/<?php echo $row['url'] ?>"> <?php $post = $row['title']; ?> <h4><?php echo $post ?></h4> </a> <?php $character = 430; $blog_content = substr($row['blogs_details'],0,$character); ?> <p><?php echo $blog_content . " ..." ?></p> <a class="read-more" href="blog/<?php echo $blogs_categ_url ?>/<?php echo $row['url'] ?>"> Read more</a> </div> </div> </div> <?php } ?> <!-- End single blog --> <!-- End single blog --> </div> </div> </div> <!-- End single blog --> <!-- Start Right Sidebar blog --> <?php include 'blogleftmenu.php'; ?> <!-- End Right Sidebar --> </div> </div> <!-- End row --> </div> </div> <!--End of Blog Area--> <!--Start Footer Area--> <?php include 'footer.php'; ?> <!-- all js here --> <!-- jquery latest version --> <script src="../js/vendor/jquery-1.12.4.min.js"></script> <!-- bootstrap js --> <script src="../js/bootstrap.min.js"></script> <!-- owl.carousel js --> <script src="../js/owl.carousel.min.js"></script> <!-- Counter js --> <script src="../js/jquery.counterup.min.js"></script> <!-- waypoint js --> <script src="../js/waypoints.js"></script> <!-- isotope js --> <script src="../js/isotope.pkgd.min.js"></script> <!-- stellar js --> <script src="../js/jquery.stellar.min.js"></script> <!-- magnific js --> <script src="../js/magnific.min.js"></script> <!-- venobox js --> <script src="../js/venobox.min.js"></script> <!-- meanmenu js --> <script src="../js/jquery.meanmenu.js"></script> <!-- Form validator js --> <script src="../js/form-validator.min.js"></script> <!-- plugins js --> <script src="../js/plugins.js"></script> <!-- main js --> <script src="../js/main.js"></script> </body> </html> <?php }else{ ?> <?php $sql = "SELECT * FROM `atul_blogs` WHERE `atul_blogs`.`url`='$url'"; $result = mysqli_query($conn,$sql); $row = mysqli_fetch_assoc($result); ?> <!DOCTYPE html> <html class="no-js" lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title><?php echo $row['meta_title'] ?></title> <meta name="description" content="<?php echo $row['description'] ?>"> <meta name="keyword" content="<?php echo $row['keyword'] ?>"> <link rel="canonical" href="<?php echo $link ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="robots" content="follow,index" > <!-- favicon --> <!-- favicon --> <link rel="shortcut icon" type="image/x-icon" href="/img/logo/favicon.ico"> <!-- all css here --> <!-- bootstrap v3.3.6 css --> <link rel="stylesheet" href="/css/bootstrap.min.css"> <!-- owl.carousel css --> <link rel="stylesheet" href="/css/owl.carousel.css"> <link rel="stylesheet" href="/css/owl.transitions.css"> <!-- meanmenu css --> <link rel="stylesheet" href="/css/meanmenu.min.css"> <!-- font-awesome css --> <link rel="stylesheet" href="/css/font-awesome.min.css"> <link rel="stylesheet" href="/css/icon.css"> <link rel="stylesheet" href="/css/flaticon.css"> <!-- magnific css --> <link rel="stylesheet" href="/css/magnific.min.css"> <!-- venobox css --> <link rel="stylesheet" href="/css/venobox.css"> <!-- style css --> <link rel="stylesheet" href="/style.css"> <!-- responsive css --> <link rel="stylesheet" href="/css/responsive.css"> <!-- modernizr css --> <script src="/js/vendor/modernizr-2.8.3.min.js"></script> <style> ul { display: block; list-style-type: disc; margin-block-start: 1em; margin-block-end: 1em; margin-inline-start: 0px; margin-inline-end: 0px; padding-inline-start: 40px; } table, th, td { border: 1px solid black; border-collapse: collapse; } th, td { padding: 5px; } th { text-align: left; } ol{ padding:0px !important; } </style> </head> <body> <?php include 'inner-header.php'; ?> <!-- header end --> <!-- Start breadcumb Area --> <div class="page-area"> <div class="breadcumb-overlay"></div> <div class="container"> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="breadcrumb text-center"> <div class="section-headline white-headline"> <h3>Blog</h3> </div> <ul class="breadcrumb-bg"> <li class="home-bread">Home</li> <li>Blog</li> </ul> </div> </div> </div> </div> </div> <!-- End breadcumb Area --> <!--Blog Area Start--> <div class="blog-page-area page-padding"> <div class="container"> <div class="row"> <div class="blog-details row-two"> <div class="col-md-8 col-sm-8 col-xs-12"> <!-- single-blog start --> <article class="blog-post-wrapper"> <div class="blog-banner"> <img src="/admin/blogs/blogs-files/<?php echo $row['picture']; ?>" alt="<?php echo $row['title'] ?>" class="w-100"> <div> <div class="blog-meta"> <span class="date-type"> <?php echo $row['date_add'] ?> </span> </div> <h1 class="h1blog"><?php echo $row['title'] ?></h1> <div><?php echo $row['blogs_details'] ?></div> </div> </div> </article> <!-- single-blog end --> </div> <!-- End single blog --> <!-- Start Right Sidebar blog --> <?php include 'blogleftmenu.php'; ?> <!-- End Right Sidebar --> </div> </div> <!-- End row --> </div> </div> <!--End of Blog Area--> <!--End of Blog Area--> <!--Start Footer Area--> <?php include 'footer.php'; ?> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BlogPosting", "mainEntityOfPage": { "@type": "WebPage", "@id": "<?php echo $link ?>" }, "headline": "<?php echo $row['title'] ?>", "description": "<?php echo $row['blogs_details'] ?>", "image": "https://www.designpitara.com/admin/blogs/blogs-files/<?php echo $row['picture']; ?>", "author": { "@type": "Organization", "name": "Design Pitara" }, "publisher": { "@type": "Organization", "name": "Designpitara", "logo": { "@type": "ImageObject", "url": "https://www.designpitara.com/img/logo/logo2.png" } }, "datePublished": "<?php echo $row['date_add'] ?>" } </script> <!-- all js here --> <!-- jquery latest version --> <!--<script src="/js/vendor/jquery-1.12.4.min.js"></script>--> <!-- bootstrap js --> <!--<script src="/js/bootstrap.min.js"></script>--> <!-- owl.carousel js --> <!--<script src="/js/owl.carousel.min.js"></script>--> <!-- Counter js --> <!--<script src="/js/jquery.counterup.min.js"></script>--> <!-- waypoint js --> <!--<script src="/js/waypoints.js"></script>--> <!-- isotope js --> <!--<script src="/js/isotope.pkgd.min.js"></script>--> <!-- stellar js --> <!--<script src="/js/jquery.stellar.min.js"></script>--> <!-- magnific js --> <!--<script src="/js/magnific.min.js"></script>--> <!-- venobox js --> <!--<script src="/js/venobox.min.js"></script>--> <!-- meanmenu js --> <!--<script src="/js/jquery.meanmenu.js"></script>--> <!-- Form validator js --> <!--<script src="/js/form-validator.min.js"></script>--> <!-- plugins js --> <!--<script src="/js/plugins.js"></script>--> <!-- main js --> <!--<script src="/js/main.js"></script>--> </body> </html> <?php } ?>