From c3c3273bba1eb44e3283ce3c7d40fc61016ab217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Eduardo?= Date: Thu, 14 Sep 2017 13:57:20 -0500 Subject: captions --- vinotjs/vinotjs.php | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'vinotjs') diff --git a/vinotjs/vinotjs.php b/vinotjs/vinotjs.php index 8e1337e..98b4a2b 100644 --- a/vinotjs/vinotjs.php +++ b/vinotjs/vinotjs.php @@ -128,23 +128,18 @@ EOT; /*Adding subtitles using... [track]*/ function track_vinotjs($atts, $content=null){ extract(shortcode_atts(array( - 'kind' => '', - 'subt' => '', - 'srclang' => '', + 'src' => '', + 'lang' => '', 'label' => '', 'default' => '', ), $atts)); - if($kind){ - $kind = " kind='$kind'"; + if($src){ + $src = " src='$src'"; } - if($subt){ - $subt = " src='$subt'"; - } - - if($srclang){ - $srclang = " srclang='$srclang'"; + if($lang){ + $lang = " srclang='$lang'"; } if($label){ @@ -158,7 +153,7 @@ function track_vinotjs($atts, $content=null){ $default = ""; } - $track = "\n\t\t"; + $track = "\n\t\t"; return $track; } -- cgit v1.2.3