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,73 @@
{% set title %}{{ 'API_Glossary'|translate }}{% endset %}
{% set theContent %}
<div class="row">
<div class="col s12">
<div piwik-content-intro>
<h2>{{ title|e('html_attr') }}</h2>
<p>
{{ 'API_LearnAboutCommonlyUsedTerms2'|translate }}
<!-- {% for keyword, item in glossaryItems %}{{ item.entries|length }} {{ keyword }}{% if not loop.last %}, {% endif %}{% endfor %} -->
</p>
</div>
</div>
</div>
<div class="row glossary">
<div class="col s12">
<ul class="tabs">
{% for keyword, item in glossaryItems %}
<li class="tab col s3"><a {% if loop.index0 == 0 %}class="active"{% endif %} href="#{{ keyword }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
</div>
{% for keyword, item in glossaryItems %}
<div id="{{ keyword }}" class="col s12">
<div class="card">
<div class="card-content">
<div style="background:#fff;width:100%" class="pushpin">
<h2 class="card-title">{{ item.title }}</h2>
<ul class="pagination table-of-contents">
{% for letter in item.letters %}
<li class="waves-effect"><a href="#{{ keyword }}{{ letter }}">{{ letter }}</a></li>
{% endfor %}
</ul></div>
{% set lastLetter = '' %}
{% for entry in item.entries %}
{% if not lastLetter or lastLetter != entry.letter %}
{% if lastLetter %}</div>{% endif %}
{% set lastLetter = entry.letter %}
<div class="section scrollspy" id="{{ keyword }}{{ lastLetter }}">
{% endif %}
<h3 style="color:#4183C4;font-weight: bold;">{{ entry.name }}</h3>
{% if entry.subtitle|default is not empty %}<p style="color:#999;text-transform:uppercase;font-weight:normal;margin-top:-16px;">{{ entry.subtitle|translate }}</p>{% endif %}
<p>{{ entry.documentation|raw }}
{% if entry.id is defined %}
<br/><span style="color: #bbb;">{{ entry.id }}{% if keyword == 'metrics' or entry.is_metric|default %} (API){% endif %}</span>
{% endif %}
</p>
{% endfor %}
</div>
</div>
</div>
</div>
{% endfor %}
</div>
<script type="text/javascript">
$(document).ready(function(){
$('.scrollspy').scrollSpy();
$('.pushpin').pushpin({ top: $('.pushpin').offset().top });
$('.tabs').tabs();
});
</script>
{% endset %}
{% if isWidget %}
{% include '@API/glossaryWidget.twig' %}
{% else %}
{% include '@API/glossaryAdmin.twig' %}
{% endif %}

View File

@ -0,0 +1,3 @@
{% extends 'admin.twig' %}
{% block content %}{{ theContent|raw }}{% endblock %}

View File

@ -0,0 +1,3 @@
{% extends 'layout.twig' %}
{% block root %}{{ theContent|raw }}{% endblock %}

View File

@ -0,0 +1,34 @@
{% extends 'admin.twig' %}
{% set title %}{{ 'API_ReportingApiReference'|translate }}{% endset %}
{% block topcontrols %}
{% include "@CoreHome/_siteSelectHeader.twig" %}
{% include "@CoreHome/_periodSelect.twig" %}
{% endblock %}
{% block content %}
<div class="api-list">
<div piwik-content-block content-title="{{ title }}" rate="true">
<p>{{ 'API_PluginDescription'|translate }}</p>
<p>
{{ 'API_MoreInformation'|translate("<a target='_blank' rel='noreferrer noopener' href='https://matomo.org/docs/analytics-api'>","</a>","<a target='_blank' rel='noreferrer' href='https://matomo.org/docs/analytics-api/reference'>","</a>")|raw }}
</p>
</div>
<div piwik-content-block content-title="{{ 'API_UserAuthentication'|translate|e('html_attr') }}">
<p>
{{ 'API_UsingTokenAuth'|translate('','',"")|raw }}<br/>
<pre piwik-select-on-focus id='token_auth'>&amp;token_auth=<strong piwik-show-sensitive-data="{{ token_auth }}" data-click-element-selector="#token_auth"></strong></pre><br/>
{{ 'API_KeepTokenSecret'|translate('<b>','</b>')|raw }}<br />
{{ 'API_ChangeTokenHint'|translate('<a href="' ~ linkTo({
'module': 'UsersManager',
'action': 'userSettings',
}) ~ '">', '</a>')|raw }}
</p>
</div>
{{ list_api_methods_with_links|raw }}
<br/>
</div>
{% endblock %}