.. _fimg: ### img ### :doc:`File-related functions ` ******* Summary ******* .. include:: /Reference/libraries/globals/summary/img.rst .. php:function:: img(string $file, string $dir = images) Return the web path to an image file. :param string $file: Filename, including the extension. :param string $dir: Directory within the theme to look for image files. Defaults to 'images'. :returns: string ***** Usage ***** .. include:: /Reference/libraries/globals/usage/img.rst ******** Examples ******** .. include:: /Reference/libraries/globals/examples/img.rst ******** See Also ******** .. include:: /Reference/libraries/globals/see_also/img.rst