/** * @return string */ function getContent() { $output = $this->getText(); if ($this->getAttribute('adm:htmlEditor') !== true) { $output = $this->encodePlainText(); if ($this->getAttribute('forceP')) { $output = org_glizy_helpers_Html::forceP($output); } return $output; } else { $output = javascript_to_html($output); // esegue la paginazione if (!is_null($this->getAttribute("paginate"))) { $paginateClass =& $this->getAttribute("paginate"); $this->_content = $paginateClass->splitTextResult($output); } if ($this->getAttribute('parseInternalLinks')) { $output = org_glizy_helpers_Link::parseInternalLinks($output); } $attributes = array(); $attributes['id'] = $this->getId(); $attributes['class'] = $this->getAttribute('cssClass'); $wrapTag = $this->getAttribute('wrapTag'); $outputTag = !empty($wrapTag) ? '<' . $wrapTag . ' ' . $this->_renderAttributes($attributes) . '>' : ''; $outputTag .= $output; $outputTag .= !empty($wrapTag) ? '</' . $wrapTag . '>' : ''; return $outputTag; } }