vimeotheque_the_video_duration( string $before = '<span class="video-duration">', string $after = '</span>' )
Display the video duration.
Description
Templating function that will display the video duration for the current video in the loop.
Parameters
- $before
-
(Optional) Text to display before the duration.
Default value: '<span class="video-duration">'
- $after
-
(Optional) Text to display after the duration.
Default value: '</span>'
Return
(void)
Source
File: includes/libs/templates/post-template.php
31 | function vimeotheque_the_video_duration( $before = '<span class="video-duration">' , $after = '</span>' ){ |
32 | $duration = vimeotheque_get_the_video_duration(); |
33 |
34 | if ( $duration ){ |
35 | echo $before . $duration . $after ; |
36 | } |
37 | } |