PHP_Framework

Wh1t3projects' PHP framework. Small PHP framework for building web apps and websites

View the Project on GitHub

Syntax: theme_img(string $imageFile)

Get the external path (user-accessible) to the specified image. The file must be located inside the IMG folder of the theme. If inside a sub-folder, it must be specified as a relative path.


Parameters

$imageFile
The file to get the path to.


Return values

The external path to the specified file.


Examples:

Print the path to the hello.png file
echo theme_img('hello.png');

Print a img element with the path to hello.png from a web page
<img src='<?php echo theme_img('hello.png');?>'/>