diff --git a/t3lib/class.t3lib_bedisplaylog.php b/t3lib/class.t3lib_bedisplaylog.php index eadd833..d4f9763 100644 --- t3lib/class.t3lib_bedisplaylog.php +++ t3lib/class.t3lib_bedisplaylog.php @@ -212,7 +212,7 @@ class t3lib_BEDisplayLog { $text .= ' ' . sprintf($GLOBALS['LANG']->getLL('changesInFields'), '' . $newRow['fieldlist'] . ''); $text .= ' ' . - '' . ''; } diff --git a/t3lib/class.t3lib_befunc.php b/t3lib/class.t3lib_befunc.php index d99177f..e491248 100644 --- t3lib/class.t3lib_befunc.php +++ t3lib/class.t3lib_befunc.php @@ -2492,7 +2492,7 @@ final class t3lib_BEfunc { $text = t3lib_BEfunc::helpText($table, $field, $BACK_PATH, ''); $text = ''.$GLOBALS['LANG']->hscAndCharConv($text, false).''; } - return ''.$text.''; + return '' . t3lib_iconWorks::getSpriteIcon('actions-system-help-open') . $text.''; } } @@ -2518,7 +2518,7 @@ final class t3lib_BEfunc { $data = $TCA_DESCR[$table]['columns'][$field]; // add see also arrow if ($data['image_descr'] || $data['seeAlso'] || $data['details'] || $data['syntax']) { - $arrow = ''; + $arrow = t3lib_iconWorks::getSpriteIcon('actions-view-go-forward'); } // add description text if ($data['description'] || $arrow) { diff --git a/t3lib/class.t3lib_clipboard.php b/t3lib/class.t3lib_clipboard.php index 56e06cf..0daa1cb 100644 --- t3lib/class.t3lib_clipboard.php +++ t3lib/class.t3lib_clipboard.php @@ -368,8 +368,8 @@ class t3lib_clipboard { ' '. ''. - 'backPath,'gfx/closedok_2.gif','width="21" height="16"').' vspace="2" border="0" title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:buttons.clear',1).'" alt="" />'. - ' + t3lib_iconWorks::getSpriteIcon('actions-document-close') . + ' '; @@ -377,7 +377,7 @@ class t3lib_clipboard { $out[]=' '. - 'backPath,'gfx/ol/'.($this->current=='normal'?'minus':'plus').'bullet.gif','width="18" height="16"').' border="0" align="top" alt="" />'. + t3lib_iconWorks::getSpriteIcon('actions-view-table-' . (($this->current == 'normal') ? 'collapse' : 'expand')) . $this->padTitleWrap('Normal','normal'). ' '; @@ -388,7 +388,7 @@ class t3lib_clipboard { $out[]=' '. - 'backPath,'gfx/ol/'.($this->current=='tab_'.$a?'minus':'plus').'bullet.gif','width="18" height="16"').' border="0" align="top" alt="" />'. + t3lib_iconWorks::getSpriteIcon('actions-view-table-' . (($this->current == 'tab_' . $a) ? 'collapse' : 'expand')) . $this->padTitleWrap($this->clLabel('cliptabs').$a,'tab_'.$a). ' '; diff --git a/t3lib/class.t3lib_fullsearch.php b/t3lib/class.t3lib_fullsearch.php index b6d0324..5b4b95a 100644 --- t3lib/class.t3lib_fullsearch.php +++ t3lib/class.t3lib_fullsearch.php @@ -635,13 +635,13 @@ class t3lib_fullsearch { $params = '&edit['.$table.']['.$row['uid'].']=edit'; $out.=''; if (!$row['deleted']) { - $out .= ''; - $out .= ''; + $out .= '' . t3lib_iconWorks::getSpriteIcon('actions-system-search') . ''; + $out .= '' . t3lib_iconWorks::getSpriteIcon('actions-document-open'). ''; } else { $out.= ''; - $out.= 'undelete'; + $out.= t3lib_iconWorks::getSpriteIcon('action-undelete-button') . ''; $out.= ''; - $out.= 'undelete and edit'; + $out.= t3lib_iconWorks::getSpriteIcon('actions-edit-delete') . ''; } $_params = array($table=>$row); if (is_array($this->hookArray['additionalButtons'])) { diff --git a/t3lib/class.t3lib_querygenerator.php b/t3lib/class.t3lib_querygenerator.php index 2d6f6b0..f511610 100644 --- t3lib/class.t3lib_querygenerator.php +++ t3lib/class.t3lib_querygenerator.php @@ -1069,7 +1069,7 @@ class t3lib_queryGenerator { */ function mkFieldToInputSelect($name,$fieldName) { $out='formWidth().'>'.$this->updateIcon(); - $out.=''; + $out.='' . t3lib_iconWorks::getSpriteIcon('actions-edit-delete') . ''; $out.='
'; + $p_field .= '' . t3lib_iconWorks::getSpriteIcon('actions-edit-copy') . ' border="0" alt="" />'; } // Upload? diff --git a/typo3/alt_db_navframe.php b/typo3/alt_db_navframe.php index 6136519..fc22678 100644 --- typo3/alt_db_navframe.php +++ typo3/alt_db_navframe.php @@ -286,10 +286,14 @@ class SC_alt_db_navframe { // New Page $onclickNewPageWizard = 'top.content.list_frame.location.href=top.TS.PATH_typo3+\'db_new.php?pagesOnly=1&id=\'+Tree.pageID;'; - $buttons['new_page'] = ''; + $buttons['new_page'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-page-new') . + ''; // Refresh - $buttons['refresh'] = ''; + $buttons['refresh'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-system-refresh') . + ''; // CSH $buttons['csh'] = str_replace('typo3-csh-inline','typo3-csh-inline show-right',t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'pagetree', $GLOBALS['BACK_PATH'], '', TRUE)); @@ -321,7 +325,7 @@ class SC_alt_db_navframe { $workspaceInfo = '
'. - ''. + t3lib_iconWorks::getSpriteIcon('status-workspace-draft') . ''.$wsTitle.'
'; diff --git a/typo3/alt_doc.php b/typo3/alt_doc.php index 4541eae..e5a0e87 100644 --- typo3/alt_doc.php +++ typo3/alt_doc.php @@ -849,8 +849,8 @@ class SC_alt_doc { } // CLOSE button: - $buttons['close'] = ''. - 'doc->backPath,'gfx/closedok.gif','width="21" height="16"').' class="c-inputButton" title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:rm.closeDoc',1).'" alt="" />'. + $buttons['close'] = ''. + t3lib_iconWorks::getSpriteIcon('actions-document-close') . ''; @@ -861,8 +861,8 @@ class SC_alt_doc { // Delete: if ($this->firstEl['deleteAccess'] && !$TCA[$this->firstEl['table']]['ctrl']['readOnly'] && !$this->getNewIconMode($this->firstEl['table'],'disableDelete')) { $aOnClick = 'return deleteRecord(\''.$this->firstEl['table'].'\',\''.$this->firstEl['uid'].'\',unescape(\''.rawurlencode($this->retUrl).'\'));'; - $buttons['delete'] = ''. - 'doc->backPath,'gfx/deletedok.gif','width="21" height="16"').' class="c-inputButton" title="'.$LANG->getLL('deleteItem',1).'" alt="" />'. + $buttons['delete'] = ''. + t3lib_iconWorks::getSpriteIcon('actions-edit-delete') . ''; } @@ -870,26 +870,23 @@ class SC_alt_doc { $undoRes = $GLOBALS['TYPO3_DB']->exec_SELECTquery('tstamp', 'sys_history', 'tablename='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->firstEl['table'], 'sys_history').' AND recuid='.intval($this->firstEl['uid']), '', 'tstamp DESC', '1'); if ($undoButtonR = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($undoRes)) { $aOnClick = 'window.location.href=\'show_rechis.php?element='.rawurlencode($this->firstEl['table'].':'.$this->firstEl['uid']).'&revert=ALL_FIELDS&sumUp=-1&returnUrl='.rawurlencode($this->R_URI).'\'; return false;'; - $buttons['undo'] = ''. - 'doc->backPath, 'gfx/undo.gif', 'width="21" height="16"') . - ' class="c-inputButton"' . - ' title="' . htmlspecialchars(sprintf($LANG->getLL('undoLastChange'), t3lib_BEfunc::calcAge($GLOBALS['EXEC_TIME'] - $undoButtonR['tstamp'], $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.minutesHoursDaysYears')))) . - '" alt="" />' . + $buttons['undo'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-edit-undo') . ''; } if ($this->getNewIconMode($this->firstEl['table'],'showHistory')) { $aOnClick = 'window.location.href=\'show_rechis.php?element='.rawurlencode($this->firstEl['table'].':'.$this->firstEl['uid']).'&returnUrl='.rawurlencode($this->R_URI).'\'; return false;'; $buttons['history'] = ''. - 'doc->backPath,'gfx/history2.gif','width="13" height="12"').' class="c-inputButton" alt="" />'. - ''; + t3lib_iconWorks::getSpriteIcon('actions-document-history-open') . + ''; } // If only SOME fields are shown in the form, this will link the user to the FULL form: if ($this->columnsOnly) { - $buttons['columns_only'] = ''. - 'doc->backPath,'gfx/edit2.gif','width="11" height="12"').' class="c-inputButton" title="'.$LANG->getLL('editWholeRecord',1).'" alt="" />'. - ''; + $buttons['columns_only'] = ''. + t3lib_iconWorks::getSpriteIcon('actions-edit-edit') . + ''; } } } @@ -1005,8 +1002,9 @@ class SC_alt_doc { return ''; } $aOnClick = 'vHWin=window.open(\''.t3lib_div::linkThisScript(array('returnUrl'=>'close.html')).'\',\''.md5($this->R_URI).'\',\'width=670,height=500,status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;'; - return ''. - 'doc->backPath,'gfx/open_in_new_window.gif','width="19" height="14"').' title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:labels.openInNewWindow',1).'" alt="" />'; + return ''. + t3lib_iconWorks::getSpriteIcon('actions-window-open') . + ''; } diff --git a/typo3/alt_file_navframe.php b/typo3/alt_file_navframe.php index 6a42563..8607301 100644 --- typo3/alt_file_navframe.php +++ typo3/alt_file_navframe.php @@ -274,7 +274,8 @@ class SC_alt_file_navframe { // Refresh $buttons['refresh'] = '' . - ''; + t3lib_iconWorks::getSpriteIcon('actions-system-refresh') . + ''; // CSH $buttons['csh'] = str_replace('typo3-csh-inline','typo3-csh-inline show-right',t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'filetree', $GLOBALS['BACK_PATH'])); diff --git a/typo3/alt_palette.php b/typo3/alt_palette.php index 60a9115..7a9be7e 100644 --- typo3/alt_palette.php +++ typo3/alt_palette.php @@ -115,7 +115,7 @@ class formRender extends t3lib_TCEforms { '. implode('',$iRow).' diff --git a/typo3/class.alt_menu_functions.inc b/typo3/class.alt_menu_functions.inc index 1667aa7..259d898 100644 --- typo3/class.alt_menu_functions.inc +++ typo3/class.alt_menu_functions.inc @@ -213,7 +213,7 @@ class alt_menu_functions { // make menu collapsable if($collapsable == 1 && is_array($moduleInfo['sub'])) { $collapseJS = 'onclick="window.location.href=\'alt_menu.php?collapsedOverride['.$moduleName.']='.($config[$moduleName] ? '0' : '1').'\'"'; - $collapseIcon = ''; + $collapseIcon = t3lib_iconWorks::getSpriteIcon('actions-view-table-' . ($config[$moduleName]) ? 'expand' : 'collapse', array('class' => 'c-iconCollapse') ) . ''; } else { $collapseJS = $collapseIcon = ''; } diff --git a/typo3/class.db_list_extra.inc b/typo3/class.db_list_extra.inc index db6f709..6edfe9c 100644 --- typo3/class.db_list_extra.inc +++ typo3/class.db_list_extra.inc @@ -174,15 +174,15 @@ class localRecordList extends recordList { } if (!in_array($this->pageRow['doktype'], $noViewDokTypes)) { - $buttons['view'] = '' . - 'backPath, 'gfx/zoom.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.showPage', 1) . '" alt="" />' . + $buttons['view'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; } // New record if (!$GLOBALS['SOBE']->modTSconfig['properties']['noCreateRecordsLink']) { - $buttons['new_record'] = '' . - 'backPath, 'gfx/new_el.gif') . ' title="' . $LANG->getLL('newRecordGeneral', 1) . '" alt="" />' . + $buttons['new_record'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-new') . ''; } @@ -191,31 +191,31 @@ class localRecordList extends recordList { // Edit $params = '&edit[pages][' . $this->pageRow['uid'] . ']=edit'; - $buttons['edit'] = '' . - 'backPath, 'gfx/edit2.gif') . ' title="' . $LANG->getLL('editPage', 1) . '" alt="" />' . + $buttons['edit'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; // Unhide if ($this->pageRow['hidden']) { $params = '&data[pages][' . $this->pageRow['uid'] . '][hidden]=0'; - $buttons['hide_unhide'] = '' . - 'backPath, 'gfx/button_unhide.gif') . ' title="' . $LANG->getLL('unHidePage', 1) . '" alt="" />' . + $buttons['hide_unhide'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-edit-unhide') . ''; // Hide } else { $params = '&data[pages][' . $this->pageRow['uid'] . '][hidden]=1'; - $buttons['hide_unhide'] = ''. - 'backPath, 'gfx/button_hide.gif') . ' title="' . $LANG->getLL('hidePage', 1) . '" alt="" />' . + $buttons['hide_unhide'] = ''. + t3lib_iconWorks::getSpriteIcon('actions-edit-hide') . ''; } // Move - $buttons['move'] = '' . - 'backPath, 'gfx/move_' . ($this->table == 'tt_content' ? 'record' : 'page') . '.gif') . ' title="' . $LANG->getLL('move_page', 1) . '" alt="" />' . + $buttons['move'] = '' . + (($this->table == 'tt_content') ? t3lib_iconWorks::getSpriteIcon('actions-document-move') : t3lib_iconWorks::getSpriteIcon('actions-page-move')) . ''; // Up one level - $buttons['level_up'] = '' . - 'backPath, 'gfx/i/pages_up.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.upOneLevel', 1) . '" alt="" />' . + $buttons['level_up'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-view-go-up') . ''; } @@ -225,36 +225,37 @@ class localRecordList extends recordList { if (($localCalcPerms&8) || ($localCalcPerms&16)) { $elFromTable = $this->clipObj->elFromTable(''); if (count($elFromTable)) { - $buttons['paste'] = '' . - 'backPath, 'gfx/clip_pasteafter.gif') . ' title="' . $LANG->getLL('clip_paste', 1) . '" alt="" />' . + $buttons['paste'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-paste-after') . ''; } } // Cache - $buttons['cache'] = '' . - 'backPath, 'gfx/clear_cache.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.clear_cache', 1) . '" alt="" />' . + $buttons['cache'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-system-cache-clear') . ''; if ($this->table) { // CSV - $buttons['csv'] = '' . - 'backPath, 'gfx/csv.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.csv', 1) . '" alt="" />' . + $buttons['csv'] = '' . + t3lib_iconWorks::getSpriteIcon('mimetypes-text-csv') . ''; // Export if (t3lib_extMgm::isLoaded('impexp')) { $url = $this->backPath . t3lib_extMgm::extRelPath('impexp') . 'app/index.php?tx_impexp[action]=export'; - $buttons['export'] = '' . 'backPath, t3lib_extMgm::extRelPath('impexp') . 'export.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:rm.export', 1) . '" alt="" />' . - ''; + $buttons['export'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-export-t3d') . + ''; } } // Reload - $buttons['reload'] = '' . - 'backPath, 'gfx/refresh_n.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.reload', 1) . '" alt="" />' . + $buttons['reload'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-system-refresh') . ''; // Shortcut @@ -264,8 +265,8 @@ class localRecordList extends recordList { // Back if ($this->returnUrl) { - $buttons['back'] = '' . - 'backPath, 'gfx/goback.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.goBack', 1) . '" alt="" />' . + $buttons['back'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-go-back') . ''; } } @@ -294,10 +295,8 @@ class localRecordList extends recordList { $l10nEnabled = $TCA[$table]['ctrl']['languageField'] && $TCA[$table]['ctrl']['transOrigPointerField'] && !$TCA[$table]['ctrl']['transOrigPointerTable']; $tableCollapsed = (!$this->tablesCollapsed[$table]) ? false : true; - // prepare space icon - $iconWidth = $GLOBALS['TBE_STYLES']['skinImgAutoCfg']['iconSizeWidth'] ? $GLOBALS['TBE_STYLES']['skinImgAutoCfg']['iconSizeWidth'] : 12; - $iconHeight = $GLOBALS['TBE_STYLES']['skinImgAutoCfg']['iconSizeHeight'] ? $GLOBALS['TBE_STYLES']['skinImgAutoCfg']['iconSizeHeight'] : 12; - $this->spaceIcon = ''; + // prepare space icon + $this->spaceIcon = t3lib_iconWorks::getSpriteIcon('empty-empty', array('style' => 'background-position: 0 10px;') ); // Cleaning rowlist for duplicates and place the $titleCol as the first column always! $this->fieldArray=array(); @@ -455,7 +454,9 @@ class localRecordList extends recordList { if ($this->disableSingleTableView) { $theData[$titleCol] = ''.$GLOBALS['LANG']->sL($TCA[$table]['ctrl']['title'],1).' ('.$this->totalItems.')'; } else { - $theData[$titleCol] = $this->linkWrapTable($table,''.$GLOBALS['LANG']->sL($TCA[$table]['ctrl']['title'],1).' ('.$this->totalItems.') backPath,'gfx/'.($this->table?'minus':'plus').'bullet_list.gif','width="18" height="12"').' hspace="10" class="absmiddle" title="'.$GLOBALS['LANG']->getLL(!$this->table?'expandView':'contractView',1).'" alt="" />'); + $theData[$titleCol] = $this->linkWrapTable($table,''.$GLOBALS['LANG']->sL($TCA[$table]['ctrl']['title'],1).' ('.$this->totalItems.') ' . + ( $this->table ? t3lib_iconWorks::getSpriteIcon('actions-view-table-collapse', '', $GLOBALS['LANG']->getLL('contractView',1) ) : t3lib_iconWorks::getSpriteIcon('actions-view-table-expand', $GLOBALS['LANG']->getLL('expandView',1) ) ) + ); } // CSH: @@ -481,7 +482,9 @@ class localRecordList extends recordList { // Render collapse button if in multi table mode $collapseIcon = ''; if (!$this->table) { - $collapseIcon = 'backPath, 'gfx/arrow' . ($tableCollapsed ? 'right' : 'down') . '.png') . ' class="collapseIcon" alt="" title="' . ($tableCollapsed ? $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.expandTable',1) : $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.collapseTable',1)) . '" />'; + $collapseIcon = '' . + ( $tableCollapsed ? t3lib_iconWorks::getSpriteIcon('actions-view-list-expand', 'collapseIcon') : t3lib_iconWorks::getSpriteIcon('actions-view-list-collapse', array('class' => 'collapseIcon') ) ) . + ''; } $out .= $this->addelement(1, $collapseIcon, $theData, ' class="c-headLineTable"', ''); } @@ -664,7 +667,10 @@ class localRecordList extends recordList { // The icon with link $alttext = t3lib_BEfunc::getRecordIconAltText($row,$table); - $iconImg = t3lib_iconWorks::getIconImage($table,$row,$this->backPath,'title="'.htmlspecialchars($alttext).'"'.($indent ? ' style="margin-left: '.$indent.'px;"' : '')); + //$iconImg = t3lib_iconWorks::getIconImage($table,$row,$this->backPath,'title="'.htmlspecialchars($alttext).'"'.($indent ? ' style="margin-left: '.$indent.'px;"' : '')); + $iconImg = t3lib_iconWorks::getSpriteIcon('row:' . $table . '+row::' . $table, array('row' => $row, 'title' => htmlspecialchars($alttext) ) ); + + $theIcon = $this->clickMenuEnabled ? $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($iconImg,$table,$row['uid']) : $iconImg; // Preparing and getting the data-array @@ -674,8 +680,8 @@ class localRecordList extends recordList { $recTitle = t3lib_BEfunc::getRecordTitle($table,$row,FALSE,TRUE); // If the record is edit-locked by another user, we will show a little warning sign: if (($lockInfo = t3lib_BEfunc::isRecordLocked($table, $row['uid']))) { - $warning = '' . - 'backPath, 'gfx/recordlock_warning3.gif', 'width="17" height="12"') . ' title="' . htmlspecialchars($lockInfo['msg']) . '" alt="" />' . + $warning = '' . + t3lib_iconWorks::getSpriteIcon('status-warning-record') . ''; } $theData[$fCol] = $warning . $this->linkWrapItems($table, $row['uid'], $recTitle, $row); @@ -802,8 +808,8 @@ class localRecordList extends recordList { // If there are elements on the clipboard for this table, then display the "paste into" icon: $elFromTable = $this->clipObj->elFromTable($table); if (count($elFromTable)) { - $cells['pasteAfter']=''. - 'backPath,'gfx/clip_pasteafter.gif','width="12" height="12"').' title="'.$LANG->getLL('clip_paste',1).'" alt="" />'. + $cells['pasteAfter']=''. + t3lib_iconWorks::getSpriteIcon('actions-document-paste-after') . ''; } @@ -811,22 +817,22 @@ class localRecordList extends recordList { if ($this->clipObj->current!='normal') { // The "select" link: - $cells['copyMarked']=$this->linkClipboardHeaderIcon('backPath,'gfx/clip_copy.gif','width="12" height="12"').' title="'.$LANG->getLL('clip_selectMarked',1).'" alt="" />',$table,'setCB'); + $cells['copyMarked']=$this->linkClipboardHeaderIcon(t3lib_iconWorks::getSpriteIcon('actions-edit-copy', $LANG->getLL('clip_selectMarked',1)) ,$table,'setCB'); // The "edit marked" link: $editIdList = implode(',',$currentIdList); $editIdList = "'+editList('".$table."','".$editIdList."')+'"; $params='&edit['.$table.']['.$editIdList.']=edit&disHelp=1'; - $cells['edit']=''. - 'backPath,'gfx/edit2.gif','width="11" height="12"').' title="'.$LANG->getLL('clip_editMarked',1).'" alt="" />'. + $cells['edit']=''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; // The "Delete marked" link: - $cells['delete']=$this->linkClipboardHeaderIcon('backPath,'gfx/garbage.gif','width="11" height="12"').' title="'.$LANG->getLL('clip_deleteMarked',1).'" alt="" />',$table,'delete',sprintf($LANG->getLL('clip_deleteMarkedWarning'),$LANG->sL($TCA[$table]['ctrl']['title']))); + $cells['delete']=$this->linkClipboardHeaderIcon(t3lib_iconWorks::getSpriteIcon('actions-edit-delete', $LANG->getLL('clip_deleteMarked',1)) ,$table,'delete',sprintf($LANG->getLL('clip_deleteMarkedWarning'),$LANG->sL($TCA[$table]['ctrl']['title']))); // The "Select all" link: - $cells['markAll']=''. - 'backPath,'gfx/clip_select.gif','width="12" height="12"').' title="'.$LANG->getLL('clip_markRecords',1).'" alt="" />'. + $cells['markAll']=''. + t3lib_iconWorks::getSpriteIcon('actions-document-select') . ''; } else { $cells['empty']=''; @@ -859,12 +865,12 @@ class localRecordList extends recordList { $tmpTSc = $tmpTSc ['properties']['newContentWiz.']['overrideWithExtension']; $newContentWizScriptPath = $this->backPath.t3lib_extMgm::isLoaded($tmpTSc) ? (t3lib_extMgm::extRelPath($tmpTSc).'mod1/db_new_content_el.php') : 'sysext/cms/layout/db_new_content_el.php'; - $icon = ''. - 'backPath,'gfx/new_'.($table=='pages'?'page':'el').'.gif','width="'.($table=='pages'?13:11).'" height="12"').' title="'.$LANG->getLL('new',1).'" alt="" />'. + $icon = ''. + ( $table=='pages' ? t3lib_iconWorks::getSpriteIcon('actions-page-new') : t3lib_iconWorks::getSpriteIcon('actions-document-new') ) . ''; } elseif ($table=='pages' && $this->newWizards) { - $icon = ''. - 'backPath,'gfx/new_'.($table=='pages'?'page':'el').'.gif','width="'.($table=='pages'?13:11).'" height="12"').' title="'.$LANG->getLL('new',1).'" alt="" />'. + $icon = ''. + ( $table=='pages' ? t3lib_iconWorks::getSpriteIcon('actions-page-new') : t3lib_iconWorks::getSpriteIcon('actions-document-new') ) . ''; } else { @@ -872,8 +878,8 @@ class localRecordList extends recordList { if ($table == 'pages_language_overlay') { $params .= '&overrideVals[pages_language_overlay][doktype]=' . (int) $this->pageRow['doktype']; } - $icon = ''. - 'backPath,'gfx/new_'.($table=='pages'?'page':'el').'.gif','width="'.($table=='pages'?13:11).'" height="12"').' title="'.$LANG->getLL('new',1).'" alt="" />'. + $icon = ''. + ( $table=='pages' ? t3lib_iconWorks::getSpriteIcon('actions-page-new') : t3lib_iconWorks::getSpriteIcon('actions-document-new') ) . ''; } } @@ -883,8 +889,8 @@ class localRecordList extends recordList { $editIdList = implode(',',$currentIdList); if ($this->clipNumPane()) $editIdList = "'+editList('".$table."','".$editIdList."')+'"; $params = '&edit['.$table.']['.$editIdList.']=edit&columnsOnly='.implode(',',$this->fieldArray).'&disHelp=1'; - $icon .= ''. - 'backPath,'gfx/edit2.gif','width="11" height="12"').' title="'.$LANG->getLL('editShownColumns',1).'" alt="" />'. + $icon .= ''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; } // add an empty entry, so column count fits again after moving this into $icon @@ -901,8 +907,8 @@ class localRecordList extends recordList { // If the numeric clipboard pads are selected, show duplicate sorting link: if ($this->clipNumPane()) { - $theData[$fCol].=''. - 'backPath,'gfx/select_duplicates.gif','width="11" height="11"').' title="'.$LANG->getLL('clip_duplicates',1).'" alt="" />'. + $theData[$fCol].=''. + t3lib_iconWorks::getSpriteIcon('actions-list-dublicates-select') . ''; } @@ -912,8 +918,8 @@ class localRecordList extends recordList { if ($this->clipNumPane()) $editIdList = "'+editList('".$table."','".$editIdList."')+'"; $params='&edit['.$table.']['.$editIdList.']=edit&columnsOnly='.$fCol.'&disHelp=1'; $iTitle = sprintf($LANG->getLL('editThisColumn'),rtrim(trim($LANG->sL(t3lib_BEfunc::getItemLabel($table,$fCol))),':')); - $theData[$fCol].=''. - 'backPath,'gfx/edit2.gif','width="11" height="12"').' title="'.htmlspecialchars($iTitle).'" alt="" />'. + $theData[$fCol].=''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; } } @@ -1010,11 +1016,9 @@ class localRecordList extends recordList { } $reload = ' - backPath, 'gfx/refresh_n.gif') - . 'alt="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:reload') - . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:reload') - . '" />'; + . $listURL . '&pointer=\'+calculatePointer(); document.dblistForm.submit(); return true;" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:reload') . '">' . + t3lib_iconWorks::getSpriteIcon('actions-system-refresh') . + ''; // Add js to traverse a page select input to a pointer value $content = ' @@ -1113,8 +1117,8 @@ class localRecordList extends recordList { // "Show" link (only pages and tt_content elements) if ($table=='pages' || $table=='tt_content') { $params='&edit['.$table.']['.$row['uid'].']=edit'; - $cells['view']=''. - 'backPath,'gfx/zoom.gif','width="12" height="12"').' title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:labels.showPage',1).'" alt="" />'. + $cells['view']=''. + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; } elseif(!$this->table) { $cells['view'] = $this->spaceIcon; @@ -1123,8 +1127,8 @@ class localRecordList extends recordList { // "Edit" link: ( Only if permissions to edit the page-record of the content of the parent page ($this->id) if ($permsEdit) { $params='&edit['.$table.']['.$row['uid'].']=edit'; - $cells['edit']=''. - 'backPath,'gfx/edit2'.(!$TCA[$table]['ctrl']['readOnly']?'':'_d').'.gif','width="11" height="12"').' title="'.$LANG->getLL('edit',1).'" alt="" />'. + $cells['edit']=''. + ( $TCA[$table]['ctrl']['readOnly'] ? t3lib_iconWorks::getSpriteIcon('actions-document-open-read-only') : t3lib_iconWorks::getSpriteIcon('actions-document-open') ). ''; } elseif(!$this->table) { $cells['edit'] = $this->spaceIcon; @@ -1132,8 +1136,8 @@ class localRecordList extends recordList { // "Move" wizard link for pages/tt_content elements: if (($table=="tt_content" && $permsEdit) || ($table=='pages')) { - $cells['move']=''. - 'backPath,'gfx/move_'.($table=='tt_content'?'record':'page').'.gif','width="11" height="12"').' title="'.$LANG->getLL('move_'.($table=='tt_content'?'record':'page'),1).'" alt="" />'. + $cells['move']=''. + ( $table=='tt_content' ? t3lib_iconWorks::getSpriteIcon('actions-document-move') : t3lib_iconWorks::getSpriteIcon('actions-page-move') ) . ''; } elseif(!$this->table) { $cells['move'] = $this->spaceIcon; @@ -1143,42 +1147,39 @@ class localRecordList extends recordList { if ($SOBE->MOD_SETTINGS['bigControlPanel'] || $this->table) { // "Info": (All records) - $cells['viewBig']=''. - 'backPath,'gfx/zoom2.gif','width="12" height="12"').' title="'.$LANG->getLL('showInfo',1).'" alt="" />'. + $cells['viewBig']=''. + t3lib_iconWorks::getSpriteIcon('actions-document-info') . ''; // If the table is NOT a read-only table, then show these links: if (!$TCA[$table]['ctrl']['readOnly']) { // "Revert" link (history/undo) - $cells['history']=''. - 'backPath,'gfx/history2.gif','width="13" height="12"').' title="'.$LANG->getLL('history',1).'" alt="" />'. + $cells['history']=''. + t3lib_iconWorks::getSpriteIcon('actions-document-history-open') . ''; // Versioning: if (t3lib_extMgm::isLoaded('version')) { $vers = t3lib_BEfunc::selectVersionsOfRecord($table, $row['uid'], 'uid', $GLOBALS['BE_USER']->workspace, FALSE, $row); if (is_array($vers)) { // If table can be versionized. - if (count($vers)>1) { - $class = 'typo3-ctrl-versioning-multipleVersions'; - $lab = count($vers)-1; - } else { - $class = 'typo3-ctrl-versioning-oneVersion'; - $lab = 'V'; + $versionIcon = 'no-version'; + if (count($vers) > 1) { + $versionIcon = count($vers) - 1; } - $cells['version']=''. - $lab. + $cells['version']=''. + t3lib_iconWorks::getSpriteIcon('status-version-' . $versionIcon) . ''; } elseif(!$this->table) { - $cells['version'] = 'V'; + $cells['version'] = $this->spaceIcon; } } // "Edit Perms" link: if ($table=='pages' && $GLOBALS['BE_USER']->check('modules','web_perm')) { - $cells['perms']=''. - 'backPath,'gfx/perm.gif','width="7" height="12"').' title="'.$LANG->getLL('permissions',1).'" alt="" />'. + $cells['perms']=''. + t3lib_iconWorks::getSpriteIcon('status-status-locked') . ''; } elseif(!$this->table && $GLOBALS['BE_USER']->check('modules','web_perm')) { $cells['perms'] = $this->spaceIcon; @@ -1192,8 +1193,8 @@ class localRecordList extends recordList { ) { if ($this->showNewRecLink($table)) { $params='&edit['.$table.']['.(-($row['_MOVE_PLH']?$row['_MOVE_PLH_uid']:$row['uid'])).']=new'; - $cells['new']=''. - 'backPath,'gfx/new_'.($table=='pages'?'page':'el').'.gif','width="'.($table=='pages'?13:11).'" height="12"').' title="'.$LANG->getLL('new'.($table=='pages'?'Page':'Record'),1).'" alt="" />'. + $cells['new']=''. + ( $table=='pages' ? t3lib_iconWorks::getSpriteIcon('actions-page-new') : t3lib_iconWorks::getSpriteIcon('actions-document-new') ) . ''; } } @@ -1205,16 +1206,16 @@ class localRecordList extends recordList { if ($permsEdit && $TCA[$table]['ctrl']['sortby'] && !$this->sortField && !$this->searchLevels) { if (isset($this->currentTable['prev'][$row['uid']])) { // Up $params='&cmd['.$table.']['.$row['uid'].'][move]='.$this->currentTable['prev'][$row['uid']]; - $cells['moveUp']=''. - 'backPath,'gfx/button_up.gif','width="11" height="10"').' title="'.$LANG->getLL('moveUp',1).'" alt="" />'. + $cells['moveUp']=''. + t3lib_iconWorks::getSpriteIcon('actions-move-up') . ''; } else { $cells['moveUp'] = $this->spaceIcon; } if ($this->currentTable['next'][$row['uid']]) { // Down $params='&cmd['.$table.']['.$row['uid'].'][move]='.$this->currentTable['next'][$row['uid']]; - $cells['moveDown']=''. - 'backPath,'gfx/button_down.gif','width="11" height="10"').' title="'.$LANG->getLL('moveDown',1).'" alt="" />'. + $cells['moveDown']=''. + t3lib_iconWorks::getSpriteIcon('actions-move-down') . ''; } else { $cells['moveDown'] = $this->spaceIcon; @@ -1229,13 +1230,13 @@ class localRecordList extends recordList { if ($permsEdit && $hiddenField && $TCA[$table]['columns'][$hiddenField] && (!$TCA[$table]['columns'][$hiddenField]['exclude'] || $GLOBALS['BE_USER']->check('non_exclude_fields',$table.':'.$hiddenField))) { if ($row[$hiddenField]) { $params='&data['.$table.']['.$row['uid'].']['.$hiddenField.']=0'; - $cells['hide']=''. - 'backPath,'gfx/button_unhide.gif','width="11" height="10"').' title="'.$LANG->getLL('unHide'.($table=='pages'?'Page':''),1).'" alt="" />'. + $cells['hide']=''. + t3lib_iconWorks::getSpriteIcon('actions-edit-unhide') . ''; } else { $params='&data['.$table.']['.$row['uid'].']['.$hiddenField.']=1'; - $cells['hide']=''. - 'backPath,'gfx/button_hide.gif','width="11" height="10"').' title="'.$LANG->getLL('hide'.($table=='pages'?'Page':''),1).'" alt="" />'. + $cells['hide']=''. + t3lib_iconWorks::getSpriteIcon('actions-edit-hide') . ''; } } elseif(!$this->table) { @@ -1249,9 +1250,9 @@ class localRecordList extends recordList { $params = '&cmd['.$table.']['.$row['uid'].'][delete]=1'; $refCountMsg = t3lib_BEfunc::referenceCount($table, $row['uid'], ' ' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.referencesToRecord'), count($this->references)) . - t3lib_BEfunc::translationCount($table, $row['uid'], ' ' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.translationsOfRecord')); - $cells['delete']='doc->issueCommand($params,-1).'\');} return false;').'">'. - 'backPath,'gfx/garbage.gif','width="11" height="12"').' title="'.$LANG->getLL('delete',1).'" alt="" />'. + t3lib_BEfunc::translationCount($table, $row['uid'], ' ' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.translationsOfRecord')) . ")"; + $cells['delete']='doc->issueCommand($params,-1).'\');} return false;').'" title="'.$LANG->getLL('delete',1).'">'. + t3lib_iconWorks::getSpriteIcon('actions-edit-delete') . ''; } elseif(!$this->table) { $cells['delete'] = $this->spaceIcon; @@ -1263,8 +1264,8 @@ class localRecordList extends recordList { // Up (Paste as the page right after the current parent page) if ($this->calcPerms&8) { $params='&cmd['.$table.']['.$row['uid'].'][move]='.-$this->id; - $cells['moveLeft']=''. - 'backPath,'gfx/button_left.gif','width="11" height="10"').' title="'.$LANG->getLL('prevLevel',1).'" alt="" />'. + $cells['moveLeft']=''. + t3lib_iconWorks::getSpriteIcon('actions-move-left') . ''; } // Down (Paste as subpage to the page right above) @@ -1272,8 +1273,8 @@ class localRecordList extends recordList { $localCalcPerms = $GLOBALS['BE_USER']->calcPerms(t3lib_BEfunc::getRecord('pages',$this->currentTable['prevUid'][$row['uid']])); if ($localCalcPerms&8) { $params='&cmd['.$table.']['.$row['uid'].'][move]='.$this->currentTable['prevUid'][$row['uid']]; - $cells['moveRight']=''. - 'backPath,'gfx/button_right.gif','width="11" height="10"').' title="'.$LANG->getLL('nextLevel',1).'" alt="" />'. + $cells['moveRight']=''. + t3lib_iconWorks::getSpriteIcon('actions-move-right') . ''; } else { $cells['moveRight'] = $this->spaceIcon; @@ -1347,11 +1348,11 @@ class localRecordList extends recordList { // Show copy/cut icons: $isSel = (string)$this->clipObj->isSelected($table,$row['uid']); - $cells['copy'] = $isL10nOverlay ? $this->spaceIcon : ''. - 'backPath,'gfx/clip_copy'.($isSel=='copy'?'_h':'').'.gif','width="12" height="12"').' title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:cm.copy',1).'" alt="" />'. + $cells['copy'] = $isL10nOverlay ? $this->spaceIcon : ''. + ( (!$isSel=='copy') ? t3lib_iconWorks::getSpriteIcon('actions-edit-copy') : t3lib_iconWorks::getSpriteIcon('actions-edit-copy-release') ) . ''; - $cells['cut'] = $isL10nOverlay ? $this->spaceIcon : ''. - 'backPath,'gfx/clip_cut'.($isSel=='cut'?'_h':'').'.gif','width="12" height="12"').' title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:cm.cut',1).'" alt="" />'. + $cells['cut'] = $isL10nOverlay ? $this->spaceIcon : ''. + ( (!$isSel=='cut') ? t3lib_iconWorks::getSpriteIcon('actions-edit-cut') : t3lib_iconWorks::getSpriteIcon('actions-edit-cut-release') ) . ''; } else { // For the numeric clipboard pads (showing checkboxes where one can select elements on/off) @@ -1379,16 +1380,16 @@ class localRecordList extends recordList { // Now, looking for selected elements from the current table: $elFromTable = $this->clipObj->elFromTable($table); if (count($elFromTable) && $TCA[$table]['ctrl']['sortby']) { // IF elements are found and they can be individually ordered, then add a "paste after" icon: - $cells['pasteAfter'] = $isL10nOverlay ? $this->spaceIcon : ''. - 'backPath,'gfx/clip_pasteafter.gif','width="12" height="12"').' title="'.$LANG->getLL('clip_pasteAfter',1).'" alt="" />'. + $cells['pasteAfter'] = $isL10nOverlay ? $this->spaceIcon : ''. + t3lib_iconWorks::getSpriteIcon('actions-document-paste-after') . ''; } // Now, looking for elements in general: $elFromTable = $this->clipObj->elFromTable(''); if ($table=='pages' && count($elFromTable)) { - $cells['pasteInto']=''. - 'backPath,'gfx/clip_pasteinto.gif','width="12" height="12"').' title="'.$LANG->getLL('clip_pasteInto',1).'" alt="" />'. + $cells['pasteInto']=''. + t3lib_iconWorks::getSpriteIcon('actions-document-paste-into') . ''; } diff --git a/typo3/class.file_list.inc b/typo3/class.file_list.inc index c1541f7..3617d56 100644 --- typo3/class.file_list.inc +++ typo3/class.file_list.inc @@ -179,20 +179,20 @@ class fileList extends t3lib_recordList { $otherMarkers['PAGE_ICON'] = 'backPath,$icon,'width="18" height="16"').' title="'.htmlspecialchars($theFile['file']).'" alt="'.htmlspecialchars($theFile['file']).'" />'; if ($this->clickMenus) $otherMarkers['PAGE_ICON'] = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($otherMarkers['PAGE_ICON'],$path); - $buttons['level_up'] .= $this->linkWrapDir('backPath,'gfx/i/folder_up.gif','width="18" height="16"').' title="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.upOneLevel',1).'" alt="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.upOneLevel',1).'" />',$theFile['path']); + $buttons['level_up'] .= $this->linkWrapDir(t3lib_iconWorks::getSpriteIcon('actions-view-go-up'),$theFile['path']); $otherMarkers['TITLE'] .= t3lib_div::fixed_lgd_cs($title,-($this->fixedL+20)); // No HTML specialchars here - HTML like is allowed // this is the root page } else { - $otherMarkers['PAGE_ICON'] = 'backPath,'gfx/i/_icon_ftp.gif','width="18" height="16"').' alt="" />'; + $otherMarkers['PAGE_ICON'] = t3lib_iconWorks::getSpriteIcon('apps-filetree-root'); if ($this->clickMenus) $otherMarkers['PAGE_ICON'] = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($otherMarkers['PAGE_ICON'],$path); $otherMarkers['TITLE'] .= htmlspecialchars(t3lib_div::fixed_lgd_cs($title,-($this->fixedL+20))); } } - $buttons['refresh'] = ''. - 'backPath,'gfx/refresh_n.gif','width="14" height="14"').' title="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.reload',1).'" alt="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.reload',1).'" />'. - ''; + $buttons['refresh'] = ''. + t3lib_iconWorks::getSpriteIcon('actions-system-refresh') . + ''; return array($buttons, $otherMarkers); } @@ -225,7 +225,7 @@ class fileList extends t3lib_recordList { $out=''; $titleCol = 'file'; $upLevelDir = dirname(substr($files['files'][0]['path'], 0, -1)) . '/'; - $levelUp = $GLOBALS['SOBE']->basicFF->checkPathAgainstMounts($upLevelDir) ? $this->linkWrapDir('backPath, 'gfx/i/folder_up.gif', 'width="18" height="16"') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.upOneLevel',1) . '" alt="" />', $upLevelDir) : ''; + $levelUp = $GLOBALS['SOBE']->basicFF->checkPathAgainstMounts($upLevelDir) ? $this->linkWrapDir(t3lib_iconWorks::getSpriteIcon('actions-view-go-up'), $upLevelDir) : ''; // Cleaning rowlist for duplicates and place the $titleCol as the first column always! $rowlist = t3lib_div::rmFromList($titleCol,$rowlist); @@ -260,16 +260,16 @@ class fileList extends t3lib_recordList { $table='_FILE'; $elFromTable = $this->clipObj->elFromTable($table); if (count($elFromTable)) { - $cells[]=''. - ''; + $cells[]=''. + t3lib_iconWorks::getSpriteIcon('actions-document-paste-after') . ''; } if ($this->clipObj->current!='normal' && $iOut) { - $cells[]=$this->linkClipboardHeaderIcon('',$table,'setCB'); - $cells[]=$this->linkClipboardHeaderIcon('',$table,'delete',$GLOBALS['LANG']->getLL('clip_deleteMarkedWarning')); + $cells[]=$this->linkClipboardHeaderIcon(t3lib_iconWorks::getSpriteIcon('actions-edit-copy'),$table,'setCB'); + $cells[]=$this->linkClipboardHeaderIcon(t3lib_iconWorks::getSpriteIcon('actions-edit-delete'),$table,'delete',$GLOBALS['LANG']->getLL('clip_deleteMarkedWarning')); $onClick = 'checkOffCB(\''.implode(',',$this->CBnames).'\'); return false;'; - $cells[]=''. - ''. - ''; + $cells[]=''. + t3lib_iconWorks::getSpriteIcon('actions-document-select') . + ''; } $theData[$v] = implode('',$cells); } else { // Normal row: @@ -331,7 +331,7 @@ class fileList extends t3lib_recordList { list($title,$icon,$path) = $this->dirData($theFile); // The icon with link - $theIcon = 'backPath,$icon,'width="18" height="16"').' title="'.htmlspecialchars($theFile['file']).'" alt="'.htmlspecialchars($theFile['file']).'" />'; + $theIcon = t3lib_iconWorks::getSpriteIcon('file::' . $theFile['fileext'], htmlspecialchars($theFile['file']) ); if ($this->clickMenus) $theIcon = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($theIcon,$path); // Preparing and getting the data-array @@ -474,9 +474,10 @@ class fileList extends t3lib_recordList { $this->totalbytes+=$theFile['size']; $ext = $items['files'][$key][fileext]; $icon = t3lib_BEfunc::getFileIcon($ext); - + // The icon with link - $theIcon = 'backPath,'gfx/fileicons/'.$icon,'width="18" height="16"').' title="'.htmlspecialchars($theFile['file']).'" alt="'.htmlspecialchars($theFile['file']).'" />'; + $theIcon = t3lib_iconWorks::getSpriteIcon('file::' . $theFile['fileext'], htmlspecialchars($theFile['file']) ); + if ($this->clickMenus) $theIcon = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($theIcon,$theFile['path'].$theFile['file']); // Preparing and getting the data-array @@ -659,9 +660,9 @@ class fileList extends t3lib_recordList { // Display PASTE button, if directory: $elFromTable = $this->clipObj->elFromTable('_FILE'); if (@is_dir($fullIdent) && count($elFromTable)) { - $cells[]=''. - ''. - ''; + $cells[]=''. + t3lib_iconWorks::getSpriteIcon('document-paste-into') . + ''; } // Compile items into a DIV-element: @@ -696,17 +697,17 @@ class fileList extends t3lib_recordList { $editOnClick = 'top.content.list_frame.location.href=top.TS.PATH_typo3+\'file_edit.php?target=' . rawurlencode($fullIdent) . '&returnUrl=\'+top.rawurlencode(top.content.list_frame.document.location);return false;'; - $cells['edit'] = ''; + $cells['edit'] = '' . t3lib_iconWorks::getSpriteIcon('actions-page-open') . ''; } //rename $renameOnClick = 'top.content.list_frame.location.href=top.TS.PATH_typo3+\'file_rename.php?target=' . rawurlencode($fullIdent) . '&returnUrl=\'+top.rawurlencode(top.content.list_frame.document.location);return false;'; - $cells['rename'] = ''; + $cells['rename'] = '' . t3lib_iconWorks::getSpriteIcon('actions-edit-rename') . ''; //info $infoOnClick = 'top.launchView(\'' . $fullIdent . '\', \'\');return false;'; - $cells['info'] = ''; + $cells['info'] = '' . t3lib_iconWorks::getSpriteIcon('status-dialog-information') . ''; // Hook for manipulating edit icons. if(is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['fileList']['editIconsHook'])) { diff --git a/typo3/class.show_rechis.inc b/typo3/class.show_rechis.inc index 5df1b00..0296bd9 100644 --- typo3/class.show_rechis.inc +++ typo3/class.show_rechis.inc @@ -405,7 +405,7 @@ class recordHistory { $singleLine = array(); // diff link - $image = ''; + $image = t3lib_iconWorks::getSpriteIcon('actions-go-forward'); $singleLine[] = ''.$this->linkPage($image,array('diff' => $sysLogUid)).''; // remove first link $singleLine[] = htmlspecialchars(t3lib_BEfunc::datetime($entry['tstamp'])); // add time @@ -461,7 +461,7 @@ class recordHistory {
'. - ''. + '' . t3lib_iconWorks::getSpriteIcon('actions-document-close') . ''. '
'; if ($this->lastSyslogId) { - $theCode .= '
' . $this->linkPage('',array('diff' => '')); + $theCode .= '
' . $this->linkPage(t3lib_iconWorks::getSpriteIcon('actions-move-to-bottom'),array('diff' => '')); } // Add message about the difference view. diff --git a/typo3/classes/class.clearcachemenu.php b/typo3/classes/class.clearcachemenu.php index c174a93..4c8c3ed 100644 --- typo3/classes/class.clearcachemenu.php +++ typo3/classes/class.clearcachemenu.php @@ -64,7 +64,7 @@ class ClearCacheMenu implements backend_toolbarItem { 'id' => 'all', 'title' => $title, 'href' => $this->backPath.'tce_db.php?vC='.$GLOBALS['BE_USER']->veriCode().'&cacheCmd=all', - 'icon' => 'backPath, 'gfx/lightning_red.png', 'width="16" height="16"').' title="'.$title.'" alt="'.$title.'" />' + 'icon' => t3lib_iconWorks::getSpriteIcon('actions-system-cache-clear-impact-high') ); } @@ -75,7 +75,7 @@ class ClearCacheMenu implements backend_toolbarItem { 'id' => 'pages', 'title' => $title, 'href' => $this->backPath.'tce_db.php?vC='.$GLOBALS['BE_USER']->veriCode().'&cacheCmd=pages', - 'icon' => 'backPath, 'gfx/lightning.png', 'width="16" height="16"').' title="'.$title.'" alt="'.$title.'" />' + 'icon' => t3lib_iconWorks::getSpriteIcon('actions-system-cache-clear-impact-medium') ); } @@ -86,7 +86,7 @@ class ClearCacheMenu implements backend_toolbarItem { 'id' => 'temp_CACHED', 'title' => $title, 'href' => $this->backPath.'tce_db.php?vC='.$GLOBALS['BE_USER']->veriCode().'&cacheCmd=temp_CACHED', - 'icon' => 'backPath, 'gfx/lightning_green.png', 'width="16" height="16"').' title="'.$title.'" alt="'.$title.'" />' + 'icon' => t3lib_iconWorks::getSpriteIcon('actions-system-cache-clear-impact-low') ); } diff --git a/typo3/classes/class.workspaceselector.php b/typo3/classes/class.workspaceselector.php index 062fb8f..05d3fe1 100644 --- typo3/classes/class.workspaceselector.php +++ typo3/classes/class.workspaceselector.php @@ -183,16 +183,10 @@ class WorkspaceSelector implements backend_toolbarItem { $availableWorkspaces = $this->getAvailableWorkspaces(); $workspaceMenu = array(); - $stateCheckedIcon = 'backPath, - 'gfx/state_checked.png', - 'width="16" height="16"') . - ' title="' . $GLOBALS['LANG']->getLL('shortcut_active') . - '" alt="' . $GLOBALS['LANG']->getLL('shortcut_active') . '" class="state-active" />'; - $stateUncheckedIcon = '' . $GLOBALS['LANG']->getLL('shortcut_inactive') . ''; - + $stateCheckedIcon = t3lib_iconWorks::getSpriteIcon('status-status-checked'); + + $stateUncheckedIcon = '' . $GLOBALS['LANG']->getLL('shortcut_inactive') . ''; $workspaceMenu[] = 'pagesOnly) { // Regular new element: // New page if ($this->showNewRecLink('pages')) { - $buttons['new_page'] = '' . - 'doc->backPath, 'gfx/new_page.gif') . ' alt="" />' . + $buttons['new_page'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-page-new') . ''; } // CSH @@ -315,22 +315,22 @@ class SC_db_new { // Back if ($this->R_URI) { - $buttons['back'] = '' . - 'doc->backPath, 'gfx/goback.gif') . ' alt="" />' . + $buttons['back'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-go-back') . ''; } if (is_array($this->pageinfo) && $this->pageinfo['uid']) { // View - $buttons['view'] = '' . - 'backPath, 'gfx/zoom.gif') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.showPage', 1) . '" alt="" />' . + $buttons['view'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; // Record list if ($GLOBALS['BE_USER']->check('modules', 'web_list')) { $href = $this->backPath . 'db_list.php?id=' . $this->pageinfo['uid'] . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')); - $buttons['record_list'] = '' . - 'backPath, 'gfx/list.gif') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.showList', 1) . '" alt="" />' . + $buttons['record_list'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-system-list-open') . ''; } } @@ -381,7 +381,7 @@ class SC_db_new { $table = 'pages'; $v = $GLOBALS['TCA'][$table]; $pageIcon = t3lib_iconWorks::getIconImage($table, array(), $this->doc->backPath, ''); - $newPageIcon = 'doc->backPath, 'gfx/new_page.gif', 'width="13" height="12"') . ' alt="" />'; + $newPageIcon = t3lib_iconWorks::getSpriteIcon('actions-page-new'); $rowContent = $firstLevel . $newPageIcon . ' ' . $GLOBALS['LANG']->getLL('createNewPage') . ''; // New pages INSIDE this pages @@ -438,7 +438,7 @@ class SC_db_new { // New tables (but not pages) INSIDE this pages $isAdmin = $GLOBALS['BE_USER']->isAdmin(); - $newContentIcon = 'doc->backPath, 'gfx/new_record.gif', 'width="16" height="12"') . ' alt="" />'; + $newContentIcon = t3lib_iconWorks::getSpriteIcon('actions-document-new'); if ($this->newContentInto) { if (is_array($GLOBALS['TCA'])) { $groupName = ''; diff --git a/typo3/file_edit.php b/typo3/file_edit.php index fe8787a..f1c1f0b 100644 --- typo3/file_edit.php +++ typo3/file_edit.php @@ -230,16 +230,16 @@ class SC_file_edit { $buttons['csh'] = t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'file_edit', $GLOBALS['BACK_PATH'], '', TRUE); // Save button - $theIcon = 'backPath,'gfx/savedok.gif','width="18" height="16"').' title="'.$GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:file_edit.php.submit',1)).'" alt="" />'; - $buttons['SAVE'] = ''.$theIcon.''; + $theIcon = t3lib_iconWorks::getSpriteIcon('actions-document-save'); + $buttons['SAVE'] = ''.$theIcon.''; // Save and Close button - $theIcon = 'backPath,'gfx/saveandclosedok.gif','width="18" height="16"').' title="'.$GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:file_edit.php.saveAndClose',1)).'" alt="" />'; - $buttons['SAVE_CLOSE'] = ''.$theIcon.''; + $theIcon = t3lib_iconWorks::getSpriteIcon('actions-document-save-close'); + $buttons['SAVE_CLOSE'] = ''.$theIcon.''; // Cancel button - $theIcon = 'backPath,'gfx/closedok.gif','width="18" height="16"').' title="'.$GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.cancel',1)).'" alt="" />'; - $buttons['CANCEL'] = ''.$theIcon.''; + $theIcon = t3lib_iconWorks::getSpriteIcon('actions-document-close'); + $buttons['CANCEL'] = ''.$theIcon.''; return $buttons; } diff --git a/typo3/file_list.php b/typo3/file_list.php index 04c427f..8c192c8 100644 --- typo3/file_list.php +++ typo3/file_list.php @@ -412,11 +412,13 @@ class SC_file_list { $buttons['csh'] = t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'filelist_module', $GLOBALS['BACK_PATH'], '', TRUE); // upload button - $theIcon = 'backPath,'gfx/upload.gif','width="18" height="16"').' title="'.$GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:cm.upload',1)).'" alt="'.$GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:cm.upload',1)).'" />'; - $buttons['upload'] = '' . $theIcon . ''; + $buttons['upload'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-edit-upload') . + ''; - $theIcon = 'backPath,'gfx/new_file.gif','width="18" height="16"').' title="'.$GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:cm.new',1)).'" alt="'.$GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:cm.new',1)).'" />'; - $buttons['new'] = '' . $theIcon . ''; + $buttons['new'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-new') . + ''; return $buttons; } diff --git a/typo3/mod/tools/em/class.em_index.php b/typo3/mod/tools/em/class.em_index.php index ede6314..1a842c3 100644 --- typo3/mod/tools/em/class.em_index.php +++ typo3/mod/tools/em/class.em_index.php @@ -710,7 +710,9 @@ class SC_mod_tools_em_index extends t3lib_SCbase { } // 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'] = 'doc->backPath, 'gfx/goback.gif') . ' title="' . $GLOBALS['LANG']->getLL('go_back') . '" class="absmiddle" alt="" />'; + $buttons['back'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-view-go-back') . + ''; } return $buttons; @@ -766,7 +768,7 @@ class SC_mod_tools_em_index extends t3lib_SCbase { } if(count($extensions)) { $lines[]='
'; - $lines[]=''.htmlspecialchars($this->listOrderTitle($this->MOD_SETTINGS['listOrder'],$catName)).''; + $lines[]='' . t3lib_iconWorks::getSpriteIcon('apps-filetree-folder-default') . ''.htmlspecialchars($this->listOrderTitle($this->MOD_SETTINGS['listOrder'],$catName)).''; $lines[] = implode(chr(10),$extensions); } } @@ -827,7 +829,7 @@ class SC_mod_tools_em_index extends t3lib_SCbase { } if(count($extensions)) { $lines[]='
'; - $lines[]=''.htmlspecialchars($this->listOrderTitle($this->MOD_SETTINGS['listOrder'],$catName)).''; + $lines[]='' . t3lib_iconWorks::getSpriteIcon('apps-filetree-folder-default') . ''.htmlspecialchars($this->listOrderTitle($this->MOD_SETTINGS['listOrder'],$catName)).''; $lines[] = implode(chr(10),$extensions); } } @@ -902,7 +904,7 @@ EXTENSION KEYS: foreach($cat[$this->MOD_SETTINGS['listOrder']] as $catName => $extEkeys) { if (count($extEkeys)) { $lines[]='
'; - $lines[]=''.htmlspecialchars($this->listOrderTitle($this->MOD_SETTINGS['listOrder'],$catName)).''; + $lines[]='' . t3lib_iconWorks::getSpriteIcon('apps-filetree-folder-default') . ''.htmlspecialchars($this->listOrderTitle($this->MOD_SETTINGS['listOrder'],$catName)).''; natcasesort($extEkeys); reset($extEkeys); @@ -919,15 +921,17 @@ EXTENSION KEYS: if ($inst_list[$extKey]['EM_CONF']['state'] != 'excludeFromUpdates') { $loc= ($inst_list[$extKey]['type']=='G'?'G':'L'); $aUrl = 'index.php?CMD[importExt]='.$extKey.'&CMD[extVersion]='.$version.'&CMD[loc]='.$loc; - $loadUnloadLink .= ''; + $loadUnloadLink .= '' . + t3lib_iconWorks::getSpriteIcon('actions-system-extension-update') . + ''; } else { // extension is marked as "excludeFromUpdates" - $loadUnloadLink .= ''; + $loadUnloadLink .= t3lib_iconWorks::getSpriteIcon('status-dialog-warning', $GLOBALS['LANG']->getLL('excluded_from_updates') ); } } else { // import $aUrl = 'index.php?CMD[importExt]='.$extKey.'&CMD[extVersion]='.$version.'&CMD[loc]=L'; - $loadUnloadLink .= ''; + $loadUnloadLink .= '' . t3lib_iconWorks::getSpriteIcon('actions-system-extension-import') . ''; } } else { $loadUnloadLink = ' '; @@ -3487,15 +3491,16 @@ EXTENSION KEYS: $cells[] = ''.($verDiff ? ''.$GLOBALS['TBE_TEMPLATE']->rfw(htmlspecialchars($extInfo['EM_CONF']['version'])).'' : $extInfo['EM_CONF']['version']).''; if (!$import) { // Listing extension on LOCAL server: // Extension Download: - $cells[] = ' - '; + $cells[] = '' . + t3lib_iconWorks::getSpriteIcon('actions-system-extension-download') . + ''; // Manual download $fileP = PATH_site.$this->typePaths[$extInfo['type']].$extKey.'/doc/manual.sxw'; $cells[] = ''. ($this->typePaths[$extInfo['type']] && @is_file($fileP) ? - ' - ' : ''). + '' . + t3lib_iconWorks::getSpriteIcon('actions-system-extension-documentation') . '' : '') . ''; // Double installation (inclusion of an extension in more than one of system, global or local scopes) @@ -3635,8 +3640,7 @@ EXTENSION KEYS: * @return string tag */ function removeButton() { - return ''; + return t3lib_iconWorks::getSpriteIcon('actions-system-extension-uninstall', $GLOBALS['LANG']->getLL('ext_details_remove_ext')); } /** @@ -3645,8 +3649,7 @@ EXTENSION KEYS: * @return string tag */ function installButton() { - return ''; + return t3lib_iconWorks::getSpriteIcon('actions-system-extension-install', $GLOBALS['LANG']->getLL('helperFunction_install_extension')); } /** @@ -3655,8 +3658,8 @@ EXTENSION KEYS: * @return string + text string. */ function noImportMsg() { - return ' - ' . $GLOBALS['LANG']->getLL('helperFunction_import_not_possible') . ''; + return t3lib_iconWorks::getSpriteIcon('status-dialog-warning') . + '' . $GLOBALS['LANG']->getLL('helperFunction_import_not_possible') . ''; } /** @@ -4986,8 +4989,7 @@ $EM_CONF[$_EXTKEY] = '.$this->arrayToCode($EM_CONF, 0).'; if(!isset($instExtInfo[$depK])) { $msg[] = '
' . sprintf($GLOBALS['LANG']->getLL('checkDependencies_ext_not_available'), $depK); - $msg[] = '      + $msg[] = '    ' . t3lib_iconWorks::getSpriteIcon('actions-system-extension-import', $GLOBALS['LANG']->getLL('checkDependencies_import_ext')) . '  ' . $GLOBALS['LANG']->getLL('checkDependencies_import_now') . ''; $msg[] = '     '; @@ -5084,8 +5086,7 @@ $EM_CONF[$_EXTKEY] = '.$this->arrayToCode($EM_CONF, 0).'; if (!isset($instExtInfo[$suggestK])) { $msg[] = sprintf($GLOBALS['LANG']->getLL('checkDependencies_suggest_import'), $suggestK); - $msg[] = '      + $msg[] = '    ' . t3lib_iconWorks::getSpriteIcon('actions-system-extension-import', $GLOBALS['LANG']->getLL('checkDependencies_import_ext') ) . '  ' . $GLOBALS['LANG']->getLL('checkDependencies_import_now') . ''; $msg[] = '     '; @@ -5446,8 +5447,7 @@ $EM_CONF[$_EXTKEY] = '.$this->arrayToCode($EM_CONF, 0).'; ' . ($exist ? - '' . + t3lib_iconWorks::getSpriteIcon('status-dialog-warning') . $GLOBALS['LANG']->getLL('checkDBupdates_table_exists') : '') . ' diff --git a/typo3/mod/user/ws/class.wslib_gui.php b/typo3/mod/user/ws/class.wslib_gui.php index f5c29b2..038bb78 100644 --- typo3/mod/user/ws/class.wslib_gui.php +++ typo3/mod/user/ws/class.wslib_gui.php @@ -873,8 +873,8 @@ class wslib_gui { ''. - 'doc->backPath,'gfx/insert1.gif','width="14" height="14"').' alt="" align="top" title="' . $LANG->getLL('img_title_publish') . '" />'. + )).' " title="' . $LANG->getLL('img_title_publish') . '">'. + t3lib_iconWorks::getSpriteIcon('apps-version-swap-versions') . ''; if ($GLOBALS['BE_USER']->workspaceSwapAccess()) { $actionLinks.= @@ -882,8 +882,8 @@ class wslib_gui { '&cmd['.$table.']['.$rec_on['uid'].'][version][action]=swap'. '&cmd['.$table.']['.$rec_on['uid'].'][version][swapWith]='.$rec_off['uid']. '&cmd['.$table.']['.$rec_on['uid'].'][version][swapIntoWS]=1' - )).'">'. - 'doc->backPath,'gfx/swap.png','width="14" height="14"').' alt="" align="top" title="' . $LANG->getLL('img_title_swap') . '" />'. + )).'" title="' . $LANG->getLL('img_title_swap') . '">'. + t3lib_iconWorks::getSpriteIcon('apps-version-swap-workspace') . ''; } } @@ -893,8 +893,8 @@ class wslib_gui { // Release $confirm = $LANG->JScharCode($LANG->getLL('remove_from_ws_confirmation')); $actionLinks.= - ''. - 'doc->backPath,'gfx/group_clear.gif','width="14" height="14"').' alt="" align="top" title="' . $LANG->getLL('img_title_remove_from_ws') . '" />'. + ''. + t3lib_iconWorks::getSpriteIcon('apps-version-document-remove') . ''; } @@ -902,22 +902,22 @@ class wslib_gui { if ($table==='pages' && $vType!=='element') { $tempUid = ($vType==='branch' || $GLOBALS['BE_USER']->workspace===0 ? $rec_off['uid'] : $rec_on['uid']); $actionLinks.= - ''. - 'doc->backPath,t3lib_extMgm::extRelPath('cms').'layout/layout.gif','width="14" height="12"').' title="' . $LANG->getLL('img_title_edit_page') . '" alt="" />'. + ''. + t3lib_iconWorks::getSpriteIcon('apps-version-page-open') . ''; } else { $params = '&edit['.$table.']['.$rec_off['uid'].']=edit'; $actionLinks.= - ''. - 'doc->backPath,'gfx/edit2.gif','width="12" height="12"').' title="' . $LANG->getLL('img_title_edit_element') . '" alt="" />'. + ''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; } } // History/Log $actionLinks.= - ''. - 'doc->backPath,'gfx/history2.gif','width="13" height="12"').' title="' . $LANG->getLL('img_title_show_log') . '" alt="" />'. + '' . + t3lib_iconWorks::skinImg('actions-document-history-open') . ''; // View @@ -925,7 +925,7 @@ class wslib_gui { $tempUid = ($vType==='branch' || $GLOBALS['BE_USER']->workspace===0 ? $rec_off['uid'] : $rec_on['uid']); $actionLinks.= ''. - 'doc->backPath,'gfx/zoom.gif','width="12" height="12"').' title="" alt="" />'. + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; } @@ -1183,22 +1183,22 @@ class wslib_gui { // Edit if ($table==='pages') { $actionLinks.= - ''. - 'doc->backPath,t3lib_extMgm::extRelPath('cms').'layout/layout.gif','width="14" height="12"').' title="' . $LANG->getLL('img_title_edit_page') . '" alt="" />'. + ''. + t3lib_iconWorks::getSpriteIcon('apps-version-page-open') . ''; } else { $params = '&edit['.$table.']['.$uid.']=edit'; $actionLinks.= - ''. - 'doc->backPath,'gfx/edit2.gif','width="12" height="12"').' title="' . $LANG->getLL('img_title_edit_element') . '" alt="" />'. + ''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; } } // History/Log $actionLinks.= - ''. - 'doc->backPath,'gfx/history2.gif','width="13" height="12"').' title="' . $LANG->getLL('img_title_show_log') . '" alt="" />'. + ''. + t3lib_iconWorks::getSpriteIcon('gfx/history2.gif') . ''; } @@ -1206,7 +1206,7 @@ class wslib_gui { if ($table==='pages') { $actionLinks.= ''. - 'doc->backPath,'gfx/zoom.gif','width="12" height="12"').' title="" alt="" />'. + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; } @@ -1269,8 +1269,8 @@ class wslib_gui { ' return false;'; // Reject: $actionLinks.= - ''. - 'doc->backPath,'gfx/down.gif','width="14" height="14"').' alt="" align="top" title="'.$LANG->getLL('label_reject').'" />'. + ' '. + t3lib_iconWorks::getSpriteIcon('actions-move-down') . ''; } else { // Reject: @@ -1291,8 +1291,8 @@ class wslib_gui { ' return false;'; if ($rec_off['t3ver_stage']!=10) { $actionLinks.= - ''. - 'doc->backPath,'gfx/up.gif','width="14" height="14"').' alt="" align="top" title="'.htmlspecialchars($titleAttrib).'" />'. + ''. + t3lib_iconWorks::getSpriteIcon('actions-move-up') . ''; $this->stageIndex[$sId][$table][] = $rec_off['uid']; diff --git a/typo3/mod/user/ws/index.php b/typo3/mod/user/ws/index.php index b431222..d86fe97 100755 --- typo3/mod/user/ws/index.php +++ typo3/mod/user/ws/index.php @@ -251,8 +251,8 @@ class SC_mod_user_ws_index extends t3lib_SCbase { $this->doc->setModuleTemplate('templates/ws.html'); // JavaScript - $plusIcon = t3lib_iconWorks::skinImg($BACK_PATH, 'gfx/ol/plusbullet.gif', 'width="18" height="16"', 1); - $minusIcon = t3lib_iconWorks::skinImg($BACK_PATH, 'gfx/ol/minusbullet.gif', 'width="18" height="16"', 1); + $plusIcon = t3lib_iconWorks::getSpriteIcon('actions-view-table-expand'); + $minusIcon = t3lib_iconWorks::getSpriteIcon('actions-view-table-collapse'); $this->doc->JScode = $this->doc->wrapScriptTags(' script_ended = 0; function jumpToUrl(URL) { // @@ -599,7 +599,7 @@ class SC_mod_user_ws_index extends t3lib_SCbase { // row #1, column #1: expand icon $content .= '' . '' . - '' . $LANG->getLL('img_title_show_more') . '' . + t3lib_iconWorks::getSpriteIcon('actions-view-tables-expand', $LANG->getLL('img_title_show_more')) . ''; // row #1, column #2: icon panel @@ -747,8 +747,7 @@ class SC_mod_user_ws_index extends t3lib_SCbase { if (!$isAdmin && !in_array($mp['uid'], $userMPs)) { // Show warning icon $title = $GLOBALS['LANG']->getLL('workspace_list_mount_point_inaccessible'); - $str = '' . $title . ''; + $str = t3lib_iconWorks::getSpriteIcon('status-warning'); $classAttr = 'class="ver-wl-mp-inacessible" '; } else { @@ -800,8 +799,7 @@ class SC_mod_user_ws_index extends t3lib_SCbase { if (!$isAdmin && !in_array($mp['uid'], $userMPs)) { // Show warning icon $title = $GLOBALS['LANG']->getLL('workspace_list_mount_point_inaccessible'); - $str = '' . $title . ''; + $str = t3lib_iconWorks::getSpriteIcon('status-warning'); $classAttr = 'class="ver-wl-mp-inacessible" '; } else { @@ -982,9 +980,9 @@ class SC_mod_user_ws_index extends t3lib_SCbase { // User can modify workspace parameters, display corresponding link and icon $editUrl = 'workspaceforms.php?action=edit&wkspId=' . $wksp['uid']; - $content .= '' . - '' . $LANG->getLL('workspace_list_icon_title_edit_workspace') . '' . - ''; + $content .= '' . + t3lib_iconWorks::getSpriteIcon('actions-document-open') . + ''; } else { // User can NOT modify workspace parameters, display space // Get only withdth and height from skinning API @@ -997,8 +995,8 @@ class SC_mod_user_ws_index extends t3lib_SCbase { // Workspace switching button $content .= '' . - '' . $LANG->getLL('workspace_list_icon_title_switch_workspace') . '' . + '?changeWorkspace=' . $wksp['uid'] . '" title="'. $LANG->getLL('workspace_list_icon_title_switch_workspace') . '"/>' . + t3lib_iconWorks::getSpriteIcon('actions-version-swap-workspace') . ''; } else { // Current workspace: empty space instead of workspace switching button diff --git a/typo3/mod/user/ws/workspaceforms.php b/typo3/mod/user/ws/workspaceforms.php index 51f125c..7322614 100644 --- typo3/mod/user/ws/workspaceforms.php +++ typo3/mod/user/ws/workspaceforms.php @@ -179,8 +179,8 @@ class SC_mod_user_ws_workspaceForms extends t3lib_SCbase { $this->content .= $LANG->getLL($this->isEditAction ? 'edit_workspace_no_permission' : 'create_workspace_no_permission'); $this->content .= $this->doc->spacer(5); $goBack = $GLOBALS['LANG']->getLL('edit_workspace_go_back'); - $this->content .= '' . $goBack . '' . - '' . + $this->content .= t3lib_iconWorks::getSpriteIcon('actions-go-back') . + '' . $goBack . ''; $this->content .= $this->doc->endPage(); @@ -248,7 +248,7 @@ class SC_mod_user_ws_workspaceForms extends t3lib_SCbase { ); // Close, `n` below is simply to prevent caching - $buttons['close'] = 'doc->backPath, 'gfx/closedok.gif') . ' class="c-inputButton" title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:rm.closeDoc', 1) . '" alt="" />'; + $buttons['close'] = '' . t3lib_iconWorks::getSpriteIcon('actions-document-close') . ''; // Save $buttons['save'] = 'doc->backPath, 'gfx/savedok.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', 1) . '" value="_savedok" />'; // Save & Close diff --git a/typo3/mod/web/func/index.php b/typo3/mod/web/func/index.php index 9eb7740..2bae011 100755 --- typo3/mod/web/func/index.php +++ typo3/mod/web/func/index.php @@ -192,9 +192,10 @@ class SC_mod_web_func_index extends t3lib_SCbase { if($this->id && is_array($this->pageinfo)) { // View page - $buttons['view'] = '' . - '' . - ''; + $buttons['view'] = 'sL('LLL:EXT:lang/locallang_core.php:labels.showPage', 1) . ' + ">' . t3lib_iconWorks::getSpriteIcon('actions-page-new') . ''; // Shortcut if ($BE_USER->mayMakeShortcut()) { @@ -204,9 +205,8 @@ class SC_mod_web_func_index extends t3lib_SCbase { // If access to Web>List for user, then link to that module. if ($BE_USER->check('modules','web_list')) { $href = $BACK_PATH . 'db_list.php?id=' . $this->pageinfo['uid'] . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')); - $buttons['record_list'] = '' . - '' . - ''; + $buttons['record_list'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-system-list-open') . ''; } } diff --git a/typo3/mod/web/info/index.php b/typo3/mod/web/info/index.php index 0c39e69..8cf745b 100755 --- typo3/mod/web/info/index.php +++ typo3/mod/web/info/index.php @@ -191,8 +191,8 @@ class SC_mod_web_info_index extends t3lib_SCbase { $buttons['csh'] = t3lib_BEfunc::cshItem('_MOD_web_info', '', $GLOBALS['BACK_PATH'], '', TRUE); // View page - $buttons['view'] = '' . - '' . + $buttons['view'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; // Shortcut @@ -203,8 +203,8 @@ class SC_mod_web_info_index extends t3lib_SCbase { // If access to Web>List for user, then link to that module. if ($BE_USER->check('modules','web_list')) { $href = $BACK_PATH . 'db_list.php?id=' . $this->pageinfo['uid'] . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')); - $buttons['record_list'] = '' . - '' . + $buttons['record_list'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-system-list-open') . ''; } return $buttons; diff --git a/typo3/mod/web/perm/class.sc_mod_web_perm_ajax.php b/typo3/mod/web/perm/class.sc_mod_web_perm_ajax.php index 227a1bb..fe30e20 100644 --- typo3/mod/web/perm/class.sc_mod_web_perm_ajax.php +++ typo3/mod/web/perm/class.sc_mod_web_perm_ajax.php @@ -260,8 +260,8 @@ class SC_mod_web_perm_ajax { $elementId = 'o_'.$page; $options = ''.$options; $selector = ''; - $saveButton = 'backPath, 'gfx/savedok.gif', 'width="21" height="16"').' border="0" title="Change owner" align="top" alt="" />'; - $cancelButton = 'backPath, 'gfx/closedok.gif', 'width="21" height="16"').' border="0" title="Cancel" align="top" alt="" />'; + $saveButton = '' . t3lib_iconWorks::getSpriteIcon('actions-document-save') . ''; + $cancelButton = '' . t3lib_iconWorks::getSpriteIcon('actions-document-close') . ''; $ret = $selector.$saveButton.$cancelButton; return $ret; } @@ -309,8 +309,8 @@ class SC_mod_web_perm_ajax { $elementId = 'g_'.$page; $options = ''.$options; $selector = ''; - $saveButton = 'backPath, 'gfx/savedok.gif', 'width="21" height="16"').' border="0" title="Change group" align="top" alt="" />'; - $cancelButton = 'backPath, 'gfx/closedok.gif', 'width="21" height="16"').' border="0" title="Cancel" align="top" alt="" />'; + $saveButton = '' . t3lib_iconWorks::getSpriteIcon('actions-document-save') . ''; + $cancelButton = '' . t3lib_iconWorks::getSpriteIcon('actions-document-close') . ''; $ret = $selector.$saveButton.$cancelButton; return $ret; } @@ -357,7 +357,7 @@ class SC_mod_web_perm_ajax { */ protected function renderToggleEditLock($page, $editLockState) { if ($editLockState === 1) { - $ret = 'backPath,'gfx/recordlock_warning2.gif','width="22" height="16"').' title="The page and all content is locked for editing by all non-Admin users." alt="" />'; + $ret = '' . t3lib_iconWorks::getSpriteIcon('status-warning-lock') . ''; } else { $ret = '[+]'; } diff --git a/typo3/mod/web/perm/index.php b/typo3/mod/web/perm/index.php index 4b1d1bb..89db35e 100755 --- typo3/mod/web/perm/index.php +++ typo3/mod/web/perm/index.php @@ -348,8 +348,8 @@ class SC_mod_web_perm_index { $buttons['csh'] = t3lib_BEfunc::cshItem('_MOD_web_info', '', $GLOBALS['BACK_PATH'], '', TRUE); // View page - $buttons['view'] = '' . - '' . + $buttons['view'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; // Shortcut @@ -360,8 +360,8 @@ class SC_mod_web_perm_index { // If access to Web>List for user, then link to that module. if ($GLOBALS['BE_USER']->check('modules','web_list')) { $href = $GLOBALS['BACK_PATH'] . 'db_list.php?id=' . $this->pageinfo['uid'] . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')); - $buttons['record_list'] = '' . - '' . + $buttons['record_list'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-system-list-open') . ''; } return $buttons; @@ -652,7 +652,7 @@ class SC_mod_web_perm_index { if ($editPermsAllowed && $pageId) { $aHref = 'index.php?mode='.$this->MOD_SETTINGS['mode'].'&depth='.$this->MOD_SETTINGS['depth'].'&id='.($data['row']['_ORIG_uid'] ? $data['row']['_ORIG_uid'] : $pageId).'&return_id='.$this->id.'&edit=1'; $cells[]=' - '; + ' . t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; } else { $cells[]=' '; @@ -671,7 +671,8 @@ class SC_mod_web_perm_index { '.($pageId ? ' '.SC_mod_web_perm_ajax::renderPermissions($data['row']['perms_everybody'], $pageId, 'everybody') : '').' - '.($data['row']['editlock']?'' : ( $pageId === 0 ? '' : '[+]')).' + '.($data['row']['editlock']?'' . + t3lib_iconWorks::getSpriteIcon('status-warning-lock') . '' : ( $pageId === 0 ? '' : '[+]')).' '; } else { $cells[]=' @@ -684,7 +685,7 @@ class SC_mod_web_perm_index { '.($pageId ? $owner.SC_mod_web_perm_ajax::renderPermissions($BE_USER->calcPerms($data['row']), $pageId, 'user') : '').' '.(!$BE_USER->isAdmin()?' - '.($data['row']['editlock']?'' : '').' + '.($data['row']['editlock'] ? t3lib_iconWorks::getSpriteIcon('status-warning-lock', $LANG->getLL('EditLock_descr',1)) : '').' ':''); $bgCol = $lE_bgCol; } diff --git a/typo3/move_el.php b/typo3/move_el.php index 61a2849..9d50dad 100644 --- typo3/move_el.php +++ typo3/move_el.php @@ -320,7 +320,7 @@ class SC_move_el { if (is_array($pidPageInfo)) { if ($BE_USER->isInWebMount($pidPageInfo['pid'],$this->perms_clause)) { $code.= ''. - 'doc->backPath,'gfx/i/pages_up.gif','width="18" height="16"').' alt="" />'. + t3lib_iconWorks::getSpriteIcon('actions-view-go-up') . t3lib_BEfunc::getRecordTitle('pages',$pidPageInfo,TRUE). '
'; } else { @@ -375,7 +375,7 @@ class SC_move_el { if (is_array($pidPageInfo)) { if ($BE_USER->isInWebMount($pidPageInfo['pid'],$this->perms_clause)) { $code.= ''. - 'doc->backPath,'gfx/i/pages_up.gif','width="18" height="16"').' alt="" />'. + t3lib_iconWorks::getSpriteIcon('actions-view-go-up') . t3lib_BEfunc::getRecordTitle('pages',$pidPageInfo,TRUE). '
'; } else { @@ -440,7 +440,9 @@ class SC_move_el { if ($this->R_URI) { // Back - $buttons['back'] ='doc->backPath, 'gfx/goback.gif') . ' alt="" title="' . $LANG->getLL('goBack', 1) .'" />'; + $buttons['back'] ='' . + t3lib_iconWorks::getSpriteIcon('actions-go-back') . + ''; } } diff --git a/typo3/show_rechis.php b/typo3/show_rechis.php index f0ce36f..a2e668d 100644 --- typo3/show_rechis.php +++ typo3/show_rechis.php @@ -155,7 +155,7 @@ class SC_show_rechis { $historyObj = t3lib_div::makeInstance('recordHistory'); if ($historyObj->returnUrl) { - $buttons['back']= ''; + $buttons['back']= '' . t3lib_iconWorks::getSpriteIcon('actions-go-back') . ''; } return $buttons; diff --git a/typo3/sysext/beuser/class.tx_beuser.php b/typo3/sysext/beuser/class.tx_beuser.php index bc51c34..e744a04 100644 --- typo3/sysext/beuser/class.tx_beuser.php +++ typo3/sysext/beuser/class.tx_beuser.php @@ -78,7 +78,7 @@ class tx_beuser { $url = 'mod.php?M=tools_beuser&SwitchUser='.rawurlencode($uid).'&switchBackUser=1'; $localItems[] = $backRef->linkItem( 'Switch To User', - $backRef->excludeIcon(''), + $backRef->excludeIcon( t3lib_iconWorks::getSpriteIcon('actions-backend_user-emulate') ), $backRef->urlRefForCM($url,'',1,'top'), 1 ); diff --git a/typo3/sysext/beuser/mod/index.php b/typo3/sysext/beuser/mod/index.php index 028ebd2..9573571 100755 --- typo3/sysext/beuser/mod/index.php +++ typo3/sysext/beuser/mod/index.php @@ -315,7 +315,7 @@ class printAllPageTree_perms extends printAllPageTree { '.$be_group_Array[$row['perms_groupid']]['title'].'   '.$this->ext_printPerms($row['perms_group']).'   '.$this->ext_printPerms($row['perms_everybody']).'   - ' . ($row['editlock'] ? 'backPath,'gfx/recordlock_warning2.gif') . ' title="' . $GLOBALS['LANG']->getLL('editLock', true) . '" alt="" />' : $this->ext_printPerms($this->BE_USER->calcPerms($row))) . '   + ' . ($row['editlock'] ? t3lib_iconWorks::getSpriteIcon('status-warning-lock', $GLOBALS['LANG']->getLL('editLock', true)) : $this->ext_printPerms($this->BE_USER->calcPerms($row))) . '   '.$this->ext_printPerms($this->ext_groupPerms($row,$be_group_Array[$this->BE_USER->firstMainGroup])).'   '; } @@ -731,8 +731,8 @@ class local_beUserAuth extends t3lib_beUserAuth { // Icons: $icons = array( - 'ALLOW' => '', - 'DENY' => '', + 'ALLOW' => t3lib_iconWorks::getSpriteIcon('status-dialog-ok'), + 'DENY' => t3lib_iconWorks::getSpriteIcon('status-dialog-error'), ); // Traverse types: @@ -1375,8 +1375,8 @@ class SC_mod_tools_be_user_index { // Header: $allCells = array(); - $link_createNewUser=''. - 'doc->backPath,'gfx/new_el.gif') . ' title="' . $GLOBALS['LANG']->getLL('newUser', true) . '" alt="" />'. + $link_createNewUser=''. + t3lib_iconWorks::getSpriteIcon('actions-document-new') . ''; $allCells['USERS'] = '
' . $GLOBALS['LANG']->getLL('usernames', true) . '' . $link_createNewUser . '
'; @@ -1399,8 +1399,12 @@ class SC_mod_tools_be_user_index { if ($curUid != $uDat['uid'] && !$uDat['disable'] && ($uDat['starttime'] == 0 || $uDat['starttime'] < $GLOBALS['EXEC_TIME']) && ($uDat['endtime'] == 0 || $uDat['endtime'] > $GLOBALS['EXEC_TIME'])) { - $uItem .= ''. - ''; + $uItem .= '' . + t3lib_iconWorks::getSpriteIcon('actions-system-backend-user-switch') . + ''. + '' . + t3lib_iconWorks::getSpriteIcon('actions-system-backend-user-emulate') . + ''; } $uItem .= ''; $uListArr[] = $uItem; @@ -1454,25 +1458,35 @@ class SC_mod_tools_be_user_index { */ function elementLinks($table,$row) { // Info: - $cells[]=''; + $cells[]='' . + t3lib_iconWorks::getSpriteIcon('actions-document-view') . + ''; // Edit: $params='&edit[' . $table . '][' . $row['uid'] . ']=edit'; - $cells[]=''; + $cells[]='' . + t3lib_iconWorks::getSpriteIcon('actions-document-open') . + ''; // Hide: $hiddenField = $GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['disabled']; if ($row[$hiddenField]) { $params='&data[' . $table . '][' . $row['uid'] . '][' . $hiddenField . ']=0'; - $cells[]=''; + $cells[]='' . + t3lib_iconWorks::getSpriteIcon('actions-edit-unhide') . + ''; } else { $params='&data[' . $table . '][' . $row['uid'] . '][' . $hiddenField . ']=1'; - $cells[]=''; + $cells[]='' . + t3lib_iconWorks::getSpriteIcon('actions-edit-hide') . + ''; } // Delete $params='&cmd[' . $table . '][' . $row['uid'] . '][delete]=1'; - $cells[]=''; + $cells[]='' . + t3lib_iconWorks::getSpriteIcon('actions-edit-delete') . + ''; return implode('',$cells); } diff --git a/typo3/sysext/cms/layout/class.tx_cms_layout.php b/typo3/sysext/cms/layout/class.tx_cms_layout.php index a50cb80..d9e220f 100755 --- typo3/sysext/cms/layout/class.tx_cms_layout.php +++ typo3/sysext/cms/layout/class.tx_cms_layout.php @@ -319,8 +319,8 @@ class tx_cms_layout extends recordList { if ($editIdList && isset($TCA['pages']['columns'][$field]) && $field!='uid' && !$this->pages_noEditColumns) { $params='&edit[pages]['.$editIdList.']=edit&columnsOnly='.$field.'&disHelp=1'; $iTitle = sprintf($GLOBALS['LANG']->getLL('editThisColumn'),rtrim(trim($GLOBALS['LANG']->sL(t3lib_BEfunc::getItemLabel('pages',$field))), ':')); - $eI= ''. - 'backPath,'gfx/edit2.gif','width="11" height="12"').' title="'.htmlspecialchars($iTitle).'" alt="" />'. + $eI= ''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; } else $eI=''; switch($field) { @@ -526,7 +526,7 @@ class tx_cms_layout extends recordList { // "View page" icon is added: $viewLink = ''. - 'backPath,'gfx/zoom.gif','width="12" height="12"').' class="absmiddle" title="" alt="" />'. + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; // Language overlay page header: @@ -537,8 +537,8 @@ class tx_cms_layout extends recordList { $params='&edit[pages_language_overlay]['.$lpRecord['uid'].']=edit&overrideVals[pages_language_overlay][sys_language_uid]='.$lP; $lPLabel = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon(t3lib_iconWorks::getIconImage('pages_language_overlay',$lpRecord,$this->backPath,' class="absmiddle"'),'pages_language_overlay',$lpRecord['uid']). $viewLink. - ($GLOBALS['BE_USER']->check('tables_modify','pages_language_overlay') ? ''. - 'backPath,'gfx/edit2.gif','width="11" height="12"').' title="'.$GLOBALS['LANG']->getLL('edit',1).'" class="absmiddle" alt="" />'. + ($GLOBALS['BE_USER']->check('tables_modify','pages_language_overlay') ? ''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . '' : ''). htmlspecialchars(t3lib_div::fixed_lgd_cs($lpRecord['title'],20)); } else { @@ -1167,8 +1167,8 @@ class tx_cms_layout extends recordList { $theData = array(); $theData = $this->headerFields($this->fieldArray,$table,$theData); if ($this->doEdit) { - $theData['__cmds__'] = ''. - 'backPath,'gfx/new_el.gif').' title="'.$GLOBALS['LANG']->getLL('new',1).'" alt="" />'. + $theData['__cmds__'] = ''. + t3lib_iconWorks::getSpriteIcon('actions-document-new') . ''; } $out.= $this->addelement(1,'',$theData,' class="c-headLine"',15); @@ -1190,9 +1190,9 @@ class tx_cms_layout extends recordList { $Nrow['__cmds__']= $this->getIcon($table,$row); } if ($this->doEdit) { - $Nrow['__cmds__'].= ''. - 'backPath,'gfx/edit2.gif','width="11" height="12"').' title="'.$GLOBALS['LANG']->getLL('edit',1).'" alt="" />'. - ''; + $Nrow['__cmds__'].= ''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . + ''; } else { $Nrow['__cmds__'].= $this->noEditIcon(); } @@ -1381,8 +1381,8 @@ class tx_cms_layout extends recordList { case 'uid': if ($GLOBALS['BE_USER']->doesUserHaveAccess($row,2)) { $params='&edit[pages]['.$row['uid'].']=edit'; - $eI= ''. - 'backPath,'gfx/edit2.gif','width="11" height="12"').' title="'.$GLOBALS['LANG']->getLL('editThisPage',1).'" alt="" />'. + $eI= ''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; } else $eI=''; $theData[$field] = ''.$row['uid'].$eI.''; @@ -1483,14 +1483,14 @@ class tx_cms_layout extends recordList { // Edit whole of column: if ($editParams) { - $out.=''. - 'backPath,'gfx/edit2.gif','width="11" height="12"').' title="'.$GLOBALS['LANG']->getLL('editColumn',1).'" alt="" />'. - ''; + $out.=''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . + ''; } // New record: if ($newParams) { - $out.=''. - 'backPath,'gfx/new_record.gif','width="16" height="12"').' title="'.$GLOBALS['LANG']->getLL('newInColumn',1).'" alt="" />'. + $out.=''. + t3lib_iconWorks::getSpriteIcon('actions-document-new') . ''; } // End cell: @@ -1526,9 +1526,9 @@ class tx_cms_layout extends recordList { // Get record locking status: if ($lockInfo=t3lib_BEfunc::isRecordLocked('tt_content',$row['uid'])) { - $lockIcon=''. - 'backPath,'gfx/recordlock_warning3.gif','width="17" height="12"').' title="'.htmlspecialchars($lockInfo['msg']).'" alt="" />'. - ''; + $lockIcon=''. + t3lib_iconWorks::getSpriteIcon('status-record-warning') . + ''; } else $lockIcon=''; // Call stats information hook @@ -1569,8 +1569,8 @@ class tx_cms_layout extends recordList { // Edit content element: $params='&edit[tt_content]['.$this->tt_contentData['nextThree'][$row['uid']].']=edit'; - $out.=''. - 'backPath,'gfx/edit2.gif','width="11" height="12"').' title="'.htmlspecialchars($this->nextThree>1?sprintf($GLOBALS['LANG']->getLL('nextThree'),$this->nextThree):$GLOBALS['LANG']->getLL('edit')).'" alt="" />'. + $out.=''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; if (!$disableMoveAndNewButtons) { @@ -1581,15 +1581,15 @@ class tx_cms_layout extends recordList { $params='&edit[tt_content]['.(-$row['uid']).']=new'; $onClick = t3lib_BEfunc::editOnClick($params,$this->backPath); } - $out.=''. - 'backPath,'gfx/new_record.gif','width="16" height="12"').' title="'.$GLOBALS['LANG']->getLL('newAfter',1).'" alt="" />'. + $out.=''. + t3lib_iconWorks::getSpriteIcon('actions-document-new') . ''; // Move element up: if ($this->tt_contentData['prev'][$row['uid']]) { $params='&cmd[tt_content]['.$row['uid'].'][move]='.$this->tt_contentData['prev'][$row['uid']]; - $out.=''. - 'backPath,'gfx/button_up.gif','width="11" height="10"').' title="'.$GLOBALS['LANG']->getLL('moveUp',1).'" alt="" />'. + $out.=''. + t3lib_iconWorks::getSpriteIcon('actions-move-up') . ''; } else { $out.='backPath,'gfx/button_up.gif','width="11" height="10"',2).' alt="" />'; @@ -1597,8 +1597,8 @@ class tx_cms_layout extends recordList { // Move element down: if ($this->tt_contentData['next'][$row['uid']]) { $params='&cmd[tt_content]['.$row['uid'].'][move]='.$this->tt_contentData['next'][$row['uid']]; - $out.=''. - 'backPath,'gfx/button_down.gif','width="11" height="10"').' title="'.$GLOBALS['LANG']->getLL('moveDown',1).'" alt="" />'. + $out.=''. + t3lib_iconWorks::getSpriteIcon('actions-move-down') . ''; } else { $out.='backPath,'gfx/button_down.gif','width="11" height="10"',2).' alt="" />'; @@ -1610,13 +1610,13 @@ class tx_cms_layout extends recordList { if ($hiddenField && $TCA['tt_content']['columns'][$hiddenField] && (!$TCA['tt_content']['columns'][$hiddenField]['exclude'] || $GLOBALS['BE_USER']->check('non_exclude_fields','tt_content:'.$hiddenField))) { if ($row[$hiddenField]) { $params='&data[tt_content]['.($row['_ORIG_uid'] ? $row['_ORIG_uid'] : $row['uid']).']['.$hiddenField.']=0'; - $out.=''. - 'backPath,'gfx/button_unhide.gif','width="11" height="10"').' title="'.$GLOBALS['LANG']->getLL('unHide',1).'" alt="" />'. + $out.=''. + t3lib_iconWorks::getSpriteIcon('actions-edit-unhide') . ''; } else { $params='&data[tt_content]['.($row['_ORIG_uid'] ? $row['_ORIG_uid'] : $row['uid']).']['.$hiddenField.']=1'; - $out.=''. - 'backPath,'gfx/button_hide.gif','width="11" height="10"').' title="'.$GLOBALS['LANG']->getLL('hide',1).'" alt="" />'. + $out.=''. + t3lib_iconWorks::getSpriteIcon('actions-edit-hide') . ''; } } @@ -1625,8 +1625,8 @@ class tx_cms_layout extends recordList { $params='&cmd[tt_content]['.$row['uid'].'][delete]=1'; $confirm = $GLOBALS['LANG']->JScharCode($GLOBALS['LANG']->getLL('deleteWarning') . t3lib_BEfunc::translationCount('tt_content', $row['uid'], ' ' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.translationsOfRecord'))); - $out.=''. - 'backPath,'gfx/garbage.gif','width="11" height="12"').' title="'.$GLOBALS['LANG']->getLL('deleteItem',1).'" alt="" />'. + $out.=''. + t3lib_iconWorks::getSpriteIcon('actions-edit-delete') . ''; // End cell: @@ -1916,8 +1916,7 @@ class tx_cms_layout extends recordList { */ function infoGif($infoArr) { if (count($infoArr) && $this->tt_contentConfig['showInfo']) { - $out='backPath,'gfx/zoom2.gif','width="12" height="12"').' title="'.htmlspecialchars(implode(chr(10),$infoArr)).'" alt="" /> '; - return $out; + return t3lib_iconWorks::getSpriteIcon('actions-document-view', htmlspecialchars(implode(chr(10),$infoArr)) ); } } @@ -2318,7 +2317,7 @@ class tx_cms_layout extends recordList { * @return string IMG tag for icon. */ function noEditIcon($label='noEditItems') { - return 'backPath,'gfx/edit2_d.gif','width="11" height="12"').' title="'.$GLOBALS['LANG']->getLL($label,1).'" alt="" />'; + return t3lib_iconWorks::getSpriteIcon('status-edit-deny', $GLOBALS['LANG']->getLL($label,1) ); } /** @@ -2435,8 +2434,8 @@ class tx_cms_layout extends recordList { // If editing of the page properties is allowed: if ($edit) { $params='&edit[pages]['.$rec['uid'].']=edit'; - $editIcon=''. - 'backPath,'gfx/edit2.gif','width="11" height="12"').' title="'.$GLOBALS['LANG']->getLL('edit',1).'" alt="" />'. + $editIcon=''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; } else { $editIcon=$this->noEditIcon('noEditPage'); diff --git a/typo3/sysext/cms/layout/db_layout.php b/typo3/sysext/cms/layout/db_layout.php index 7424582..3190e41 100755 --- typo3/sysext/cms/layout/db_layout.php +++ typo3/sysext/cms/layout/db_layout.php @@ -1154,8 +1154,8 @@ class SC_db_layout { ); // View page - $buttons['view'] = '' . - '' . + $buttons['view'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; // Shortcut @@ -1165,33 +1165,33 @@ class SC_db_layout { // Cache if (!$this->modTSconfig['properties']['disableAdvanced']) { - $buttons['cache'] = '' . - '' . - ''; + $buttons['cache'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-system-cache-clear') . + ''; } // If access to Web>List for user, then link to that module. if ($BE_USER->check('modules','web_list')) { $href = $BACK_PATH . 'db_list.php?id=' . $this->pageinfo['uid'] . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')); - $buttons['record_list'] = '' . - '' . - ''; + $buttons['record_list'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-system-list-open') . + ''; } if (!$this->modTSconfig['properties']['disableIconToolbar']) { // Page history - $buttons['history_page'] = '' . - '' . - ''; + $buttons['history_page'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-history-open') . + ''; // New content element - $buttons['new_content'] = '' . - '' . - ''; + $buttons['new_content'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-new') . + ''; // Move page - $buttons['move_page'] = '' . - '' . - ''; + $buttons['move_page'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-move-move') . + ''; // Move record if (t3lib_div::testInt($this->eRParts[1])) { $buttons['move_record'] = '' . @@ -1199,15 +1199,15 @@ class SC_db_layout { ''; } // Create new page (wizard) - $buttons['new_page'] = '' . - '' . - ''; + $buttons['new_page'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-page-new') . + ''; // Edit page properties if ($this->CALC_PERMS&2) { $params='&edit[pages][' . $this->id . ']=edit'; - $buttons['edit_page'] = '' . - '' . - ''; + $buttons['edit_page'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-open') . + ''; } // Add CSH (Context Sensitive Help) icon to tool bar @@ -1222,35 +1222,33 @@ class SC_db_layout { $buttons['savedok'] = ''; // Save record and show page - $buttons['savedokshow'] = '' . - '' . + $buttons['savedokshow'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-save-view') . ''; // Close record - $buttons['closedok'] = '' . - '' . + $buttons['closedok'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-close') . ''; // Delete record if($this->deleteButton) { - $buttons['deletedok'] = '' . - '' . + $buttons['deletedok'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-delete') . ''; } if($this->undoButton) { // Undo button - $buttons['undo'] = '' . - '' . + $buttons['undo'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-edit-undo') . ''; // History button - $buttons['history_record'] = '' . - '' . + $buttons['history_record'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-history-open') . ''; } } diff --git a/typo3/sysext/cms/layout/db_new_content_el.php b/typo3/sysext/cms/layout/db_new_content_el.php index 812ee6b..03006f7 100644 --- typo3/sysext/cms/layout/db_new_content_el.php +++ typo3/sysext/cms/layout/db_new_content_el.php @@ -430,8 +430,8 @@ class SC_db_new_content_el { // Back if ($this->R_URI) { - $buttons['back'] = '' . - 'doc->backPath, 'gfx/goback.gif') . ' alt="" title="' . $LANG->getLL('goBack', 1) . '" />' . + $buttons['back'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-go-back') . ''; } } diff --git a/typo3/sysext/cms/web_info/class.tx_cms_webinfo_lang.php b/typo3/sysext/cms/web_info/class.tx_cms_webinfo_lang.php index c41cd9a..9d31f94 100644 --- typo3/sysext/cms/web_info/class.tx_cms_webinfo_lang.php +++ typo3/sysext/cms/web_info/class.tx_cms_webinfo_lang.php @@ -185,8 +185,8 @@ class tx_cms_webinfo_lang extends t3lib_extobjbase { // DEFAULT language: // "View page" link is created: $viewPageLink= ''. - ''. + htmlspecialchars(t3lib_BEfunc::viewOnClick($data['row']['uid'],$GLOBALS['BACK_PATH'],'','','','&L=###LANG_UID###')).'" title="'.$LANG->getLL('lang_renderl10n_viewPage','1').'">'. + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; $status = $data['row']['l18n_cfg']&1 ? 'c-blocked' : 'c-ok'; @@ -194,11 +194,11 @@ class tx_cms_webinfo_lang extends t3lib_extobjbase { $info = ''; $editUid = $data['row']['uid']; $params = '&edit[pages]['.$editUid.']=edit'; - $info.= ''. - ''. + $info.= ''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; - $info.= ''. - ''. + $info.= ''. + t3lib_iconWorks::getSpriteIcon('actions-page-open') . ''; $info.= str_replace('###LANG_UID###','0',$viewPageLink); @@ -241,12 +241,12 @@ class tx_cms_webinfo_lang extends t3lib_extobjbase { $info = ''; $editUid = $row['uid']; $params = '&edit[pages_language_overlay]['.$editUid.']=edit'; - $info.= ''. - ''. + $info.= ''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; - $info.= ''. - ''. + $info.= ''. + t3lib_iconWorks::getSpriteIcon('actions-page-open') . ''; $info.= str_replace('###LANG_UID###',$langRow['uid'],$viewPageLink); @@ -285,9 +285,9 @@ class tx_cms_webinfo_lang extends t3lib_extobjbase { if (is_array($langRecUids[0])) { $params = '&edit[pages]['.implode(',',$langRecUids[0]).']=edit&columnsOnly=title,nav_title,l18n_cfg,hidden'; - $editIco = ' - - '; + $editIco = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-new') . + ''; } else $editIco = ''; $tCells[] = ''. $LANG->getLL('lang_renderl10n_default','1').':'. @@ -302,18 +302,18 @@ class tx_cms_webinfo_lang extends t3lib_extobjbase { // Edit language overlay records: if (is_array($langRecUids[$langRow['uid']])) { $params = '&edit[pages_language_overlay]['.implode(',',$langRecUids[$langRow['uid']]).']=edit&columnsOnly=title,nav_title,hidden'; - $tCells[] = ' - - '; + $tCells[] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-open') . + ''; } else { $tCells[] = ' '; } // Create new overlay records: $params = "'".$newOL_js[$langRow['uid']]."+'&columnsOnly=title,hidden,sys_language_uid&defVals[pages_language_overlay][sys_language_uid]=".$langRow['uid']; - $tCells[] = ' - - '; + $tCells[] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-new') . + ''; } } diff --git a/typo3/sysext/impexp/app/index.php b/typo3/sysext/impexp/app/index.php index 65bc75d..01cfbbf 100755 --- typo3/sysext/impexp/app/index.php +++ typo3/sysext/impexp/app/index.php @@ -387,16 +387,16 @@ class SC_mod_tools_log_index extends t3lib_SCbase { if (($this->id && is_array($this->pageinfo)) || ($GLOBALS['BE_USER']->user['admin'] && !$this->id)) { if (is_array($this->pageinfo) && $this->pageinfo['uid']) { // View - $buttons['view'] = '' . - 'doc->backPath, 'gfx/zoom.gif') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.showPage', 1) . '" alt="" />' . - ''; + $buttons['view'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-view') . + ''; // Record list if ($GLOBALS['BE_USER']->check('modules', 'web_list')) { $href = $this->doc->backPath . 'db_list.php?id=' . $this->pageinfo['uid'] . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')); - $buttons['record_list'] = '' . - 'doc->backPath, 'gfx/list.gif') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.showList', 1) . '" alt="" />' . - ''; + $buttons['record_list'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-system-list-open') . + ''; } } } diff --git a/typo3/sysext/impexp/class.tx_impexp.php b/typo3/sysext/impexp/class.tx_impexp.php index 61a99b2..48a17d9 100755 --- typo3/sysext/impexp/class.tx_impexp.php +++ typo3/sysext/impexp/class.tx_impexp.php @@ -2701,7 +2701,7 @@ class tx_impexp { $preCode_B = $preCode.'        '; foreach($record['softrefs'] as $info) { $pInfo = array(); - $pInfo['preCode'] = $preCode_A.''; + $pInfo['preCode'] = $preCode_A. t3lib_iconWorks::getSpriteIcon('status-reference-soft'); $pInfo['title'] = ''.$info['field'].', "'.$info['spKey'].'" : '.htmlspecialchars(t3lib_div::fixed_lgd_cs($info['matchString'],60)).''; if ($info['subst']['type']) { if (strlen($info['subst']['title'])) { @@ -2833,7 +2833,7 @@ class tx_impexp { return; } } - $pInfo['preCode'] = $preCode.'    '; + $pInfo['preCode'] = $preCode.'    '.t3lib_iconWorks::getSpriteIcon('status-reference-file'); $pInfo['title'] = htmlspecialchars($fI['filename']); $pInfo['ref'] = 'FILE'; $pInfo['size'] = $fI['filesize']; @@ -2892,7 +2892,7 @@ class tx_impexp { $pInfo['showDiffContent'] = substr($this->fileIDMap[$ID],strlen(PATH_site)); - $pInfo['preCode'] = $preCode.'        '; + $pInfo['preCode'] = $preCode.'        '.t3lib_iconWorks::getSpriteIcon('actions-reference-file'); $pInfo['title'] = htmlspecialchars($fI['filename']).' (Original)'; $pInfo['ref'] = 'FILE'; $pInfo['size'] = $fI['filesize']; @@ -2916,7 +2916,7 @@ class tx_impexp { $pInfo['showDiffContent'] = substr($this->fileIDMap[$ID],strlen(PATH_site)); - $pInfo['preCode'] = $preCode.'        '; + $pInfo['preCode'] = $preCode.'        '.t3lib_iconWorks::getSpriteIcon('actions-reference-file'); $pInfo['title'] = htmlspecialchars($fI['filename']).' (Resource)'; $pInfo['ref'] = 'FILE'; $pInfo['size'] = $fI['filesize']; diff --git a/typo3/sysext/impexp/class.tx_impexp_clickmenu.php b/typo3/sysext/impexp/class.tx_impexp_clickmenu.php index 3dda828..7135b28 100755 --- typo3/sysext/impexp/class.tx_impexp_clickmenu.php +++ typo3/sysext/impexp/class.tx_impexp_clickmenu.php @@ -96,7 +96,7 @@ class tx_impexp_clickmenu { } $localItems[] = $backRef->linkItem( $GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->getLLL('export',$LL)), - $backRef->excludeIcon('backPath,t3lib_extMgm::extRelPath('impexp').'export.gif','width="18" height="16"').' alt="" />'), + $backRef->excludeIcon(t3lib_iconWorks::getSpriteIcon('actions-document-export')), $backRef->urlRefForCM($url), 1 // Disables the item in the top-bar ); @@ -105,7 +105,7 @@ class tx_impexp_clickmenu { $url = $modUrl . '?id='. $uid . '&table=' . $table . '&tx_impexp[action]=import'; $localItems[] = $backRef->linkItem( $GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->getLLL('import',$LL)), - $backRef->excludeIcon('backPath,t3lib_extMgm::extRelPath('impexp').'import.gif','width="18" height="16"').' alt="" />'), + $backRef->excludeIcon(t3lib_iconWorks::getSpriteIcon('actions-document-export')), $backRef->urlRefForCM($url), 1 // Disables the item in the top-bar ); diff --git a/typo3/sysext/indexed_search/modfunc1/class.tx_indexedsearch_modfunc1.php b/typo3/sysext/indexed_search/modfunc1/class.tx_indexedsearch_modfunc1.php index 728a60b..9635e35 100755 --- typo3/sysext/indexed_search/modfunc1/class.tx_indexedsearch_modfunc1.php +++ typo3/sysext/indexed_search/modfunc1/class.tx_indexedsearch_modfunc1.php @@ -1000,8 +1000,8 @@ class tx_indexedsearch_modfunc1 extends t3lib_extobjbase { * @return string HTML img-tag with link around. */ function printRemoveIndexed($phash,$alt) { - return ''. - ''. + return ''. + ''. ''; } diff --git a/typo3/sysext/info_pagetsconfig/class.tx_infopagetsconfig_webinfo.php b/typo3/sysext/info_pagetsconfig/class.tx_infopagetsconfig_webinfo.php index 0921136..14100c1 100755 --- typo3/sysext/info_pagetsconfig/class.tx_infopagetsconfig_webinfo.php +++ typo3/sysext/info_pagetsconfig/class.tx_infopagetsconfig_webinfo.php @@ -118,8 +118,8 @@ class tx_infopagetsconfig_webinfo extends t3lib_extobjbase { $editIdList = substr($k,4); $params = '&edit[pages]['.$editIdList.']=edit&columnsOnly=TSconfig'; $onclickUrl = t3lib_BEfunc::editOnClick($params,$GLOBALS['BACK_PATH'],''); - $editIcon = ''. - ''. + $editIcon = ''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; } @@ -140,9 +140,9 @@ class tx_infopagetsconfig_webinfo extends t3lib_extobjbase { if (count($pUids)) { $params = '&edit[pages]['.implode(',',$pUids).']=edit&columnsOnly=TSconfig'; $onclickUrl = t3lib_BEfunc::editOnClick($params,$GLOBALS['BACK_PATH'],''); - $editIcon = ''. - ''. - ''.$GLOBALS['LANG']->getLL('editTSconfig_all',1).''. + $editIcon = ''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . + ''.$GLOBALS['LANG']->getLL('editTSconfig_all',1).''. ''; } else $editIcon = ''; diff --git a/typo3/sysext/opendocs/class.tx_opendocs.php b/typo3/sysext/opendocs/class.tx_opendocs.php index 44a1441..cd12bde 100644 --- typo3/sysext/opendocs/class.tx_opendocs.php +++ typo3/sysext/opendocs/class.tx_opendocs.php @@ -171,7 +171,7 @@ class tx_opendocs implements backend_toolbarItem { $title = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:rm.closeDoc', true); // open document - $closeIcon = ''; + $closeIcon = t3lib_iconWorks::getSpriteIcon('actions-document-close'); $entry = ' diff --git a/typo3/sysext/reports/reports/class.tx_reports_reports_status.php b/typo3/sysext/reports/reports/class.tx_reports_reports_status.php index 57bd426..2602661 100644 --- typo3/sysext/reports/reports/class.tx_reports_reports_status.php +++ typo3/sysext/reports/reports/class.tx_reports_reports_status.php @@ -126,8 +126,8 @@ class tx_reports_reports_Status implements tx_reports_Report { tx_reports_reports_status_Status::ERROR => 'error', ); - $icon[tx_reports_reports_status_Status::WARNING] = 'doc->backPath, 'gfx/warning.png', 'width="16" height="16"') . ' alt="" />'; - $icon[tx_reports_reports_status_Status::ERROR] = 'doc->backPath, 'gfx/error.png', 'width="16" height="16"') . ' alt="" />'; + $icon[tx_reports_reports_status_Status::WARNING] = t3lib_iconWorks::getSpriteIcon('status-warning'); + $icon[tx_reports_reports_status_Status::ERROR] = t3lib_iconWorks::getSpriteIcon('status-dialog-error'); $messages = ''; $headerIcon = ''; $sectionSeverity = 0; diff --git a/typo3/sysext/scheduler/mod1/index.php b/typo3/sysext/scheduler/mod1/index.php index 596f75f..203feea 100755 --- typo3/sysext/scheduler/mod1/index.php +++ typo3/sysext/scheduler/mod1/index.php @@ -484,7 +484,7 @@ class tx_scheduler_Module extends t3lib_SCbase { $table[$tr][] = $classInfo['extension']; $table[$tr][] = $classInfo['description']; $link = $GLOBALS['MCONF']['_'] . '&SET[function]=list&CMD=add&tx_scheduler[class]=' . $class; - $table[$tr][] = 'backPath, 'gfx/new_el.gif') . ' alt="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:new', TRUE) . '" />'; + $table[$tr][] = '' . t3lib_iconWorks::getSpriteIcon('actions-document-new') . ''; $tr++; } @@ -966,7 +966,7 @@ class tx_scheduler_Module extends t3lib_SCbase { $tr = 0; // Header row - $table[$tr][] = 'backPath, 'gfx/clip_select.gif') . ' alt="' . htmlspecialchars($GLOBALS['LANG']->getLL('label.checkAll')) . '" />'; + $table[$tr][] = '' . t3lib_iconWorks::getSpriteIcon('actions-clip-select') . ''; $table[$tr][] = ' '; $table[$tr][] = $GLOBALS['LANG']->getLL('label.id'); $table[$tr][] = $GLOBALS['LANG']->getLL('task'); @@ -980,9 +980,9 @@ class tx_scheduler_Module extends t3lib_SCbase { // Loop on all tasks while (($schedulerRecord = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))) { // Define action icons - $editAction = 'backPath, 'gfx/edit2.gif') . ' alt="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:edit', TRUE) . '" /> '; - $deleteAction = 'backPath, 'gfx/garbage.gif') . ' alt="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:delete', TRUE) . '" />'; - $stopAction = 'backPath, t3lib_extMgm::extRelPath('scheduler') . 'res/gfx/stop.png') . ' alt="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:stop', TRUE) . '" />'; + $editAction = '' . t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; + $deleteAction = '' . t3lib_iconWorks::getSpriteIcon('actions-edit-delete') . ''; + $stopAction = 'backPath, t3lib_extMgm::extRelPath('scheduler') . '/res/gfx/stop.png') . ' alt="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:stop') . '" />'; // Define some default values $lastExecution = '-'; $isRunning = false; @@ -1497,9 +1497,9 @@ class tx_scheduler_Module extends t3lib_SCbase { ); if (empty($this->CMD) || $this->CMD == 'list') { - $buttons['reload'] = '' . - 'backPath, 'gfx/refresh_n.gif') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.reload', TRUE) . '" alt="" />' . - ''; + $buttons['reload'] = ''.$LANG->getLL('referenceExplanation').''; $content .= '

'.$LANG->getLL('referenceExplanationDetailed').'


'; $this->content .= $this->doc->section($LANG->getLL('displayReferences'),$content,0,1); - $this->content .= '
TSref reference TSREF
'; - $this->content .= 'TSref reference USER TSCONFIG
'; - $this->content .= 'TSref reference PAGE TSCONFIG
'; + $this->content .= ''.t3lib_iconWorks::getSpriteIcon('actions-system-typoscript-documentation-open').'TSREF
'; + $this->content .= ''.t3lib_iconWorks::getSpriteIcon('actions-system-typoscript-documentation-open').'USER TSCONFIG
'; + $this->content .= ''.t3lib_iconWorks::getSpriteIcon('actions-system-typoscript-documentation-open').'PAGE TSCONFIG
'; break; case 2: diff --git a/typo3/sysext/tstemplate/ts/index.php b/typo3/sysext/tstemplate/ts/index.php index 71df02b..739131b 100644 --- typo3/sysext/tstemplate/ts/index.php +++ typo3/sysext/tstemplate/ts/index.php @@ -248,15 +248,15 @@ class SC_mod_web_ts_index extends t3lib_SCbase { if ($this->id && $this->access) { // View page - $buttons['view'] = '' . - '' . + $buttons['view'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; // If access to Web>List for user, then link to that module. if ($GLOBALS['BE_USER']->check('modules', 'web_list')) { $href = $GLOBALS['BACK_PATH'] . 'db_list.php?id=' . $this->pageinfo['uid'] . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')); - $buttons['record_list'] = '' . - '' . + $buttons['record_list'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-system-list-open') . ''; } @@ -284,9 +284,9 @@ class SC_mod_web_ts_index extends t3lib_SCbase { } elseif($this->extClassConf['name'] == 'tx_tstemplateobjbrowser') { if(!empty($this->sObj)) { // BACK - $buttons['back'] = '' . - '' . - ''; + $buttons['back'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-go-back') . + ''; } } @@ -371,13 +371,15 @@ class SC_mod_web_ts_index extends t3lib_SCbase { $theOutput .= $this->doc->spacer(10); $theOutput .= $this->doc->section($GLOBALS['LANG']->getLL('newWebsite'), $GLOBALS['LANG']->getLL('newWebsiteDescription') . '

' . - $selector . '
- - ', 0, 1); + $selector . '
' . + t3lib_iconWorks::getSpriteIcon('status-dialog-warning') . + '', 0, 1); } // Extension? $theOutput .= $this->doc->spacer(10); - $theOutput .= $this->doc->section($GLOBALS['LANG']->getLL('extTemplate'), $GLOBALS['LANG']->getLL('extTemplateDescription') . '

', 0, 1); + $theOutput .= $this->doc->section($GLOBALS['LANG']->getLL('extTemplate'), $GLOBALS['LANG']->getLL('extTemplateDescription') . '

' . + t3lib_iconWorks::getSpriteIcon('status-dialog-warning') . + '', 0, 1); // Go to first appearing... $first = $tmpl->ext_prevPageWithTemplate($this->id, $this->perms_clause); @@ -498,11 +500,9 @@ page.10.value = HELLO WORLD! t3lib_iconWorks::getIconImage('pages', t3lib_BEfunc::getRecordWSOL('pages', $k), $GLOBALS['BACK_PATH'], ' align="top" title="ID: ' . $k . '"') . t3lib_div::fixed_lgd_cs($pArray[$k], 30) . ' ' . $pArray[$k . '_']['count'] . ' - ' . ($pArray[$k . '_']['root_max_val'] > 0 ? '' : " ") . + ' . ($pArray[$k . '_']['root_max_val'] > 0 ? t3lib_iconWorks::getSpriteIcon('status-permission-granted') : " ") . ' - ' . ($pArray[$k . '_']['root_min_val'] == 0 ? '' : " ") . + ' . ($pArray[$k . '_']['root_min_val'] == 0 ? t3lib_iconWorks::getSpriteIcon('status-permission-granted') : " ") . ' '; } else { diff --git a/typo3/sysext/version/cm1/index.php b/typo3/sysext/version/cm1/index.php index 7db703b..76faf10 100755 --- typo3/sysext/version/cm1/index.php +++ typo3/sysext/version/cm1/index.php @@ -335,8 +335,8 @@ class tx_version_cm1 extends t3lib_SCbase { if ($this->recordFound && $TCA[$this->table]['ctrl']['versioningWS']) { // View page - $buttons['view'] = '' . - '' . + $buttons['view'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; // Shortcut @@ -347,8 +347,8 @@ class tx_version_cm1 extends t3lib_SCbase { // If access to Web>List for user, then link to that module. if ($BE_USER->check('modules','web_list')) { $href = $BACK_PATH . 'db_list.php?id=' . $this->pageinfo['uid'] . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')); - $buttons['record_list'] = '' . - '' . + $buttons['record_list'] = '' . + t3lib_iconWorks::getSpriteIcon('actions-system-list-open') . ''; } } @@ -460,8 +460,8 @@ class tx_version_cm1 extends t3lib_SCbase { $content.=' - '.($row['uid']!=$this->uid ? ''. - 'doc->backPath,'gfx/insert1.gif','width="14" height="14"').' alt="" title="' . $GLOBALS['LANG']->getLL('swapWithCurrent') . '" />'. + '.($row['uid']!=$this->uid ? ''. + t3lib_iconWorks::getSpriteIcon('apps-version-swap-versions') . '' /* ( $this->table == 'pages' ? ''. @@ -469,7 +469,7 @@ class tx_version_cm1 extends t3lib_SCbase { ''. ''. 'doc->backPath,'gfx/insert4.gif','width="14" height="14"').' alt="" title="Publish page AND content! - AND ALL SUBPAGES!" />'. - '' : '') */ : 'doc->backPath,'gfx/blinkarrow_left.gif','width="5" height="9"').' alt="" title="' . $GLOBALS['LANG']->getLL('currentOnlineVersion') . '"/>').' + '' : '') */ : t3lib_iconWorks::getSpriteIcon('status-status-current', $GLOBALS['LANG']->getLL('currentOnlineVersion')) ).' '.$adminLinks.' '.t3lib_BEfunc::getRecordTitle($this->table,$row,TRUE).' '.$row['uid'].' @@ -480,7 +480,9 @@ class tx_version_cm1 extends t3lib_SCbase { '.$row['t3ver_stage'].' '.$row['t3ver_count'].' '.$row['pid'].' - doc->backPath,'gfx/edit2.gif','width="11" height="12"').' alt="" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:cm.edit'). '"/>' . htmlspecialchars($row['t3ver_label']).' + ' . + t3lib_iconWorks::getSpriteIcon('actions-document-open') . + '' . htmlspecialchars($row['t3ver_label']).' '; @@ -611,13 +613,13 @@ class tx_version_cm1 extends t3lib_SCbase { global $BE_USER; // Edit link: - $adminLink = ''. - 'doc->backPath,'gfx/edit2.gif','width="11" height="12"').' alt="" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:cm.edit'). '"/>'. + $adminLink = ''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; // Delete link: - $adminLink.= ''. - 'doc->backPath,'gfx/garbage.gif','width="11" height="12"').' alt="" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:cm.delete'). '"/>'. + $adminLink.= ''. + t3lib_iconWorks::getSpriteIcon('actions-edit-delete') . ''; @@ -633,15 +635,15 @@ class tx_version_cm1 extends t3lib_SCbase { $a_wp = t3lib_extMgm::isLoaded('cms') && $BE_USER->check('modules',$pageModule); $adminLink.=''. - 'doc->backPath,t3lib_extMgm::extRelPath('cms').'layout/layout.gif','width="14" height="12"').' title="" alt="" />'. + t3lib_iconWorks::getSpriteIcon('apps-version-page-open') . ''; $adminLink.=''. - 'doc->backPath,'mod/web/list/list.gif','width="14" height="12"').' title="" alt="" />'. + t3lib_iconWorks::getSpriteIcon('actions-system-list-open') . ''; // "View page" icon is added: $adminLink.=''. - 'doc->backPath,'gfx/zoom.gif','width="12" height="12"').' title="" alt="" />'. + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; } else { if ($row['pid']==-1) { @@ -649,7 +651,7 @@ class tx_version_cm1 extends t3lib_SCbase { // "View page" icon is added: $adminLink.=''. - 'doc->backPath,'gfx/zoom.gif','width="12" height="12"').' title="" alt="" />'. + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; } } @@ -806,7 +808,9 @@ class tx_version_cm1 extends t3lib_SCbase { $table = ''.implode('',$tableRows).'
'; } else $table = ''; - $linkBack = t3lib_div::_GP('returnUrl') ? 'doc->backPath, 'gfx/goback.gif', 'width="14" height="14"') . ' alt="" />' . $GLOBALS['LANG']->getLL('goBack') . '

' : ''; + $linkBack = t3lib_div::_GP('returnUrl') ? '' . + t3lib_iconWorks::getSpriteIcon('actions-go-back') . $GLOBALS['LANG']->getLL('goBack') . + '

' : ''; $resetDiffOnly = $this->diffOnly ? '' . $GLOBALS['LANG']->getLL('showAllInformation') . '

' : ''; $versionSelector = $GLOBALS['BE_USER']->workspace ? $this->doc->getVersionSelector($this->id) : ''; @@ -1628,8 +1632,8 @@ class tx_version_cm1 extends t3lib_SCbase { ' return false;'; // Reject: $actionLinks.= - ''. - 'doc->backPath,'gfx/down.gif','width="14" height="14"').' alt="" align="top" title="' . $GLOBALS['LANG']->getLL('reject') . '" />'. + ''. + t3lib_iconWorks::getSpriteIcon('actions-move-down') . ''; } else { // Reject: @@ -1649,8 +1653,8 @@ class tx_version_cm1 extends t3lib_SCbase { ' return false;'; if ($rec_off['t3ver_stage']!=10) { $actionLinks.= - ''. - 'doc->backPath,'gfx/up.gif','width="14" height="14"').' alt="" align="top" title="'.htmlspecialchars($titleAttrib).'" />'. + ''. + t3lib_iconWorks::getSpriteIcon('actions-move-up') . ''; $this->stageIndex[$sId][$table][] = $rec_off['uid']; @@ -1675,8 +1679,8 @@ class tx_version_cm1 extends t3lib_SCbase { ''. - 'doc->backPath,'gfx/insert1.gif','width="14" height="14"').' alt="" align="top" title="' . $GLOBALS['LANG']->getLL('publish') . '" />'. + )).'" title="' . $GLOBALS['LANG']->getLL('publish') . '">'. + t3lib_iconWorks::getSpriteIcon('apps-version-swap-versions') . ''; if ($GLOBALS['BE_USER']->workspaceSwapAccess()) { $actionLinks.= @@ -1684,8 +1688,8 @@ class tx_version_cm1 extends t3lib_SCbase { '&cmd['.$table.']['.$rec_on['uid'].'][version][action]=swap'. '&cmd['.$table.']['.$rec_on['uid'].'][version][swapWith]='.$rec_off['uid']. '&cmd['.$table.']['.$rec_on['uid'].'][version][swapIntoWS]=1' - )).'">'. - 'doc->backPath,'gfx/swap.png','width="14" height="14"').' alt="" align="top" title="' . $GLOBALS['LANG']->getLL('swap') . '" />'. + )).'" title="' . $GLOBALS['LANG']->getLL('swap') . '">'. + t3lib_iconWorks::getSpriteIcon('apps-version-swap-workspace') . ''; } } @@ -1693,30 +1697,30 @@ class tx_version_cm1 extends t3lib_SCbase { if (!$GLOBALS['BE_USER']->workspaceCannotEditOfflineVersion($table,$rec_off)) { // Release $actionLinks.= - ''. - 'doc->backPath,'gfx/group_clear.gif','width="14" height="14"').' alt="" align="top" title="' . $GLOBALS['LANG']->getLL('removeFromWorkspace') . '" />'. + ''. + t3lib_iconWorks::getSpriteIcon('apps-version-document-remove') . ''; // Edit if ($table==='pages' && $vType!=='element') { $tempUid = ($vType==='branch' || $GLOBALS['BE_USER']->workspace===0 ? $rec_off['uid'] : $rec_on['uid']); $actionLinks.= - ''. - 'doc->backPath,t3lib_extMgm::extRelPath('cms').'layout/layout.gif','width="14" height="12"').' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_user_ws.xml:img_title_edit_page'). '" alt="" />'. + ''. + t3lib_iconWorks::getSpriteIcon('apps-version-page-open') . ''; } else { $params = '&edit['.$table.']['.$rec_off['uid'].']=edit'; $actionLinks.= - ''. - 'doc->backPath,'gfx/edit2.gif','width="12" height="12"').' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_user_ws.xml:img_title_edit_element'). '" alt="" />'. + ''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; } } // History/Log $actionLinks.= - ''. - 'doc->backPath,'gfx/history2.gif','width="13" height="12"').' title="' . $GLOBALS['LANG']->getLL('showLog') . '" alt="" />'. + ''. + t3lib_iconWorks::getSpriteIcon('actions-document-history-open') . ''; // View @@ -1724,7 +1728,7 @@ class tx_version_cm1 extends t3lib_SCbase { $tempUid = ($vType==='branch' || $GLOBALS['BE_USER']->workspace===0 ? $rec_off['uid'] : $rec_on['uid']); $actionLinks.= ''. - 'doc->backPath,'gfx/zoom.gif','width="12" height="12"').' title="" alt="" />'. + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; } @@ -1746,22 +1750,22 @@ class tx_version_cm1 extends t3lib_SCbase { // Edit if ($table==='pages') { $actionLinks.= - ''. - 'doc->backPath,t3lib_extMgm::extRelPath('cms').'layout/layout.gif','width="14" height="12"').' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_user_ws.xml:img_title_edit_page'). '" alt="" />'. + ''. + t3lib_iconWorks::getSpriteIcon('apps-version-page-open') . ''; } else { $params = '&edit['.$table.']['.$uid.']=edit'; $actionLinks.= - ''. - 'doc->backPath,'gfx/edit2.gif','width="12" height="12"').' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_user_ws.xml:img_title_edit_element'). '" alt="" />'. + ''. + t3lib_iconWorks::getSpriteIcon('actions-document-open') . ''; } } // History/Log $actionLinks.= - ''. - 'doc->backPath,'gfx/history2.gif','width="13" height="12"').' title="' . $GLOBALS['LANG']->getLL('showLog') . '" alt="" />'. + ''. + t3lib_iconWorks::getSpriteIcon('actions-document-history-open') . ''; } @@ -1769,7 +1773,7 @@ class tx_version_cm1 extends t3lib_SCbase { if ($table==='pages') { $actionLinks.= ''. - 'doc->backPath,'gfx/zoom.gif','width="12" height="12"').' title="" alt="" />'. + t3lib_iconWorks::getSpriteIcon('actions-document-view') . ''; } diff --git a/typo3/template.php b/typo3/template.php index ceff805..64aeaf6 100644 --- typo3/template.php +++ typo3/template.php @@ -426,7 +426,7 @@ class template { $viewPage = $noViewPageIcon ? '' : $this->viewPageIcon($row['uid'],$this->backPath,''); if ($table=='pages') $path.=' - '.t3lib_BEfunc::titleAttribForPages($row,'',0); } else { - $iconImgTag='backPath,'gfx/i/_icon_website.gif',$wHattribs='width="18" height="16"').' title="'.htmlspecialchars($path).'" alt="" />'; + $iconImgTag = t3lib_iconWorks::getSpriteIcon('apps-pagetree-page-domain', htmlspecialchars($path)); $title=$GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']; } @@ -482,7 +482,8 @@ class template { .'\''.rawurlencode($pathInfo['path']."?".$storeUrl).$mMN.'\'' .');return false;'; - $sIcon = ''; + $sIcon = '' + . t3lib_iconworks::getSpriteIcon('actions-system-shortcut-new') . ''; return $sIcon; } @@ -2034,7 +2035,7 @@ $str.=$this->docBodyTagBegin(). $pid = $pageRecord['uid']; } else { // On root-level of page tree // Make Icon - $iconImg = 'backPath, 'gfx/i/_icon_website.gif') . ' alt="' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'] . '" />'; + $iconImg = t3lib_iconWorks::getSpriteIcon('apps-pagetree-page-domain', $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']); if($BE_USER->user['admin']) { $theIcon = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($iconImg, 'pages', 0); } else { diff --git a/typo3/wizard_forms.php b/typo3/wizard_forms.php index 1839860..ab4fc34 100644 --- typo3/wizard_forms.php +++ typo3/wizard_forms.php @@ -291,8 +291,8 @@ class SC_wizard_forms { // Close $buttons['close'] = '' . - 'doc->backPath, 'gfx/closedok.gif') . ' class="c-inputButton" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.closeDoc', 1) . '" alt="" />' . - ''; + t3lib_iconWorks::getSpriteIcon('actions-document-close') . + ''; // Save $buttons['save'] = 'doc->backPath, 'gfx/savedok.gif') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', 1) . '" />'; diff --git a/typo3/wizard_table.php b/typo3/wizard_table.php index 3331109..3fb2caa 100644 --- typo3/wizard_table.php +++ typo3/wizard_table.php @@ -210,8 +210,8 @@ class SC_wizard_table { // Close $buttons['close'] = '' . - 'doc->backPath, 'gfx/closedok.gif') . ' class="c-inputButton" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.closeDoc', 1) . '" alt="" />' . - ''; + t3lib_iconWorks::getSpriteIcon('actions-document-close') . + ''; // Save $buttons['save'] = 'doc->backPath, 'gfx/savedok.gif') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', 1) . '" />'; diff --git a/typo3/wizard_tsconfig.php b/typo3/wizard_tsconfig.php index e7d4e54..4706b54 100644 --- typo3/wizard_tsconfig.php +++ typo3/wizard_tsconfig.php @@ -347,7 +347,7 @@ class SC_wizard_tsconfig { // Title and description: $out.=''. - 'doc->backPath,'gfx/goback.gif','width="14" height="14"').' alt="" />'. + t3lib_iconWorks::getSpriteIcon('actions-go-back') . htmlspecialchars($obj_string). '
'; if ($rec['title']) $out.= ''.htmlspecialchars($rec['title']).': '; @@ -616,8 +616,8 @@ class SC_wizard_tsconfig { if(!$this->onlyProperty) { $aOnClick = 'document.editform.mixer.value=unescape(\' '.rawurlencode($propertyName.'='.$propertyVal).'\')+\'\n\'+document.editform.mixer.value; return false;'; $out.= ''. - 'doc->backPath,'gfx/plusbullet2.gif','width="18" height="16"').' title="'.$GLOBALS['LANG']->getLL('tsprop_addToList',1).'" align="top" alt="" />'. - ''; + t3lib_iconWorks::getSpriteIcon('actions-edit-add') . + ''; $propertyName = $prefix.'.'.$propertyName; }