PDF rausgenommen
This commit is contained in:
56
msd2/tracking/piwik/plugins/Live/templates/index.twig
Normal file
56
msd2/tracking/piwik/plugins/Live/templates/index.twig
Normal file
@ -0,0 +1,56 @@
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function () {
|
||||
var segment = broadcast.getValueFromHash('segment');
|
||||
if (!segment) {
|
||||
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();
|
||||
},
|
||||
maxRows: 10,
|
||||
fadeInSpeed: 600,
|
||||
dataUrlParams: {
|
||||
module: 'Live',
|
||||
action: 'getLastVisitsStart',
|
||||
segment: segment
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
{% if not isWidgetized %}<div piwik-content-block content-title="{{ 'Live_VisitorsInRealTime'|translate|e('html_attr') }}">{% endif %}
|
||||
|
||||
{% include "@Live/_totalVisitors.twig" %}
|
||||
|
||||
{{ visitors|raw }}
|
||||
|
||||
{% spaceless %}
|
||||
<div class="visitsLiveFooter">
|
||||
<a title="{{ 'Live_OnClickPause'|translate('Live_VisitorsInRealTime'|translate) }}" href="javascript:void(0);" onclick="onClickPause();">
|
||||
<img id="pauseImage" border="0" src="plugins/Live/images/pause.png" />
|
||||
</a>
|
||||
<a title="{{ 'Live_OnClickStart'|translate('Live_VisitorsInRealTime'|translate) }}" href="javascript:void(0);" onclick="onClickPlay();">
|
||||
<img id="playImage" style="display: none;" border="0" src="plugins/Live/images/play.png" />
|
||||
</a>
|
||||
{% if not disableLink %}
|
||||
|
||||
<a class="rightLink" href="#" onclick="this.href=broadcast.buildReportingUrl('category=General_Visitors&subcategory=Live_VisitorLog')">{{ 'Live_LinkVisitorLog'|translate }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endspaceless %}
|
||||
|
||||
{% if not isWidgetized %}</div>{% endif %}
|
Reference in New Issue
Block a user