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/Contents | |
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/Contents')
-rw-r--r-- | plugins/Contents/Categories/ContentsSubcategory.php | 6 | ||||
-rw-r--r-- | plugins/Contents/lang/en.json | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/plugins/Contents/Categories/ContentsSubcategory.php b/plugins/Contents/Categories/ContentsSubcategory.php index 93adfe0eb7..702c0621cf 100644 --- a/plugins/Contents/Categories/ContentsSubcategory.php +++ b/plugins/Contents/Categories/ContentsSubcategory.php @@ -9,6 +9,7 @@ namespace Piwik\Plugins\Contents\Categories; use Piwik\Category\Subcategory; +use Piwik\Piwik; class ContentsSubcategory extends Subcategory { @@ -16,4 +17,9 @@ class ContentsSubcategory extends Subcategory protected $id = 'Contents_Contents'; protected $order = 45; + public function getHelp() + { + return '<p>' . Piwik::translate('Contents_ContentsSubcategoryHelp1') . '</p>' + . '<p><a href="https://matomo.org/docs/content-tracking/" rel="noreferrer noopener" target="_blank">' . Piwik::translate('Contents_ContentsSubcategoryHelp2') . '</a></p>'; + } } diff --git a/plugins/Contents/lang/en.json b/plugins/Contents/lang/en.json index 5dd2ed0038..5c63a2fa92 100644 --- a/plugins/Contents/lang/en.json +++ b/plugins/Contents/lang/en.json @@ -17,6 +17,8 @@ "Contents": "Contents", "InteractionsMetricDocumentation": "The number of times a content block was interacted with (eg, a 'click' on a banner or ad).", "ImpressionsMetricDocumentation": "The number of times a content block, such as a banner or an ad, was displayed on a page.", - "InteractionRateMetricDocumentation": "The ratio of content impressions to interactions." + "InteractionRateMetricDocumentation": "The ratio of content impressions to interactions.", + "ContentsSubcategoryHelp1": "Content tracking helps you determine the popularity of specific pieces of content on any page of your website or app. This section reports the number of impressions and interactions the various pieces of content on your site receive.", + "ContentsSubcategoryHelp2": "Learn more in the Content Tracking guide." } }
\ No newline at end of file |