You can find me on , , , , , and .
I want to share with you a quick XHP class you can build that will greatly abstract your image spriting. Image sprites are a great way to reduce the number of resources download from your server, but they can be a hassle to maintain. If you already sprite your images then you might have a class that generates the styles for your images. Your API might look something like this:
ImageSprite::getSpriteHtml(ImageSprite::ICON_PHOTOS);You can sprinkle those into your rendering and it’ll work just fine, but with XHP you can build a custom component that behaves more like an HTML
imgtag than a PHP class and generates your spriting code behind the scenes.
I’m sitting at dinner eating like usual and I got to the last track of Armin VAn Buuren’s new album Mirage. The song is Youtopia and unexpectedly greeted to a familiar voice and similar words used by someone I adore. Adam Young. If you like Owl city you will enjoy that song. I know I did along with Buuren’s entire new album, Mirage!