/** * @param SoundCloudEntity $entity * * @return string */ public function renderFullpage(AbstractMediaEntity $entity) { $url = urlencode($entity->getUrl()); $url = <<<EOD https://w.soundcloud.com/player/?url={$url}&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true EOD; $code = <<<EOD <iframe scrolling="no" frameborder="0" allowTransparency="true" src="{$url}" width="100%" height="166"></iframe> EOD; return $code; }
public function renderFullpage(AbstractMediaEntity $entity) { /* @var PdfEntity $entity */ return '<embed src="' . $entity->getUrl() . '" width="100%" height="600" type="application/pdf">'; }