Release of v5.1.1-alpha5
Refactor initialization flow to accommodate future scalability and integration with all designated areas. Refactor the Creator Builders class. Refactor the FieldString and FieldXML classes.
This commit is contained in:
@@ -218,10 +218,20 @@ class HtmlView extends BaseHtmlView
|
||||
ToolbarHelper::trash('site_views.trash');
|
||||
}
|
||||
}
|
||||
if ($this->user->authorise('site_view.get_snippets', 'com_componentbuilder'))
|
||||
if ($this->user->authorise('site_view.init', 'com_componentbuilder'))
|
||||
{
|
||||
// add Get Snippets button.
|
||||
ToolbarHelper::custom('site_views.getSnippets', 'search custom-button-getsnippets', '', 'COM_COMPONENTBUILDER_GET_SNIPPETS', false);
|
||||
// add Init button.
|
||||
ToolbarHelper::custom('site_views.initPowers', 'health custom-button-initpowers', '', 'COM_COMPONENTBUILDER_INIT', false);
|
||||
}
|
||||
if ($this->user->authorise('site_view.reset', 'com_componentbuilder'))
|
||||
{
|
||||
// add Reset button.
|
||||
ToolbarHelper::custom('site_views.resetPowers', 'joomla custom-button-resetpowers', '', 'COM_COMPONENTBUILDER_RESET', false);
|
||||
}
|
||||
if ($this->user->authorise('site_view.push', 'com_componentbuilder'))
|
||||
{
|
||||
// add Push button.
|
||||
ToolbarHelper::custom('site_views.pushPowers', 'share custom-button-pushpowers', '', 'COM_COMPONENTBUILDER_PUSH', false);
|
||||
}
|
||||
|
||||
// set help url for this view if found
|
||||
|
Reference in New Issue
Block a user