add date
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
return [
|
||||
'@class' => 'Grav\\Common\\Config\\CompiledBlueprints',
|
||||
'timestamp' => 1535111354,
|
||||
'timestamp' => 1535374700,
|
||||
'checksum' => '1d14f778d90686cdd66810a9bf28392f',
|
||||
'files' => [
|
||||
'system/blueprints/config' => [
|
||||
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
return [
|
||||
'@class' => 'Grav\\Common\\Config\\CompiledConfig',
|
||||
'timestamp' => 1535111354,
|
||||
'checksum' => '0606ec3bf08c69f617c790931359ad60',
|
||||
'timestamp' => 1535376240,
|
||||
'checksum' => 'af9010a82fe8ddb0d6784c533e2b9cc7',
|
||||
'files' => [
|
||||
'user/config' => [
|
||||
'media' => [
|
||||
@@ -27,7 +27,7 @@ return [
|
||||
],
|
||||
'system' => [
|
||||
'file' => 'user/config/system.yaml',
|
||||
'modified' => 1534926821
|
||||
'modified' => 1535376238
|
||||
]
|
||||
],
|
||||
'system/config' => [
|
||||
@@ -618,8 +618,8 @@ return [
|
||||
],
|
||||
'dateformat' => [
|
||||
'default' => NULL,
|
||||
'short' => 'jS M Y',
|
||||
'long' => 'F jS \\a\\t g:ia'
|
||||
'short' => 'd.m.y',
|
||||
'long' => 'd.m.y'
|
||||
],
|
||||
'publish_dates' => true,
|
||||
'process' => [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
return [
|
||||
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
|
||||
'filename' => '/mnt/data/Sites/hehe.net/user/plugins/admin/blueprints/config/media.yaml',
|
||||
'modified' => 1534926555,
|
||||
'modified' => 1535111354,
|
||||
'data' => [
|
||||
'title' => 'PLUGIN_ADMIN.MEDIA',
|
||||
'form' => [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
return [
|
||||
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
|
||||
'filename' => '/mnt/data/Sites/hehe.net/user/config/system.yaml',
|
||||
'modified' => 1534926821,
|
||||
'modified' => 1535376238,
|
||||
'data' => [
|
||||
'absolute_urls' => false,
|
||||
'param_sep' => ':',
|
||||
@@ -35,8 +35,8 @@ return [
|
||||
'count' => 20
|
||||
],
|
||||
'dateformat' => [
|
||||
'short' => 'jS M Y',
|
||||
'long' => 'F jS \\a\\t g:ia'
|
||||
'short' => 'd.m.y',
|
||||
'long' => 'd.m.y'
|
||||
],
|
||||
'publish_dates' => true,
|
||||
'process' => [
|
||||
|
||||
@@ -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' => 1535111354,
|
||||
'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'
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
@@ -2,7 +2,7 @@
|
||||
return [
|
||||
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
|
||||
'filename' => '/mnt/data/Sites/hehe.net/system/blueprints/pages/default.yaml',
|
||||
'modified' => 1535111318,
|
||||
'modified' => 1535375937,
|
||||
'data' => [
|
||||
'title' => 'PLUGIN_ADMIN.DEFAULT',
|
||||
'rules' => [
|
||||
@@ -65,9 +65,15 @@ return [
|
||||
'type' => 'bool'
|
||||
]
|
||||
],
|
||||
'header.date' => [
|
||||
'header.date_start' => [
|
||||
'type' => 'datetime',
|
||||
'label' => 'PLUGIN_ADMIN.DATE',
|
||||
'label' => 'Date start',
|
||||
'toggleable' => true,
|
||||
'help' => 'PLUGIN_ADMIN.DATE_HELP'
|
||||
],
|
||||
'header.date_end' => [
|
||||
'type' => 'datetime',
|
||||
'label' => 'Date End',
|
||||
'toggleable' => true,
|
||||
'help' => 'PLUGIN_ADMIN.DATE_HELP'
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user