update Piwik to version 2.16 (fixes #91)

This commit is contained in:
oliver 2016-04-10 18:55:57 +02:00
commit d885a4baa9
5833 changed files with 418860 additions and 226988 deletions

View file

@ -1,20 +1,22 @@
<!DOCTYPE html>
<!--[if lt IE 9 ]>
<html class="old-ie" id="ng-app" ng-app="piwikApp"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html id="ng-app" ng-app="piwikApp"><!--<![endif]-->
<html id="ng-app" ng-app="piwikApp">
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex,nofollow">
{% include "_jsGlobalVariables.twig" %}
<!--[if lt IE 9]>
<script language="javascript" type="text/javascript" src="libs/jqplot/excanvas.min.js"></script>
<![endif]-->
{% include "_jsCssIncludes.twig" %}
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="plugins/Zeitgeist/stylesheets/ieonly.css"/>
<link rel="stylesheet" type="text/css" href="plugins/Morpheus/stylesheets/ieonly.css"/>
<![endif]-->
</head>
<!--[if lt IE 9 ]>
<body ng-app="app" class="old-ie"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<body ng-app="app">
<![endif]-->
<div class="widget">
{{ content|raw }}
</div>

View file

@ -1,13 +1,15 @@
{% extends 'dashboard.twig' %}
{% extends 'user.twig' %}
{% set title %}{{ 'General_Widgets'|translate }}{% endset %}
{% block topcontrols %}
{% include "@CoreHome/_siteSelectHeader.twig" %}
{% include "@CoreHome/_periodSelect.twig" %}
{% endblock %}
{% block content %}
<div class="pageWrap">
<div class="top_controls">
{% include "@CoreHome/_siteSelectHeader.twig" %}
{% include "@CoreHome/_periodSelect.twig" %}
</div>
<div>
<script type="text/javascript">
$(function () {
@ -31,32 +33,34 @@
});
</script>
<h2 piwik-enriched-headline>{{ title }}</h2>
<div class="widgetize">
<p>With Piwik, you can export your Web Analytics reports on your blog, website, or intranet dashboard... in one click.
<h2 class="secondary">Authentication</h2>
<p>
<strong>&rsaquo; Widget authentication:</strong> If you want your widgets to be viewable by everybody, you first have to set the 'view' permissions
to the anonymous user in the <a href='index.php?module=UsersManager' target='_blank'>Users Management section</a>.
If you want your widgets to be viewable by everybody, you first have to set the 'view' permissions
to the anonymous user in the <a href='index.php?module=UsersManager' rel='noreferrer' target='_blank'>Users Management section</a>.
<br/>Alternatively, if you are publishing widgets on a password protected or private page,
you don't necessarily have to allow 'anonymous' to view your reports. In this case, you can add the secret token_auth parameter (found in the
<a href='{{ linkTo({'module':'API','action':'listAllAPI'}) }}' target='_blank'>API page</a>) in the widget URL.
<a href='{{ linkTo({'module':'API','action':'listAllAPI'}) }}' rel='noreferrer' target='_blank'>API page</a>) in the widget URL.
</p>
<p><strong>&rsaquo; Widgetize the full dashboard:</strong> You can also display the full Piwik dashboard in your application or website in an IFRAME
(<a href='' target='_blank' id='linkDashboardUrl'>see example</a>).
<h2>Widgetize dashboards</h2>
<p>You can also display the full Piwik dashboard in your application or website in an IFRAME
(<a href='' rel='noreferrer' target='_blank' id='linkDashboardUrl'>see example</a>).
The date parameter can be set to a specific calendar date, "today", or "yesterday". The period parameter can be set to "day", "week", "month", or
"year".
The language parameter can be set to the language code of a translation, such as language=fr.
For example, for idSite=1 and date=yesterday, you can write: <span id='exportFullDashboard'></span>
</p>
<p>
<strong>&rsaquo; Widgetize the all websites dashboard in an IFRAME</strong> (<a href='' target='_blank' id='linkAllWebsitesDashboardUrl'>see example</a>)
<br />
You can also widgetize the all websites dashboard in an IFRAME (<a href='' rel='noreferrer' target='_blank' id='linkAllWebsitesDashboardUrl'>see example</a>)
<span id='exportAllWebsitesDashboard'></span>
</p>
<p><strong>&rsaquo; Select a report, and copy paste in your page the embed code below the widget:</strong>
<h2>Widgetize reports</h2>
<p>Select a report, and copy paste in your page the embed code below the widget:
<div id="widgetPreview"></div>

View file

@ -1,22 +0,0 @@
<html>
<body>
<p>This text is after the JS INCLUDE</p>
<h2>Test tag cloud in a JS include</h2>
<div style="width:500px;">
<script type="text/javascript" src="{{ url1 }}"></script>
<noscript>Powered by <a href="http://piwik.org">Piwik</a></noscript>
</div>
<p>This text is after the JS INCLUDE</p>
<h2>Test calling the API in Javascript</h2>
<p>using a javascript include. This is a dirty way (much better to ajax call the API!) but an interesting show case.</P>
<script type="text/javascript" src="{{ url2 }}"></script>
<noscript>Powered by <a href="http://piwik.org">Piwik</a></noscript>
<p>This text is after the JS INCLUDE 2</p>
</body>
</html>

View file

@ -1,27 +0,0 @@
<html>
<body>
<p>This text is after the JS INCLUDE</p>
<h2>Test table in a JS include</h2>
<script type="text/javascript" src="{{ url1 }}"></script>
<noscript>Powered by <a href="http://piwik.org">Piwik</a></noscript>
<p>This text is after the JS INCLUDE</p>
<h2>Test another table in a JS include</h2>
<script type="text/javascript" src="{{ url3 }}"></script>
<noscript>Powered by <a href="http://piwik.org">Piwik</a></noscript>
<p>This text is after the 2nd JS INCLUDE</p>
<h2>Test tag cloud in a JS include</h2>
<script type="text/javascript" src="{{ url2 }}"></script>
<noscript>Powered by <a href="http://piwik.org">Piwik</a></noscript>
<p>This text is after the JS INCLUDE</p>
</body>
</html>