english/administrator/components/com_messages/views/message/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()
	{
		if ($this->getLayout() == 'edit') {
			JToolBarHelper::title(JText::_('COM_MESSAGES_WRITE_PRIVATE_MESSAGE'), 'new-privatemessage.png');
			JToolBarHelper::save('message.save', 'COM_MESSAGES_TOOLBAR_SEND');
			JToolBarHelper::cancel('message.cancel');
			JToolBarHelper::help('JHELP_COMPONENTS_MESSAGING_WRITE');
		} else {
			JToolBarHelper::title(JText::_('COM_MESSAGES_VIEW_PRIVATE_MESSAGE'), 'inbox.png');
			$sender = JUser::getInstance($this->item->user_id_from);
			if ($sender->authorise('core.admin') || $sender->authorise('core.manage','com_messages') && $sender->authorise('core.login.admin')) {
				JToolBarHelper::custom('message.reply', 'restore.png', 'restore_f2.png', 'COM_MESSAGES_TOOLBAR_REPLY', false);
			}
			JToolBarHelper::cancel('message.cancel');
			JToolBarHelper::help('JHELP_COMPONENTS_MESSAGING_READ');
		}
	}
protected function addToolbar ( ) { if ( $ this -> getLayout ( ) == 'edit' ) { JToolBarHelper :: title ( JText :: _ ( 'COM_MESSAGES_WRITE_PRIVATE_MESSAGE' ) , 'new-privatemessage.png' ) ; JToolBarHelper :: save ( 'message.save' , 'COM_MESSAGES_TOOLBAR_SEND' ) ; JToolBarHelper :: cancel ( 'message.cancel' ) ; JToolBarHelper :: help ( 'JHELP_COMPONENTS_MESSAGING_WRITE' ) ; } else { JToolBarHelper :: title ( JText :: _ ( 'COM_MESSAGES_VIEW_PRIVATE_MESSAGE' ) , 'inbox.png' ) ; $ sender = JUser :: getInstance ( $ this -> item -> user_id_from ) ; if ( $ sender -> authorise ( 'core.admin' ) || $ sender -> authorise ( 'core.manage' , 'com_messages' ) && $ sender -> authorise ( 'core.login.admin' ) ) { JToolBarHelper :: custom ( 'message.reply' , 'restore.png' , 'restore_f2.png' , 'COM_MESSAGES_TOOLBAR_REPLY' , false ) ; } JToolBarHelper :: cancel ( 'message.cancel' ) ; JToolBarHelper :: help ( 'JHELP_COMPONENTS_MESSAGING_READ' ) ; } }
Add the page title and toolbar.
Add the page title and toolbar .