mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02: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 'rich':
|
||||
if($this->extraClass) {
|
||||
return "<div class='$this->extraClass'>$this->HTML</div>";
|
||||
return "<div class='media $this->extraClass'>$this->HTML</div>";
|
||||
} else {
|
||||
return $this->HTML;
|
||||
return "<div class='media'>$this->HTML</div>";
|
||||
}
|
||||
break;
|
||||
case 'link':
|
||||
|
Loading…
Reference in New Issue
Block a user