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
Tags v0.0.6
No related merge requests found
Pipeline #88500 passed
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Plugin Name: ai-simplesitestats * Plugin Name: ai-simplesitestats
* Plugin URI: https://git.autistici.org/noblogs/ai-simplesitestats-plugin * Plugin URI: https://git.autistici.org/noblogs/ai-simplesitestats-plugin
* Description: Show simple site statistics * Description: Show simple site statistics
* Version: 0.0.11 * Version: 0.0.12
* Author: Autistici/Inventati * Author: Autistici/Inventati
* Author URI: https://www.autistici.org/ * Author URI: https://www.autistici.org/
* License: MIT * License: MIT
...@@ -51,7 +51,7 @@ class StatisticsPage { ...@@ -51,7 +51,7 @@ class StatisticsPage {
$timeseriesJSON = $this->getTimeseriesJSON($site_name, $metric, $resolution); $timeseriesJSON = $this->getTimeseriesJSON($site_name, $metric, $resolution);
echo '<div id="ai-sss-container" class="wrap">'; 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. // 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>'; echo '<div style="width:100%;"><canvas id="sssChart" class="simplesitestats-chart" data-timeseries-element-id="sssChartData"></canvas></div>';
...@@ -70,6 +70,8 @@ class StatisticsPage { ...@@ -70,6 +70,8 @@ class StatisticsPage {
echo '</td><td><button type="submit">Update</button></td></tr></table>'; echo '</td><td><button type="submit">Update</button></td></tr></table>';
echo '</form>'; echo '</form>';
echo '<p>These metrics are computed from server-side anonymized logs.</p>';
echo '</div>'; echo '</div>';
} }
...@@ -113,7 +115,7 @@ class StatisticsPage { ...@@ -113,7 +115,7 @@ class StatisticsPage {
class AiSSS { class AiSSS {
private static $version = '0.0.11', $blog_id; private static $version = '0.0.12', $blog_id;
public function __construct() { public function __construct() {
global $blog_id; global $blog_id;
...@@ -125,8 +127,8 @@ class AiSSS { ...@@ -125,8 +127,8 @@ class AiSSS {
public function addStatsPage() { public function addStatsPage() {
$statsPage = new StatisticsPage($this); $statsPage = new StatisticsPage($this);
$statsPageId = add_dashboard_page( $statsPageId = add_dashboard_page(
__('Statistics', 'ai-simplesitestats'), __('Analytics', 'ai-simplesitestats'),
'Stats', 'Analytics',
'read', // cap 'read', // cap
'ai-sss_stats', 'ai-sss_stats',
array($statsPage, 'show')); 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