/** * @since 1.2.0 **/ public static function preparationContentSimple($type, &$data, $context, $excluded = array(), JRegistry $params = null) { switch ($type) { case self::PREPARE_CONTENT_FIELDS: FieldsandfiltersFieldsHelper::preparationContent($data, $context, null, null, (array) $excluded); break; case self::PREPARE_CONTENT_SYSTEM: $data = JHtml::_('content.prepare', $data, $params, $context); break; } }
/** * @since 1.2.0 */ public function onAfterRender() { if (JFactory::getApplication()->isAdmin() || !$this->params->get('prepare_after_render', 0) || !($syntax = $this->params->get('syntax', '#{%s}'))) { return; } $buffer = JResponse::getBody(); FieldsandfiltersFieldsHelper::preparationContent($buffer, 'system', null, null, array(), $syntax, $this->params->get('syntax_type', FieldsandfiltersFieldsHelper::SYNTAX_SIMPLE)); JResponse::setBody($buffer); }