예제 #1
0
 public function getEmbedCode($params = [])
 {
     $embed = parent::getEmbedCode($params);
     if ($this->embedCode && $this->oembed) {
         $embed = $this->oembed->get('html', '');
     }
     return $embed;
 }
예제 #2
0
 public function getOEmbed()
 {
     $oembed = parent::getOEmbed();
     if ($this->embedCode && $this->oembed) {
         $width = $this->oembed->get('width');
         $height = $this->oembed->get('height');
         $this->attributes(['width' => $width, 'height' => $height]);
     }
     return $oembed;
 }