public function SlickUi::list_build_row in Slick Carousel 7.2
Overrides parent::list_build_row.
Overrides ctools_export_ui::list_build_row
File
- slick_ui/
plugins/ export_ui/ SlickUi.class.php, line 896 - Contains the CTools export UI integration code.
Class
- SlickUi
- CTools Export UI class handler for Slick UI.
Code
public function list_build_row($item, &$form_state, $operations) {
parent::list_build_row($item, $form_state, $operations);
$name = $item->{$this->plugin['export']['key']};
$skins = slick_skins();
$breakpoints = $this->items[$name]->breakpoints ? $this->items[$name]->breakpoints : 0;
$skin = $this->items[$name]->skin;
$skin_name = $skin ? check_plain($skin) : t('None');
if ($skin) {
$description = isset($skins[$skin]['description']) && $skins[$skin]['description'] ? filter_xss($skins[$skin]['description']) : '';
if ($description) {
$skin_name .= '<br /><em>' . $description . '</em>';
}
}
$breakpoints_row[] = array(
'data' => $breakpoints,
'class' => array(
'ctools-export-ui-breakpoints',
),
);
array_splice($this->rows[$name]['data'], 2, 0, $breakpoints_row);
$skin_row[] = array(
'data' => $skin_name,
'class' => array(
'ctools-export-ui-skin',
),
'style' => "white-space: normal; word-wrap: break-word; max-width: 320px;",
);
array_splice($this->rows[$name]['data'], 3, 0, $skin_row);
}