mirror of
https://github.com/friendica/friendica
synced 2024-11-14 03:42:53 +00:00
163a85c78f
- Move image templates to content/image sub-folder
12 lines
584 B
Smarty
12 lines
584 B
Smarty
{{foreach $rows as $images}}
|
|
<div class="masonry-row" style="height: {{$images->getHeightRatio()}}%">
|
|
{{foreach $images as $image}}
|
|
{{* The absolute pixel value in the calc() should be mirrored from the .imagegrid-row column-gap value *}}
|
|
{{include file="content/image/single_with_height_allocation.tpl"
|
|
image=$image
|
|
allocated_height="calc(`$image->heightRatio * $image->widthRatio / 100`% - 5px / `$column_size`)"
|
|
allocated_width="`$image->widthRatio`%"
|
|
}}
|
|
{{/foreach}}
|
|
</div>
|
|
{{/foreach}}
|