Default to centre cropping for portrait layout.
This commit is contained in:
parent
16ec547064
commit
d3cb750874
@ -130,7 +130,7 @@ class PhotosIndex extends SubTemplate
|
|||||||
<div class="column_portrait">
|
<div class="column_portrait">
|
||||||
<div style="border-color: #', $this->color($image), '" class="portrait">';
|
<div style="border-color: #', $this->color($image), '" class="portrait">';
|
||||||
|
|
||||||
$this->photo($image, static::PORTRAIT_WIDTH, static::PORTRAIT_HEIGHT, 'top');
|
$this->photo($image, static::PORTRAIT_WIDTH, static::PORTRAIT_HEIGHT, 'centre');
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
</div>
|
</div>
|
||||||
@ -142,7 +142,7 @@ class PhotosIndex extends SubTemplate
|
|||||||
echo '
|
echo '
|
||||||
<div style="border-color: #', $this->color($image), '" class="landscape">';
|
<div style="border-color: #', $this->color($image), '" class="landscape">';
|
||||||
|
|
||||||
$this->photo($image, static::TILE_WIDTH, static::TILE_HEIGHT, 'top');
|
$this->photo($image, static::TILE_WIDTH, static::TILE_HEIGHT, 'centre');
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
</div>';
|
</div>';
|
||||||
|
Loading…
Reference in New Issue
Block a user