|
@@ 85-87 (lines=3) @@
|
| 82 |
|
$player = sprintf( "<iframe src='%s' width='%d' height='%d'", esc_url( $source ), $w, $h ); |
| 83 |
|
|
| 84 |
|
// check the frameborder |
| 85 |
|
if ( ! empty( $attr['fb'] ) || '0' === $attr['fb'] ) { |
| 86 |
|
$player .= " frameborder='" . intval( $attr['fb'] ) . "'"; |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
// check the margin width; if not empty, cast as int |
| 90 |
|
if ( ! empty( $attr['mw'] ) || '0' === $attr['mw'] ) { |
|
@@ 90-92 (lines=3) @@
|
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
// check the margin width; if not empty, cast as int |
| 90 |
|
if ( ! empty( $attr['mw'] ) || '0' === $attr['mw'] ) { |
| 91 |
|
$player .= " marginwidth='" . intval( $attr['mw'] ) . "'"; |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
// check the margin height, if not empty, cast as int |
| 95 |
|
if ( ! empty( $attr['mh'] ) || '0' === $attr['mh'] ) { |
|
@@ 95-97 (lines=3) @@
|
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
// check the margin height, if not empty, cast as int |
| 95 |
|
if ( ! empty( $attr['mh'] ) || '0' === $attr['mh'] ) { |
| 96 |
|
$player .= " marginheight='" . intval( $attr['mh'] ) . "'"; |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
if ( ! empty( $attr['style'] ) ) { |
| 100 |
|
$player .= " style='" . esc_attr( $attr['style'] ) . "'"; |