Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit c56b217

Browse files
committed
ENH: refs #0339. Add piwik visitors world map widget on global statistics page
1 parent 863e108 commit c56b217

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

modules/statistics/views/index/index.phtml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ $this->headScript()->appendFile($this->moduleWebroot . '/public/js/jqplot/jqplot
2222
<link type="text/css" rel="stylesheet" href="<?php echo $this->coreWebroot?>/public/css/common/common.genericPage.css" />
2323
<div class="viewMain">
2424
<h3>Statistics</h3>
25-
25+
2626
<p> More information are available on <a target="_blank" href="<?php echo $this->piwikUrl?>">PIWIK</a></p>
2727
<img class="tabsLoading" alt="" src="<?php echo $this->coreWebroot?>/public/images/icons/loading.gif" />
2828
<div class="tabs" id='tabsGeneric'>
2929
<ul>
3030
<li><a href="#tabs-overview">Visitors Overview</a></li>
3131
<li><a href="#tabs-live">Live</a></li>
32+
<li><a href="#tabs-map">World Map</a></li>
3233
<li><a href="#tabs-configuration">Visitors Configuration</a></li>
3334
<li><a href="#tabs-referrers">Referrers</a></li>
3435
<li><a href="#tabs-errors">Errors</a></li>
@@ -40,23 +41,26 @@ $this->headScript()->appendFile($this->moduleWebroot . '/public/js/jqplot/jqplot
4041
</div>
4142
<div id="tabs-live">
4243
<div id="widgetIframeLive"><iframe width="100%" height="650" src="<?php echo $this->piwikUrl?>/index.php?module=Widgetize&action=iframe&moduleToWidgetize=Live&actionToWidgetize=widget&idSite=<?php echo $this->piwikId?>&language=en&period=day&date=today&disableLink=1&widget=1&token_auth=<?php echo $this->piwikKey?>" scrolling="yes" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>
43-
</div>
44+
</div>
45+
<div id="tabs-map">
46+
<div id="widgetIframeMap"><iframe width="100%" height="650" src="<?php echo $this->piwikUrl?>/index.php?module=Widgetize&action=iframe&moduleToWidgetize=UserCountryMap&actionToWidgetize=worldMap&idSite=1&period=week&date=today&disableLink=1&widget=1" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>
47+
</div>
4448
<div id="tabs-configuration">
4549
<div id="widgetIframeConfiguration"><iframe width="100%" height="650" src="<?php echo $this->piwikUrl?>/index.php?module=Widgetize&action=iframe&moduleToWidgetize=UserSettings&actionToWidgetize=getConfiguration&idSite=<?php echo $this->piwikId?>&language=en&period=day&date=today&disableLink=1&widget=1&token_auth=<?php echo $this->piwikKey?>" scrolling="yes" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>
46-
</div>
50+
</div>
4751
<div id="tabs-referrers">
4852
<div id="widgetIframeRef"><iframe width="100%" height="650" src="<?php echo $this->piwikUrl?>/index.php?module=Widgetize&action=iframe&moduleToWidgetize=Referers&actionToWidgetize=getRefererType&idSite=<?php echo $this->piwikId?>&language=en&period=day&date=today&disableLink=1&widget=1&token_auth=<?php echo $this->piwikKey?>" scrolling="yes" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>
49-
</div>
53+
</div>
5054
<div id="tabs-errors">
5155
<div id="chartErrors" style="height:450px;width:800px; "></div>
52-
</div>
56+
</div>
5357
<div id="tabs-assetstores">
5458
<div id="chartAssetstore" ></div>
55-
</div>
59+
</div>
5660
</div>
5761

5862
</div>
5963
<div class="viewSideBar">
60-
61-
64+
65+
6266
</div>

0 commit comments

Comments
 (0)