diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-02-20 12:17:52 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-02-20 12:17:52 +0400 |
commit | 803944c16e13dae098f2a3309f345454a6fc4e44 (patch) | |
tree | 9dd2d2a45e5e6df12eda6adb084b2ab614b7dfa8 /plugins/Widgetize | |
parent | 8bc5c1a9aeac6f42255893b54f6bdedfe9d48955 (diff) |
Removing Donate top link, Minor refactorings & i18n cleanups
Diffstat (limited to 'plugins/Widgetize')
-rw-r--r-- | plugins/Widgetize/templates/index.tpl | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/plugins/Widgetize/templates/index.tpl b/plugins/Widgetize/templates/index.tpl index 0b55c48cb5..854e4e92da 100644 --- a/plugins/Widgetize/templates/index.tpl +++ b/plugins/Widgetize/templates/index.tpl @@ -1,18 +1,19 @@ {assign var=showSitesSelection value=true} {assign var=showPeriodSelection value=true} {include file="CoreHome/templates/header.tpl"} + {loadJavascriptTranslations plugins='Dashboard'} {literal} <style type="text/css"> -.widgetize{ - width:100%; - padding:15px 15px 0 15px; - font-size:13px; +.widgetize{ + width:100%; + padding:15px 15px 0 15px; + font-size:13px; } -.widgetize p{ - padding: 0 0 20px 0; +.widgetize p{ + padding: 0 0 20px 0; } .menu { display: inline; @@ -58,7 +59,7 @@ $(document).ready( function() { 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>') @@ -77,13 +78,13 @@ $(document).ready( function() { </div> <div class="widgetize"> - <p>With Piwik, you can export your Web Analytics reports on your blog, website, or intranet dashboard... in one click. - <p><b>› Widget authentication:</b> 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='{url module=API action=listAllAPI}' target='_blank'>API page</a>) in the widget URL. + <p>With Piwik, you can export your Web Analytics reports on your blog, website, or intranet dashboard... in one click. + <p><b>› Widget authentication:</b> 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='{url module=API action=listAllAPI}' target='_blank'>API page</a>) in the widget URL. </p> - <p><b>› Widgetize the full dashboard:</b> 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>). + <p><b>› Widgetize the full dashboard:</b> 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> @@ -91,10 +92,11 @@ $(document).ready( function() { <p><b>› Widgetize the all websites dashboard in an IFRAME</b> (<a href='' target='_blank' id='linkAllWebsitesDashboardUrl'>see example</a>) <span id='exportAllWebsitesDashboard'></span> </p> <p> <b>› Select a report, and copy paste in your page the embed code below the widget:</b> - + <div id="widgetPreview"></div> - + <div id='iframeDivToExport' style='display:none;'></div> </div> -{include file="CoreHome/templates/piwik_tag.tpl"} + +{include file="CoreHome/templates/footer.tpl"}
\ No newline at end of file |