Skip to content

Commit

Permalink
REFACTOR migrate to Silverstripe Link
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirish committed Aug 13, 2024
1 parent 2eca4b1 commit a7089d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
],
"require": {
"dnadesign/silverstripe-elemental": "^5",
"dynamic/silverstripe-elemental-baseobject": "^4",
"jonom/focuspoint": "^5.0",
"silverstripe/framework": "^5"
"dynamic/silverstripe-elemental-baseobject": "^5",
"jonom/focuspoint": "^5.0"
},
"require-dev": {
"silverstripe/recipe-testing": "^3"
Expand All @@ -39,8 +38,8 @@
"config": {
"allow-plugins": {
"composer/installers": true,
"silverstripe/vendor-plugin": true,
"silverstripe/recipe-plugin": true
"silverstripe/recipe-plugin": true,
"silverstripe/vendor-plugin": true
},
"process-timeout": 600
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="col-lg-3 col-md-4 col-6 mb-3 element__promos__item">
<div class="card h-100">
<% if $Image %>
<% if $ElementLink %><a href="$ElementLink.LinkURL" title="Go to $ElementLink.Title.ATT"><% end_if %>
<% if $ElementLink %><a href="$ElementLink.URL" title="$ElementLink.Title"<% if $ElementLink.OpenInNew %> target="_blank" rel="noopener noreferrer"<% end_if %>><% end_if %>
<img src="$Image.FocusFill(500,330).URL" class="card-img-top" alt="$Image.Title.ATT">
<% if $ElementLink %></a><% end_if %>
<% end_if %>
Expand Down

0 comments on commit a7089d0

Please sign in to comment.