Function __global->create_selection_list_themes
Definitions
sources/themes2.php
- Get a UI list for choosing a theme.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $theme | ?ID_TEXT | No | No | Null | N/A | N/A | The theme to select by default (null: no specific default) |
| $include_rely | boolean | No | No | True | N/A | N/A | Whether to include the 'rely on forums' entry |
| $show_everything | boolean | No | No | False | N/A | N/A | Whether to forget about permissions for this list, and also show additional detail |
| $default_message_string | ID_TEXT | No | No | RELY_FORUMS | N/A | N/A | The language string to use for the default answer |
| $administrative_only | boolean | No | No | False | N/A | N/A | Whether to only show administrative themes |
| $themewizard_only | boolean | No | No | False | N/A | N/A | Whether to only show Theme Wizard supporting themes |
Returns
- The list
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a UI list for choosing a theme.
*
* @param ?ID_TEXT $theme The theme to select by default (null: no specific default)
* @param boolean $include_rely Whether to include the 'rely on forums' entry
* @param boolean $show_everything Whether to forget about permissions for this list, and also show additional detail
* @param ID_TEXT $default_message_string The language string to use for the default answer
* @param boolean $administrative_only Whether to only show administrative themes
* @param boolean $themewizard_only Whether to only show Theme Wizard supporting themes
* @return Tempcode The list
*/
function create_selection_list_themes(?string $theme = null, bool $include_rely = true, bool $show_everything = false, string $default_message_string = 'RELY_FORUMS', bool $administrative_only = false, bool $themewizard_only = false) : object
* Get a UI list for choosing a theme.
*
* @param ?ID_TEXT $theme The theme to select by default (null: no specific default)
* @param boolean $include_rely Whether to include the 'rely on forums' entry
* @param boolean $show_everything Whether to forget about permissions for this list, and also show additional detail
* @param ID_TEXT $default_message_string The language string to use for the default answer
* @param boolean $administrative_only Whether to only show administrative themes
* @param boolean $themewizard_only Whether to only show Theme Wizard supporting themes
* @return Tempcode The list
*/
function create_selection_list_themes(?string $theme = null, bool $include_rely = true, bool $show_everything = false, string $default_message_string = 'RELY_FORUMS', bool $administrative_only = false, bool $themewizard_only = false) : object
