Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordizzy <diosmosis@users.noreply.github.com>2021-02-10 08:37:26 +0300
committerGitHub <noreply@github.com>2021-02-10 08:37:26 +0300
commitbc1d57f6dc43e843d26cbb5e484539201f518cf9 (patch)
tree124d9ba0bb2f0a860fdaa9e39c059944dc94af4e /plugins/Contents
parentf3782b96ad41d9ec52e759e7ca47bceba570bc35 (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.php6
-rw-r--r--plugins/Contents/lang/en.json4
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