actual_add_theme
actual_add_theme_image
actual_copy_theme
actual_delete_theme
actual_delete_theme_image
actual_edit_theme_image
actual_rename_theme
autoprobe_cdns
cleanup_theme_images
combo_get_image_paths
create_selection_list_theme_images
create_selection_list_themes
css_preg
do_lorem_template
export_theme_images
find_all_previews__by_screen
find_all_previews__by_template
find_all_themes
find_comcodes
find_html
find_images_do_dir
get_all_image_codes
get_all_image_ids_type
get_image_paths
get_text_templates
is_full_screen_template
is_plain_text_template
lorem_chunk
lorem_chunk_html
lorem_globalise
lorem_paragraph
lorem_paragraph_html
lorem_phrase
lorem_phrase_html
lorem_sentence
lorem_sentence_html
lorem_title
lorem_word
lorem_word_2
lorem_word_2_html
lorem_word_html
placeholder_array
placeholder_avatar
placeholder_blank
placeholder_breadcrumbs
placeholder_button
placeholder_date
placeholder_date_raw
placeholder_emoticon_chooser
placeholder_emoticons
placeholder_fields
placeholder_fields_as_divs
placeholder_filesize
placeholder_form
placeholder_form_with_field
placeholder_id
placeholder_image
placeholder_image_url
placeholder_img_code
placeholder_ip
placeholder_javascript_code
placeholder_link
placeholder_list_item
placeholder_number
placeholder_options
placeholder_pagination
placeholder_random
placeholder_random_id
placeholder_table
placeholder_time
placeholder_types
placeholder_url
post_param_image
post_param_theme_img_code
regen_theme_images
render_screen_preview
resize_rep_image
tempcode_tester_script
tidy_theme_img_code
actual_add_theme(\ID_TEXT $name)
actual_add_theme_image(\ID_TEXT $theme, \LANGUAGE_NAME $lang, \SHORT_TEXT $id, \URLPATH $path, boolean $fail_ok = false)
| package | core_themeing |
|---|
\ID_TEXTThe theme the theme image is in
\LANGUAGE_NAMEThe language the theme image is for
\SHORT_TEXTThe theme image ID
\URLPATHThe URL to the theme image
booleanWhether to allow failure without bombing out
actual_copy_theme(\ID_TEXT $theme, \ID_TEXT $to)
| package | core_themeing |
|---|
\ID_TEXTThe original theme name
\ID_TEXTThe copy's theme name
actual_delete_theme(\ID_TEXT $theme)
actual_delete_theme_image(\SHORT_TEXT $id, \?ID_TEXT $theme= null, \?LANGUAGE_NAME $lang= null)
| package | core_themeing |
|---|
\SHORT_TEXTThe theme image ID
\?ID_TEXTThe theme to delete in (null: all themes)
\?LANGUAGE_NAMEThe language to delete in (null: all languages) (blank: all languages)
actual_edit_theme_image(\SHORT_TEXT $old_id, \ID_TEXT $theme, \LANGUAGE_NAME $lang, \SHORT_TEXT $id, \URLPATH $path, boolean $quick = false)
| package | core_themeing |
|---|
\SHORT_TEXTThe current theme image ID
\ID_TEXTThe theme the theme image is in
\LANGUAGE_NAMEThe language the theme image is for (blank: all languages)
\SHORT_TEXTThe new theme image ID
\URLPATHThe URL to the theme image
booleanWhether to avoid cleanup, etc
actual_rename_theme(\ID_TEXT $theme, \ID_TEXT $to)
| package | core_themeing |
|---|
\ID_TEXTThe original theme name
\ID_TEXTThe new theme name
autoprobe_cdns() : string
cleanup_theme_images(\URLPATH $old_url)
combo_get_image_paths(string $selected_path, \URLPATH $base_url, \PATH $base_path) : \Tempcode
| package | core_themeing |
|---|
stringThe currently selected image path (blank for none)
\URLPATHThe base-URL to where we are searching for images
\PATHThe base-path to where we are searching for images
\TempcodeThe generated Tempcodecreate_selection_list_theme_images(\?ID_TEXT $it= null, \?string $filter= null, boolean $do_id= false, boolean $include_all= false, string $under= '') : \Tempcode
| package | core_themeing |
|---|
\?ID_TEXTThe currently selected image ID (null: none selected)
\?stringAn SQL where clause (including the WHERE), that filters the query somehow (null: none)
booleanWhether to show IDs as the list entry captions, rather than paths
booleanWhether to include images not yet used (i.e not in theme_images map yet)
stringOnly include images under this path. Including a trailing slash unless you specifically want to filter allowing filename stubs as well as paths (blank: no limitation)
\TempcodeTempcode for a list selection of theme imagescreate_selection_list_themes(\?ID_TEXT $theme= null, boolean $no_rely= false, boolean $show_everything= false, \ID_TEXT $default_message_string= 'RELY_FORUMS') : \Tempcode
| package | core_themeing |
|---|
\?ID_TEXTThe theme to select by default (null: no specific default)
booleanWhether to skip the 'rely on forums' entry
booleanWhether to forget about permissions for this list
\ID_TEXTThe language string to use for the default answer
\TempcodeThe listcss_preg(array $matches) : string
| package | core_themeing |
|---|
arrayList of found regular expression matches (only index 0 relevant).
stringReplacement.do_lorem_template(\ID_TEXT $codename, \?array $parameters= null, \?LANGUAGE_NAME $lang= null, boolean $light_error= false, \?ID_TEXT $fallback= null, string $suffix= '.tpl', string $directory= 'templates') : \Tempcode
| package | core_themeing |
|---|---|
| set | templates css javascript xml text |
\ID_TEXTThe codename of the template being loaded
\?arrayA map of parameters for the template (key to value) (null: no parameters)
\?LANGUAGE_NAMEThe language to load the template in (templates can embed language references) (null: users own language)
booleanWhether to not produce a stack dump if the template is missing
\?ID_TEXTAlternate template to use if the primary one does not exist (null: none)
stringFile type suffix of template file (e.g. .tpl)
stringSubdirectory type to look in
\TempcodeThe Tempcode for this templateexport_theme_images()
| package | core_themeing |
|---|
find_all_previews__by_screen() : array
find_all_previews__by_template() : array
find_all_themes(boolean $full_details = false) : array
| package | core_themeing |
|---|
booleanWhether to gather full details for each theme
arrayA map of all themes (name=>title) OR if requested a map of theme name to full theme detailsfind_comcodes() : array
find_images_do_dir(\ID_TEXT $theme, string $subdir, array $langs) : array
| package | core_themeing |
|---|
\ID_TEXTThe theme
stringThe subdirectory to search under
arrayA map (lang=>true) of the languages in the system, so the codes may be filtered out of the image codes in our result list
arrayA map, theme-image-code=>URLget_all_image_codes(\PATH $base_path, \PATH $search_under, boolean $recurse = true) : array
| package | core_themeing |
|---|
\PATHThe base-path to where we are searching for images
\PATHThe path to search under, relative to the base-path. This is not the same as the base-path, as we are cropping paths to the base-path
booleanWhether to search recursively from the given directory
arrayA list of image codesget_all_image_ids_type(\ID_TEXT $type, boolean $recurse= false, \?object $db= null, \?ID_TEXT $theme= null, boolean $dirs_only= false, boolean $db_only= false, \?array $skip= null) : array
| package | core_themeing |
|---|
\ID_TEXTThe type of image (e.g. 'cns_emoticons')
booleanWhether to search recursively; i.e. in subdirectories of the type subdirectory
\?objectThe database connection to work over (null: site db)
\?ID_TEXTThe theme to search in, in addition to the default theme (null: current theme)
booleanWhether to only return directories (advanced option, rarely used)
booleanWhether to only return from the database (advanced option, rarely used)
\?arrayThe list of files/directories to skip (null: none)
arrayThe list of image IDsget_image_paths(\URLPATH $base_url, \PATH $base_path) : array
| package | core_themeing |
|---|
\URLPATHThe base-URL to where we are searching for images
\PATHThe base-path to where we are searching for images
arraypath->url map of found imagesget_text_templates() : array
is_full_screen_template(\?string $temp_name= null, \?Tempcode $tempcode= null) : boolean
| package | core_themeing |
|---|
\?stringName of the template (null: do not use as criteria, use other as criteria, which must iself be non-NULL)
\?TempcodeThe instantiated template (null: do not use as criteria, use other as criteria, which must iself be non-NULL)
booleanWhether it isis_plain_text_template(string $temp_name) : boolean
lorem_chunk() : string
lorem_chunk_html() : \Tempcode
lorem_globalise(\Tempcode $middle, \?mixed $message= null, string $type= '', boolean $include_header_and_footer= false) : \Tempcode
| package | core_themeing |
|---|---|
| set | inform warn "" |
\TempcodeThe Tempcode to put into a nice frame
\?mixed'Additional' message (null: none)
stringThe type of special message
booleanWhether to include the header/footer/panels
\TempcodeStandalone pagelorem_paragraph() : string
lorem_paragraph_html() : \Tempcode
lorem_phrase() : string
lorem_phrase_html() : \Tempcode
lorem_sentence() : string
lorem_sentence_html() : \Tempcode
lorem_title() : \Tempcode
lorem_word() : string
lorem_word_2() : string
lorem_word_2_html() : \Tempcode
lorem_word_html() : \Tempcode
placeholder_array(integer $num_elements = 3) : array
| package | core_themeing |
|---|
integerNumber of array elements.
arrayPlace holder array.placeholder_blank() : string
placeholder_date() : string
placeholder_date_raw() : string
placeholder_emoticon_chooser() : \Tempcode
placeholder_emoticons() : array
placeholder_fields() : \Tempcode
placeholder_fields_as_divs() : \Tempcode
placeholder_filesize() : string
placeholder_form() : \Tempcode
placeholder_form_with_field(\ID_TEXT $field_name) : \Tempcode
| package | core_themeing |
|---|
\ID_TEXTThe field name wanted.
\TempcodePlace holder text.placeholder_id() : string
placeholder_image() : \Tempcode
placeholder_img_code(string $type = '') : string
| package | core_themeing |
|---|
stringThe theme image directory to find a code under
stringThe codeplaceholder_ip() : string
placeholder_javascript_code() : string
placeholder_link() : \Tempcode
placeholder_number() : string
placeholder_pagination() : \Tempcode
placeholder_table() : \Tempcode
placeholder_types() : string
placeholder_url() : \Tempcode
post_param_image(\ID_TEXT $name= 'image', \?PATH $upload_to= null, \?ID_TEXT $theme_image_type= null, boolean $required= true, boolean $is_edit= false, \?string $filename= null, \?string $thumb_url= null) : \?URLPATH
Used with form_input_upload_multi_source. Get the image URL from the POST data.
| package | core_themeing |
|---|
\ID_TEXTForm field prefix (input type suffixes will be added automatically)
\?PATHWhere to upload to (null: the correct place for $theme_image_type)
\?ID_TEXTThe directory of theme images to store under (null: do not support theme images)
booleanWhether an image is required
booleanWhether this is an edit operation
\?stringPass the filename back by reference (null: do not pass)
\?stringPass the thumbnail back by reference (null: do not pass & do not collect a thumbnail)
\?URLPATHThe URL (either to an independent upload, or the theme image, or a filedump URL) (null: leave alone, when doing an edit operation)post_param_theme_img_code(\ID_TEXT $type, boolean $required= false, \ID_TEXT $field_file= 'file', \ID_TEXT $field_choose= 'theme_img_code', \?object $db= null, \?PATH $upload_to= null) : \ID_TEXT
Note that post_param_image is a more comprehensive function, if you accept other types of inputs too.
| package | core_themeing |
|---|
\ID_TEXTThe type of theme image
booleanWhether a code is required
\ID_TEXTForm field for uploading
\ID_TEXTForm field for choosing
\?objectDatabase connection (null: site database)
\?PATHWhere to upload the theme images to (null: something sensible)
\ID_TEXTThe (possibly randomised) theme image coderegen_theme_images(\ID_TEXT $theme, \?array $langs= null, \?ID_TEXT $target_theme= null)
| package | core_themeing |
|---|
\ID_TEXTThe theme we're searching in.
\?arrayA map of languages (lang=>true) (null: find it in-function).
\?ID_TEXTThe theme we're storing in (null: same as $theme).
render_screen_preview(\ID_TEXT $template, \?ID_TEXT $hook, \ID_TEXT $function) : \Tempcode
| package | core_themeing |
|---|
\ID_TEXTThe template to be previewed (e.g. templates/DOWNLOAD_BOX.tpl)
\?ID_TEXTThe hook the preview is in (null: search)
\ID_TEXTThe name of the screen preview
\TempcodeThe previewed screenresize_rep_image(\URLPATH $rep_image) : \URLPATH
tidy_theme_img_code(\?ID_TEXT $new, \ID_TEXT $old, \ID_TEXT $table, \ID_TEXT $field, \?object $db = null)
| package | core_themeing |
|---|
\?ID_TEXTThe new theme image (null: no new one)
\ID_TEXTThe old theme image we might be tidying up
\ID_TEXTTable to check against
\ID_TEXTField in table
\?objectDatabase connection to check against (null: site database)