123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577 |
- <?php
- return [
- '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
- 'filename' => '/home/kevin/Documents/Sites/hehe.net/user/plugins/admin/blueprints.yaml',
- 'modified' => 1546440944,
- 'data' => [
- 'name' => 'Admin Panel',
- 'version' => '1.8.15',
- 'description' => 'Adds an advanced administration panel to manage your site',
- 'icon' => 'empire',
- 'author' => [
- 'name' => 'Team Grav',
- 'email' => 'devs@getgrav.org',
- 'url' => 'http://getgrav.org'
- ],
- 'homepage' => 'https://github.com/getgrav/grav-plugin-admin',
- 'keywords' => 'admin, plugin, manager, panel',
- 'bugs' => 'https://github.com/getgrav/grav-plugin-admin/issues',
- 'docs' => 'https://github.com/getgrav/grav-plugin-admin/blob/develop/README.md',
- 'license' => 'MIT',
- 'dependencies' => [
- 0 => [
- 'name' => 'grav',
- 'version' => '>=1.5.3'
- ],
- 1 => [
- 'name' => 'form',
- 'version' => '>=2.14.0'
- ],
- 2 => [
- 'name' => 'login',
- 'version' => '>=2.7.0'
- ],
- 3 => [
- 'name' => 'email',
- 'version' => '>=2.7.0'
- ]
- ],
- 'form' => [
- 'validation' => 'loose',
- 'fields' => [
- 'Basics' => [
- 'type' => 'section',
- 'title' => 'Basics',
- 'underline' => false
- ],
- 'enabled' => [
- 'type' => 'hidden',
- 'label' => 'PLUGIN_ADMIN.PLUGIN_STATUS',
- 'highlight' => 1,
- 'default' => 0,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'cache_enabled' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_ADMIN.ADMIN_CACHING',
- 'help' => 'PLUGIN_ADMIN.ADMIN_CACHING_HELP',
- 'highlight' => 0,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.YES',
- 0 => 'PLUGIN_ADMIN.NO'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'twofa_enabled' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_ADMIN.2FA_TITLE',
- 'help' => 'PLUGIN_ADMIN.2FA_ENABLED_HELP',
- 'default' => 1,
- 'highlight' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.YES',
- 0 => 'PLUGIN_ADMIN.NO'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'route' => [
- 'type' => 'text',
- 'label' => 'Administrator path',
- 'size' => 'medium',
- 'placeholder' => 'Default route for administrator (relative to base)',
- 'help' => 'If you want to change the URL for the administrator, you can provide a path here'
- ],
- 'logo_text' => [
- 'type' => 'text',
- 'label' => 'Logo text',
- 'size' => 'medium',
- 'placeholder' => 'Grav',
- 'help' => 'Text to display in place of the default Grav logo'
- ],
- 'content_padding' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_ADMIN.CONTENT_PADDING',
- 'help' => 'PLUGIN_ADMIN.CONTENT_PADDING_HELP',
- 'highlight' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.YES',
- 0 => 'PLUGIN_ADMIN.NO'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'body_classes' => [
- 'type' => 'text',
- 'label' => 'Body classes',
- 'size' => 'medium',
- 'help' => 'Add a space separated name of custom body classes'
- ],
- 'sidebar.activate' => [
- 'type' => 'select',
- 'label' => 'Sidebar Activation',
- 'help' => 'Control how the sidebar is activated',
- 'size' => 'small',
- 'default' => 'tab',
- 'options' => [
- 'tab' => 'Tab',
- 'hover' => 'Hover'
- ]
- ],
- 'sidebar.hover_delay' => [
- 'type' => 'text',
- 'size' => 'x-small',
- 'append' => 'millseconds',
- 'label' => 'Hover delay',
- 'default' => 500,
- 'validate' => [
- 'type' => 'number',
- 'min' => 1
- ]
- ],
- 'sidebar.size' => [
- 'type' => 'select',
- 'label' => 'Sidebar Size',
- 'help' => 'Control the width of the sidebar',
- 'size' => 'medium',
- 'default' => 'auto',
- 'options' => [
- 'auto' => 'Automatic width',
- 'small' => 'Small width'
- ]
- ],
- 'theme' => [
- 'type' => 'hidden',
- 'label' => 'Theme',
- 'default' => 'grav'
- ],
- 'edit_mode' => [
- 'type' => 'select',
- 'label' => 'Edit mode',
- 'size' => 'small',
- 'default' => 'normal',
- 'options' => [
- 'normal' => 'Normal',
- 'expert' => 'Expert'
- ],
- 'help' => 'Auto will use blueprint if available, if none found, it will use "Expert" mode.'
- ],
- 'frontend_preview_target' => [
- 'type' => 'select',
- 'label' => 'Preview pages target',
- 'size' => 'medium',
- 'default' => 'inline',
- 'options' => [
- 'inline' => 'Inline in Admin',
- '_blank' => 'New tab',
- '_self' => 'Current tab'
- ]
- ],
- 'pages.show_parents' => [
- 'type' => 'select',
- 'size' => 'medium',
- 'label' => 'Parent dropdown',
- 'highlight' => 1,
- 'options' => [
- 'both' => 'Show slug and folder',
- 'folder' => 'Show folder',
- 'fullpath' => 'Show fullpath'
- ]
- ],
- 'pages.parents_levels' => [
- 'type' => 'text',
- 'label' => 'Parents Levels',
- 'size' => 'small',
- 'help' => 'The number of levels to show in parent select list'
- ],
- 'google_fonts' => [
- 'type' => 'toggle',
- 'label' => 'Use Google Fonts',
- 'highlight' => 0,
- 'default' => 0,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ],
- 'help' => 'Use Google custom fonts. Disable this to use Helvetica. Useful when using Cyrillic and other languages with unsupported characters.'
- ],
- 'admin_icons' => [
- 'type' => 'select',
- 'size' => 'medium',
- 'label' => 'Icon Style',
- 'default' => 'line-awesome',
- 'options' => [
- 'line-awesome' => 'Lighter Line Icons (LineAwesome)',
- 'font-awesome' => 'Darker Solid Icons (FontAwesome)'
- ]
- ],
- 'show_beta_msg' => [
- 'type' => 'hidden'
- ],
- 'show_github_msg' => [
- 'type' => 'toggle',
- 'label' => 'Show GitHub Link',
- 'highlight' => 1,
- 'default' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ],
- 'help' => 'Show the "Found an issue? Please report it on GitHub." message.'
- ],
- 'pages_list_display_field' => [
- 'type' => 'text',
- 'size' => 'small',
- 'label' => 'Pages List Display Field',
- 'help' => 'Field of the page to use in the list of pages if present. Defaults/Fallback to title.'
- ],
- 'enable_auto_updates_check' => [
- 'type' => 'toggle',
- 'label' => 'Automatically check for updates',
- 'highlight' => 1,
- 'default' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ],
- 'help' => 'Shows an informative message, in the admin panel, when an update is available.'
- ],
- 'session.timeout' => [
- 'type' => 'text',
- 'size' => 'small',
- 'label' => 'Session Timeout',
- 'append' => 'secs',
- 'help' => 'Sets the session timeout in seconds',
- 'validate' => [
- 'type' => 'number',
- 'min' => 1
- ]
- ],
- 'warnings.delete_page' => [
- 'type' => 'toggle',
- 'label' => 'Warn on page delete',
- 'highlight' => 1,
- 'default' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ],
- 'help' => 'Ask the user confirmation when deleting a page'
- ],
- 'hide_page_types' => [
- 'type' => 'array',
- 'label' => 'Hide page types in Admin',
- 'value_only' => true
- ],
- 'hide_modular_page_types' => [
- 'type' => 'array',
- 'label' => 'Hide modular page types in Admin',
- 'value_only' => true
- ],
- 'MediaResize' => [
- 'type' => 'section',
- 'title' => 'Page Media Image Resizer',
- 'underline' => true
- ],
- 'MediaResizeNote' => [
- 'type' => 'spacer',
- 'text' => 'PLUGIN_ADMIN.PAGEMEDIA_RESIZER',
- 'markdown' => true
- ],
- 'pagemedia.resize_width' => [
- 'type' => 'number',
- 'size' => 'x-small',
- 'append' => 'pixels',
- 'label' => 'Resize Width',
- 'default' => 0,
- 'validate' => [
- 'type' => 'number'
- ],
- 'help' => 'Resize wide images down to the set value'
- ],
- 'pagemedia.resize_height' => [
- 'type' => 'number',
- 'size' => 'x-small',
- 'append' => 'pixels',
- 'label' => 'Resize Height',
- 'default' => 0,
- 'validate' => [
- 'type' => 'number'
- ],
- 'help' => 'Resize tall images down to the set value'
- ],
- 'pagemedia.res_min_width' => [
- 'type' => 'number',
- 'size' => 'x-small',
- 'append' => 'pixels',
- 'label' => 'Resolution Min Width',
- 'default' => 0,
- 'validate' => [
- 'type' => 'number'
- ],
- 'help' => 'The minimum width allowed for an image to be added'
- ],
- 'pagemedia.res_min_height' => [
- 'type' => 'number',
- 'size' => 'x-small',
- 'append' => 'pixels',
- 'label' => 'Resolution Min Height',
- 'default' => 0,
- 'validate' => [
- 'type' => 'number'
- ],
- 'help' => 'The minimum height allowed for an image to be added'
- ],
- 'pagemedia.res_max_width' => [
- 'type' => 'number',
- 'size' => 'x-small',
- 'append' => 'pixels',
- 'label' => 'Resolution Max Width',
- 'default' => 0,
- 'validate' => [
- 'type' => 'number'
- ],
- 'help' => 'The maximum width allowed for an image to be added'
- ],
- 'pagemedia.res_max_height' => [
- 'type' => 'number',
- 'size' => 'x-small',
- 'append' => 'pixels',
- 'label' => 'Resolution Max Height',
- 'default' => 0,
- 'validate' => [
- 'type' => 'number'
- ],
- 'help' => 'The maximum height allowed for an image to be added'
- ],
- 'pagemedia.resize_quality' => [
- 'type' => 'number',
- 'size' => 'x-small',
- 'append' => '0...1',
- 'label' => 'Resize Quality',
- 'default' => 0.8,
- 'validate' => [
- 'type' => 'number',
- 'step' => 0.01
- ],
- 'help' => 'The quality to use when resizing an image. Between 0 and 1 value.'
- ],
- 'Dashboard' => [
- 'type' => 'section',
- 'title' => 'Dashboard',
- 'underline' => true
- ],
- 'widgets.dashboard-maintenance' => [
- 'type' => 'toggle',
- 'label' => 'Maintenance Widget',
- 'highlight' => 1,
- 'default' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ],
- 'help' => 'Display dashboard maintenance widget'
- ],
- 'widgets.dashboard-statistics' => [
- 'type' => 'toggle',
- 'label' => 'Statistics Widget',
- 'highlight' => 1,
- 'default' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ],
- 'help' => 'Display dashboard statistics widget'
- ],
- 'widgets.dashboard-notifications' => [
- 'type' => 'toggle',
- 'label' => 'Notifications Feed Widget',
- 'highlight' => 1,
- 'default' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ],
- 'help' => 'Display dashboard notifications feed widget'
- ],
- 'widgets.dashboard-feed' => [
- 'type' => 'toggle',
- 'label' => 'News Feed Widget',
- 'highlight' => 1,
- 'default' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ],
- 'help' => 'Display dashboard news feed widget'
- ],
- 'widgets.dashboard-pages' => [
- 'type' => 'toggle',
- 'label' => 'Latest Pages Widget',
- 'highlight' => 1,
- 'default' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ],
- 'help' => 'Display dashboard latest pages widget'
- ],
- 'Notifications' => [
- 'type' => 'section',
- 'title' => 'Notifications',
- 'underline' => true
- ],
- 'notifications.feed' => [
- 'type' => 'toggle',
- 'label' => 'Feed Notifications',
- 'highlight' => 1,
- 'default' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ],
- 'help' => 'Display feed-based notifications'
- ],
- 'notifications.dashboard' => [
- 'type' => 'toggle',
- 'label' => 'Dashboard Notifications',
- 'highlight' => 1,
- 'default' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ],
- 'help' => 'Display dashboard-based notifications'
- ],
- 'notifications.plugins' => [
- 'type' => 'toggle',
- 'label' => 'Plugins Notifications',
- 'highlight' => 1,
- 'default' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ],
- 'help' => 'Display plugins-targeted notifications'
- ],
- 'notifications.themes' => [
- 'type' => 'toggle',
- 'label' => 'Themes Notifications',
- 'highlight' => 1,
- 'default' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ],
- 'help' => 'Display themes-targeted notifications'
- ],
- 'Popularity' => [
- 'type' => 'section',
- 'title' => 'Popularity',
- 'underline' => true
- ],
- 'popularity.enabled' => [
- 'type' => 'toggle',
- 'label' => 'Visitor tracking',
- 'highlight' => 1,
- 'default' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ],
- 'help' => 'Enable the visitors stats collecting feature'
- ],
- 'dashboard.days_of_stats' => [
- 'type' => 'text',
- 'label' => 'Days of stats',
- 'append' => 'days',
- 'size' => 'x-small',
- 'default' => 7,
- 'help' => 'Keep stats for the specified number of days, then drop them',
- 'validate' => [
- 'type' => 'int'
- ]
- ],
- 'popularity.ignore' => [
- 'type' => 'array',
- 'label' => 'Ignore',
- 'size' => 'large',
- 'help' => 'URLs to ignore',
- 'default' => [
- 0 => '/test*',
- 1 => '/modular'
- ],
- 'value_only' => true,
- 'placeholder_value' => '/ignore-this-route'
- ],
- 'popularity.history.daily' => [
- 'type' => 'hidden',
- 'label' => 'Daily history',
- 'default' => 30
- ],
- 'popularity.history.monthly' => [
- 'type' => 'hidden',
- 'label' => 'Monthly history',
- 'default' => 12
- ],
- 'popularity.history.visitors' => [
- 'type' => 'hidden',
- 'label' => 'Visitors history',
- 'default' => 20
- ]
- ]
- ]
- ]
- ];
|