Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions includes/modules/bootstrap/product_listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
for ($col = 0, $n = count($column_list); $col < $n; $col++) {
$lc_align = '';
$lc_text = '';
$hide_class = ' ';
switch ($column_list[$col]) {
case 'PRODUCT_LIST_MODEL':
$lc_text = TABLE_HEADING_MODEL;
Expand Down Expand Up @@ -83,6 +84,8 @@
$lc_text = '&nbsp;';
// $lc_text = TABLE_HEADING_IMAGE; //-Uncomment this line if you want the "Products Image" header title
$lc_align = 'center';
// Hide the image for phones in portrait mode
$hide_class = ' d-none d-sm-block';
$zc_col_count_description++;
break;
default:
Expand All @@ -98,7 +101,8 @@
$align_class = ($lc_align == '') ? '' : " text-$lc_align";
$list_box_contents[0][$col] = [
//'align' => $lc_align, // not used with Bootstrap template: converted to css class below
'params' => 'class="productListing-heading' . $align_class . '"',
'params' => 'class="productListing-heading' . $align_class . $hide_class . '"',
'hide_class' => $hide_class,
'text' => $lc_text,
];
}
Expand Down Expand Up @@ -396,9 +400,13 @@

if ($product_listing_layout_style === 'table') {
$align_class = empty($lc_align) ? '' : " text-$lc_align";
$hide_class = '';
if (isset($list_box_contents[0][$col]['hide_class'])) {
$hide_class = $list_box_contents[0][$col]['hide_class'];
}
$list_box_contents[$rows][] = [
//'align' => $lc_align, // not used with Bootstrap template: converted to css class on next line
'params' => 'class="productListing-data' . $align_class . '"',
'params' => 'class="productListing-data' . $align_class . $hide_class . '"',
'category' => $record['master_categories_id'],
'parent_category_name' => $record['parent_category_name'],
'category_name' => $record['category_name'],
Expand Down