/** * @package Joomla.Site * @subpackage com_content * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ require_once JPATH_ROOT . '/compiler/Handles.php'; class article extends Handles { public function __construct() { } static public function prepare($data) { return $data; } } defined('_JEXEC') or die; JHtml::addIncludePath(JPATH_COMPONENT . '/helpers'); // Create shortcuts to some parameters. $params = $this->item->params; $images = json_decode($this->item->images); $urls = json_decode($this->item->urls); $canEdit = $params->get('access-edit'); $user = JFactory::getUser(); $info = $params->get('info_block_position', 0); // Check if associations are implemented. If they are, define the parameter. $assocParam = (JLanguageAssociations::isEnabled() && $params->get('show_associations')); //JHtml::_('behavior.caption'); $data = article::prepare([ 'class' => 'vdp', 'class-brand' => 'ram', 'car-year' => '2019', 'car-brand' => 'RAM', 'car-model' => '1500', 'model-type' => 'Sport', 'model-engine' => 'V8', 'model-cab' => 'Crew Cab', 'model-punchline' => 'Punchline' ]); echo article::render($data);
Pizza.