/src/style.php

Description

Style sheet script

Script processes GET arguments and generates CSS output from stylesheet.tpl, which is defined in each template set.

Used GET arguments:

  • themeid - string, sets theme file from themes/*.php
  • templateid - string, sets template set ID
  • fontset - string, sets selected set of fonts from $fontsets array.
  • fontsize - integer, sets selected font size
  • dir - string, sets text direction variables. Possible values 'rtl' or 'ltr'

Includes
require ('../include/init.php') (line 29)

Include the SquirrelMail initialization file.

Constants
SQM_ALIGN_LEFT = $align['left'] (line 128)
SQM_ALIGN_RIGHT = $align['right'] (line 129)
SQM_BACKGROUND = $color[4] (line 86)

set color constants in order to use simple names instead of color array

  1. - SQM_TEXT_DISABLED, SQM_TITLE_BACKGROUND, SQM_BUTTON_BACKGROUND_DISABLED, SQM_ROW_BACKGROUND_1
  2. -
  3. - SQM_ERROR_TEXT
  4. - SQM_BACKGROUND_LEFT
  5. - SQM_BACKGROUND
  6. - SQM_ROW_BACKGROUND_HIGHLIGHT, SQM_COLUMN_HEADER_BACKGROUND
  7. - SQM_TEXT_STANDARD_LEFT
  8. - SQM_TITLE_TEXT, SQM_BLOCK_TITLE_TEXT
  9. - SQM_TEXT_STANDARD, SQM_BUTTON_TEXT, SQM_BLOCK_TEXT, SQM_ROW_TEXT_1, SQM_ROW_TEXT_2, SQM_ROW_TEXT_HIGHLIGHT, SQM_ROW_TEXT_SELECTED, SQM_COLUMN_HEADER_TEXT
  10. - SQM_BUTTON_BACKGROUND
  11. - SQM_BLOCK_TITLE
  12. - SQM_TEXT_SPECIAL
  13. - SQM_BUTTON_BACKGROUND_TEXT, SQM_BLOCK_BACKGROUND, SQM_ROW_BACKGROUND_2
  14. - SQM_MESSAGE_QUOTE_1
  15. - SQM_MESSAGE_QUOTE_2
  16. - SQM_TEXT_HIGHLIGHT
  17. - SQM_ROW_BACKGROUND_SELECTED

SQM_BACKGROUND_LEFT = $color[3] (line 87)
SQM_BLOCK_BACKGROUND = $color[12] (line 106)
SQM_BLOCK_TEXT = $color[8] (line 107)
SQM_BLOCK_TITLE = $color[10] (line 108)
SQM_BLOCK_TITLE_TEXT = $color[7] (line 109)
SQM_BUTTON_BACKGROUND = $color[9] (line 101)
SQM_BUTTON_BACKGROUND_DISABLED = $color[0] (line 103)
SQM_BUTTON_BACKGROUND_TEXT = $color[12] (line 104)
SQM_BUTTON_TEXT = $color[8] (line 102)
SQM_COLUMN_HEADER_BACKGROUND = $color[5] (line 120)
SQM_COLUMN_HEADER_TEXT = $color[8] (line 121)
SQM_ERROR_TEXT = $color[2] (line 126)
SQM_LINK = $color[7] (line 95)
SQM_LINK_LEFT = $color[6] (line 96)
SQM_MESSAGE_QUOTE_1 = $color[13] (line 123)
SQM_MESSAGE_QUOTE_2 = $color[14] (line 124)
SQM_ROW_BACKGROUND_1 = $color[0] (line 111)
SQM_ROW_BACKGROUND_2 = $color[12] (line 112)
SQM_ROW_BACKGROUND_HIGHLIGHT = $color[5] (line 115)
SQM_ROW_BACKGROUND_SELECTED = $color[16] (line 117)
SQM_ROW_TEXT_1 = $color[8] (line 113)
SQM_ROW_TEXT_2 = $color[8] (line 114)
SQM_ROW_TEXT_HIGHLIGHT = $color[8] (line 116)
SQM_ROW_TEXT_SELECTED = $color[8] (line 118)
SQM_TEXT_DISABLED = $color[0] (line 92)
SQM_TEXT_HIGHLIGHT = $color[15] (line 91)
SQM_TEXT_SPECIAL = $color[11] (line 93)
SQM_TEXT_STANDARD = $color[8] (line 89)
SQM_TEXT_STANDARD_LEFT = $color[6] (line 90)
SQM_TITLE_BACKGROUND = $color[0] (line 98)
SQM_TITLE_TEXT = $color[7] (line 99)

Documentation generated on Sun, 21 Dec 2014 04:19:35 +0100 by phpDocumentor 1.4.3