Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2015-01-16 13:54:47 +0300
committersgiehl <stefan@piwik.org>2015-01-16 13:54:47 +0300
commita31a25e71b60eb26fac907b52b8c26465c855c0b (patch)
treec3d69399914da3d885c8cd901ee83a5a0b7c40ee /plugins/Widgetize
parentcc724a361217a8065b87b8622b34a454cfa75faa (diff)
parent082ea137aea749180946c3cb6c2a1fa3d15a03ef (diff)
Merge branch 'master' into move_language_report
Conflicts: tests/PHPUnit/UI
Diffstat (limited to 'plugins/Widgetize')
-rw-r--r--plugins/Widgetize/stylesheets/widgetize.less5
-rw-r--r--plugins/Widgetize/templates/index.twig31
2 files changed, 22 insertions, 14 deletions
diff --git a/plugins/Widgetize/stylesheets/widgetize.less b/plugins/Widgetize/stylesheets/widgetize.less
index 47b49ba39a..dafad78d90 100644
--- a/plugins/Widgetize/stylesheets/widgetize.less
+++ b/plugins/Widgetize/stylesheets/widgetize.less
@@ -1,7 +1,10 @@
.widgetize {
width: 100%;
- padding: 15px 15px 0 15px;
font-size: 13px;
+
+ .top_controls {
+ padding-bottom: 16px;
+ }
}
.widgetize p {
diff --git a/plugins/Widgetize/templates/index.twig b/plugins/Widgetize/templates/index.twig
index 4763473a62..f5cbbcb10f 100644
--- a/plugins/Widgetize/templates/index.twig
+++ b/plugins/Widgetize/templates/index.twig
@@ -1,12 +1,8 @@
-{% extends 'dashboard.twig' %}
+{% extends 'user.twig' %}
{% block content %}
-<div class="pageWrap">
- <div class="top_controls">
- {% include "@CoreHome/_siteSelectHeader.twig" %}
- {% include "@CoreHome/_periodSelect.twig" %}
- </div>
+<div>
<script type="text/javascript">
$(function () {
@@ -30,31 +26,40 @@
});
</script>
+<h2 piwik-enriched-headline>{{ 'General_Widgets'|translate }}</h2>
+
+{% include "@CoreHome/_siteSelectHeader.twig" %}
+
<div class="widgetize">
<p>With Piwik, you can export your Web Analytics reports on your blog, website, or intranet dashboard... in one click.
+ <h2>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
+ 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'}) }}' 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
+ <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='' rel='noreferrer' 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 class="top_controls">
+ {% include "@CoreHome/_periodSelect.twig" %}
+ </div>
<div id="widgetPreview"></div>