Exponent Themes

   Exponent Themes

This page contains notes about Exponent Themes.

Exponent Base Themes
Themes released by OIC Group and installed with Exponent.
 * tbd

Exponent Add-on Themes
Themes released by the development community. See also Fishcakes Exponent Themes.
 * tbd

Exponent Themes See Also

 * exponentcms.org Download Themes
 * exponentcms.org Designers Guide
 * zimmertech.com Themes Tutorial — excellent Exponent CMS Theme tutorial.

Exponent Themes Reference
The important thing to remember about Exponent Themes is that the main site theme controls the overall look and feel of the website, but you can also control design of individual page content by modifying Module views, from the Default view for each module to any other view you create. You can also change the look of some system-wide views (Login, Search) by modifying the files in the  folder.

If you modify any view, don't do it in your main exponent directories or you'll lose your custom views on the next upgrade. Instead, copy any view file you wish to modify to your themes folder.

htmlEditor controls
To edit the input box size of forms on the site, edit file: subsystems/forms/controls/htmleditorcontrol.php

Edit line 156 to change the column and row settings:
 * change to:
 * change to:

Format text for Text Input Box
To edit the input box text format of all forms on the site, edit file: subsystems/forms/controls/texteditorcontrol.php

Edit line 66 to change the text characteristics:
 * change to:
 * change to:

Navigation
See Forum: Tabbed Navigation — is there a way to make the selected tab keep its id, even when a link deeper within the hierarchy of the selected tab is clicked?

See Forum: Div Li Navigation — worth implementing?

Themes and Smarty
Using the Smarty Template Engine with Exponent Themes.
 * smarty.php.net — Smarty Template Engine official website.
 * smarty.php.net Manual — excellent reference guide.
 * smarty.incutio.com Wiki — excellent unofficial Wiki guide.

Math Equations
{math equation="(x-y)/60" x=$item->eventend y=$item->eventstart assign=dur}

Format Dates
{$item->thisdate|format_date:"%H %y"}

Assign Temporary Template Variable
{assign var=starthour value=$item->eventstart|format_date:"%H"}

Smarty File Paths
{$smarty.const.ICON_RELATIVE} {$smarty.const.BASE} {$smarty.const.BASE}&file={$project->picpath} {$smarty.const.PATH_RELATIVE} {$smarty.const.PATH_RELATIVE}modules/showreelmodule/

Literal Text
Use the Literal Text tag to insert text you want to be ignored by Smarty, such as in-page scripts.

Parsing Values for Javascript
You need to parse values into correct Javascript formats. You also need to go in and out of Literal Text mode to call template fields: