This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Player::get_css_classes()

Returns additional CSS classes


Return

(string)


Source

File: includes/libs/player/player.class.php

	private function get_css_classes(){

		$default = [
			$this->options['video_align']
		];

		if( $this->options['lazy_load'] ){
			$default[] = 'lazy-load';
		}

		$ratio = isset( $this->post->size['ratio'] ) ? (float) $this->post->size['ratio'] : 1;
		if( $ratio > 1 ){
			$default[] = 'landscape';
		}else{
			$default[] = 'portrait';
		}

		if( isset( $this->manual_options['class'] ) ){
			$default[] = esc_attr( $this->manual_options['class'] );
		}

		/**
		 * Generate additional CSS classes on Vimeotheque embed player container.
		 *
		 * @param array $classes    CSS classes to be added.
		 * @param \WP_Post $post    The post object reference.
		 */
		$classes = apply_filters(
			'vimeotheque\player\css_class',
			$default,
			$this->post->get_post()
		);

		return implode( ' ', (array) $classes );
	}

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!