Improve help to allow the help url to be global in all the views. Fixed the zip wrapper to include .htaccess files for library folders.
This commit is contained in:
@ -62,10 +62,10 @@ class ###Component###View###Component### extends JViewLegacy
|
||||
JToolBarHelper::title(JText::_('COM_###COMPONENT###_DASHBOARD'), 'grid-2');
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('###component###');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('###component###');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
|
||||
if ($canDo->get('core.admin') || $canDo->get('core.options'))
|
||||
|
@ -63,10 +63,10 @@ class ###Component###View###SView### extends JViewLegacy
|
||||
JToolbarHelper::title($title,'###ICOMOON###');###CUSTOM_ADMIN_CUSTOM_BUTTONS###
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('###sviews###');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('###sviews###');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
|
||||
// add the options comp button
|
||||
|
@ -89,10 +89,10 @@ class ###Component###ViewImport extends JViewLegacy
|
||||
}
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('import');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('import');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -37,10 +37,10 @@ class ###Component###View###View### extends JViewLegacy
|
||||
}
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('###view###');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('###view###');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -129,10 +129,10 @@ class ###Component###View###Views### extends JViewLegacy
|
||||
}###ADMIN_CUSTOM_FUNCTION_ONLY_BUTTONS_LIST######IMPORTBUTTON###
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('###views###');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('###views###');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
|
||||
// add the options comp button
|
||||
|
@ -53,10 +53,10 @@ class ###Component###View###SViews### extends JViewLegacy
|
||||
JToolbarHelper::title(JText::_('COM_###COMPONENT###_###SVIEWS###'),'###ICOMOON###');###CUSTOM_ADMIN_CUSTOM_BUTTONS###
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('###sviews###');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('###sviews###');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
|
||||
// add the options comp button
|
||||
|
@ -49,10 +49,10 @@ class ###Component###View###SViews### extends JViewLegacy
|
||||
{###SITE_CUSTOM_BUTTONS###
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('###sviews###');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('###sviews###');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
// now initiate the toolbar
|
||||
$this->toolbar = JToolbar::getInstance();
|
||||
|
@ -49,10 +49,10 @@ class ###Component###View###SView### extends JViewLegacy
|
||||
{###SITE_CUSTOM_BUTTONS###
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('###sview###');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('###sview###');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
// now initiate the toolbar
|
||||
$this->toolbar = JToolbar::getInstance();
|
||||
|
Reference in New Issue
Block a user