formHTML)) { $formHtml = call_user_func($this->formHTML); $this->formHTML = $formHtml; } $alerts = $this->alerts(); $rotationEnabled = $this->isActiveRotation(); if ($rotationEnabled) { $this->jsInclude('tablednd'); } if ($this->isAJAX() && ! $this->isAjaxInit()) { if ($formHtml) { $response = []; if ($this->formsTabs->popup) { $response['popup'] = $formHtml; } else { $response['form'] = $formHtml; } $this->ajaxResponseForm($this->appendIncludedStatic($response)); } $response = ['list' => '', 'pgn' => '', 'alerts' => $alerts]; if ( ! empty($this->nestedSetsTree['expand'])) { $response['list'] = $this->rowsRender(['columns' => false, 'noBody' => true, 'noEmpty' => true]); } else if ($this->isPaginationMore()) { unset($response['list'], $response['pgn']); $response['more'] = $this->isMoreAllowed(); if ($this->getOffset()) { $response['append'] = $this->rowsRender(['columns' => false, 'noBody' => true, 'noEmpty' => true]); } else { $response['list'] = $this->rowsRender(); } } else { $response['list'] = $this->rowsRender(); $response['pgn'] = $this->pages(); } $response['total'] = $this->total; $this->jsRender(); $response = $this->appendIncludedStatic($response); if (is_callable($this->onAjaxResponse)) { $response = call_user_func($this->onAjaxResponse, $response); } $this->ajaxResponseForm($response); } ?>