Tribe__Events__Customizer__Month_Week_View::get_css_template( $template )
Grab the CSS rules template
Return
(string)
Source
File: src/Tribe/Customizer/Month_Week_View.php
public function get_css_template( $template ) {
$customizer = Tribe__Customizer::instance();
if ( $customizer->has_option( $this->ID, 'table_bg_color' ) ) {
$template .= '
#tribe-events .tribe-events-calendar td.tribe-events-othermonth,
#tribe-events .tribe-grid-allday,
#tribe-events .tribe-events-calendar td:hover {
background-color: <%= month_week_view.cell_inactive_bg_color %>;
}
#tribe-events .tribe-events-calendar td,
#tribe-events .tribe-week-grid-block div,
#tribe-events .tribe-events-grid,
#tribe-events .tribe-grid-allday,
#tribe-events .tribe-events-grid .tribe-scroller,
#tribe-events .tribe-events-grid .tribe-grid-body .column,
#tribe-events .tribe-events-grid .tribe-grid-allday .column {
border-color: <%= month_week_view.border_dark_color %>;
}
.events-archive.events-gridview #tribe-events-content table .type-tribe_events,
.tribe-events-shortcode .tribe-events-month table .type-tribe_events {
border-color: <%= month_week_view.border_light_color %>;
}
.tribe-events-calendar td.tribe-events-past div[id*="tribe-events-daynum-"],
.tribe-events-calendar td.tribe-events-past div[id*="tribe-events-daynum-"] > a {
background-color: <%= month_week_view.cell_inactive_header_bg_color %>;
}
.tribe-events-calendar div[id*="tribe-events-daynum-"],
.tribe-events-calendar div[id*="tribe-events-daynum-"] a {
background-color: <%= month_week_view.cell_header_bg_color %>;
}
.tribe-events-calendar thead th,
.tribe-events-grid .tribe-grid-header .tribe-grid-content-wrap .column,
.tribe-grid-header {
background-color: <%= month_week_view.table_header_bg_color %>;
border-left-color: <%= month_week_view.table_header_bg_color %>;
border-right-color: <%= month_week_view.table_header_bg_color %>;
}
';
}
if ( $customizer->has_option( $this->ID, 'highlight_color' ) ) {
$template .= '
#tribe-events td.tribe-events-present div[id*="tribe-events-daynum-"],
#tribe-events td.tribe-events-present div[id*="tribe-events-daynum-"] > a {
background-color: <%= month_week_view.highlight_color %>;
color: #fff;
}
#tribe-events .tribe-events-grid .tribe-grid-header div.tribe-week-today {
background-color: <%= month_week_view.highlight_color %>;
}
.tribe-grid-allday .tribe-events-week-allday-single,
.tribe-grid-body .tribe-events-week-hourly-single,
.tribe-grid-allday .tribe-events-week-allday-single:hover,
.tribe-grid-body .tribe-events-week-hourly-single:hover {
background-color: <%= month_week_view.highlight_color %>;
background-color: <%= month_week_view.highlight_color_rgba %>;
border-color: <%= month_week_view.highlight_border_color %>
}
';
}
return $template;
}