Bug #23175 » rfc15110_v2.diff

Administrator Admin, 2010-07-25 18:34

View differences:

t3lib/class.t3lib_iconworks.php (Arbeitskopie)
635 635
	 * @access public
636 636
	 */
637 637
	public static function getSpriteIcon($iconName, array $options = array(), array $overlays = array()) {
638
		$innerHtml = (isset($options['html'])    ? $options['html']    : '');
639
		$tagName   = (isset($options['tagName']) ? $options['tagName'] : 'span');
638
		$innerHtml = (isset($options['html'])    ? $options['html']    : NULL);
639
		$tagName   = (isset($options['tagName']) ? $options['tagName'] : NULL);
640 640

  
641 641
			// deal with the overlays
642 642
		if (count($overlays)) {
......
672 672
	 * @access public
673 673
	 */
674 674
	public static function getSpriteIconForFile($fileExtension, array $options = array()) {
675
		$innerHtml = (isset($options['html'])    ? $options['html']    : '');
676
		$tagName   = (isset($options['tagName']) ? $options['tagName'] : 'span');
675
		$innerHtml = (isset($options['html'])    ? $options['html']    : NULL);
676
		$tagName   = (isset($options['tagName']) ? $options['tagName'] : NULL);
677 677

  
678 678
			// create the CSS class
679 679
		$options['class'] = self::mapFileExtensionToSpriteIconClass($fileExtension) . (isset($options['class']) ? ' ' . $options['class'] : '');
......
733 733
	 * @access public
734 734
	 */
735 735
	public static function getSpriteIconForRecord($table, array $row, array $options = array()) {
736
		$innerHtml = (isset($options['html'])    ? $options['html']    : '');
737
		$tagName   = (isset($options['tagName']) ? $options['tagName'] : 'span');
736
		$innerHtml = (isset($options['html'])    ? $options['html']    : NULL);
737
		$tagName   = (isset($options['tagName']) ? $options['tagName'] : NULL);
738 738

  
739 739
			// overlay this record icon with the status of the row
740 740
		$overlaySpriteIconName = self::mapRecordOverlayToSpriteIconName($table, $row);
......
959 959
	 * @param	string	$innerHtml (optional)	the content within the tag, a " " by default
960 960
	 * @param	string	$tagName (optional)	the name of the HTML element that should be used (span by default)
961 961
	 */
962
	protected static function buildSpriteHtmlIconTag(array $tagAttributes, $innerHtml = ' ', $tagName = 'span') {
962
	protected static function buildSpriteHtmlIconTag(array $tagAttributes, $innerHtml = NULL, $tagName = NULL) {
963
		$innerHtml = ($innerHtml === NULL ? ' ': $innerHtml);
964
		$tagName = ($tagName === NULL ? 'span' : $tagName);
963 965
		$attributes = '';
964 966
		foreach ($tagAttributes as $attribute => $value) {
965 967
			$attributes .= ' ' . htmlspecialchars($attribute) . '="' . htmlspecialchars($value) . '"';
typo3/stylesheets/visual/main_content.css (Arbeitskopie)
18 18
.t3-icon {
19 19
	background-image:url('../../gfx/icon_fatalerror.gif');
20 20
	background-repeat:no-repeat;
21
	font-size:1px;
22
	line-height:0px;
23
	text-indent:-999em;
21 24
}
22 25
.t3-icon .c-inputButton {
23 26
	width:16px;
(2-2/2)