@@ 222-226 (lines=5) @@ | ||
219 | // Use a white background if nothing specified |
|
220 | if ( preg_match( '/https?\:\/\/[^\'"\s]*/', $atts['bgimg'], $matches ) ) { |
|
221 | $style .= ' background-image: url("' . esc_url( $matches[0] ) . '");'; |
|
222 | } else if ( '' != trim( $atts['bgcolor'] ) ) { |
|
223 | $style .= ' background-color: ' . esc_attr( $atts['bgcolor'] ) . ';'; |
|
224 | } else { |
|
225 | $style .= ' background-color: #fff;'; |
|
226 | } |
|
227 | ||
228 | // Not supported message style is inlined incase the style sheet doesn't get included |
|
229 | $out = "<section class='presentation-wrapper'>"; |
|
@@ 347-351 (lines=5) @@ | ||
344 | // Use a white background if nothing specified |
|
345 | if ( preg_match( '/https?\:\/\/[^\'"\s]*/', $atts['bgimg'], $matches ) ) { |
|
346 | $style = 'background-image: url("' . esc_url( $matches[0] ) . '");'; |
|
347 | } else if ( '' != trim( $atts['bgcolor'] ) ) { |
|
348 | $style = 'background-color: ' . esc_attr( $atts['bgcolor'] ) . ';'; |
|
349 | } else { |
|
350 | $style = ''; |
|
351 | } |
|
352 | ||
353 | // Put everything together and let jmpress do the magic! |
|
354 | $out = sprintf( |