Function __global->css_tempcode

Definitions

sources/web_resources.php

  • Get Tempcode to tie in (to the HTML, in <head>) all the CSS files that have been required.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$inline boolean No No False N/A N/A Force inline CSS
$only_global boolean No No False N/A N/A Only do global CSS
$context ?string No No Null N/A N/A HTML context for which we filter (minimise) any CSS we spit out as inline (null: none)
$theme ?ID_TEXT No No Null N/A N/A The name of the theme (null: current theme)

Returns

  • The Tempcode to tie in the CSS files
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get Tempcode to tie in (to the HTML, in <head>) all the CSS files that have been required.
 *
 * @param  boolean $inline Force inline CSS
 * @param  boolean $only_global Only do global CSS
 * @param  ?string $context HTML context for which we filter (minimise) any CSS we spit out as inline (null: none)
 * @param  ?ID_TEXT $theme The name of the theme (null: current theme)
 * @return Tempcode The Tempcode to tie in the CSS files
 */

function css_tempcode(bool $inline = false, bool $only_global = false, ?string $context = null, ?string $theme = null) : object