Project

General

Profile

Bug #22817 » iconBugfixes.diff

Administrator Admin, 2010-06-05 18:24

View differences:

t3lib/stddb/tables.php (Arbeitskopie)
'199' => 'apps-pagetree-spacer',
'199-hideinmenu' => 'apps-pagetree-spacer-hideinmenu',
'254' => 'apps-pagetree-folder-default',
'254-hideinmenu' => 'apps-pagetree-folder-default-hideinmenu',
'254-hideinmenu' => 'apps-pagetree-folder-default',
'255' => 'apps-pagetree-page-recycler',
'255-hideinmenu' => 'apps-pagetree-page-recycler',
'default' => 'apps-pagetree-page-default',
),
t3lib/class.t3lib_recordlist.php (Arbeitskopie)
<td nowrap="nowrap" class="col-icon">';
if (!$h) {
# $out.='<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/ol/halfline.gif','width="18" height="8"').' alt="" />';
$out.='<img src="clear.gif" width="1" height="8" alt="" />';
} else {
for ($a=0;$a<$h;$a++) {
if (!$a) {
# $out.= $altLine ? $altLine : '<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/ol/line.gif','width="18" height="16"').' alt="" />';
if ($icon) $out.= $icon;
} else {
# $out.= $altLine ? $altLine :'<br /><img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/ol/line.gif','width="18" height="16"').' alt="" />';
}
}
}
t3lib/class.t3lib_tceforms.php (Arbeitskopie)
if (in_array('date', $evalList)) {
$inputId = uniqid('tceforms-datefield-');
$cssClasses[] = 'tceforms-textfield tceforms-datefield';
$fieldAppendix = '<img' . t3lib_iconWorks::skinImg(
$this->backPath, 'gfx/datepicker.gif', '', 0)
. ' style="cursor:pointer; vertical-align:middle;" alt=""'
. ' id="picker-' . $inputId . '" />';
$fieldAppendix = t3lib_iconWorks::getSpriteIcon(
'actions-edit-pick-date',
array(
'style' => 'cursor:pointer;',
'id' => 'picker-' . $inputId
)
);
} elseif (in_array('datetime', $evalList)) {
$inputId = uniqid('tceforms-datetimefield-');
$cssClasses[] = 'tceforms-textfield tceforms-datetimefield';
$fieldAppendix = '<img' . t3lib_iconWorks::skinImg(
$this->backPath, 'gfx/datepicker.gif', '', 0)
. ' style="cursor:pointer; vertical-align:middle;" alt=""'
. ' id="picker-' . $inputId . '" />';
$fieldAppendix = t3lib_iconWorks::getSpriteIcon(
'actions-edit-pick-date',
array(
'style' => 'cursor:pointer;',
'id' => 'picker-' . $inputId
)
);
} elseif (in_array('timesec', $evalList)) {
$inputId = uniqid('tceforms-timesecfield-');
......
$absFilePath = t3lib_div::getFileAbsFileName($config['uploadfolder'] ? $config['uploadfolder'] . '/' . $imgPath : $imgPath);
$fI = pathinfo($imgPath);
$fileIcon = t3lib_BEfunc::getFileIcon(strtolower($fI['extension']));
$fileIcon = '<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/fileicons/'.$fileIcon,'width="18" height="16"').' class="absmiddle" title="'.htmlspecialchars($fI['basename'].($absFilePath && @is_file($absFilePath) ? ' ('.t3lib_div::formatSize(filesize($absFilePath)).'bytes)' : ' - FILE NOT FOUND!')).'" alt="" />';
$fileIcon = t3lib_iconWorks::getSpritIconForFile(
strtolower($fI['extension']),
array(
'title' => htmlspecialchars(
$fI['basename'] .
($absFilePath && @is_file($absFilePath)
? ' (' . t3lib_div::formatSize(filesize($absFilePath)) . 'bytes)' :
' - FILE NOT FOUND!'
)
)
)
);
$imgs[] = '<span class="nobr">'.t3lib_BEfunc::thumbCode($rowCopy,$table,$field,$this->backPath,'thumbs.php',$config['uploadfolder'],0,' align="middle"').
($absFilePath ? $this->getClickMenu($fileIcon, $absFilePath) : $fileIcon).
......
if (!$disabled && $show_thumbs) {
$rr = t3lib_BEfunc::getRecordWSOL($this_table,$this_uid);
$imgs[] = '<span class="nobr">'.
$this->getClickMenu(t3lib_iconWorks::getIconImage($this_table,$rr,$this->backPath,'align="top" title="'.htmlspecialchars(t3lib_BEfunc::getRecordPath($rr['pid'],$perms_clause,15)).' [UID: '.$rr['uid'].']"'),$this_table, $this_uid).
$this->getClickMenu(
t3lib_iconWorks::getSpriteIconForRecord(
$this_table,
$rr,
array(
'style' => 'vertical-align:top',
'title' => htmlspecialchars(t3lib_BEfunc::getRecordPath($rr['pid'], $perms_clause, 15) . ' [UID: ' . $rr['uid'] . ']"')
)
),
$this_table,
$this_uid
) .
'&nbsp;'.
t3lib_BEfunc::getRecordTitle($this_table,$rr,TRUE).' <span class="typo3-dimmed"><em>['.$rr['uid'].']</em></span>'.
'</span>';
......
</td>
<td align="right">'.
($mayRestructureFlexforms ? t3lib_iconWorks::getSpriteIcon('actions-move-move', array('title' => 'Drag to Move')) : '').
# '<a href="#" onclick="'.htmlspecialchars($onClickCopy).'"><img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/clip_copy.gif','width="12" height="12"').' alt="Copy" title="Copy" /></a>'. // DISABLED - see what above in definition of variable $onClickCopy
($mayRestructureFlexforms ? '<a href="#" onclick="'.htmlspecialchars($onClickRemove).'">'.t3lib_iconWorks::getSpriteIcon('actions-edit-delete', array('title' => 'Delete')) : '').
'</td>
</tr>
......
}
$aOnClick.= 'return false;';
$icons['R'][]='<a href="#" onclick="'.htmlspecialchars($aOnClick).'">'.
t3lib_iconWorks::getSpriteIcon('actions-edit-paste', array('title' => htmlspecialchars(sprintf($this->getLL('l_clipInsert_' . ($mode == 'db' ? 'db' : 'file')), count($clipElements))))) .
t3lib_iconWorks::getSpriteIcon('actions-document-paste-into', array('title' => htmlspecialchars(sprintf($this->getLL('l_clipInsert_' . ($mode == 'db' ? 'db' : 'file')), count($clipElements))))) .
'</a>';
}
$rOnClick = $rOnClickInline.'setFormValueManipulate(\''.$fName.'\',\'Remove\'); return false';
t3lib/class.t3lib_tceforms_inline.php (Arbeitskopie)
$style = ' style="'.$config['inline']['inlineNewButtonStyle'].'"';
}
$cells['new']='<a href="#" onclick="'.htmlspecialchars($onClick).'"'.$class.$style.'>'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/new_'.($isPagesTable?'page':'el').'.gif','width="'.($isPagesTable?13:11).'" height="12"').' title="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_web_list.xml:new'.($isPagesTable?'Page':'Record'),1).'" alt="" />'.
'</a>';
t3lib_iconWorks::getSpriteIcn('actions-' . ($isPagesTable? 'page' :'document') . '-new',
array(
'title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_web_list.xml:new' . ($isPagesTable ? 'Page' : 'Record' ), 1)
)
).
'</a>';
}
}
......
$onClick = "return inline.enableDisableRecord('".$nameObjectFtId."')";
if ($rec[$hiddenField]) {
$cells['hide.unhide']='<a href="#" onclick="'.htmlspecialchars($onClick).'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/button_unhide.gif','width="11" height="10"').' title="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_web_list.xml:unHide'.($isPagesTable?'Page':''),1).'" alt="" id="'.$nameObjectFtId.'_disabled" />'.
'</a>';
t3lib_iconWorks::getSpriteIcon(
'actions-edit-unhide',
array(
'title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_web_list.xml:unHide' . ($isPagesTable ? 'Page' : ''), 1),
'id' => $nameObjectFtId . '_disabled'
)
) .
'</a>';
} else {
$cells['hide.hide']='<a href="#" onclick="'.htmlspecialchars($onClick).'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/button_hide.gif','width="11" height="10"').' title="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_web_list.xml:hide'.($isPagesTable?'Page':''),1).'" alt="" id="'.$nameObjectFtId.'_disabled" />'.
'</a>';
t3lib_iconWorks::getSpriteIcon(
'actions-edit-hide',
array(
'title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_web_list.xml:hide' . ($isPagesTable ? 'Page' : ''), 1),
'id' => $nameObjectFtId . '_disabled'
)
) .
'</a>';
}
}
......
switch($type) {
case 'newRecord':
$title = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:cm.createnew', 1);
$iconFile = 'gfx/new_el.gif';
// $iconAddon = 'width="11" height="12"';
$icon = 'actions-document-new';
$className = 'typo3-newRecordLink';
$attributes['class'] = 'inlineNewButton '.$this->inlineData['config'][$nameObject]['md5'];
$attributes['onclick'] = "return inline.createNewRecord('$objectPrefix')";
......
break;
case 'localize':
$title = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_misc.xml:localizeAllRecords', 1);
$iconFile = 'gfx/localize_el.gif';
$icon = 'actions-document-localize';
$className = 'typo3-localizationLink';
$attributes['onclick'] = "return inline.synchronizeLocalizeRecords('$objectPrefix', 'localize')";
break;
case 'synchronize':
$title = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_misc.xml:synchronizeWithOriginalLanguage', 1);
$iconFile = 'gfx/synchronize_el.gif';
$icon = 'actions-document-synchronize';
$className = 'typo3-synchronizationLink';
$attributes['class'] = 'inlineNewButton '.$this->inlineData['config'][$nameObject]['md5'];
$attributes['onclick'] = "return inline.synchronizeLocalizeRecords('$objectPrefix', 'synchronize')";
break;
}
// Create the link:
$icon = ($iconFile ? '<img'.t3lib_iconWorks::skinImg($this->backPath, $iconFile, $iconAddon).' alt="'.htmlspecialchars($title.$titleAddon).'" />' : '');
$link = $this->wrapWithAnchor($icon.$title.$titleAddon, '#', $attributes);
return '<div'.($className ? ' class="'.$className.'"' : '').'>'.$link.'</div>';
$icon = ($icon ? t3lib_iconWorks::getSpriteIcon($icon, array('title' => htmlspecialchars($title.$titleAddon))) : '');
$link = $this->wrapWithAnchor($icon . $title . $titleAddon, '#', $attributes);
return '<div' . ($className ? ' class="' . $className . '"' : '').'>' . $link . '</div>';
}
typo3/alt_doc.php (Arbeitskopie)
// If only SOME fields are shown in the form, this will link the user to the FULL form:
if ($this->columnsOnly) {
$buttons['columns_only'] = '<a href="'.htmlspecialchars($this->R_URI.'&columnsOnly=').'" title="' . $LANG->getLL('editWholeRecord', TRUE) . '">' .
t3lib_iconWorks::getSpriteIcon('actions-edit-edit') .
t3lib_iconWorks::getSpriteIcon('actions-document-open') .
'</a>';
}
}
typo3/class.alt_menu_functions.inc (Arbeitskopie)
// 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 = t3lib_iconWorks::getSpriteIcon('actions-view-table-' . ($config[$moduleName]) ? 'expand' : 'collapse', array('class' => 'c-iconCollapse'));
$collapseIcon = t3lib_iconWorks::getSpriteIcon('actions-view-table-' . ($config[$moduleName] ? 'expand' : 'collapse'), array('class' => 'c-iconCollapse'));
} else {
$collapseJS = $collapseIcon = '';
}
typo3/class.db_list_extra.inc (Arbeitskopie)
// 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 = '<a href="#" onclick="' . htmlspecialchars('alert(' . $GLOBALS['LANG']->JScharCode($lockInfo['msg']) . '); return false;') . '" title="' . htmlspecialchars($lockInfo['msg']) . '">' .
t3lib_iconWorks::getSpriteIcon('status-warning-record') .
t3lib_iconWorks::getSpriteIcon('status-warning-in-use') .
'</a>';
}
$theData[$fCol] = $warning . $this->linkWrapItems($table, $row['uid'], $recTitle, $row);
......
if ($currentPage > 1) {
$labelFirst = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:first');
$first = '<a href="' . $listURL . '&pointer=0">
<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/control_first.gif')
. 'alt="' . $labelFirst . '" title="' . $labelFirst . '" />
</a>';
$first = '<a href="' . $listURL . '&pointer=0">' .
t3lib_iconWorks::getSpriteIcon('actions-view-paging-first', array('title'=> $labelFirst)) .
'</a>';
} else {
$first = '<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/control_first_disabled.gif') . 'alt="" title="" />';
$first = t3lib_iconWorks::getSpriteIcon('actions-view-paging-first-disabled');
}
if (($currentPage - 1) > 0) {
$labelPrevious = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:previous');
$previous = '<a href="' . $listURL . '&pointer=' . (($currentPage - 2) * $this->iLimit) . '">
<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/control_previous.gif')
. 'alt="' . $labelPrevious . '" title="' . $labelPrevious . '" />
</a>';
$previous = '<a href="' . $listURL . '&pointer=' . (($currentPage - 2) * $this->iLimit) . '">' .
t3lib_iconWorks::getSpriteIcon('actions-view-paging-previous', array('title' => $labelPrevious)) .
'</a>';
} else {
$previous = '<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/control_previous_disabled.gif') . 'alt="" title="" />';
$previous = t3lib_iconWorks::getSpriteIcon('actions-view-paging-previous-disabled');
}
if (($currentPage + 1) <= $totalPages) {
$labelNext = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:next');
$next = '<a href="' . $listURL . '&pointer=' . (($currentPage) * $this->iLimit) . '">
<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/control_next.gif')
. 'alt="' . $labelNext . '" title="' . $labelNext . '" />
</a>';
$next = '<a href="' . $listURL . '&pointer=' . (($currentPage) * $this->iLimit) . '">' .
t3lib_iconWorks::getSpriteIcon('actions-view-paging-next', array('title' => $labelNext)) .
'</a>';
} else {
$next = '<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/control_next_disabled.gif') . 'alt="" title="" />';
$next = t3lib_iconWorks::getSpriteIcon('actions-view-paging-next-disabled');
}
if ($currentPage != $totalPages) {
$labelLast = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:last');
$last = '<a href="' . $listURL . '&pointer=' . (($totalPages - 1) * $this->iLimit) . '">
<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/control_last.gif')
. 'alt="' . $labelLast . '" title="' . $labelLast . '" />
</a>';
$last = '<a href="' . $listURL . '&pointer=' . (($totalPages - 1) * $this->iLimit) . '">' .
t3lib_iconWorks::getSpriteIcon('actions-view-paging-last', array('title' => $labelLast)) .
'</a>';
} else {
$last = '<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/control_last_disabled.gif') . 'alt="" title="" />';
$last = t3lib_iconWorks::getSpriteIcon('actions-view-paging-last-disabled');
}
$reload = '<a href="#" onclick="document.dblistForm.action=\''
(1-1/2)