Use Bootstrap for album/photo grid #31

Merged
Aaron merged 8 commits from bootstrap-tiles into master 2023-04-05 17:08:17 +02:00
Showing only changes of commit 68ef80fb9f - Show all commits

View File

@ -165,7 +165,10 @@ class PhotoMosaic
return [$photos, 'single']; return [$photos, 'single'];
} }
// A boring set it is, then. // Last resort: majority vote
if ($num_portrait > $num_landscape)
return [$photos, 'portraits'];
else
return [$photos, 'row']; return [$photos, 'row'];
} }
} }