* @return array all available buttons as an assoc. array
*/
public function getButtons() {
+ $uploadButton = '<a href="#" onclick="TYPO3.EM.Tools.uploadExtension(); return false;" title="' . $GLOBALS['LANG']->getLL('upload_ext_directly') . '">' .
+ t3lib_iconWorks::getSpriteIcon('actions-edit-upload') . '</a>';
$buttons = array(
'csh' => '',
'back' => '',
- 'shortcut' => ''
+ 'shortcut' => '',
+ 'upload' => $uploadButton
);
- // Shortcut
+ // Shortcut
if ($GLOBALS['BE_USER']->mayMakeShortcut()) {
$buttons['shortcut'] = $this->doc->makeShortcutIcon('CMD', 'function', $this->MCONF['name']);
}
- // Back
+
+ // Back
if (($this->CMD['showExt'] && (!$this->CMD['standAlone'] && !t3lib_div::_GP('standAlone'))) || ($this->CMD['importExt'] || $this->CMD['uploadExt'] && (!$this->CMD['standAlone'])) || $this->CMD['importExtInfo']) {
$buttons['back'] = '<a href="' . t3lib_div::linkThisScript(array(
'CMD' => ''
scope: this,
hidden: true
},
- '-',
- {
- iconCls: 't3-icon t3-icon-actions t3-icon-actions-edit t3-icon-edit-upload',
- tooltip: TYPO3.l10n.localize('upload_ext_directly'),
- ref: '../uploadButton',
- handler: function() {
- TYPO3.EM.Tools.uploadExtension();
- },
- scope: this
- },
- '-',
'->',
{
xtype: 'tbtext',
<!-- ###BUTTON_GROUP_WRAP### -->
<!-- ###BUTTON_GROUPS_LEFT### -->
-<!-- ###BUTTON_GROUP1### -->###BACK###<!-- ###BUTTON_GROUP1### -->
+<!-- ###BUTTON_GROUP1### -->###BACK######UPLOAD###<!-- ###BUTTON_GROUP1### -->
<!-- ###BUTTON_GROUPS_LEFT### -->
<!-- ###BUTTON_GROUPS_RIGHT### -->