Moves the Pro features into the Public version of JCB.

This commit is contained in:
2022-07-09 17:16:21 +02:00
parent 9e4a6e0c53
commit 4e30fcb967
110 changed files with 11383 additions and 3669 deletions

View File

@ -136,6 +136,11 @@ class ComponentbuilderViewJoomla_modules extends HtmlView
{
JToolbarHelper::trash('joomla_modules.trash');
}
if ($this->canDo->get('core.export') && $this->canDo->get('joomla_module.export'))
{
JToolBarHelper::custom('joomla_modules.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
}
}
if ($this->user->authorise('joomla_module.get_snippets', 'com_componentbuilder'))
{
@ -148,6 +153,11 @@ class ComponentbuilderViewJoomla_modules extends HtmlView
JToolBarHelper::custom('joomla_modules.runExpansion', 'expand-2 custom-button-runexpansion', '', 'COM_COMPONENTBUILDER_RUN_EXPANSION', false);
}
if ($this->canDo->get('core.import') && $this->canDo->get('joomla_module.import'))
{
JToolBarHelper::custom('joomla_modules.importData', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_DATA', false);
}
// set help url for this view if found
$this->help_url = ComponentbuilderHelper::getHelpUrl('joomla_modules');
if (ComponentbuilderHelper::checkString($this->help_url))