❌ Kirby 2 no longer actively supported. Migrate to a current version and
upgrade your v2 license now
.
$dimension->ratio()
Returns the ratio
return
(float)
Example
<?
=
$page
-
>
image
(
)
-
>
ratio
(
)
?>
↑
Cheat Sheet overview
←
$dimension->portrait()
→
$dimension->square()
↓
Back to Cheat Sheet section
Top