vimeotheque_the_video_likes( string $before = '<span class="video-likes">', string $after = '</span>' )
Display the number of video likes.
Description
Templating function that will display the total likes for the current video in the loop.
Parameters
- $before
-
(Optional) Text to display before the likes number.
Default value: '<span class="video-likes">'
- $after
-
(Optional) Text to display after the likes number.
Default value: '</span>'
Return
(string)
Source
File: includes/libs/templates/post-template.php
function vimeotheque_the_video_likes( $before = '<span class="video-likes">', $after = '</span>' ){
$post = \Vimeotheque\Helper::get_video_post();
$output = $before . number_format_i18n( $post->stats['likes'] ) . $after;
echo $output;
return $output;
}
