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_TEXT
The theme the theme image is in
\LANGUAGE_NAME
The language the theme image is for
\SHORT_TEXT
The theme image ID
\URLPATH
The URL to the theme image
boolean
Whether to allow failure without bombing out
actual_copy_theme(\ID_TEXT $theme, \ID_TEXT $to)
package | core_themeing |
---|
\ID_TEXT
The original theme name
\ID_TEXT
The 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_TEXT
The theme image ID
\?ID_TEXT
The theme to delete in (null: all themes)
\?LANGUAGE_NAME
The 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_TEXT
The current theme image ID
\ID_TEXT
The theme the theme image is in
\LANGUAGE_NAME
The language the theme image is for (blank: all languages)
\SHORT_TEXT
The new theme image ID
\URLPATH
The URL to the theme image
boolean
Whether to avoid cleanup, etc
actual_rename_theme(\ID_TEXT $theme, \ID_TEXT $to)
package | core_themeing |
---|
\ID_TEXT
The original theme name
\ID_TEXT
The 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 |
---|
string
The currently selected image path (blank for none)
\URLPATH
The base-URL to where we are searching for images
\PATH
The base-path to where we are searching for images
\Tempcode
The 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_TEXT
The currently selected image ID (null: none selected)
\?string
An SQL where clause (including the WHERE), that filters the query somehow (null: none)
boolean
Whether to show IDs as the list entry captions, rather than paths
boolean
Whether to include images not yet used (i.e not in theme_images map yet)
string
Only 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)
\Tempcode
Tempcode 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_TEXT
The theme to select by default (null: no specific default)
boolean
Whether to skip the 'rely on forums' entry
boolean
Whether to forget about permissions for this list
\ID_TEXT
The language string to use for the default answer
\Tempcode
The listcss_preg(array $matches) : string
package | core_themeing |
---|
array
List of found regular expression matches (only index 0 relevant).
string
Replacement.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_TEXT
The codename of the template being loaded
\?array
A map of parameters for the template (key to value) (null: no parameters)
\?LANGUAGE_NAME
The language to load the template in (templates can embed language references) (null: users own language)
boolean
Whether to not produce a stack dump if the template is missing
\?ID_TEXT
Alternate template to use if the primary one does not exist (null: none)
string
File type suffix of template file (e.g. .tpl)
string
Subdirectory type to look in
\Tempcode
The 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 |
---|
boolean
Whether to gather full details for each theme
array
A 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_TEXT
The theme
string
The subdirectory to search under
array
A map (lang=>true) of the languages in the system, so the codes may be filtered out of the image codes in our result list
array
A map, theme-image-code=>URLget_all_image_codes(\PATH $base_path, \PATH $search_under, boolean $recurse = true
) : array
package | core_themeing |
---|
\PATH
The base-path to where we are searching for images
\PATH
The 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
boolean
Whether to search recursively from the given directory
array
A 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_TEXT
The type of image (e.g. 'cns_emoticons')
boolean
Whether to search recursively; i.e. in subdirectories of the type subdirectory
\?object
The database connection to work over (null: site db)
\?ID_TEXT
The theme to search in, in addition to the default theme (null: current theme)
boolean
Whether to only return directories (advanced option, rarely used)
boolean
Whether to only return from the database (advanced option, rarely used)
\?array
The list of files/directories to skip (null: none)
array
The list of image IDsget_image_paths(\URLPATH $base_url, \PATH $base_path) : array
package | core_themeing |
---|
\URLPATH
The base-URL to where we are searching for images
\PATH
The base-path to where we are searching for images
array
path->url map of found imagesget_text_templates() : array
is_full_screen_template(\?string $temp_name= null
, \?Tempcode $tempcode= null
) : boolean
package | core_themeing |
---|
\?string
Name of the template (null: do not use as criteria, use other as criteria, which must iself be non-NULL)
\?Tempcode
The instantiated template (null: do not use as criteria, use other as criteria, which must iself be non-NULL)
boolean
Whether 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 "" |
\Tempcode
The Tempcode to put into a nice frame
\?mixed
'Additional' message (null: none)
string
The type of special message
boolean
Whether to include the header/footer/panels
\Tempcode
Standalone 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 |
---|
integer
Number of array elements.
array
Place 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_TEXT
The field name wanted.
\Tempcode
Place holder text.placeholder_id() : string
placeholder_image() : \Tempcode
placeholder_img_code(string $type = ''
) : string
package | core_themeing |
---|
string
The theme image directory to find a code under
string
The 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_TEXT
Form field prefix (input type suffixes will be added automatically)
\?PATH
Where to upload to (null: the correct place for $theme_image_type)
\?ID_TEXT
The directory of theme images to store under (null: do not support theme images)
boolean
Whether an image is required
boolean
Whether this is an edit operation
\?string
Pass the filename back by reference (null: do not pass)
\?string
Pass the thumbnail back by reference (null: do not pass & do not collect a thumbnail)
\?URLPATH
The 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_TEXT
The type of theme image
boolean
Whether a code is required
\ID_TEXT
Form field for uploading
\ID_TEXT
Form field for choosing
\?object
Database connection (null: site database)
\?PATH
Where to upload the theme images to (null: something sensible)
\ID_TEXT
The (possibly randomised) theme image coderegen_theme_images(\ID_TEXT $theme, \?array $langs= null
, \?ID_TEXT $target_theme= null
)
package | core_themeing |
---|
\ID_TEXT
The theme we're searching in.
\?array
A map of languages (lang=>true) (null: find it in-function).
\?ID_TEXT
The 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_TEXT
The template to be previewed (e.g. templates/DOWNLOAD_BOX.tpl)
\?ID_TEXT
The hook the preview is in (null: search)
\ID_TEXT
The name of the screen preview
\Tempcode
The 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_TEXT
The new theme image (null: no new one)
\ID_TEXT
The old theme image we might be tidying up
\ID_TEXT
Table to check against
\ID_TEXT
Field in table
\?object
Database connection to check against (null: site database)