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
<?php | |
// create srcset images for kirby | |
function img($image, $options = array()) { | |
// defaults | |
$defaults = array( | |
"alt" => $image->title()->or(''), | |
"widths" => [100, 100, 100], | |
"class" => "", | |
"lazy" => false, | |
); |
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
<?php | |
/* | |
AUTHOR: | |
Azhar Chougle (azmataz.com) | |
DESCRIPTION: | |
This KirbyText extension will fetch your Instapaper Likes, choose a random one, and output a link. | |
It won't output if the feed is invalid, and will try to read it from cache if it is unavailable. |