diff options
Diffstat (limited to 'plugins/CoreHome/Categories/VisitorsCategory.php')
-rw-r--r-- | plugins/CoreHome/Categories/VisitorsCategory.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/CoreHome/Categories/VisitorsCategory.php b/plugins/CoreHome/Categories/VisitorsCategory.php index 3541c7818f..8cbbbb9033 100644 --- a/plugins/CoreHome/Categories/VisitorsCategory.php +++ b/plugins/CoreHome/Categories/VisitorsCategory.php @@ -9,10 +9,22 @@ namespace Piwik\Plugins\CoreHome\Categories; use Piwik\Category\Category; +use Piwik\Piwik; +use Piwik\Url; class VisitorsCategory extends Category { protected $id = 'General_Visitors'; protected $order = 5; protected $icon = 'icon-reporting-visitors'; + + public function getHelp() + { + $visitsLogUrl = '<a href="#" onclick="this.href=broadcast.buildReportingUrl(\'category=General_Visitors&subcategory=Live_VisitorLog\')">'; + + $helpText = '<p>' . Piwik::translate('CoreHome_VisitorsCategoryHelp1') . '</p>'; + $helpText .= '<p>' . Piwik::translate('CoreHome_VisitorsCategoryHelp2', [$visitsLogUrl, '</a>']) . '</p>'; + + return $helpText; + } } |