public static function skinImg($backPath, $src, $wHattribs = '', $outputMode = 0) {
static $cachedSkinImages = array();
-
+
$imageId = md5($backPath . $src . $wHattribs . $outputMode);
if (isset($cachedSkinImages[$imageId])) {
// check if whished icon is available
$iconName = (in_array($iconName, $GLOBALS['TBE_STYLES']['spriteIconApi']['iconsAvailable']) || $iconName == 'empty-empty' ? $iconName : 'status-status-icon-missing');
-
+
// create the CSS class
$options['class'] = self::getSpriteIconClasses($iconName) . (isset($options['class']) ? ' ' . $options['class'] : '');
} else {
$iconName = $GLOBALS['TCA'][$table]['ctrl']['typeicon_classes']['default'];
}
-
+
} else {
if (in_array('tcarecords-' . $table . '-' . $recordType, $GLOBALS['TBE_STYLES']['spriteIconApi']['iconsAvailable'])) {
$iconName = 'tcarecords-' . $table . '-' . $recordType;
}
}
-?>
+
+?>
\ No newline at end of file