' . $content . ''; } } /** * @param Adapter $embed * * @return string */ public static function embedForTemplate($embed) { switch ($embed->type) { case 'video': case 'rich': if ($embed->extraClass) { return "
$embed->code
"; } else { return "
$embed->code
"; } break; case 'link': return '' . $embed->title . ''; break; case 'photo': return ""; break; } return null; } }