Function __global->themewizard_find_css_sheets

Definitions

sources/themewizard.php

  • Find CSS files of a theme.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

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
$seed ?string No No Null N/A N/A Seed colour to use (null: don't compare to source theme's seed)
$dark ?boolean No No Null N/A N/A Whether it will be a dark theme (null: don't compare to source theme's seed)
$in_scope_only boolean No No True N/A N/A Only return if in the scope of the Theme Wizard

Returns

  • Map of CSS files from filename to path
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find CSS files of a theme.
 *
 * @param  ID_TEXT $source_theme The theme it's being generated from
 * @param  ?string $seed Seed colour to use (null: don't compare to source theme's seed)
 * @param  ?boolean $dark Whether it will be a dark theme (null: don't compare to source theme's seed)
 * @param  boolean $in_scope_only Only return if in the scope of the Theme Wizard
 * @return array Map of CSS files from filename to path
 */

function themewizard_find_css_sheets(string $source_theme, ?string $seed = null, ?bool $dark = null, bool $in_scope_only = true) : array