diff --git a/plugins/Widgetize/Controller.php b/plugins/Widgetize/Controller.php index 8cd3b7c9026eb8678dfb564df39ac6fd477bd32d..35e81eee39ea653cefe2fee0bd31f39bfa66dd19 100644 --- a/plugins/Widgetize/Controller.php +++ b/plugins/Widgetize/Controller.php @@ -41,15 +41,6 @@ class Piwik_Widgetize_Controller extends Piwik_Controller echo $view->render(); } - function testClearspring() - { - $view = Piwik_View::factory('test_widget'); - $view->url1 = Piwik_Url::getCurrentUrlWithoutQueryString().'?module=Widgetize&action=iframe&moduleToWidgetize=Referers&actionToWidgetize=getKeywords&idSite=1&period=day&date=yesterday&filter_limit=5&token_auth='.Piwik::getCurrentUserTokenAuth(); - $view->url2 = Piwik_Url::getCurrentUrlWithoutQueryString().'?module=Widgetize&action=iframe&moduleToWidgetize=VisitTime&actionToWidgetize=getVisitInformationPerServerTime&idSite=1&period=day&date=yesterday&viewDataTable=graphVerticalBar&show_footer=0&token_auth='.Piwik::getCurrentUserTokenAuth(); - $view->url3 = Piwik_Url::getCurrentUrlWithoutQueryString().'?module=Widgetize&action=iframe&moduleToWidgetize=Referers&actionToWidgetize=getKeywords&idSite=1&period=day&date=yesterday&viewDataTable=cloud&show_footer=1&filter_limit=15&show_search=false&token_auth='.Piwik::getCurrentUserTokenAuth(); - echo $view->render(); - } - function js() { $controllerName = Piwik_Common::getRequestVar('moduleToWidgetize'); diff --git a/plugins/Widgetize/templates/index.tpl b/plugins/Widgetize/templates/index.tpl index b5f48d230207a6e43ff12e89a2b50cea0732392b..c0ce45a0a0a21923b5cafb5bff5edda9c357b285 100644 --- a/plugins/Widgetize/templates/index.tpl +++ b/plugins/Widgetize/templates/index.tpl @@ -17,9 +17,6 @@ <script type="text/javascript" src="plugins/Dashboard/templates/widgetMenu.js"></script> <script type="text/javascript" src="plugins/Widgetize/templates/widgetize.js"></script> -<!-- - <script src="http://cdn.clearspring.com/launchpad/v2/standalone.js" type="text/javascript"></script> ---> {literal} <style> diff --git a/plugins/Widgetize/templates/widgetize.js b/plugins/Widgetize/templates/widgetize.js index 726c0e2d56a7acb53671a8c389f8636b8e24359f..5f8a3c368db35b91ab60486f1782befb6bcead89 100644 --- a/plugins/Widgetize/templates/widgetize.js +++ b/plugins/Widgetize/templates/widgetize.js @@ -86,29 +86,7 @@ function widgetize() ); }); - // 0.5: Removing launchpad feature as it doesn't seem to work well despite us contacting Clearspring - if(false) { - $(exportButtonsElement).append( - '<div id="embedThisWidgetEverywhere">'+ - '<div id="exportThisWidget">'+ - '<label for="flashEmbed">› Export anywhere!</label>'+ - '<img src="http://cdn.clearspring.com/launchpad/static/cs_button_share1.gif" />'+ - '</div>'+ - '<div id="exportThisWidgetMenu"></div>'+ - '</div>' - ); - // Call clearspring - $Launchpad.ShowButton({ - actionElement : "exportThisWidget", - targetElement : "exportThisWidgetMenu", - userId : "4797da88692e4fe9", - widgetName : widgetName + " - Piwik", - source : "iframeDivToExport" - }); - } - // We then replace the div iframeDivToExport with the actual Iframe html - // Clearspring will then build a widget that has the same html as this div $('#iframeDivToExport') .html(widgetIframeHtml);