LLMS_Twenty_Twenty::add_elements( array $elements )
Add LifterLMS Elments to the array of Twenty Twenty elements.
Description Description
This is used to automatically generate inline CSS via the Twenty Twenty Theme.
Parameters Parameters
- $elements
-
(array) (Required) Multidimensional array of CSS selectors.
Return Return
(array)
Source Source
File: includes/theme-support/class-llms-twenty-twenty.php
public static function add_elements( $elements ) {
// Accent Background.
$elements['content']['accent']['background-color'] = array_merge(
$elements['content']['accent']['background-color'],
self::add_elements_content_accent_background()
);
// Accent Border Color.
$elements['content']['accent']['border-color'] = array_merge(
$elements['content']['accent']['border-color'],
self::add_elements_content_accent_border()
);
// Accent Color.
$elements['content']['accent']['color'] = array_merge(
$elements['content']['accent']['color'],
self::add_elements_content_accent_color()
);
// Background Text Color.
$elements['content']['background']['color'] = array_merge(
$elements['content']['background']['color'],
self::add_elements_content_background_color()
);
// Background Background Color.
$elements['content']['background']['background-color'] = array_merge(
$elements['content']['background']['background-color'],
array( '.llms-checkout' )
);
// Text Color.
$elements['content']['text']['color'] = array_merge(
$elements['content']['text']['color'],
array(
'.llms-notice.llms-debug',
'.llms-notice.llms-debug a',
)
);
return $elements;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.37.2 | Updated to use background-color property instead of background shorthand. |
| 3.37.0 | Introduced. |