added new pages , blog fix

This commit is contained in:
CHIEFSOFT\ameye
2024-11-20 05:19:57 -05:00
parent accd33cbd3
commit f70a951d04
10 changed files with 574 additions and 100 deletions
+15 -6
View File
@@ -18,8 +18,8 @@ include('header.php');
<div class="blog classic-view">
<?php
$blgr = $blog_array[0];
// print_r($blgr);
$blgr = $blog_featured; // $blog_array[0];
// print_r($blgr);
$title = $blgr["post_title"];
$content = substr($blgr["post_content"], 0, 100);
$post_date = $blgr["post_date"];
@@ -28,10 +28,17 @@ include('header.php');
$meta_value = $blgr["meta_value"];
$blog_link="https://blog.chiefsoft.com/?p=".$blog_id;
$blog_image = "https://blog.chiefsoft.com/wp-content/uploads/".$meta_value;
$date=date_create($post_date);
$post_date = date_format($date,"Y/m/d");
// echo "HERE HERE ";
?>
<article class="post">
<div class="card">
<figure class="card-img-top overlay overlay-1 hover-scale"><a href="<?=$blog_link?>"><img src="<?=$blog_image?>" alt="" /></a>
<div class="card" style="background-color: aliceblue;">
<figure class="card-img-top overlay overlay-1 hover-scale"><a href="<?=$blog_link?>">
<img style="height: 150px; width: auto;" src="<?=$blog_image?>" alt="" />
</a>
<figcaption>
<h5 class="from-top mb-0">Read More</h5>
</figcaption>
@@ -54,7 +61,7 @@ include('header.php');
<div class="card-footer">
<ul class="post-meta d-flex mb-0">
<li class="post-date"><i class="uil uil-calendar-alt"></i><span><?=$post_date?></span></li>
<li class="post-comments"><a href="#"><i class="uil uil-comment"></i><?=$comment_count?><span> Comments</span></a></li>
<li class="post-comments"><a href="<?=$blog_link?>"><i class="uil uil-comment"></i><?=$comment_count?><span> Comments</span></a></li>
</ul>
<!-- /.post-meta -->
</div>
@@ -72,7 +79,7 @@ $tt = 0;
foreach ($blog_array as $blgr) {
// print_r($blgr);
$title = $blgr["post_title"];
$title = $content = substr($blgr["post_title"], 0, 50);// $blgr["post_title"];
$content = substr($blgr["post_content"], 0, 100);
$post_date = $blgr["post_date"];
$blog_id = $blgr["id"];
@@ -81,6 +88,8 @@ $tt = 0;
$blog_link="https://blog.chiefsoft.com/?p=".$blog_id;
$blog_image = "https://blog.chiefsoft.com/wp-content/uploads/".$meta_value;
$date=date_create($post_date);
$post_date = date_format($date,"Y/m/d");
$tt++;
if($tt> 1){
include 'blog_block.php';