/** * Render * * @param array $matches * @return string HTML */ public static function render($matches) { // Render from oEmbed json if ($html = Embedder::getInstance()->renderHTML('http://www.flickr.com/services/oembed/?url=http://flickr.com/photos/' . $matches[5] . '/' . $matches[7])) { return $matches[1] . $html . end($matches); } // Failed to get oembed, return original HTML return $matches[0]; }
/** * Render * * @param array $matches * @return string HTML */ public static function render($matches) { // Render from oEmbed json if ($html = Embedder::getInstance()->renderHTML('http://api.instagram.com/oembed?url=http%3A//instagram.com/p/' . $matches[5])) { return $matches[1] . $html . end($matches); } // Failed to get oembed, return original HTML return $matches[0]; }
/** * Render * * @param array $matches * @return string HTML */ public static function render($matches) { // Render from oEmbed json if ($html = Embedder::getInstance()->renderHTML('http://www.youtube.com/oembed?scheme=https&url=http%3A//www.youtube.com/watch%3Fv%3D' . $matches[8])) { return $matches[1] . $html . end($matches); } // Failed to get oembed, return original HTML return $matches[0]; }
/** * Render * * @param array $matches * @return string HTML */ public static function render($matches) { // Render from oEmbed json if ($html = Embedder::getInstance()->renderHTML('http://www.viddler.com/oembed/?url=http://www.viddler.com/v/' . $matches[5])) { return $matches[1] . $html . end($matches); } // Failed to get oembed, return original HTML return $matches[0]; }