Tribe__Events__Customizer__Text::get_css_template( string $template )

Grab the CSS rules template.


Parameters #

$template

(string) (Required)


Top ↑

Return #

(string) $template


Top ↑

Source #

File: src/Tribe/Customizer/Text.php

	public function get_css_template( $template ) {
		$customizer = Tribe__Customizer::instance();

		if ( $customizer->has_option( $this->ID, 'link_color' ) ) {
			$template .= '
				#tribe-events-content a,
				.tribe-events-event-meta a {
					color: <%= text.link_color %>;
				}
			';

			$template .= '
				.tribe-common .tribe-common-b1 a:not(.tribe-events-c-small-cta__link):not(.tribe-events-c-ical__link),
				.tribe-common .tribe-common-b2 a:not(.tribe-events-c-small-cta__link):not(.tribe-events-c-ical__link),
				.tribe-common .tribe-common-b3 a:not(.tribe-events-c-small-cta__link):not(.tribe-events-c-ical__link) {
					color: <%= text.link_color %>;
				}
			';
		}

		return $template;
	}

Top ↑

Changelog #

Changelog
Version Description
5.0.1 Introduced.