Function loadCSSFile
Add a CSS file for output later
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Load.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Load.php
string |
$fileName |
The name of the file to load |
array |
$params = array() |
<p>An array of parameters Keys are the following: - ['external'] (true/false): define if the file is a externally located file. Needs to be set to true if you are loading an external file - ['default_theme'] (true/false): force use of default theme url - ['force_current'] (true/false): if this is false, we will attempt to load the file from the default theme if not found in the current theme - ['validate'] (true/false): if true script will validate the local file exists - ['rtl'] (string): additional file to load in RTL mode - ['seed'] (true/false/string): if true or null, use cache stale, false do not, or used a supplied string - ['minimize'] boolean to add your file to the main minimized file. Useful when you have a file thats loaded everywhere and for everyone. - ['order_pos'] int define the load order, when not define it's loaded in the middle, before index.css = -500, after index.css = 500, middle = 3000, end (i.e. after responsive.css) = 10000 - ['attributes'] array extra attributes to add to the element</p> |
string |
$id = '' |
An ID to stick on the end of the filename for caching purposes |