Parameters
- file_name - the name of the CSS file to be included (without the .css extension)
- libdir (optional) default value: '' (empty string) - the directory under /libs/css where the CSS file is stored
- ext (optional) default value: .css - the file extension of the CSS file to include
- media (optional) default value: screen - the type of view that the CSS file should be applied to
Description
This function is used to include a third party CSS library for use with your Fabriq web application(s)/website(s). The given file name should not include the extension. It is good practice to store your libraries in subdirectories under /libs/css to keep them organized.
Example(s)
// example providing only the file name for a file stored under /libs/css // NOTE: this is not good practice and libraries should be stored in a sub-directory under /libs/css FabriqLibs::css_lib('jquery-ui'); // example providing the filename and directory under /libs/css FabriqLibs::css_lib('jquery-ui', 'jquery-ui'); // example providing the filename, directory under /libs/css, and file extension FabriqLibs::css_lib('dyanmic', 'dynamic-css', '.php?site=mysite'); // example providing all parameters FabriqLibs::css_lib('dyanmic', 'dynamic-css', '.php?site=mysite', 'print');
