Your IP : 216.73.217.117


Current Path : /var/www/cesa.co.za/app/pages/
Upload File :
Current File : /var/www/cesa.co.za/app/pages/latestnews.php

<template>
  <div class="page" data-name="catalog">
    <div class="navbar">
      <div class="navbar-inner sliding">
      <div class="left">
        <a href="#" class="link back">
          <i class="icon icon-back"></i>
          <span class="ios-only">Back</span>
        </a>
      </div>
        <div class="title">Latest News</div>
      </div>
    </div>
    <div class="page-content">
<?php
include_once("/usr/www/users/saacea/app/inc_dbwp.php");

$sql="select * from wp_posts where post_status='publish' and post_type='post' order by post_date desc LIMIT 0,20";
$rec=mysqli_query($conn_wp, $sql);
while ($row=mysqli_fetch_assoc($rec)) {
?>
<div class="block block-strong">
<a href="https://www.cesa.co.za/<?php echo $row["post_name"]; ?>" target="_blank" class="external" style="color: rgb(55, 94, 173); text-decoration: none;" title="<?php echo $row["post_title"]; ?>"><b><?php echo htmlentities($row["post_title"], ENT_COMPAT || ENT_SUBSTITUTE, "ISO-8859-1"); ?></b></a>
<hr>
</div>
<?php
}
?>
    </div>
  </div>
</template>
<script>
  return {
    data: function () {
      return {
        products: this.$root.products,
      };
    }
  };
</script>