Advertisement
Guest User

Untitled

a guest
Jul 24th, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. foreach( $atts as $attr => $value ) {
  2.         if ( $attr != 'same_height_as' ) { // remove some attributes
  3.             if($attr="src"){
  4.                 $value = str_replace(array('&','&'),'&',$value);
  5.             }
  6.             if ( $value != '' ) { // adding all attributes
  7.                 $html .= ' ' . $attr . '="' . $value . '"';
  8.             } else { // adding empty attributes
  9.                 $html .= ' ' . $attr;
  10.             }
  11.         }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement