. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 54.36.91.62 / Your IP :
216.73.216.168 [
Web Server : Apache System : Linux webm002.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : eticmes ( 123698) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/eticmes/www/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Widgets/ |
Upload File : |
<?php
/**
* Handles registering all Assets for the Events V2 Widgets
*
* To remove a Assets:
* tribe( 'assets' )->remove( 'asset-name' );
*
* @since 5.5.0
*
* @package Tribe\Events\Views\V2\Widgets
*/
namespace Tribe\Events\Views\V2\Widgets;
use Tribe__Events__Main as Plugin;
use Tribe\Events\Views\V2\Assets as TEC_Assets;
use TEC\Common\Contracts\Service_Provider;
/**
* Register Assets related to Widgets.
*
* @since 5.5.0
*
* @package Tribe\Events\Views\V2\Widgets
*/
class Assets extends Service_Provider {
/**
* Binds and sets up implementations.
*
* @since 5.5.0
*/
public function register() {
$plugin = Plugin::instance();
tec_asset(
$plugin,
'tribe-events-widgets-v2-events-list-skeleton',
'widget-events-list-skeleton.css',
[
'tribe-common-skeleton-style'
],
'wp_print_footer_scripts',
[
'print' => true,
'priority' => 5,
'conditionals' => [
[ Widget_List::class, 'is_widget_in_use' ],
],
'groups' => [
Widget_List::get_css_group(),
],
]
);
tec_asset(
$plugin,
'tribe-events-widgets-v2-events-list-full',
'widget-events-list-full.css',
[
'tribe-common-full-style',
'tribe-events-widgets-v2-events-list-skeleton',
],
'wp_print_footer_scripts',
[
'print' => true,
'priority' => 5,
'conditionals' => [
'operator' => 'AND',
[ tribe( TEC_Assets::class ), 'should_enqueue_full_styles' ],
[ Widget_List::class, 'is_widget_in_use' ],
],
'groups' => [
Widget_List::get_css_group(),
],
]
);
}
}