Exponent Themes

From Fishcakes Wiki

Jump to: navigation, search
Edit Menu

Image:Icon_Exponent_40px.png Exponent Themes

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


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.

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});

Image:Icon Resources 20px.png Exponent CMS Resources

Official Exponent Resources


Unofficial Exponent Resources

MySQL Resources

PHP Resources


Personal tools