mep template
@@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
return [
|
return [
|
||||||
'@class' => 'Grav\\Common\\Config\\CompiledBlueprints',
|
'@class' => 'Grav\\Common\\Config\\CompiledBlueprints',
|
||||||
'timestamp' => 1533136703,
|
'timestamp' => 1533212898,
|
||||||
'checksum' => '8adcdeef63232c2546b4b3b573a22ad6',
|
'checksum' => '4dcee84bfe33cf4c48e8f8ff29b374b7',
|
||||||
'files' => [
|
'files' => [
|
||||||
'user/plugins/admin/blueprints/config' => [
|
'user/plugins/admin/blueprints/config' => [
|
||||||
'media' => [
|
'media' => [
|
||||||
@@ -53,6 +53,10 @@ return [
|
|||||||
'file' => 'user/plugins/email/blueprints.yaml',
|
'file' => 'user/plugins/email/blueprints.yaml',
|
||||||
'modified' => 1533014916
|
'modified' => 1533014916
|
||||||
],
|
],
|
||||||
|
'plugins/taxonomylist' => [
|
||||||
|
'file' => 'user/plugins/taxonomylist/blueprints.yaml',
|
||||||
|
'modified' => 1533212893
|
||||||
|
],
|
||||||
'plugins/problems' => [
|
'plugins/problems' => [
|
||||||
'file' => 'user/plugins/problems/blueprints.yaml',
|
'file' => 'user/plugins/problems/blueprints.yaml',
|
||||||
'modified' => 1533014916
|
'modified' => 1533014916
|
||||||
@@ -3287,6 +3291,37 @@ return [
|
|||||||
'name' => 'plugins.email.debug',
|
'name' => 'plugins.email.debug',
|
||||||
'validation' => 'loose'
|
'validation' => 'loose'
|
||||||
],
|
],
|
||||||
|
'plugins.taxonomylist' => [
|
||||||
|
'type' => '_root',
|
||||||
|
'form_field' => false,
|
||||||
|
'form' => [
|
||||||
|
'validation' => 'strict'
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'plugins.taxonomylist.enabled' => [
|
||||||
|
'type' => 'toggle',
|
||||||
|
'label' => 'Plugin status',
|
||||||
|
'highlight' => 1,
|
||||||
|
'default' => 0,
|
||||||
|
'options' => [
|
||||||
|
1 => 'Enabled',
|
||||||
|
0 => 'Disabled'
|
||||||
|
],
|
||||||
|
'validate' => [
|
||||||
|
'type' => 'bool'
|
||||||
|
],
|
||||||
|
'name' => 'plugins.taxonomylist.enabled',
|
||||||
|
'validation' => 'strict'
|
||||||
|
],
|
||||||
|
'plugins.taxonomylist.route' => [
|
||||||
|
'type' => 'text',
|
||||||
|
'label' => 'Route to blog',
|
||||||
|
'validate' => [
|
||||||
|
'pattern' => '/([a-z\\-_]+/?)+'
|
||||||
|
],
|
||||||
|
'name' => 'plugins.taxonomylist.route',
|
||||||
|
'validation' => 'strict'
|
||||||
|
],
|
||||||
'plugins.problems' => [
|
'plugins.problems' => [
|
||||||
'type' => '_root',
|
'type' => '_root',
|
||||||
'form_field' => false,
|
'form_field' => false,
|
||||||
@@ -3692,6 +3727,10 @@ return [
|
|||||||
'body' => 'plugins.email.body',
|
'body' => 'plugins.email.body',
|
||||||
'debug' => 'plugins.email.debug'
|
'debug' => 'plugins.email.debug'
|
||||||
],
|
],
|
||||||
|
'taxonomylist' => [
|
||||||
|
'enabled' => 'plugins.taxonomylist.enabled',
|
||||||
|
'route' => 'plugins.taxonomylist.route'
|
||||||
|
],
|
||||||
'problems' => [
|
'problems' => [
|
||||||
'enabled' => 'plugins.problems.enabled',
|
'enabled' => 'plugins.problems.enabled',
|
||||||
'built_in_css' => 'plugins.problems.built_in_css'
|
'built_in_css' => 'plugins.problems.built_in_css'
|
||||||
|
|||||||
@@ -1,14 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
return [
|
return [
|
||||||
'@class' => 'Grav\\Common\\Config\\CompiledConfig',
|
'@class' => 'Grav\\Common\\Config\\CompiledConfig',
|
||||||
'timestamp' => 1533136703,
|
'timestamp' => 1533212898,
|
||||||
'checksum' => 'd2d3a9845188fdd4768c33d77874d32b',
|
'checksum' => 'c81a8b8a807087534f87e6d61103fb33',
|
||||||
'files' => [
|
'files' => [
|
||||||
'user/config' => [
|
'user/config' => [
|
||||||
'media' => [
|
'media' => [
|
||||||
'file' => 'user/config/media.yaml',
|
'file' => 'user/config/media.yaml',
|
||||||
'modified' => 1533133695
|
'modified' => 1533133695
|
||||||
],
|
],
|
||||||
|
'plugins/taxonomylist' => [
|
||||||
|
'file' => 'user/config/plugins/taxonomylist.yaml',
|
||||||
|
'modified' => 1533212898
|
||||||
|
],
|
||||||
'security' => [
|
'security' => [
|
||||||
'file' => 'user/config/security.yaml',
|
'file' => 'user/config/security.yaml',
|
||||||
'modified' => 1533133695
|
'modified' => 1533133695
|
||||||
@@ -23,7 +27,7 @@ return [
|
|||||||
],
|
],
|
||||||
'system' => [
|
'system' => [
|
||||||
'file' => 'user/config/system.yaml',
|
'file' => 'user/config/system.yaml',
|
||||||
'modified' => 1533136703
|
'modified' => 1533208003
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'system/config' => [
|
'system/config' => [
|
||||||
@@ -69,6 +73,10 @@ return [
|
|||||||
'file' => 'user/plugins/email/email.yaml',
|
'file' => 'user/plugins/email/email.yaml',
|
||||||
'modified' => 1533014916
|
'modified' => 1533014916
|
||||||
],
|
],
|
||||||
|
'plugins/taxonomylist' => [
|
||||||
|
'file' => 'user/plugins/taxonomylist/taxonomylist.yaml',
|
||||||
|
'modified' => 1533212893
|
||||||
|
],
|
||||||
'plugins/problems' => [
|
'plugins/problems' => [
|
||||||
'file' => 'user/plugins/problems/problems.yaml',
|
'file' => 'user/plugins/problems/problems.yaml',
|
||||||
'modified' => 1533014916
|
'modified' => 1533014916
|
||||||
@@ -247,6 +255,10 @@ return [
|
|||||||
'content_type' => 'text/html',
|
'content_type' => 'text/html',
|
||||||
'debug' => false
|
'debug' => false
|
||||||
],
|
],
|
||||||
|
'taxonomylist' => [
|
||||||
|
'enabled' => true,
|
||||||
|
'route' => '/blog'
|
||||||
|
],
|
||||||
'problems' => [
|
'problems' => [
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
'built_in_css' => true
|
'built_in_css' => true
|
||||||
@@ -592,7 +604,7 @@ return [
|
|||||||
'override_locale' => false
|
'override_locale' => false
|
||||||
],
|
],
|
||||||
'home' => [
|
'home' => [
|
||||||
'alias' => '/home',
|
'alias' => '/projets',
|
||||||
'hide_in_urls' => false
|
'hide_in_urls' => false
|
||||||
],
|
],
|
||||||
'pages' => [
|
'pages' => [
|
||||||
|
|||||||
@@ -0,0 +1,48 @@
|
|||||||
|
<?php
|
||||||
|
return [
|
||||||
|
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
|
||||||
|
'filename' => '/mnt/data/Sites/hehe.net/user/plugins/taxonomylist/blueprints.yaml',
|
||||||
|
'modified' => 1533212893,
|
||||||
|
'data' => [
|
||||||
|
'name' => 'Taxonomy List',
|
||||||
|
'version' => '1.3.2',
|
||||||
|
'description' => 'With the **TaxonomyList plugin** you can easily create list of **taxonomy** items such as **tags**, **categories**, etc.',
|
||||||
|
'icon' => 'tag',
|
||||||
|
'author' => [
|
||||||
|
'name' => 'Team Grav',
|
||||||
|
'email' => 'devs@getgrav.org',
|
||||||
|
'url' => 'http://getgrav.org'
|
||||||
|
],
|
||||||
|
'homepage' => 'https://github.com/getgrav/grav-plugin-taxonomylist',
|
||||||
|
'demo' => 'http://demo.getgrav.org/blog-skeleton',
|
||||||
|
'keywords' => 'taxonomylist, plugin, taxonomy, list, tags, categories',
|
||||||
|
'bugs' => 'https://github.com/getgrav/grav-plugin-taxonomylist/issues',
|
||||||
|
'license' => 'MIT',
|
||||||
|
'form' => [
|
||||||
|
'validation' => 'strict',
|
||||||
|
'fields' => [
|
||||||
|
'enabled' => [
|
||||||
|
'type' => 'toggle',
|
||||||
|
'label' => 'Plugin status',
|
||||||
|
'highlight' => 1,
|
||||||
|
'default' => 0,
|
||||||
|
'options' => [
|
||||||
|
1 => 'Enabled',
|
||||||
|
0 => 'Disabled'
|
||||||
|
],
|
||||||
|
'validate' => [
|
||||||
|
'type' => 'bool'
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'route' => [
|
||||||
|
'type' => 'text',
|
||||||
|
'label' => 'Route to blog',
|
||||||
|
'placeholder' => '/blog',
|
||||||
|
'validate' => [
|
||||||
|
'pattern' => '/([a-z\\-_]+/?)+'
|
||||||
|
]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
];
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
return [
|
return [
|
||||||
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
|
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
|
||||||
'filename' => '/mnt/data/Sites/hehe.net/user/config/system.yaml',
|
'filename' => '/mnt/data/Sites/hehe.net/user/config/system.yaml',
|
||||||
'modified' => 1533134392,
|
'modified' => 1533208003,
|
||||||
'data' => [
|
'data' => [
|
||||||
'absolute_urls' => false,
|
'absolute_urls' => false,
|
||||||
'param_sep' => ':',
|
'param_sep' => ':',
|
||||||
@@ -22,11 +22,11 @@ return [
|
|||||||
'override_locale' => false
|
'override_locale' => false
|
||||||
],
|
],
|
||||||
'home' => [
|
'home' => [
|
||||||
'alias' => '/home',
|
'alias' => '/projets',
|
||||||
'hide_in_urls' => false
|
'hide_in_urls' => false
|
||||||
],
|
],
|
||||||
'pages' => [
|
'pages' => [
|
||||||
'theme' => 'quark',
|
'theme' => 'hehe',
|
||||||
'order' => [
|
'order' => [
|
||||||
'by' => 'default',
|
'by' => 'default',
|
||||||
'dir' => 'asc'
|
'dir' => 'asc'
|
||||||
|
|||||||
@@ -1,126 +0,0 @@
|
|||||||
<?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'
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
];
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
return [
|
||||||
|
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
|
||||||
|
'filename' => '/mnt/data/Sites/hehe.net/user/data/licenses.yaml',
|
||||||
|
'modified' => 1533212888,
|
||||||
|
'data' => [
|
||||||
|
|
||||||
|
]
|
||||||
|
];
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
<?php
|
|
||||||
return [
|
|
||||||
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
|
|
||||||
'filename' => '/mnt/data/Sites/hehe.net/system/blueprints/user/account.yaml',
|
|
||||||
'modified' => 1533014916,
|
|
||||||
'data' => [
|
|
||||||
'title' => 'Account',
|
|
||||||
'form' => [
|
|
||||||
'validation' => 'loose',
|
|
||||||
'fields' => [
|
|
||||||
'info' => [
|
|
||||||
'type' => 'userinfo',
|
|
||||||
'size' => 'large'
|
|
||||||
],
|
|
||||||
'avatar' => [
|
|
||||||
'type' => 'file',
|
|
||||||
'size' => 'large',
|
|
||||||
'destination' => 'user://accounts/avatars',
|
|
||||||
'multiple' => false,
|
|
||||||
'random_name' => true
|
|
||||||
],
|
|
||||||
'content' => [
|
|
||||||
'type' => 'section',
|
|
||||||
'title' => 'PLUGIN_ADMIN.ACCOUNT',
|
|
||||||
'underline' => true
|
|
||||||
],
|
|
||||||
'username' => [
|
|
||||||
'type' => 'text',
|
|
||||||
'size' => 'large',
|
|
||||||
'label' => 'PLUGIN_ADMIN.USERNAME',
|
|
||||||
'disabled' => true,
|
|
||||||
'readonly' => true
|
|
||||||
],
|
|
||||||
'email' => [
|
|
||||||
'type' => 'email',
|
|
||||||
'size' => 'large',
|
|
||||||
'label' => 'PLUGIN_ADMIN.EMAIL',
|
|
||||||
'validate' => [
|
|
||||||
'type' => 'email',
|
|
||||||
'message' => 'PLUGIN_ADMIN.EMAIL_VALIDATION_MESSAGE',
|
|
||||||
'required' => true
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'password' => [
|
|
||||||
'type' => 'password',
|
|
||||||
'size' => 'large',
|
|
||||||
'label' => 'PLUGIN_ADMIN.PASSWORD',
|
|
||||||
'autocomplete' => 'new-password',
|
|
||||||
'validate' => [
|
|
||||||
'required' => false,
|
|
||||||
'message' => 'PLUGIN_ADMIN.PASSWORD_VALIDATION_MESSAGE',
|
|
||||||
'config-pattern@' => 'system.pwd_regex'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'fullname' => [
|
|
||||||
'type' => 'text',
|
|
||||||
'size' => 'large',
|
|
||||||
'label' => 'PLUGIN_ADMIN.FULL_NAME',
|
|
||||||
'validate' => [
|
|
||||||
'required' => true
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'title' => [
|
|
||||||
'type' => 'text',
|
|
||||||
'size' => 'large',
|
|
||||||
'label' => 'PLUGIN_ADMIN.TITLE'
|
|
||||||
],
|
|
||||||
'language' => [
|
|
||||||
'type' => 'select',
|
|
||||||
'label' => 'PLUGIN_ADMIN.LANGUAGE',
|
|
||||||
'size' => 'medium',
|
|
||||||
'classes' => 'fancy',
|
|
||||||
'data-options@' => '\\Grav\\Plugin\\Admin\\Admin::adminLanguages',
|
|
||||||
'default' => 'en',
|
|
||||||
'help' => 'PLUGIN_ADMIN.LANGUAGE_HELP'
|
|
||||||
],
|
|
||||||
'twofa_check' => [
|
|
||||||
'type' => 'conditional',
|
|
||||||
'condition' => 'config.plugins.admin.twofa_enabled',
|
|
||||||
'fields' => [
|
|
||||||
'twofa' => [
|
|
||||||
'title' => 'PLUGIN_ADMIN.2FA_TITLE',
|
|
||||||
'type' => 'section',
|
|
||||||
'underline' => true
|
|
||||||
],
|
|
||||||
'twofa_enabled' => [
|
|
||||||
'type' => 'toggle',
|
|
||||||
'label' => 'PLUGIN_ADMIN.2FA_ENABLED',
|
|
||||||
'classes' => 'twofa-toggle',
|
|
||||||
'highlight' => 1,
|
|
||||||
'default' => 0,
|
|
||||||
'options' => [
|
|
||||||
1 => 'PLUGIN_ADMIN.YES',
|
|
||||||
0 => 'PLUGIN_ADMIN.NO'
|
|
||||||
],
|
|
||||||
'validate' => [
|
|
||||||
'type' => 'bool'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'twofa_secret' => [
|
|
||||||
'type' => '2fa_secret',
|
|
||||||
'outerclasses' => 'twofa-secret',
|
|
||||||
'label' => 'PLUGIN_ADMIN.2FA_SECRET',
|
|
||||||
'sublabel' => 'PLUGIN_ADMIN.2FA_SECRET_HELP'
|
|
||||||
]
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'security' => [
|
|
||||||
'title' => 'PLUGIN_ADMIN.ACCESS_LEVELS',
|
|
||||||
'type' => 'section',
|
|
||||||
'security' => 'admin.super',
|
|
||||||
'underline' => true,
|
|
||||||
'fields' => [
|
|
||||||
'groups' => [
|
|
||||||
'type' => 'select',
|
|
||||||
'multiple' => true,
|
|
||||||
'size' => 'large',
|
|
||||||
'label' => 'PLUGIN_ADMIN.GROUPS',
|
|
||||||
'data-options@' => '\\Grav\\Common\\User\\Group::groupNames',
|
|
||||||
'classes' => 'fancy',
|
|
||||||
'help' => 'PLUGIN_ADMIN.GROUPS_HELP',
|
|
||||||
'validate' => [
|
|
||||||
'type' => 'commalist'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'access' => [
|
|
||||||
'type' => 'permissions',
|
|
||||||
'label' => 'PLUGIN_ADMIN.PERMISSIONS',
|
|
||||||
'ignore_empty' => true,
|
|
||||||
'validate' => [
|
|
||||||
'type' => 'array'
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
];
|
|
||||||
@@ -1,117 +0,0 @@
|
|||||||
<?php
|
|
||||||
return [
|
|
||||||
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
|
|
||||||
'filename' => '/mnt/data/Sites/hehe.net/user/themes/hehe/blueprints/blog.yaml',
|
|
||||||
'modified' => 1533014916,
|
|
||||||
'data' => [
|
|
||||||
'extends@' => 'default',
|
|
||||||
'child_type' => 'item',
|
|
||||||
'rules' => [
|
|
||||||
'slug' => [
|
|
||||||
'pattern' => '[a-z][a-z0-9_\\-]+',
|
|
||||||
'min' => 2,
|
|
||||||
'max' => 80
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'form' => [
|
|
||||||
'fields' => [
|
|
||||||
'tabs' => [
|
|
||||||
'type' => 'tabs',
|
|
||||||
'active' => 1,
|
|
||||||
'fields' => [
|
|
||||||
'advanced' => [
|
|
||||||
'fields' => [
|
|
||||||
'overrides' => [
|
|
||||||
'fields' => [
|
|
||||||
'header.child_type' => [
|
|
||||||
'default' => 'item'
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'blog' => [
|
|
||||||
'type' => 'tab',
|
|
||||||
'title' => 'Blog Config',
|
|
||||||
'fields' => [
|
|
||||||
'content_title' => [
|
|
||||||
'type' => 'spacer',
|
|
||||||
'title' => 'Content Definition'
|
|
||||||
],
|
|
||||||
'header.content.items' => [
|
|
||||||
'type' => 'textarea',
|
|
||||||
'yaml' => true,
|
|
||||||
'label' => 'Items',
|
|
||||||
'default' => '@self.children',
|
|
||||||
'validate' => [
|
|
||||||
'type' => 'yaml'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'header.content.limit' => [
|
|
||||||
'type' => 'text',
|
|
||||||
'label' => 'Max Item Count',
|
|
||||||
'default' => 5,
|
|
||||||
'validate' => [
|
|
||||||
'required' => true,
|
|
||||||
'type' => 'int',
|
|
||||||
'min' => 1
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'header.content.order.by' => [
|
|
||||||
'type' => 'select',
|
|
||||||
'label' => 'Order By',
|
|
||||||
'default' => 'date',
|
|
||||||
'options' => [
|
|
||||||
'folder' => 'Folder',
|
|
||||||
'title' => 'Title',
|
|
||||||
'date' => 'Date',
|
|
||||||
'default' => 'Default'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'header.content.order.dir' => [
|
|
||||||
'type' => 'select',
|
|
||||||
'label' => 'Order',
|
|
||||||
'default' => 'desc',
|
|
||||||
'options' => [
|
|
||||||
'asc' => 'Ascending',
|
|
||||||
'desc' => 'Descending'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'header.content.pagination' => [
|
|
||||||
'type' => 'toggle',
|
|
||||||
'label' => 'Pagination',
|
|
||||||
'highlight' => 1,
|
|
||||||
'default' => 1,
|
|
||||||
'options' => [
|
|
||||||
1 => 'PLUGIN_ADMIN.ENABLED',
|
|
||||||
0 => 'PLUGIN_ADMIN.DISABLED'
|
|
||||||
],
|
|
||||||
'validate' => [
|
|
||||||
'type' => 'bool'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'header.content.url_taxonomy_filters' => [
|
|
||||||
'type' => 'toggle',
|
|
||||||
'label' => 'URL Taxonomy Filters',
|
|
||||||
'highlight' => 1,
|
|
||||||
'default' => 1,
|
|
||||||
'options' => [
|
|
||||||
1 => 'PLUGIN_ADMIN.ENABLED',
|
|
||||||
0 => 'PLUGIN_ADMIN.DISABLED'
|
|
||||||
],
|
|
||||||
'validate' => [
|
|
||||||
'type' => 'bool'
|
|
||||||
]
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'import@' => [
|
|
||||||
'type' => 'partials/blog-bits',
|
|
||||||
'context' => 'blueprints://pages'
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
];
|
|
||||||
@@ -1,415 +0,0 @@
|
|||||||
<?php
|
|
||||||
return [
|
|
||||||
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
|
|
||||||
'filename' => '/mnt/data/Sites/hehe.net/user/themes/quark/languages.yaml',
|
|
||||||
'modified' => 1533014916,
|
|
||||||
'data' => [
|
|
||||||
'en' => [
|
|
||||||
'TRANSLATION_TEST' => 'Quark!',
|
|
||||||
'BLOG' => [
|
|
||||||
'ITEM' => [
|
|
||||||
'CONTINUE_READING' => 'Continue reading...',
|
|
||||||
'NEXT_POST' => 'Next Post',
|
|
||||||
'PREV_POST' => 'Previous Post'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'SHOP' => [
|
|
||||||
'ITEM' => [
|
|
||||||
'BACK' => 'Back',
|
|
||||||
'NEXT_ITEM' => 'Next Item',
|
|
||||||
'PREV_ITEM' => 'Previous Item'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'SIDEBAR' => [
|
|
||||||
'SIMPLE_SEARCH' => [
|
|
||||||
'HEADLINE' => 'Search'
|
|
||||||
],
|
|
||||||
'RELATED_POSTS' => [
|
|
||||||
'HEADLINE' => 'Related Posts'
|
|
||||||
],
|
|
||||||
'RANDOM_ARTICLE' => [
|
|
||||||
'HEADLINE' => 'Random Article',
|
|
||||||
'FEELING_LUCKY' => 'I\'m Feeling Lucky!'
|
|
||||||
],
|
|
||||||
'SOME_TEXT_WIDGET' => [
|
|
||||||
'HEADLINE' => 'Some Text Widget'
|
|
||||||
],
|
|
||||||
'POPULAR_TAGS' => [
|
|
||||||
'HEADLINE' => 'Popular Tags'
|
|
||||||
],
|
|
||||||
'ARCHIVES' => [
|
|
||||||
'HEADLINE' => 'Archives'
|
|
||||||
],
|
|
||||||
'SYNDICATE' => [
|
|
||||||
'HEADLINE' => 'Syndicate'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'FORM_DATA' => [
|
|
||||||
'SUMMARY' => 'Here is the summary of what you wrote to us:'
|
|
||||||
],
|
|
||||||
'ERROR' => 'Error'
|
|
||||||
],
|
|
||||||
'de' => [
|
|
||||||
'TRANSLATION_TEST' => 'Quark!',
|
|
||||||
'BLOG' => [
|
|
||||||
'ITEM' => [
|
|
||||||
'CONTINUE_READING' => 'Weiterlesen...',
|
|
||||||
'NEXT_POST' => 'Nächster Beitrag',
|
|
||||||
'PREV_POST' => 'Vorheriger Beitrag'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'SHOP' => [
|
|
||||||
'ITEM' => [
|
|
||||||
'BACK' => 'Zurück',
|
|
||||||
'NEXT_ITEM' => 'Nächstes Objekt',
|
|
||||||
'PREV_ITEM' => 'Vorheriger Objekt'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'SIDEBAR' => [
|
|
||||||
'SIMPLE_SEARCH' => [
|
|
||||||
'HEADLINE' => 'SimpleSearch'
|
|
||||||
],
|
|
||||||
'RELATED_POSTS' => [
|
|
||||||
'HEADLINE' => 'Ähnliche Beiträge'
|
|
||||||
],
|
|
||||||
'RANDOM_ARTICLE' => [
|
|
||||||
'HEADLINE' => 'Zufälliger Artikel',
|
|
||||||
'FEELING_LUCKY' => 'Auf gut Glück!'
|
|
||||||
],
|
|
||||||
'SOME_TEXT_WIDGET' => [
|
|
||||||
'HEADLINE' => 'Text Widget Beispiel'
|
|
||||||
],
|
|
||||||
'POPULAR_TAGS' => [
|
|
||||||
'HEADLINE' => 'Häufigste Tags'
|
|
||||||
],
|
|
||||||
'ARCHIVES' => [
|
|
||||||
'HEADLINE' => 'Archiv'
|
|
||||||
],
|
|
||||||
'SYNDICATE' => [
|
|
||||||
'HEADLINE' => 'Abonnements'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'FORM_DATA' => [
|
|
||||||
'SUMMARY' => 'Folgendes haben Sie uns mitgeteilt:'
|
|
||||||
],
|
|
||||||
'ERROR' => 'Fehler'
|
|
||||||
],
|
|
||||||
'es' => [
|
|
||||||
'TRANSLATION_TEST' => 'Quark!',
|
|
||||||
'BLOG' => [
|
|
||||||
'ITEM' => [
|
|
||||||
'CONTINUE_READING' => 'Continuar leyendo...',
|
|
||||||
'NEXT_POST' => 'Siguiente Entrada',
|
|
||||||
'PREV_POST' => 'Entrada Anterior'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'SHOP' => [
|
|
||||||
'ITEM' => [
|
|
||||||
'BACK' => 'Espalda',
|
|
||||||
'NEXT_ITEM' => 'Siguiente Artículo',
|
|
||||||
'PREV_ITEM' => 'Artículo Anterior'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'SIDEBAR' => [
|
|
||||||
'SIMPLE_SEARCH' => [
|
|
||||||
'HEADLINE' => 'Buscar'
|
|
||||||
],
|
|
||||||
'RELATED_POSTS' => [
|
|
||||||
'HEADLINE' => 'Entradas Relacionadas'
|
|
||||||
],
|
|
||||||
'RANDOM_ARTICLE' => [
|
|
||||||
'HEADLINE' => 'Artículo Aleatorio',
|
|
||||||
'FEELING_LUCKY' => 'Voy a tener suerte!'
|
|
||||||
],
|
|
||||||
'SOME_TEXT_WIDGET' => [
|
|
||||||
'HEADLINE' => 'Algunos Widget de Texto'
|
|
||||||
],
|
|
||||||
'POPULAR_TAGS' => [
|
|
||||||
'HEADLINE' => 'Etiquetas Populares'
|
|
||||||
],
|
|
||||||
'ARCHIVES' => [
|
|
||||||
'HEADLINE' => 'Archivos'
|
|
||||||
],
|
|
||||||
'SYNDICATE' => [
|
|
||||||
'HEADLINE' => 'Distribuir'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'FORM_DATA' => [
|
|
||||||
'SUMMARY' => 'Este es un resumen de lo escrito:'
|
|
||||||
],
|
|
||||||
'ERROR' => 'Error'
|
|
||||||
],
|
|
||||||
'fr' => [
|
|
||||||
'TRANSLATION_TEST' => 'Quark !',
|
|
||||||
'BLOG' => [
|
|
||||||
'ITEM' => [
|
|
||||||
'CONTINUE_READING' => 'Continuer la lecture...',
|
|
||||||
'NEXT_POST' => 'Article suivant',
|
|
||||||
'PREV_POST' => 'Article précédent'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'SIDEBAR' => [
|
|
||||||
'SIMPLE_SEARCH' => [
|
|
||||||
'HEADLINE' => 'Recherche simple'
|
|
||||||
],
|
|
||||||
'RELATED_POSTS' => [
|
|
||||||
'HEADLINE' => 'Articles en relation'
|
|
||||||
],
|
|
||||||
'RANDOM_ARTICLE' => [
|
|
||||||
'HEADLINE' => 'Article aléatoire',
|
|
||||||
'FEELING_LUCKY' => 'J\'ai de la chance !'
|
|
||||||
],
|
|
||||||
'SOME_TEXT_WIDGET' => [
|
|
||||||
'HEADLINE' => 'Du texte gadget'
|
|
||||||
],
|
|
||||||
'POPULAR_TAGS' => [
|
|
||||||
'HEADLINE' => 'Tags populaires'
|
|
||||||
],
|
|
||||||
'ARCHIVES' => [
|
|
||||||
'HEADLINE' => 'Archives'
|
|
||||||
],
|
|
||||||
'SYNDICATE' => [
|
|
||||||
'HEADLINE' => 'Syndication'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'FORM_DATA' => [
|
|
||||||
'SUMMARY' => 'Voici le résumé de ce que vous avez écrit pour nous:'
|
|
||||||
],
|
|
||||||
'ERROR' => 'Erreur'
|
|
||||||
],
|
|
||||||
'it' => [
|
|
||||||
'TRANSLATION_TEST' => 'Quark!',
|
|
||||||
'BLOG' => [
|
|
||||||
'ITEM' => [
|
|
||||||
'CONTINUE_READING' => 'Continua a leggere...',
|
|
||||||
'NEXT_POST' => 'Prossimo articolo',
|
|
||||||
'PREV_POST' => 'Articolo precedente'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'SIDEBAR' => [
|
|
||||||
'SIMPLE_SEARCH' => [
|
|
||||||
'HEADLINE' => 'SimpleSearch'
|
|
||||||
],
|
|
||||||
'RELATED_POSTS' => [
|
|
||||||
'HEADLINE' => 'Articoli correlati'
|
|
||||||
],
|
|
||||||
'RANDOM_ARTICLE' => [
|
|
||||||
'HEADLINE' => 'Articolo a caso',
|
|
||||||
'FEELING_LUCKY' => 'Mi sento fortunato!'
|
|
||||||
],
|
|
||||||
'SOME_TEXT_WIDGET' => [
|
|
||||||
'HEADLINE' => 'Widget di testo'
|
|
||||||
],
|
|
||||||
'POPULAR_TAGS' => [
|
|
||||||
'HEADLINE' => 'Tag popolari'
|
|
||||||
],
|
|
||||||
'ARCHIVES' => [
|
|
||||||
'HEADLINE' => 'Archivio'
|
|
||||||
],
|
|
||||||
'SYNDICATE' => [
|
|
||||||
'HEADLINE' => 'Feed'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'FORM_DATA' => [
|
|
||||||
'SUMMARY' => 'Questo è il riassunto di quanto ci hai scritto:'
|
|
||||||
],
|
|
||||||
'ERROR' => 'Errore'
|
|
||||||
],
|
|
||||||
'ro' => [
|
|
||||||
'BLOG' => [
|
|
||||||
'ITEM' => [
|
|
||||||
'CONTINUE_READING' => 'Mai multe...',
|
|
||||||
'NEXT_POST' => 'Următorul articol',
|
|
||||||
'PREV_POST' => 'Articolul anterior'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'SIDEBAR' => [
|
|
||||||
'SIMPLE_SEARCH' => [
|
|
||||||
'HEADLINE' => 'Căutare'
|
|
||||||
],
|
|
||||||
'RELATED_POSTS' => [
|
|
||||||
'HEADLINE' => 'Articole corelate'
|
|
||||||
],
|
|
||||||
'RANDOM_ARTICLE' => [
|
|
||||||
'HEADLINE' => 'Articol aleator'
|
|
||||||
],
|
|
||||||
'FEELING_LUCKY' => 'Mă simt norocos',
|
|
||||||
'SOME_TEXT_WIDGET' => [
|
|
||||||
'HEADLINE' => 'Text modular'
|
|
||||||
],
|
|
||||||
'POPULAR_TAGS' => [
|
|
||||||
'HEADLINE' => 'Etichete populare'
|
|
||||||
],
|
|
||||||
'ARCHIVES' => [
|
|
||||||
'HEADLINE' => 'Arhive'
|
|
||||||
],
|
|
||||||
'SYNDICATE' => [
|
|
||||||
'HEADLINE' => 'Abonați-vă'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'FORM_DATA' => [
|
|
||||||
'SUMMARY' => 'Acesta este rezumatul mesajului Dvs:'
|
|
||||||
],
|
|
||||||
'ERROR' => 'Eroare'
|
|
||||||
],
|
|
||||||
'ru' => [
|
|
||||||
'TRANSLATION_TEST' => 'Quark!',
|
|
||||||
'BLOG' => [
|
|
||||||
'ITEM' => [
|
|
||||||
'CONTINUE_READING' => 'Читать далее...',
|
|
||||||
'NEXT_POST' => 'Следующая запись',
|
|
||||||
'PREV_POST' => 'Предыдущая запись'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'SIDEBAR' => [
|
|
||||||
'SIMPLE_SEARCH' => [
|
|
||||||
'HEADLINE' => 'Поиск'
|
|
||||||
],
|
|
||||||
'RELATED_POSTS' => [
|
|
||||||
'HEADLINE' => 'Также читайте'
|
|
||||||
],
|
|
||||||
'RANDOM_ARTICLE' => [
|
|
||||||
'HEADLINE' => 'Случайная запись',
|
|
||||||
'FEELING_LUCKY' => 'Мне повезёт!'
|
|
||||||
],
|
|
||||||
'SOME_TEXT_WIDGET' => [
|
|
||||||
'HEADLINE' => 'Текстовой виджет'
|
|
||||||
],
|
|
||||||
'POPULAR_TAGS' => [
|
|
||||||
'HEADLINE' => 'Популярные теги'
|
|
||||||
],
|
|
||||||
'ARCHIVES' => [
|
|
||||||
'HEADLINE' => 'Архив'
|
|
||||||
],
|
|
||||||
'SYNDICATE' => [
|
|
||||||
'HEADLINE' => 'Синдикация'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'FORM_DATA' => [
|
|
||||||
'SUMMARY' => 'Вы написали нам:'
|
|
||||||
],
|
|
||||||
'ERROR' => 'Ошибка'
|
|
||||||
],
|
|
||||||
'uk' => [
|
|
||||||
'TRANSLATION_TEST' => 'Quark!',
|
|
||||||
'BLOG' => [
|
|
||||||
'ITEM' => [
|
|
||||||
'CONTINUE_READING' => 'Читати далі...',
|
|
||||||
'NEXT_POST' => 'Наступний запис',
|
|
||||||
'PREV_POST' => 'Попередній запис'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'SIDEBAR' => [
|
|
||||||
'SIMPLE_SEARCH' => [
|
|
||||||
'HEADLINE' => 'Пошук'
|
|
||||||
],
|
|
||||||
'RELATED_POSTS' => [
|
|
||||||
'HEADLINE' => 'Також читайте'
|
|
||||||
],
|
|
||||||
'RANDOM_ARTICLE' => [
|
|
||||||
'HEADLINE' => 'Випадковий запис',
|
|
||||||
'FEELING_LUCKY' => 'Мені пощастить!'
|
|
||||||
],
|
|
||||||
'SOME_TEXT_WIDGET' => [
|
|
||||||
'HEADLINE' => 'Текстовий віджет'
|
|
||||||
],
|
|
||||||
'POPULAR_TAGS' => [
|
|
||||||
'HEADLINE' => 'Популярні теги'
|
|
||||||
],
|
|
||||||
'ARCHIVES' => [
|
|
||||||
'HEADLINE' => 'Архів'
|
|
||||||
],
|
|
||||||
'SYNDICATE' => [
|
|
||||||
'HEADLINE' => 'Синдикація'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'FORM_DATA' => [
|
|
||||||
'SUMMARY' => 'Ви написали нам:'
|
|
||||||
],
|
|
||||||
'ERROR' => 'Помилка'
|
|
||||||
],
|
|
||||||
'hr' => [
|
|
||||||
'TRANSLATION_TEST' => 'Quark!',
|
|
||||||
'BLOG' => [
|
|
||||||
'ITEM' => [
|
|
||||||
'CONTINUE_READING' => 'Nastavi s čitanjem...',
|
|
||||||
'NEXT_POST' => 'Slijedeća objava',
|
|
||||||
'PREV_POST' => 'Prethodna objava'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'SIDEBAR' => [
|
|
||||||
'SIMPLE_SEARCH' => [
|
|
||||||
'HEADLINE' => 'Pretraživanje'
|
|
||||||
],
|
|
||||||
'RELATED_POSTS' => [
|
|
||||||
'HEADLINE' => 'Povezane objave'
|
|
||||||
],
|
|
||||||
'RANDOM_ARTICLE' => [
|
|
||||||
'HEADLINE' => 'Slučajni članak',
|
|
||||||
'FEELING_LUCKY' => 'Osjećam se sretno!'
|
|
||||||
],
|
|
||||||
'SOME_TEXT_WIDGET' => [
|
|
||||||
'HEADLINE' => 'Neki tekst widget'
|
|
||||||
],
|
|
||||||
'POPULAR_TAGS' => [
|
|
||||||
'HEADLINE' => 'Popularni tagovi'
|
|
||||||
],
|
|
||||||
'ARCHIVES' => [
|
|
||||||
'HEADLINE' => 'Arhiva'
|
|
||||||
],
|
|
||||||
'SYNDICATE' => [
|
|
||||||
'HEADLINE' => 'Kanali'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'FORM_DATA' => [
|
|
||||||
'SUMMARY' => 'Ovo je sažetak onog što ste nam napisali:'
|
|
||||||
],
|
|
||||||
'ERROR' => 'Greška'
|
|
||||||
],
|
|
||||||
'nl' => [
|
|
||||||
'TRANSLATION_TEST' => 'Quark!',
|
|
||||||
'BLOG' => [
|
|
||||||
'ITEM' => [
|
|
||||||
'CONTINUE_READING' => 'Lees Meer...',
|
|
||||||
'NEXT_POST' => 'Volgende Bericht',
|
|
||||||
'PREV_POST' => 'Vorige Bericht'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'SHOP' => [
|
|
||||||
'ITEM' => [
|
|
||||||
'BACK' => 'Teru',
|
|
||||||
'NEXT_ITEM' => 'Volgende Onderdeel',
|
|
||||||
'PREV_ITEM' => 'Vorige Onderdeel'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'SIDEBAR' => [
|
|
||||||
'SIMPLE_SEARCH' => [
|
|
||||||
'HEADLINE' => 'Zoek'
|
|
||||||
],
|
|
||||||
'RELATED_POSTS' => [
|
|
||||||
'HEADLINE' => 'Gerelateerde Berichten'
|
|
||||||
],
|
|
||||||
'RANDOM_ARTICLE' => [
|
|
||||||
'HEADLINE' => 'Willekeurig Artikel',
|
|
||||||
'FEELING_LUCKY' => 'Ik Voel Me Gelukkig!'
|
|
||||||
],
|
|
||||||
'SOME_TEXT_WIDGET' => [
|
|
||||||
'HEADLINE' => 'Een Tekst Widget'
|
|
||||||
],
|
|
||||||
'POPULAR_TAGS' => [
|
|
||||||
'HEADLINE' => 'Populaire Labels'
|
|
||||||
],
|
|
||||||
'ARCHIVES' => [
|
|
||||||
'HEADLINE' => 'Archieven'
|
|
||||||
],
|
|
||||||
'SYNDICATE' => [
|
|
||||||
'HEADLINE' => 'Syndicatie'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
'FORM_DATA' => [
|
|
||||||
'SUMMARY' => 'Hier is de samenvatting van wat je aan ons schreef:'
|
|
||||||
],
|
|
||||||
'ERROR' => 'Fout'
|
|
||||||
]
|
|
||||||
]
|
|
||||||
];
|
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
return [
|
||||||
|
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
|
||||||
|
'filename' => '/mnt/data/Sites/hehe.net/user/plugins/taxonomylist/taxonomylist.yaml',
|
||||||
|
'modified' => 1533212893,
|
||||||
|
'data' => [
|
||||||
|
'enabled' => true,
|
||||||
|
'route' => '/blog'
|
||||||
|
]
|
||||||
|
];
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
return [
|
||||||
|
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
|
||||||
|
'filename' => 'plugins://taxonomylist/taxonomylist.yaml',
|
||||||
|
'modified' => 1533212893,
|
||||||
|
'data' => [
|
||||||
|
'enabled' => true,
|
||||||
|
'route' => '/blog'
|
||||||
|
]
|
||||||
|
];
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
return [
|
return [
|
||||||
'@class' => 'Grav\\Common\\Config\\CompiledLanguages',
|
'@class' => 'Grav\\Common\\Config\\CompiledLanguages',
|
||||||
'timestamp' => 1533134392,
|
'timestamp' => 1533208004,
|
||||||
'checksum' => '6c5391e484bf1638c9846acf597e3d7f',
|
'checksum' => '6c5391e484bf1638c9846acf597e3d7f',
|
||||||
'files' => [
|
'files' => [
|
||||||
'system/languages' => [
|
'system/languages' => [
|
||||||
@@ -22875,6 +22875,6 @@ Path: `%2$s`
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
'checksum' => '6c5391e484bf1638c9846acf597e3d7f',
|
'checksum' => '6c5391e484bf1638c9846acf597e3d7f',
|
||||||
'timestamp' => 1533134392
|
'timestamp' => 1533208004
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|||||||
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 17 KiB |
@@ -1 +1 @@
|
|||||||
{"01-08-2018":19}
|
{"01-08-2018":19,"02-08-2018":315}
|
||||||
@@ -1 +1 @@
|
|||||||
{"08-2018":19}
|
{"08-2018":334}
|
||||||
@@ -1 +1 @@
|
|||||||
{"\/":19}
|
{"\/":152,"\/projets":99,"\/news":6,"\/a-propros":6,"\/projets-n-1":1,"\/projets\/projets-n-1":66,"\/projets\/projet-n-2":4}
|
||||||
@@ -1 +1 @@
|
|||||||
{"4b84b15bff6ee5796152495a230e45e3d7e947d9":1533137465}
|
{"4b84b15bff6ee5796152495a230e45e3d7e947d9":1533213951}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
enabled: true
|
||||||
|
route: /blog
|
||||||
@@ -1,17 +1,13 @@
|
|||||||
absolute_urls: false
|
absolute_urls: false
|
||||||
timezone: ''
|
|
||||||
default_locale: null
|
|
||||||
param_sep: ':'
|
param_sep: ':'
|
||||||
wrapped_site: false
|
wrapped_site: false
|
||||||
reverse_proxy_setup: false
|
reverse_proxy_setup: false
|
||||||
force_ssl: false
|
force_ssl: false
|
||||||
force_lowercase_urls: true
|
force_lowercase_urls: true
|
||||||
custom_base_url: ''
|
|
||||||
username_regex: '^[a-z0-9_-]{3,16}$'
|
username_regex: '^[a-z0-9_-]{3,16}$'
|
||||||
pwd_regex: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}'
|
pwd_regex: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}'
|
||||||
intl_enabled: true
|
intl_enabled: true
|
||||||
languages:
|
languages:
|
||||||
supported: { }
|
|
||||||
include_default_lang: true
|
include_default_lang: true
|
||||||
translations: true
|
translations: true
|
||||||
translations_fallback: true
|
translations_fallback: true
|
||||||
@@ -19,7 +15,7 @@ languages:
|
|||||||
http_accept_language: false
|
http_accept_language: false
|
||||||
override_locale: false
|
override_locale: false
|
||||||
home:
|
home:
|
||||||
alias: /home
|
alias: /projets
|
||||||
hide_in_urls: false
|
hide_in_urls: false
|
||||||
pages:
|
pages:
|
||||||
theme: hehe
|
theme: hehe
|
||||||
@@ -29,7 +25,6 @@ pages:
|
|||||||
list:
|
list:
|
||||||
count: 20
|
count: 20
|
||||||
dateformat:
|
dateformat:
|
||||||
default: null
|
|
||||||
short: 'jS M Y'
|
short: 'jS M Y'
|
||||||
long: 'F jS \a\t g:ia'
|
long: 'F jS \a\t g:ia'
|
||||||
publish_dates: true
|
publish_dates: true
|
||||||
@@ -57,9 +52,7 @@ pages:
|
|||||||
- json
|
- json
|
||||||
- rss
|
- rss
|
||||||
- atom
|
- atom
|
||||||
append_url_extension: ''
|
|
||||||
expires: 604800
|
expires: 604800
|
||||||
cache_control: null
|
|
||||||
last_modified: false
|
last_modified: false
|
||||||
etag: false
|
etag: false
|
||||||
vary_accept_encoding: false
|
vary_accept_encoding: false
|
||||||
@@ -89,8 +82,6 @@ cache:
|
|||||||
lifetime: 604800
|
lifetime: 604800
|
||||||
gzip: false
|
gzip: false
|
||||||
allow_webserver_gzip: false
|
allow_webserver_gzip: false
|
||||||
redis:
|
|
||||||
socket: false
|
|
||||||
twig:
|
twig:
|
||||||
cache: false
|
cache: false
|
||||||
debug: true
|
debug: true
|
||||||
@@ -129,8 +120,6 @@ images:
|
|||||||
auto_fix_orientation: false
|
auto_fix_orientation: false
|
||||||
media:
|
media:
|
||||||
enable_media_timestamp: false
|
enable_media_timestamp: false
|
||||||
unsupported_inline_types: { }
|
|
||||||
allowed_fallback_types: { }
|
|
||||||
auto_metadata_exif: false
|
auto_metadata_exif: false
|
||||||
upload_limit: 2097152
|
upload_limit: 2097152
|
||||||
session:
|
session:
|
||||||
@@ -141,10 +130,8 @@ session:
|
|||||||
secure: false
|
secure: false
|
||||||
httponly: true
|
httponly: true
|
||||||
split: true
|
split: true
|
||||||
path: null
|
|
||||||
gpm:
|
gpm:
|
||||||
releases: stable
|
releases: stable
|
||||||
proxy_url: null
|
|
||||||
method: auto
|
method: auto
|
||||||
verify_peer: true
|
verify_peer: true
|
||||||
official_gpm_only: true
|
official_gpm_only: true
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
---
|
|
||||||
title: Home
|
|
||||||
body_classes: 'title-center title-h1h2'
|
|
||||||
---
|
|
||||||
|
|
||||||
# Say Hello to Grav!
|
|
||||||
## installation successful...
|
|
||||||
|
|
||||||
Congratulations! You have installed the **Base Grav Package** that provides a **simple page** and the default **Quark** theme to get you started.
|
|
||||||
|
|
||||||
!! If you see a **404 Error** when you click `Typography` in the menu, please refer to the [troubleshooting guide](http://learn.getgrav.org/troubleshooting/page-not-found).
|
|
||||||
|
|
||||||
### Find out all about Grav
|
|
||||||
|
|
||||||
* Learn about **Grav** by checking out our dedicated [Learn Grav](http://learn.getgrav.org) site.
|
|
||||||
* Download **plugins**, **themes**, as well as other Grav **skeleton** packages from the [Grav Downloads](http://getgrav.org/downloads) page.
|
|
||||||
* Check out our [Grav Development Blog](http://getgrav.org/blog) to find out the latest goings on in the Grav-verse.
|
|
||||||
|
|
||||||
!!! If you want a more **full-featured** base install, you should check out [**Skeleton** packages available in the downloads](http://getgrav.org/downloads).
|
|
||||||
|
|
||||||
### Edit this Page
|
|
||||||
|
|
||||||
To edit this page, simply navigate to the folder you installed **Grav** into, and then browse to the `user/pages/01.home` folder and open the `default.md` file in your [editor of choice](http://learn.getgrav.org/basics/requirements). You will see the content of this page in [Markdown format](http://learn.getgrav.org/content/markdown).
|
|
||||||
|
|
||||||
### Create a New Page
|
|
||||||
|
|
||||||
Creating a new page is a simple affair in **Grav**. Simply follow these simple steps:
|
|
||||||
|
|
||||||
1. Navigate to your pages folder: `user/pages/` and create a new folder. In this example, we will use [explicit default ordering](http://learn.getgrav.org/content/content-pages) and call the folder `03.mypage`.
|
|
||||||
2. Launch your text editor and paste in the following sample code:
|
|
||||||
|
|
||||||
---
|
|
||||||
title: My New Page
|
|
||||||
---
|
|
||||||
# My New Page!
|
|
||||||
|
|
||||||
This is the body of **my new page** and I can easily use _Markdown_ syntax here.
|
|
||||||
|
|
||||||
3. Save this file in the `user/pages/03.mypage/` folder as `default.md`. This will tell **Grav** to render the page using the **default** template.
|
|
||||||
4. That is it! Reload your browser to see your new page in the menu.
|
|
||||||
|
|
||||||
! NOTE: The page will automatically show up in the Menu after the "Home" menu item. If you wish to change the name that shows up in the Menu, simple add: `menu: My Page` between the dashes in the page content. This is called the YAML front matter, and it is where you configure page-specific options.
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
---
|
|
||||||
title: Projets
|
|
||||||
continue_link: true
|
|
||||||
content:
|
|
||||||
items: '- ''@self.children'''
|
|
||||||
limit: '5'
|
|
||||||
order:
|
|
||||||
by: date
|
|
||||||
dir: desc
|
|
||||||
pagination: '1'
|
|
||||||
url_taxonomy_filters: '1'
|
|
||||||
---
|
|
||||||
|
|
||||||
CC
|
|
||||||
|
After Width: | Height: | Size: 248 KiB |
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
title: 'Projets N°1'
|
||||||
|
media_order: 'Airbag_2.jpg,Airbag_2.jpg,nv_ivry_w.jpg'
|
||||||
|
taxonomy:
|
||||||
|
category:
|
||||||
|
- 'Catégorie 1'
|
||||||
|
- 'catégorie 2'
|
||||||
|
tag:
|
||||||
|
- 'catégrie 1'
|
||||||
|
- 'cat 3'
|
||||||
|
continue_link: true
|
||||||
|
---
|
||||||
|
|
||||||
|
CC
|
||||||
|
After Width: | Height: | Size: 221 KiB |
|
After Width: | Height: | Size: 235 KiB |
@@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
title: 'projet n°2'
|
||||||
|
media_order: 'Cloud Crash Airbag.jpg'
|
||||||
|
taxonomy:
|
||||||
|
tag:
|
||||||
|
- 'cat 3'
|
||||||
|
continue_link: true
|
||||||
|
---
|
||||||
|
|
||||||
|
Cvqfbv fdhqvbdfhqovb dhqjvjds vdfhsq ldbkqd q
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
title: projets
|
||||||
|
content:
|
||||||
|
items:
|
||||||
|
- '@self.children'
|
||||||
|
---
|
||||||
|
|
||||||
|
fvqfbfdqv efvf
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: News
|
||||||
|
---
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: 'A propros'
|
||||||
|
---
|
||||||
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.idea/
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
# v1.3.2
|
||||||
|
## 05/21/2017
|
||||||
|
|
||||||
|
1. [](#improved)
|
||||||
|
* Removed Grav trait in favor of `Grav::instance()`
|
||||||
|
|
||||||
|
# v1.3.1
|
||||||
|
## 11/02/2017
|
||||||
|
|
||||||
|
1. [](#bugfix)
|
||||||
|
* Don't need to lowercase the taxonomy now we have removed `case_insensitive_urls` option in Grav core
|
||||||
|
|
||||||
|
# v1.3.0
|
||||||
|
## 10/31/2017
|
||||||
|
|
||||||
|
1. [](#new)
|
||||||
|
* Added ability to show tags of the child pages of the current page [#17](https://github.com/getgrav/grav-plugin-taxonomylist/pull/17)
|
||||||
|
1. [](#improved)
|
||||||
|
* Improved child-pages logic to use the same include, just pass an optional `children_only` param
|
||||||
|
* Lowercase all tags due to changes in Grav 1.3.8 where URL params are lowercase [#18](https://github.com/getgrav/grav-plugin-taxonomylist/issues/18)
|
||||||
|
|
||||||
|
# v1.2.7
|
||||||
|
## 01/06/2016
|
||||||
|
|
||||||
|
2. [](#improved)
|
||||||
|
* Removed extraneous encoding
|
||||||
|
|
||||||
|
# v1.2.6
|
||||||
|
## 10/07/2015
|
||||||
|
|
||||||
|
2. [](#improved)
|
||||||
|
* Added `active` class on active taxonomies
|
||||||
|
|
||||||
|
# v1.2.5
|
||||||
|
## 07/19/2015
|
||||||
|
|
||||||
|
2. [](#improved)
|
||||||
|
* Set the taxonomy type from the taxonomy being passed in
|
||||||
|
|
||||||
|
# v1.2.4
|
||||||
|
## 02/19/2015
|
||||||
|
|
||||||
|
2. [](#improved)
|
||||||
|
* Implemented new `param_sep` variable from Grav 0.9.18
|
||||||
|
|
||||||
|
# v1.2.3
|
||||||
|
## 02/05/2015
|
||||||
|
|
||||||
|
2. [](#improved)
|
||||||
|
* Added support for HHVM
|
||||||
|
|
||||||
|
# v1.2.2
|
||||||
|
## 01/09/2015
|
||||||
|
|
||||||
|
2. [](#improved)
|
||||||
|
* NOTE: BREAKING CHANGE: Moved templates into `partials/` subfolder for consistency.
|
||||||
|
|
||||||
|
# v1.2.1
|
||||||
|
## 01/07/2015
|
||||||
|
|
||||||
|
1. [](#bugfix)
|
||||||
|
* Support for numeric taxonomy values
|
||||||
|
|
||||||
|
# v1.2.0
|
||||||
|
## 11/30/2014
|
||||||
|
|
||||||
|
1. [](#new)
|
||||||
|
* ChangeLog started...
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2014 Grav
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
# Grav Taxonomy List Plugin
|
||||||
|
|
||||||
|
`Taxonomylist` is a [Grav](http://github.com/getgrav/grav) plugin that generates a list of linked tags collected throughout the site.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
# Installation
|
||||||
|
|
||||||
|
Installing the Taxonomy List plugin can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.
|
||||||
|
|
||||||
|
## GPM Installation (Preferred)
|
||||||
|
|
||||||
|
The simplest way to install this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm) through your system's Terminal (also called the command line). From the root of your Grav install type:
|
||||||
|
|
||||||
|
bin/gpm install taxonomylist
|
||||||
|
|
||||||
|
This will install the Taxonomy List plugin into your `/user/plugins` directory within Grav. Its files can be found under `/your/site/grav/user/plugins/taxonomylist`.
|
||||||
|
|
||||||
|
## Manual Installation
|
||||||
|
|
||||||
|
To install this plugin, just download the zip version of this repository and unzip it under `/your/site/grav/user/plugins`. Then, rename the folder to `taxonomylist`. You can find these files either on [GitHub](https://github.com/getgrav/grav-plugin-taxonomylist) or via [GetGrav.org](http://getgrav.org/downloads/plugins#extras).
|
||||||
|
|
||||||
|
You should now have all the plugin files under
|
||||||
|
|
||||||
|
/your/site/grav/user/plugins/taxonomylist
|
||||||
|
|
||||||
|
>> NOTE: This plugin is a modular component for Grav which requires [Grav](http://github.com/getgrav/grav), the [Error](https://github.com/getgrav/grav-plugin-error) and [Problems](https://github.com/getgrav/grav-plugin-problems) plugins, and a theme to be installed in order to operate.
|
||||||
|
|
||||||
|
# Usage
|
||||||
|
|
||||||
|
To use `taxonomylist` you need to set your pages header with a taxonomy category and tag:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
taxonomy:
|
||||||
|
category: blog
|
||||||
|
tag: [tag1, tag2]
|
||||||
|
```
|
||||||
|
|
||||||
|
## Simple Include
|
||||||
|
|
||||||
|
The plugin provides a Twig template that you need to include in your theme. Something like:
|
||||||
|
|
||||||
|
```twig
|
||||||
|
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
|
||||||
|
```
|
||||||
|
|
||||||
|
Where `my_url` is the URL to link to where the collection can be filtered (e.g. `/blog`) and the `taxonomy` points to a specific taxonomy type to display (e.g. `tag`). This will display all tags throughout your site
|
||||||
|
|
||||||
|
## Child-only Include
|
||||||
|
|
||||||
|
You can also include pass an optional parameter that will show taxonomy for child-pages only:
|
||||||
|
|
||||||
|
```twig
|
||||||
|
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag', children_only: true} %}
|
||||||
|
```
|
||||||
|
|
||||||
|
> NOTE: If you want to see this plugin in action, have a look at our [Blog Site Skeleton](http://github.com/grav/grav-skeleton-blog-site/archive/master.zip)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Config Defaults
|
||||||
|
```
|
||||||
|
route: '/blog'
|
||||||
|
```
|
||||||
|
After Width: | Height: | Size: 13 KiB |
@@ -0,0 +1,34 @@
|
|||||||
|
name: Taxonomy List
|
||||||
|
version: 1.3.2
|
||||||
|
description: "With the **TaxonomyList plugin** you can easily create list of **taxonomy** items such as **tags**, **categories**, etc."
|
||||||
|
icon: tag
|
||||||
|
author:
|
||||||
|
name: Team Grav
|
||||||
|
email: devs@getgrav.org
|
||||||
|
url: http://getgrav.org
|
||||||
|
homepage: https://github.com/getgrav/grav-plugin-taxonomylist
|
||||||
|
demo: http://demo.getgrav.org/blog-skeleton
|
||||||
|
keywords: taxonomylist, plugin, taxonomy, list, tags, categories
|
||||||
|
bugs: https://github.com/getgrav/grav-plugin-taxonomylist/issues
|
||||||
|
license: MIT
|
||||||
|
|
||||||
|
form:
|
||||||
|
validation: strict
|
||||||
|
fields:
|
||||||
|
enabled:
|
||||||
|
type: toggle
|
||||||
|
label: Plugin status
|
||||||
|
highlight: 1
|
||||||
|
default: 0
|
||||||
|
options:
|
||||||
|
1: Enabled
|
||||||
|
0: Disabled
|
||||||
|
validate:
|
||||||
|
type: bool
|
||||||
|
|
||||||
|
route:
|
||||||
|
type: text
|
||||||
|
label: Route to blog
|
||||||
|
placeholder: /blog
|
||||||
|
validate:
|
||||||
|
pattern: "/([a-z\-_]+/?)+"
|
||||||
@@ -0,0 +1,88 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Grav\Plugin;
|
||||||
|
|
||||||
|
use Grav\Common\Grav;
|
||||||
|
|
||||||
|
class Taxonomylist
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $taxonomylist;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get taxonomy list with all tags of the site.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function get()
|
||||||
|
{
|
||||||
|
if (!$this->taxonomylist) {
|
||||||
|
$this->taxonomylist = $this->build(Grav::instance()['taxonomy']->taxonomy());
|
||||||
|
}
|
||||||
|
return $this->taxonomylist;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get taxonomy list with only tags of the child pages.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function getChildPagesTags()
|
||||||
|
{
|
||||||
|
$current = Grav::instance()['page'];
|
||||||
|
$taxonomies = [];
|
||||||
|
foreach ($current->children() as $child) {
|
||||||
|
foreach($this->build($child->taxonomy()) as $taxonomyName => $taxonomyValue) {
|
||||||
|
if (!isset($taxonomies[$taxonomyName])) {
|
||||||
|
$taxonomies[$taxonomyName] = $taxonomyValue;
|
||||||
|
} else {
|
||||||
|
foreach ($taxonomyValue as $value => $count) {
|
||||||
|
if (!isset($taxonomies[$taxonomyName][$value])) {
|
||||||
|
$taxonomies[$taxonomyName][$value] = $count;
|
||||||
|
} else {
|
||||||
|
$taxonomies[$taxonomyName][$value] += $count;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $taxonomies;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
* @param array $taxonomylist
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
protected function build(array $taxonomylist)
|
||||||
|
{
|
||||||
|
$cache = Grav::instance()['cache'];
|
||||||
|
$hash = hash('md5', serialize($taxonomylist));
|
||||||
|
$list = [];
|
||||||
|
|
||||||
|
if ($taxonomy = $cache->fetch($hash . 'x')) {
|
||||||
|
return $taxonomy;
|
||||||
|
} else {
|
||||||
|
foreach ($taxonomylist as $taxonomyName => $taxonomyValue) {
|
||||||
|
$partial = [];
|
||||||
|
foreach ($taxonomyValue as $key => $value) {
|
||||||
|
if (is_array($value)) {
|
||||||
|
$taxonomyValue[strval($key)] = count($value);
|
||||||
|
$partial[strval($key)] = count($value);
|
||||||
|
} else {
|
||||||
|
$partial[strval($value)] = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
arsort($partial);
|
||||||
|
$list[$taxonomyName] = $partial;
|
||||||
|
}
|
||||||
|
|
||||||
|
$cache->save($hash, $list);
|
||||||
|
|
||||||
|
return $list;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"project":"grav-plugin-taxonomylist",
|
||||||
|
"platforms":{
|
||||||
|
"grav":{
|
||||||
|
"nodes":{
|
||||||
|
"plugin":[
|
||||||
|
{
|
||||||
|
"source":"/",
|
||||||
|
"destination":"/user/plugins/taxonomylist"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
<?php
|
||||||
|
namespace Grav\Plugin;
|
||||||
|
|
||||||
|
use Grav\Common\Plugin;
|
||||||
|
use Grav\Plugin\Taxonomylist;
|
||||||
|
|
||||||
|
class TaxonomylistPlugin extends Plugin
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public static function getSubscribedEvents()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'onPluginsInitialized' => ['onPluginsInitialized', 0]
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize configuration
|
||||||
|
*/
|
||||||
|
public function onPluginsInitialized()
|
||||||
|
{
|
||||||
|
if ($this->isAdmin()) {
|
||||||
|
$this->active = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->enable([
|
||||||
|
'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0],
|
||||||
|
'onTwigSiteVariables' => ['onTwigSiteVariables', 0]
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add current directory to twig lookup paths.
|
||||||
|
*/
|
||||||
|
public function onTwigTemplatePaths()
|
||||||
|
{
|
||||||
|
$this->grav['twig']->twig_paths[] = __DIR__ . '/templates';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set needed variables to display the taxonomy list.
|
||||||
|
*/
|
||||||
|
public function onTwigSiteVariables()
|
||||||
|
{
|
||||||
|
require_once __DIR__ . '/classes/taxonomylist.php';
|
||||||
|
|
||||||
|
$twig = $this->grav['twig'];
|
||||||
|
$twig->twig_vars['taxonomylist'] = new Taxonomylist();
|
||||||
|
$twig->twig_vars['list_url'] = $this->config->get(
|
||||||
|
'site.blog.route',
|
||||||
|
$this->config->get('plugins.taxonomylist.route')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
enabled: true
|
||||||
|
route: '/blog'
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
|
||||||
|
|
||||||
|
{% if taxlist %}
|
||||||
|
<span class="tags">
|
||||||
|
{% for tax,value in taxlist[taxonomy] %}
|
||||||
|
{% set active = uri.param(taxonomy) == tax? 'active' : '' %}
|
||||||
|
<a class="{{ active }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
|
||||||
|
{% endfor %}
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
@@ -1,2 +1,24 @@
|
|||||||
|
* { box-sizing: border-box; }
|
||||||
|
|
||||||
/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGUuY3NzIiwic291cmNlcyI6WyJ0ZW1wbGF0ZS5zY3NzIl0sInNvdXJjZXNDb250ZW50IjpbIi8vY29uZmlndXJhdGlvblxuLy8gQGltcG9ydCBcImNvbmZpZ3VyYXRpb24vbWl4aW5cIjtcbi8vIEBpbXBvcnQgXCJjb25maWd1cmF0aW9uL2NvbmZpZ1wiO1xuXG4vL3Jlc2V0JFxuLy8gQGltcG9ydCBcInRlbXBsYXRlL3Jlc2V0XCI7XG5cbi8vIFR5cG9ncmFwaHlcbi8vIEBpbXBvcnQgXCJ0ZW1wbGF0ZS90eXBvZ3JhcGh5XCI7XG5cbi8vIEhlYWRlclxuLy8gQGltcG9ydCBcInRlbXBsYXRlL2hlYWRlclwiO1xuXG4vL3NlY3Rpb25cbi8vIEBpbXBvcnQgXCJ0ZW1wbGF0ZS9zZWN0aW9uXCI7XG4vLyBAaW1wb3J0IFwidGVtcGxhdGUvc2VjdGlvbi1tZWRpYS1xdWVyaWVzXCI7XG5cbi8vc2VjdGlvbmdyaWRcbi8vIEBpbXBvcnQgXCJ0ZW1wbGF0ZS9ncmlkXCI7XG5cbi8vIEZvb3RlclxuLy8gQGltcG9ydCBcInRlbXBsYXRlL2Zvb3RlclwiO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ== */
|
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline; }
|
||||||
|
|
||||||
|
html, body { font-size: 16px; }
|
||||||
|
|
||||||
|
/* HTML5 display-role reset for older browsers */
|
||||||
|
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
|
||||||
|
|
||||||
|
body { line-height: 1; margin: 0 10%; }
|
||||||
|
|
||||||
|
ol, ul { list-style: none; }
|
||||||
|
|
||||||
|
a { text-decoration: none; color: black; }
|
||||||
|
|
||||||
|
blockquote, q { quotes: none; }
|
||||||
|
|
||||||
|
img { width: 100%; height: 100%; vertical-align: bottom; }
|
||||||
|
|
||||||
|
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
|
||||||
|
|
||||||
|
table { border-collapse: collapse; border-spacing: 0; }
|
||||||
|
|
||||||
|
/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGUuY3NzIiwic291cmNlcyI6WyJ0ZW1wbGF0ZS5zY3NzIiwidGVtcGxhdGUvX3Jlc2V0LnNjc3MiXSwic291cmNlc0NvbnRlbnQiOlsiLy9jb25maWd1cmF0aW9uXG4vLyBAaW1wb3J0IFwiY29uZmlndXJhdGlvbi9taXhpblwiO1xuLy8gQGltcG9ydCBcImNvbmZpZ3VyYXRpb24vY29uZmlnXCI7XG5cbi8vcmVzZXQkXG5AaW1wb3J0IFwidGVtcGxhdGUvcmVzZXRcIjtcblxuLy8gVHlwb2dyYXBoeVxuLy8gQGltcG9ydCBcInRlbXBsYXRlL3R5cG9ncmFwaHlcIjtcblxuLy8gSGVhZGVyXG4vLyBAaW1wb3J0IFwidGVtcGxhdGUvaGVhZGVyXCI7XG5cbi8vc2VjdGlvblxuLy8gQGltcG9ydCBcInRlbXBsYXRlL3NlY3Rpb25cIjtcbi8vIEBpbXBvcnQgXCJ0ZW1wbGF0ZS9zZWN0aW9uLW1lZGlhLXF1ZXJpZXNcIjtcblxuLy9zZWN0aW9uZ3JpZFxuLy8gQGltcG9ydCBcInRlbXBsYXRlL2dyaWRcIjtcblxuLy8gRm9vdGVyXG4vLyBAaW1wb3J0IFwidGVtcGxhdGUvZm9vdGVyXCI7XG4iLCIqIHtcbiAgLXdlYmtpdC1ib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICAgICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG59XG5cbmh0bWwsIGJvZHksIGRpdiwgc3BhbiwgYXBwbGV0LCBvYmplY3QsIGlmcmFtZSxcbmgxLCBoMiwgaDMsIGg0LCBoNSwgaDYsIHAsIGJsb2NrcXVvdGUsIHByZSxcbmEsIGFiYnIsIGFjcm9ueW0sIGFkZHJlc3MsIGJpZywgY2l0ZSwgY29kZSxcbmRlbCwgZGZuLCBlbSwgaW1nLCBpbnMsIGtiZCwgcSwgcywgc2FtcCxcbnNtYWxsLCBzdHJpa2UsIHN0cm9uZywgc3ViLCBzdXAsIHR0LCB2YXIsXG5iLCB1LCBpLCBjZW50ZXIsXG5kbCwgZHQsIGRkLCBvbCwgdWwsIGxpLFxuZmllbGRzZXQsIGZvcm0sIGxhYmVsLCBsZWdlbmQsXG50YWJsZSwgY2FwdGlvbiwgdGJvZHksIHRmb290LCB0aGVhZCwgdHIsIHRoLCB0ZCxcbmFydGljbGUsIGFzaWRlLCBjYW52YXMsIGRldGFpbHMsIGVtYmVkLFxuZmlndXJlLCBmaWdjYXB0aW9uLCBmb290ZXIsIGhlYWRlciwgaGdyb3VwLFxubWVudSwgbmF2LCBvdXRwdXQsIHJ1YnksIHNlY3Rpb24sIHN1bW1hcnksXG50aW1lLCBtYXJrLCBhdWRpbywgdmlkZW8ge1xuXHRtYXJnaW46IDA7XG5cdHBhZGRpbmc6IDA7XG5cdGJvcmRlcjogMDtcblx0Zm9udC1zaXplOiAxMDAlXHQ7XG5cdHZlcnRpY2FsLWFsaWduOiBiYXNlbGluZTtcbn1cblxuaHRtbCwgYm9keXtcblx0Zm9udC1zaXplOiAxNnB4O1xufVxuLyogSFRNTDUgZGlzcGxheS1yb2xlIHJlc2V0IGZvciBvbGRlciBicm93c2VycyAqL1xuYXJ0aWNsZSwgYXNpZGUsIGRldGFpbHMsIGZpZ2NhcHRpb24sIGZpZ3VyZSxcbmZvb3RlciwgaGVhZGVyLCBoZ3JvdXAsIG1lbnUsIG5hdiwgc2VjdGlvbiB7XG5cdGRpc3BsYXk6IGJsb2NrO1xufVxuXG5ib2R5IHtcblx0bGluZS1oZWlnaHQ6IDE7XG5cdG1hcmdpbjogMCAxMCU7XG59XG5cbm9sLCB1bCB7XG5cdGxpc3Qtc3R5bGU6IG5vbmU7XG59XG5cbmF7XG5cdHRleHQtZGVjb3JhdGlvbjogbm9uZTtcblx0Y29sb3I6YmxhY2s7XG59XG5cbmJsb2NrcXVvdGUsIHEge1xuXHRxdW90ZXM6IG5vbmU7XG59XG5pbWd7XG5cdHdpZHRoOiAxMDAlO1xuXHRoZWlnaHQ6IDEwMCU7XG5cdHZlcnRpY2FsLWFsaWduOiBib3R0b207XG59XG5ibG9ja3F1b3RlOmJlZm9yZSwgYmxvY2txdW90ZTphZnRlcixcbnE6YmVmb3JlLCBxOmFmdGVyIHtcblx0Y29udGVudDogJyc7XG5cdGNvbnRlbnQ6IG5vbmU7XG59XG5cbnRhYmxlIHtcblx0Ym9yZGVyLWNvbGxhcHNlOiBjb2xsYXBzZTtcblx0Ym9yZGVyLXNwYWNpbmc6IDA7XG59XG4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFDQUEsQUFBQSxDQUFDLENBQUMsRUFDQSxrQkFBa0IsRUFBRSxVQUFVLEVBQ3RCLFVBQVUsRUFBRSxVQUFVLEdBQy9COztBQUVELEFBQUEsSUFBSSxFQUFFLElBQUksRUFBRSxHQUFHLEVBQUUsSUFBSSxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUM3QyxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFBRSxDQUFDLEVBQUUsVUFBVSxFQUFFLEdBQUcsRUFDMUMsQ0FBQyxFQUFFLElBQUksRUFBRSxPQUFPLEVBQUUsT0FBTyxFQUFFLEdBQUcsRUFBRSxJQUFJLEVBQUUsSUFBSSxFQUMxQyxHQUFHLEVBQUUsR0FBRyxFQUFFLEVBQUUsRUFBRSxHQUFHLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLElBQUksRUFDdkMsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxFQUFFLEVBQUUsR0FBRyxFQUN4QyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLEVBQ2YsRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQ3RCLFFBQVEsRUFBRSxJQUFJLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFDN0IsS0FBSyxFQUFFLE9BQU8sRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFDL0MsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsT0FBTyxFQUFFLEtBQUssRUFDdEMsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLE1BQU0sRUFDMUMsSUFBSSxFQUFFLEdBQUcsRUFBRSxNQUFNLEVBQUUsSUFBSSxFQUFFLE9BQU8sRUFBRSxPQUFPLEVBQ3pDLElBQUksRUFBRSxJQUFJLEVBQUUsS0FBSyxFQUFFLEtBQUssQ0FBQyxFQUN4QixNQUFNLEVBQUUsQ0FBQyxFQUNULE9BQU8sRUFBRSxDQUFDLEVBQ1YsTUFBTSxFQUFFLENBQUMsRUFDVCxTQUFTLEVBQUUsSUFBSyxFQUNoQixjQUFjLEVBQUUsUUFBUSxHQUN4Qjs7QUFFRCxBQUFBLElBQUksRUFBRSxJQUFJLENBQUEsRUFDVCxTQUFTLEVBQUUsSUFBSSxHQUNmOztBQUNELGlEQUFpRDtBQUNqRCxBQUFBLE9BQU8sRUFBRSxLQUFLLEVBQUUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQzNDLE1BQU0sRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLElBQUksRUFBRSxHQUFHLEVBQUUsT0FBTyxDQUFDLEVBQzFDLE9BQU8sRUFBRSxLQUFLLEdBQ2Q7O0FBRUQsQUFBQSxJQUFJLENBQUMsRUFDSixXQUFXLEVBQUUsQ0FBQyxFQUNkLE1BQU0sRUFBRSxLQUFLLEdBQ2I7O0FBRUQsQUFBQSxFQUFFLEVBQUUsRUFBRSxDQUFDLEVBQ04sVUFBVSxFQUFFLElBQUksR0FDaEI7O0FBRUQsQUFBQSxDQUFDLENBQUEsRUFDQSxlQUFlLEVBQUUsSUFBSSxFQUNyQixLQUFLLEVBQUMsS0FBSyxHQUNYOztBQUVELEFBQUEsVUFBVSxFQUFFLENBQUMsQ0FBQyxFQUNiLE1BQU0sRUFBRSxJQUFJLEdBQ1o7O0FBQ0QsQUFBQSxHQUFHLENBQUEsRUFDRixLQUFLLEVBQUUsSUFBSSxFQUNYLE1BQU0sRUFBRSxJQUFJLEVBQ1osY0FBYyxFQUFFLE1BQU0sR0FDdEI7O0FBQ0QsQUFBQSxVQUFVLEFBQUEsT0FBTyxFQUFFLFVBQVUsQUFBQSxNQUFNLEVBQ25DLENBQUMsQUFBQSxPQUFPLEVBQUUsQ0FBQyxBQUFBLE1BQU0sQ0FBQyxFQUNqQixPQUFPLEVBQUUsRUFBRSxFQUNYLE9BQU8sRUFBRSxJQUFJLEdBQ2I7O0FBRUQsQUFBQSxLQUFLLENBQUMsRUFDTCxlQUFlLEVBQUUsUUFBUSxFQUN6QixjQUFjLEVBQUUsQ0FBQyxHQUNqQiJ9 */
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
*{box-sizing:border-box}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{font-size:100%;margin:0;padding:0;vertical-align:baseline;border:0}body,html{font-size:16px}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1;margin:0 10%}ol,ul{list-style:none}a{text-decoration:none;color:#000}blockquote,q{quotes:none}img{width:100%;height:100%;vertical-align:bottom}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-spacing:0;border-collapse:collapse}
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
// @import "configuration/config";
|
// @import "configuration/config";
|
||||||
|
|
||||||
//reset$
|
//reset$
|
||||||
// @import "template/reset";
|
@import "template/reset";
|
||||||
|
|
||||||
// Typography
|
// Typography
|
||||||
// @import "template/typography";
|
// @import "template/typography";
|
||||||
|
|||||||
@@ -21,8 +21,6 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<section id="body-wrapper" class="section blog-listing">
|
|
||||||
<section class="container {{ grid_size }}">
|
|
||||||
|
|
||||||
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
||||||
{% include 'partials/breadcrumbs.html.twig' %}
|
{% include 'partials/breadcrumbs.html.twig' %}
|
||||||
@@ -49,13 +47,9 @@
|
|||||||
{% include 'partials/sidebar.html.twig' %}
|
{% include 'partials/sidebar.html.twig' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% endembed %}
|
{% endembed %}
|
||||||
</section>
|
|
||||||
</section>
|
|
||||||
<script>
|
<script>
|
||||||
//Bricklayer
|
//Bricklayer
|
||||||
var bricklayer = new Bricklayer(document.querySelector('.bricklayer'))
|
var bricklayer = new Bricklayer(document.querySelector('.bricklayer'))
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,22 +20,16 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<section id="body-wrapper" class="section blog-listing">
|
<section id="body-wrapper" class="section blog-listing">
|
||||||
<section class="container {{ grid_size }}">
|
<section class="container {{ grid_size }}">
|
||||||
|
{% embed 'partials/layout.html.twig' %}
|
||||||
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
{% block item %}
|
||||||
{% include 'partials/breadcrumbs.html.twig' %}
|
{% include 'partials/blog-item.html.twig' %}
|
||||||
{% endif %}
|
{% endblock %}
|
||||||
|
{% block sidebar %}
|
||||||
{% embed 'partials/layout.html.twig' %}
|
{% include 'partials/sidebar.html.twig' %}
|
||||||
{% block item %}
|
{% endblock %}
|
||||||
{% include 'partials/blog-item.html.twig' %}
|
{% endembed %}
|
||||||
{% endblock %}
|
</section>
|
||||||
{% block sidebar %}
|
</section>
|
||||||
{% include 'partials/sidebar.html.twig' %}
|
|
||||||
{% endblock %}
|
|
||||||
{% endembed %}
|
|
||||||
|
|
||||||
</section>
|
|
||||||
</section>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<link rel="canonical" href="{{ page.url(true, true) }}" />
|
<link rel="canonical" href="{{ page.url(true, true) }}" />
|
||||||
|
|
||||||
{% block stylesheets %}
|
{% block stylesheets %}
|
||||||
{% do assets.addCss('theme://css-compiled/template.css'~compress) %}
|
{% do assets.addCss('theme://css-compiled/template.min.css'~compress) %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{{ assets.css() }}
|
{{ assets.css() }}
|
||||||
@@ -29,79 +29,36 @@
|
|||||||
|
|
||||||
{% endblock head %}
|
{% endblock head %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="top" class="{% block body_classes %}{{ body_classes }}{% endblock %}">
|
<body id="top" class="{% block body_classes %}{{ body_classes }}{% endblock %}">
|
||||||
<div id="page-wrapper">
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<section id="header" class="section">
|
<header class="section">
|
||||||
<section class="container {{ grid_size }}">
|
<h1><a href="{{ base_url == '' ? '/' : base_url }}">{{ config.site.title }}</a></h1>
|
||||||
<nav class="navbar">
|
<nav class="navbar">
|
||||||
<section class="navbar-section logo">
|
{% block header_navigation %}
|
||||||
<a href="{{ home_url }}" class="navbar-brand mr-10">{% include('@images/grav-logo.svg') %}</a>
|
{% include 'partials/navigation.html.twig' %}
|
||||||
</section>
|
{% include 'partials/taxonomylist.html.twig' with { taxonomy: 'tag'} %}
|
||||||
<section class="navbar-section">
|
{% endblock %}
|
||||||
|
</nav>
|
||||||
<nav class="dropmenu animated">
|
</header>
|
||||||
{% block header_navigation %}
|
|
||||||
{% include 'partials/navigation.html.twig' %}
|
|
||||||
{% endblock %}
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
{% if config.plugins.login.enabled and grav.user.username %}
|
|
||||||
<span class="login-status-wrapper"><i class="fa fa-user"></i> {% include 'partials/login-status.html.twig' %}</span>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
</section>
|
|
||||||
</nav>
|
|
||||||
</section>
|
|
||||||
</section>
|
|
||||||
<div class="mobile-menu">
|
|
||||||
<div class="button_container" id="toggle">
|
|
||||||
<span class="top"></span>
|
|
||||||
<span class="middle"></span>
|
|
||||||
<span class="bottom"></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block hero %}{% endblock %}
|
|
||||||
|
|
||||||
<section id="start">
|
<section id="start">
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<section id="body-wrapper" class="section">
|
<section id="body-wrapper" class="section">
|
||||||
<section class="container {{ grid_size }}">
|
<section class="container {{ grid_size }}">
|
||||||
{% block messages %}
|
|
||||||
{% include 'partials/messages.html.twig' ignore missing %}
|
|
||||||
{% endblock %}
|
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% block footer %}
|
{% block footer %}{% endblock %}
|
||||||
<section id="footer" class="section bg-gray">
|
|
||||||
<section class="container {{ grid_size }}">
|
|
||||||
<p><a href="http://getgrav.org">Grav</a> was <i class="fa fa-code"></i> with <i class="fa fa-heart-o pulse "></i> by <a href="https://trilby.media">Trilby Media</a>.</p>
|
|
||||||
</section>
|
|
||||||
</section>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
{% block bottom %}
|
||||||
<div class="mobile-container">
|
{{ assets.js('bottom') }}
|
||||||
<div class="overlay" id="overlay">
|
{% endblock %}
|
||||||
<div class="mobile-logo">
|
|
||||||
{% include('@images/grav-logo.svg') %}
|
|
||||||
</div>
|
|
||||||
<nav class="overlay-menu">
|
|
||||||
{% include 'partials/navigation.html.twig' with {tree: true} %}
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% block bottom %}
|
|
||||||
{{ assets.js('bottom') }}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -6,25 +6,34 @@
|
|||||||
{% if page.header.subtitle %}
|
{% if page.header.subtitle %}
|
||||||
<h3 >{{ page.header.subtitle }}</h3>
|
<h3 >{{ page.header.subtitle }}</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include 'partials/blog/date.html.twig' %}
|
|
||||||
{% include 'partials/blog/taxonomy.html.twig' %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="e-content">
|
<div class="e-content">
|
||||||
|
<div class="txt">
|
||||||
{{ page.content }}
|
{{ page.content }}
|
||||||
|
|
||||||
|
<div class="taxonomy">
|
||||||
|
{% include 'partials/blog/taxonomy.html.twig' %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="media">
|
||||||
|
{% for image in page.media.images %}
|
||||||
|
{{ image.html }}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if page.header.continue_link is sameas(true) and config.plugins.comments.enabled %}
|
{% if page.header.continue_link is sameas(true) and config.plugins.comments.enabled %}
|
||||||
{% include 'partials/comments.html.twig' %}
|
{% include 'partials/comments.html.twig' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="prev-next text-center">
|
<p class="prev-next text-center">
|
||||||
|
|
||||||
|
|
||||||
{% if not page.isLast %}
|
{% if not page.isLast %}
|
||||||
<a class="btn" href="{{ page.prevSibling.url }}"><i class="fa fa-angle-left"></i> {{ 'BLOG.ITEM.PREV_POST'|t }}</a>
|
<a class="btn" href="{{ page.prevSibling.url }}"><i class="fa fa-angle-left"></i> {{ 'BLOG.ITEM.PREV_POST'|t }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -1,27 +1,15 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
{% set image = page.media.images|first %}
|
{% set image = page.media.images|first %}
|
||||||
|
|
||||||
{% if image %}
|
{% if image %}
|
||||||
<div class="card-image">
|
<div class="card-image">
|
||||||
<a href="{{ page.url }}">{{ image.cropZoom(800,400).html }}</a>
|
<a href="{{ page.url }}">{{ image.cropZoom(800,400).html }}</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="card-header">
|
|
||||||
<div class="card-subtitle text-gray">
|
<div class="card-title">
|
||||||
{% include 'partials/blog/date.html.twig' %}
|
<div class="card-subtitle text-gray">
|
||||||
</div>
|
{% include 'partials/blog/title.html.twig' %}
|
||||||
<div class="card-title">
|
</div>
|
||||||
{% include 'partials/blog/title.html.twig' with {title_level: 'h5'} %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="card-body">
|
|
||||||
{% if page.summary != page.content %}
|
|
||||||
{{ page.summary }}
|
|
||||||
{% else %}
|
|
||||||
{{ page.content }}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
<div class="card-footer">
|
|
||||||
{% include 'partials/blog/taxonomy.html.twig' %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,6 @@
|
|||||||
{% set item_col = show_sidebar ? 'col-9 col-md-12' : 'col-12' %}
|
{% set item_col = show_sidebar ? 'col-9 col-md-12' : 'col-12' %}
|
||||||
{% set sidebar_col = show_sidebar ? 'col-3 col-md-12' : 'col-12' %}
|
{% set sidebar_col = show_sidebar ? 'col-3 col-md-12' : 'col-12' %}
|
||||||
|
|
||||||
<div class="columns">
|
<div id="items" class="column {{ item_col }} extra-spacing">
|
||||||
<div id="item" class="column {{ item_col }} extra-spacing">
|
|
||||||
{% block item %}{% endblock %}
|
{% block item %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
{% if show_sidebar %}
|
|
||||||
<div id="sidebar" class="column {{ sidebar_col }}">
|
|
||||||
{% block sidebar %}{% endblock %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,24 +3,23 @@
|
|||||||
{% set active_page = (p.active or p.activeChild) ? 'active' : '' %}
|
{% set active_page = (p.active or p.activeChild) ? 'active' : '' %}
|
||||||
{% if p.children.visible.count > 0 %}
|
{% if p.children.visible.count > 0 %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ p.url }}" class="{{ active_page }}">
|
<a href="{{ p.url }}" class="{{ active_page }}">
|
||||||
{{ p.menu }}
|
{{ p.menu }}
|
||||||
</a>
|
</a>
|
||||||
<ul>
|
|
||||||
{{ _self.nav_loop(p) }}
|
|
||||||
</ul>
|
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ p.url }}" class="{{ active_page }}">
|
<a href="{{ p.url }}" class="{{ active_page }}">
|
||||||
{{ p.menu }}
|
{{ p.menu }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
<ul {{ tree ? 'class="tree"' : '' }}>
|
<ul {{ tree ? 'class="tree"' : '' }}>
|
||||||
{{ _self.nav_loop(pages) }}
|
{{ _self.nav_loop(pages) }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
|
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
|
||||||
|
|
||||||
{% if taxlist %}
|
{% if taxlist %}
|
||||||
<span class="tags">
|
<ul class="tags">
|
||||||
{% for tax,value in taxlist[taxonomy] %}
|
{% for tax,value in taxlist[taxonomy] %}
|
||||||
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
|
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
|
||||||
<a class="label label-rounded {{ label_class }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
|
<li>
|
||||||
|
<a href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
|
||||||
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</span>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||