.. _fimg: ############################################## ``img`` — Get the URL to a local image file. ############################################## :doc:`Asset-related functions ` ******* Summary ******* .. include:: /Reference/libraries/globals/summary/img.rst .. php:function:: img($file, $dir = 'images') Get the URL to a local image file. :type $file: string :param $file: Filename, including the extension. :type $dir: string :param $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