-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPDATE Silverstripe 5 compatibility (#23)
* UPDATE Silverstripe 5 requirement * UPDATE implement Embed module in place of EmbedObject * UPDATE composer requirements * UPDATE remove assertion for legacy object * UPDATE only test against PHP 8.1
- Loading branch information
Showing
5 changed files
with
46 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,8 +32,6 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
- "8.0" | ||
- "8.1" | ||
|
||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 9 additions & 11 deletions
20
templates/Dynamic/Elements/Oembed/Elements/ElementOembed.ss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
<% if $Title && $ShowTitle %><h2 class="element__title">$Title</h2><% end_if %> | ||
|
||
<% if $EmbeddedObject %> | ||
<div class="row element__oembed__object"> | ||
<div class="col-md-12 card"> | ||
<div class="embed-responsive embed-responsive-16by9"> | ||
$EmbeddedObject | ||
</div> | ||
<div class="card-body"> | ||
<% if $EmbeddedObject.Title %><h3 class="card-title">$EmbeddedObject.Title</h3><% end_if %> | ||
<% if $EmbeddedObject.Description %><p class="card-text">$EmbeddedObject.Description</p><% end_if %> | ||
</div> | ||
<div class="row element__oembed__object"> | ||
<div class="col-md-12 card"> | ||
<div class="embed-responsive embed-responsive-16by9"> | ||
$Embed | ||
</div> | ||
<div class="card-body"> | ||
<% if $EmbedTitle %><h3 class="card-title">$EmbedTitle</h3><% end_if %> | ||
<% if $EmbedDescription %><p class="card-text">$EmbedDescription</p><% end_if %> | ||
</div> | ||
</div> | ||
<% end_if %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters