Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/helpers/col_picker_helper.php
Show First 20 Lines • Show All 308 Lines • ▼ Show 20 Line(s) | |||||
if ( !is_array($widths) ) { | if ( !is_array($widths) ) { | ||||
$widths = explode(':', $widths); | $widths = explode(':', $widths); | ||||
} | } | ||||
$i = 0; | $i = 0; | ||||
array_shift($widths); // removing first col (checkbox col) width | array_shift($widths); // removing first col (checkbox col) width | ||||
foreach ( $this->pickerData->allFields as $field ) { | foreach ( $this->pickerData->allFields as $field ) { | ||||
if ( $field == '__FREEZER__' ) { | if ( $field == '__FREEZER__' || $this->pickerData->isHidden($field) ) { | ||||
continue; | continue; | ||||
} | } | ||||
$this->pickerData->widths[$field] = isset($widths[$i]) ? $widths[$i] : self::DEFAULT_COLUMN_WIDTH; | $this->pickerData->widths[$field] = isset($widths[$i]) ? $widths[$i] : self::DEFAULT_COLUMN_WIDTH; | ||||
$i++; | $i++; | ||||
} | } | ||||
$this->storeCols($this->pickerData); | $this->storeCols($this->pickerData); | ||||
▲ Show 20 Lines • Show All 256 Lines • Show Last 20 Lines |