You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
ygdc/site/plugins/thumb/index.php

15 lines
246 B

<?php
Kirby::plugin('site/methods', [
'fileMethods' => [
/**
* @kql-allowed
*/
'thumbnail' => function ($width) {
return $this->thumb([
'width' => $width
// other stuff you need
]);
}
]
]);