', ']]>', $content); //$content = strip_tags($content, '

'); return $content; } function find_movies($c) { $reg_exUrl = "/(http)\:\/\/[youtu.be]+\.[a-zA-Z]{2,3}(\/\S*)?/"; $movies = Array(); if(preg_match_all($reg_exUrl, $c, $url)) { foreach($url[2] as $m) { $movies[] .= str_replace('/','',$m); } return $movies; } } function find_intro($c) { $c = explode('', $c); $c = $c[0]; return trim_content($c); } function find_images($c) { $reg_exUrl = "/]+>/i"; $images = Array(); if(preg_match_all($reg_exUrl, $c, $result)) { foreach($result as $i => $r) { foreach($r as $i) { preg_match_all( '/src="([^"]*)"/i', $i, $name ); if(!strpos($name[1][0] , 'trans.gif')) { $images[] .= $name[1][0]; } } } } return $images; } function trim_content($c) { $c = apply_filters('the_content', $c); $c = str_replace(']]>', ']]>', $c); // STRIP IMAGES $reg_exUrl = "/]+>/i"; if(preg_match_all($reg_exUrl, $c, $url)) { foreach($url[0] as $m) { $c = str_replace($m,'',$c); } } return $c; } register_sidebar( array( 'name' => 'Footer', 'id' => 'footer' ) ); ?> Liefdesliedje

post_content); echo '
'; foreach($images as $img) { $ie_style = 'filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''.$img.'\',sizingMethod=\'scale\');-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''.$img.'\',sizingMethod=\'scale\')";'; echo '
'; } echo '
'; ?>

Liefdesliedje

Kitty & Maite