\FOFTemplateUtils
A utility class to load view templates, media files and modules.
Synopsis
class FOFTemplateUtils
{
- // methods
- public static void addCSS()
- public static void addJS()
- public static mixed addLESS()
- public static string sefSort()
- public static string parsePath()
- public static array getAltPaths()
- public static string loadPosition()
- public static string route()
Methods
public
- addCSS() — Add a CSS file to the page generated by the CMS
- addJS() — Add a JS script file to the page generated by the CMS.
- addLESS() — Compile a LESS file into CSS and add it to the page generated by the CMS.
- getAltPaths() — Parse a fancy path definition into a path relative to the site's root.
- loadPosition() — Returns the contents of a module position
- parsePath() — Parse a fancy path definition into a path relative to the site's root, respecting template overrides, suitable for inclusion of media files.
- route() — Merges the current url with new or changed parameters.
- sefSort() — Creates a SEF compatible sort header. Standard Joomla function will add a href="#" tag, so with SEF enabled, the browser will follow the fake link instead of processing the onSubmit event; so we need a fix.