ยป Themes (Templates)

Creating / adding themes is very easy, just create an html file in your favorite html editor and upload the file to the addons folder following a few simple rules.

For example, if you are adding a theme called SUNNY:

    • Include built in functions & constants to display menus and contents in the new theme file (See Functions section here).
    • Create a new folder named sunny in the themes folder.
    • Rename the new html file to index.php and place it in the new folder.
    • If the main script (index.php) is refrring to other files, then add CMS_THEME_PATH to the begining of the path, e.g. ./mypath/myimage.gif should read <?php CMS_THEME_PATH ?>/mypath/myimage.gif . 
    • Goto admin area and in the [Settings} tab, select the new theme as default theme.
    • Save changes

After this point your site will appear with the new theme.

Remember when you add a new theme to your themess folder, the folder name will be the theme name and will be displayed in the themes list in the Settings tab in the admin area.

 

Functions & Predefined Constants

If you are making a template or writing your own addon, the following predifined constants and functions are available and can be used / called:

Click to here view.