[TYPO3-core] RFC#15079 Feature: TYPO3 misses an SpriteGenerator

Steffen Ritter info at rs-websystems.de
Fri Aug 6 21:23:09 CEST 2010


Hey list,
this is an svn patch request.

BT ref:
http://bugs.typo3.org/view.php?id=15079

Type:
Feature

Branches:
trunk

Problem:
there is no sprite-generator shipped with TYPO3

Solution:
add one :)

Note:
in fact it is not as simple as "add one" implies.
As this one should not only apply to internal use or current use case I 
tried to handly it as flexible as possible. Therefore there are many 
Class-Parameters and setters for them.

How to test:
Step 1: patch it :)
Step 2: delete typo3/sysext/t3skin/stylesheets/sprites/t3-icon-*
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/'));

you should have backend icons :)

regards

Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rfc15079.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100806/3428a8b9/attachment.asc>


More information about the TYPO3-team-core mailing list