[TYPO3-core] RFC#15079 Feature: TYPO3 misses an SpriteGenerator
Steffen Kamper
info at sk-typo3.de
Sun Aug 8 13:02:06 CEST 2010
Hi Steffen,
cool thing, thanks for your work!
Unfortunally it doesn't worked for me. i did the steps you mentioned
Step 1: patch it :)
Step 2: delete typo3/sysext/t3skin/stylesheets/sprites/t3-icon-* <= all
t3-icons-* ?
Step 3: delete typo3/sysext/t3skin/images/sprites/*
Step 4:
call:
$generator =
t3lib_div::makeInstance("t3lib_SpriteManager_SpriteGenerator",'t3skin');
$data = $generator
->setSpriteFolder('typo3/sysext/t3skin/images/sprites/')
->setCSSFolder('typo3/sysext/t3skin/stylesheets/sprites/')
->setOmmitSpriteNameInIconName(TRUE)
->setIncludeTimestampInCSS(TRUE)
->setGenerateGifCopy(FALSE)
->generateSpriteFromFolder(array('typo3/sysext/t3skin/images/icons/'));
after the last call, i got 2 files generated:
typo3/sysext/t3skin/stylesheets/sprites/t3skin.css
typo3/sysext/t3skin/images/t3skin.png
but icons in BE are all "empty"
One general note by reading: i would use ### for the markers - it's
common to use that and so you see the markes by reading, uppercase vars
looks like constants, and that's irretating.
vg Steffen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t3skin.png
Type: image/png
Size: 71739 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100808/b41ca0e1/attachment-0001.png>
More information about the TYPO3-team-core
mailing list