blob: 5959be340778501481b6b560b78504155e7e3555 (
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
<section>
<div class="UserCountryMap" style="position:relative; overflow:hidden;">
<div class="UserCountryMap_container">
<div class="UserCountryMap_map" style="overflow:hidden;"></div>
<div class="UserCountryMap-overlay UserCountryMap-title">
<div class="content">
<!--<div class="map-title" style="font-weight:bold; color:#9A9386;"></div>-->
<div class="map-stats" style="color:#565656;"></div>
</div>
</div>
<div class="UserCountryMap-overlay UserCountryMap-legend">
<div class="content">
</div>
</div>
<div class="UserCountryMap-tooltip UserCountryMap-info">
<div class="content unlocated-stats" data-tpl="{{ 'UserCountryMap_Unlocated'|translate }}">
</div>
</div>
<div class="UserCountryMap-info-btn" data-tooltip-target=".UserCountryMap-tooltip"></div>
</div>
<div class="mapWidgetStatus">
{% if noData %}
<div class="pk-emptyDataTable">{{ 'CoreHome_ThereIsNoDataForThisReport'|translate }}</div>
{% else %}
<span class="loadingPiwik">
<img src="plugins/Morpheus/images/loading-blue.gif" />
{{ 'General_LoadingData'|translate }}...
</span>
{% endif %}
</div>
<div class="dataTableFeatures" style="padding-top:0;">
<div class="dataTableFooterIcons">
<div class="dataTableFooterWrap" var="graphVerticalBar">
<img class="UserCountryMap-activeItem dataTableFooterActiveItem" src="plugins/Morpheus/images/data_table_footer_active_item.png" style="left: 25px;" />
<div class="tableIconsGroup">
<span class="tableAllColumnsSwitch">
<a class="UserCountryMap-btn-zoom tableIcon" format="table">
<img src="plugins/Morpheus/images/zoom-out.png" title="Zoom to world" />
</a>
</span>
</div>
<div class="tableIconsGroup UserCountryMap-view-mode-buttons">
<span class="tableAllColumnsSwitch">
<a var="tableAllColumns" class="UserCountryMap-btn-region tableIcon activeIcon" format="tableAllColumns"
data-region="{{ 'UserCountryMap_Regions'|translate }}" data-country="{{ 'UserCountryMap_Countries'|translate }}">
<img src="plugins/UserCountryMap/images/regions.png" title="Show visitors per region/country" />
<span style="margin:0;">{{ 'UserCountryMap_Countries'|translate }}</span>
</a>
<a var="tableGoals" class="UserCountryMap-btn-city tableIcon inactiveIco" format="tableGoals">
<img src="plugins/UserCountryMap/images/cities.png" title="Show visitors per city" />
<span style="margin:0;">{{ 'UserCountryMap_Cities'|translate }}</span>
</a>
</span>
</div>
</div>
<select class="userCountryMapSelectMetrics" style="float:right;margin-right:0;margin-bottom:5px;max-width: 10em;font-size:10px;">
{% for metric in metrics %}
<option value="{{ metric[0] }}" {% if metric[0] == defaultMetric %}selected="selected"{% endif %}}>{{ metric[1] }}</option>
{% endfor %}
</select>
<select class="userCountryMapSelectCountry">
<option value="world">{{ 'UserCountryMap_WorldWide'|translate }}</option>
<option disabled="disabled">––––––</option>
<option value="AF">{{ 'UserCountry_continent_afr'|translate }}</option>
<option value="AS">{{ 'UserCountry_continent_asi'|translate }}</option>
<option value="EU">{{ 'UserCountry_continent_eur'|translate }}</option>
<option value="NA">{{ 'UserCountry_continent_amn'|translate }}</option>
<option value="OC">{{ 'UserCountry_continent_oce'|translate }}</option>
<option value="SA">{{ 'UserCountry_continent_ams'|translate }}</option>
<option disabled="disabled">––––––</option>
</select>
</div>
</div>
</div>
</section>
{% if not noData %}
<!-- configure some piwik vars -->
<script type="text/javascript">
var visitorMap,
config = JSON.parse('{{ config|e('js') }}');
config._ = JSON.parse('{{ localeJSON|e('js') }}');
config.reqParams = JSON.parse('{{ reqParamsJSON|e('js') }}');
$('.UserCountryMap').addClass('dataTable');
if ($('#dashboardWidgetsArea').length) {
// dashboard mode
var $widgetContent = $('.UserCountryMap').parents('.widgetContent');
$widgetContent.on('widget:create',function (evt, widget) {
visitorMap = new UserCountryMap.VisitorMap(config, widget);
}).on('widget:maximise',function (evt) {
visitorMap.resize();
}).on('widget:minimise',function (evt) {
visitorMap.resize();
}).on('widget:destroy', function (evt) {
visitorMap.destroy();
});
} else {
// stand-alone mode
visitorMap = new UserCountryMap.VisitorMap(config);
}
</script>
{% endif %}
|