mirror of
https://github.com/e107inc/e107.git
synced 2025-06-08 20:21:13 +02:00
Text to LANS #6 - Infopanel Chart - #2219 conflicts now resolved in this version
This commit is contained in:
parent
61f207a46b
commit
80c09697fa
@ -2,14 +2,12 @@
|
|||||||
/*
|
/*
|
||||||
* e107 website system
|
* 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
|
* Released under the terms and conditions of the
|
||||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||||
*
|
*
|
||||||
* Info panel admin view
|
* Info panel admin view
|
||||||
*
|
*
|
||||||
* $URL$
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('e107_INIT'))
|
if (!defined('e107_INIT'))
|
||||||
@ -160,7 +158,6 @@ class adminstyle_infopanel
|
|||||||
|
|
||||||
';
|
';
|
||||||
*/
|
*/
|
||||||
//TODO LANs throughout.
|
|
||||||
|
|
||||||
$user_pref = $this->getUserPref();
|
$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();
|
$frm = e107::getForm();
|
||||||
$mes = e107::getMessage();
|
$mes = e107::getMessage();
|
||||||
@ -771,8 +768,14 @@ class adminstyle_infopanel
|
|||||||
{
|
{
|
||||||
$data = array();
|
$data = array();
|
||||||
|
|
||||||
$data['labels'] = array("January","February","March","April","May","June","July");
|
$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(
|
$data['datasets'][] = array(
|
||||||
'fillColor' => "rgba(220,220,220,0.5)",
|
'fillColor' => "rgba(220,220,220,0.5)",
|
||||||
@ -780,8 +783,7 @@ class adminstyle_infopanel
|
|||||||
'pointColor ' => "rgba(220,220,220,1)",
|
'pointColor ' => "rgba(220,220,220,1)",
|
||||||
'pointStrokeColor' => "#fff",
|
'pointStrokeColor' => "#fff",
|
||||||
'data' => array(65,59,90,81,56,55,40),
|
'data' => array(65,59,90,81,56,55,40),
|
||||||
'title' => "Visits"
|
'title' => ADLAN_168// "Visits"
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$data['datasets'][] = array(
|
$data['datasets'][] = array(
|
||||||
@ -790,7 +792,7 @@ class adminstyle_infopanel
|
|||||||
'pointColor ' => "rgba(151,187,205,1)",
|
'pointColor ' => "rgba(151,187,205,1)",
|
||||||
'pointStrokeColor' => "#fff",
|
'pointStrokeColor' => "#fff",
|
||||||
'data' => array(28,48,40,19,96,27,100),
|
'data' => array(28,48,40,19,96,27,100),
|
||||||
'title' => "Unique Visits"
|
'title' => ADLAN_169 //"Unique Visits"
|
||||||
);
|
);
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
@ -955,21 +957,21 @@ class adminstyle_infopanel
|
|||||||
|
|
||||||
if($type == 'demo')
|
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
|
else
|
||||||
{
|
{
|
||||||
$text .= "<div class='center'><small>
|
$text .= "<div class='center'><small>
|
||||||
<span style='color:rgba(220,220,220,0.5)'>♦</span> Visitors
|
<span style='color:rgba(220,220,220,0.5)'>♦</span>".ADLAN_168."
|
||||||
<span style='color:rgba(151,187,205,1)'>♦</span> Unique Visitors
|
<span style='color:rgba(151,187,205,1)'>♦</span>".ADLAN_169."
|
||||||
</small></div>";
|
</small></div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return $text;
|
return $text;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
@ -187,6 +187,10 @@ define("ADLAN_165", "Powered by e107");
|
|||||||
define("ADLAN_166", "Return to Website");
|
define("ADLAN_166", "Return to Website");
|
||||||
define("ADLAN_167", "Pending Mailshots");
|
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");
|
define("ADLAN_185", "Toggle Sidebar");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user