mode !== 'xhtml') return; $rows = $this->searchConfig->getRows(); $this->max = $rows[0]['count']; $this->min = end($rows)['count']; $this->sortResults($rows); $this->startList(); foreach ($rows as $result) { $this->renderTag($result); } $this->finishList(); } /** * Render a tag of the cloud * * @param ['tag' => Value, 'count' => int] $result */ protected function renderTag($result) { /** * @var Value $value */ $value = $result['tag']; $count = $result['count']; if ($value->isEmpty()) { return; } $type = strtolower($value->getColumn()->getType()->getClass()); $weight = $this->getWeight($count, $this->min, $this->max); if (!empty($this->data['target'])) { $target = $this->data['target']; } else { global $INFO; $target = $INFO['id']; } $tagValue = $value->getDisplayValue(); if (is_array($tagValue)) { $tagValue = $tagValue[0]; } $key = $value->getColumn()->getFullQualifiedLabel() . '='; $filter = SearchConfigParameters::$PARAM_FILTER . '[' . urlencode($key) . ']=' . urlencode($tagValue); $this->renderer->listitem_open(1); $this->renderer->listcontent_open(); if ($this->mode == 'xhtml') { $this->renderer->doc .= "