/** * Prepares the print screen * * @param $tpl * * */ protected function _displayprint($tpl = null) { // Load css JHtml::_('stylesheet', 'com_jem/backend.css', array(), true); $this->items = $this->get('Items'); $event = $this->get('Event'); if (JEMHelper::isValidDate($event->dates)) { $event->dates = JEMOutput::formatdate($event->dates); } else { $event->dates = JText::_('COM_JEM_OPEN_DATE'); } // assign data to template $this->event = $event; parent::display($tpl); }