Function __global->check_themewizard_theme

Definitions

sources/themewizard.php

  • Check the given details for making a Theme Wizard theme are valid.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$source_theme ID_TEXT No No required parameter N/A N/A The theme it's being generated from
$algorithm ID_TEXT No No required parameter equations hsv N/A The algorithm to use
$seed string No No required parameter N/A N/A Seed colour to use
$dark boolean No No required parameter N/A N/A Whether it will be a dark theme
$back_url ?Tempcode No No Null N/A N/A The back URL to change settings (null: do error screen instead)

Returns

  • Output (null: none)
  • Type: ?Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Check the given details for making a Theme Wizard theme are valid.
 *
 * @param  ID_TEXT $source_theme The theme it's being generated from
 * @param  ID_TEXT $algorithm The algorithm to use
 * @set equations hsv
 * @param  string $seed Seed colour to use
 * @param  boolean $dark Whether it will be a dark theme
 * @param  ?Tempcode $back_url The back URL to change settings (null: do error screen instead)
 * @return ?Tempcode Output (null: none)
 */

function check_themewizard_theme(string $source_theme, string $algorithm, string $seed, bool $dark, ?object $back_url = null) : ?object