What is the writing syntax to use an image sprite in PHP

Hello,

I’m looking for the good writing syntax to use (and not to create) an image sprite in PHP.

for exemple my sprite image in CSS is :

.Image_One{width: 40px; height: 40px; display: block; background-image: url(“images/sprite_image.jpg”); background-repeat: no-repeat; 0 -40px;}

How can i catch that image in php?

For exemple in a line like this :

define(‘DEFAULT_IMAGE_URL’, get_template_directory_uri() . ‘/img/image.png’);

or in a line like this :

$image = sprintf( ‘%s/img/image.png’, get_stylesheet_directory_uri() );

I’m looking to replace “/img/image.png” by the sprite image but i cannot find anything about how to do it

Anyone can help?

Thank you very much and sorry for my bad english which is not my first language.

Sponsor our Newsletter | Privacy Policy | Terms of Service