<!-- CONTENT -->
<section class="Content R">

   <h2 class="GLOB-Title">Listings: <span class="FR"><?php echo comma_number(fetch_record("SELECT COUNT(id) FROM listings WHERE user_id = '{$user_id}'")); ?></span></h2>

   <?php $sql = "SELECT * FROM listings WHERE user_id = '{$user_id}' ORDER BY points DESC LIMIT {$per['listings']}"; ?>

   <!-- APPEND -->
   <section id="append">
      <?php fetch_elements($sql, 'elements/listings/main.php', 'a'); ?>
   </section>
   <!-- APPEND -->

   <!-- MORE -->
   <?php if(fetch_rows($sql) == $per['listings']){ ?>
      <div class="MORE">
         <button onclick="loadMore(this, 'ex/more.dashboard.listings.php', '.Listings');">Load More</button>
      </div>
   <?php } ?>
   <!-- MORE -->

</section>
<!-- CONTENT -->