Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Aug 27, 2024
1 parent 8118c9e commit bf85952
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 0 additions & 3 deletions assets/js/src/views/media-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,6 @@ var MediaDetailsView = BrightcoveView.extend({
'" ' +
'embed="' +
embedStyle +
'" padding_top="' +
height +
units +
'" autoplay="' +
autoplay +
'" playsinline="' +
Expand Down
8 changes: 3 additions & 5 deletions includes/class-bc-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,6 @@ public static function get_video_player( $atts ) {
$width = sanitize_text_field( $atts['width'] );
$sizing = sanitize_text_field( $atts['sizing'] );
$min_width = sanitize_text_field( $atts['min_width'] );
$padding_top = sanitize_text_field( $atts['padding_top'] );
$autoplay = ( 'autoplay' === $atts['autoplay'] ) ? 'autoplay' : '';
$mute = ( 'muted' === $atts['mute'] ) ? 'muted' : '';
$embed = sanitize_text_field( $atts['embed'] );
Expand Down Expand Up @@ -970,7 +969,7 @@ public static function get_video_player( $atts ) {
else :
?>
<div style="display: block; position: relative; min-width: <?php echo esc_attr( $min_width ); ?>; max-width: <?php echo esc_attr( $width ); ?>;">
<div style="padding-top: <?php echo esc_attr( $padding_top ); ?>; ">
<div style="padding-top: <?php echo esc_attr( $height ); ?>; ">
<video-js
id="<?php echo esc_attr( $id ); ?>"
data-video-id="<?php echo esc_attr( $id ); ?>" data-account="<?php echo esc_attr( $account_id ); ?>"
Expand Down Expand Up @@ -1030,7 +1029,7 @@ public static function get_video_player( $atts ) {
?>

<div style="display: block; position: relative; min-width: <?php echo esc_attr( $min_width ); ?>; max-width: <?php echo esc_attr( $width ); ?>;">
<div style="padding-top: <?php echo esc_attr( $padding_top ); ?>; ">
<div style="padding-top: <?php echo esc_attr( $height ); ?>; ">
<iframe
src="<?php echo esc_url( $iframe_src ); ?>"
allowfullscreen
Expand Down Expand Up @@ -1079,7 +1078,6 @@ public static function get_playlist_player( $atts ) {
$sizing = sanitize_text_field( $atts['sizing'] );
$min_width = sanitize_text_field( $atts['min_width'] );
$max_width = sanitize_text_field( $atts['max_width'] );
$padding_top = sanitize_text_field( $atts['padding_top'] );
$autoplay = ( 'autoplay' === $atts['autoplay'] ) ? 'autoplay' : '';
$mute = ( 'muted' === $atts['mute'] ) ? 'muted' : '';
$embed = sanitize_text_field( $atts['embed'] );
Expand Down Expand Up @@ -1234,7 +1232,7 @@ class="video-js"
?>

<div style="display: block; position: relative; min-width: <?php echo esc_attr( $min_width ); ?>; max-width: <?php echo esc_attr( $max_width ); ?>;">
<div style="padding-top: <?php echo esc_attr( $padding_top ); ?>; ">
<div style="padding-top: <?php echo esc_attr( $height ); ?>; ">
<iframe
src="<?php echo esc_url( $iframesrc ); ?>"
allowfullscreen
Expand Down

0 comments on commit bf85952

Please sign in to comment.