Functions/foot

< Functions(Redirected from Theme API/foot)

This function includes the template footer.php at the end of a page.

Usage

 <?php foot($vars = array(), $file); ?>

Arguments

  • $vars (array) (optional) (default: empty array) An array of arguments to be passed to the footer script.
  • $file (string) (optional) (default: "footer") The name of the file to be included. Do not include the .php extension. Defaults to footer.php.

Example(s)

Include the footer

   <?php foot(); ?>

Include this code wherever the footer needs to be included, for example, at the end of index.php.