diff options
-rw-r--r-- | vinotjs/vinotjs.php | 19 |
1 files changed, 7 insertions, 12 deletions
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 = "<track" . $kind . $subt . $srclang . $label . $default . "/>\n\t\t"; + $track = "<track kind='captions'" . $src . $lang . $label . $default . "/>\n\t\t"; return $track; } |