PDF rausgenommen

This commit is contained in:
aschwarz
2023-01-23 11:03:31 +01:00
parent 82d562a322
commit a6523903eb
28078 changed files with 4247552 additions and 2 deletions

View File

@ -0,0 +1,21 @@
{% if visitorData.devices is defined %}
<div class="visitor-profile-summary visitor-profile-devices">
<h1>{{ 'DevicesDetection_Devices'|translate }}</h1>
<div>
{%- for entry in visitorData.devices -%}
<p>
<img height="16" src="{{ entry.icon }}" />
{% if entry.devices|length == 1 and 'General_Unknown'|translate in entry.devices[0].name %}
<span>{{ 'DevicesDetection_XVisitsFromDevices'|translate('<strong>' ~ entry.count ~ '</strong>', '<strong>' ~ entry.type ~ '</strong>')|raw }}
{% else %}
<span>{{ 'DevicesDetection_XVisitsFromDevices'|translate('<strong>' ~ entry.count ~ '</strong>', '<strong>' ~ entry.type ~ '</strong>')|raw }}:
{% for device in entry.devices -%}
{{ device.name }} ({{ device.count }}x){% if not loop.last %}, {% endif %}
{%- endfor -%}
</span>
{% endif %}
</p>
{%- endfor -%}
</div>
</div>
{% endif %}

View File

@ -0,0 +1,113 @@
{% extends 'admin.twig' %}
{% set title %}{{ 'DevicesDetection_DeviceDetection'|translate }}{% endset %}
{% block content %}
<script type="text/javascript">
function showList(type) {
var ajaxHandler = new ajaxHelper();
ajaxHandler.addParams({
module: 'DevicesDetection',
action: 'showList',
type: type
}, 'GET');
ajaxHandler.setFormat('html');
ajaxHandler.setCallback(function(response){
var $list = $('#deviceDetectionItemList');
$list.find('.itemList').html(response);
piwikHelper.modalConfirm($list, [], {fixedFooter: true});
});
ajaxHandler.send();
}
</script>
<style type="text/css">
textarea {
width: 700px;
display: block;
}
.detection {
padding-top:10px;
}
.detection td {
width: 50%;
}
.detection td img {
margin-right: 10px;
}
</style>
<div piwik-content-block content-title="{{ title|e('html_attr') }}">
<h3>{{ 'DevicesDetection_UserAgent'|translate|e('html_attr') }}</h3>
<form action="{{ linkTo({}) }}" method="POST">
<textarea name="ua">{{ userAgent }}</textarea>
<br />
<input type="submit" value="{{ 'General_Refresh'|translate }}" class="btn" />
</form>
<h3>{{ 'DevicesDetection_ColumnOperatingSystem'|translate|e('html_attr') }}</h3>
<table class="detection" piwik-content-table>
<tbody>
<tr>
<td>{{ 'General_Name'|translate }} <small>(<a href="javascript:showList('os');">{{ 'Mobile_ShowAll'|translate }}</a>)</small></td>
<td><img height="16px" width="16px" src="{{ os_logo }}" />{{ os_name }}</td>
</tr>
<tr>
<td>{{ 'CorePluginsAdmin_Version'|translate }}</td>
<td>{{ os_version }}</td>
</tr>
<tr>
<td>{{ 'DevicesDetection_OperatingSystemFamily'|translate }} <small>(<a href="javascript:showList('osfamilies');">{{ 'Mobile_ShowAll'|translate }}</a>)</small></td>
<td><img height="16px" width="16px" src="{{ os_family_logo }}" />{{ os_family }}</td>
</tr>
</tbody>
</table>
<h3>{{ 'DevicesDetection_ColumnBrowser'|translate }}</h3>
<table class="detection" piwik-content-table>
<tbody>
<tr>
<td>{{ 'General_Name'|translate }} <small>(<a href="javascript:showList('browsers');">{{ 'Mobile_ShowAll'|translate }}</a>)</small></td>
<td><img height="16px" width="16px" src="{{ browser_logo }}" />{{ browser_name }}</td>
</tr>
<tr>
<td>{{ 'CorePluginsAdmin_Version'|translate }}</td>
<td>{{ browser_version }}</td>
</tr>
<tr>
<td>{{ 'DevicesDetection_BrowserFamily'|translate }} <small>(<a href="javascript:showList('browserfamilies');">{{ 'Mobile_ShowAll'|translate }}</a>)</small></td>
<td><img height="16px" width="16px" src="{{ browser_family_logo }}" />{{ browser_family }}</td>
</tr>
</tbody>
</table>
<h3>{{ 'DevicesDetection_Device'|translate }}</h3>
<table class="detection" piwik-content-table>
<tbody>
<tr>
<td>{{ 'DevicesDetection_dataTableLabelTypes'|translate }} <small>(<a href="javascript:showList('devicetypes');">{{ 'Mobile_ShowAll'|translate }}</a>)</small></td>
<td><img height="16px" width="16px" src="{{ device_type_logo }}" />{{ device_type }}</td>
</tr>
<tr>
<td>{{ 'DevicesDetection_dataTableLabelBrands'|translate }} <small>(<a href="javascript:showList('brands');">{{ 'Mobile_ShowAll'|translate }}</a>)</small></td>
<td><img height="16px" width="16px" src="{{ device_brand_logo }}" />{{ device_brand }}</td>
</tr>
<tr>
<td>{{ 'DevicesDetection_dataTableLabelModels'|translate }}</td>
<td>{{ device_model }}</td>
</tr></tbody>
</table>
</div>
<div class="ui-confirm" id="deviceDetectionItemList">
<div class="itemList"> </div>
<input role="close" type="button" value="{{ 'General_Close'|translate }}"/>
</div>
{% endblock %}

View File

@ -0,0 +1,7 @@
<table class="entityTable">
{% for name,image in itemList %}
<tr>
<td><img height="16px" width="16px" src="{{ image }}" /> {{ name }}</td>
</tr>
{% endfor %}
</table>