File/nasmail/functions/theme.php

Description

Theme functions

All themes are loaded from two files

  • themes/<theme-name>/theme.php with nsm_theme_load_<theme-name> function loads array with theme information. Currently only 'NAME' key is used.
  • themes/<theme-name>/setup.php with nsm_theme_init_<theme-name> function loads $color array.

  • version: $Id: alien_glow.php 18 2006-10-22 08:57:05Z tokul $
  • copyright: (c) 2006-2007 The NaSMail Project
  • license: GNU Public License
Functions
nsm_theme_check (line 77)

Fixes broken color themes

  • return: color array with all colors defined
array nsm_theme_check (array $color)
  • array $color: color Color array
nsm_theme_init (line 23)
  • return: color array. See doc/themes.txt for more information about array keys.
array nsm_theme_init ([string $user_theme = ''])
  • string $user_theme: user_theme theme selected by end user. If set to empty string - default theme is loaded.
nsm_theme_load (line 58)

Loads information about all enabled themes

  • return: information about themes
array nsm_theme_load (array $themes)
  • array $themes: themes enabled themes

Documentation generated on Sun, 22 Nov 2009 17:36:51 +0200 by phpDocumentor 1.4.3