mep template

This commit is contained in:
2018-08-02 16:04:16 +02:00
parent e4b4bbdb09
commit 0172f56950
29 changed files with 588 additions and 462 deletions
@@ -1,52 +0,0 @@
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/mnt/data/Sites/hehe.net/user/plugins/admin/blueprints/config/media.yaml',
'modified' => 1533014916,
'data' => [
'title' => 'PLUGIN_ADMIN.MEDIA',
'form' => [
'validation' => 'loose',
'fields' => [
'types' => [
'name' => 'medias',
'type' => 'list',
'label' => 'PLUGIN_ADMIN.MEDIA_TYPES',
'style' => 'vertical',
'key' => 'extension',
'controls' => 'both',
'collapsed' => true,
'fields' => [
'.extension' => [
'type' => 'key',
'label' => 'PLUGIN_ADMIN.FILE_EXTENSION'
],
'.type' => [
'type' => 'text',
'label' => 'PLUGIN_ADMIN.TYPE'
],
'.thumb' => [
'type' => 'text',
'label' => 'PLUGIN_ADMIN.THUMB'
],
'.mime' => [
'type' => 'text',
'label' => 'PLUGIN_ADMIN.MIME_TYPE',
'validate' => [
'type' => 'lower'
]
],
'.image' => [
'type' => 'textarea',
'yaml' => true,
'label' => 'PLUGIN_ADMIN.IMAGE_OPTIONS',
'validate' => [
'type' => 'yaml'
]
]
]
]
]
]
]
];
@@ -2,7 +2,7 @@
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/mnt/data/Sites/hehe.net/user/config/system.yaml',
'modified' => 1533208003,
'modified' => 1533216531,
'data' => [
'absolute_urls' => false,
'param_sep' => ':',
@@ -0,0 +1,10 @@
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/mnt/data/Sites/hehe.net/user/config/plugins/taxonomylist.yaml',
'modified' => 1533212898,
'data' => [
'enabled' => true,
'route' => '/blog'
]
];
@@ -0,0 +1,126 @@
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/mnt/data/Sites/hehe.net/user/plugins/admin/blueprints/admin/pages/raw.yaml',
'modified' => 1533014916,
'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' => [
'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'
]
]
]
]
]
]
]
]
];
@@ -1,9 +0,0 @@
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/mnt/data/Sites/hehe.net/user/data/licenses.yaml',
'modified' => 1533212888,
'data' => [
]
];
@@ -0,0 +1,124 @@
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/mnt/data/Sites/hehe.net/user/plugins/admin/blueprints/admin/pages/modular_raw.yaml',
'modified' => 1533014916,
'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' => [
'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.FILENAME',
'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.MODULAR_TEMPLATE',
'default' => 'default',
'data-options@' => '\\Grav\\Plugin\\AdminPlugin::pagesModularTypes',
'validate' => [
'required' => true
]
]
]
],
'column2' => [
'type' => 'column',
'fields' => [
'order' => [
'type' => 'order',
'label' => 'PLUGIN_ADMIN.ORDERING'
]
]
]
]
],
'blueprint' => [
'type' => 'blueprint'
]
]
]
]
]
]
]
]
];
@@ -1,80 +0,0 @@
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/mnt/data/Sites/hehe.net/user/themes/hehe/blueprints/partials/blog-bits.yaml',
'modified' => 1533014916,
'data' => [
'form' => [
'fields' => [
'hero_title' => [
'type' => 'spacer',
'title' => 'Hero Section'
],
'header.hero_classes' => [
'type' => 'text',
'label' => 'Hero Classes',
'markdown' => true,
'description' => 'There are several Hero class options that can be listed here (space separated):<br />`text-light`, `text-dark`, `title-h1h2`, `parallax`, `overlay-dark-gradient`, `overlay-light-gradient`, `overlay-dark`, `overlay-light`, `hero-fullscreen`, `hero-large`, `hero-medium`, `hero-small`, `hero-tiny`<br />Please consult the [Quark documentation](https://github.com/getgrav/grav-theme-quark#hero-options) for more details.'
],
'header.hero_image' => [
'type' => 'filepicker',
'label' => 'Hero Image',
'preview_images' => true,
'description' => 'If not specified, this defaults to the first image found in the page\'s folder'
],
'toggles_title' => [
'type' => 'spacer',
'title' => 'Configuration'
],
'header.blog_url' => [
'type' => 'text',
'toggleable' => true,
'label' => 'Blog Route',
'help' => 'The route to the main blog page that contains the "Show ..." configuration',
'default' => '/blog',
'placeholder' => '/blog',
'size' => 'medium'
],
'header.show_sidebar' => [
'type' => 'toggle',
'toggleable' => true,
'label' => 'Show Sidebar',
'highlight' => 1,
'options' => [
1 => 'PLUGIN_ADMIN.ENABLED',
0 => 'PLUGIN_ADMIN.DISABLED'
],
'validate' => [
'type' => 'bool'
]
],
'header.show_breadcrumbs' => [
'type' => 'toggle',
'toggleable' => true,
'label' => 'Show Breadcrumbs',
'highlight' => 1,
'options' => [
1 => 'PLUGIN_ADMIN.ENABLED',
0 => 'PLUGIN_ADMIN.DISABLED'
],
'validate' => [
'type' => 'bool'
]
],
'header.show_pagination' => [
'type' => 'toggle',
'toggleable' => true,
'label' => 'Show Pagination',
'highlight' => 1,
'options' => [
1 => 'PLUGIN_ADMIN.ENABLED',
0 => 'PLUGIN_ADMIN.DISABLED'
],
'validate' => [
'type' => 'bool'
]
]
]
]
]
];
@@ -0,0 +1,35 @@
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/mnt/data/Sites/hehe.net/user/themes/hehe/blueprints/modular/text.yaml',
'modified' => 1533014916,
'data' => [
'title' => 'Text',
'@extends' => 'default',
'form' => [
'fields' => [
'tabs' => [
'fields' => [
'content' => [
'fields' => [
'header.media_order' => [
'label' => 'Page Media (first one will be displayed next to your content)'
],
'header.image_align' => [
'type' => 'select',
'label' => 'Image position',
'classes' => 'fancy',
'default' => 'left',
'options' => [
'left' => 'Left',
'right' => 'Right'
]
]
]
]
]
]
]
]
]
];
@@ -1,133 +0,0 @@
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/mnt/data/Sites/hehe.net/user/themes/hehe/blueprints/item.yaml',
'modified' => 1533014916,
'data' => [
'extends@' => 'default',
'form' => [
'fields' => [
'tabs' => [
'fields' => [
'blog' => [
'type' => 'tab',
'title' => 'Blog Item',
'fields' => [
'header_options' => [
'type' => 'section',
'title' => 'Header Options',
'underline' => true
],
'header.continue_link' => [
'type' => 'toggle',
'toggleable' => true,
'label' => 'DF Style Link',
'help' => 'Daring Fireball style title link',
'highlight' => 1,
'default' => 1,
'options' => [
1 => 'PLUGIN_ADMIN.ENABLED',
0 => 'PLUGIN_ADMIN.DISABLED'
],
'validate' => [
'type' => 'bool'
]
],
'header.header_image' => [
'type' => 'toggle',
'toggleable' => true,
'label' => 'Display Header Image',
'help' => 'Enabled displaying of a header image',
'highlight' => 1,
'options' => [
1 => 'PLUGIN_ADMIN.ENABLED',
0 => 'PLUGIN_ADMIN.DISABLED'
]
],
'header.header_image_file' => [
'type' => 'text',
'toggleable' => true,
'label' => 'Image File',
'help' => 'image filename that exists in the page folder. If not provided, will use the first image found.',
'placeholder' => 'For example: myimage.jpg'
],
'header.header_image_width' => [
'type' => 'text',
'toggleable' => true,
'label' => 'Image Width',
'size' => 'small',
'help' => 'Header width in px',
'placeholder' => 'Default is 900',
'validate' => [
'type' => 'int',
'min' => 0,
'max' => 5000
]
],
'header.header_image_height' => [
'type' => 'text',
'toggleable' => true,
'label' => 'Image Height',
'size' => 'small',
'help' => 'Header height in px',
'placeholder' => 'Default is 300',
'validate' => [
'type' => 'int',
'min' => 0,
'max' => 5000
]
],
'summary' => [
'type' => 'section',
'title' => 'Summary',
'underline' => true
],
'header.summary.enabled' => [
'type' => 'toggle',
'toggleable' => true,
'label' => 'Summary',
'highlight' => 1,
'options' => [
1 => 'PLUGIN_ADMIN.ENABLED',
0 => 'PLUGIN_ADMIN.DISABLED'
]
],
'header.summary.format' => [
'type' => 'select',
'toggleable' => true,
'label' => 'Format',
'classes' => 'fancy',
'options' => [
'short' => 'Use the first occurence of delimter or size',
'long' => 'Summary delimiter will be ignored'
]
],
'header.summary.size' => [
'type' => 'text',
'toggleable' => true,
'label' => 'Size',
'classes' => 'large',
'placeholder' => 300,
'validate' => [
'type' => 'int',
'min' => 1
]
],
'header.summary.delimiter' => [
'type' => 'text',
'toggleable' => true,
'label' => 'Summary delimiter',
'classes' => 'large',
'placeholder' => '==='
]
],
'import@' => [
'type' => 'partials/blog-bits'
]
]
]
]
]
]
]
];
@@ -0,0 +1,48 @@
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/mnt/data/Sites/hehe.net/system/blueprints/pages/modular.yaml',
'modified' => 1533014916,
'data' => [
'title' => 'PLUGIN_ADMIN.MODULAR',
'extends@' => 'default',
'form' => [
'fields' => [
'tabs' => [
'type' => 'tabs',
'active' => 1,
'fields' => [
'content' => [
'fields' => [
'modular_title' => [
'type' => 'spacer',
'title' => 'PLUGIN_ADMIN.MODULAR_SETUP'
],
'header.content.items' => [
'type' => 'text',
'label' => 'PLUGIN_ADMIN.ITEMS',
'default' => '@self.modular',
'size' => 'medium'
],
'header.content.order.by' => [
'type' => 'text',
'label' => 'PLUGIN_ADMIN.ORDER_BY',
'placeholder' => 'date',
'help' => NULL,
'size' => 'small'
],
'header.content.order.dir' => [
'type' => 'text',
'label' => 'PLUGIN_ADMIN.ORDER',
'help' => '"desc" or "asc" are valid values',
'placeholder' => 'desc',
'size' => 'small'
]
]
]
]
]
]
]
]
];