blob: f21a2477a3d93629890390bd8e130587b02201d8 (
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
83
84
85
86
87
88
|
{% if not visitorData %}
<div class="pk-emptyDataTable">{{ 'CoreHome_ThereIsNoDataForThisReport'|translate }}</div>
{% else %}
<div class="visitor-profile"
data-visitor-id="{{ visitorData.lastVisits.getFirstRow().getColumn('visitorId') }}"
data-next-visitor="{{ visitorData.nextVisitorId }}"
data-prev-visitor="{{ visitorData.previousVisitorId }}"
tabindex="0">
<div class="visitor-profile-options">
<a href class="visitor-profile-close" title="{{ 'General_Close'|translate }} "></a>
<a href="http://piwik.org/docs/user-profile/" class="visitor-profile-help" rel="noreferrer"
target="_blank"
title="{{ 'General_ViewDocumentationFor'|translate("Live_VisitorProfile"|translate|ucwords) }}">
</a>
<a href class="visitor-profile-toggle-actions" title="{{ 'Live_ToggleActions'|translate }} "></a>
</div>
<div class="visitor-profile-info">
<div class="visitor-profile-overview">
<div class="visitor-profile-header">
<div class="visitor-profile-avatar">
<img src="{{ visitorData.visitorAvatar|default("plugins/Live/images/unknown_avatar.png") }}"
alt="{{ visitorData.visitorDescription|default('') }}"
title="{{ visitorData.visitorDescription|default('') }}"/>
</div>
<div class="visitor-profile-header-details">
<div class="visitor-profile-headline">
{% if visitorData.previousVisitorId is not empty %}<a class="visitor-profile-prev-visitor"
href="#"
title="{{ 'Live_PreviousVisitor'|translate }}">
←</a>{% endif %}
<h1>
{%- if visitorData.userId is empty %}
{{ 'Live_VisitorProfile'|translate }}
{%- else %}
<span title="{{ 'General_UserId'|translate }}: {{ visitorData.userId|raw }}">{{ visitorData.userId|raw }}</span>
{% endif -%}
</h1>
{% if visitorData.nextVisitorId is not empty %}<a class="visitor-profile-next-visitor"
href="#"
title="{{ 'Live_NextVisitor'|translate }}">
→</a>{% endif %}
</div>
<div class="visitor-profile-latest-visit">
<div class="visitor-profile-id">
<span>{{ 'General_Id'|translate|upper }}</span>
{% if widgetizedLink is defined %}<a class="visitor-profile-widget-link"
href="{{ widgetizedLink }}" target="_blank"
title="{{ 'Widgetize_OpenInNewWindow'|translate }} - {{ 'Live_VisitorProfile'|translate }} {{ 'General_Id'|translate|upper }} {{ visitorData.visitorId }}">{% endif %}
<span>{{ visitorData.visitorId }}</span>
{%- if widgetizedLink is defined %}</a>{% endif %}
<a class="visitor-profile-export" href="{{ exportLink }}" target="_blank"
title="{{ 'General_ExportThisReport'|translate }}">
<span class="icon-export"></span>
</a>
</div>
{{ postEvent('Live.renderVisitorIcons', visitorData.lastVisits|first) }}
</div>
</div>
</div>
{{ profileSummary|raw }}
{{ postEvent('Template.afterVisitorProfileOverview') }}
</div>
<div class="visitor-profile-visits-info">
<div class="visitor-profile-visits-container">
<ol class="visitor-profile-visits">
{% include "@Live/getVisitList.twig" with {'visits': visitorData.lastVisits, 'startCounter': visitorData.totalVisits} %}
</ol>
</div>
<div class="visitor-profile-more-info">
{% if visitorData.lastVisits.getRowsCount() >= constant("Piwik\\Plugins\\Live\\VisitorProfile::VISITOR_PROFILE_MAX_VISITS_TO_SHOW") %}
<a href="#">{{ 'Live_LoadMoreVisits'|translate }}</a> <img class="loadingPiwik"
style="display:none;"
src="plugins/Morpheus/images/loading-blue.gif"/>
{% else %}
<span class="visitor-profile-no-visits">{{ 'Live_NoMoreVisits'|translate }}</span>
{% endif %}
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function () {
require('piwik/UI').VisitorProfileControl.initElements();
});
</script>
{% endif %}
|