Skip to content

Commit

Permalink
Merge pull request #4526 from danrye/patch-1
Browse files Browse the repository at this point in the history
Add support for width and height to embedded photos
  • Loading branch information
dhensby committed Aug 22, 2015
2 parents fb9753d + 03e644e commit 1983819
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion oembed/Oembed.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,14 @@ public function __construct($url, $origin = false, $type = false, array $options
if(isset($options['class'])) {
$this->extraClass = $options['class'];
}

if($options) {
if(isset($options['width'])) {
$this->Width = $options['width'];
}
if(isset($options['height'])) {
$this->Height = $options['height'];
}
}
parent::__construct();
}

Expand Down

0 comments on commit 1983819

Please sign in to comment.