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.


Top ↑

Parameters Parameters

$elements

(array) (Required) Multidimensional array of CSS selectors.


Top ↑

Return Return

(array)


Top ↑

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;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.37.2 Updated to use background-color property instead of background shorthand.
3.37.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.