blob: 42294e2ae4d37d82d789d11e6fce3e5178524cec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
{% extends 'dashboard.twig' %}
{% block head %}
{{ parent() }}
<script type="text/javascript" src="plugins/Overlay/javascripts/Piwik_Overlay.js"></script>
<link rel="stylesheet" type="text/css" href="plugins/Overlay/stylesheets/overlay.css" />
{% endblock %}
{% block content %}
<div class="overlay-sidebar-container">
<a id="overlayTitle" href="https://matomo.org/docs/page-overlay/" rel="noreferrer noopener" target="_blank">
{{ 'Overlay_Overlay'|translate }}
<span class="icon-info2"></span>
</a>
<div id="overlayDateRangeSelection">
<span class="icon icon-calendar"></span>
<select id="overlayDateRangeSelect" name="overlayDateRangeSelect" disabled>
<option value="day;today">{{ 'Intl_Today'|translate }}</option>
<option value="day;yesterday">{{ 'Intl_Yesterday'|translate }}</option>
<option value="week;today">{{ 'General_CurrentWeek'|translate }}</option>
<option value="month;today">{{ 'General_CurrentMonth'|translate }}</option>
<option value="year;today">{{ 'General_CurrentYear'|translate }}</option>
</select>
</div>
<div id="overlayErrorNotLoading">
<p>
<span>{{ 'Overlay_ErrorNotLoading'|translate }}</span>
</p>
<p>
{% if ssl %}
{{ 'Overlay_ErrorNotLoadingDetailsSSL'|translate }}
{% else %}
{{ 'Overlay_ErrorNotLoadingDetails'|translate }}
{% endif %}
</p>
<p>
<a href="https://matomo.org/docs/page-overlay/#toc-page-overlay-troubleshooting" rel="noreferrer noopener" target="_blank">
{{ 'Overlay_ErrorNotLoadingLink'|translate }}
</a>
</p>
</div>
<div id="overlayLocation"> </div>
<div id="overlayLoading">{{ 'General_Loading'|translate }}</div>
<div id="overlaySidebar"></div>
<a id="overlayRowEvolution"><span class="icon icon-evolution"></span>{{ 'General_RowEvolutionRowActionTooltipTitle'|translate }}</a>
<a id="overlayTransitions"><span class="icon icon-transition"></span>{{ 'General_TransitionsRowActionTooltipTitle'|translate }}</a>
<a id="overlaySegmentedVisitorLog"><span class="icon icon-visitor-profile"></span>{{ 'Live_RowActionTooltipTitle'|translate }}</a>
{{ postEvent('Template.afterOverlaySidebar') }}
</div>
<div id="overlayMain">
<iframe id="overlayIframe" name="overlayIframe" src="" frameborder="0"></iframe>
</div>
<script type="text/javascript">
broadcast._isInit = true;
$(function () {
Piwik_Overlay.siteUrls = {{ siteUrls|json_encode|raw }};
var iframeSrc = 'index.php?module=Overlay&action=startOverlaySession&idSite={{ idSite }}&period={{ period }}&date={{ rawDate }}&segment={{ segment }}';
if (piwik.shouldPropagateTokenAuth) {
iframeSrc += '&force_api_session=1&token_auth=' + piwik.token_auth;
}
Piwik_Overlay.init(iframeSrc, '{{ idSite }}', '{{ period }}', '{{ rawDate }}', '{{ segment }}');
window.Piwik_Overlay_Translations = {
domain: "{{ 'Overlay_Domain'|translate }}"
};
});
</script>
{% endblock %}
|