|
@@ 186-188 (lines=3) @@
|
| 183 |
|
|
| 184 |
|
$html = $data['html']; |
| 185 |
|
|
| 186 |
|
if ( ! empty( $atts['w'] ) && is_numeric( $atts['w'] ) ) { |
| 187 |
|
$html = preg_replace( '/(width=\")\d+(\")/', '${1}' . $atts['w'] . '${2}', $html ); |
| 188 |
|
} |
| 189 |
|
|
| 190 |
|
if ( ! empty( $atts['h'] ) && is_numeric( $atts['h'] ) ) { |
| 191 |
|
$html = preg_replace( '/(height=\")\d+(\")/', '${1}' . $atts['h'] . '${2}', $html ); |
|
@@ 190-192 (lines=3) @@
|
| 187 |
|
$html = preg_replace( '/(width=\")\d+(\")/', '${1}' . $atts['w'] . '${2}', $html ); |
| 188 |
|
} |
| 189 |
|
|
| 190 |
|
if ( ! empty( $atts['h'] ) && is_numeric( $atts['h'] ) ) { |
| 191 |
|
$html = preg_replace( '/(height=\")\d+(\")/', '${1}' . $atts['h'] . '${2}', $html ); |
| 192 |
|
} |
| 193 |
|
|
| 194 |
|
return $html; |
| 195 |
|
} |