Formattings

- Format of ternary changed for readability
- Corrected CSS to use : instead of =
- Removed Label for item name to allow more text
This commit is contained in:
objecttothis
2024-03-11 15:58:00 +04:00
committed by jekkos
parent 453ee6c061
commit 7cb9ffd7aa

View File

@@ -152,11 +152,11 @@ class Barcode_lib
if((isset($item['item_number']) || isset($item['name'])) && isset($item['item_id']))
{
$display_table = '<table>';
$display_table .= "<tr><td style=\"text-align:center;\">" . $this->manage_display_layout($barcode_config['barcode_first_row'], $item, $barcode_config) . '</td></tr>';
$display_table .= '<tr><td style="text-align:center;">' . $this->manage_display_layout($barcode_config['barcode_first_row'], $item, $barcode_config) . '</td></tr>';
$barcode = $this->generate_barcode($item, $barcode_config);
$display_table .= '<tr><td style="text-align:center;"><div style=\'height:' . $barcode_config['barcode_height'] . 'px; width:'. $barcode_config['barcode_width'] . "px;'>$barcode</div></td></tr>";
$display_table .= "<tr><td style=\"text-align:center;\">" . $this->manage_display_layout($barcode_config['barcode_second_row'], $item, $barcode_config) . '</td></tr>';
$display_table .= "<tr><td style=\"text-align:center;\">" . $this->manage_display_layout($barcode_config['barcode_third_row'], $item, $barcode_config) . '</td></tr>';
$display_table .= '<tr><td style="text-align:center;">' . $this->manage_display_layout($barcode_config['barcode_second_row'], $item, $barcode_config) . '</td></tr>';
$display_table .= '<tr><td style="text-align:center;">' . $this->manage_display_layout($barcode_config['barcode_third_row'], $item, $barcode_config) . '</td></tr>';
$display_table .= '</table>';
return $display_table;
@@ -178,7 +178,7 @@ class Barcode_lib
if($layout_type == 'name')
{
$result = lang('Items.name') . ": " . $item['name'];
$result = $item['name'];
}
elseif($layout_type == 'category' && isset($item['category']))
{