LLMS_Emails::get_css( string $rule = '', boolean $echo = true )

Get css rules specific to the the email templates


Description Description


Parameters Parameters

$rule

(string) (Optional) name of the css rule

Default value: ''

$echo

(boolean) (Optional) if true, echo the definition

Default value: true


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class.llms.emails.php

	public function get_css( $rule = '', $echo = true ) {

		$css = apply_filters( 'llms_email_css', array(
			'background-color' => '#f6f6f6',
			'border-radius' => '3px',
			'button-background-color' => '#2295ff',
			'button-font-color' => '#ffffff',
			'divider-color' => '#cecece',
			'font-color' => '#222222',
			'font-family' => 'sans-serif',
			'font-size' => '15px',
			'font-size-small' => '13px',
			'heading-background-color' => '#2295ff',
			'heading-font-color' => '#ffffff',
			'main-color' => '#2295ff',
			'max-width' => '580px',
		) );

		if ( isset( $css[ $rule ] ) ) {

			if ( $echo ) {
				echo $css[ $rule ];
			}

			return $css[ $rule ];

		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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