Commit 80071dbcbaa231abfaf73105b5adfb96c2636f0b
1 parent
da22e331
Exists in
master
and in
29 other branches
Allow to place addthis buttons anywhere
Do not need to repeat the inclusion of addthis_widget.js ActionItem2678
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
app/views/content_viewer/view_page.rhtml
@@ -60,7 +60,6 @@ | @@ -60,7 +60,6 @@ | ||
60 | addthis_options = '<%= escape_javascript( NOOSFERO_CONF['addthis_options'] ) %>'; | 60 | addthis_options = '<%= escape_javascript( NOOSFERO_CONF['addthis_options'] ) %>'; |
61 | </script> | 61 | </script> |
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> | 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 | </div> | 63 | </div> |
65 | <% end %> | 64 | <% end %> |
66 | 65 |
app/views/layouts/application-ng.rhtml
@@ -57,5 +57,8 @@ | @@ -57,5 +57,8 @@ | ||
57 | </div><!-- end id="theme-footer" --> | 57 | </div><!-- end id="theme-footer" --> |
58 | <%= noosfero_layout_features %> | 58 | <%= noosfero_layout_features %> |
59 | <%= theme_javascript_ng %> | 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 | </body> | 63 | </body> |
61 | </html> | 64 | </html> |