Helper::image_preloader( string $size = 'small', string $class = "cvm-preload", bool $echo = true )

Output an image preloader


Parameters

$size

(Optional)

Default value: 'small'

$class

(Optional)

Default value: "cvm-preload"

$echo

(Optional)

Default value: true


Return

(string|void)


Source

File: includes/libs/themes/helper.class.php

	public static function image_preloader( $size = 'small', $class="cvm-preload", $echo = true ){

		$img_url = self::get_thumbnail_url( $size );

		$blank = VIMEOTHEQUE_URL . '/assets/front-end/images/blank.png';

		if( $img_url ){
			$output = sprintf(
				'<img data-src="%s" alt="" src="%s" class="%s" />',
				$img_url,
				$blank,
				$class
			);
		}else{
			$output = '';
		}

		if( $echo ){
			echo $output;
		}

		return $output;
	}

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!