Frontend_Scripts::enqueue_scripts()

Enqueue scripts if needed.


Return

(void)


Source

File: includes/libs/templates/frontend-scripts.class.php

	public function enqueue_scripts(){

		if( \Vimeotheque\Helper::is_video() ){
			if( current_theme_supports( 'vimeotheque-next-video-card' ) ){
				wp_enqueue_script(
					'vimeotheque-end-video-card',
					\Vimeotheque\Helper::get_url() . 'assets/front-end/js/load-next-video.js',
					['jquery','cvm-video-player'],
					\Vimeotheque\Helper::get_plugin_version(),
					true
				);
			}
		}

	}

Start your video site now!

Manage and coordinate your Vimeo channels, albums or videos with your WordPress website. Perfect fit for membership, portfolio, online courses or any type of video collection.

Get Vimeotheque PRO!