add icons for Character groups
This commit is contained in:
commit
2d9a41a5fe
3461 changed files with 594457 additions and 0 deletions
22
www/analytics/plugins/Widgetize/templates/iframe.twig
Normal file
22
www/analytics/plugins/Widgetize/templates/iframe.twig
Normal file
|
|
@ -0,0 +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]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
{% 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"/>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body ng-app="app">
|
||||
<div class="widget">
|
||||
{{ content|raw }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
{{ content|raw }}
|
||||
69
www/analytics/plugins/Widgetize/templates/index.twig
Normal file
69
www/analytics/plugins/Widgetize/templates/index.twig
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{% extends 'dashboard.twig' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
|
||||
<div class="pageWrap">
|
||||
<div class="top_controls">
|
||||
{% include "@CoreHome/_siteSelectHeader.twig" %}
|
||||
{% include "@CoreHome/_periodSelect.twig" %}
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var widgetized = new widgetize();
|
||||
var urlPath = document.location.protocol + '//' + document.location.hostname + (document.location.port == '' ? '' : (':' + document.location.port)) + document.location.pathname;
|
||||
var dashboardUrl = urlPath + '?module=Widgetize&action=iframe&moduleToWidgetize=Dashboard&actionToWidgetize=index&idSite=' + piwik.idSite + '&period=week&date=yesterday';
|
||||
$('#exportFullDashboard').html(
|
||||
widgetized.getInputFormWithHtml('dashboardEmbed', '<iframe src="' + dashboardUrl + '" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%"></iframe>')
|
||||
);
|
||||
$('#linkDashboardUrl').attr('href', dashboardUrl);
|
||||
|
||||
var allWebsitesDashboardUrl = urlPath + '?module=Widgetize&action=iframe&moduleToWidgetize=MultiSites&actionToWidgetize=standalone&idSite=' + piwik.idSite + '&period=week&date=yesterday';
|
||||
$('#exportAllWebsitesDashboard').html(
|
||||
widgetized.getInputFormWithHtml('allWebsitesDashboardEmbed', '<iframe src="' + allWebsitesDashboardUrl + '" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%"></iframe>')
|
||||
);
|
||||
$('#linkAllWebsitesDashboardUrl').attr('href', allWebsitesDashboardUrl);
|
||||
$('#widgetPreview').widgetPreview({
|
||||
onPreviewLoaded: widgetized.callbackAddExportButtonsUnderWidget
|
||||
});
|
||||
broadcast.init();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<div class="widgetize">
|
||||
<p>With Piwik, you can export your Web Analytics reports on your blog, website, or intranet dashboard... in one click.
|
||||
|
||||
<p>
|
||||
<strong>› 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>.
|
||||
<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.
|
||||
</p>
|
||||
|
||||
<p><strong>› 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>).
|
||||
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>› Widgetize the all websites dashboard in an IFRAME</strong> (<a href='' target='_blank' id='linkAllWebsitesDashboardUrl'>see example</a>)
|
||||
<span id='exportAllWebsitesDashboard'></span>
|
||||
</p>
|
||||
|
||||
<p><strong>› Select a report, and copy paste in your page the embed code below the widget:</strong>
|
||||
|
||||
<div id="widgetPreview"></div>
|
||||
|
||||
<div id='iframeDivToExport' style='display:none;'></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include "@Dashboard/_widgetFactoryTemplate.twig" %}
|
||||
|
||||
{% endblock %}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<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>
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue