Ejemplo n.º 1
0
 protected function addToolBar()
 {
     // set title
     JToolBarHelper::title('RSForm! Pro', 'rsform');
     require_once JPATH_COMPONENT . '/helpers/toolbar.php';
     RSFormProToolbarHelper::addToolbar('backuprestore');
 }
 protected function addToolbar()
 {
     if (JFactory::getUser()->authorise('core.admin', 'com_rsform')) {
         JToolBarHelper::preferences('com_rsform');
     }
     // set title
     JToolBarHelper::title('RSForm! Pro', 'rsform');
     require_once JPATH_COMPONENT . '/helpers/toolbar.php';
     RSFormProToolbarHelper::addToolbar('rsform');
 }
Ejemplo n.º 3
0
 protected function addToolbar()
 {
     static $called;
     // this is a workaround so if called multiple times it will not duplicate the buttons
     if (!$called) {
         require_once JPATH_COMPONENT . '/helpers/toolbar.php';
         RSFormProToolbarHelper::addToolbar('directory');
         $called = true;
     }
 }
Ejemplo n.º 4
0
 protected function addToolBar()
 {
     // set title
     JToolBarHelper::title('RSForm! Pro', 'rsform');
     $backupIcon = RSFormProHelper::isJ('3.0') ? 'download' : 'archive';
     $restoreIcon = RSFormProHelper::isJ('3.0') ? 'upload' : 'unarchive';
     JToolBarHelper::custom('backup.download', $backupIcon, $backupIcon, JText::_('RSFP_BACKUP_GENERATE'), false);
     JToolBarHelper::custom('restore.process', $restoreIcon, $restoreIcon, JText::_('RSFP_RESTORE'), false);
     require_once JPATH_COMPONENT . '/helpers/toolbar.php';
     RSFormProToolbarHelper::addToolbar('backuprestore');
 }
Ejemplo n.º 5
0
 protected function addToolbar()
 {
     static $called;
     // this is a workaround so if called multiple times it will not duplicate the buttons
     if (!$called) {
         // set title
         JToolBarHelper::title('RSForm! Pro', 'rsform');
         require_once JPATH_COMPONENT . '/helpers/toolbar.php';
         RSFormProToolbarHelper::addToolbar('forms');
         $called = true;
     }
 }