diff --git a/core/API/DocumentationGenerator.php b/core/API/DocumentationGenerator.php index d2e701df98c62a728dfff04a1034761fb000a0a8..fba55a112ebc77ca98ea81b107b5260e859ef58a 100644 --- a/core/API/DocumentationGenerator.php +++ b/core/API/DocumentationGenerator.php @@ -85,6 +85,7 @@ class Piwik_API_DocumentationGenerator <a target=_blank href='$exampleUrl&format=PHP&prettyDisplay=true$token_auth'>PHP</a>, <a target=_blank href='$exampleUrl&format=JSON$token_auth'>Json</a>, <a target=_blank href='$exampleUrl&format=Csv$token_auth'>Csv</a>, + <a target=_blank href='$exampleUrl&format=Tsv$token_auth'>Tsv (Excel)</a>, <a target=_blank href='$exampleUrl&format=Html$token_auth'>Basic html</a> $lastNUrls ]"; diff --git a/misc/iframeWidget_localhost.htm b/misc/iframeWidget_localhost.php similarity index 57% rename from misc/iframeWidget_localhost.htm rename to misc/iframeWidget_localhost.php index 615888d9a140459c0139ffb5a056e9e0ed61ab58..970b65261e5b0a82aeb4f198cfaef3b07825a751 100644 --- a/misc/iframeWidget_localhost.htm +++ b/misc/iframeWidget_localhost.php @@ -1,7 +1,12 @@ +<?php +$date = date('Y-m-d'); +$period = 'month'; +$idSite = 1; +?> <html> <body> <h3 style="color:#143974">Embedding the Piwik Country widget in an Iframe</h3> <div id="widgetIframe"><iframe width="500" height="350" -src="http://localhost/trunk/index.php?module=Widgetize&action=iframe&moduleToWidgetize=UserCountry&actionToWidgetize=getCountry&idSite=1&period=day&date=2008-11-17&disableLink=1" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></div> +src="http://localhost/trunk/index.php?module=Widgetize&action=iframe&moduleToWidgetize=UserCountry&actionToWidgetize=getCountry&idSite=<?=$idSite;?>&period=<?=$period;?>&date=<?=$date;?>&disableLink=1" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></div> </body></html> diff --git a/tests/README.txt b/tests/README.txt index 1003593aa9d7efcae82313f3872277a8cdd8aca9..c1660bc8f29bfaf2c55fc3868c0e35d7ccd7d09c 100644 --- a/tests/README.txt +++ b/tests/README.txt @@ -9,6 +9,8 @@ http://dev.piwik.org/svn/trunk/tests/core/DataTable.test.php Piwik tests use the Simpletest Unit Testing framework. +piwik.js is unit tested and you can run tests in piwik/tests/javascript/ + If you want to help, we are always looking to improve the Piwik code coverage! Please contact us at hello@piwik.org - + \ No newline at end of file