コード例 #1
0
             break;
         case 'PRODUCT_LIST_DATE_EXPECTED':
             $duedate = str_replace("00:00:00", "", $listing[$x]['products_date_available']);
             $lc_align = 'center';
             $lc_text = ' ' . $duedate . ' ';
             break;
         case 'PRODUCT_LIST_BUY_NOW':
             $valid_to_checkout = true;
             if (STOCK_CHECK == 'true') {
                 $stock_check = tep_check_stock((int) $listing[$x]['products_id'], 1);
                 if (tep_not_null($stock_check) && STOCK_ALLOW_CHECKOUT == 'false') {
                     $valid_to_checkout = false;
                 }
             }
             if ($valid_to_checkout == true) {
                 $hide_add_to_cart = hide_add_to_cart();
                 $lc_text = '';
                 if ($hide_add_to_cart == 'false' && group_hide_show_prices() == 'true') {
                     $lc_text = '<div class="col-sm-6 col-lg-6 no-margin-left product-listing-module-buy-now buy-btn-div"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'cPath', 'products_id')) . 'action=buy_now&amp;products_id=' . $listing[$x]['products_id'] . '&amp;cPath=' . tep_get_product_path($listing[$x]['products_id']) . $params) . '"><button class="product-listing-module-buy-now-button btn btn-success btn-block">' . IMAGE_BUTTON_BUY_NOW . '</button></a></div>';
                 }
             }
             $lc_text .= '</div>';
             break;
     }
     $product_contents[] = $lc_text;
 }
 $lc_text = implode($product_contents);
 echo '<div class="product-listing-module-items"><div class="col-sm-4 col-lg-4 with-padding"><div class="thumbnail align-center" style="height: 460px;">' . $lc_text . '</div></div></div>';
 $column++;
 if ($column >= COLUMN_COUNT) {
     $row++;
コード例 #2
0
    <td valign="top" width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" style="height:120px;"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $mainpage_featured2_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $mainpage_featured2_products_array[$i]['image'], $mainpage_featured2_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5" align="left"') . '</a><div  class="pageHeading"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $mainpage_featured2_products_array[$i]['id'], 'NONSSL') . '">' . $mainpage_featured2_products_array[$i]['name'] . '</a></div><br />
      ' . (tep_not_null($mainpage_featured2_products_array[$i]['blurb'] && PRODUCT_BLURB == 'true') ? $mainpage_featured2_products_array[$i]['blurb'] . '<br>' : '') . '</td>
  </tr>
  <tr>
     <td style="background:url(' . DIR_WS_TEMPLATE_IMAGES . 'h-dots.png); height:1px;">' . tep_draw_separator('pixel_trans.gif', '100%', '1') . '</td>
  </tr>
  <tr>
    <td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="69" align="center" class="price_mainpage">' . $products_price . '</td>
          <td width="1" align="center">' . tep_image(DIR_WS_TEMPLATE_IMAGES . 'gray-div.png') . '</td>
          <td width="88" align="center">';
        if (hide_add_to_cart() == 'false' && group_hide_show_prices() == 'true') {
            $featured_str .= '<a href="' . tep_href_link(FILENAME_SHOPPING_CART, tep_get_all_get_params(array('action', 'products_id')) . 'action=buy_now&products_id=' . $mainpage_featured2_products_array[$i]['id']) . '">' . tep_image(DIR_WS_TEMPLATE_IMAGES . 'buy-now.png') . '</a>';
        }
        $featured_str .= '
</td>
        </tr>
      </table></td>
  </tr>
</table>

</td>
    <td class="BoxBorderRight">' . tep_draw_separator('pixel_trans.gif', '1', '1') . '</td>
  </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="contentBoxFooter">
  <tr>