english/administrator/components/com_media/views/media/view.html.php
/**
	 * Add the page title and toolbar.
	 *
	 * @since	1.6
	 */
Add the page title and toolbar.
Add the page title and toolbar .
protected function addToolbar()
	{
		$bar = JToolBar::getInstance('toolbar');
		$user = JFactory::getUser();
		JToolBarHelper::title(JText::_('COM_MEDIA'), 'mediamanager.png');
		if ($user->authorise('core.delete','com_media'))
		{
			$title = JText::_('JTOOLBAR_DELETE');
			$dhtml = "<a href=\"#\" onclick=\"MediaManager.submit('folder.delete')\" class=\"toolbar\">
						<span class=\"icon-32-delete\" title=\"$title\"></span>
						$title</a>";
			$bar->appendButton('Custom', $dhtml, 'delete');
			JToolBarHelper::divider();
		}
		if ($user->authorise('core.admin','com_media'))
		{
			JToolBarHelper::preferences('com_media', 450, 800, 'JToolbar_Options', '', 'window.location.reload()');
			JToolBarHelper::divider();
		}
		JToolBarHelper::help('JHELP_CONTENT_MEDIA_MANAGER');
	}
protected function addToolbar ( ) { $ bar = JToolBar :: getInstance ( 'toolbar' ) ; $ user = JFactory :: getUser ( ) ; JToolBarHelper :: title ( JText :: _ ( 'COM_MEDIA' ) , 'mediamanager.png' ) ; if ( $ user -> authorise ( 'core.delete' , 'com_media' ) ) { $ title = JText :: _ ( 'JTOOLBAR_DELETE' ) ; $ dhtml = " <a href= \" # \"  onclick= \" MediaManager.submit('folder.delete') \"  class= \" toolbar \" >
						<span class= \" icon-32-delete \"  title= \" $ title \" ></span>
						 $ title </a> " ; $ bar -> appendButton ( 'Custom' , $ dhtml , 'delete' ) ; JToolBarHelper :: divider ( ) ; } if ( $ user -> authorise ( 'core.admin' , 'com_media' ) ) { JToolBarHelper :: preferences ( 'com_media' , 450 , 800 , 'JToolbar_Options' , '' , 'window.location.reload()' ) ; JToolBarHelper :: divider ( ) ; } JToolBarHelper :: help ( 'JHELP_CONTENT_MEDIA_MANAGER' ) ; }
Add the page title and toolbar.
Add the page title and toolbar .
// Get the toolbar object instance // Set the titlebar text // Add a delete button // Add a delete button