Exponent Themes
From Fishcakes Wiki
This page contains notes about Exponent Themes.
Contents |
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 /exponent/views/ 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.
Change Exponent Editor Controls
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:
<textarea id="<?php echo $name; ?>" name="<?php echo $name; ?>" style="width:100%" rows="24" cols="80">- change to:
<textarea id="<?php echo $name; ?>" name="<?php echo $name; ?>" style="width:100%" rows="84" cols="80">
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:
$html = "<textarea name=\"$name\"";
- change to:
$html = "<textarea style='line-height:1.2em;' name=\"$name\"";
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.
{literal}insert code here{/literal}
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:
var startZoom = parseInt({$googlemap->map_zoom}); var centerLatitude = parseFloat({/literal}{$googlemap->map_lat}{literal}); var centerLongitude = parseFloat({/literal}{$googlemap->map_lon}{literal});
Exponent CMS Resources
Official Exponent Resources
- exponentcms.org — official website.
- exponentcms.org Download — get Exponent.
- sourceforge.net Exponent — get Exponent from SourceForge.
- exponentcms.org Download Themes — change the look.
- exponentcms.org Download Modules — extend Exponent.
- exponentcms.org Forums — for advice.
- exponentcms.org FAQ — How Do I guide to common questions.
- exponentcms.org User Guides — PDF downloads.
- exponentcms.org Designers Guide — doesn't really exist yet!
- exponentcms.org Developers Guide — doesn't really exist yet!
- exponentcms.org How To Create a Module — basic module structure explained.
Unofficial Exponent Resources
- phpxref.com Exponent — online browsing of Exponent 0.96.3 source code.
- netstepcms.com eXponent Overview — good review of what's on offer.
- zimmertech.com Tutorials — excellent tutorials on variety of topics, including great Themes tutorial.
MySQL Resources
- mysql.com — MySQL official website.
- mysql.com Documentation — official user guide.
- wikipedia.org MySQL — good history and definition.
- php.net MySQL Functions — using PHP and MySQL together.
PHP Resources
- php.net — PHP Hypertext Processor official website.
- wikipedia.org PHP — good history and definition.
- w3schools.com PHP Tutorial — excellent online tutorial.
- php.resourceindex.com — index of PHP code snippets for the seriously techie.

