isActiveRotation();
$noBody = ! empty($noBody);
$noEmpty = ! empty($noEmpty);
$nestedSetsTree = ! empty($this->nestedSetsTree) ? $this->nestedSetsTree : false;
$attrRowCallable = null;
$actionsRowCallable = null;
$columnsVisible = 0;
foreach ($this->columns as &$c) {
$visible = true;
if ($c['showIf'] !== false && ! call_user_func($c['showIf'], $c)) {
$visible = false;
}
$c['visible'] = $visible;
if ($visible) {
$columnsVisible++;
}
if (isset($c['attrRow']) && is_callable($c['attrRow'])) {
$attrRowCallable = $c['attrRow'];
}
if (isset($c['actionsRow']) && is_callable($c['actionsRow'])) {
$actionsRowCallable = $c['actionsRow'];
}
if (isset($c['title']) && $c['title'] instanceof Closure) {
$c['title'] = call_user_func($c['title'], $this);
}
} unset($c);
if ( ! empty($rowActions)) {
$columnsVisible++;
func::sortByPriority($rowActions);
}
$cntRowActionsMore = 0;
if (! empty($rowActionsMore)) {
foreach ($rowActionsMore as $v) {
if (isset($rowActions[$v])) {
$cntRowActionsMore++;
}
}
}
if ($columnsVisible > 0 && $rotationEnabled) {
$columnsVisible++;
}
func::sortByPriority($this->columns);
$massEnabled = $this->isMassActions();
$massKey = $massEnabled ? $this->massActions()->idKey() : false;
$massAll = $massEnabled ? $this->massActions()->selectAll() : false;
if ($columns && $this->showHeader) { ?>
0) { ?>
columns as $id=>$c) {
if ( ! $c['visible']) continue;
$attr = &$c['attr.head'];
$attr['data-id'] = $id;
Block::attrAdd($attr, 'class', 'j-list-column');
if ( ! empty($c['width'])) {
$attr['width'] = $c['width'];
}
if ($c['align'] !== false) {
switch ($c['align']) {
case BlockList::COLUMN_ALIGN_LEFT:
Block::attrAdd($attr, 'class', 'text-left');
break;
case BlockList::COLUMN_ALIGN_RIGHT:
Block::attrAdd($attr, 'class', 'text-right');
break;
case BlockList::COLUMN_ALIGN_CENTER:
Block::attrAdd($attr, 'class', 'text-center');
break;
}
}
?>
>
= $c['title'] ?>
= $c['title'] ?>
= $c['title'] ?>
= _t('@', 'Action') ?>