Skip to content
Browse files

Maybe widgets sometimes

  • Loading branch information...
1 parent 3bbd1b2 commit e74767eed2113e26d84b3a41e02ff12caf88ddf6 Akron committed Mar 5, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/Mojolicious/Plugin/Piwik.pm
View
9 lib/Mojolicious/Plugin/Piwik.pm
@@ -266,6 +266,15 @@ SCRIPTTAG
Mojo::IOLoop->start unless Mojo::IOLoop->is_running;
};
});
+
+
+ $mojo->helper(
+ piwik_widget => sub {
+ my $c = shift;
+ # http://piwik.org/docs/embed-piwik-report/
+ # <div id="widgetIframe"><iframe width="100%" height="350" src="http://grimms-abenteuer.de/piwik/index.php?module=Widgetize&action=iframe&columns[]=nb_visits&widget=1&moduleToWidgetize=VisitsSummary&actionToWidgetize=getEvolutionGraph&idSite=3&period=range&date=last30&disableLink=1&widget=1" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>
+ }
+ );
};
sub _treat_response {

0 comments on commit e74767e

Please sign in to comment.
Something went wrong with that request. Please try again.