[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

/wp-includes/ -> class.wp-styles.php (summary)

Dependencies API: WP_Styles class

File Size: 458 lines (11 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Styles:: (9 methods):
  __construct()
  do_item()
  add_inline_style()
  print_inline_style()
  all_deps()
  _css_href()
  in_default_dir()
  do_footer_items()
  reset()


Class: WP_Styles  - X-Ref

Core class used to register styles.

__construct()   X-Ref
Constructor.


do_item( $handle )   X-Ref
No description

add_inline_style( $handle, $code )   X-Ref
Adds extra CSS styles to a registered stylesheet.

param: string $handle The style's registered handle.
param: string $code   String containing the CSS styles to be added.
return: bool True on success, false on failure.

print_inline_style( $handle, $echo = true )   X-Ref
Prints extra CSS styles of a registered stylesheet.

param: string $handle The style's registered handle.
param: bool   $echo   Optional. Whether to echo the inline style instead of just returning it.
return: string|bool False if no data exists, inline styles if `$echo` is true, true otherwise.

all_deps( $handles, $recursion = false, $group = false )   X-Ref
Determines style dependencies.

param: mixed     $handles   Item handle and argument (string) or item handles and arguments (array of strings).
param: bool      $recursion Internal flag that function is calling itself.
param: int|false $group     Group level: (int) level, (false) no groups.
return: bool True on success, false on failure.

_css_href( $src, $ver, $handle )   X-Ref
Generates an enqueued style's fully-qualified URL.

param: string $src The source of the enqueued style.
param: string $ver The version of the enqueued style.
param: string $handle The style's registered handle.
return: string Style's fully-qualified URL.

in_default_dir( $src )   X-Ref
Whether a handle's source is in a default directory.

param: string $src The source of the enqueued style.
return: bool True if found, false if not.

do_footer_items()   X-Ref
Processes items and dependencies for the footer group.

HTML 5 allows styles in the body, grab late enqueued items and output them in the footer.

return: array Handles of items that have been processed.

reset()   X-Ref
Resets class properties.




Generated: Tue Oct 22 08:20:01 2019 Cross-referenced by PHPXref 0.7