This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- create the complete html img tag for a given image --> | |
<?= $page->image()->html() ?> | |
<!-- modify the attributes of the img tag --> | |
<?= $page->image()->html(['class' => 'myImage']) ?> | |
<!-- resize an image first and then get the img tag for it --> | |
<?= $page->image()->resize(300,200)->html() ?> |