Commit 80071dbcbaa231abfaf73105b5adfb96c2636f0b

Authored by Aurélio A. Heckert
1 parent da22e331

Allow to place addthis buttons anywhere

Do not need to repeat the inclusion of addthis_widget.js

ActionItem2678
app/views/content_viewer/view_page.rhtml
... ... @@ -60,7 +60,6 @@
60 60 addthis_options = '<%= escape_javascript( NOOSFERO_CONF['addthis_options'] ) %>';
61 61 </script>
62 62 <a href="http://www.addthis.com/bookmark.php" id="bt_addThis" target="_blank" onmouseover="return addthis_open(this, '', '[URL]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><%= addthis_image_tag %></a>
63   -<script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
64 63 </div>
65 64 <% end %>
66 65  
... ...
app/views/layouts/application-ng.rhtml
... ... @@ -57,5 +57,8 @@
57 57 </div><!-- end id="theme-footer" -->
58 58 <%= noosfero_layout_features %>
59 59 <%= theme_javascript_ng %>
  60 + <% if NOOSFERO_CONF['addthis_enabled'] %>
  61 + <script src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
  62 + <% end %>
60 63 </body>
61 64 </html>
... ...