Function loadTemplate
Load a template - if the theme doesn't include it, use the default. What this function does: - loads a template file with the name template_name from the current, default, or base theme. - detects a wrong default theme directory and tries to work around it.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Uses: the template_include() function to include the file.
Located at Sources/Load.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Uses: the template_include() function to include the file.
Located at Sources/Load.php
string |
$template_name |
The name of the template to load |
array|string |
$style_sheets = array() |
The name of a single stylesheet or an array of names of stylesheets to load |
boolean |
$fatal = true |
If true, dies with an error message if the template cannot be found |
boolean
|
Whether or not the template was loaded |