Tribe__Events__Customizer__Text::get_css_template( string $template )
Grab the CSS rules template.
Contents
Parameters
- $template
-
(string) (Required)
Return
(string) $template
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;
}
Changelog
| Version | Description |
|---|---|
| 5.0.1 | Introduced. |