The UI to add a theme image.
tempcode
add_image
()
The UI to add a theme.
tempcode
add_theme
()
The UI to choose a CSS file to edit.
tempcode
choose_css
()
The UI to choose a theme.
tempcode
choose_theme
(tempcode $title, [boolean $lang_too = false])
-
tempcode
$title: The title to show when choosing a theme
-
boolean
$lang_too: Whether to also choose a language
The do-next manager for after download content management.
tempcode
do_next_manager
(tempcode $title, tempcode $description, ID_TEXT $theme, ?LANGUAGE_NAME $lang, ID_TEXT $type, ID_TEXT $file)
-
tempcode
$title: The title (output of get_page_title)
-
tempcode
$description: Some description to show, saying what happened
-
ID_TEXT
$theme: The theme that was just handled
-
?LANGUAGE_NAME
$lang: The language we were working in (NULL: autodetect) (blank: autodetect)
-
ID_TEXT
$type: Code to determine what kind of links to show
-
ID_TEXT
$file: ID of file that an edit link should load (blank: N/A)
The UI to edit a CSS file.
tempcode
edit_css
()
The UI to edit a theme image.
tempcode
edit_image
()
The UI to choose a template to edit.
tempcode
edit_templates
()
The UI to edit/rename a theme.
tempcode
edit_theme
()
Helper function to get tempcode for insertion of symbols.
tempcode
generate_from
(array $array, string $stub, string $id)
-
array
$array: A list of pairs (symbol name,arity)
-
string
$stub: The "stub" that determines what language codes to lookup for the given symbols, and generally, the collective naming strategy
-
string
$id: The ID of the actual template editor we are working with
Get all the revisions for a CSS file in a certain theme.
array
get_css_revisions
(ID_TEXT $theme, string $find_for)
-
ID_TEXT
$theme: The theme to find for
-
string
$find_for: The file to find revisions of
Standard modular entry-point finder function.
?array
get_entry_points
()
Get tempcode for a theme image adding/editing form.
array
get_image_form_fields
(ID_TEXT $theme, LANGUAGE_NAME $lang, [SHORT_TEXT $id = ''], [URLPATH $path = ''])
-
ID_TEXT
$theme: The theme the theme image is in
-
LANGUAGE_NAME
$lang: The language the theme image is for
-
SHORT_TEXT
$id: The theme image ID
-
URLPATH
$path: The URL to the theme image
Get all the templates for a theme (optionally, revisions of a single template).
array
get_template_files_array
(ID_TEXT $theme, [string $find_for = ''], [boolean $this_theme_only = false])
-
ID_TEXT
$theme: The theme to search for
-
string
$find_for: The file to find revisions of (blank: we're not looking for revisions)
-
boolean
$this_theme_only: Just for this theme
Get all the revisions for a template file in a certain directory.
array
get_template_revisions
(PATH $base_dir, PATH $subdir, string $find_for)
-
PATH
$base_dir: The path to search relative to
-
PATH
$subdir: The subdirectory to search
-
string
$find_for: The file to find revisions of
Get standard form input fields for inputting a theme.
tempcode
get_theme_fields
([string $name = ''], [string $title = ''], [string $description = ''], [?string $author = NULL], [boolean $use_on_all_zones = false])
-
string
$name: The name of the theme
-
string
$title: The theme title
-
string
$description: The theme description
-
?string
$author: The theme author (NULL: current member)
-
boolean
$use_on_all_zones: Whether to use this theme on all zones
Standard modular info function.
?array
info
()
Standard modular install function.
void
install
([?integer $upgrade_from = NULL], [?integer $upgrade_from_hack = NULL])
-
?integer
$upgrade_from: What version we're upgrading from (NULL: new install)
-
?integer
$upgrade_from_hack: What hack version we're upgrading from (NULL: new-install/not-upgrading-from-a-hacked-version)
Shows the list of templates
tempcode
list_screen_previews
()
The UI to select a theme image to edit.
tempcode
manage_images
()
The UI to manage themes.
tempcode
manage_themes
()
Standard modular run function.
tempcode
run
()
Common theme change saving for adding and editing themes.
void
save_theme_changes
(ID_TEXT $theme)
-
ID_TEXT
$theme: The name of the theme
Standard modular uninstall function.
void
uninstall
()
Shows the preview of a screen
tempcode
view_screen_preview
()
The actualiser to add a theme image.
tempcode
_add_image
()
The actualiser to add a theme.
tempcode
_add_theme
()
The actualiser to edit a CSS file.
tempcode
_edit_css
()
The actualiser to edit a theme image.
tempcode
_edit_image
()
The UI to edit a template.
tempcode
_edit_templates
()
The actualiser to edit/rename a theme.
tempcode
_edit_theme
()
The actualiser to edit a template. Always saves to the most overridden version.
tempcode
__edit_templates
()