Tribe__Events__Customizer__Month_Week_View::set_defaults()
Set default values according to the selected stylesheet
Return
(void)
Source
File: src/Tribe/Customizer/Month_Week_View.php
public function set_defaults() {
// Retrieve the stylesheet option to set the proper defaults
$style_option = tribe_get_option( 'stylesheetOption', 'tribe' );
switch ( $style_option ) {
case 'full': // Full styles
$this->defaults = array(
'table_bg_color' => '#fff',
'highlight_color' => '#666',
);
break;
case 'skeleton': // Skeleton styles
default: // tribe styles is the default so add full and theme (tribe)
$this->defaults = array(
'table_bg_color' => '#f9f9f9',
'highlight_color' => '#21759b',
);
break;
}
}
Changelog
| Version | Description |
|---|---|
| 4.6.19 | Introduced. |