feat-new partner ballygunge
This commit is contained in:
33
_home.php
33
_home.php
@@ -573,7 +573,40 @@ include("_navbar.php");
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="row">
|
||||
<?php
|
||||
$sql = "SELECT * FROM PAGES WHERE `DOMAIN` = 'teenybeanspreschoolcurriculum.com' ORDER BY PAGE_ID DESC";
|
||||
$result = mysqli_query($link, $sql);
|
||||
if(mysqli_num_rows($result)>0){
|
||||
while($row = mysqli_fetch_array($result,MYSQLI_ASSOC)){
|
||||
$id = $row['PAGE_ID'];
|
||||
$domain = $row['DOMAIN'];
|
||||
$uri = $row['URI'];
|
||||
$slug = $row['SLUG'];
|
||||
$title = $row['TITLE'];
|
||||
$meta = $row['META'];
|
||||
echo '<div class="col-sm-12 col-md-6 col-lg-4" style="padding-bottom:20px;"><div class="card h-100" style="width:100%;border:none; border-bottom: 5px solid #A3CB37; cursor: pointer;">
|
||||
<a href="'.$slug.'"><img src="https://bscdn.sgp1.digitaloceanspaces.com/publicImages/'.$domain.$uri.$slug.'.jpg" alt="'.$title.'" loading="lazy" style="height:250px; width:100%;"></a>
|
||||
<div style="height:250px;" class="card-body">
|
||||
<a class="hovergreen" href="'.$slug.'"><p class="" style="text-decoration:none;font-size:17px; font-weight:bold;">'.$title.'</p></a>
|
||||
<a href="'.$slug.'"><p>'.$meta.'</p></a>
|
||||
</div>
|
||||
<div class="card-footer" style="border:none;">
|
||||
<a href="'.$slug.'" style="position:relative; margin-bottom:10px;" class="btn btn-outline-success">Read More</a>
|
||||
</div>
|
||||
</div></div>';
|
||||
// echo '<div class="col-sm-4 col-md-6 col-lg-2">
|
||||
// <a href="singleProduct?id='.$id.'"><img style="margin-bottom:5px; border: 2px solid;" src="/CONTENT/UPLOADS/PRODUCT/'.$id.'/'.$imgName.'" width="90px" height="90px"></a>
|
||||
// </div>';
|
||||
}
|
||||
}else{
|
||||
// echo mysqli_error($link);
|
||||
echo '<div class="alert alert warning">Blog Posts are coming!</div>';
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<!-----------------------------------flip replace----------------------------->
|
||||
<!-- PROCESS -->
|
||||
<section class="card card-row shadow-light-lg bg-cover overlay overlay-dark overlay-80 text-white mb-6" style="background-image:url(./assets/img/Montessori-Teachers-successful.jpeg);">
|
||||
|
||||
Reference in New Issue
Block a user