public static function title($title, $icon = 'generic.png')
	{
		// Strip the extension.
		$icons = explode(' ', $icon);
		foreach ($icons as &$icon)
		{
			$icon = 'icon-48-' . preg_replace('#\.[^.]*$#', '', $icon);
		}

		$html = '<div class="pagetitle ' . htmlspecialchars(implode(' ', $icons)) . '"><h2>' . $title . '</h2></div>';

		$app = static::getApplication();

		$app->set('ComponentTitle', $html);

		if ($app->has('document'))
		{
			$app->get('document')->setTitle($app->get('config')->get('sitename') . ' - ' . $app->get('language')->txt('JADMINISTRATION') . ' - ' . $title);
		}
	}
public static function title($title, $icon = 'generic.png')
	{
		// Strip the extension.
		$icons = explode(' ', $icon);
		foreach ($icons as &$icon)
		{
			$icon = 'icon-48-' . preg_replace('#\.[^.]*$#', '', $icon);
		}

		$html = '<div class="pagetitle ' . htmlspecialchars(implode(' ', $icons)) . '"><h2>' . $title . '</h2></div>';

		$app = static::getApplication();

		$app->set('ComponentTitle', $html);

		if ($app->has('document'))
		{
			$app->get('document')->setTitle($app->get('config')->get('sitename') . ' - ' . $app->get('language')->txt('JADMINISTRATION') . ' - ' . $title);
		}
	}
public static function title ( $ title , $ icon = 'generic.png' ) { // Strip the extension. $ icons = explode ( ' ' , $ icon ) ; foreach ( $ icons as & $ icon ) { $ icon = 'icon-48-' . preg_replace ( '#\.[^.]*$#' , '' , $ icon ) ; } $ html = '<div class="pagetitle ' . htmlspecialchars ( implode ( ' ' , $ icons ) ) . '"><h2>' . $ title . '</h2></div>' ; $ app = static :: getApplication ( ) ; $ app -> set ( 'ComponentTitle' , $ html ) ; if ( $ app -> has ( 'document' ) ) { $ app -> get ( 'document' ) -> setTitle ( $ app -> get ( 'config' ) -> get ( 'sitename' ) . ' - ' . $ app -> get ( 'language' ) -> txt ( 'JADMINISTRATION' ) . ' - ' . $ title ) ; } }
Title cell.
For the title and toolbar to be rendered correctly,
this title fucntion must be called before the starttable function and the toolbars icons
this is due to the nature of how the css has been used to postion the title in respect to the toolbar.

@param   string  $title  The title.
@param   string  $icon   The space-separated names of the image.
@return  void
Title cell . For the title and toolbar to be rendered correctly this title fucntion must be called before the starttable function and the toolbars icons this is due to the nature of how the css has been used to postion the title in respect to the toolbar .