';
$specials_query = tep_db_query($specials_split->sql_query);
while ($specials = tep_db_fetch_array($specials_query)) {
if (($col === 0) && ($row != 0)) {
$specials_prods_content .= '
- '.tep_draw_separator('spacer.gif', '1', '1').'
';
}
if ($col === 0) {
$specials_prods_content .= '
';
}else {
$specials_prods_content .= '- '.tep_draw_separator('spacer.gif', '1', '1').'';
}
// *************************************
if (IMG_HOVER_EFFECT == 'style-1') {
$img_effect = 'first';
$img_effect_width = PRODS_BLOCK_SPECIALS_WIDTH - PIC_MARG_W;
}
if (IMG_HOVER_EFFECT == 'style-2') {
$img_effect = 'tenth';
$img_effect_width = PRODS_BLOCK_SPECIALS_WIDTH - PIC_MARG_W;
}
if (IMG_HOVER_EFFECT == 'style-3') {
$img_effect = 'fifth';
$img_effect_width = PRODS_BLOCK_SPECIALS_WIDTH - PIC_MARG_W;
}
// *************************************
// *************************************
$product_query = tep_db_query("select products_description, products_id from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$specials['products_id'] . "' and language_id = '" . (int)$languages_id . "'");
$product = tep_db_fetch_array($product_query);
$p_id = $product['products_id'];
$row++;
// *************************************
// *************************************
$p_pic = '' . tep_image(DIR_WS_IMAGES . $specials['products_image'], $specials['products_name'], (SPECIAL_IMAGE_WIDTH), (SPECIAL_IMAGE_HEIGHT), ' style="width:'.(SPECIAL_IMAGE_WIDTH + PIC_MARG_W2).'px;height:'.(SPECIAL_IMAGE_HEIGHT + PIC_MARG_H2).'px;margin:'.PIC_MARG_T.'px '.PIC_MARG_R.'px '.PIC_MARG_B.'px '.PIC_MARG_L.'px;"') . '';
$p_name = '' . $specials['products_name'] . '';
if (MAX_DESCR_SPECIALS !=0) {
$p_desc = '
'.mb_substr(strip_tags($product['products_description']), 0, MAX_DESCR_SPECIALS, 'UTF-8').'...
';
}else{
$p_desc = '';
}
IF($specials['products_price']>0){
$p_price = '' . $currencies->display_price($specials['specials_new_products_price'], tep_get_tax_rate($specials['products_tax_class_id'])) . ' ' . $currencies->display_price($specials['products_price'], tep_get_tax_rate($specials['products_tax_class_id'])) . '';
}
// *************************************
$p_details_text = '' .tep_draw_button2_top() . ''. IMAGE_BUTTON_DETAILS .'' . tep_draw_button2_bottom().'';
if($specials['products_price']>0){
$p_buy_now_text = '' .tep_draw_button_top() . ''. IMAGE_BUTTON_IN_CART .'' . tep_draw_button_bottom().'';
}
else{$p_buy_now_text = CALL_FOR_PRICE;
}
// *************************************
// *************************************
$specials_prods_content .= ' - '. "\n".
'
'. "\n".
'
'.$p_pic.'
'. "\n". //'.tep_draw_specials_pic_top().''.tep_draw_specials_pic_bottom().'
''. "\n".
'
'.
'
'.$p_name.'
'. "\n".
' '.$p_desc.''. "\n".
// modified on 20130925db
($specials['products_price']>0 ? ' '. "\n" : '').
'
'.$p_buy_now_text.'
'. "\n".
'
'. "\n".
'
'. "\n";
$col ++;
if ($col > $col_items) {
$specials_prods_content .= '
';
$row ++;
$col = 0;
}else{
$specials_prods_content .= '';
}
}
$specials_prods_content .= '