function display($tpl = null) { $app = JFactory::getApplication(); if (JFactory::getUser()->guest) { $return_url = base64_encode(DJCatalogHelperRoute::getOrdersRoute()); $app->redirect(JRoute::_('index.php?option=com_users&view=login&return=' . $return_url, false), JText::_('COM_DJCATALOG2_PLEASE_LOGIN')); return true; } $this->state = $this->get('State'); $this->items = $this->get('Items'); $this->params = Djcatalog2Helper::getParams(); $this->pagination = $this->get('Pagination'); $this->_prepareDocument(); parent::display($tpl); }
} ?> </table> </div> <h2><?php echo JText::_('COM_DJCATALOG2_ORDER_ITEMS'); ?> </h2> <div class="djc_order_items djc_clearfix"> <?php echo $this->loadTemplate('table'); ?> </div> <a class="button btn djc_back_to_orders_btn" href="<?php echo JRoute::_(DJCatalogHelperRoute::getOrdersRoute()); ?> "><span><?php echo JText::_('COM_DJCATALOG2_BACK_TO_ORDERS'); ?> </span></a> <?php if ($this->params->get('show_footer')) { echo DJCATFOOTER; } ?> </div>