mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2007 from adrexia/extraclass-on-media
BUG: Classes applied to media are too generic to use
This commit is contained in:
commit
72fd984bf6
@ -311,9 +311,9 @@ class Oembed_Result extends ViewableData {
|
|||||||
case 'video':
|
case 'video':
|
||||||
case 'rich':
|
case 'rich':
|
||||||
if($this->extraClass) {
|
if($this->extraClass) {
|
||||||
return "<div class='$this->extraClass'>$this->HTML</div>";
|
return "<div class='media $this->extraClass'>$this->HTML</div>";
|
||||||
} else {
|
} else {
|
||||||
return $this->HTML;
|
return "<div class='media'>$this->HTML</div>";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'link':
|
case 'link':
|
||||||
|
Loading…
Reference in New Issue
Block a user