mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG: Classes applied to media are too generic to use
* Added a surrounding media class to media to make it easier to style without risking using .left, .right et al alone.
This commit is contained in:
parent
5a114b84c8
commit
203cfa225e
@ -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…
x
Reference in New Issue
Block a user