9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10 gravityview()->log->error(
'{file} template loaded without context', array(
'file' => __FILE__ ) );
20 $no_video_description = __(
'Your browser does not support the video tag.',
'gk-gravityview' );
21 printf(
'<video poster="%s" width="320" height="240" controls><source src="%s" type="video/mp4">%s</video>', esc_url(
$value->thumbnail ), esc_url(
$value->video ), esc_html( $no_video_description ) );
gravityview()
The main GravityView wrapper function.
if(! isset( $gravityview)||empty( $gravityview->template)) $value
The default pipe (video) field output template.