merge
This commit is contained in:
commit
046a724272
4209 changed files with 1186656 additions and 0 deletions
49
www/analytics/plugins/Live/templates/index.twig
Normal file
49
www/analytics/plugins/Live/templates/index.twig
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function () {
|
||||
var segment = broadcast.getValueFromUrl('segment');
|
||||
|
||||
$('#visitsLive').liveWidget({
|
||||
interval: {{ liveRefreshAfterMs }},
|
||||
onUpdate: function () {
|
||||
//updates the numbers of total visits in startbox
|
||||
var ajaxRequest = new ajaxHelper();
|
||||
ajaxRequest.setFormat('html');
|
||||
ajaxRequest.addParams({
|
||||
module: 'Live',
|
||||
action: 'ajaxTotalVisitors',
|
||||
segment: segment
|
||||
}, 'GET');
|
||||
ajaxRequest.setCallback(function (r) {
|
||||
$("#visitsTotal").html(r);
|
||||
});
|
||||
ajaxRequest.send(false);
|
||||
},
|
||||
maxRows: 10,
|
||||
fadeInSpeed: 600,
|
||||
dataUrlParams: {
|
||||
module: 'Live',
|
||||
action: 'getLastVisitsStart',
|
||||
segment: segment
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
{% include "@Live/_totalVisitors.twig" %}
|
||||
|
||||
{{ visitors|raw }}
|
||||
|
||||
{% spaceless %}
|
||||
<div class="visitsLiveFooter">
|
||||
<a title="Pause Live!" href="javascript:void(0);" onclick="onClickPause();">
|
||||
<img id="pauseImage" border="0" src="plugins/Live/images/pause_disabled.gif" />
|
||||
</a>
|
||||
<a title="Start Live!" href="javascript:void(0);" onclick="onClickPlay();">
|
||||
<img id="playImage" border="0" src="plugins/Live/images/play.gif" />
|
||||
</a>
|
||||
{% if not disableLink %}
|
||||
|
||||
<a class="rightLink" href="javascript:broadcast.propagateAjax('module=Live&action=getVisitorLog')">{{ 'Live_LinkVisitorLog'|translate }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endspaceless %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue