app/Plugin/MGSocialButton/Resource/template/social_button.twig line 1

Open in your IDE?
  1. <script async="async" defer="defer" src="https://d.line-scdn.net/r/web/social-plugin/js/thirdparty/loader.min.js"></script>
  2. <script>
  3.     $(function () {
  4.         var current_URL = window.location.origin + window.location.pathname;
  5.         var current_title = document.title;
  6.         var encoded_current_URL = encodeURI(current_URL);
  7.         var add_html_twitter = '<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-show-count="false" data-lang="ja" data-size="large">ツイートする</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"><\/script>';
  8.         var add_html_facebook = '<iframe src="https://www.facebook.com/plugins/share_button.php?href=' + encoded_current_URL + '&layout=button&size=large&mobile_iframe=true&width=75&height=28&appId" width="75" height="28" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe>';
  9.         var add_html_line = '<div class="line-it-button" data-lang="ja" data-type="share-c" data-url="' + location.href + '" style="display: none;"></div>';
  10.         var add_html = '<div><span class="mg_socialbutton_1">' + add_html_twitter + '</span>' + '<span class="mg_socialbutton_2">' + add_html_facebook + '</span>' + '<span class="mg_socialbutton_3">' + add_html_line + '</span></div>';
  11.         $('.ec-productRole__description').eq(0).before(add_html);
  12.         LineIt.loadButton();
  13.     });
  14. </script>
  15. <style>
  16.     .mg_socialbutton_1,
  17.     .mg_socialbutton_2,
  18.     .mg_socialbutton_3 {
  19.         display: inline-block;
  20.         margin: 5px 10px 5px 5px;
  21.     }
  22. </style>