<div class='ads'>
<%= ad = [{:image => 'sotm-birmingham-ad.png',
:title => 'State of the Map Birmingham',
- :href =>'http://stateofthemap.org/'},
- {:image => 'donate-ad.png',
- :title => 'Server Donation Drive',
- :href =>'http://donate.openstreetmap.org/'}].sample
+ :href =>'http://stateofthemap.org/'}].sample
link_to ad[:href], :title => ad[:title] do
image_tag ad[:image], :class => :ad
<%= yield %>
</div>
</div>
- <% if defined?(PIWIK_LOCATION) and defined?(PIWIK_SITE) -%>
- <noscript><p><img src="<%= request.protocol %><%= PIWIK_LOCATION %>/piwik.php?idsite=<%= PIWIK_SITE %>" style="border:0" alt="" /></p></noscript>
+ <% if defined?(PIWIK) -%>
+ <noscript><p><img src="<%= request.protocol %><%= PIWIK['location'] %>/piwik.php?idsite=<%= PIWIK['site'] %>" style="border:0" alt="" /></p></noscript>
<% end -%>
</body>
</html>