* * * *
Ghinzu - Cold Love (Mirror Mirror)
Uploaded by GhinzuTV. - Watch more music videos, in HD! * * Code as of 01.01.11: *
Sexy Surprise
Uploaded by GilLavie. - Find more steamy, sexy videos. * movie param enforces anti-xss protection * * Scroll down for the new '; $after = ''; if ( array_key_exists( 'video', $atts ) && $video = preg_replace( '/[^-a-z0-9_]/i', '', $atts['video'] ) && array_key_exists( 'title', $atts ) && $title = wp_kses( $atts['title'], array() ) ) $after .= '
' . $title . ''; if ( array_key_exists( 'user', $atts ) && $user = preg_replace( '/[^-a-z0-9_]/i', '', $atts['user'] ) ) $after .= '
Uploaded by ' . $user . ''; } return $output . $after; } add_shortcode( 'dailymotion', 'dailymotion_shortcode' ); /** * Dailymotion Embed Reversal (with new iframe code as of 17.09.2014) * * Converts a generic HTML embed code from Dailymotion into an * oEmbeddable URL. */ function jetpack_dailymotion_embed_reversal( $content ) { if ( false === stripos( $content, 'dailymotion.com/embed' ) ) return $content; /* Sample embed code as of Sep 17th 2014:
Dog with legs in casts learns how to enter the... by videobash */ $regexes = array(); // I'm Konstantin and I love regex. $regexes[] = '#]+?src=" (?:https?:)?//(?:www\.)?dailymotion\.com/embed/video/([^"\'/]++) "[^>]*+>\s*+\s*+(?:)?\s*+ (?: ]+?href=" (?:https?:)?//(?:www\.)?dailymotion\.com/[^"\']++ "[^>]*+>.+?\s*+ )? (?: .*?]+?href=" (?:https?:)?//(?:www\.)?dailymotion\.com/[^"\']++ "[^>]*+>.+?\s*+ )?#ix'; $regexes[] = '#<iframe(?:[^&]|&(?!gt;))+?src=" (?:https?:)?//(?:www\.)?dailymotion\.com/embed/video/([^"\'/]++) "(?:[^&]|&(?!gt;))*+>\s*+</iframe>\s*+(?:<br\s*+/>)?\s*+ (?: <a(?:[^&]|&(?!gt;))+?href=" (?:https?:)?//(?:www\.)?dailymotion\.com/[^"\']++ "(?:[^&]|&(?!gt;))*+>.+?</a>\s*+ )? (?: <i>.*?<a(?:[^&]|&(?!gt;))+?href=" (?:https?:)?//(?:www\.)?dailymotion\.com/[^"\']++ "(?:[^&]|&(?!gt;))*+>.+?</a>\s*+</i> )?#ix'; foreach ( $regexes as $regex ) { if ( ! preg_match_all( $regex, $content, $matches, PREG_SET_ORDER ) ) continue; foreach ( $matches as $match ) { $url = esc_url( sprintf( 'https://dailymotion.com/video/%s', $match[1] ) ); $replace_regex = sprintf( '#\s*%s\s*#', preg_quote( $match[0], '#' ) ); $content = preg_replace( $replace_regex, sprintf( "\n\n%s\n\n", $url ), $content ); do_action( 'jetpack_embed_to_shortcode', 'dailymotion', $url ); } } return $content; } add_filter( 'pre_kses', 'jetpack_dailymotion_embed_reversal' );