private function printErrorMessage($params = array(), $message = '') { if (!$message) { $info = JSNRenderHelper::getInfoView($params); $message = JText::sprintf('JSN_RAWMODE_MESSAGE_NOT_SUPPORTED_YET', '"' . JString::strtoupper($info['layout']) . '"', '"' . JString::strtoupper($info['extension']) . '"'); } echo JSNHtmlHelper::openTag('div', array('class' => 'show-message-not-supported-yet')) . $message . JSNHtmlHelper::closeTag('div'); return; }
/** * * Render component * * @return: HTML */ public function renderComponent() { JSNFactory::localimport('helpers.html.jsnrenders'); $params = array(); foreach ($this->_params as $key => $value) { $params[$key] = $value; } //Set default option is Empty if (!key_exists('option', $params)) { $params['option'] = 'com_empty'; } //Set default view is Empty if (!key_exists('view', $params)) { $params['view'] = 'Empty'; } $this->_component = JSNRenderHelper::dispatch($params); }