Tribe__Events__Pro__Assets::get_widget_style_file()
Due to how we define which style we use based on an Option on the Administration we need to determine this file.
Return
(string)
Source
File: src/Tribe/Assets.php
public function get_widget_style_file() {
$name = tribe_get_option( 'stylesheetOption', 'tribe' );
$stylesheets = array(
'tribe' => 'widget-theme.css',
'full' => 'widget-full.css',
'skeleton' => 'widget-skeleton.css',
) ;
// By default we go with `tribe`
$file = $stylesheets['tribe'];
// if we have one we use it
if ( isset( $stylesheets[ $name ] ) ) {
$file = $stylesheets[ $name ];
}
/**
* Allows filtering of the Stylesheet file for Events Calendar Pro Widgets
*
* @deprecated 4.4.33
*
* @param string $file Which file we are loading
* @param string $name Option from the DB of style we are using
*/
return apply_filters( 'tribe_events_pro_widget_calendar_stylesheet_url', $file, $name );
}
Changelog
| Version | Description |
|---|---|
| 4.4.33 | Introduced. |