Ejemplo n.º 1
0
 public static function newArrivalsListing()
 {
     global $lC_Vqmod;
     include_once $lC_Vqmod->modCheck('includes/classes/products.php');
     $lC_Products = new lC_Products();
     $Qlisting = $lC_Products->execute();
     $cnt = 0;
     $listing = '';
     while ($Qlisting->next()) {
         $lC_Product = new lC_Product($Qlisting->valueInt('products_id'));
         $listing .= '<li>' . lc_link_object(lc_href_link(FILENAME_PRODUCTS, $lC_Product->getKeyword()), substr($lC_Product->getTitle(), 0, 20)) . '</li>';
         $cnt++;
         if ($cnt == 5) {
             break;
         }
     }
     return $listing;
 }
Ejemplo n.º 2
0
?>
</h1>
  
  <div id="content-product-listing-category-description-container">
    <?php 
if (lC_Template_output::getCategoryDescription() != '') {
    echo '<div id="content-product-listing-category-description">' . lC_Template_output::getCategoryDescription() . '</div>';
}
?>
  </div>
  
  <div class="content-product-listing-container">
    <?php 
$lC_Products = new lC_Products();
$lC_Products->setSortBy('date_added', '-');
$Qlisting = $lC_Products->execute(NEW_PRODUCTS_PER_PAGE_DISPLAY);
if (PRODUCT_LIST_FILTER == '1') {
    echo lC_Template_output::getManufacturerFilter();
}
if ($Qlisting->numberOfRows() > 0 && (PREV_NEXT_BAR_LOCATION == '1' || PREV_NEXT_BAR_LOCATION == '3')) {
    ?>
      <!-- PAGINATION-->
      <div class="product-listing-module-pagination margin-bottom">
        <div class="pull-left large-margin-bottom page-results"><?php 
    echo $Qlisting->getBatchTotalPages($lC_Language->get('result_set_number_of_products'));
    ?>
</div>
        <div class="pull-right large-margin-bottom no-margin-top">
          <ul class="pagination">
            <?php 
    echo $Qlisting->getBatchPageLinks('page', lc_get_all_get_params(array('page', 'info', 'x', 'y')), false);