mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 01:05:43 +02:00
Merge branch 'develop' into feature/integrate-with-admin-pro
This commit is contained in:
@@ -8,7 +8,7 @@ session:
|
||||
warnings:
|
||||
delete_page: true
|
||||
edit_mode: normal
|
||||
show_beta_msg: true
|
||||
show_github_msg: true
|
||||
google_fonts: true
|
||||
enable_auto_updates_check: true
|
||||
popularity:
|
||||
|
||||
@@ -71,8 +71,11 @@ form:
|
||||
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 Beta Message
|
||||
label: Show GitHub Link
|
||||
highlight: 1
|
||||
default: 1
|
||||
options:
|
||||
@@ -164,3 +167,5 @@ form:
|
||||
type: hidden
|
||||
label: Visitors history
|
||||
default: 20
|
||||
|
||||
|
||||
|
||||
@@ -838,6 +838,11 @@ class Admin
|
||||
$translation = $this->grav['language']->getTranslation($language, $lookup, $array_support);
|
||||
}
|
||||
|
||||
if (!$translation) {
|
||||
$language = 'en';
|
||||
$translation = $this->grav['language']->getTranslation($language, $lookup, $array_support);
|
||||
}
|
||||
|
||||
if ($translation) {
|
||||
if (count($args) >= 1) {
|
||||
return vsprintf($translation, $args);
|
||||
|
||||
@@ -446,7 +446,7 @@ en:
|
||||
INLINE_TYPES: "Inline fallback types"
|
||||
INLINE_TYPES_HELP: "A list of file types that should be displayed inline rather than downloaded"
|
||||
APPEND_URL_EXT: "Append URL extension"
|
||||
APPEND_URL_EXT_HELP: "Will add a custom extension to the Page's URL. Note, this will mean Grav will look for `<template>.<extension>.twig` template"
|
||||
APPEND_URL_EXT_HELP: "Will add a custom extension to the Page's URL. Note, this will mean Grav will look for `<template>.<extension>.twig` template"
|
||||
PAGE_MODES: "Page Modes"
|
||||
PAGE_TYPES: "Page Types"
|
||||
ACCESS_LEVELS: "Access Levels"
|
||||
@@ -1752,6 +1752,20 @@ it:
|
||||
OVERRIDE_LOCALE_HELP: "Sovrascrivi l'impostazione locale in PHP basato sulla tua lingua corrente"
|
||||
REDIRECT: "Pagina di reindirizzamento"
|
||||
REDIRECT_HELP: "Inserisci la route alla pagina oppure un URL esterno per questa pagina. Esempio: `/some/route` or `http://somesite.com`"
|
||||
ALLOW_URL_TAXONOMY_FILTERS: "Abilita Filtri di Tassonomia via URL"
|
||||
ALLOW_URL_TAXONOMY_FILTERS_HELP: "Abilita la possibilità di filtrare le pagine attraverso URL di tipo `/taxonomy:value`."
|
||||
REDIRECT_DEFAULT_CODE: "Codice redirect predefinito"
|
||||
REDIRECT_DEFAULT_CODE_HELP: "L'HTTP status code da utilizzare per i redirect"
|
||||
IGNORE_HIDDEN: "Ignora file nascosti"
|
||||
IGNORE_HIDDEN_HELP: "Ignora tutti i file e cartelle che iniziano con un PUNTO"
|
||||
WRAPPED_SITE: "Sito wrappato"
|
||||
WRAPPED_SITE_HELP: "Permette a temi e plugin di sapere se Grav è inserito (wrappato) in un altra piattaforma"
|
||||
FALLBACK_TYPES: "Tipi di fallback file consentiti"
|
||||
FALLBACK_TYPES_HELP: "Abilita i tipi di file a cui si può accedere tramite Page Route. Per default sono consentiti tutti i file media supportati."
|
||||
INLINE_TYPES: "Tipi di file inline"
|
||||
INLINE_TYPES_HELP: "Lista di tipi di file che devono essere visualizzati anzichè scaricati"
|
||||
APPEND_URL_EXT: "Appendi l'estensione all'URL"
|
||||
APPEND_URL_EXT_HELP: "Aggiunge una estensione customizzata all'URL della pagina. Nota, questo significa che Grav cercherà il template `<template>.<extension>.twig`"
|
||||
|
||||
de:
|
||||
PLUGIN_ADMIN:
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{% extends 'partials/base.html.twig' %}
|
||||
|
||||
{% set title = "PLUGIN_ADMIN.DASHBOARD"|tu %}
|
||||
|
||||
{% block titlebar %}
|
||||
<div class="button-bar">
|
||||
{% if authorize(['admin.maintenance', 'admin.super']) %}
|
||||
@@ -132,9 +134,7 @@
|
||||
{% block content %}
|
||||
|
||||
{% include 'partials/messages.html.twig' %}
|
||||
{% if config.plugins.admin.show_beta_msg %}
|
||||
<div class="error alert"><i class="fa fa-exclamation-circle"></i> {{ 'PLUGIN_ADMIN.ADMIN_BETA_MSG'|tu }}</div>
|
||||
{% endif %}
|
||||
|
||||
{% if authorize(['admin.pages', 'admin.super']) %}
|
||||
<div id="latest">
|
||||
<div class="button-bar">
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% set mode = 'list' %}
|
||||
{% set title = "PLUGIN_ADMIN.PAGES"|tu %}
|
||||
{% endif %}
|
||||
|
||||
{% set modular = context.modular ? 'modular_' : '' %}
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
<div class="admin-block default-box-shadow">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
{% if config.plugins.admin.show_beta_msg %}
|
||||
{% if config.plugins.admin.show_github_msg %}
|
||||
<div class="notice alert"><i class="fa fa-github"></i> <a href="https://github.com/getgrav/grav-plugin-admin/issues" target="_blank">{{ 'PLUGIN_ADMIN.ADMIN_REPORT_ISSUE'|tu }}</a></div>
|
||||
{% endif %}
|
||||
{% block content_bottom %}{% endblock %}
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
|
||||
{% set plugin = package.toArray() %}
|
||||
{% set title = "PLUGIN_ADMIN.PLUGIN"|tu ~ ": " ~ plugin.name|e %}
|
||||
{% else %}
|
||||
{% set title = "PLUGIN_ADMIN.PLUGINS"|tu %}
|
||||
{% endif %}
|
||||
|
||||
{% if admin.route or installing %}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{% extends 'partials/base.html.twig' %}
|
||||
|
||||
{% set title = "PLUGIN_ADMIN.CONFIGURATION"|tu ~ ": " ~ "PLUGIN_ADMIN.SITE"|tu %}
|
||||
|
||||
{% set data = admin.data('site') %}
|
||||
|
||||
{% block stylesheets %}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{% extends 'partials/base.html.twig' %}
|
||||
|
||||
{% set title = "PLUGIN_ADMIN.CONFIGURATION"|tu ~ ": " ~ "PLUGIN_ADMIN.SYSTEM"|tu %}
|
||||
|
||||
{% set data = admin.data('system') %}
|
||||
|
||||
{% block stylesheets %}
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
|
||||
{% set theme = package.toArray() %}
|
||||
{% set title = "PLUGIN_ADMIN.THEME"|tu ~ ": " ~ theme.name|e %}
|
||||
|
||||
{% else %}
|
||||
{% set title = "PLUGIN_ADMIN.THEMES"|tu %}
|
||||
{% endif %}
|
||||
|
||||
{% if admin.route or installing %}
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
{% extends 'partials/base.html.twig' %}
|
||||
|
||||
{% if admin.route %}
|
||||
{% set user = admin.data('users/' ~ admin.route) %}
|
||||
{% set user = admin.data('users/' ~ admin.route) %}
|
||||
{% set title = "PLUGIN_ADMIN.USER"|tu ~ ": " ~ admin.route|e %}
|
||||
|
||||
{% else %}
|
||||
{% set title = "PLUGIN_ADMIN.USERS"|tu %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% block titlebar %}
|
||||
{% if not admin.route %}
|
||||
<div class="button-bar">
|
||||
|
||||
Reference in New Issue
Block a user