mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-07 03:36:30 +02:00
added a save location notice to configuration/site editing pages
This commit is contained in:
@@ -213,6 +213,7 @@ class AdminPlugin extends Plugin
|
||||
($twig->twig_vars['base_url_relative'] != '/' ? '/' : '') . $twig->twig_vars['admin_route'];
|
||||
$twig->twig_vars['theme_url'] = '/user/plugins/admin/themes/' . $this->theme;
|
||||
$twig->twig_vars['base_url'] = $twig->twig_vars['base_url_relative'];
|
||||
$twig->twig_vars['base_path'] = GRAV_ROOT;
|
||||
$twig->twig_vars['admin'] = $this->admin;
|
||||
|
||||
switch ($this->template) {
|
||||
|
||||
@@ -417,6 +417,7 @@ en:
|
||||
OF_YOUR: of your
|
||||
HAVE_AN_UPDATE_AVAILABLE: have an update available
|
||||
SAVE_AS: Save as
|
||||
SAVE_LOCATION: Save location
|
||||
MODAL_DELETE_PAGE_CONFIRMATION_REQUIRED_DESC: Are you sure you want to delete this page and all it's children? If the page is translated in other languages, those translations will be kept and must be deleted separately. Otherwise the page folder will be deleted along with its subpages. This action cannot be undone.
|
||||
|
||||
es:
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
|
||||
{% block content %}
|
||||
{% set data = admin.data('site') %}
|
||||
<br />
|
||||
<div class="alert notice">{{ "PLUGIN_ADMIN.SAVE_LOCATION"|tu }}: <b>{{ data.file.filename|replace({(base_path):''}) }}</b></div>
|
||||
{% include 'partials/blueprints.html.twig' with { blueprints: data.blueprints, data: data } %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -18,6 +18,10 @@
|
||||
|
||||
{% block content %}
|
||||
{% set data = admin.data('system') %}
|
||||
<br />
|
||||
|
||||
{{ dump(base_path) }}
|
||||
<div class="alert notice">{{ "PLUGIN_ADMIN.SAVE_LOCATION"|tu }}: <b>{{ data.file.filename|replace({(base_path):''}) }}</b></div>
|
||||
{% include 'partials/blueprints.html.twig' with { blueprints: data.blueprints, data: data } %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user