Is
Code: Select all
"<?php echo $pth['folder']['templateimages']?>myimagename.png"
Best regards,
Michael
Code: Select all
"<?php echo $pth['folder']['templateimages']?>myimagename.png"
Code: Select all
url(./images/myimagename.png)
No (not yet at least).michaelsidenius wrote:Or is there a dedicated call for this?
That the depends on the purpose of the images, IMHO. If they are background images, i.e. images that serve only design purposes, it might be best to define them in the CSS; if they are part of the information the website conveys, such as a logo, it might be best to put them in the template. Just consider what a visitors sees, if he has no CSS support (e.g. screenreaders and bots).michaelsidenius wrote:So if I want to create as "correct" a template as possible according to all new standards, I guess that specifying the images for elements will be best done in the CSS stylesheet file with the url('/images/myimage') command, rather than setting it in the HTM (AKA: PHP) template file?