Tribe__Events__Customizer__Global_Elements::get_css_template( $template )
Grab the CSS rules template
Return
(string)
Source
File: src/Tribe/Customizer/Global_Elements.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: <%= global_elements.link_color %>;
}
';
}
if ( $customizer->has_option( $this->ID, 'filterbar_color' ) ) {
$template .= '
#tribe-bar-form {
background-color: <%= global_elements.filterbar_color %>;
}
#tribe-bar-views .tribe-bar-views-inner {
background-color: <%= global_elements.filterbar_color_darker %>;
}
#tribe-bar-collapse-toggle {
background-color: transparent;
}
#tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option a {
background-color: <%= global_elements.filterbar_color_darker %>;
}
#tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option.tribe-bar-active a:hover {
background-color: transparent;
}
#tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option a:hover {
background-color: <%= global_elements.filterbar_color %>;
}
#tribe-bar-form .tribe-bar-submit input[type=submit] {
background-color: <%= global_elements.filterbar_color_darkest %>;
}
#tribe-bar-form input[type="text"] {
border-bottom-color: <%= global_elements.filterbar_color_darkest %>;
}
';
}
if ( $customizer->has_option( $this->ID, 'button_color' ) ) {
$template .= '
#tribe_events_filters_wrapper input[type=submit],
.tribe-events-button,
#tribe-events .tribe-events-button,
.tribe-events-button.tribe-inactive,
#tribe-events .tribe-events-button:hover,
.tribe-events-button:hover,
.tribe-events-button.tribe-active:hover {
background-color: <%= global_elements.button_color %>;
}
';
}
return $template;
}