Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach( $atts as $attr => $value ) {
- if ( $attr != 'same_height_as' ) { // remove some attributes
- if($attr="src"){
- $value = str_replace(array('&','&'),'&',$value);
- }
- if ( $value != '' ) { // adding all attributes
- $html .= ' ' . $attr . '="' . $value . '"';
- } else { // adding empty attributes
- $html .= ' ' . $attr;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement