Permalink
Browse files

Remove social buttons

  • Loading branch information...
JasonBarnabe committed Nov 5, 2017
1 parent f8a17c4 commit 6dad8483562a2bbc35e7a57b613cb9ed779cfdeb
Showing with 1 addition and 163 deletions.
  1. +1 −3 app/assets/javascripts/application.js
  2. +0 −9 app/assets/stylesheets/application.css.erb
  3. +0 −55 app/assets/stylesheets/socialshareprivacy.css.erb
  4. +0 −7 app/helpers/application_helper.rb
  5. +0 −3 app/views/layouts/base.html.erb
  6. +0 −42 app/views/scripts/show.html.erb
  7. +0 −2 config/locales/en.yml
  8. BIN vendor/assets/images/jquery-socialshareprivacy/box_fbshare.png
  9. BIN vendor/assets/images/jquery-socialshareprivacy/box_mail.png
  10. BIN vendor/assets/images/jquery-socialshareprivacy/box_tumblr.png
  11. BIN vendor/assets/images/jquery-socialshareprivacy/de/dummy_box_facebook.png
  12. BIN vendor/assets/images/jquery-socialshareprivacy/de/dummy_facebook.png
  13. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_box_buffer.png
  14. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_box_delicious.png
  15. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_box_disqus.png
  16. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_box_facebook.png
  17. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_box_flattr.png
  18. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_box_gplus.png
  19. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_box_hackernews.png
  20. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_box_linkedin.png
  21. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_box_pinterest.png
  22. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_box_reddit.png
  23. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_box_stumbleupon.png
  24. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_box_twitter.png
  25. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_box_xing.png
  26. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_buffer.png
  27. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_delicious.png
  28. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_disqus.png
  29. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_facebook.png
  30. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_flattr.png
  31. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_gplus.png
  32. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_gplus_alt.png
  33. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_hackernews.png
  34. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_linkedin.png
  35. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_pinterest.png
  36. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_reddit.png
  37. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_stumbleupon.png
  38. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_twitter.png
  39. BIN vendor/assets/images/jquery-socialshareprivacy/dummy_xing.png
  40. BIN vendor/assets/images/jquery-socialshareprivacy/es/dummy_box_facebook.png
  41. BIN vendor/assets/images/jquery-socialshareprivacy/es/dummy_facebook.png
  42. BIN vendor/assets/images/jquery-socialshareprivacy/fbshare.png
  43. BIN vendor/assets/images/jquery-socialshareprivacy/fr/dummy_box_facebook.png
  44. BIN vendor/assets/images/jquery-socialshareprivacy/fr/dummy_facebook.png
  45. BIN vendor/assets/images/jquery-socialshareprivacy/fr/dummy_twitter.png
  46. BIN vendor/assets/images/jquery-socialshareprivacy/mail.png
  47. BIN vendor/assets/images/jquery-socialshareprivacy/nl/dummy_box_facebook.png
  48. BIN vendor/assets/images/jquery-socialshareprivacy/nl/dummy_facebook.png
  49. BIN vendor/assets/images/jquery-socialshareprivacy/nl/dummy_twitter.png
  50. BIN vendor/assets/images/jquery-socialshareprivacy/pt/dummy_box_facebook.png
  51. BIN vendor/assets/images/jquery-socialshareprivacy/pt/dummy_box_twitter.png
  52. BIN vendor/assets/images/jquery-socialshareprivacy/pt/dummy_facebook.png
  53. BIN vendor/assets/images/jquery-socialshareprivacy/pt/dummy_twitter.png
  54. BIN vendor/assets/images/jquery-socialshareprivacy/ru/dummy_box_facebook.png
  55. BIN vendor/assets/images/jquery-socialshareprivacy/ru/dummy_facebook.png
  56. BIN vendor/assets/images/jquery-socialshareprivacy/settings.png
  57. BIN vendor/assets/images/jquery-socialshareprivacy/socialshareprivacy_info.png
  58. BIN vendor/assets/images/jquery-socialshareprivacy/socialshareprivacy_on_off.png
  59. BIN vendor/assets/images/jquery-socialshareprivacy/tumblr.png
  60. +0 −1 vendor/assets/javascripts/jquery-socialshareprivacy/jquery.socialshareprivacy.min.de.js
  61. +0 −1 vendor/assets/javascripts/jquery-socialshareprivacy/jquery.socialshareprivacy.min.es.js
  62. +0 −1 vendor/assets/javascripts/jquery-socialshareprivacy/jquery.socialshareprivacy.min.fr.js
  63. +0 −1 vendor/assets/javascripts/jquery-socialshareprivacy/jquery.socialshareprivacy.min.it.js
  64. +0 −2 vendor/assets/javascripts/jquery-socialshareprivacy/jquery.socialshareprivacy.min.js
  65. +0 −1 vendor/assets/javascripts/jquery-socialshareprivacy/jquery.socialshareprivacy.min.nl.js
  66. +0 −1 vendor/assets/javascripts/jquery-socialshareprivacy/jquery.socialshareprivacy.min.pl.js
  67. +0 −1 vendor/assets/javascripts/jquery-socialshareprivacy/jquery.socialshareprivacy.min.pt.js
  68. +0 −1 vendor/assets/javascripts/jquery-socialshareprivacy/jquery.socialshareprivacy.min.ru.js
  69. +0 −31 vendor/assets/javascripts/jquery-socialshareprivacy/localstorage.js
  70. +0 −1 vendor/assets/stylesheets/jquery.socialshareprivacy.min.css
@@ -13,8 +13,6 @@
//= require jquery
//= require jquery_ujs
//= require fancybox
//= require jquery-socialshareprivacy/jquery.socialshareprivacy.min.js
//= require jquery-socialshareprivacy/localstorage.js
//= require everything
//= require versioncheck
//= require recaptcha
//= require recaptcha
@@ -10,7 +10,6 @@
*
*= require_self
*= require fancybox
*= require jquery.socialshareprivacy.min.css
*= require_tree .
*/
@@ -700,14 +699,6 @@ a.self-link, a.self-link:visited {
text-decoration: underline;
}
.social_share_privacy_area.box li.settings_info {
/* Shrink a bit */
height: 20px;
width: 135px;
/* Show on separate line */
display: block;
}
pre, code, #code-container {
border-radius: 2px;
border: 1px solid #E6DDD6;

This file was deleted.

Oops, something went wrong.
@@ -173,13 +173,6 @@ def translate_keys(keys)
return h
end
def social_share_locale
return I18n.locale.to_s if ['de', 'es', 'fr', 'it', 'nl', 'pl', 'pt', 'ru'].include?(I18n.locale.to_s)
return 'pt' if I18n.locale.to_s == 'pt-BR'
return 'fr' if I18n.locale.to_s == 'fr-CA'
return nil
end
def current_url_with_params(p={})
r = params.except(:only_path, :protocol, :host, :subdomain, :domain, :tld_length, :subdomain, :port, :anchor, :trailing_slash, :script_name, :controller, :action, :format).merge(p)
r.permit!
@@ -5,9 +5,6 @@
<% if content_for?(:description) %><meta name="description" value="<%=content_for(:description)%>"><% end %>
<%= stylesheet_link_tag "application", media: "all" %>
<%= javascript_include_tag "application" %>
<% if !social_share_locale.nil? %>
<%= javascript_include_tag "jquery-socialshareprivacy/jquery.socialshareprivacy.min.#{social_share_locale}.js" %>
<% end %>
<%= csrf_meta_tags %>
<% if defined?(@bots) %>
<meta name="robots" content="<%=@bots%>">
@@ -139,45 +139,3 @@ if !localized_additional_info.nil? || !@script_version.screenshots.empty? %>
<% end %>
</div>
<% end %>
<% if @script.script_type_id != 2 %>
<div id="share">
<h3><%=t('common.share')%></h3>
<div id="social-buttons" lang="<%=params[:locale].sub('-', '_')%>"></div>
</div>
<script>
window.addEventListener("DOMContentLoaded", function() {
for (var i in $.fn.socialSharePrivacy.settings.services) {
$.fn.socialSharePrivacy.settings.services[i].status = false;
};
<% social_services = ['delicious', 'facebook', 'gplus', 'hackernews', 'mail', 'reddit', 'stumbleupon', 'tumblr', 'twitter']
social_services << 'flattr' if !@script.user.flattr_username.nil?
social_services.sort!
social_services.each do |service|
images = {dummy_line_img: "dummy_#{service}.png", dummy_box_img: "dummy_box_#{service}.png", line_img: "#{service}.png", box_img: "box_#{service}.png"}
images.each do |name, path| %>
if ($.fn.socialSharePrivacy.settings.services['<%=service%>']['<%=name%>']) {
<%# Check to see if it's a localized image %>
if ($.fn.socialSharePrivacy.settings.services['<%=service%>']['<%=name%>'].split('/').length == 3) {
$.fn.socialSharePrivacy.settings.services['<%=service%>']['<%=name%>'] = '<%=asset_path_if_exists("jquery-socialshareprivacy/#{social_share_locale ? "#{social_share_locale}/" : '/'}#{path}")%>';
} else {
$.fn.socialSharePrivacy.settings.services['<%=service%>']['<%=name%>'] = '<%=asset_path_if_exists("jquery-socialshareprivacy/#{path}")%>';
}
}<%
if service == 'flattr' %>
$.fn.socialSharePrivacy.settings.services['<%=service%>'].uid = '<%=j(@script.user.flattr_username)%>';
$.fn.socialSharePrivacy.settings.services['<%=service%>'].category = 'software';
<% end
end %>
$.fn.socialSharePrivacy.settings.services['<%=service%>'].status = true;
<% end %>
var socialButtons = $("#social-buttons");
socialButtons.on("socialshareprivacy:create", function() {
$(".social_share_privacy_area li:first-child").before($(".settings_info"));
});
socialButtons.socialSharePrivacy({css_path: null, layout: 'box', description: $('#script-description').val()});
});
</script>
<% end %>
View
@@ -950,8 +950,6 @@ en:
expander_show_less: "Show less"
# note denoting what are ads
advertisement_note: Advertisement
# heading for share section (facebook and twitter and such buttons)
share: Share
activerecord:
attributes:
user:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 6dad848

Please sign in to comment.