first commit
							
								
								
									
										70
									
								
								system/assets/debugger.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,70 @@ | ||||
| div.phpdebugbar { | ||||
|     font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||||
| } | ||||
|  | ||||
| .phpdebugbar pre { | ||||
|     padding: 1rem; | ||||
| } | ||||
|  | ||||
| .phpdebugbar div.phpdebugbar-header > div > * { | ||||
|     padding: 5px 15px; | ||||
| } | ||||
|  | ||||
| .phpdebugbar div.phpdebugbar-header > div.phpdebugbar-header-right > * { | ||||
|     padding: 5px 8px; | ||||
| } | ||||
|  | ||||
| .phpdebugbar div.phpdebugbar-header, .phpdebugbar a.phpdebugbar-restore-btn { | ||||
|     background-image: url(grav.png); | ||||
| } | ||||
|  | ||||
| .phpdebugbar a.phpdebugbar-restore-btn { | ||||
|     width: 13px; | ||||
| } | ||||
|  | ||||
| .phpdebugbar a.phpdebugbar-tab.phpdebugbar-active { | ||||
|     background: #3DB9EC; | ||||
|     color: #fff; | ||||
|     margin-top: -1px; | ||||
|     padding-top: 6px; | ||||
| } | ||||
|  | ||||
| .phpdebugbar .phpdebugbar-widgets-toolbar { | ||||
|     border-top: 1px solid #ddd; | ||||
|     padding-left: 5px; | ||||
|     padding-right: 2px; | ||||
|     padding-top: 2px; | ||||
|     background-color: #fafafa !important; | ||||
|     width: auto !important; | ||||
|     left: 0; | ||||
|     right: 0; | ||||
| } | ||||
|  | ||||
| .phpdebugbar .phpdebugbar-widgets-toolbar input { | ||||
|     background: transparent !important; | ||||
| } | ||||
|  | ||||
| .phpdebugbar .phpdebugbar-widgets-toolbar .phpdebugbar-widgets-filter { | ||||
|  | ||||
| } | ||||
|  | ||||
|  | ||||
| .phpdebugbar input[type=text] { | ||||
|     padding: 0; | ||||
|     display: inline; | ||||
| } | ||||
|  | ||||
| .phpdebugbar dl.phpdebugbar-widgets-varlist, ul.phpdebugbar-widgets-timeline li span.phpdebugbar-widgets-label { | ||||
|     font-family: "DejaVu Sans Mono", Menlo, Monaco, Consolas, Courier, monospace; | ||||
|     font-size: 12px; | ||||
| } | ||||
|  | ||||
| ul.phpdebugbar-widgets-timeline li span.phpdebugbar-widgets-label { | ||||
|     text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff; | ||||
|     top: 0; | ||||
| } | ||||
|  | ||||
| .phpdebugbar pre, .phpdebugbar code { | ||||
|     margin: 0; | ||||
|     font-size: 14px; | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								system/assets/grav.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 4.1 KiB | 
							
								
								
									
										4
									
								
								system/assets/jquery/jquery-2.1.4.min.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										4
									
								
								system/assets/jquery/jquery-2.x.min.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										2
									
								
								system/assets/jquery/jquery-3.x.min.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								system/assets/responsive-overlays/1x.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/assets/responsive-overlays/2x.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 7.4 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/assets/responsive-overlays/3x.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 13 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/assets/responsive-overlays/4x.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 15 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/assets/responsive-overlays/unknown.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 5.1 KiB | 
							
								
								
									
										19
									
								
								system/assets/whoops.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,19 @@ | ||||
| body header { | ||||
|     background: #3085EE; | ||||
| } | ||||
|  | ||||
| body .left-panel { | ||||
|     background: inherit; | ||||
| } | ||||
|  | ||||
| body .exc-title-primary { | ||||
|     color: #fff; | ||||
| } | ||||
|  | ||||
| body .exc-title { | ||||
|     color: #ddd; | ||||
| } | ||||
|  | ||||
| body .frame:not(.active):hover { | ||||
|     background: #e6e6e6; | ||||
| } | ||||
							
								
								
									
										125
									
								
								system/blueprints/config/backups.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,125 @@ | ||||
| title: PLUGIN_ADMIN.BACKUPS | ||||
|  | ||||
| form: | ||||
|     validation: loose | ||||
|  | ||||
|     fields: | ||||
|         history_title: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.BACKUPS_HISTORY | ||||
|             underline: true | ||||
|  | ||||
|         history: | ||||
|             type: backupshistory | ||||
|  | ||||
|         config_title: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.BACKUPS_PURGE_CONFIG | ||||
|             underline: true | ||||
|  | ||||
|         purge.trigger: | ||||
|             type: select | ||||
|             label: PLUGIN_ADMIN.BACKUPS_STORAGE_PURGE_TRIGGER | ||||
|             size: medium | ||||
|             default: space | ||||
|             options: | ||||
|                 space: Maximum Backup Space | ||||
|                 number: Maximum Number of Backups | ||||
|                 time: maximum Retention Time | ||||
|             validate: | ||||
|                 required: true | ||||
|  | ||||
|         purge.max_backups_count: | ||||
|             type: number | ||||
|             label: PLUGIN_ADMIN.BACKUPS_MAX_COUNT | ||||
|             default: 25 | ||||
|             size: x-small | ||||
|             help: PLUGIN_ADMIN.BACKUPS_MAX_COUNT | ||||
|             validate: | ||||
|                 min: 0 | ||||
|                 type: number | ||||
|                 required: true | ||||
|                 message: Must be a number 0 or greater | ||||
|  | ||||
|         purge.max_backups_space: | ||||
|             type: number | ||||
|             label: PLUGIN_ADMIN.BACKUPS_MAX_SPACE | ||||
|             append: in GB | ||||
|             size: x-small | ||||
|             default: 5 | ||||
|             validate: | ||||
|                 min: 1 | ||||
|                 type: number | ||||
|                 required: true | ||||
|                 message: Space must be 1GB or greater | ||||
|  | ||||
|         purge.max_backups_time: | ||||
|             type: number | ||||
|             label: PLUGIN_ADMIN.BACKUPS_MAX_RETENTION_TIME | ||||
|             append: PLUGIN_ADMIN.BACKUPS_MAX_RETENTION_TIME_APPEND | ||||
|             size: x-small | ||||
|             default: 365 | ||||
|             validate: | ||||
|                 min: 7 | ||||
|                 type: number | ||||
|                 required: true | ||||
|                 message: Rentenion days must be 7 or greater | ||||
|  | ||||
|         profiles_title: | ||||
|           type: section | ||||
|           title: PLUGIN_ADMIN.BACKUPS_PROFILES | ||||
|           underline: true | ||||
|  | ||||
|         profiles: | ||||
|           type: list | ||||
|           style: vertical | ||||
|           label: | ||||
|           classes: backups-list compact | ||||
|           sort: false | ||||
|  | ||||
|           fields: | ||||
|             .name: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.NAME | ||||
|               placeholder: PLUGIN_ADMIN.BACKUPS_PROFILE_NAME | ||||
|               validate: | ||||
|                   max: 20 | ||||
|                   message: 'Name must be less than 20 characters' | ||||
|                   required: true | ||||
|             .root: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.BACKUPS_PROFILE_ROOT_FOLDER | ||||
|               help: PLUGIN_ADMIN.BACKUPS_PROFILE_ROOT_FOLDER_HELP | ||||
|               placeholder: '/' | ||||
|               default: '/' | ||||
|               validate: | ||||
|                   required: true | ||||
|             .exclude_paths: | ||||
|               type: textarea | ||||
|               label: PLUGIN_ADMIN.BACKUPS_PROFILE_EXCLUDE_PATHS | ||||
|               rows: 5 | ||||
|               placeholder: "/backup\r/cache\r/images\r/logs\r/tmp" | ||||
|               help: PLUGIN_ADMIN.BACKUPS_PROFILE_EXCLUDE_PATHS_HELP | ||||
|             .exclude_files: | ||||
|                 type: textarea | ||||
|                 label: PLUGIN_ADMIN.BACKUPS_PROFILE_EXCLUDE_FILES | ||||
|                 rows: 5 | ||||
|                 placeholder: ".DS_Store\r.git\r.svn\r.hg\r.idea\r.vscode\rnode_modules" | ||||
|                 help: PLUGIN_ADMIN.BACKUPS_PROFILE_EXCLUDE_FILES_HELP | ||||
|             .schedule: | ||||
|                 type: toggle | ||||
|                 label: PLUGIN_ADMIN.BACKUPS_PROFILE_SCHEDULE | ||||
|                 highlight: 1 | ||||
|                 default: 1 | ||||
|                 options: | ||||
|                     1: PLUGIN_ADMIN.YES | ||||
|                     0: PLUGIN_ADMIN.NO | ||||
|                 validate: | ||||
|                     type: bool | ||||
|             .schedule_at: | ||||
|                 type: cron | ||||
|                 label: PLUGIN_ADMIN.BACKUPS_PROFILE_SCHEDULE_AT | ||||
|                 default: '* 3 * * *' | ||||
|                 validate: | ||||
|                     required: true | ||||
|  | ||||
							
								
								
									
										5
									
								
								system/blueprints/config/media.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,5 @@ | ||||
| title: PLUGIN_ADMIN.MEDIA | ||||
|  | ||||
| form: | ||||
|   validation: loose | ||||
|   fields: | ||||
							
								
								
									
										76
									
								
								system/blueprints/config/scheduler.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,76 @@ | ||||
| title: PLUGIN_ADMIN.SCHEDULER | ||||
|  | ||||
| form: | ||||
|     validation: loose | ||||
|  | ||||
|     fields: | ||||
|  | ||||
|         status_title: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.SCHEDULER_STATUS | ||||
|             underline: true | ||||
|  | ||||
|         status: | ||||
|             type: cronstatus | ||||
|             validate: | ||||
|                 type: commalist | ||||
|  | ||||
|         jobs_title: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.SCHEDULER_JOBS | ||||
|             underline: true | ||||
|  | ||||
|         custom_jobs: | ||||
|           type: list | ||||
|           style: vertical | ||||
|           label: | ||||
|           classes: cron-job-list compact | ||||
|           key: id | ||||
|           fields: | ||||
|             .id: | ||||
|               type: key | ||||
|               label: ID | ||||
|               placeholder: 'process-name' | ||||
|               validate: | ||||
|                   required: true | ||||
|                   pattern: '[a-zа-я0-9_\-]+' | ||||
|                   max: 20 | ||||
|                   message: 'ID must be lowercase with dashes/underscores only and less than 20 characters' | ||||
|             .command: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.COMMAND | ||||
|               placeholder: 'cd ~;ls -lah;' | ||||
|               validate: | ||||
|                   required: true | ||||
|             .args: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.EXTRA_ARGUMENTS | ||||
|             .at: | ||||
|               type: cron | ||||
|               label: PLUGIN_ADMIN.SCHEDULER_RUNAT | ||||
|               help: PLUGIN_ADMIN.SCHEDULER_RUNAT_HELP | ||||
|               placeholder: '* * * * *' | ||||
|               validate: | ||||
|                   required: true | ||||
|             .output: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.SCHEDULER_OUTPUT | ||||
|               help: PLUGIN_ADMIN.SCHEDULER_OUTPUT_HELP | ||||
|               placeholder: 'logs/ls-cron.out' | ||||
|             .output_mode: | ||||
|               type: select | ||||
|               label: PLUGIN_ADMIN.SCHEDULER_OUTPUT_TYPE | ||||
|               help: PLUGIN_ADMIN.SCHEDULER_OUTPUT_TYPE_HELP | ||||
|               default: append | ||||
|               options: | ||||
|                   append: Append | ||||
|                   overwrite: Overwrite | ||||
|             .email: | ||||
|                 type: text | ||||
|                 label: PLUGIN_ADMIN.SCHEDULER_EMAIL | ||||
|                 help: PLUGIN_ADMIN.SCHEDULER_EMAIL_HELP | ||||
|                 placeholder: 'notifications@yoursite.com' | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
							
								
								
									
										107
									
								
								system/blueprints/config/security.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,107 @@ | ||||
| title: PLUGIN_ADMIN.SECURITY | ||||
|  | ||||
| form: | ||||
|     validation: loose | ||||
|     fields: | ||||
|  | ||||
|         xss_section: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.XSS_SECURITY | ||||
|             underline: true | ||||
|  | ||||
|         xss_whitelist: | ||||
|             type: selectize | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.XSS_WHITELIST_PERMISSIONS | ||||
|             help: PLUGIN_ADMIN.XSS_WHITELIST_PERMISSIONS_HELP | ||||
|             placeholder: 'admin.super' | ||||
|             classes: fancy | ||||
|             validate: | ||||
|                 type: commalist | ||||
|  | ||||
|         xss_enabled.on_events: | ||||
|             type: toggle | ||||
|             label: PLUGIN_ADMIN.XSS_ON_EVENTS | ||||
|             highlight: 1 | ||||
|             options: | ||||
|                 1: PLUGIN_ADMIN.YES | ||||
|                 0: PLUGIN_ADMIN.NO | ||||
|             default: true | ||||
|             validate: | ||||
|                 type: bool | ||||
|  | ||||
|         xss_enabled.invalid_protocols: | ||||
|             type: toggle | ||||
|             label: PLUGIN_ADMIN.XSS_INVALID_PROTOCOLS | ||||
|             highlight: 1 | ||||
|             options: | ||||
|                 1: PLUGIN_ADMIN.YES | ||||
|                 0: PLUGIN_ADMIN.NO | ||||
|             default: true | ||||
|             validate: | ||||
|                 type: bool | ||||
|  | ||||
|         xss_invalid_protocols: | ||||
|             type: selectize | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.XSS_INVALID_PROTOCOLS_LIST | ||||
|             classes: fancy | ||||
|             validate: | ||||
|                 type: commalist | ||||
|  | ||||
|         xss_enabled.moz_binding: | ||||
|             type: toggle | ||||
|             label: PLUGIN_ADMIN.XSS_MOZ_BINDINGS | ||||
|             highlight: 1 | ||||
|             options: | ||||
|                 1: PLUGIN_ADMIN.YES | ||||
|                 0: PLUGIN_ADMIN.NO | ||||
|             default: true | ||||
|             validate: | ||||
|                 type: bool | ||||
|  | ||||
|         xss_enabled.html_inline_styles: | ||||
|             type: toggle | ||||
|             label: PLUGIN_ADMIN.XSS_HTML_INLINE_STYLES | ||||
|             highlight: 1 | ||||
|             options: | ||||
|                 1: PLUGIN_ADMIN.YES | ||||
|                 0: PLUGIN_ADMIN.NO | ||||
|             default: true | ||||
|             validate: | ||||
|                 type: bool | ||||
|  | ||||
|         xss_enabled.dangerous_tags: | ||||
|             type: toggle | ||||
|             label: PLUGIN_ADMIN.XSS_DANGEROUS_TAGS | ||||
|             highlight: 1 | ||||
|             options: | ||||
|                 1: PLUGIN_ADMIN.YES | ||||
|                 0: PLUGIN_ADMIN.NO | ||||
|             default: true | ||||
|             validate: | ||||
|                 type: bool | ||||
|  | ||||
|         xss_dangerous_tags: | ||||
|             type: selectize | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.XSS_DANGEROUS_TAGS_LIST | ||||
|             classes: fancy | ||||
|             validate: | ||||
|                 type: commalist | ||||
|  | ||||
|         uploads_section: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.UPLOADS_SECURITY | ||||
|             underline: true | ||||
|  | ||||
|  | ||||
|         uploads_dangerous_extensions: | ||||
|             type: selectize | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.UPLOADS_DANGEROUS_EXTENSIONS | ||||
|             help: PLUGIN_ADMIN.UPLOADS_DANGEROUS_EXTENSIONS_HELP | ||||
|             classes: fancy | ||||
|             validate: | ||||
|                 type: commalist | ||||
|  | ||||
							
								
								
									
										124
									
								
								system/blueprints/config/site.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,124 @@ | ||||
| title: PLUGIN_ADMIN.SITE | ||||
| form: | ||||
|     validation: loose | ||||
|     fields: | ||||
|  | ||||
|         content: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.DEFAULTS | ||||
|             underline: true | ||||
|  | ||||
|             fields: | ||||
|                 title: | ||||
|                     type: text | ||||
|                     label: PLUGIN_ADMIN.SITE_TITLE | ||||
|                     size: large | ||||
|                     placeholder: PLUGIN_ADMIN.SITE_TITLE_PLACEHOLDER | ||||
|                     help: PLUGIN_ADMIN.SITE_TITLE_HELP | ||||
|  | ||||
|                 default_lang: | ||||
|                     type: text | ||||
|                     label: PLUGIN_ADMIN.SITE_DEFAULT_LANG | ||||
|                     size: x-small | ||||
|                     placeholder: PLUGIN_ADMIN.SITE_DEFAULT_LANG_PLACEHOLDER | ||||
|                     help: PLUGIN_ADMIN.SITE_DEFAULT_LANG_HELP | ||||
|  | ||||
|                 author.name: | ||||
|                     type: text | ||||
|                     size: large | ||||
|                     label: PLUGIN_ADMIN.DEFAULT_AUTHOR | ||||
|                     help: PLUGIN_ADMIN.DEFAULT_AUTHOR_HELP | ||||
|  | ||||
|                 author.email: | ||||
|                     type: text | ||||
|                     size: large | ||||
|                     label: PLUGIN_ADMIN.DEFAULT_EMAIL | ||||
|                     help: PLUGIN_ADMIN.DEFAULT_EMAIL_HELP | ||||
|                     validate: | ||||
|                         type: email | ||||
|  | ||||
|                 taxonomies: | ||||
|                     type: selectize | ||||
|                     size: large | ||||
|                     label: PLUGIN_ADMIN.TAXONOMY_TYPES | ||||
|                     classes: fancy | ||||
|                     help: PLUGIN_ADMIN.TAXONOMY_TYPES_HELP | ||||
|                     validate: | ||||
|                         type: commalist | ||||
|  | ||||
|         summary: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.PAGE_SUMMARY | ||||
|             underline: true | ||||
|  | ||||
|             fields: | ||||
|                 summary.enabled: | ||||
|                     type: toggle | ||||
|                     label: PLUGIN_ADMIN.ENABLED | ||||
|                     highlight: 1 | ||||
|                     help: PLUGIN_ADMIN.ENABLED_HELP | ||||
|                     options: | ||||
|                         1: PLUGIN_ADMIN.YES | ||||
|                         0: PLUGIN_ADMIN.NO | ||||
|                     validate: | ||||
|                         type: bool | ||||
|  | ||||
|                 summary.size: | ||||
|                     type: text | ||||
|                     size: small | ||||
|                     append: PLUGIN_ADMIN.CHARACTERS | ||||
|                     label: PLUGIN_ADMIN.SUMMARY_SIZE | ||||
|                     help: PLUGIN_ADMIN.SUMMARY_SIZE_HELP | ||||
|                     validate: | ||||
|                         type: int | ||||
|                         min: 0 | ||||
|                         max: 65536 | ||||
|  | ||||
|                 summary.format: | ||||
|                     type: toggle | ||||
|                     label: PLUGIN_ADMIN.FORMAT | ||||
|                     classes: fancy | ||||
|                     help: PLUGIN_ADMIN.FORMAT_HELP | ||||
|                     highlight: short | ||||
|                     options: | ||||
|                         'short': PLUGIN_ADMIN.SHORT | ||||
|                         'long': PLUGIN_ADMIN.LONG | ||||
|  | ||||
|                 summary.delimiter: | ||||
|                     type: text | ||||
|                     size: x-small | ||||
|                     label: PLUGIN_ADMIN.DELIMITER | ||||
|                     help: PLUGIN_ADMIN.DELIMITER_HELP | ||||
|  | ||||
|         metadata: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.METADATA | ||||
|             underline: true | ||||
|  | ||||
|             fields: | ||||
|                 metadata: | ||||
|                    type: array | ||||
|                    label: PLUGIN_ADMIN.METADATA | ||||
|                    help: PLUGIN_ADMIN.METADATA_HELP | ||||
|                    placeholder_key: PLUGIN_ADMIN.METADATA_KEY | ||||
|                    placeholder_value: PLUGIN_ADMIN.METADATA_VALUE | ||||
|  | ||||
|         routes: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.REDIRECTS_AND_ROUTES | ||||
|             underline: true | ||||
|  | ||||
|             fields: | ||||
|                 redirects: | ||||
|                     type: array | ||||
|                     label: PLUGIN_ADMIN.CUSTOM_REDIRECTS | ||||
|                     help: PLUGIN_ADMIN.CUSTOM_REDIRECTS_HELP | ||||
|                     placeholder_key: PLUGIN_ADMIN.CUSTOM_REDIRECTS_PLACEHOLDER_KEY | ||||
|                     placeholder_value: PLUGIN_ADMIN.CUSTOM_REDIRECTS_PLACEHOLDER_VALUE | ||||
|  | ||||
|                 routes: | ||||
|                     type: array | ||||
|                     label: PLUGIN_ADMIN.CUSTOM_ROUTES | ||||
|                     help: PLUGIN_ADMIN.CUSTOM_ROUTES_HELP | ||||
|                     placeholder_key: PLUGIN_ADMIN.CUSTOM_ROUTES_PLACEHOLDER_KEY | ||||
|                     placeholder_value: PLUGIN_ADMIN.CUSTOM_ROUTES_PLACEHOLDER_VALUE | ||||
							
								
								
									
										8
									
								
								system/blueprints/config/streams.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,8 @@ | ||||
| title: PLUGIN_ADMIN.FILE_STREAMS | ||||
|  | ||||
| form: | ||||
|   validation: loose | ||||
|   hidden: true | ||||
|   fields: | ||||
|     schemes.xxx: | ||||
|       type: array | ||||
							
								
								
									
										1410
									
								
								system/blueprints/config/system.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										369
									
								
								system/blueprints/pages/default.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,369 @@ | ||||
| title: PLUGIN_ADMIN.DEFAULT | ||||
|  | ||||
| rules: | ||||
|   slug: | ||||
|     pattern: '[a-zA-Zа-яA-Я0-9_\-]+' | ||||
|     min: 1 | ||||
|     max: 200 | ||||
|  | ||||
| form: | ||||
|   validation: loose | ||||
|  | ||||
|   fields: | ||||
|  | ||||
|     tabs: | ||||
|       type: tabs | ||||
|       active: 1 | ||||
|  | ||||
|       fields: | ||||
|         content: | ||||
|           type: tab | ||||
|           title: PLUGIN_ADMIN.CONTENT | ||||
|  | ||||
|           fields: | ||||
|             xss_check: | ||||
|               type: xss | ||||
|  | ||||
|             header.title: | ||||
|               type: text | ||||
|               autofocus: true | ||||
|               style: vertical | ||||
|               label: PLUGIN_ADMIN.TITLE | ||||
|  | ||||
|             content: | ||||
|                 type: markdown | ||||
|                 validate: | ||||
|                   type: textarea | ||||
|  | ||||
|             header.media_order: | ||||
|               type: pagemedia | ||||
|               label: PLUGIN_ADMIN.PAGE_MEDIA | ||||
|  | ||||
|         options: | ||||
|           type: tab | ||||
|           title: PLUGIN_ADMIN.OPTIONS | ||||
|  | ||||
|           fields: | ||||
|  | ||||
|             publishing: | ||||
|               type: section | ||||
|               title: PLUGIN_ADMIN.PUBLISHING | ||||
|               underline: true | ||||
|  | ||||
|               fields: | ||||
|                 header.published: | ||||
|                   type: toggle | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.PUBLISHED | ||||
|                   help: PLUGIN_ADMIN.PUBLISHED_HELP | ||||
|                   highlight: 1 | ||||
|                   size: medium | ||||
|                   options: | ||||
|                     1: PLUGIN_ADMIN.YES | ||||
|                     0: PLUGIN_ADMIN.NO | ||||
|                   validate: | ||||
|                     type: bool | ||||
|  | ||||
|                 header.date: | ||||
|                   type: datetime | ||||
|                   label: PLUGIN_ADMIN.DATE | ||||
|                   toggleable: true | ||||
|                   help: PLUGIN_ADMIN.DATE_HELP | ||||
|  | ||||
|                 header.publish_date: | ||||
|                   type: datetime | ||||
|                   label: PLUGIN_ADMIN.PUBLISHED_DATE | ||||
|                   toggleable: true | ||||
|                   help: PLUGIN_ADMIN.PUBLISHED_DATE_HELP | ||||
|  | ||||
|                 header.unpublish_date: | ||||
|                   type: datetime | ||||
|                   label: PLUGIN_ADMIN.UNPUBLISHED_DATE | ||||
|                   toggleable: true | ||||
|                   help: PLUGIN_ADMIN.UNPUBLISHED_DATE_HELP | ||||
|  | ||||
|                 header.metadata: | ||||
|                   toggleable: true | ||||
|                   type: array | ||||
|                   label: PLUGIN_ADMIN.METADATA | ||||
|                   help: PLUGIN_ADMIN.METADATA_HELP | ||||
|                   placeholder_key: PLUGIN_ADMIN.METADATA_KEY | ||||
|                   placeholder_value: PLUGIN_ADMIN.METADATA_VALUE | ||||
|  | ||||
|             taxonomies: | ||||
|               type: section | ||||
|               title: PLUGIN_ADMIN.TAXONOMIES | ||||
|               underline: true | ||||
|  | ||||
|               fields: | ||||
|                 header.taxonomy: | ||||
|                   type: taxonomy | ||||
|                   label: PLUGIN_ADMIN.TAXONOMY | ||||
|                   multiple: true | ||||
|                   validate: | ||||
|                     type: array | ||||
|  | ||||
|         advanced: | ||||
|           type: tab | ||||
|           title: PLUGIN_ADMIN.ADVANCED | ||||
|  | ||||
|           fields: | ||||
|             columns: | ||||
|               type: columns | ||||
|               fields: | ||||
|                 column1: | ||||
|                   type: column | ||||
|                   fields: | ||||
|  | ||||
|                     settings: | ||||
|                       type: section | ||||
|                       title: PLUGIN_ADMIN.SETTINGS | ||||
|                       underline: true | ||||
|  | ||||
|                     folder: | ||||
|                       type: text | ||||
|                       label: PLUGIN_ADMIN.FOLDER_NAME | ||||
|                       validate: | ||||
|                         rule: slug | ||||
|  | ||||
|                     route: | ||||
|                       type: parents | ||||
|                       label: PLUGIN_ADMIN.PARENT | ||||
|                       classes: fancy | ||||
|  | ||||
|                     name: | ||||
|                       type: select | ||||
|                       classes: fancy | ||||
|                       label: PLUGIN_ADMIN.PAGE_FILE | ||||
|                       help: PLUGIN_ADMIN.PAGE_FILE_HELP | ||||
|                       default: default | ||||
|                       data-options@: '\Grav\Common\Page\Pages::pageTypes' | ||||
|  | ||||
|                     header.body_classes: | ||||
|                       type: text | ||||
|                       label: PLUGIN_ADMIN.BODY_CLASSES | ||||
|  | ||||
|  | ||||
|                 column2: | ||||
|                   type: column | ||||
|  | ||||
|                   fields: | ||||
|                     order_title: | ||||
|                       type: section | ||||
|                       title: PLUGIN_ADMIN.ORDERING | ||||
|                       underline: true | ||||
|  | ||||
|                     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 | ||||
|  | ||||
|                     order: | ||||
|                       type: order | ||||
|                       label: PLUGIN_ADMIN.SORTABLE_PAGES | ||||
|                       sitemap: | ||||
|  | ||||
|             overrides: | ||||
|               type: section | ||||
|               title: PLUGIN_ADMIN.OVERRIDES | ||||
|               underline: true | ||||
|  | ||||
|               fields: | ||||
|  | ||||
|                 header.dateformat: | ||||
|                   toggleable: true | ||||
|                   type: select | ||||
|                   size: medium | ||||
|                   selectize: | ||||
|                     create: true | ||||
|                   label: PLUGIN_ADMIN.DEFAULT_DATE_FORMAT | ||||
|                   help: PLUGIN_ADMIN.DEFAULT_DATE_FORMAT_HELP | ||||
|                   placeholder: PLUGIN_ADMIN.DEFAULT_DATE_FORMAT_PLACEHOLDER | ||||
|                   data-options@: '\Grav\Common\Utils::dateFormats' | ||||
|                   validate: | ||||
|                     type: string | ||||
|  | ||||
|                 header.menu: | ||||
|                   type: text | ||||
|                   label: PLUGIN_ADMIN.MENU | ||||
|                   toggleable: true | ||||
|                   help: PLUGIN_ADMIN.MENU_HELP | ||||
|  | ||||
|                 header.slug: | ||||
|                   type: text | ||||
|                   label: PLUGIN_ADMIN.SLUG | ||||
|                   toggleable: true | ||||
|                   help: PLUGIN_ADMIN.SLUG_HELP | ||||
|                   validate: | ||||
|                     message: PLUGIN_ADMIN.SLUG_VALIDATE_MESSAGE | ||||
|                     rule: slug | ||||
|  | ||||
|                 header.redirect: | ||||
|                   type: text | ||||
|                   label: PLUGIN_ADMIN.REDIRECT | ||||
|                   toggleable: true | ||||
|                   help: PLUGIN_ADMIN.REDIRECT_HELP | ||||
|  | ||||
|                 header.process: | ||||
|                   type: checkboxes | ||||
|                   label: PLUGIN_ADMIN.PROCESS | ||||
|                   toggleable: true | ||||
|                   config-default@: system.pages.process | ||||
|                   default: | ||||
|                     markdown: true | ||||
|                     twig: false | ||||
|                   options: | ||||
|                     markdown: Markdown | ||||
|                     twig: Twig | ||||
|                   use: keys | ||||
|  | ||||
|                 header.twig_first: | ||||
|                   type: toggle | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.TWIG_FIRST | ||||
|                   help: PLUGIN_ADMIN.TWIG_FIRST_HELP | ||||
|                   highlight: 0 | ||||
|                   options: | ||||
|                     1: PLUGIN_ADMIN.YES | ||||
|                     0: PLUGIN_ADMIN.NO | ||||
|                   validate: | ||||
|                     type: bool | ||||
|  | ||||
|                 header.never_cache_twig: | ||||
|                   type: toggle | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.NEVER_CACHE_TWIG | ||||
|                   help: PLUGIN_ADMIN.NEVER_CACHE_TWIG_HELP | ||||
|                   highlight: 0 | ||||
|                   options: | ||||
|                     1: PLUGIN_ADMIN.YES | ||||
|                     0: PLUGIN_ADMIN.NO | ||||
|                   validate: | ||||
|                     type: bool | ||||
|  | ||||
|                 header.child_type: | ||||
|                   type: select | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.DEFAULT_CHILD_TYPE | ||||
|                   default: default | ||||
|                   placeholder: PLUGIN_ADMIN.USE_GLOBAL | ||||
|                   data-options@: '\Grav\Common\Page\Pages::types' | ||||
|  | ||||
|                 header.routable: | ||||
|                   type: toggle | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.ROUTABLE | ||||
|                   help: PLUGIN_ADMIN.ROUTABLE_HELP | ||||
|                   highlight: 1 | ||||
|                   options: | ||||
|                     1: PLUGIN_ADMIN.ENABLED | ||||
|                     0: PLUGIN_ADMIN.DISABLED | ||||
|                   validate: | ||||
|                     type: bool | ||||
|  | ||||
|                 header.cache_enable: | ||||
|                   type: toggle | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.CACHING | ||||
|                   highlight: 1 | ||||
|                   options: | ||||
|                     1: PLUGIN_ADMIN.ENABLED | ||||
|                     0: PLUGIN_ADMIN.DISABLED | ||||
|                   validate: | ||||
|                     type: bool | ||||
|  | ||||
|                 header.visible: | ||||
|                   type: toggle | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.VISIBLE | ||||
|                   help: PLUGIN_ADMIN.VISIBLE_HELP | ||||
|                   highlight: 1 | ||||
|                   options: | ||||
|                     1: PLUGIN_ADMIN.ENABLED | ||||
|                     0: PLUGIN_ADMIN.DISABLED | ||||
|                   validate: | ||||
|                     type: bool | ||||
|  | ||||
|                 header.debugger: | ||||
|                   type: toggle | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.DEBUGGER | ||||
|                   help: PLUGIN_ADMIN.DEBUGGER_HELP | ||||
|                   highlight: 1 | ||||
|                   options: | ||||
|                     1: PLUGIN_ADMIN.ENABLED | ||||
|                     0: PLUGIN_ADMIN.DISABLED | ||||
|                   validate: | ||||
|                     type: bool | ||||
|  | ||||
|                 header.template: | ||||
|                   type: text | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.DISPLAY_TEMPLATE | ||||
|  | ||||
|                 header.append_url_extension: | ||||
|                   type: text | ||||
|                   label: PLUGIN_ADMIN.APPEND_URL_EXT | ||||
|                   toggleable: true | ||||
|                   help: PLUGIN_ADMIN.APPEND_URL_EXT_HELP | ||||
|  | ||||
|             routes_only: | ||||
|               type: section | ||||
|               title: PLUGIN_ADMIN.ROUTE_OVERRIDES | ||||
|               underline: true | ||||
|  | ||||
|               fields: | ||||
|  | ||||
|                 header.routes.default: | ||||
|                   type: text | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.ROUTE_DEFAULT | ||||
|  | ||||
|                 header.routes.canonical: | ||||
|                   type: text | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.ROUTE_CANONICAL | ||||
|  | ||||
|                 header.routes.aliases: | ||||
|                   type: array | ||||
|                   toggleable: true | ||||
|                   value_only: true | ||||
|                   size: large | ||||
|                   label: PLUGIN_ADMIN.ROUTE_ALIASES | ||||
|  | ||||
|  | ||||
|             admin_only: | ||||
|               type: section | ||||
|               title: PLUGIN_ADMIN.ADMIN_SPECIFIC_OVERRIDES | ||||
|               underline: true | ||||
|  | ||||
|               fields: | ||||
|  | ||||
|                 header.admin.children_display_order: | ||||
|                   type: select | ||||
|                   label: PLUGIN_ADMIN.ADMIN_CHILDREN_DISPLAY_ORDER | ||||
|                   help: PLUGIN_ADMIN.ADMIN_CHILDREN_DISPLAY_ORDER_HELP | ||||
|                   toggleable: true | ||||
|                   classes: fancy | ||||
|                   default: 'collection' | ||||
|                   options: | ||||
|                     'default': 'Ordered by Folder name (default)' | ||||
|                     'collection': 'Ordered by Collection definition' | ||||
|  | ||||
|  | ||||
|                 header.order_by: | ||||
|                   type: hidden | ||||
|  | ||||
|                 header.order_manual: | ||||
|                   type: hidden | ||||
|                   validate: | ||||
|                     type: commalist | ||||
|  | ||||
|                 blueprint: | ||||
|                   type: blueprint | ||||
							
								
								
									
										52
									
								
								system/blueprints/pages/external.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,52 @@ | ||||
| title: PLUGIN_ADMIN:EXTERNAL | ||||
| extends@: | ||||
|     type: default | ||||
|     context: blueprints://pages | ||||
|  | ||||
| form: | ||||
|   validation: loose | ||||
|   fields: | ||||
|  | ||||
|     tabs: | ||||
|       type: tabs | ||||
|       active: 1 | ||||
|  | ||||
|       fields: | ||||
|  | ||||
|         content: | ||||
|           fields: | ||||
|  | ||||
|             header.title: | ||||
|               type: text | ||||
|               autofocus: true | ||||
|               style: horizontal | ||||
|               label: PLUGIN_ADMIN.TITLE | ||||
|  | ||||
|             content: | ||||
|               unset@: true | ||||
|  | ||||
|             header.media_order: | ||||
|               unset@: true | ||||
|  | ||||
|             header.external_url: | ||||
|                 type: text | ||||
|                 label: PLUGIN_ADMIN.EXTERNAL_URL | ||||
|                 placeholder: https://getgrav.org | ||||
|                 validate: | ||||
|                     required: true | ||||
|         options: | ||||
|           fields: | ||||
|  | ||||
|             publishing: | ||||
|  | ||||
|               fields: | ||||
|  | ||||
|                 header.date: | ||||
|                   unset@: true | ||||
|  | ||||
|                 header.metadata: | ||||
|                   unset@: true | ||||
|  | ||||
|             taxonomies: | ||||
|               unset@: true | ||||
|  | ||||
							
								
								
									
										38
									
								
								system/blueprints/pages/modular.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,38 @@ | ||||
| title: PLUGIN_ADMIN.MODULAR | ||||
| extends@: default | ||||
|  | ||||
| form: | ||||
|   fields: | ||||
|     tabs: | ||||
|       type: tabs | ||||
|       active: 1 | ||||
|  | ||||
|       fields: | ||||
|         content: | ||||
|           fields: | ||||
|  | ||||
|             modular_title: | ||||
|               type: spacer | ||||
|               title: PLUGIN_ADMIN.MODULAR_SETUP | ||||
|  | ||||
|             header.content.items: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.ITEMS | ||||
|               default: '@self.modular' | ||||
|               size: medium | ||||
|  | ||||
|             header.content.order.by: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.ORDER_BY | ||||
|               placeholder: date | ||||
|               help: | ||||
|               size: small | ||||
|  | ||||
|             header.content.order.dir: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.ORDER | ||||
|               help: '"desc" or "asc" are valid values' | ||||
|               placeholder: desc | ||||
|               size: small | ||||
|  | ||||
|  | ||||
							
								
								
									
										127
									
								
								system/blueprints/user/account.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,127 @@ | ||||
| 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' | ||||
|                     markdown: true | ||||
|                     label: PLUGIN_ADMIN.2FA_SECRET | ||||
|                     sublabel: PLUGIN_ADMIN.2FA_SECRET_HELP | ||||
|  | ||||
|  | ||||
|         security: | ||||
|             security@: admin.super | ||||
|             title: PLUGIN_ADMIN.ACCESS_LEVELS | ||||
|             type: section | ||||
|             underline: true | ||||
|  | ||||
|             fields: | ||||
|                 groups: | ||||
|                     security@: admin.super | ||||
|                     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: | ||||
|                     security@: admin.super | ||||
|                     type: permissions | ||||
|                     label: PLUGIN_ADMIN.PERMISSIONS | ||||
|                     ignore_empty: true | ||||
|                     validate: | ||||
|                         type: array | ||||
							
								
								
									
										18
									
								
								system/blueprints/user/account_new.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,18 @@ | ||||
| title: PLUGIN_ADMIN.ADD_ACCOUNT | ||||
|  | ||||
| form: | ||||
|   validation: loose | ||||
|   fields: | ||||
|  | ||||
|     content: | ||||
|       type: section | ||||
|       title: PLUGIN_ADMIN.ADD_ACCOUNT | ||||
|  | ||||
|     username: | ||||
|       type: text | ||||
|       label: PLUGIN_ADMIN.USERNAME | ||||
|       help: PLUGIN_ADMIN.USERNAME_HELP | ||||
|       unset-disabled@: true | ||||
|       unset-readonly@: true | ||||
|       validate: | ||||
|         required: true | ||||
							
								
								
									
										39
									
								
								system/blueprints/user/accounts.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,39 @@ | ||||
| title: User Accounts | ||||
| description: User Accounts | ||||
| type: flex-objects | ||||
|  | ||||
| extends@: 'user/account' | ||||
|  | ||||
| config: | ||||
|   admin: | ||||
|     list: | ||||
|       fields: | ||||
|         username: | ||||
|           link: edit | ||||
|           search: true | ||||
|         email: | ||||
|           search: true | ||||
|         fullname: | ||||
|           search: true | ||||
|       options: | ||||
|         per_page: 20 | ||||
|         order: | ||||
|           by: username | ||||
|           dir: asc | ||||
|  | ||||
|     menu: | ||||
|       list: | ||||
|         route: '/accounts' | ||||
|         title: Accounts | ||||
|         icon: fa-users | ||||
|         authorize: ['admin.users', 'admin.accounts', 'admin.super'] | ||||
|  | ||||
| form: | ||||
|   fields: | ||||
|     username: | ||||
|       flex-disabled@: exists | ||||
|       disabled: false | ||||
|       flex-readonly@: exists | ||||
|       readonly: false | ||||
|       validate: | ||||
|         required: true | ||||
							
								
								
									
										37
									
								
								system/blueprints/user/group.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,37 @@ | ||||
| title: Group | ||||
| form: | ||||
|     validation: loose | ||||
|  | ||||
|     fields: | ||||
|         spacer: | ||||
|             type: spacer | ||||
|             text: '<br>' | ||||
|  | ||||
|         groupname: | ||||
|             type: text | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.NAME | ||||
|             disabled: true | ||||
|             readonly: true | ||||
|  | ||||
|         readableName: | ||||
|             type: text | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN_PRO.READABLE_NAME | ||||
|  | ||||
|         description: | ||||
|             type: text | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.DESCRIPTION | ||||
|  | ||||
|         icon: | ||||
|             type: text | ||||
|             size: small | ||||
|             label: PLUGIN_ADMIN_PRO.ICON | ||||
|  | ||||
|         access: | ||||
|             type: permissions | ||||
|             label: PLUGIN_ADMIN.PERMISSIONS | ||||
|             ignore_empty: true | ||||
|             validate: | ||||
|                 type: array | ||||
							
								
								
									
										16
									
								
								system/blueprints/user/group_new.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,16 @@ | ||||
| title: PLUGIN_ADMIN_PRO.ADD_GROUP | ||||
|  | ||||
| form: | ||||
|   validation: loose | ||||
|   fields: | ||||
|  | ||||
|     content: | ||||
|       type: section | ||||
|       title: PLUGIN_ADMIN_PRO.ADD_GROUP | ||||
|  | ||||
|     groupname: | ||||
|       type: text | ||||
|       label: PLUGIN_ADMIN_PRO.GROUP_NAME | ||||
|       help: PLUGIN_ADMIN_PRO.GROUP_NAME_HELP | ||||
|       validate: | ||||
|         required: true | ||||
							
								
								
									
										15
									
								
								system/config/backups.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,15 @@ | ||||
| purge: | ||||
|     trigger: space | ||||
|     max_backups_count: 25 | ||||
|     max_backups_space: 5 | ||||
|     max_backups_time: 365 | ||||
|  | ||||
| profiles: | ||||
|   - | ||||
|     name: 'Default Site Backup' | ||||
|     root: '/' | ||||
|     schedule: false | ||||
|     schedule_at: '0 3 * * *' | ||||
|     exclude_paths: "/backup\r\n/cache\r\n/images\r\n/logs\r\n/tmp" | ||||
|     exclude_files: ".DS_Store\r\n.git\r\n.svn\r\n.hg\r\n.idea\r\n.vscode\r\nnode_modules" | ||||
|  | ||||
							
								
								
									
										210
									
								
								system/config/media.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,210 @@ | ||||
| types: | ||||
|   defaults: | ||||
|     type: file | ||||
|     thumb: media/thumb.png | ||||
|     mime: application/octet-stream | ||||
|     image: | ||||
|       filters: | ||||
|         default: | ||||
|           - enableProgressive | ||||
|  | ||||
|   jpg: | ||||
|     type: image | ||||
|     thumb: media/thumb-jpg.png | ||||
|     mime: image/jpeg | ||||
|   jpe: | ||||
|     type: image | ||||
|     thumb: media/thumb-jpg.png | ||||
|     mime: image/jpeg | ||||
|   jpeg: | ||||
|     type: image | ||||
|     thumb: media/thumb-jpg.png | ||||
|     mime: image/jpeg | ||||
|   png: | ||||
|     type: image | ||||
|     thumb: media/thumb-png.png | ||||
|     mime: image/png | ||||
|   gif: | ||||
|     type: animated | ||||
|     thumb: media/thumb-gif.png | ||||
|     mime: image/gif | ||||
|   svg: | ||||
|     type: vector | ||||
|     thumb: media/thumb-svg.png | ||||
|     mime: image/svg+xml | ||||
|   mp4: | ||||
|     type: video | ||||
|     thumb: media/thumb-mp4.png | ||||
|     mime: video/mp4 | ||||
|   mov: | ||||
|     type: video | ||||
|     thumb: media/thumb-mov.png | ||||
|     mime: video/quicktime | ||||
|   m4v: | ||||
|     type: video | ||||
|     thumb: media/thumb-m4v.png | ||||
|     mime: video/x-m4v | ||||
|   swf: | ||||
|     type: video | ||||
|     thumb: media/thumb-swf.png | ||||
|     mime: video/x-flv | ||||
|   flv: | ||||
|     type: video | ||||
|     thumb: media/thumb-flv.png | ||||
|     mime: video/x-flv | ||||
|   webm: | ||||
|     type: video | ||||
|     thumb: media/thumb-webm.png | ||||
|     mime: video/webm | ||||
|   ogv: | ||||
|     type: video | ||||
|     thumb: media/thumb-ogg.png | ||||
|     mime: video/ogg | ||||
|   mp3: | ||||
|     type: audio | ||||
|     thumb: media/thumb-mp3.png | ||||
|     mime: audio/mp3 | ||||
|   ogg: | ||||
|     type: audio | ||||
|     thumb: media/thumb-ogg.png | ||||
|     mime: audio/ogg | ||||
|   wma: | ||||
|     type: audio | ||||
|     thumb: media/thumb-wma.png | ||||
|     mime: audio/wma | ||||
|   m4a: | ||||
|     type: audio | ||||
|     thumb: media/thumb-m4a.png | ||||
|     mime: audio/m4a | ||||
|   wav: | ||||
|     type: audio | ||||
|     thumb: media/thumb-wav.png | ||||
|     mime: audio/wav | ||||
|   aiff: | ||||
|     type: audio | ||||
|     thumb: media/thumb-aif.png | ||||
|     mime: audio/aiff | ||||
|   aif: | ||||
|     type: audio | ||||
|     thumb: media/thumb-aif.png | ||||
|     mime: audio/aif | ||||
|   txt: | ||||
|     type: file | ||||
|     thumb: media/thumb-txt.png | ||||
|     mime: text/plain | ||||
|   xml: | ||||
|     type: file | ||||
|     thumb: media/thumb-xml.png | ||||
|     mime: application/xml | ||||
|   doc: | ||||
|     type: file | ||||
|     thumb: media/thumb-doc.png | ||||
|     mime: application/msword | ||||
|   docx: | ||||
|     type: file | ||||
|     thumb: media/thumb-docx.png | ||||
|     mime: application/msword | ||||
|   xls: | ||||
|     type: file | ||||
|     thumb: media/thumb-xls.png | ||||
|     mime: application/vnd.ms-excel | ||||
|   xlsx: | ||||
|     type: file | ||||
|     thumb: media/thumb-xlsx.png | ||||
|     mime: application/vnd.ms-excel | ||||
|   ppt: | ||||
|     type: file | ||||
|     thumb: media/thumb-ppt.png | ||||
|     mime: application/vnd.ms-powerpoint | ||||
|   pptx: | ||||
|     type: file | ||||
|     thumb: media/thumb-pptx.png | ||||
|     mime: application/vnd.ms-powerpoint | ||||
|   pps: | ||||
|     type: file | ||||
|     thumb: media/thumb-pps.png | ||||
|     mime: application/vnd.ms-powerpoint | ||||
|   rtf: | ||||
|     type: file | ||||
|     thumb: media/thumb-rtf.png | ||||
|     mime: application/rtf | ||||
|   bmp: | ||||
|     type: file | ||||
|     thumb: media/thumb-bmp.png | ||||
|     mime: image/bmp | ||||
|   tiff: | ||||
|     type: file | ||||
|     thumb: media/thumb-tiff.png | ||||
|     mime: image/tiff | ||||
|   mpeg: | ||||
|     type: file | ||||
|     thumb: media/thumb-mpg.png | ||||
|     mime: video/mpeg | ||||
|   mpg: | ||||
|     type: file | ||||
|     thumb: media/thumb-mpg.png | ||||
|     mime: video/mpeg | ||||
|   mpe: | ||||
|     type: file | ||||
|     thumb: media/thumb-mpe.png | ||||
|     mime: video/mpeg | ||||
|   avi: | ||||
|     type: file | ||||
|     thumb: media/thumb-avi.png | ||||
|     mime: video/msvideo | ||||
|   wmv: | ||||
|     type: file | ||||
|     thumb: media/thumb-wmv.png | ||||
|     mime: video/x-ms-wmv | ||||
|   html: | ||||
|     type: file | ||||
|     thumb: media/thumb-html.png | ||||
|     mime: text/html | ||||
|   htm: | ||||
|     type: file | ||||
|     thumb: media/thumb-html.png | ||||
|     mime: text/html | ||||
|   ics: | ||||
|     type: iCal | ||||
|     thumb: media/thumb-ics.png | ||||
|     mime: text/calendar | ||||
|   pdf: | ||||
|     type: file | ||||
|     thumb: media/thumb-pdf.png | ||||
|     mime: application/pdf | ||||
|   ai: | ||||
|     type: file | ||||
|     thumb: media/thumb-ai.png | ||||
|     mime: image/ai | ||||
|   psd: | ||||
|     type: file | ||||
|     thumb: media/thumb-psd.png | ||||
|     mime: image/psd | ||||
|   zip: | ||||
|     type: file | ||||
|     thumb: media/thumb-zip.png | ||||
|     mime: application/zip | ||||
|   7z: | ||||
|     type: file | ||||
|     thumb: media/thumb-7z.png | ||||
|     mime: application/x-7z-compressed | ||||
|   gz: | ||||
|     type: file | ||||
|     thumb: media/thumb-gz.png | ||||
|     mime: application/gzip | ||||
|   tar: | ||||
|     type: file | ||||
|     thumb: media/thumb-tar.png | ||||
|     mime: application/x-tar | ||||
|   css: | ||||
|     type: file | ||||
|     thumb: media/thumb-css.png | ||||
|     mime: text/css | ||||
|   js: | ||||
|     type: file | ||||
|     thumb: media/thumb-js.png | ||||
|     mime: application/javascript | ||||
|   json: | ||||
|     type: file | ||||
|     thumb: media/thumb-json.png | ||||
|     mime: application/json | ||||
							
								
								
									
										38
									
								
								system/config/security.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,38 @@ | ||||
| xss_whitelist: [admin.super] # Whitelist of user access that should 'skip' XSS checking | ||||
| xss_enabled: | ||||
|     on_events: true | ||||
|     invalid_protocols: true | ||||
|     moz_binding: true | ||||
|     html_inline_styles: true | ||||
|     dangerous_tags: true | ||||
| xss_invalid_protocols: | ||||
|     - javascript | ||||
|     - livescript | ||||
|     - vbscript | ||||
|     - mocha | ||||
|     - feed | ||||
|     - data | ||||
| xss_dangerous_tags: | ||||
|     - applet | ||||
|     - meta | ||||
|     - xml | ||||
|     - blink | ||||
|     - link | ||||
|     - style | ||||
|     - script | ||||
|     - embed | ||||
|     - object | ||||
|     - iframe | ||||
|     - frame | ||||
|     - frameset | ||||
|     - ilayer | ||||
|     - layer | ||||
|     - bgsound | ||||
|     - title | ||||
|     - base | ||||
| uploads_dangerous_extensions: | ||||
|     - php | ||||
|     - html | ||||
|     - htm | ||||
|     - js | ||||
|     - exe | ||||
							
								
								
									
										35
									
								
								system/config/site.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,35 @@ | ||||
| title: Grav                                 # Name of the site | ||||
| default_lang: en                            # Default language for site (potentially used by theme) | ||||
|  | ||||
| author: | ||||
|   name: John Appleseed                      # Default author name | ||||
|   email: 'john@example.com'                 # Default author email | ||||
|  | ||||
| taxonomies: [category,tag]                  # Arbitrary list of taxonomy types | ||||
|  | ||||
| metadata: | ||||
|   description: 'My Grav Site'               # Site description | ||||
|  | ||||
| summary: | ||||
|   enabled: true                             # enable or disable summary of page | ||||
|   format: short                             # long = summary delimiter will be ignored; short = use the first occurrence of delimiter or size | ||||
|   size: 300                                 # Maximum length of summary (characters) | ||||
|   delimiter: ===                            # The summary delimiter | ||||
|  | ||||
| redirects: | ||||
| #  '/redirect-test': '/'                    # Redirect test goes to home page | ||||
| #  '/old/(.*)': '/new/$1'                   # Would redirect /old/my-page to /new/my-page | ||||
|  | ||||
| routes: | ||||
| #  '/something/else': '/blog/sample-3'      # Alias for /blog/sample-3 | ||||
| #  '/new/(.*)': '/blog/$1'                  # Regex any /new/my-page URL to /blog/my-page Route | ||||
|  | ||||
| blog: | ||||
|   route: '/blog'                            # Custom value added (accessible via system.blog.route) | ||||
|  | ||||
| #menu:                                      # Menu Example | ||||
| #    - text: Source | ||||
| #      icon: github | ||||
| #      url: https://github.com/getgrav/grav | ||||
| #    - icon: twitter | ||||
| #      url: http://twitter.com/getgrav | ||||
							
								
								
									
										16
									
								
								system/config/streams.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,16 @@ | ||||
| schemes: | ||||
|   image: | ||||
|     type: Stream | ||||
|     paths: | ||||
|       - user://images | ||||
|       - system://images | ||||
|  | ||||
|   page: | ||||
|     type: ReadOnlyStream | ||||
|     paths: | ||||
|       - user://pages | ||||
|  | ||||
|   account: | ||||
|     type: ReadOnlyStream | ||||
|     paths: | ||||
|       - user://accounts | ||||
							
								
								
									
										169
									
								
								system/config/system.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,169 @@ | ||||
| absolute_urls: false                             # Absolute or relative URLs for `base_url` | ||||
| timezone: ''                                     # Valid values: http://php.net/manual/en/timezones.php | ||||
| default_locale:                                  # Default locale (defaults to system) | ||||
| param_sep: ':'                                   # Parameter separator, use ';' for Apache on windows | ||||
| wrapped_site: false                              # For themes/plugins to know if Grav is wrapped by another platform | ||||
| reverse_proxy_setup: false                       # Running in a reverse proxy scenario with different webserver ports than proxy | ||||
| force_ssl: false                                 # If enabled, Grav forces to be accessed via HTTPS (NOTE: Not an ideal solution) | ||||
| force_lowercase_urls: true                       # If you want to support mixed cased URLs set this to false | ||||
| custom_base_url: ''                              # Set the base_url manually, e.g. http://yoursite.com/yourpath | ||||
| username_regex: '^[a-z0-9_-]{3,16}$'             # Only lowercase chars, digits, dashes, underscores. 3 - 16 chars | ||||
| pwd_regex: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}' # At least one number, one uppercase and lowercase letter, and be at least 8+ chars | ||||
| intl_enabled: true                               # Special logic for PHP International Extension (mod_intl) | ||||
|  | ||||
| languages: | ||||
|   supported: []                                  # List of languages supported. eg: [en, fr, de] | ||||
|   default_lang:                                  # Default is the first supported language. Must be one of the supported languages | ||||
|   include_default_lang: true                     # Include the default lang prefix in all URLs | ||||
|   pages_fallback_only: false                     # Only fallback to find page content through supported languages | ||||
|   translations: true                             # Enable translations by default | ||||
|   translations_fallback: true                    # Fallback through supported translations if active lang doesn't exist | ||||
|   session_store_active: false                    # Store active language in session | ||||
|   http_accept_language: false                    # Attempt to set the language based on http_accept_language header in the browser | ||||
|   override_locale: false                         # Override the default or system locale with language specific one | ||||
|  | ||||
| home: | ||||
|   alias: '/home'                                 # Default path for home, ie / | ||||
|   hide_in_urls: false                            # Hide the home route in URLs | ||||
|  | ||||
| pages: | ||||
|   theme: quark                                   # Default theme (defaults to "quark" theme) | ||||
|   order: | ||||
|     by: default                                  # Order pages by "default", "alpha" or "date" | ||||
|     dir: asc                                     # Default ordering direction, "asc" or "desc" | ||||
|   list: | ||||
|     count: 20                                    # Default item count per page | ||||
|   dateformat: | ||||
|     default:                                     # The default date format Grav expects in the `date: ` field | ||||
|     short: 'jS M Y'                              # Short date format | ||||
|     long: 'F jS \a\t g:ia'                       # Long date format | ||||
|   publish_dates: true                            # automatically publish/unpublish based on dates | ||||
|   process: | ||||
|     markdown: true                               # Process Markdown | ||||
|     twig: false                                  # Process Twig | ||||
|   twig_first: false                              # Process Twig before markdown when processing both on a page | ||||
|   never_cache_twig: false                        # Only cache content, never cache twig processed in content (incompatible with `twig_first: true`) | ||||
|   events: | ||||
|     page: true                                   # Enable page level events | ||||
|     twig: true                                   # Enable Twig level events | ||||
|   markdown: | ||||
|     extra: false                                 # Enable support for Markdown Extra support (GFM by default) | ||||
|     auto_line_breaks: false                      # Enable automatic line breaks | ||||
|     auto_url_links: false                        # Enable automatic HTML links | ||||
|     escape_markup: false                         # Escape markup tags into entities | ||||
|     special_chars:                               # List of special characters to automatically convert to entities | ||||
|       '>': 'gt' | ||||
|       '<': 'lt' | ||||
|   types: [html,htm,xml,txt,json,rss,atom]        # list of valid page types | ||||
|   append_url_extension: ''                       # Append page's extension in Page urls (e.g. '.html' results in /path/page.html) | ||||
|   expires: 604800                                # Page expires time in seconds (604800 seconds = 7 days) | ||||
|   cache_control:                                 # Can be blank for no setting, or a valid `cache-control` text value | ||||
|   last_modified: false                           # Set the last modified date header based on file modification timestamp | ||||
|   etag: false                                    # Set the etag header tag | ||||
|   vary_accept_encoding: false                    # Add `Vary: Accept-Encoding` header | ||||
|   redirect_default_route: false                  # Automatically redirect to a page's default route | ||||
|   redirect_default_code: 302                     # Default code to use for redirects | ||||
|   redirect_trailing_slash: true                  # Handle automatically or 302 redirect a trailing / URL | ||||
|   ignore_files: [.DS_Store]                      # Files to ignore in Pages | ||||
|   ignore_folders: [.git, .idea]                  # Folders to ignore in Pages | ||||
|   ignore_hidden: true                            # Ignore all Hidden files and folders | ||||
|   hide_empty_folders: false                      # If folder has no .md file, should it be hidden | ||||
|   url_taxonomy_filters: true                     # Enable auto-magic URL-based taxonomy filters for page collections | ||||
|   frontmatter: | ||||
|     process_twig: false                          # Should the frontmatter be processed to replace Twig variables? | ||||
|     ignore_fields: ['form','forms']              # Fields that might contain Twig variables and should not be processed | ||||
|  | ||||
| cache: | ||||
|   enabled: true                                  # Set to true to enable caching | ||||
|   check: | ||||
|     method: file                                 # Method to check for updates in pages: file|folder|hash|none | ||||
|   driver: auto                                   # One of: auto|file|apcu|memcache|wincache | ||||
|   prefix: 'g'                                    # Cache prefix string (prevents cache conflicts) | ||||
|   purge_at: '0 4 * * *'                          # How often to purge old file cache (using new scheduler) | ||||
|   clear_at: '0 3 * * *'                           # How often to clear cache (using new scheduler) | ||||
|   clear_job_type: 'standard'                     # Type to clear when processing the scheduled clear job `standard`|`all` | ||||
|   clear_images_by_default: true                  # By default grav will include processed images in cache clear, this can be disabled | ||||
|   cli_compatibility: false                       # Ensures only non-volatile drivers are used (file, redis, memcache, etc.) | ||||
|   lifetime: 604800                               # Lifetime of cached data in seconds (0 = infinite) | ||||
|   gzip: false                                    # GZip compress the page output | ||||
|   allow_webserver_gzip: false                    # If true, `content-encoding: identity` but connection isn't closed before `onShutDown()` event | ||||
|   redis: | ||||
|     socket: false                                # Path to redis unix socket (e.g. /var/run/redis/redis.sock), false = use server and port to connect | ||||
|  | ||||
| twig: | ||||
|   cache: true                                    # Set to true to enable Twig caching | ||||
|   debug: true                                    # Enable Twig debug | ||||
|   auto_reload: true                              # Refresh cache on changes | ||||
|   autoescape: false                              # Autoescape Twig vars (DEPRECATED, always enabled in strict mode) | ||||
|   undefined_functions: true                      # Allow undefined functions | ||||
|   undefined_filters: true                        # Allow undefined filters | ||||
|   umask_fix: false                               # By default Twig creates cached files as 755, fix switches this to 775 | ||||
|  | ||||
| assets:                                          # Configuration for Assets Manager (JS, CSS) | ||||
|   css_pipeline: false                            # The CSS pipeline is the unification of multiple CSS resources into one file | ||||
|   css_pipeline_include_externals: true           # Include external URLs in the pipeline by default | ||||
|   css_pipeline_before_excludes: true             # Render the pipeline before any excluded files | ||||
|   css_minify: true                               # Minify the CSS during pipelining | ||||
|   css_minify_windows: false                      # Minify Override for Windows platforms. False by default due to ThreadStackSize | ||||
|   css_rewrite: true                              # Rewrite any CSS relative URLs during pipelining | ||||
|   js_pipeline: false                             # The JS pipeline is the unification of multiple JS resources into one file | ||||
|   js_pipeline_include_externals: true            # Include external URLs in the pipeline by default | ||||
|   js_pipeline_before_excludes: true              # Render the pipeline before any excluded files | ||||
|   js_minify: true                                # Minify the JS during pipelining | ||||
|   enable_asset_timestamp: false                  # Enable asset timestamps | ||||
|   collections: | ||||
|     jquery: system://assets/jquery/jquery-2.x.min.js | ||||
|  | ||||
| errors: | ||||
|   display: 0                                     # Display either (1) Full backtrace | (0) Simple Error | (-1) System Error | ||||
|   log: true                                      # Log errors to /logs folder | ||||
|  | ||||
| log: | ||||
|   handler: file                                 # Log handler. Currently supported: file | syslog | ||||
|   syslog: | ||||
|     facility: local6                            # Syslog facilities output | ||||
|  | ||||
| debugger: | ||||
|   enabled: false                                 # Enable Grav debugger and following settings | ||||
|   shutdown: | ||||
|     close_connection: true                       # Close the connection before calling onShutdown(). false for debugging | ||||
|  | ||||
| images: | ||||
|   default_image_quality: 85                      # Default image quality to use when resampling images (85%) | ||||
|   cache_all: false                               # Cache all image by default | ||||
|   cache_perms: '0755'                            # MUST BE IN QUOTES!! Default cache folder perms. Usually '0755' or '0775' | ||||
|   debug: false                                   # Show an overlay over images indicating the pixel depth of the image when working with retina for example | ||||
|   auto_fix_orientation: false                    # Automatically fix the image orientation based on the Exif data | ||||
|   seofriendly: false                             # SEO-friendly processed image names | ||||
|  | ||||
| media: | ||||
|   enable_media_timestamp: false                  # Enable media timestamps | ||||
|   unsupported_inline_types: []                   # Array of supported media types to try to display inline | ||||
|   allowed_fallback_types: []                     # Array of allowed media types of files found if accessed via Page route | ||||
|   auto_metadata_exif: false                      # Automatically create metadata files from Exif data where possible | ||||
|  | ||||
| session: | ||||
|   enabled: true                                  # Enable Session support | ||||
|   initialize: true                               # Initialize session from Grav (if false, plugin needs to start the session) | ||||
|   timeout: 1800                                  # Timeout in seconds | ||||
|   name: grav-site                                # Name prefix of the session cookie. Use alphanumeric, dashes or underscores only. Do not use dots in the session name | ||||
|   uniqueness: path                               # Should sessions be `path` based or `security.salt` based | ||||
|   secure: false                                  # Set session secure. If true, indicates that communication for this cookie must be over an encrypted transmission. Enable this only on sites that run exclusively on HTTPS | ||||
|   httponly: true                                 # Set session HTTP only. If true, indicates that cookies should be used only over HTTP, and JavaScript modification is not allowed. | ||||
|   split: true                                    # Sessions should be independent between site and plugins (such as admin) | ||||
|   path: | ||||
|  | ||||
| gpm: | ||||
|   releases: stable                               # Set to either 'stable' or 'testing' | ||||
|   proxy_url:                                     # Configure a manual proxy URL for GPM (eg 127.0.0.1:3128) | ||||
|   method: 'auto'                                 # Either 'curl', 'fopen' or 'auto'. 'auto' will try fopen first and if not available cURL | ||||
|   verify_peer: true                              # Sometimes on some systems (Windows most commonly) GPM is unable to connect because the SSL certificate cannot be verified. Disabling this setting might help. | ||||
|   official_gpm_only: true                        # By default GPM direct-install will only allow URLs via the official GPM proxy to ensure security | ||||
|  | ||||
| accounts: | ||||
|   type: data                                     # Account type: data or flex | ||||
|   storage: file                                  # Flex storage type: file or folder | ||||
|  | ||||
| strict_mode: | ||||
|   yaml_compat: true                              # Grav 1.5+: Enables YAML backwards compatibility | ||||
|   twig_compat: true                              # Grav 1.5+: Enables deprecated Twig autoescape setting (autoescape: false) | ||||
							
								
								
									
										53
									
								
								system/defines.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,53 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package    Grav\Core | ||||
|  * | ||||
|  * @copyright  Copyright (C) 2015 - 2019 Trilby Media, LLC. All rights reserved. | ||||
|  * @license    MIT License; see LICENSE file for details. | ||||
|  */ | ||||
|  | ||||
| // Some standard defines | ||||
| define('GRAV', true); | ||||
| define('GRAV_VERSION', '1.6.21'); | ||||
| define('GRAV_TESTING', false); | ||||
| define('DS', '/'); | ||||
|  | ||||
| if (!defined('GRAV_PHP_MIN')) { | ||||
|     define('GRAV_PHP_MIN', '7.1.3'); | ||||
| } | ||||
|  | ||||
| // Directories and Paths | ||||
| if (!defined('GRAV_ROOT')) { | ||||
|     define('GRAV_ROOT', str_replace(DIRECTORY_SEPARATOR, DS, getcwd())); | ||||
| } | ||||
| define('ROOT_DIR', GRAV_ROOT . '/'); | ||||
| define('USER_PATH', 'user/'); | ||||
| define('USER_DIR', ROOT_DIR . USER_PATH); | ||||
| define('CACHE_DIR', ROOT_DIR . 'cache/'); | ||||
|  | ||||
| // DEPRECATED: Do not use! | ||||
| define('ASSETS_DIR', ROOT_DIR . 'assets/'); | ||||
| define('IMAGES_DIR', ROOT_DIR . 'images/'); | ||||
| define('ACCOUNTS_DIR', USER_DIR .'accounts/'); | ||||
| define('PAGES_DIR', USER_DIR .'pages/'); | ||||
| define('DATA_DIR', USER_DIR .'data/'); | ||||
| define('SYSTEM_DIR', ROOT_DIR .'system/'); | ||||
| define('LIB_DIR', SYSTEM_DIR .'src/'); | ||||
| define('PLUGINS_DIR', USER_DIR .'plugins/'); | ||||
| define('THEMES_DIR', USER_DIR .'themes/'); | ||||
| define('VENDOR_DIR', ROOT_DIR .'vendor/'); | ||||
| define('LOG_DIR', ROOT_DIR .'logs/'); | ||||
| // END DEPRECATED | ||||
|  | ||||
| // Some extensions | ||||
| define('CONTENT_EXT', '.md'); | ||||
| define('TEMPLATE_EXT', '.html.twig'); | ||||
| define('TWIG_EXT', '.twig'); | ||||
| define('PLUGIN_EXT', '.php'); | ||||
| define('YAML_EXT', '.yaml'); | ||||
|  | ||||
| // Content types | ||||
| define('RAW_CONTENT', 1); | ||||
| define('TWIG_CONTENT', 2); | ||||
| define('TWIG_CONTENT_LIST', 3); | ||||
| define('TWIG_TEMPLATES', 4); | ||||
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-3dm.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.9 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-3ds.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.0 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-3g2.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.9 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-3gp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-7z.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.6 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-aac.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.1 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-ai.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.6 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-aif.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-apk.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.5 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-app.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-asf.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.6 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-asp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-aspx.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.6 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-asx.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-avi.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.4 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-bak.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-bat.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.1 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-bin.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-bmp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.5 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-cab.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.0 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-cad.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.0 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-cdr.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.6 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-cer.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-cfg.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-cfm.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.5 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-cgi.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.6 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-com.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-cpl.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.1 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-cpp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.4 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-crx.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.9 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-csr.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.1 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-css.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-csv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-cue.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-cur.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-dat.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.1 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-db.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.9 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-dbf.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.9 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-dds.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-dem.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-dll.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-dmg.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.0 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-dmp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.5 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-doc.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.0 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-docx.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-drv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-dtd.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.9 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-dwg.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.4 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-dxf.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-elf.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 663 B | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-eot.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.0 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-eps.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-exe.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-fla.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-flv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-fnt.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-fon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-gam.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.1 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-gbr.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-ged.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-gif.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-gpx.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.9 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-gz.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.1 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-gzip.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.4 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-hqz.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.5 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-html.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								system/images/media/thumb-icns.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 3.1 KiB |