public function fetchButton($type = 'Help', $url = '#', $width = 700, $height = 500)
	{
		$text  = \Lang::txt('JTOOLBAR_HELP');
		$class = $this->fetchIconClass('help');
		$msg   = \Lang::txt('JHELP', true);

		if (!strstr('?', $url)
		 && !strstr('&', $url)
		 && substr($url, 0, 4) != 'http')
		{
			$url = \Route::url('index.php?option=com_help&component=' . \Request::getCmd('option') . '&page=' . $url);
		}
		else
		{
			$url = $this->_getCommand($ref = $type, $com = false, $override = false, $component = \Request::getCmd('option'));
		}

		$html  = '<a href="' . $url . '" data-title="' . $text . '" data-message="' . $msg. '" data-width="' . $width . '" data-height="' . $height . '" rel="help" class="toolbar toolbar-popup">' . "\n";
		$html .= '<span class="' . $class . '">' . "\n";
		$html .= $text . "\n";
		$html .= '</span>' . "\n";
		$html .= '</a>' . "\n";

		return $html;
	}
public function fetchButton($type = 'Help', $url = '#', $width = 700, $height = 500)
	{
		$text  = \Lang::txt('JTOOLBAR_HELP');
		$class = $this->fetchIconClass('help');
		$msg   = \Lang::txt('JHELP', true);

		if (!strstr('?', $url)
		 && !strstr('&', $url)
		 && substr($url, 0, 4) != 'http')
		{
			$url = \Route::url('index.php?option=com_help&component=' . \Request::getCmd('option') . '&page=' . $url);
		}
		else
		{
			$url = $this->_getCommand($ref = $type, $com = false, $override = false, $component = \Request::getCmd('option'));
		}

		$html  = '<a href="' . $url . '" data-title="' . $text . '" data-message="' . $msg. '" data-width="' . $width . '" data-height="' . $height . '" rel="help" class="toolbar toolbar-popup">' . "\n";
		$html .= '<span class="' . $class . '">' . "\n";
		$html .= $text . "\n";
		$html .= '</span>' . "\n";
		$html .= '</a>' . "\n";

		return $html;
	}
public function fetchButton ( $ type = 'Help' , $ url = '#' , $ width = 700 , $ height = 500 ) { $ text = \ Lang :: txt ( 'JTOOLBAR_HELP' ) ; $ class = $ this -> fetchIconClass ( 'help' ) ; $ msg = \ Lang :: txt ( 'JHELP' , true ) ; if ( ! strstr ( '?' , $ url ) && ! strstr ( '&' , $ url ) && substr ( $ url , 0 , 4 ) != 'http' ) { $ url = \ Route :: url ( 'index.php?option=com_help&component=' . \ Request :: getCmd ( 'option' ) . '&page=' . $ url ) ; } else { $ url = $ this -> _getCommand ( $ ref = $ type , $ com = false , $ override = false , $ component = \ Request :: getCmd ( 'option' ) ) ; } $ html = '<a href="' . $ url . '" data-title="' . $ text . '" data-message="' . $ msg . '" data-width="' . $ width . '" data-height="' . $ height . '" rel="help" class="toolbar toolbar-popup">' . "\n" ; $ html .= '<span class="' . $ class . '">' . "\n" ; $ html .= $ text . "\n" ; $ html .= '</span>' . "\n" ; $ html .= '</a>' . "\n" ; return $ html ; }
Fetches the button HTML code.

@param   string   $type    Unused string.
@param   string   $url     The URL to open
@param   integer  $width   The window width
@param   integer  $height  The window height
@return  string
Fetches the button HTML code .