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

piwikDownloads.tpl « templates « ExamplePlugin « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 910a81f213b321c497ae1f040d05f07a60d7599e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<div style="padding:1.5em;text-align:center">
	{"ExamplePlugin_PiwikForumReceivedVisits"|translate:$prettyDate:'<b class="piwikDownloadCount_cnt" >...</b>'}
</div>
{* 
 * 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')
				+"&token_auth=anonymous&format=json",
		dataType: 'jsonp', 
		jsonp: 'callback',
		success: function(data) {
			$('.piwikDownloadCount_cnt').html(data.value);
		}
	});
{/literal}
</script>