Skip to content

Commit

Permalink
FEATURE Focuspoint, image cropping (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirish authored Sep 14, 2023
1 parent 419b5e8 commit f712050
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ A block to add a single image to your page.
## Requirements

* dnadesign/silverstripe-elemental: ^5
* jonom/focuspoint: ^5

## Installation

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
],
"require": {
"dnadesign/silverstripe-elemental": "^5",
"jonom/focuspoint": "^5",
"silverstripe/framework": "^5"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion templates/Dynamic/Elements/Image/Elements/ElementImage.ss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

<% if $Image %>
<div class="col-md-12 card">
<img src="$Image.URL" class="img-fluid card-img-top" alt="<% if $Image.Title %>$Image.Title.ATT<% else %>$Title.ATT<% end_if %>">
<img src="$Image.FocusFill(1400,787).URL" class="card-img-top" alt="<% if $Image.Title %>$Image.Title.ATT<% else %>$Title.ATT<% end_if %>">
</div>
<% end_if %>

0 comments on commit f712050

Please sign in to comment.