File: wp-includes/class-wp-duotone.php
-
Fixes the issue with our generated class name not being added to the block’s outer container in classic themes due to gutenberg_restore_image_outer_container from layout block supports.
-
Appends the used block duotone filter declarations to the inline block supports CSS.
-
Appends the used global style duotone filter presets (CSS custom properties) to the inline global styles CSS.
-
Outputs all necessary SVG for duotone filters, CSS for classic themes.
-
Adds the duotone SVGs and CSS custom properties to the editor settings.
-
Migrates the experimental duotone support flag to the stabilized location.
-
Gets the CSS filter property value from a preset.
-
Render out the duotone CSS styles and SVG.
-
Get the SVGs for the duotone filters.
-
Get the CSS for global styles.
-
Enqueue a block CSS declaration for the page.
-
Enqueue custom filter assets for the page.
-
Enqueue preset assets for the page.
-
Registers the style and colors block attributes for block types that support it.
-
Get the CSS selector for a block type.
-
Scrape all possible duotone presets from global and theme styles and store them in self::$global_styles_presets.
-
Scrape all block names from global styles and store in self::$global_styles_block_names.
-
Gets the SVG for the duotone filter definition from a preset.
-
Takes the inline CSS duotone variable from a block and return the slug.
-
methodWP_Duotone::is_preset()
Checks if we have a valid duotone preset.
-
Gets the CSS variable name for a duotone preset.
-
Get the ID of the duotone filter.
-
Get the CSS variable for a duotone preset.
-
Get the URL for a duotone filter.
-
Gets the SVG for the duotone filter definition.
-
Returns the prefixed id for the duotone filter for use as a CSS id.
-
Parses a valid HSL[A] CSS color function/string.
-
Tries to convert an incoming string into RGBA values.
-
Parses any valid Hex3, Hex4, Hex6 or Hex8 string and converts it to an RGBA object.
-
Clamps an array of RGBA values.