commit
d668d90f82
2224 changed files with 334338 additions and 0 deletions
@ -0,0 +1,75 @@
@@ -0,0 +1,75 @@
|
||||
<IfModule mod_rewrite.c> |
||||
|
||||
RewriteEngine On |
||||
|
||||
## Begin RewriteBase |
||||
# If you are getting 500 or 404 errors on subpages, you may have to uncomment the RewriteBase entry |
||||
# You should change the '/' to your appropriate subfolder. For example if you have |
||||
# your Grav install at the root of your site '/' should work, else it might be something |
||||
# along the lines of: RewriteBase /<your_sub_folder> |
||||
## |
||||
|
||||
# RewriteBase / |
||||
|
||||
## End - RewriteBase |
||||
|
||||
## Begin - X-Forwarded-Proto |
||||
# In some hosted or load balanced environments, SSL negotiation happens upstream. |
||||
# In order for Grav to recognize the connection as secure, you need to uncomment |
||||
# the following lines. |
||||
# |
||||
# RewriteCond %{HTTP:X-Forwarded-Proto} https |
||||
# RewriteRule .* - [E=HTTPS:on] |
||||
# |
||||
## End - X-Forwarded-Proto |
||||
|
||||
## Begin - Exploits |
||||
# If you experience problems on your site block out the operations listed below |
||||
# This attempts to block the most common type of exploit `attempts` to Grav |
||||
# |
||||
# Block out any script trying to base64_encode data within the URL. |
||||
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR] |
||||
# Block out any script that includes a <script> tag in URL. |
||||
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR] |
||||
# Block out any script trying to set a PHP GLOBALS variable via URL. |
||||
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] |
||||
# Block out any script trying to modify a _REQUEST variable via URL. |
||||
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) |
||||
# Return 403 Forbidden header and show the content of the root homepage |
||||
RewriteRule .* index.php [F] |
||||
# |
||||
## End - Exploits |
||||
|
||||
## Begin - Index |
||||
# If the requested path and file is not /index.php and the request |
||||
# has not already been internally rewritten to the index.php script |
||||
RewriteCond %{REQUEST_URI} !^/index\.php |
||||
# and the requested path and file doesn't directly match a physical file |
||||
RewriteCond %{REQUEST_FILENAME} !-f |
||||
# and the requested path and file doesn't directly match a physical folder |
||||
RewriteCond %{REQUEST_FILENAME} !-d |
||||
# internally rewrite the request to the index.php script |
||||
RewriteRule .* index.php [L] |
||||
## End - Index |
||||
|
||||
## Begin - Security |
||||
# Block all direct access for these folders |
||||
RewriteRule ^(\.git|cache|bin|logs|backup|webserver-configs|tests)/(.*) error [F] |
||||
# Block access to specific file types for these system folders |
||||
RewriteRule ^(system|vendor)/(.*)\.(txt|xml|md|html|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ error [F] |
||||
# Block access to specific file types for these user folders |
||||
RewriteRule ^(user)/(.*)\.(txt|md|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ error [F] |
||||
# Block all direct access to .md files: |
||||
RewriteRule \.md$ error [F] |
||||
# Block all direct access to files and folders beginning with a dot |
||||
RewriteRule (^|/)\.(?!well-known) - [F] |
||||
# Block access to specific files in the root folder |
||||
RewriteRule ^(LICENSE\.txt|composer\.lock|composer\.json|\.htaccess)$ error [F] |
||||
## End - Security |
||||
|
||||
</IfModule> |
||||
|
||||
# Begin - Prevent Browsing and Set Default Resources |
||||
Options -Indexes |
||||
DirectoryIndex index.php index.html index.htm |
||||
# End - Prevent Browsing and Set Default Resources |
@ -0,0 +1,46 @@
@@ -0,0 +1,46 @@
|
||||
# Contributor Covenant Code of Conduct |
||||
|
||||
## Our Pledge |
||||
|
||||
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. |
||||
|
||||
## Our Standards |
||||
|
||||
Examples of behavior that contributes to creating a positive environment include: |
||||
|
||||
* Using welcoming and inclusive language |
||||
* Being respectful of differing viewpoints and experiences |
||||
* Gracefully accepting constructive criticism |
||||
* Focusing on what is best for the community |
||||
* Showing empathy towards other community members |
||||
|
||||
Examples of unacceptable behavior by participants include: |
||||
|
||||
* The use of sexualized language or imagery and unwelcome sexual attention or advances |
||||
* Trolling, insulting/derogatory comments, and personal or political attacks |
||||
* Public or private harassment |
||||
* Publishing others' private information, such as a physical or electronic address, without explicit permission |
||||
* Other conduct which could reasonably be considered inappropriate in a professional setting |
||||
|
||||
## Our Responsibilities |
||||
|
||||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. |
||||
|
||||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. |
||||
|
||||
## Scope |
||||
|
||||
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. |
||||
|
||||
## Enforcement |
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at contact@getgrav.org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. |
||||
|
||||
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. |
||||
|
||||
## Attribution |
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] |
||||
|
||||
[homepage]: http://contributor-covenant.org |
||||
[version]: http://contributor-covenant.org/version/1/4/ |
@ -0,0 +1,138 @@
@@ -0,0 +1,138 @@
|
||||
# Contributing to Grav |
||||
|
||||
:+1::tada: First, thanks for getting involved with Grav! :tada::+1: |
||||
|
||||
Please take a moment to review this document in order to make the contribution |
||||
process easy and effective for everyone involved. |
||||
|
||||
Following these guidelines helps to communicate that you respect the time of |
||||
the developers managing and developing this open source project. In return, |
||||
they should reciprocate that respect in addressing your issue or assessing |
||||
patches and features. |
||||
|
||||
## Grav, Plugins, Themes and Skeletons |
||||
|
||||
Grav is a large open source project โ it's made up of over 100 repositories. When you initially consider contributing to Grav, you might be unsure about which of those 200 repositories implements the functionality you want to change or report a bug for. |
||||
|
||||
[https://github.com/getgrav/grav](https://github.com/getgrav/grav) is the main Grav repository. The core of Grav is provided by this repo. |
||||
|
||||
[https://github.com/getgrav/grav-plugin-admin](https://github.com/getgrav/grav-plugin-admin) is the Admin Plugin repository. |
||||
|
||||
Every Plugin and Theme has its own repository. If you have a problem you think is specific to a Theme or Plugin, please report it in its corresponding repository. Please read the Plugin or Theme documentation to ensure the problem is not addressed there already. |
||||
|
||||
Every Skeleton also has its own repository, so if an issue is not specific to a theme or plugin but rather to its usage in the skeleton, report it in the skeleton repository. |
||||
|
||||
## Using the issue tracker |
||||
|
||||
The issue tracker is the preferred channel for [bug reports](#bugs), |
||||
[features requests](#features) and [submitting pull |
||||
requests](#pull-requests), but please respect the following restrictions: |
||||
|
||||
* Please **do not** use the issue tracker for support requests. Use |
||||
[the Forum](http://getgrav.org/forum) or [the Chat](https://chat.getgrav.org/). |
||||
|
||||
|
||||
<a name="bugs"></a> |
||||
## Bug reports |
||||
|
||||
A bug is a _demonstrable problem_ that is caused by the code in the repository. |
||||
Good bug reports are extremely helpful - thank you! |
||||
|
||||
Guidelines for bug reports: |
||||
|
||||
1. **Check you satisfy the Grav requirements** — [http://learn.getgrav.org/basics/requirements](http://learn.getgrav.org/basics/requirements) |
||||
|
||||
2. **Check this happens on a clean Grav install** — check if the issue happens on any Grav site, or just with a specific configuration of plugins / theme |
||||
|
||||
3. **Use the GitHub issue search** — check if the issue has already been |
||||
reported. |
||||
|
||||
4. **Check if the issue is already being solved in a PR** — check the open Pull Requests to see if one already solves the problem you're having |
||||
|
||||
5. **Check if the issue has been fixed** — try to reproduce it using the |
||||
latest `develop` branch in the repository. |
||||
|
||||
6. **Isolate the problem** — create a [reduced test |
||||
case](http://css-tricks.com/reduced-test-cases/) and provide a step-by-step instruction set on how to recreate the problem. Include code samples, page snippets or yaml configurations if needed. |
||||
|
||||
7. **Check the problem on Grav 1.1** — if you're using Grav 1.0, latest stable release, please also check if you can replicate the issue on Grav 1.1 RC as many bugs are already solved in the next Grav release. |
||||
|
||||
A good bug report shouldn't leave others needing to chase you up for more |
||||
information. Please try to be as detailed as possible in your report. |
||||
|
||||
- What is your environment? Is it localhost, OSX, Linux, on a remote server? Same happening locally and or the server, or just locally or just on Linux? |
||||
|
||||
- What steps will reproduce the issue? What browser(s) and OS experience the problem? |
||||
|
||||
- What would you expect to be the outcome? |
||||
|
||||
- Did the problem start happening recently (e.g. after updating to a new version of Grav) or was this always a problem? |
||||
|
||||
- If the problem started happening recently, can you reproduce the problem in an older version of Grav? What's the most recent version in which the problem doesn't happen? You can download older versions of Grav from the releases page on Github. |
||||
|
||||
- Can you reliably reproduce the issue? If not, provide details about how often the problem happens and under which conditions it normally happens. |
||||
|
||||
|
||||
All these details will help contributors to fix any potential bugs. |
||||
|
||||
Important: [include Code Samples in triple backticks](https://help.github.com/articles/github-flavored-markdown/#fenced-code-blocks) so that Github will provide a proper indentation. [Add the language name after the backticks](https://help.github.com/articles/github-flavored-markdown/#syntax-highlighting) to add syntax highlighting to the code snippets. |
||||
|
||||
Example: |
||||
|
||||
> Short and descriptive example bug report title |
||||
> |
||||
> A summary of the issue and the browser/OS environment in which it occurs. If |
||||
> suitable, include the steps required to reproduce the bug. |
||||
> |
||||
> 1. This is the first step |
||||
> 2. This is the second step |
||||
> 3. Further steps, etc. |
||||
>> |
||||
> Any other information you want to share that is relevant to the issue being |
||||
> reported. This might include the lines of code that you have identified as |
||||
> causing the bug, and potential solutions (and your opinions on their |
||||
> merits). |
||||
|
||||
|
||||
<a name="features"></a> |
||||
## Feature requests |
||||
|
||||
Feature requests are welcome. But take a moment to find out whether your idea |
||||
fits with the scope and aims of the project. It's up to *you* to make a strong |
||||
case to convince the project's developers of the merits of this feature. Please |
||||
provide as much detail and context as possible. |
||||
|
||||
|
||||
<a name="pull-requests"></a> |
||||
## Pull requests |
||||
|
||||
Good pull requests - patches, improvements, new features - are a fantastic |
||||
help. They should remain focused in scope and avoid containing unrelated |
||||
commits. |
||||
|
||||
**Please ask first** in [the Forum](http://getgrav.org/forum) or [the Chat](https://chat.getgrav.org/) |
||||
before embarking on any significant pull request (e.g. |
||||
implementing features, refactoring code..), |
||||
otherwise you risk spending a lot of time working on something that the |
||||
project's developers might not want to merge into the project. |
||||
|
||||
Please adhere to the coding conventions used throughout the project (indentation, |
||||
accurate comments, etc.) and any other requirements. |
||||
|
||||
See [Using Pull Request](https://help.github.com/articles/using-pull-requests/) and [Fork a Repo](https://help.github.com/articles/fork-a-repo/) if you're not familiar with Pull Requests. |
||||
|
||||
Any pull request should be based on the `develop` branch. We will not consider pull requests made to master. |
||||
|
||||
**IMPORTANT**: By submitting a patch, you agree to allow the project owner to |
||||
license your work under the same license as that used by the project. |
||||
|
||||
<a name="translations"></a> |
||||
### Translations |
||||
Translations for Grav core and the Admin plugin are managed through Crowdin: |
||||
|
||||
- Admin: https://crowdin.com/project/grav-admin |
||||
- Core: https://crowdin.com/project/grav-core |
||||
|
||||
Please do not post translations PRs for core or admin translations on GitHub, with the exception of fixes for the english language. |
||||
|
||||
All other plugins and themes translations are handled directly in their GitHub repository, and the string are usually found in the `languages.yaml` file at the root of each project. |
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT) |
||||
|
||||
Copyright (c) 2018 Grav |
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
of this software and associated documentation files (the "Software"), to deal |
||||
in the Software without restriction, including without limitation the rights |
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
copies of the Software, and to permit persons to whom the Software is |
||||
furnished to do so, subject to the following conditions: |
||||
|
||||
The above copyright notice and this permission notice shall be included in all |
||||
copies or substantial portions of the Software. |
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
SOFTWARE. |
@ -0,0 +1,134 @@
@@ -0,0 +1,134 @@
|
||||
#  Grav |
||||
|
||||
[](https://github.com/phpstan/phpstan) |
||||
[](https://insight.sensiolabs.com/projects/cfd20465-d0f8-4a0a-8444-467f5b5f16ad) |
||||
[](https://chat.getgrav.org) |
||||
[](https://travis-ci.org/getgrav/grav) [](#backers) [](#sponsors) |
||||
|
||||
Grav is a **Fast**, **Simple**, and **Flexible**, file-based Web-platform. There is **Zero** installation required. Just extract the ZIP archive, and you are already up and running. It follows similar principles to other flat-file CMS platforms, but has a different design philosophy than most. Grav comes with a powerful **Package Management System** to allow for simple installation and upgrading of plugins and themes, as well as simple updating of Grav itself. |
||||
|
||||
The underlying architecture of Grav is designed to use well-established and _best-in-class_ technologies to ensure that Grav is simple to use and easy to extend. Some of these key technologies include: |
||||
|
||||
* [Twig Templating](https://twig.sensiolabs.org/): for powerful control of the user interface |
||||
* [Markdown](https://en.wikipedia.org/wiki/Markdown): for easy content creation |
||||
* [YAML](https://yaml.org): for simple configuration |
||||
* [Parsedown](https://parsedown.org/): for fast Markdown and Markdown Extra support |
||||
* [Doctrine Cache](https://www.doctrine-project.org/projects/doctrine-orm/en/latest/reference/caching.html): layer for performance |
||||
* [Pimple Dependency Injection Container](https://pimple.sensiolabs.org/): for extensibility and maintainability |
||||
* [Symfony Event Dispatcher](https://symfony.com/doc/current/components/event_dispatcher/introduction.html): for plugin event handling |
||||
* [Symfony Console](https://symfony.com/doc/current/components/console/introduction.html): for CLI interface |
||||
* [Gregwar Image Library](https://github.com/Gregwar/Image): for dynamic image manipulation |
||||
|
||||
# Requirements |
||||
|
||||
- PHP 7.1.3 or higher. Check the [required modules list](https://learn.getgrav.org/basics/requirements#php-requirements) |
||||
- Check the [Apache](https://learn.getgrav.org/basics/requirements#apache-requirements) or [IIS](https://learn.getgrav.org/basics/requirements#iis-requirements) requirements |
||||
|
||||
# QuickStart |
||||
|
||||
These are the options to get Grav: |
||||
|
||||
### Downloading a Grav Package |
||||
|
||||
You can download a **ready-built** package from the [Downloads page on https://getgrav.org](https://getgrav.org/downloads) |
||||
|
||||
### With Composer |
||||
|
||||
You can create a new project with the latest **stable** Grav release with the following command: |
||||
|
||||
``` |
||||
$ composer create-project getgrav/grav ~/webroot/grav |
||||
``` |
||||
|
||||
### From GitHub |
||||
|
||||
1. Clone the Grav repository from [https://github.com/getgrav/grav]() to a folder in the webroot of your server, e.g. `~/webroot/grav`. Launch a **terminal** or **console** and navigate to the webroot folder: |
||||
``` |
||||
$ cd ~/webroot |
||||
$ git clone https://github.com/getgrav/grav.git |
||||
``` |
||||
|
||||
2. Install the **plugin** and **theme dependencies** by using the [Grav CLI application](https://learn.getgrav.org/advanced/grav-cli) `bin/grav`: |
||||
``` |
||||
$ cd ~/webroot/grav |
||||
$ bin/grav install |
||||
``` |
||||
|
||||
Check out the [install procedures](https://learn.getgrav.org/basics/installation) for more information. |
||||
|
||||
# Adding Functionality |
||||
|
||||
You can download [plugins](https://getgrav.org/downloads/plugins) or [themes](https://getgrav.org/downloads/themes) manually from the appropriate tab on the [Downloads page on https://getgrav.org](https://getgrav.org/downloads), but the preferred solution is to use the [Grav Package Manager](https://learn.getgrav.org/advanced/grav-gpm) or `GPM`: |
||||
|
||||
``` |
||||
$ bin/gpm index |
||||
``` |
||||
|
||||
This will display all the available plugins and then you can install one or more with: |
||||
|
||||
``` |
||||
$ bin/gpm install <plugin/theme> |
||||
``` |
||||
|
||||
# Updating |
||||
|
||||
To update Grav you should use the [Grav Package Manager](https://learn.getgrav.org/advanced/grav-gpm) or `GPM`: |
||||
|
||||
``` |
||||
$ bin/gpm selfupgrade |
||||
``` |
||||
|
||||
To update plugins and themes: |
||||
|
||||
``` |
||||
$ bin/gpm update |
||||
``` |
||||
|
||||
|
||||
# Contributing |
||||
We appreciate any contribution to Grav, whether it is related to bugs, grammar, or simply a suggestion or improvement! Please refer to the [Contributing guide](CONTRIBUTING.md) for more guidance on this topic. |
||||
|
||||
## Security issues |
||||
If you discover a possible security issue related to Grav or one of its plugins, please email the core team at contact@getgrav.org and we'll address it as soon as possible. |
||||
|
||||
# Getting Started |
||||
|
||||
* [What is Grav?](https://learn.getgrav.org/basics/what-is-grav) |
||||
* [Install](https://learn.getgrav.org/basics/installation) Grav in few seconds |
||||
* Understand the [Configuration](https://learn.getgrav.org/basics/grav-configuration) |
||||
* Take a peek at our available free [Skeletons](https://getgrav.org/downloads/skeletons) |
||||
* If you have questions, jump on our [Discord Chat Server](https://chat.getgrav.org)! |
||||
* Have fun! |
||||
|
||||
# Exploring More |
||||
|
||||
* Have a look at our [Basic Tutorial](https://learn.getgrav.org/basics/basic-tutorial) |
||||
* Dive into more [advanced](https://learn.getgrav.org/advanced) functions |
||||
* Learn about the [Grav CLI](https://learn.getgrav.org/cli-console/grav-cli) |
||||
* Review examples in the [Grav Cookbook](https://learn.getgrav.org/cookbook) |
||||
* More [Awesome Grav Stuff](https://github.com/getgrav/awesome-grav) |
||||
|
||||
# Backers |
||||
Support Grav with a monthly donation to help us continue development. [[Become a backer](https://opencollective.com/grav#backer)] |
||||
|
||||
<img src="https://opencollective.com/grav/tiers/backers.svg?avatarHeight=36&width=600" /> |
||||
|
||||
# Sponsors |
||||
Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/grav#sponsor)] |
||||
|
||||
<img src="https://opencollective.com/grav/tiers/sponsors.svg?avatarHeight=36&width=600" /> |
||||
|
||||
# License |
||||
|
||||
See [LICENSE](LICENSE.txt) |
||||
|
||||
|
||||
[gitflow-model]: http://nvie.com/posts/a-successful-git-branching-model/ |
||||
[gitflow-extensions]: https://github.com/nvie/gitflow |
||||
|
||||
# Running Tests |
||||
|
||||
First install the dev dependencies by running `composer update` from the Grav root. |
||||
Then `composer test` will run the Unit Tests, which should be always executed successfully on any site. |
||||
Windows users should use the `composer test-windows` command. |
||||
You can also run a single unit test file, e.g. `composer test tests/unit/Grav/Common/AssetsTest.php` |
Binary file not shown.
@ -0,0 +1,79 @@
@@ -0,0 +1,79 @@
|
||||
#!/usr/bin/env php |
||||
<?php |
||||
|
||||
use Grav\Common\Composer; |
||||
use Symfony\Component\Console\Application; |
||||
use Grav\Common\Grav; |
||||
|
||||
\define('GRAV_CLI', true); |
||||
\define('GRAV_REQUEST_TIME', microtime(true)); |
||||
|
||||
if (!file_exists(__DIR__ . '/../vendor/autoload.php')){ |
||||
// Before we can even start, we need to run composer first |
||||
require_once __DIR__ . '/../system/src/Grav/Common/Composer.php'; |
||||
|
||||
$composer = Composer::getComposerExecutor(); |
||||
echo "Preparing to install vendor dependencies...\n\n"; |
||||
echo system($composer.' --working-dir="'.__DIR__.'/../" --no-interaction --no-dev --prefer-dist -o install'); |
||||
echo "\n\n"; |
||||
} |
||||
|
||||
$autoload = require __DIR__ . '/../vendor/autoload.php'; |
||||
|
||||
if (version_compare($ver = PHP_VERSION, $req = GRAV_PHP_MIN, '<')) { |
||||
exit(sprintf("You are running PHP %s, but Grav needs at least PHP %s to run.\n", $ver, $req)); |
||||
} |
||||
|
||||
if (!ini_get('date.timezone')) { |
||||
date_default_timezone_set('UTC'); |
||||
} |
||||
|
||||
// Set internal encoding. |
||||
if (!\extension_loaded('mbstring')) { |
||||
die("'mbstring' extension is not loaded. This is required for Grav to run correctly"); |
||||
} |
||||
@ini_set('default_charset', 'UTF-8'); |
||||
mb_internal_encoding('UTF-8'); |
||||
|
||||
if (!file_exists(GRAV_ROOT . '/index.php')) { |
||||
exit('FATAL: Must be run from ROOT directory of Grav!'); |
||||
} |
||||
|
||||
if (!function_exists('curl_version')) { |
||||
exit('FATAL: GPM requires PHP Curl module to be installed'); |
||||
} |
||||
|
||||
$climate = new League\CLImate\CLImate; |
||||
$climate->arguments->add([ |
||||
'environment' => [ |
||||
'prefix' => 'e', |
||||
'longPrefix' => 'env', |
||||
'description' => 'Configuration Environment', |
||||
'defaultValue' => 'localhost' |
||||
] |
||||
]); |
||||
$climate->arguments->parse(); |
||||
|
||||
// Set up environment based on params. |
||||
$environment = $climate->arguments->get('environment'); |
||||
|
||||
$grav = Grav::instance(array('loader' => $autoload)); |
||||
$grav->setup($environment); |
||||
|
||||
$grav['config']->init(); |
||||
$grav['uri']->init(); |
||||
$grav['accounts']; |
||||
|
||||
$app = new Application('Grav Package Manager', GRAV_VERSION); |
||||
$app->addCommands(array( |
||||
new \Grav\Console\Gpm\IndexCommand(), |
||||
new \Grav\Console\Gpm\VersionCommand(), |
||||
new \Grav\Console\Gpm\InfoCommand(), |
||||
new \Grav\Console\Gpm\InstallCommand(), |
||||
new \Grav\Console\Gpm\UninstallCommand(), |
||||
new \Grav\Console\Gpm\UpdateCommand(), |
||||
new \Grav\Console\Gpm\SelfupgradeCommand(), |
||||
new \Grav\Console\Gpm\DirectInstallCommand(), |
||||
)); |
||||
|
||||
$app->run(); |
@ -0,0 +1,74 @@
@@ -0,0 +1,74 @@
|
||||
#!/usr/bin/env php |
||||
<?php |
||||
|
||||
use Grav\Common\Composer; |
||||
use Grav\Common\Grav; |
||||
use League\CLImate\CLImate; |
||||
use Symfony\Component\Console\Application; |
||||
|
||||
\define('GRAV_CLI', true); |
||||
\define('GRAV_REQUEST_TIME', microtime(true)); |
||||
|
||||
if (!file_exists(__DIR__ . '/../vendor/autoload.php')){ |
||||
// Before we can even start, we need to run composer first |
||||
require_once __DIR__ . '/../system/src/Grav/Common/Composer.php'; |
||||
|
||||
$composer = Composer::getComposerExecutor(); |
||||
echo "Preparing to install vendor dependencies...\n\n"; |
||||
echo system($composer.' --working-dir="'.__DIR__.'/../" --no-interaction --no-dev --prefer-dist -o install'); |
||||
echo "\n\n"; |
||||
} |
||||
|
||||
$autoload = require __DIR__ . '/../vendor/autoload.php'; |
||||
|
||||
if (version_compare($ver = PHP_VERSION, $req = GRAV_PHP_MIN, '<')) { |
||||
exit(sprintf("You are running PHP %s, but Grav needs at least PHP %s to run.\n", $ver, $req)); |
||||
} |
||||
|
||||
if (!ini_get('date.timezone')) { |
||||
date_default_timezone_set('UTC'); |
||||
} |
||||
|
||||
// Set internal encoding. |
||||
if (!\extension_loaded('mbstring')) { |
||||
die("'mbstring' extension is not loaded. This is required for Grav to run correctly"); |
||||
} |
||||
@ini_set('default_charset', 'UTF-8'); |
||||
mb_internal_encoding('UTF-8'); |
||||
|
||||
$climate = new League\CLImate\CLImate; |
||||
$climate->arguments->add([ |
||||
'environment' => [ |
||||
'prefix' => 'e', |
||||
'longPrefix' => 'env', |
||||
'description' => 'Configuration Environment', |
||||
'defaultValue' => 'localhost' |
||||
] |
||||
]); |
||||
$climate->arguments->parse(); |
||||
|
||||
// Set up environment based on params. |
||||
$environment = $climate->arguments->get('environment'); |
||||
|
||||
$grav = Grav::instance(array('loader' => $autoload)); |
||||
$grav->setup($environment); |
||||
|
||||
if (!file_exists(GRAV_ROOT . '/index.php')) { |
||||
exit('FATAL: Must be run from ROOT directory of Grav!'); |
||||
} |
||||
|
||||
$app = new Application('Grav CLI Application', GRAV_VERSION); |
||||
$app->addCommands(array( |
||||
new \Grav\Console\Cli\InstallCommand(), |
||||
new \Grav\Console\Cli\ComposerCommand(), |
||||
new \Grav\Console\Cli\SandboxCommand(), |
||||
new \Grav\Console\Cli\CleanCommand(), |
||||
new \Grav\Console\Cli\ClearCacheCommand(), |
||||
new \Grav\Console\Cli\BackupCommand(), |
||||
new \Grav\Console\Cli\NewProjectCommand(), |
||||
new \Grav\Console\Cli\SchedulerCommand(), |
||||
new \Grav\Console\Cli\SecurityCommand(), |
||||
new \Grav\Console\Cli\LogViewerCommand(), |
||||
new \Grav\Console\Cli\YamlLinterCommand(), |
||||
)); |
||||
$app->run(); |
@ -0,0 +1,152 @@
@@ -0,0 +1,152 @@
|
||||
#!/usr/bin/env php |
||||
<?php |
||||
|
||||
use Grav\Common\Composer; |
||||
use Symfony\Component\Console\Application; |
||||
use Symfony\Component\Console\Input\ArgvInput; |
||||
use Symfony\Component\Console\Output\ConsoleOutput; |
||||
use Symfony\Component\Console\Formatter\OutputFormatterStyle; |
||||
use Grav\Common\Grav; |
||||
use Grav\Common\Filesystem\Folder; |
||||
|
||||
\define('GRAV_CLI', true); |
||||
\define('GRAV_REQUEST_TIME', microtime(true)); |
||||
|
||||
if (!file_exists(__DIR__ . '/../vendor/autoload.php')){ |
||||
// Before we can even start, we need to run composer first |
||||
require_once __DIR__ . '/../system/src/Grav/Common/Composer.php'; |
||||
|
||||
$composer = Composer::getComposerExecutor(); |
||||
echo "Preparing to install vendor dependencies...\n\n"; |
||||
echo system($composer.' --working-dir="'.__DIR__.'/../" --no-interaction --no-dev --prefer-dist -o install'); |
||||
echo "\n\n"; |
||||
} |
||||
|
||||
$autoload = require __DIR__ . '/../vendor/autoload.php'; |
||||
|
||||
if (version_compare($ver = PHP_VERSION, $req = GRAV_PHP_MIN, '<')) { |
||||
exit(sprintf("You are running PHP %s, but Grav needs at least PHP %s to run.\n", $ver, $req)); |
||||
} |
||||
|
||||
if (!ini_get('date.timezone')) { |
||||
date_default_timezone_set('UTC'); |
||||
} |
||||
|
||||
// Set internal encoding. |
||||
if (!\extension_loaded('mbstring')) { |
||||
die("'mbstring' extension is not loaded. This is required for Grav to run correctly"); |
||||
} |
||||
@ini_set('default_charset', 'UTF-8'); |
||||
mb_internal_encoding('UTF-8'); |
||||
|
||||
if (!file_exists(GRAV_ROOT . '/index.php')) { |
||||
exit('FATAL: Must be run from ROOT directory of Grav!'); |
||||
} |
||||
|
||||
$climate = new League\CLImate\CLImate; |
||||
$climate->arguments->add([ |
||||
'environment' => [ |
||||
'prefix' => 'e', |
||||
'longPrefix' => 'env', |
||||
'description' => 'Configuration Environment', |
||||
'defaultValue' => 'localhost' |
||||
] |
||||
]); |
||||
$climate->arguments->parse(); |
||||
|
||||
$environment = $climate->arguments->get('environment'); |
||||
|
||||
$grav = Grav::instance(array('loader' => $autoload)); |
||||
$grav->setup($environment); |
||||
$grav->initializeCli(); |
||||
|
||||
$app = new Application('Grav Plugins Commands', GRAV_VERSION); |
||||
$pattern = '([A-Z]\w+Command\.php)'; |
||||
|
||||
// get arguments and strip the application name |
||||
if (null === $argv) { |
||||
$argv = $_SERVER['argv']; |
||||
} |
||||
|
||||
$bin = array_shift($argv); |
||||
$name = array_shift($argv); |
||||
$argv = array_merge([$bin], $argv); |
||||
|
||||
$input = new ArgvInput($argv); |
||||
|
||||
/** @var \Grav\Common\Data\Data $plugin */ |
||||
$plugin = $grav['plugins']->get($name); |
||||
|
||||
$output = new ConsoleOutput(); |
||||
$output->getFormatter()->setStyle('red', new OutputFormatterStyle('red', null, array('bold'))); |
||||
$output->getFormatter()->setStyle('white', new OutputFormatterStyle('white', null, array('bold'))); |
||||
|
||||
if (!$name) { |
||||
$output->writeln(''); |
||||
$output->writeln('<red>Usage:</red>'); |
||||
$output->writeln(" {$bin} [slug] [command] [arguments]"); |
||||
$output->writeln(''); |
||||
$output->writeln('<red>Example:</red>'); |
||||
$output->writeln(" {$bin} error log -l 1 --trace"); |
||||
$list = Folder::all('plugins://', ['compare' => 'Pathname', 'pattern' => '/\/cli\/' . $pattern . '$/usm', 'levels' => 2]); |
||||
|
||||
$total = 0; |
||||
if (count($list)) { |
||||
$available = []; |
||||
$output->writeln(''); |
||||
$output->writeln('<red>Plugins with CLI available:</red>'); |
||||
foreach ($list as $index => $entry) { |
||||
$split = explode('/', $entry); |
||||
$entry = array_shift($split); |
||||
$index = str_pad($index++ + 1, 2, '0', STR_PAD_LEFT); |
||||
$total = str_pad($total++ + 1, 2, '0', STR_PAD_LEFT); |
||||
if (\in_array($entry, $available, true)) { |
||||
$total--; |
||||
continue; |
||||
} |
||||
|
||||
$available[] = $entry; |
||||
$commands_count = $index - $total + 1; |
||||
$output->writeln(' ' . $total . '. <red>' . str_pad($entry, 15) . "</red> <white>{$bin} {$entry} list</white>"); |
||||
} |
||||
} |
||||
|
||||
exit; |
||||
} else { |
||||
if (is_null($plugin)) { |
||||
$output->writeln(''); |
||||
$output->writeln("<red>$name plugin not found</red>"); |
||||
die; |
||||
} |
||||
|
||||
if (!$plugin->enabled) { |
||||
$output->writeln(''); |
||||
$output->writeln("<red>$name not enabled</red>"); |
||||
die; |
||||
} |
||||
} |
||||
|
||||
if ($plugin === null) { |
||||
$output->writeln("<red>Grav Plugin <white>'{$name}'</white> is not installed</red>"); |
||||
exit; |
||||
} |
||||
|
||||
$path = 'plugins://' . $name . '/cli'; |
||||
|
||||
try { |
||||
$commands = Folder::all($path, ['compare' => 'Filename', 'pattern' => '/' . $pattern . '$/usm', 'levels' => 1]); |
||||
} catch (\RuntimeException $e) { |
||||
$output->writeln("<red>No Console Commands for <white>'{$name}'</white> where found in <white>'{$path}'</white></red>"); |
||||
exit; |
||||
} |
||||
|
||||
foreach ($commands as $command_path) { |
||||
$full_path = $grav['locator']->findResource("plugins://{$name}/cli/{$command_path}"); |
||||
require_once $full_path; |
||||
|
||||
$command_class = 'Grav\Plugin\Console\\' . preg_replace('/.php$/', '', $command_path); |
||||
$command = new $command_class(); |
||||
$app->add($command); |
||||
} |
||||
|
||||
$app->run($input); |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,181 @@
@@ -0,0 +1,181 @@
|
||||
<?php |
||||
return [ |
||||
'@class' => 'Grav\\Common\\File\\CompiledYamlFile', |
||||
'filename' => '/home/phvos/web/dedijk4.nl/public_html/user/plugins/email/languages.yaml', |
||||
'modified' => 1581466810, |
||||
'data' => [ |
||||
'en' => [ |
||||
'PLUGIN_EMAIL' => [ |
||||
'MAIL_ENGINE' => 'Mail Engine', |
||||
'MAIL_ENGINE_DISABLED' => 'Disabled', |
||||
'CONTENT_TYPE' => 'Content type', |
||||
'CONTENT_TYPE_PLAIN_TEXT' => 'Plain text', |
||||
'CHARSET' => 'Charset', |
||||
'CHARSET_PLACEHOLDER' => 'Defaults to UTF-8', |
||||
'EMAIL_FORM' => 'From address', |
||||
'EMAIL_FORM_PLACEHOLDER' => 'Default email from address', |
||||
'EMAIL_FROM_NAME' => 'From name', |
||||
'EMAIL_FROM_NAME_PLACEHOLDER' => 'Default email from name', |
||||
'EMAIL_TO' => 'To address', |
||||
'EMAIL_TO_PLACEHOLDER' => 'Default email to address', |
||||
'EMAIL_TO_NAME' => 'To name', |
||||
'EMAIL_TO_NAME_PLACEHOLDER' => 'Default email to name', |
||||
'EMAIL_CC' => 'CC address', |
||||
'EMAIL_CC_PLACEHOLDER' => 'Default email CC address', |
||||
'EMAIL_CC_NAME' => 'CC name', |
||||
'EMAIL_CC_NAME_PLACEHOLDER' => 'Default email CC name', |
||||
'EMAIL_BCC' => 'BCC address', |
||||
'EMAIL_BCC_PLACEHOLDER' => 'Default email BCC address', |
||||
'EMAIL_REPLY_TO' => 'Reply-to address', |
||||
'EMAIL_REPLY_TO_PLACEHOLDER' => 'Default email reply-to address', |
||||
'EMAIL_REPLY_TO_NAME' => 'Reply-to name', |
||||
'EMAIL_REPLY_TO_NAME_PLACEHOLDER' => 'Default email reply-to name', |
||||
'EMAIL_BODY' => 'Body', |
||||
'EMAIL_BODY_PLACEHOLDER' => 'Defaults to a table of all form fields', |
||||
'SMTP_SERVER' => 'SMTP server', |
||||
'SMTP_SERVER_PLACEHOLDER' => 'e.g. smtp.google.com', |
||||
'SMTP_PORT' => 'SMTP port', |
||||
'SMTP_PORT_PLACEHOLDER' => 'Defaults to 25 (plaintext) / 587 (encrypted)', |
||||
'SMTP_ENCRYPTION' => 'SMTP encryption', |
||||
'SMTP_ENCRYPTION_NONE' => 'None', |
||||
'SMTP_LOGIN_NAME' => 'SMTP login name', |
||||
'SMTP_PASSWORD' => 'SMTP password', |
||||
'PATH_TO_SENDMAIL' => 'Path to sendmail', |
||||
'DEBUG' => 'Debug', |
||||
'EMAIL_NOT_CONFIGURED' => 'Email not configured', |
||||
'PLEASE_CONFIGURE_A_TO_ADDRESS' => 'Please configure a \'to\' address in the Email Plugin settings, or in the form', |
||||
'PLEASE_CONFIGURE_A_FROM_ADDRESS' => 'Please configure a \'from\' address in the Email Plugin settings, or in the form', |
||||
'TEST_EMAIL_BODY' => '<h1>Testing Email</h1><p>This test email has been sent based on the following configuration:</p> <p><pre>%1$s</pre></p>', |
||||
'EMAIL_DEFAULTS' => 'Email Defaults', |
||||
'SMTP_CONFIGURATION' => 'SMTP Configuration', |
||||
'SENDMAIL_CONFIGURATION' => 'Sendmail Configuration', |
||||
'ADVANCED' => 'Advanced', |
||||
'EMAIL_FOOTER' => 'GetGrav.org', |
||||
'QUEUE_TITLE' => 'Email Queue', |
||||
'QUEUE_DESC' => 'When you enable the email queue, email is not <i>sent immediately</i>, rather the email is sent to the queue, and then the Grav <strong>scheduler will flush the queue</strong> and actually send the email based on the configured frequency. This ensures Grav is not waiting around for email connections to complete.', |
||||
'QUEUE_ENABLED' => 'Enabled', |
||||
'QUEUE_FLUSH_FREQUENCY' => 'Flush Frequency', |
||||
'QUEUE_FLUSH_FREQUENCY_HELP' => 'Use \'cron\' format', |
||||
'QUEUE_FLUSH_MSG_LIMIT' => 'Messages per flush', |
||||
'QUEUE_FLUSH_MSG_LIMIT_APPEND' => 'Messages', |
||||
'QUEUE_FLUSH_TIME_LIMIT' => 'Flush time limit', |
||||
'QUEUE_FLUSH_TIME_LIMIT_APPEND' => 'Seconds' |
||||
] |
||||
], |
||||
'da' => [ |
||||
'PLUGIN_EMAIL' => [ |
||||
'PLEASE_CONFIGURE_A_TO_ADDRESS' => 'Konfigurere venligst en \'til\' email adresse i Email Plugin indstillingerne eller her i formularen', |
||||
'PLEASE_CONFIGURE_A_FROM_ADDRESS' => 'Konfigurere venligst en \'fra\' email adresse i Email Plugin indstillingerne eller her i formularen' |
||||
] |
||||
], |
||||
'de' => [ |
||||
'PLUGIN_EMAIL' => [ |
||||
'EMAIL_NOT_CONFIGURED' => 'E-Mail ist nicht konfiguriert', |
||||
'PLEASE_CONFIGURE_A_TO_ADDRESS' => 'Bitte konfigurieren sie eine \'An\' (\'to\') Adresse in den Email-Plugin-Einstellungen oder im Formular.', |
||||
'PLEASE_CONFIGURE_A_FROM_ADDRESS' => 'Bitte konfigurieren sie eine \'Von\' (\'from\') Adresse in den Email-Plugin-Einstellungen oder im Formular.' |
||||
] |
||||
], |
||||
'es' => [ |
||||
'PLUGIN_EMAIL' => [ |
||||
'PLEASE_CONFIGURE_A_TO_ADDRESS' => 'Por favor configura una direcciรณn de \'remitente\' en la configuraciรณn del Plugin de Email o en el formulario', |
||||
'PLEASE_CONFIGURE_A_FROM_ADDRESS' => 'Por favor configura una direcciรณn de \'destinatario\' en la configuraciรณn del Plugin de Email o en el formulario' |
||||
] |
||||
], |
||||
'fr' => [ |
||||
'PLUGIN_EMAIL' => [ |
||||
'EMAIL_NOT_CONFIGURED' => 'Lโe-mail nโest pas configurรฉ', |
||||
'PLEASE_CONFIGURE_A_TO_ADDRESS' => 'Veuillez configurer une adresse de \'destinataire\' dans les paramรจtres du Plugin ou dans le formulaire.', |
||||
'PLEASE_CONFIGURE_A_FROM_ADDRESS' => 'Veuillez configurer une adresse \'d\'expรฉditeur\' dans les paramรจtres du Plugin ou dans le formulaire.', |
||||
'TEST_EMAIL_BODY' => '<h1>E-mail de test</h1><p>Cet e-mail de test est basรฉ sur la configuration suivante :</p> <p><pre>%1$s</pre></p>', |
||||
'EMAIL_FOOTER' => 'GetGrav.org' |
||||
] |
||||
], |
||||
'hr' => [ |
||||
'PLUGIN_EMAIL' => [ |
||||
'EMAIL_NOT_CONFIGURED' => 'Email nije konfiguriran', |
||||
'PLEASE_CONFIGURE_A_TO_ADDRESS' => 'Konfigurirajte \'za\' (\'to\') adresu u postavkama Email dodatka ili u obrascu', |
||||
'PLEASE_CONFIGURE_A_FROM_ADDRESS' => 'Konfigurirajte \'od\' (\'from\') adresu u postavkama Email dodatka ili u obrascu' |
||||
] |
||||
], |
||||
'it' => [ |
||||
'PLUGIN_EMAIL' => [ |
||||
'PLEASE_CONFIGURE_A_TO_ADDRESS' => 'Per favore, configura l\'indirizzo di destinazione (\'to\') nella configurazione del Plugin Email, oppure direttamente nella form.', |
||||
'PLEASE_CONFIGURE_A_FROM_ADDRESS' => 'Per favore, configura l\'indirizzo di provenienza (\'from\') nella configurazione del Plugin Email, oppure direttamente nella form' |
||||
] |
||||
], |
||||
'ro' => [ |
||||
'PLUGIN_EMAIL' => [ |
||||
'EMAIL_NOT_CONFIGURED' => 'Adresa de email nu este configuratฤ', |
||||
'PLEASE_CONFIGURE_A_TO_ADDRESS' => 'Vฤ rugam setaศi o adresฤ \'cฤtre\' รฎn setฤrile modulului Email sau รฎn formular', |
||||
'PLEASE_CONFIGURE_A_FROM_ADDRESS' => 'Vฤ rugam setaศi o adresฤ \'de la\' รฎn setฤrile modulului Email sau รฎn formular' |
||||
] |
||||
], |
||||
'ru' => [ |
||||
'PLUGIN_EMAIL' => [ |
||||
'MAIL_ENGINE' => 'ะะพััะพะฒะฐั ัะธััะตะผะฐ', |
||||
'MAIL_ENGINE_DISABLED' => 'ะัะบะปััะตะฝะฐ', |
||||
'CONTENT_TYPE' => 'ะขะธะฟ ะบะพะฝัะตะฝัะฐ', |
||||
'CONTENT_TYPE_PLAIN_TEXT' => 'ะัะพััะพะน ัะตะบัั', |
||||
'CHARSET' => 'ะะพะดะธัะพะฒะบะฐ', |
||||
'CHARSET_PLACEHOLDER' => 'ะะพ ัะผะพะปัะฐะฝะธั UTF-8', |
||||
'EMAIL_DEFAULTS' => 'Email ะฝะฐัััะพะนะบะธ ะฟะพ ัะผะพะปัะฐะฝะธั', |
||||
'EMAIL_FORM' => 'ะะพััะฐ ะพัะฟัะฐะฒะธัะตะปั', |
||||
'EMAIL_FORM_PLACEHOLDER' => 'Email ะฐะดัะตั ะพัะฟัะฐะฒะธัะตะปั ะฟะพ ัะผะพะปัะฐะฝะธั', |
||||
'EMAIL_FROM_NAME' => 'ะะผั ะฟะพััั ะพัะฟัะฐะฒะธัะตะปั', |
||||
'EMAIL_FROM_NAME_PLACEHOLDER' => 'Email ะธะผั ะพัะฟัะฐะฒะธัะตะปั ะฟะพ ัะผะพะปัะฐะฝะธั', |
||||
'EMAIL_TO' => 'ะะพััะฐ ะฟะพะปััะฐัะตะปั', |
||||
'EMAIL_TO_PLACEHOLDER' => 'Email ะฐะดัะตั ะฟะพะปััะฐัะตะปั ะฟะพ ัะผะพะปัะฐะฝะธั', |
||||
'EMAIL_TO_NAME' => 'ะะผั ะฟะพััั ะฟะพะปััะฐัะตะปั', |
||||
'EMAIL_TO_NAME_PLACEHOLDER' => 'Email ะธะผั ะฟะพะปััะฐัะตะปั ะฟะพ ัะผะพะปัะฐะฝะธั', |
||||
'EMAIL_CC' => 'ะะพััะฐ CC', |
||||
'EMAIL_CC_PLACEHOLDER' => 'Email CC ะฐะดัะตั ะฟะพ ัะผะพะปัะฐะฝะธั', |
||||
'EMAIL_CC_NAME' => 'ะะผั ะฟะพััั CC', |
||||
'EMAIL_CC_NAME_PLACEHOLDER' => 'Email CC ะธะผั ะฟะพ ัะผะพะปัะฐะฝะธั', |
||||
'EMAIL_BCC' => 'ะะพััะฐ BCC', |
||||
'EMAIL_BCC_PLACEHOLDER' => 'Email BCC ะฐะดัะตั ะฟะพ ัะผะพะปัะฐะฝะธั', |
||||
'EMAIL_REPLY_TO' => 'ะะพััะฐ ะดะปั ะพัะฒะตัะพะฒ', |
||||
'EMAIL_REPLY_TO_PLACEHOLDER' => 'Email ะดะปั ะพัะฒะตัะพะฒ ะฐะดัะตั ะฟะพ ัะผะพะปัะฐะฝะธั', |
||||
'EMAIL_REPLY_TO_NAME' => 'ะะผั ะฟะพััั ะดะปั ะพัะฒะตัะพะฒ', |
||||
'EMAIL_REPLY_TO_NAME_PLACEHOLDER' => 'Email ะดะปั ะพัะฒะตัะพะฒ ะธะผั ะฟะพ ัะผะพะปัะฐะฝะธั', |
||||
'EMAIL_BODY' => 'ะขะตะปะพ ัะพะพะฑัะตะฝะธั', |
||||
'EMAIL_BODY_PLACEHOLDER' => 'ะะพ ัะผะพะปัะฐะฝะธั ะธัะฟะพะปัะทัะตััั ัะฐะฑะปะธัะฐ ะฒัะตั
ะฟะพะปะตะน ัะพัะผั', |
||||
'SMTP_CONFIGURATION' => 'ะะพะฝัะธะณััะฐัะธั SMTP', |
||||
'SMTP_SERVER' => 'SMTP ัะตัะฒะตั', |
||||
'SMTP_SERVER_PLACEHOLDER' => 'e.g. smtp.google.com', |
||||
'SMTP_PORT' => 'SMTP ะฟะพัั', |
||||
'SMTP_PORT_PLACEHOLDER' => 'ะะพ ัะผะพะปัะฐะฝะธั 25 (plaintext) / 587 (encrypted)', |
||||
'SMTP_ENCRYPTION' => 'SMTP ัะธััะพะฒะฐะฝะธะต', |
||||
'SMTP_ENCRYPTION_NONE' => 'ะะตั', |
||||
'SMTP_LOGIN_NAME' => 'SMTP ะปะพะณะธะฝ', |
||||
'SMTP_PASSWORD' => 'SMTP ะฟะฐัะพะปั', |
||||
'SENDMAIL_CONFIGURATION' => 'ะะพะฝัะธะณััะฐัะธั Sendmail', |
||||
'PATH_TO_SENDMAIL' => 'ะััั ะบ sendmail', |
||||
'QUEUE_TITLE' => 'ะัะตัะตะดั Email', |
||||
'QUEUE_DESC' => 'ะะพะณะดะฐ ะฒั ะฒะบะปััะฐะตัะต ะพัะตัะตะดั email, ัะปะตะบััะพะฝะฝะฐั ะฟะพััะฐ ะฝะต <i>ะพัะฟัะฐะฒะปัะตััั ะฝะตะผะตะดะปะตะฝะฝะพ</i>, ะฐ ะพัะฟัะฐะฒะปัะตััั ะฒ ะพัะตัะตะดั, ะทะฐัะตะผ ะฟะปะฐะฝะธัะพะฒัะธะบ Grav <strong>ะพะฑัะฐะฑะฐััะฒะฐะตั ะพัะตัะตะดั</strong> ะธ ะฝะฐ ะพัะฝะพะฒะต ะฝะฐัััะพะตะฝะฝะพะน ัะฐััะพัั ัะฐะบัะธัะตัะบะธ ะพัะฟัะฐะฒะปัะตั ัะปะตะบััะพะฝะฝัั ะฟะพััั. ะญัะพ ะณะฐัะฐะฝัะธััะตั, ััะพ Grav ะฝะต ะถะดะตั ะทะฐะฒะตััะตะฝะธั ะฟะพะดะบะปััะตะฝะธั ะบ ัะปะตะบััะพะฝะฝะพะน ะฟะพััะต.', |
||||
'QUEUE_ENABLED' => 'ะะบะปััะตะฝะพ', |
||||
'QUEUE_FLUSH_FREQUENCY' => 'ะงะฐััะพัะฐ ะพะฑัะฐะฑะปัะบะธ', |
||||
'QUEUE_FLUSH_FREQUENCY_HELP' => 'ะัะฟะพะปัะทะพะฒะฐัั ัะพัะผะฐั \'cron\'', |
||||
'QUEUE_FLUSH_MSG_LIMIT' => 'ะะพะปะธัะตััะฒะพ ัะพะพะฑัะตะฝะธะน ะฝะฐ ะทะฐะดะฐัั', |
||||
'QUEUE_FLUSH_MSG_LIMIT_APPEND' => 'ะกะพะพะฑัะตะฝะธะน', |
||||
'QUEUE_FLUSH_TIME_LIMIT' => 'ะะณัะฐะฝะธัะตะฝะธะต ะฒัะตะผะตะฝะธ ะพะฑัะฐะฑะพัะบะธ', |
||||
'QUEUE_FLUSH_TIME_LIMIT_APPEND' => 'ะกะตะบัะฝะด', |
||||
'ADVANCED' => 'ะ ะฐััะธัะตะฝะฝัะต', |
||||
'DEBUG' => 'ะัะปะฐะดะบะฐ', |
||||
'EMAIL_NOT_CONFIGURED' => 'ะญะปะตะบััะพะฝะฝะฐั ะฟะพััะฐ ะฝะต ะฝะฐัััะพะตะฝะฐ', |
||||
'PLEASE_CONFIGURE_A_TO_ADDRESS' => 'ะะพะถะฐะปัะนััะฐ ะฝะฐัััะพะนัะต ะฐะดัะตั ะฟะพะปััะฐัะตะปั (\'to\') ะฒ ะฝะฐัััะพะนะบะฐั
ะฟะปะฐะณะธะฝะฐ Email Plugin, ะธะปะธ ะฝะฐ ัะพัะผะต', |
||||
'PLEASE_CONFIGURE_A_FROM_ADDRESS' => 'ะะพะถะฐะปัะนััะฐ ะฝะฐัััะพะนัะต ะฐะดัะตั ะพัะฟัะฐะฒะธัะตะปั (\'from\') ะฒ ะฝะฐัััะพะนะบะฐั
ะฟะปะฐะณะธะฝะฐ Email Plugin, ะธะปะธ ะฝะฐ ัะพัะผะต', |
||||
'TEST_EMAIL_BODY' => '<h1>ะขะตััะธัะพะฒะฐะฝะธะต ัะปะตะบััะพะฝะฝะพะน ะฟะพััั</h1><p>ะญัะพ ัะตััะพะฒะพะต ะฟะธััะผะพ ะพัะฟัะฐะฒะปะตะฝะพ ะฝะฐ ะพัะฝะพะฒะต ัะปะตะดัััะตะน ะบะพะฝัะธะณััะฐัะธะธ:</p> <p><pre>%1$s</pre></p>', |
||||
'EMAIL_FOOTER' => 'GetGrav.org' |
||||
] |
||||
], |
||||
'uk' => [ |
||||
'PLUGIN_EMAIL' => [ |
||||
'EMAIL_NOT_CONFIGURED' => 'ะะปะตะบััะพะฝะฝะฐ ะฟะพััะฐ ะฝะต ะฝะฐะปะฐััะพะฒะฐะฝะฐ', |
||||
'PLEASE_CONFIGURE_A_TO_ADDRESS' => 'ะัะดั ะปะฐัะบะฐ ะฝะฐะปะฐัััะนัะต ะฐะดัะตัั ะพะดะตัะถัะฒะฐัะฐ (\'to\') ะฒ ะฝะฐะปะฐัััะฒะฐะฝะฝัั
ะฟะปะฐะณัะฝะฐ Email Plugin, ะฐะฑะพ ะฝะฐ ัะพัะผั', |
||||
'PLEASE_CONFIGURE_A_FROM_ADDRESS' => 'ะัะดั ะปะฐัะบะฐ ะฝะฐะปะฐัััะนัะต ะฐะดัะตัั ะฒัะดะฟัะฐะฒะฝะธะบะฐ (\'from\') ะฒ ะฝะฐะปะฐัััะฒะฐะฝะฝัั
ะฟะปะฐะณัะฝะฐ Email Plugin, ะฐะฑะพ ะฝะฐ ัะพัะผั', |
||||
'TEST_EMAIL_BODY' => '<h1>ะขะตัััะฒะฐะฝะฝั ะตะปะตะบััะพะฝะฝะพั ะฟะพััะธ</h1><p>ะฆะต ัะตััะพะฒะธะน ะปะธัั ะฒัะดะฟัะฐะฒะปะตะฝะพ ะฝะฐ ะพัะฝะพะฒั ัะฐะบะพั ะบะพะฝััะณััะฐััั:</p> <p><pre>%1$s</pre></p>', |
||||
'EMAIL_FOOTER' => 'GetGrav.org' |
||||
] |
||||
] |
||||
] |
||||
]; |
@ -0,0 +1,49 @@
@@ -0,0 +1,49 @@
|
||||
<?php |
||||
return [ |
||||
'@class' => 'Grav\\Common\\File\\CompiledYamlFile', |
||||
'filename' => '/home/phvos/web/dedijk4.nl/public_html/user/plugins/presentation-deckset/blueprints.yaml', |
||||
'modified' => 1582124794, |
||||
'data' => [ |
||||
'name' => 'Presentation Deckset', |
||||
'version' => '1.3.4', |
||||
'description' => 'Use Deckset Syntax with the Presentation-plugin', |
||||
'icon' => 'plug', |
||||
'author' => [ |
||||
'name' => 'Ole Vik', |
||||
'email' => 'git@olevik.net' |
||||
], |
||||
'homepage' => 'https://github.com/OleVik/grav-plugin-presentation-deckset', |
||||
'keywords' => 'grav, plugin, etc', |
||||
'bugs' => 'https://github.com/OleVik/grav-plugin-presentation-deckset/issues', |
||||
'docs' => 'https://github.com/OleVik/grav-plugin-presentation-deckset/blob/master/README.md', |
||||
'license' => 'MIT', |
||||
'dependencies' => [ |
||||
0 => [ |
||||
'name' => 'grav', |
||||
'version' => '>=1.6' |
||||
], |
||||
1 => [ |
||||
'name' => 'presentation', |
||||
'version' => '>=3.0.0' |
||||
] |
||||
], |
||||
'form' => [ |
||||
'validation' => 'strict', |
||||
'fields' => [ |
||||
'enabled' => [ |
||||
'type' => 'toggle', |
||||
'label' => 'PLUGIN_ADMIN.PLUGIN_STATUS', |
||||
'highlight' => 1, |
||||
'default' => 0, |
||||
'options' => [ |
||||
1 => 'PLUGIN_ADMIN.ENABLED', |
||||
0 => 'PLUGIN_ADMIN.DISABLED' |
||||
], |
||||
'validate' => [ |
||||
'type' => 'bool' |
||||
] |
||||
] |
||||
] |
||||
] |
||||
] |
||||
]; |
@ -0,0 +1,39 @@
@@ -0,0 +1,39 @@
|
||||
<?php |
||||
return [ |
||||
'@class' => 'Grav\\Common\\File\\CompiledYamlFile', |
||||
'filename' => 'plugins://tntsearch/tntsearch.yaml', |
||||
'modified' => 1582124800, |
||||
'data' => [ |
||||
'enabled' => true, |
||||
'search_route' => '/search', |
||||
'query_route' => '/s', |
||||
'built_in_css' => true, |
||||
'built_in_js' => true, |
||||
'built_in_search_page' => true, |
||||
'enable_admin_page_events' => true, |
||||
'search_type' => 'auto', |
||||
'fuzzy' => false, |
||||
'phrases' => true, |
||||
'stemmer' => 'default', |
||||
'display_route' => true, |
||||
'display_hits' => true, |
||||
'display_time' => true, |
||||
'live_uri_update' => true, |
||||
'limit' => 20, |
||||
'min' => 3, |
||||
'snippet' => 300, |
||||
'index_page_by_default' => true, |
||||
'scheduled_index' => [ |
||||
'enabled' => false, |
||||
'at' => '0 */3 * * *', |
||||
'logs' => 'logs/tntsearch-index.out' |
||||
], |
||||
'filter' => [ |
||||
'items' => [ |
||||
0 => 'root@.descendants' |
||||
] |
||||
], |
||||
'powered_by' => true, |
||||
'search_object_type' => 'Grav' |
||||
] |
||||
]; |
@ -0,0 +1,31 @@
@@ -0,0 +1,31 @@
|
||||
<?php |
||||
return [ |
||||
'@class' => 'Grav\\Common\\File\\CompiledYamlFile', |
||||
'filename' => 'plugins://form/form.yaml', |
||||
'modified' => 1581466810, |
||||
'data' => [ |
||||
'enabled' => true, |
||||
'built_in_css' => true, |
||||
'inline_css' => true, |
||||
'refresh_prevention' => false, |
||||
'client_side_validation' => true, |
||||
'inline_errors' => false, |
||||
'files' => [ |
||||
'multiple' => false, |
||||
'limit' => 10, |
||||
'destination' => 'self@', |
||||
'avoid_overwriting' => false, |
||||
'random_name' => false, |
||||
'filesize' => 0, |
||||
'accept' => [ |
||||
0 => 'image/*' |
||||
] |
||||
], |
||||
'recaptcha' => [ |
||||
'version' => '2-checkbox', |
||||
'theme' => 'light', |
||||
'site_key' => NULL, |
||||
'secret_key' => NULL |
||||
] |
||||
] |
||||
]; |
@ -0,0 +1,39 @@
@@ -0,0 +1,39 @@
|
||||
<?php |
||||
return [ |
||||
'@class' => 'Grav\\Common\\File\\CompiledYamlFile', |
||||
'filename' => '/home/phvos/web/dedijk4.nl/public_html/user/plugins/tntsearch/tntsearch.yaml', |
||||
'modified' => 1582124800, |
||||
'data' => [ |
||||
'enabled' => true, |
||||
'search_route' => '/search', |
||||
'query_route' => '/s', |
||||
'built_in_css' => true, |
||||
'built_in_js' => true, |
||||
'built_in_search_page' => true, |
||||
'enable_admin_page_events' => true, |
||||
'search_type' => 'auto', |
||||
'fuzzy' => false, |
||||
'phrases' => true, |
||||
'stemmer' => 'default', |
||||
'display_route' => true, |
||||
'display_hits' => true, |
||||
'display_time' => true, |
||||
'live_uri_update' => true, |
||||
'limit' => 20, |
||||
'min' => 3, |
||||
'snippet' => 300, |
||||
'index_page_by_default' => true, |
||||
'scheduled_index' => [ |
||||
'enabled' => false, |
||||
'at' => '0 */3 * * *', |
||||
'logs' => 'logs/tntsearch-index.out' |
||||
], |
||||
'filter' => [ |
||||
'items' => [ |
||||
0 => 'root@.descendants' |
||||
] |
||||
], |
||||
'powered_by' => true, |
||||
'search_object_type' => 'Grav' |
||||
] |
||||
]; |
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
<?php |
||||
return [ |
||||
'@class' => 'Grav\\Common\\File\\CompiledYamlFile', |
||||
'filename' => 'themes://learn2-git-sync/learn2-git-sync.yaml', |
||||
'modified' => 1582124803, |
||||
'data' => [ |
||||
'enabled' => true, |
||||
'root_page' => NULL, |
||||
'top_level_version' => false, |
||||
'google_analytics_code' => NULL, |
||||
'home_url' => NULL, |
||||
'github' => [ |
||||
'position' => 'top', |
||||
'icon' => NULL, |
||||
'tree' => NULL |
||||
], |
||||
'default_taxonomy_category' => 'docs', |
||||
'style' => 'default', |
||||
'streams' => [ |
||||
'schemes' => [ |
||||
'theme' => [ |
||||
'type' => 'ReadOnlyStream', |
||||
'prefixes' => [ |
||||
'' => [ |
||||
0 => 'user/themes/learn2-git-sync', |
||||
1 => 'user/themes/learn2' |
||||
] |
||||
] |
||||
] |
||||
] |
||||
] |
||||
] |
||||
]; |
@ -0,0 +1,174 @@
@@ -0,0 +1,174 @@
|
||||
<?php |
||||
return [ |
||||
'@class' => 'Grav\\Common\\File\\CompiledYamlFile', |
||||
'filename' => '/home/phvos/web/dedijk4.nl/public_html/system/languages/cs.yaml', |
||||
'modified' => 1581466810, |
||||
'data' => [ |
||||
'GRAV' => [ |
||||
'FRONTMATTER_ERROR_PAGE' => '--- |
||||
title: %1$s |
||||
--- |
||||
|
||||
# Chyba: Chybnรฝ frontmatter |
||||
|
||||
Path: `%2$s` |
||||
|
||||
**%3$s** |
||||
|
||||
``` |
||||
%4$s |
||||
```', |
||||
'INFLECTOR_PLURALS' => [ |
||||
'/(quiz)$/i' => '\\1zes', |
||||
'/^(ox)$/i' => '\\1en', |
||||
'/([m|l])ouse$/i' => '\\1ice', |
||||
'/(matr|vert|ind)ix|ex$/i' => '\\1ices', |
||||
'/(x|ch|ss|sh)$/i' => '\\1es', |
||||
'/([^aeiouy]|qu)ies$/i' => '\\1y', |
||||
'/([^aeiouy]|qu)y$/i' => '\\1ies', |
||||
'/(hive)$/i' => '\\1s', |
||||
'/(?:([^f])fe|([lr])f)$/i' => '\\1\\2ves', |
||||
'/sis$/i' => 'ses', |
||||
'/([ti])um$/i' => '\\1a', |
||||
'/(buffal|tomat)o$/i' => '\\1oes', |
||||
'/(bu)s$/i' => '\\1ses', |
||||
'/(alias|status)/i' => '\\1es', |
||||
'/(octop|vir)us$/i' => '\\1i', |
||||
'/(ax|test)is$/i' => '\\1es', |
||||
'/s$/i' => 's', |
||||
'/$/' => 's' |
||||
], |
||||
'INFLECTOR_SINGULAR' => [ |
||||
'/(quiz)zes$/i' => '\\1', |
||||
'/(matr)ices$/i' => '\\1ix', |
||||
'/(vert|ind)ices$/i' => '\\1ex', |
||||
'/^(ox)en/i' => '\\1', |
||||
'/(alias|status)es$/i' => '\\1', |
||||
'/([octop|vir])i$/i' => '\\1us', |
||||
'/(cris|ax|test)es$/i' => '\\1is', |
||||
'/(shoe)s$/i' => '\\1', |
||||
'/(o)es$/i' => '\\1', |
||||
'/(bus)es$/i' => '\\1', |
||||
'/([m|l])ice$/i' => '\\1ouse', |
||||
'/(x|ch|ss|sh)es$/i' => '\\1', |
||||
'/(m)ovies$/i' => '\\1ovie', |
||||
'/(s)eries$/i' => '\\1eries', |
||||
'/([^aeiouy]|qu)ies$/i' => '\\1y', |
||||
'/([lr])ves$/i' => '\\1f', |
||||
'/(tive)s$/i' => '\\1', |
||||
'/(hive)s$/i' => '\\1', |
||||
'/([^f])ves$/i' => '\\1fe', |
||||
'/(^analy)ses$/i' => '\\1sis', |
||||
'/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i' => '\\1\\2sis', |
||||
'/([ti])a$/i' => '\\1um', |
||||
'/(n)ews$/i' => '\\1ews' |
||||
], |
||||
'INFLECTOR_UNCOUNTABLE' => [ |
||||
0 => 'vybavenรญ', |
||||
1 => 'informace', |
||||
2 => 'rรฝลพe', |
||||
3 => 'penรญze', |
||||
4 => 'druhy', |
||||
5 => 'sรฉrie', |
||||
6 => 'ryba', |
||||
7 => 'ovce' |
||||
], |
||||
'INFLECTOR_IRREGULAR' => [ |
||||
'person' => 'lidรฉ', |
||||
'man' => 'muลพi', |
||||
'child' => 'dฤti', |
||||
'sex' => 'pohlavรญ', |
||||
'move' => 'pohyby' |
||||
], |
||||
'INFLECTOR_ORDINALS' => [ |
||||
'default' => '.', |
||||
'first' => '.', |
||||
'second' => '.', |
||||
'third' => '.' |
||||
], |
||||
'NICETIME' => [ |
||||
'NO_DATE_PROVIDED' => 'Datum nebylo vloลพeno', |
||||
'BAD_DATE' => 'Chybnรฉ datum', |
||||
'AGO' => 'zpฤt', |
||||
'FROM_NOW' => 'od teฤ', |
||||
'JUST_NOW' => 'prรกvฤ teฤ', |
||||
'SECOND' => 'sekunda', |
||||
'MINUTE' => 'minuta', |
||||
'HOUR' => 'hodina', |
||||
'DAY' => 'den', |
||||
'WEEK' => 'tรฝden', |
||||
'MONTH' => 'mฤsรญc', |
||||
'YEAR' => 'rok', |
||||
'DECADE' => 'dekรกda', |
||||
'SEC' => 'sek', |
||||
'MIN' => 'min', |
||||
'HR' => 'hod', |
||||
'WK' => 't', |
||||
'MO' => 'm', |
||||
'YR' => 'r', |
||||
'DEC' => 'dek', |
||||
'SECOND_PLURAL' => 'sekundy', |
||||
'MINUTE_PLURAL' => 'minuty', |
||||
'HOUR_PLURAL' => 'hodiny', |
||||
'DAY_PLURAL' => 'dny', |
||||
'WEEK_PLURAL' => 'tรฝdny', |
||||
'MONTH_PLURAL' => 'mฤsรญce', |
||||
'YEAR_PLURAL' => 'roky', |
||||
'DECADE_PLURAL' => 'dekรกdy', |
||||
'SEC_PLURAL' => 'sek', |
||||
'MIN_PLURAL' => 'min', |
||||
'HR_PLURAL' => 'hod', |
||||
'WK_PLURAL' => 't', |
||||
'MO_PLURAL' => 'm', |
||||
'YR_PLURAL' => 'r', |
||||
'DEC_PLURAL' => 'dek' |
||||
], |
||||
'FORM' => [ |
||||
'VALIDATION_FAIL' => '<b>Ovฤลenรญ se nezdaลilo:</b>', |
||||
'INVALID_INPUT' => 'Neplatnรฝ vstup v', |
||||
'MISSING_REQUIRED_FIELD' => 'Chybรญ poลพadovanรฉ pole:' |
||||
], |
||||
'MONTHS_OF_THE_YEAR' => [ |
||||
0 => 'leden', |
||||
1 => 'รบnor', |
||||
2 => 'bลezen', |
||||
3 => 'duben', |
||||
4 => 'kvฤten', |
||||
5 => 'ฤerven', |
||||
6 => 'ฤervenec', |
||||
7 => 'srpen', |
||||
8 => 'zรกลรญ', |
||||
9 => 'ลรญjen', |
||||
10 => 'listopad', |
||||
11 => 'prosinec' |
||||
], |
||||
'DAYS_OF_THE_WEEK' => [ |
||||
0 => 'pondฤlรญ', |
||||
1 => 'รบterรฝ', |
||||
2 => 'stลeda', |
||||
3 => 'ฤtvrtek', |
||||
4 => 'pรกtek', |
||||
5 => 'sobota', |
||||
6 => 'nedฤle' |
||||
], |
||||
'CRON' => [ |
||||
'EVERY' => 'kaลพdรฝ', |
||||
'EVERY_HOUR' => 'kaลพdou hodinu', |
||||
'EVERY_MINUTE' => 'kaลพdou minutu', |
||||
'EVERY_DAY_OF_WEEK' => 'kaลพdรฝ den v tรฝdnu', |
||||
'EVERY_DAY_OF_MONTH' => 'kaลพdรฝ den v mฤsรญci', |
||||
'EVERY_MONTH' => 'kaลพdรฝ mฤsรญc', |
||||
'TEXT_PERIOD' => 'Every <b />', |
||||
'TEXT_MINS' => ' at <b /> minute(s) past the hour', |
||||
'TEXT_TIME' => ' at <b />:<b />', |
||||
'TEXT_DOW' => ' on <b />', |
||||
'TEXT_MONTH' => ' of <b />', |
||||
'TEXT_DOM' => ' on <b />', |
||||
'ERROR1' => 'Tag %s nenรญ podporovรกn!', |
||||
'ERROR2' => 'Chybnรฝ poฤet prvkลฏ', |
||||
'ERROR3' => 'jquery_element musรญ bรฝt nastaven v nastavenรญch pro jqCron', |
||||
'ERROR4' => 'Nerozpoznanรฝ vรฝraz' |
||||
] |
||||
] |
||||
] |
||||
]; |
@ -0,0 +1,606 @@
@@ -0,0 +1,606 @@
|
||||
<?php |
||||
return [ |
||||
'@class' => 'Grav\\Common\\File\\CompiledYamlFile', |
||||
'filename' => '/home/phvos/web/dedijk4.nl/public_html/user/plugins/admin/blueprints.yaml', |
||||
'modified' => 1581466810, |
||||
'data' => [ |
||||
'name' => 'Admin Panel', |
||||
'version' => '1.9.12', |
||||
'testing' => false, |
||||
'description' => 'Adds an advanced administration panel to manage your site', |
||||
'icon' => 'empire', |
||||
'author' => [ |
||||
'name' => 'Team Grav', |
||||
'email' => 'devs@getgrav.org', |
||||
'url' => 'http://getgrav.org' |
||||
], |
||||
'homepage' => 'https://github.com/getgrav/grav-plugin-admin', |
||||
'keywords' => 'admin, plugin, manager, panel', |
||||
'bugs' => 'https://github.com/getgrav/grav-plugin-admin/issues', |
||||
'docs' => 'https://github.com/getgrav/grav-plugin-admin/blob/develop/README.md', |
||||
'license' => 'MIT', |
||||
'dependencies' => [ |
||||
0 => [ |
||||
'name' => 'grav', |
||||
'version' => '>=1.6.8' |
||||
], |
||||
1 => [ |
||||
'name' => 'form', |
||||
'version' => '>=3.0.0' |
||||
], |
||||
2 => [ |
||||
'name' => 'login', |
||||
'version' => '>=3.0.0' |
||||
], |
||||
3 => [ |
||||
'name' => 'email', |
||||
'version' => '>=3.0.0' |
||||
] |
||||
], |
||||
'form' => [ |
||||
'validation' => 'loose', |
||||
'fields' => [ |
||||
'Basics' => [ |
||||
'type' => 'section', |
||||
'title' => 'Basics', |
||||
'underline' => false |
||||
], |
||||
'enabled' => [ |
||||
'type' => 'hidden', |
||||
'label' => 'PLUGIN_ADMIN.PLUGIN_STATUS', |
||||
'highlight' => 1, |
||||
'default' => 0, |
||||
'options' => [ |
||||
1 => 'PLUGIN_ADMIN.ENABLED', |
||||
0 => 'PLUGIN_ADMIN.DISABLED' |
||||
], |
||||
'validate' => [ |
||||
'type' => 'bool' |
||||
] |
||||
], |
||||
'cache_enabled' => [ |
||||
'type' => 'toggle', |
||||
'label' => 'PLUGIN_ADMIN.ADMIN_CACHING', |
||||
'help' => 'PLUGIN_ADMIN.ADMIN_CACHING_HELP', |
||||
'highlight' => 0, |
||||
'options' => [ |
||||
1 => 'PLUGIN_ADMIN.YES', |
||||
0 => 'PLUGIN_ADMIN.NO' |
||||
], |
||||
'validate' => [ |
||||
'type' => 'bool' |
||||
] |
||||
], |
||||
'twofa_enabled' => [ |
||||
'type' => 'toggle', |
||||
'label' => 'PLUGIN_LOGIN.2FA_TITLE', |
||||
'help' => 'PLUGIN_LOGIN.2FA_ENABLED_HELP', |
||||
'default' => 1, |
||||
'highlight' => 1, |
||||
'options' => [ |
||||
1 => 'PLUGIN_ADMIN.YES', |
||||
0 => 'PLUGIN_ADMIN.NO' |
||||
], |
||||
'validate' => [ |
||||
'type' => 'bool' |
||||
] |
||||
], |
||||
'route' => [ |
||||
'type' => 'text', |
||||
'label' => 'Administrator path', |
||||
'size' => 'medium', |
||||
'placeholder' => 'Default route for administrator (relative to base)', |
||||
'help' => 'If you want to change the URL for the administrator, you can provide a path here' |
||||
], |
||||
'logo_text' => [ |
||||
'type' => 'text', |
||||
'label' => 'Logo text', |
||||
'size' => 'medium', |
||||
'placeholder' => 'Grav', |
||||
'help' => 'Text to display in place of the default Grav logo' |
||||
], |
||||
'content_padding' => [ |
||||
'type' => 'toggle', |
||||
'label' => 'PLUGIN_ADMIN.CONTENT_PADDING', |
||||
'help' => 'PLUGIN_ADMIN.CONTENT_PADDING_HELP', |
||||
'highlight' => 1, |
||||
'options' => [ |
||||
1 => 'PLUGIN_ADMIN.YES', |
||||
0 => 'PLUGIN_ADMIN.NO' |
||||
], |
||||
'validate' => [ |
||||
'type' => 'bool' |
||||
] |
||||
], |
||||
'body_classes' => [ |
||||
'type' => 'text', |
||||
'label' => 'Body classes', |
||||
'size' => 'medium', |
||||
'help' => 'Add a space separated name of custom body classes' |
||||
], |
||||
'sidebar.activate' => [ |
||||
'type' => 'select', |
||||
'label' => 'Sidebar Activation', |
||||
'help' => 'Control how the sidebar is activated', |
||||
'size' => 'small', |
||||
'default' => 'tab', |
||||
'options' => [ |
||||
'tab' => 'Tab', |
||||
'hover' => 'Hover' |
||||
] |
||||
], |
||||
'sidebar.hover_delay' => [ |
||||
'type' => 'text', |
||||
'size' => 'x-small', |
||||
'append' => 'millseconds', |
||||
'label' => 'Hover delay', |
||||
'default' => 500, |
||||
'validate' => [ |
||||
'type' => 'number', |
||||
'min' => 1 |
||||
] |
||||
], |
||||
'sidebar.size' => [ |
||||
'type' => 'select', |
||||
'label' => 'Sidebar Size', |
||||
'help' => 'Control the width of the sidebar', |
||||
'size' => 'medium', |
||||
'default' => 'auto', |
||||
'options' => [ |
||||
'auto' => 'Automatic width', |
||||
'small' => 'Small width' |
||||
] |
||||
], |
||||
'theme' => [ |
||||
'type' => 'hidden', |
||||
'label' => 'Theme', |
||||
'default' => 'grav' |
||||
], |
||||
'edit_mode' => [ |
||||
'type' => 'select', |
||||
'label' => 'Edit mode', |
||||
'size' => 'small', |
||||
'default' => 'normal', |
||||
'options' => [ |
||||
'normal' => 'Normal', |
||||
'expert' => 'Expert' |
||||
], |
||||
'help' => 'Auto will use blueprint if available, if none found, it will use "Expert" mode.' |
||||
], |
||||
'frontend_preview_target' => [ |
||||
'type' => 'select', |
||||
'label' => 'Preview pages target', |
||||
'size' => 'medium', |
||||
'default' => 'inline', |
||||
'options' => [ |
||||
'inline' => 'Inline in Admin', |
||||
'_blank' => 'New tab', |
||||
'_self' => 'Current tab' |
||||
] |
||||
], |
||||
'pages.show_parents' => [ |
||||
'type' => 'select', |
||||
'size' => 'medium', |
||||
'label' => 'Parent dropdown', |
||||
'highlight' => 1, |
||||
'options' => [ |
||||
'both' => 'Show slug and folder', |
||||
'folder' => 'Show folder', |
||||
'fullpath' => 'Show fullpath' |
||||
] |
||||
], |
||||
'pages.parents_levels' => [ |
||||
'type' => 'text', |
||||
'label' => 'Parents Levels', |
||||
'size' => 'small', |
||||
'help' => 'The number of levels to show in parent select list' |
||||
], |
||||
'pages.show_modular' => [ |
||||
'type' => 'toggle', |
||||
'label' => 'Modular parents', |
||||
'highlight' => 1, |
||||
'default' => 1, |
||||
'options' => [ |
||||
1 => 'PLUGIN_ADMIN.ENABLED', |
||||
0 => 'PLUGIN_ADMIN.DISABLED' |
||||
], |
||||
'validate' => [ |
||||
'type' => 'bool' |
||||
], |
||||
'help' => 'Show modular pages in the parent select list' |
||||
], |
||||
'google_fonts' => [ |
||||
'type' => 'toggle', |
||||
'label' => 'Use Google Fonts', |
||||
'highlight' => 0, |
||||
'default' => 0, |
||||
'options' => [ |
||||
1 => 'PLUGIN_ADMIN.ENABLED', |
||||
0 => 'PLUGIN_ADMIN.DISABLED' |
||||
], |
||||
'validate' => [ |
||||
'type' => 'bool' |
||||
], |
||||
'help' => 'Use Google custom fonts. Disable this to use Helvetica. Useful when using Cyrillic and other languages with unsupported characters.' |
||||
], |
||||
'show_beta_msg' => [ |
||||
'type' => 'hidden' |
||||
], |
||||
'show_github_msg' => [ |
||||
'type' => 'toggle', |
||||
'label' => 'Show GitHub Link', |
||||
'highlight' => 1, |
||||
'default' => 1, |
||||