include $_SERVER['DOCUMENT_ROOT']."/locations/blog/includes/header-scripts.php" ?>
include $_SERVER['DOCUMENT_ROOT']."/includes/common-head.php" ?>
include $_SERVER['DOCUMENT_ROOT']."/connect.php" ?>
Skip to content
include $_SERVER['DOCUMENT_ROOT']."/locations/includes/header.php" ?>
include $_SERVER['DOCUMENT_ROOT']."/locations/blog/includes/header.php" ?>
$sql = "SELECT * FROM blogposts where store_slug='" .$siteurl. "' and poststatus='publish' and postdate<=now() order by postdate desc";
$result = $conn->query($sql);
if ($result->num_rows > 0){
while($row = $result->fetch_assoc()){
?>
}
}else{
$sql = "SELECT * FROM blogposts where store_slug is null and poststatus='publish' order by postdate desc";
$result = $conn->query($sql);
if ($result->num_rows > 0)
while($row = $result->fetch_assoc()){
?>
}
}
?>
include $_SERVER['DOCUMENT_ROOT']."/locations/includes/footer.php" ?>
include $_SERVER['DOCUMENT_ROOT']."/blog/includes/footer-scripts.php" ?>
include $_SERVER['DOCUMENT_ROOT']."/includes/js-scripts.php" ?>