diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2021-02-10 08:37:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-10 08:37:26 +0300 |
commit | bc1d57f6dc43e843d26cbb5e484539201f518cf9 (patch) | |
tree | 124d9ba0bb2f0a860fdaa9e39c059944dc94af4e /plugins/Transitions | |
parent | f3782b96ad41d9ec52e759e7ca47bceba570bc35 (diff) |
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 <stefan@matomo.org>
Diffstat (limited to 'plugins/Transitions')
-rw-r--r-- | plugins/Transitions/Categories/TransitionsSubcategory.php | 6 | ||||
-rw-r--r-- | plugins/Transitions/lang/en.json | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/plugins/Transitions/Categories/TransitionsSubcategory.php b/plugins/Transitions/Categories/TransitionsSubcategory.php index d801ab1ba3..e58c992d1d 100644 --- a/plugins/Transitions/Categories/TransitionsSubcategory.php +++ b/plugins/Transitions/Categories/TransitionsSubcategory.php @@ -9,6 +9,7 @@ namespace Piwik\Plugins\Transitions\Categories; use Piwik\Category\Subcategory; +use Piwik\Piwik; class TransitionsSubcategory extends Subcategory { @@ -16,4 +17,9 @@ class TransitionsSubcategory extends Subcategory protected $id = 'Transitions_Transitions'; protected $order = 46; + public function getHelp() + { + return '<p>' . Piwik::translate('Transitions_TransitionsSubcategoryHelp1') . '</p>' + . '<p><a href="https://matomo.org/docs/transitions/" rel="noreferrer noopener" target="_blank">' . Piwik::translate('Transitions_TransitionsSubcategoryHelp2') . '</a></p>'; + } } diff --git a/plugins/Transitions/lang/en.json b/plugins/Transitions/lang/en.json index 3fece8c57e..321557d613 100644 --- a/plugins/Transitions/lang/en.json +++ b/plugins/Transitions/lang/en.json @@ -33,6 +33,8 @@ "ToFollowingSiteSearchesInline": "%s internal searches", "XOfAllPageviews": "%s of all views of this page", "XOutOfYVisits": "%1$s (out of %2$s)", - "PageURLTransitions": "Page URL Transitions" + "PageURLTransitions": "Page URL Transitions", + "TransitionsSubcategoryHelp1": "Transitions gives you a report that shows the things your visitors did directly before and after viewing a certain page. This page will explain how to access, understand, and use the powerful Transitions report.", + "TransitionsSubcategoryHelp2": "More Details" } }
\ No newline at end of file |