1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Text to LANS #6 - Infopanel Chart - #2219 conflicts now resolved in this version

Text to LANS #6 - Infopanel Chart - #2219 conflicts now resolved in this
version
This commit is contained in:
MikeyGMT 2016-12-31 18:55:45 +00:00
parent 61f207a46b
commit 80c09697fa
2 changed files with 34 additions and 28 deletions

View File

@ -2,14 +2,12 @@
/*
* e107 website system
*
* Copyright (C) 2008-2013 e107 Inc (e107.org)
* Copyright (C) 2008-2016 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Info panel admin view
*
* $URL$
* $Id$
*/
if (!defined('e107_INIT'))
@ -160,7 +158,6 @@ class adminstyle_infopanel
';
*/
//TODO LANs throughout.
$user_pref = $this->getUserPref();
@ -624,7 +621,7 @@ class adminstyle_infopanel
function render_infopanel_options($render = false) //TODO LAN
function render_infopanel_options($render = false)
{
$frm = e107::getForm();
$mes = e107::getMessage();
@ -771,27 +768,32 @@ class adminstyle_infopanel
{
$data = array();
$data['labels'] = array("January","February","March","April","May","June","July");
$data['datasets'][] = array(
'fillColor' => "rgba(220,220,220,0.5)",
'strokeColor' => "rgba(220,220,220,1)",
'pointColor ' => "rgba(220,220,220,1)",
'pointStrokeColor' => "#fff",
'data' => array(65,59,90,81,56,55,40),
'title' => "Visits"
$data['labels'] = array(strftime("%B",mktime(0,0,0,01,01,16)), //"January",
strftime("%B",mktime(0,0,0,02,01,16)), //"February",
strftime("%B",mktime(0,0,0,03,01,16)), //"March",
strftime("%B",mktime(0,0,0,04,01,16)), //"April",
strftime("%B",mktime(0,0,0,05,01,16)), //"May",
strftime("%B",mktime(0,0,0,06,01,16)), //"June",
strftime("%B",mktime(0,0,0,07,01,16)) //"July"
);
$data['datasets'][] = array(
'fillColor' => "rgba(151,187,205,0.5)",
'strokeColor' => "rgba(151,187,205,1)",
'pointColor ' => "rgba(151,187,205,1)",
'pointStrokeColor' => "#fff",
'data' => array(28,48,40,19,96,27,100),
'title' => "Unique Visits"
);
'fillColor' => "rgba(220,220,220,0.5)",
'strokeColor' => "rgba(220,220,220,1)",
'pointColor ' => "rgba(220,220,220,1)",
'pointStrokeColor' => "#fff",
'data' => array(65,59,90,81,56,55,40),
'title' => ADLAN_168// "Visits"
);
$data['datasets'][] = array(
'fillColor' => "rgba(151,187,205,0.5)",
'strokeColor' => "rgba(151,187,205,1)",
'pointColor ' => "rgba(151,187,205,1)",
'pointStrokeColor' => "#fff",
'data' => array(28,48,40,19,96,27,100),
'title' => ADLAN_169 //"Unique Visits"
);
return $data;
}
@ -955,21 +957,21 @@ class adminstyle_infopanel
if($type == 'demo')
{
$text .= "<div class='center'><small>These stats are for demonstration purposes only. <a class='btn btn-xs btn-mini' href='".e_ADMIN."plugin.php?avail'>Install Site Stats Plugin</a></small></div>";
$text .= "<div class='center'><small>".ADLAN_170."<a class='btn btn-xs btn-mini' href='".e_ADMIN."plugin.php?avail'>".ADLAN_171."</a></small></div>";
}
else
{
$text .= "<div class='center'><small>
<span style='color:rgba(220,220,220,0.5)'>&diams;</span> Visitors &nbsp;&nbsp;
<span style='color:rgba(151,187,205,1)'>&diams;</span> Unique Visitors
<span style='color:rgba(220,220,220,0.5)'>&diams;</span>".ADLAN_168."&nbsp;&nbsp;
<span style='color:rgba(151,187,205,1)'>&diams;</span>".ADLAN_169."
</small></div>";
}
return $text;
return $text;
}
}
?>

View File

@ -187,6 +187,10 @@ define("ADLAN_165", "Powered by e107");
define("ADLAN_166", "Return to Website");
define("ADLAN_167", "Pending Mailshots");
define("ADLAN_168", "Visitors");//infopanel
define("ADLAN_169", "Unique Visitors");
define("ADLAN_170", "These stats are for demonstration purposes only.");
define("ADLAN_171", "Install Site Stats Plugin");
define("ADLAN_185", "Toggle Sidebar");