123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <?php
- return [
- '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
- 'filename' => '/home/kevin/Documents/Sites/hehe.net/user/plugins/admin/blueprints/admin/pages/raw.yaml',
- 'modified' => 1546440944,
- 'data' => [
- 'rules' => [
- 'slug' => [
- 'pattern' => '[a-zA-Zа-яA-Я0-9_\\-]+',
- 'min' => 1,
- 'max' => 200
- ]
- ],
- 'form' => [
- 'validation' => 'loose',
- 'fields' => [
- 'tabs' => [
- 'type' => 'tabs',
- 'active' => 1,
- 'fields' => [
- 'content' => [
- 'type' => 'tab',
- 'title' => 'PLUGIN_ADMIN.CONTENT',
- 'fields' => [
- 'xss_check' => [
- 'type' => 'xss'
- ],
- 'frontmatter' => [
- 'classes' => 'frontmatter',
- 'type' => 'editor',
- 'label' => 'PLUGIN_ADMIN.FRONTMATTER',
- 'autofocus' => true,
- 'codemirror' => [
- 'mode' => 'yaml',
- 'indentUnit' => 4,
- 'autofocus' => true,
- 'indentWithTabs' => false,
- 'lineNumbers' => true,
- 'styleActiveLine' => true,
- 'gutters' => [
- 0 => 'CodeMirror-lint-markers'
- ],
- 'lint' => true
- ]
- ],
- 'content' => [
- 'type' => 'markdown'
- ],
- 'header.media_order' => [
- 'type' => 'pagemedia',
- 'label' => 'PLUGIN_ADMIN.PAGE_MEDIA'
- ]
- ]
- ],
- 'options' => [
- 'type' => 'tab',
- 'title' => 'PLUGIN_ADMIN.OPTIONS',
- 'fields' => [
- 'columns' => [
- 'type' => 'columns',
- 'fields' => [
- 'column1' => [
- 'type' => 'column',
- 'fields' => [
- 'ordering' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX',
- 'help' => 'PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP',
- 'highlight' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'folder' => [
- 'type' => 'text',
- 'label' => 'PLUGIN_ADMIN.FOLDER_NAME',
- 'help' => 'PLUGIN_ADMIN.FOLDER_NAME_HELP',
- 'validate' => [
- 'rule' => 'slug',
- 'required' => true
- ]
- ],
- 'route' => [
- 'type' => 'parents',
- 'label' => 'PLUGIN_ADMIN.PARENT',
- 'classes' => 'fancy',
- 'validate' => [
- 'required' => true
- ]
- ],
- 'name' => [
- 'type' => 'select',
- 'classes' => 'fancy',
- 'label' => 'PLUGIN_ADMIN.DISPLAY_TEMPLATE',
- 'help' => 'PLUGIN_ADMIN.DISPLAY_TEMPLATE_HELP',
- 'default' => 'default',
- 'data-options@' => '\\Grav\\Plugin\\AdminPlugin::pagesTypes',
- 'validate' => [
- 'required' => true
- ]
- ]
- ]
- ],
- 'column2' => [
- 'type' => 'column',
- 'fields' => [
- 'order' => [
- 'type' => 'order',
- 'label' => 'PLUGIN_ADMIN.ORDERING'
- ]
- ]
- ]
- ]
- ],
- 'blueprint' => [
- 'type' => 'blueprint'
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ];
|