Skip to content
Snippets Groups Projects
Commit f2d741fb authored by ale's avatar ale
Browse files

Update phrasing and menu label

parent 58c85cf9
No related branches found
No related tags found
No related merge requests found
Pipeline #88500 passed
......@@ -3,7 +3,7 @@
* Plugin Name: ai-simplesitestats
* Plugin URI: https://git.autistici.org/noblogs/ai-simplesitestats-plugin
* Description: Show simple site statistics
* Version: 0.0.11
* Version: 0.0.12
* Author: Autistici/Inventati
* Author URI: https://www.autistici.org/
* License: MIT
......@@ -51,7 +51,7 @@ class StatisticsPage {
$timeseriesJSON = $this->getTimeseriesJSON($site_name, $metric, $resolution);
echo '<div id="ai-sss-container" class="wrap">';
echo '<h2>Statistics for ' . $site_name . '</h2>';
echo '<h2>Traffic statistics for ' . $site_name . '</h2>';
// Output the chart element along with the data.
echo '<div style="width:100%;"><canvas id="sssChart" class="simplesitestats-chart" data-timeseries-element-id="sssChartData"></canvas></div>';
......@@ -70,6 +70,8 @@ class StatisticsPage {
echo '</td><td><button type="submit">Update</button></td></tr></table>';
echo '</form>';
echo '<p>These metrics are computed from server-side anonymized logs.</p>';
echo '</div>';
}
......@@ -113,7 +115,7 @@ class StatisticsPage {
class AiSSS {
private static $version = '0.0.11', $blog_id;
private static $version = '0.0.12', $blog_id;
public function __construct() {
global $blog_id;
......@@ -125,8 +127,8 @@ class AiSSS {
public function addStatsPage() {
$statsPage = new StatisticsPage($this);
$statsPageId = add_dashboard_page(
__('Statistics', 'ai-simplesitestats'),
'Stats',
__('Analytics', 'ai-simplesitestats'),
'Analytics',
'read', // cap
'ai-sss_stats',
array($statsPage, 'show'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment