diff --git a/LEGALNOTICE b/LEGALNOTICE index 6702ccb127667f97852011d994d75cf75733d551..be17b77d20554757fe89ba1b74ed620b0bc4771a 100644 --- a/LEGALNOTICE +++ b/LEGALNOTICE @@ -40,7 +40,8 @@ CREDITS For detailed contribution history, refer to the source, tickets, patches, and Git revision history, available at - http://dev.piwik.org/trac/. + http://dev.piwik.org/trac/ + https://github.com/piwik/piwik SEPARATELY LICENSED COMPONENTS AND LIBRARIES @@ -99,10 +100,14 @@ THIRD-PARTY COMPONENTS AND LIBRARIES Link: http://plugins.jquery.com/project/ScrollTo License: Dual licensed: MIT or GPL - Name: Tooltip + Name: jquery Tooltip Link: http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ License: Dual licensed: MIT or GPL + Name: jquery placeholder + Link: http://mths.be/placeholder + License: Dual licensed: MIT or GPL + Name: json2.js Link: http://json.org/ License: Public domain diff --git a/plugins/API/css/styles.css b/plugins/API/css/styles.css index b62e0c822e24d4be0680332df5671d4dfd282cfe..2b2f547da6807e1f4c99e5412d03eaecacb0efae 100644 --- a/plugins/API/css/styles.css +++ b/plugins/API/css/styles.css @@ -1,4 +1,5 @@ -#token_auth { + +#token_auth { background-color:#E8FFE9; border:1px solid #00CC3A; margin: 0 0 16px 8px; diff --git a/plugins/UserCountry/Controller.php b/plugins/UserCountry/Controller.php index 037817d21dc06afb42ae65dc40196e88c50fc16f..07d5e24987787afff8b951c95743f0b39be89d26 100644 --- a/plugins/UserCountry/Controller.php +++ b/plugins/UserCountry/Controller.php @@ -26,7 +26,6 @@ class Piwik_UserCountry_Controller extends Piwik_Controller_Admin $view->dataTableContinent = $this->getContinent(true); $view->dataTableRegion = $this->getRegion(true); $view->dataTableCity = $this->getCity(true); - $view->visitorMap = Piwik_FrontController::getInstance()->fetchDispatch('UserCountryMap', 'visitorMap'); echo $view->render(); } diff --git a/plugins/UserCountry/templates/index.tpl b/plugins/UserCountry/templates/index.tpl index f443dd19d7ace4186ea39397822c167ecb9a7daf..ab29fa57ef200eb846f32bdad60dfb8e8d3be819 100644 --- a/plugins/UserCountry/templates/index.tpl +++ b/plugins/UserCountry/templates/index.tpl @@ -2,27 +2,28 @@ <div id="leftcolumn"> {postEvent name="template_leftColumnUserCountry"} -<h2>{'UserCountry_Continent'|translate}</h2> -{$dataTableContinent} + <h2>{'UserCountry_Continent'|translate}</h2> + {$dataTableContinent} -<div class="sparkline"> -{sparkline src=$urlSparklineCountries} -{'UserCountry_DistinctCountries'|translate:"<strong>$numberDistinctCountries</strong>"} -</div> + <div class="sparkline"> + {sparkline src=$urlSparklineCountries} + {'UserCountry_DistinctCountries'|translate:"<strong>$numberDistinctCountries</strong>"} + </div> + +{postEvent name="template_footerUserCountry"} </div> <div id="rightcolumn"> -<h2>{'UserCountry_Country'|translate}</h2> -{$dataTableCountry} + <h2>{'UserCountry_Country'|translate}</h2> + {$dataTableCountry} -<h2>{'UserCountry_Region'|translate}</h2> -{$dataTableRegion} + <h2>{'UserCountry_Region'|translate}</h2> + {$dataTableRegion} -<h2>{'UserCountry_City'|translate}</h2> -{$dataTableCity} + <h2>{'UserCountry_City'|translate}</h2> + {$dataTableCity} </div> -{postEvent name="template_footerUserCountry"} diff --git a/plugins/UserCountryMap/UserCountryMap.php b/plugins/UserCountryMap/UserCountryMap.php index 38c4e291cf36e6b1b99702e2a5dc96c29e5bd306..ad536bea20a7cf4b795a2af09788ace3294dbd7a 100644 --- a/plugins/UserCountryMap/UserCountryMap.php +++ b/plugins/UserCountryMap/UserCountryMap.php @@ -19,7 +19,7 @@ class Piwik_UserCountryMap extends Piwik_Plugin { return array( 'name' => 'User Country Map', - 'description' => 'This plugin provides the widgets Visitor Map and Real-time Map.', + 'description' => 'This plugin provides the widgets Visitor Map and Real-time Map. Note: Requires the UserCountry plugin enabled.', 'author' => 'Piwik', 'author_homepage' => 'http://piwik.org/', 'version' => Piwik_Version::VERSION diff --git a/plugins/UserCountryMap/js/visitor-map.js b/plugins/UserCountryMap/js/visitor-map.js index 7a6cedd508088e64f987476eb9c93e4e2f10d090..34b1656706199458ded1b15362f4941f91469f75 100644 --- a/plugins/UserCountryMap/js/visitor-map.js +++ b/plugins/UserCountryMap/js/visitor-map.js @@ -255,7 +255,7 @@ // handle window resizes $(window).off('resize').resize(onResizeLazy); - // enable mertic changes + // enable metric changes $$('.userCountryMapSelectMetrics').off('change').change(function() { updateState(self.lastSelected); }); @@ -284,6 +284,7 @@ })($$('.UserCountryMap-btn-region')); // add loading indicator overlay + var bl = $('<div id="UserCountryMap-black"></div>'); bl.hide(); $$('.UserCountryMap_map').append(bl); diff --git a/plugins/UserCountryMap/templates/realtime-map.tpl b/plugins/UserCountryMap/templates/realtime-map.tpl index d4c2827f47d086fa1da59f8ced82feb5510bc50b..355f36518931e4461f758e24b8a34a50d840d59e 100644 --- a/plugins/UserCountryMap/templates/realtime-map.tpl +++ b/plugins/UserCountryMap/templates/realtime-map.tpl @@ -129,15 +129,19 @@ {* If the map is loaded from the menu, do a few tweaks to clean up the display *} {if $mapIsStandaloneNotWidget} - $('.top_controls').hide(); - $('ul.nav').on('piwikSwitchPage', function(event, item) {ldelim} - var clickedMenuIsNotMap = ($(item).text() != "{'UserCountryMap_RealTimeMap'|translate|escape:'js'}"); - if(clickedMenuIsNotMap) {ldelim} - $('.top_controls').show(); - {rdelim} - {rdelim}); - $('.realTimeMap_overlay').css('top', '0px'); - $('.realTimeMap_datetime').css('top', '20px'); + function initStandaloneMap() {ldelim} + $('.top_controls').hide(); + $('ul.nav').on('piwikSwitchPage', function(event, item) {ldelim} + var clickedMenuIsNotMap = ($(item).text() != "{'UserCountryMap_RealTimeMap'|translate|escape:'js'}"); + if(clickedMenuIsNotMap) {ldelim} + $('.top_controls').show(); + {rdelim} + {rdelim}); + $('.realTimeMap_overlay').css('top', '0px'); + $('.realTimeMap_datetime').css('top', '20px'); + {rdelim} + + initStandaloneMap(); {/if} {literal}