function display($tpl = null)
 {
     $entry = $this->get('Data');
     // Get Categories for selection list
     $categories = $this->get('Categories', 'categories');
     if (empty($entry->id)) {
         JToolBarHelper::title(JText::_('COM_JOOMLABACKLINKCHECKER') . ' - ' . JText::_('COM_JOOMLABACKLINKCHECKER_NEWENTRY'), 'joomlabacklinkchecker-add');
         JToolBarHelper::save('save');
         JToolBarHelper::cancel('cancel');
     } else {
         JToolBarHelper::title(JText::_('COM_JOOMLABACKLINKCHECKER') . ' - ' . JText::_('COM_JOOMLABACKLINKCHECKER_EDITENTRY'), 'joomlabacklinkchecker-edit');
         JToolbarHelper::apply('apply');
         JToolBarHelper::save('save');
         JToolBarHelper::custom('checkselection', 'extension', 'extension', JText::_('COM_JOOMLABACKLINKCHECKER_SAVECHECK_BUTTON'), false);
         JToolBarHelper::cancel('cancel', 'Close');
     }
     $document = JFactory::getDocument();
     $document->addStyleSheet('components/com_joomlabacklinkchecker/css/joomlabacklinkchecker.css');
     $this->assignRef('entry', $entry);
     $this->assignRef('categories', $categories);
     require_once JPATH_COMPONENT . '/helpers/joomlabacklinkchecker.php';
     $donation_code_message = JoomlaBacklinkCheckerHelper::getDonationCodeMessage();
     $this->assignRef('donation_code_message', $donation_code_message);
     parent::display($tpl);
 }
 function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('COM_JOOMLABACKLINKCHECKER') . " - " . JText::_('COM_JOOMLABACKLINKCHECKER_SUBMENU_CATEGORIES'), 'joomlabacklinkchecker');
     if (JFactory::getUser()->authorise('joomlabacklinkchecker.categoriesnew', 'com_joomlabacklinkchecker')) {
         JToolBarHelper::addNew();
     }
     if (JFactory::getUser()->authorise('joomlabacklinkchecker.categoriesedit', 'com_joomlabacklinkchecker')) {
         JToolBarHelper::editList();
     }
     if (JFactory::getUser()->authorise('core.delete', 'com_joomlabacklinkchecker')) {
         JToolBarHelper::deleteList();
     }
     if (JFactory::getUser()->authorise('core.admin', 'com_joomlabacklinkchecker')) {
         JToolBarHelper::preferences('com_joomlabacklinkchecker', '500');
     }
     $items = $this->get('Categories');
     $pagination = $this->get('Pagination');
     $this->_state = $this->get('State');
     $document = JFactory::getDocument();
     $document->addStyleSheet('components/com_joomlabacklinkchecker/css/joomlabacklinkchecker.css');
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     require_once JPATH_COMPONENT . '/helpers/joomlabacklinkchecker.php';
     $donation_code_message = JoomlaBacklinkCheckerHelper::getDonationCodeMessage();
     $this->assignRef('donation_code_message', $donation_code_message);
     parent::display($tpl);
 }
 function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('COM_JOOMLABACKLINKCHECKER') . " - " . JText::_('COM_JOOMLABACKLINKCHECKER_SUBMENU_ABOUT'), 'joomlabacklinkchecker');
     $document = JFactory::getDocument();
     $document->addStyleSheet('components/com_joomlabacklinkchecker/css/joomlabacklinkchecker.css');
     require_once JPATH_COMPONENT . '/helpers/joomlabacklinkchecker.php';
     $donation_code_message = JoomlaBacklinkCheckerHelper::getDonationCodeMessage();
     $this->assignRef('donation_code_message', $donation_code_message);
     parent::display($tpl);
 }
 function display($tpl = null)
 {
     $category = $this->get('Category');
     if (empty($category->id)) {
         JToolBarHelper::title(JText::_('COM_JOOMLABACKLINKCHECKER') . ' - ' . JText::_('COM_JOOMLABACKLINKCHECKER_NEWCATEGORY'), 'joomlabacklinkchecker-add');
         JToolBarHelper::save('save');
         JToolBarHelper::cancel('cancel');
     } else {
         JToolBarHelper::title(JText::_('COM_JOOMLABACKLINKCHECKER') . ' - ' . JText::_('COM_JOOMLABACKLINKCHECKER_EDITCATEGORY'), 'joomlabacklinkchecker-edit');
         JToolbarHelper::apply('apply');
         JToolBarHelper::save('save');
         JToolBarHelper::cancel('cancel', 'Close');
     }
     $document = JFactory::getDocument();
     $document->addStyleSheet('components/com_joomlabacklinkchecker/css/joomlabacklinkchecker.css');
     $this->assignRef('category', $category);
     require_once JPATH_COMPONENT . '/helpers/joomlabacklinkchecker.php';
     $donation_code_message = JoomlaBacklinkCheckerHelper::getDonationCodeMessage();
     $this->assignRef('donation_code_message', $donation_code_message);
     parent::display($tpl);
 }
 function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('COM_JOOMLABACKLINKCHECKER') . ' - ' . JText::_('COM_JOOMLABACKLINKCHECKER_RESULT'), 'joomlabacklinkchecker-add');
     JToolBarHelper::back('JTOOLBAR_BACK', 'index.php?option=com_joomlabacklinkchecker');
     $check_result = JFactory::getApplication()->input->get('check_result', array(), 'ARRAY');
     $this->assignRef('check_result', $check_result);
     // Show the edit button?
     if (JFactory::getUser()->authorise('joomlabacklinkchecker.edit', 'com_joomlabacklinkchecker')) {
         $this->edit_allowed = true;
     }
     // Debug mode only if activated, task is checkselection, single entry is checked and debug output is available
     // Maybe could be changed in a further version with a popup display for each entry...
     $params = JComponentHelper::getParams('com_joomlabacklinkchecker');
     if ($params->get('debug', 0) and JFactory::getApplication()->input->get('task') == 'checkselection' and count($check_result) == 1 and !empty($check_result[0]['result_debug'])) {
         $this->assignRef('debug', $params->get('debug', 0));
     }
     $document = JFactory::getDocument();
     $document->addStyleSheet('components/com_joomlabacklinkchecker/css/joomlabacklinkchecker.css');
     require_once JPATH_COMPONENT . '/helpers/joomlabacklinkchecker.php';
     $donation_code_message = JoomlaBacklinkCheckerHelper::getDonationCodeMessage();
     $this->assignRef('donation_code_message', $donation_code_message);
     parent::display($tpl);
 }