Initial commit
This commit is contained in:
commit
65e0da7e11
1397 changed files with 596542 additions and 0 deletions
9
site/OFF_plugins/embed/registry/field-method.php
Normal file
9
site/OFF_plugins/embed/registry/field-method.php
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
// ================================================
|
||||
// $page->video()->embed()
|
||||
// ================================================
|
||||
|
||||
$kirby->set('field::method', 'embed', function($field, $args = []) {
|
||||
return embed($field->value, $args);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue