diff options
author | Fabian Becker <halfdan@xnorfz.de> | 2013-04-07 00:31:12 +0400 |
---|---|---|
committer | Fabian Becker <halfdan@xnorfz.de> | 2013-04-07 00:31:12 +0400 |
commit | cfe31965be34c784df63a0052549b9590f965f01 (patch) | |
tree | 338e3dafc004eaf6683f68f83248d850f0cb764f /plugins/ExamplePlugin/templates | |
parent | 4fb0de094ff0078c408aa0b120d971eba56e0498 (diff) |
Converted Example Plugin (should be REFACTORED - horrible example code)
Diffstat (limited to 'plugins/ExamplePlugin/templates')
-rw-r--r-- | plugins/ExamplePlugin/templates/piwikDownloads.twig (renamed from plugins/ExamplePlugin/templates/piwikDownloads.tpl) | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/ExamplePlugin/templates/piwikDownloads.tpl b/plugins/ExamplePlugin/templates/piwikDownloads.twig index 22b10df4b3..3a87d426aa 100644 --- a/plugins/ExamplePlugin/templates/piwikDownloads.tpl +++ b/plugins/ExamplePlugin/templates/piwikDownloads.twig @@ -1,11 +1,10 @@ <div style="padding:1.5em;text-align:center"> - {"ExamplePlugin_PiwikForumReceivedVisits"|translate:$prettyDate:'<b class="piwikDownloadCount_cnt" >...</b>'} + {{ "ExamplePlugin_PiwikForumReceivedVisits"|translate(prettyDate,'<b class="piwikDownloadCount_cnt" >...</b>')|raw }} </div> -{* - * loading piwik download stats from demo.piwik.org - *} +{# + # loading piwik download stats from demo.piwik.org + #} <script type="text/javascript"> - {literal} $.ajax({ url: "http://demo.piwik.org/?module=API&method=VisitsSummary.getVisits" + "&idSite=7&period=" + piwik.period + "&date=" + broadcast.getValueFromUrl('date') @@ -16,5 +15,4 @@ $('.piwikDownloadCount_cnt').html(data.value); } }); - {/literal} </script> |