Advanced Features for Developers

We have rewritten the 2 most popular module chrome functions for /motif and named them motifxhtml and motifrounded. When you load a module position with either the xhtml or rounded style, it will automatically get loaded with motifxhtml or motifrounded. xhtml vs. motifxhtml The xhtml module style output looks like…
Position Chrome is a method for loading multiple module positions with one line of code. Similar to module chrome, first you must define position chrome functions that define how positions are to be rendered. /motif comes with 3 position chrome functions: positions_none, positions_allornothing, and positions_columns, which are defined here: www.yoursite.com/templates/YOURTEMPLATENAME/html/positions.php…
Including PHP files in your theme is simple. You just create a PHP file, upload it to  your theme folder, and then include it with the following code: <?php getFile('YOURFILE.php'); ?> Remember to replace "YOURFILE.php" with the actual name of your PHP file. With the getFile function, the cascading theme…
CSS files in a theme's /css folder are automatically loaded in alphabetical order by file name. To override this, you create a file called order.php and place it in the theme's CSS folder. In that file, define an array called $ordered, and add the file names to that array in…
Javascript files in a theme's /js folder are automatically loaded in alphabetical order by file name. To override this, you create a file called order.php and place it in the theme's /js folder. In that file, define an array called $ordered, and add the file names to that array in…
Each theme in a /motif-powered template can define its own custom parameters, so you do not have to define new parameters in the templateDetails.xml file. To define custom parameters, you simply add a file named config.xml to the theme folder (YOURTEMPLATENAME/themes/YOURTHEME/config.xml), and define the parameters in this file. Example <?xml…
Module chrome can be specific to a particular theme and can be added easily. To do so, add folder named "html" to your theme folder. Inside that, add a file named "modules.php". Here's an example of a simple module chrome definition: function modChrome_simple( $module, &$params, &$attribs ) { echo '';…