diff --git a/CHANGELOG.md b/CHANGELOG.md index 848bad9d..a62b9a7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ * Upgraded node dependencies to latest version. Improved speed of JS compilation. * Added modal to confirm updating Grav as well as cool down counter before enabling Update button [#1257](https://github.com/getgrav/grav-plugin-admin/issues/1257) * Better handling of offline/intranet mode when the repository index is missing. Faster admin. [#1916](https://github.com/getgrav/grav-plugin-admin/issues/1916) + * Statistics is now Page View Statistics [#1885](https://github.com/getgrav/grav-plugin-admin/issues/1885) 1. [](#bugfix) * Fixed Safari issue with new ACL picker field [#1955](https://github.com/getgrav/grav-plugin-admin/issues/1955) * Stop propagation of ACL add button in ACL picker [flex-objects#83](https://github.com/trilbymedia/grav-plugin-flex-objects/issues/83) diff --git a/admin.php b/admin.php index f522d75e..5dad5b2c 100644 --- a/admin.php +++ b/admin.php @@ -432,7 +432,7 @@ class AdminPlugin extends Plugin 'template' => 'dashboard-maintenance', ]; $this->grav['twig']->plugins_hooked_dashboard_widgets_top[] = [ - 'name' => $lang->translate('PLUGIN_ADMIN.STATISTICS'), + 'name' => $lang->translate('PLUGIN_ADMIN.VIEWS_STATISTICS'), 'template' => 'dashboard-statistics', ]; $this->grav['twig']->plugins_hooked_dashboard_widgets_top[] = [ diff --git a/languages/en.yaml b/languages/en.yaml index 506ed0e3..7fdca0b7 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -111,6 +111,7 @@ PLUGIN_ADMIN: BACKUP_DATE: "Backup Date" STATISTICS: "Statistics" + VIEWS_STATISTICS: "Page View Statistics" TODAY: "Today" WEEK: "Week" MONTH: "Month" diff --git a/themes/grav/templates/partials/dashboard-statistics.html.twig b/themes/grav/templates/partials/dashboard-statistics.html.twig index 1fb5706c..36426a46 100644 --- a/themes/grav/templates/partials/dashboard-statistics.html.twig +++ b/themes/grav/templates/partials/dashboard-statistics.html.twig @@ -1,7 +1,7 @@ {% if authorize(['admin.statistics', 'admin.super']) %}
-

{{ "PLUGIN_ADMIN.STATISTICS"|tu }}

+

{{ "PLUGIN_ADMIN.VIEWS_STATISTICS"|tu }}

diff --git a/themes/grav/templates/statistics.html.twig b/themes/grav/templates/statistics.html.twig index 0ea05af8..bf988b24 100644 --- a/themes/grav/templates/statistics.html.twig +++ b/themes/grav/templates/statistics.html.twig @@ -6,7 +6,7 @@

- {{ "PLUGIN_ADMIN.STATISTICS"|tu }} + {{ "PLUGIN_ADMIN.VIEWS_STATISTICS"|tu }}

{% include 'partials/messages.html.twig' %}