diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-01-12 03:10:52 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-01-15 05:59:27 +0300 |
commit | 2d3c709c6129241bea360fb83383327e1fea7154 (patch) | |
tree | ef35c98317457a8e9acf490edc1f1e1daa55243b /plugins/Widgetize/templates/index.twig | |
parent | 11b56513c260533c89fbef709817944227189e93 (diff) |
show a menu in the user area, lots of improvements to be more consistent
Diffstat (limited to 'plugins/Widgetize/templates/index.twig')
-rw-r--r-- | plugins/Widgetize/templates/index.twig | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/plugins/Widgetize/templates/index.twig b/plugins/Widgetize/templates/index.twig index 4763473a62..15df75bc2a 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,18 +26,24 @@ }); </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>› 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>› Widgetize the full dashboard:</strong> You can also display the full Piwik dashboard in your application or website in an IFRAME + <h2>Widgetize the all websites dashboard</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". @@ -54,8 +56,13 @@ <span id='exportAllWebsitesDashboard'></span> </p> + <h2>Widgetize a report</h2> <p><strong>› Select a report, and copy paste in your page the embed code below the widget:</strong> + <div class="top_controls"> + {% include "@CoreHome/_periodSelect.twig" %} + </div> + <div id="widgetPreview"></div> <div id='iframeDivToExport' style='display:none;'></div> |