From bc1d57f6dc43e843d26cbb5e484539201f518cf9 Mon Sep 17 00:00:00 2001 From: dizzy Date: Tue, 9 Feb 2021 21:37:26 -0800 Subject: Display help icons for categories/subcategories (#17062) * show help icons in left and display help messages on click * pointless commit * more fixes for when to show icon persistent * More docs & more fixes. * some fixes, more styling changes + UI test * remove line breaks * fix link * update SecurityInfo plugin to latest * apply more review feedback * Adding help text + tweak to notification title bar. * fix issues after review and make exception clearer * update submodules * Update CustomVariables submodule. * fixing tests * fix test Co-authored-by: sgiehl --- plugins/UserId/Categories/VisitorsUserSubcategory.php | 5 +++++ plugins/UserId/lang/en.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'plugins/UserId') diff --git a/plugins/UserId/Categories/VisitorsUserSubcategory.php b/plugins/UserId/Categories/VisitorsUserSubcategory.php index cfb391b597..cf524ed728 100644 --- a/plugins/UserId/Categories/VisitorsUserSubcategory.php +++ b/plugins/UserId/Categories/VisitorsUserSubcategory.php @@ -9,6 +9,7 @@ namespace Piwik\Plugins\UserId\Categories; use Piwik\Category\Subcategory; +use Piwik\Piwik; class VisitorsUserSubcategory extends Subcategory { @@ -16,4 +17,8 @@ class VisitorsUserSubcategory extends Subcategory protected $id = 'UserId_UserReportTitle'; protected $order = 40; + public function getHelp() + { + return '

' . Piwik::translate('UserId_VisitorsUserSubcategoryHelp') . '

'; + } } diff --git a/plugins/UserId/lang/en.json b/plugins/UserId/lang/en.json index 4fccd61bd4..0603567b0f 100644 --- a/plugins/UserId/lang/en.json +++ b/plugins/UserId/lang/en.json @@ -3,6 +3,7 @@ "UserId": "UserId", "UserReportTitle": "User IDs", "UserReportDocumentation": "This report shows visits and other general metrics for every individual User ID.", - "PluginDescription": "Shows user reports" + "PluginDescription": "Shows user reports", + "VisitorsUserSubcategoryHelp": "The User IDs report shows visits associated with all of your registered and logged in users. You can use this section to understand website usage by specific users and identify who your most and least active users are." } } \ No newline at end of file -- cgit v1.2.3