social-share-button 0.2.1 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +16 -13
  4. data/app/assets/images/social-share-button/delicious.svg +13 -0
  5. data/app/assets/images/social-share-button/douban.svg +8 -0
  6. data/app/assets/images/social-share-button/email.svg +8 -0
  7. data/app/assets/images/social-share-button/facebook.svg +8 -0
  8. data/app/assets/images/social-share-button/google_bookmark.svg +8 -0
  9. data/app/assets/images/social-share-button/google_plus.svg +10 -0
  10. data/app/assets/images/social-share-button/linkedin.svg +8 -0
  11. data/app/assets/images/social-share-button/pinterest.svg +8 -0
  12. data/app/assets/images/social-share-button/qq.svg +8 -0
  13. data/app/assets/images/social-share-button/tumblr.svg +8 -0
  14. data/app/assets/images/social-share-button/twitter.svg +8 -0
  15. data/app/assets/images/social-share-button/weibo.svg +10 -0
  16. data/app/assets/images/social-share-button/weichat.svg +8 -0
  17. data/app/assets/javascripts/social-share-button.coffee +26 -28
  18. data/app/assets/stylesheets/social-share-button.scss +18 -71
  19. data/lib/generators/social_share_button/templates/config/initializers/social_share_button.rb +1 -1
  20. data/lib/generators/social_share_button/templates/config/locales/social_share_button.en.yml +1 -5
  21. data/lib/generators/social_share_button/templates/config/locales/social_share_button.zh-CN.yml +2 -7
  22. data/lib/generators/social_share_button/templates/config/locales/social_share_button.zh-TW.yml +2 -7
  23. data/lib/social_share_button/config.rb +18 -6
  24. data/lib/social_share_button/helper.rb +6 -6
  25. data/lib/social_share_button/version.rb +1 -1
  26. metadata +16 -5
  27. data/app/assets/images/sprites/social-share-button.png +0 -0
  28. data/app/assets/images/sprites/social-share-button@2x.png +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9430e7b222b8e9d46ff2bc5e51ef3588f3af3e75
4
- data.tar.gz: affd382d1ee70767dc1096fcca7505c695100443
3
+ metadata.gz: d1644149eafb5a28d3eae91fbc569b71cc97bc45
4
+ data.tar.gz: 1e287381b3dc286ad8cd09a91b9fd183786d0139
5
5
  SHA512:
6
- metadata.gz: eb5d93022fec8d82aeb734d69985bdedd4cb213220ad621247698250aec2db67d8ea15548ce710b859940489453989b602cef4b9561bc947f2922de884429c6b
7
- data.tar.gz: 73c6c2f804623b0d35e6e4284e96e38b6e1061cfa42bd593408f0eb93c8e636bbb860e02fd5546e37dec9927aaad1facd838b330e5cd8ae4b28683c8eed00339
6
+ metadata.gz: 06b15d21872daf6320ee32aa26477886d0db13bf4f525621f3fc1ff05144d901691da74b5793c9d3791b054d2016f449f83fddc8836e9dea516bc75b3229630d
7
+ data.tar.gz: 8238c9887dc6033deb1df46234615fc81438ce836980e2e1c48a44031f6abce52b42a869c2f4cc252b356aa5cdfcc0eae73e6321f7aa3d404522d98abcd5c938
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ == 0.3.1
2
+
3
+ * New SVG icon, new style.
4
+ * Removed `tqq renren kaixin001 baidu plurk` support.
5
+ * Share with popup window.
6
+ * Add Weixin (Weichat).
7
+
1
8
  == 0.2.1
2
9
 
3
10
  * Allow for override of allowed sites in helper.
data/README.md CHANGED
@@ -12,21 +12,17 @@ This is a gem to helper you quick create a share feature in you Rails apps.
12
12
  * Google+
13
13
  * Weibo
14
14
  * QZone
15
- * Tencent Weibo
16
- * Renren
17
- * Hi Baidu
18
- * Kaixin001
19
15
  * Google Bookmark
20
16
  * Delicious
21
17
  * Tumblr
22
- * Plurk
23
18
  * Pinterest
24
19
  * Email
25
20
  * LinkedIn
21
+ * Weichat (Weixin)
26
22
 
27
23
  ## Screenshot
28
24
 
29
- <img src="http://l.ruby-china.org/photo/85fa930a43d622ba9653eb0f86df207c.png" width="220px" />
25
+ <img width="290" alt="2016-06-28 4 17 23" src="https://cloud.githubusercontent.com/assets/5518/16408538/d96a23a0-3d4b-11e6-8f28-d02aa4dee994.png">
30
26
 
31
27
  ## Install
32
28
 
@@ -36,6 +32,12 @@ In your `Gemfile`:
36
32
  gem 'social-share-button'
37
33
  ```
38
34
 
35
+ Old version for IE and lower browser support:
36
+
37
+ ```ruby
38
+ gem 'social-share-button', '0.2.1'
39
+ ```
40
+
39
41
  And install it:
40
42
 
41
43
  ```bash
@@ -49,7 +51,7 @@ You can config `config/initializers/social_share_button.rb` to choose which site
49
51
 
50
52
  ```ruby
51
53
  SocialShareButton.configure do |config|
52
- config.allow_sites = %w(twitter facebook google_plus weibo douban tqq renren qq kaixin001 baidu google_bookmark delicious tumblr plurk pinterest email linkedin)
54
+ config.allow_sites = %w(twitter facebook weibo)
53
55
  end
54
56
  ```
55
57
 
@@ -89,12 +91,6 @@ Apart from the default title, you can specify the title for the special social n
89
91
  <%= social_share_button_tag(@post.title, 'data-twitter-title' => 'TheTitleForTwitter') %>
90
92
  ```
91
93
 
92
- For Popup window use this custom popup attribute:
93
-
94
- ```erb
95
- <%= social_share_button_tag(@post.title, :popup => "true")
96
- ```
97
-
98
94
  And you can custom rel attribute:
99
95
 
100
96
  ```erb
@@ -131,6 +127,13 @@ Here are the mapping of attributes depending on you data-type parameter
131
127
  | | | data-source |
132
128
  </pre>
133
129
 
130
+ ## Weichat feature
131
+
132
+ You must include Weichat API JS file:
133
+
134
+ ```
135
+ <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
136
+ ```
134
137
 
135
138
  ## Demo
136
139
 
@@ -0,0 +1,13 @@
1
+ <svg width="256px" height="256px" viewBox="1899 111 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <desc>Delicious</desc>
3
+ <defs></defs>
4
+ <g id="delicious" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(1899.000000, 111.000000)">
5
+ <rect id="bg" fill="#0076E8" x="0" y="0" width="256" height="256" rx="40"></rect>
6
+ <g id="Group" transform="translate(128.000000, 129.000000) rotate(90.000000) translate(-128.000000, -129.000000) translate(38.000000, 39.000000)">
7
+ <polygon id="Shape" fill="#FFFFFF" points="0.239990234 90.0551489 90.0155647 90.0551489 90.0155647 179.830723 0.239990234 179.830723 0.239990234 90.0551489"></polygon>
8
+ <polygon id="Shape-Copy" fill-opacity="0.0656136775" fill="#000000" points="0.239990234 0.169276596 90.0079051 0.169276596 90.0079051 89.9528936 0.240373213 89.9528936 0.240373213 0.169276596"></polygon>
9
+ <polygon id="Shape-Copy-2" fill-opacity="0.0656136775" fill="#000000" points="90 90 179.767915 90 179.767915 179.783617 90.000383 179.783617 90.000383 90"></polygon>
10
+ <polygon id="Shape" fill="#FFFFFF" points="89.9961702 0.169276596 179.764085 0.169276596 179.764085 89.9528936 89.9965532 89.9528936 89.9965532 0.169276596"></polygon>
11
+ </g>
12
+ </g>
13
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="256px" height="256px" viewBox="1271 111 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <desc>Douban</desc>
3
+ <defs></defs>
4
+ <g id="douban" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(1271.000000, 111.000000)">
5
+ <rect id="bg" fill="#20982D" x="0" y="0" width="256" height="256" rx="40"></rect>
6
+ <path d="M209.287755,62.5836735 L47.8571429,62.5836735 L47.8571429,46 L209.270408,46 L209.270408,62.5836735 L209.287755,62.5836735 Z M213,209.095918 L43,209.095918 L43,192.304082 L93.8438776,192.304082 C87.6163265,178.6 81.0244898,166.769388 74.1030612,156.812245 L87.1653061,148.329592 L64.2673469,148.329592 L64.2673469,82.0642857 L193.432653,82.0642857 L193.432653,148.329592 L169.407143,148.329592 L182.469388,157.003061 C176.293878,170.707143 169.87551,182.468367 163.196939,192.304082 L213,192.304082 L213,209.095918 L213,209.095918 Z M175.322449,131.641837 L175.322449,99.1336735 L82.3081633,99.1336735 L82.3081633,131.641837 L175.322449,131.641837 L175.322449,131.641837 Z M166.25,148.329592 L90.5132653,148.329592 C98.6489796,162.033673 106.056122,176.691837 112.734694,192.321429 L143.646939,192.321429 C153.118367,177.472449 160.664286,162.796939 166.25,148.329592 L166.25,148.329592 Z" id="Shape" fill="#FFFFFF"></path>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="256px" height="256px" viewBox="3781 111 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <desc>Email</desc>
3
+ <defs></defs>
4
+ <g id="email" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(3781.000000, 111.000000)">
5
+ <rect id="bg" fill="#A56EE3" x="0" y="0" width="256" height="256" rx="40"></rect>
6
+ <path d="M218,102.602679 L218,182.357143 C218,186.776786 216.426339,190.560268 213.279018,193.707589 C210.131696,196.854911 206.348214,198.428571 201.928571,198.428571 L54.0714286,198.428571 C49.6517857,198.428571 45.8683036,196.854911 42.7209821,193.707589 C39.5736607,190.560268 38,186.776786 38,182.357143 L38,102.602679 C40.9464286,105.883929 44.328125,108.796875 48.1450893,111.341518 C72.3861607,127.814732 89.0267857,139.366071 98.0669643,145.995536 C101.883929,148.808036 104.981027,151.001116 107.358259,152.574777 C109.735491,154.148438 112.899554,155.75558 116.850446,157.396205 C120.801339,159.03683 124.484375,159.857143 127.899554,159.857143 L128.100446,159.857143 C131.515625,159.857143 135.198661,159.03683 139.149554,157.396205 C143.100446,155.75558 146.264509,154.148438 148.641741,152.574777 C151.018973,151.001116 154.116071,148.808036 157.933036,145.995536 C169.316964,137.758929 185.991071,126.207589 207.955357,111.341518 C211.772321,108.729911 215.120536,105.816964 218,102.602679 L218,102.602679 Z M218,73.0714286 C218,78.3616071 216.359375,83.4174107 213.078125,88.2388393 C209.796875,93.0602679 205.712054,97.1785714 200.823661,100.59375 C175.645089,118.071429 159.975446,128.953125 153.814732,133.238839 C153.145089,133.707589 151.722098,134.728795 149.545759,136.302455 C147.36942,137.876116 145.561384,139.148438 144.121652,140.11942 C142.68192,141.090402 140.940848,142.178571 138.898438,143.383929 C136.856027,144.589286 134.930804,145.493304 133.122768,146.095982 C131.314732,146.698661 129.640625,147 128.100446,147 L127.899554,147 C126.359375,147 124.685268,146.698661 122.877232,146.095982 C121.069196,145.493304 119.143973,144.589286 117.101562,143.383929 C115.059152,142.178571 113.31808,141.090402 111.878348,140.11942 C110.438616,139.148438 108.63058,137.876116 106.454241,136.302455 C104.277902,134.728795 102.854911,133.707589 102.185268,133.238839 C96.0915179,128.953125 87.3191964,122.842634 75.8683036,114.907366 C64.4174107,106.972098 57.5535714,102.200893 55.2767857,100.59375 C51.125,97.78125 47.2075893,93.9140625 43.5245536,88.9921875 C39.8415179,84.0703125 38,79.5 38,75.28125 C38,70.0580357 39.3895089,65.7053571 42.1685268,62.2232143 C44.9475446,58.7410714 48.9151786,57 54.0714286,57 L201.928571,57 C206.28125,57 210.047991,58.5736607 213.228795,61.7209821 C216.409598,64.8683036 218,68.6517857 218,73.0714286 L218,73.0714286 Z" id="Shape" fill="#FFFFFF"></path>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="256px" height="256px" viewBox="312 111 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <desc>Facebook</desc>
3
+ <defs></defs>
4
+ <g id="facebook" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(312.000000, 111.000000)">
5
+ <rect id="bg" fill="#2760D8" x="0" y="0" width="256" height="256" rx="40"></rect>
6
+ <path d="M185.230769,37.5865385 L185.230769,72.4903846 L164.473558,72.4903846 C156.893429,72.4903846 151.78125,74.0769231 149.137019,77.25 C146.492788,80.4230769 145.170673,85.1826923 145.170673,91.5288462 L145.170673,116.516827 L183.908654,116.516827 L178.752404,155.651442 L145.170673,155.651442 L145.170673,256 L104.713942,256 L104.713942,155.651442 L71,155.651442 L71,116.516827 L104.713942,116.516827 L104.713942,87.6947115 C104.713942,71.3004808 109.297276,58.5861378 118.463942,49.5516827 C127.630609,40.5172276 139.838141,36 155.086538,36 C168.043269,36 178.091346,36.5288462 185.230769,37.5865385 L185.230769,37.5865385 Z" id="Shape" fill="#FFFFFF"></path>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="256px" height="256px" viewBox="1585 111 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <desc>Google</desc>
3
+ <defs></defs>
4
+ <g id="google" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(1585.000000, 111.000000)">
5
+ <rect id="bg" fill="#3E82F7" x="0" y="0" width="256" height="256" rx="40"></rect>
6
+ <path d="M129.853821,114.697674 L216.564784,114.697674 C217.521595,120.039867 218,125.142857 218,130.006645 C218,147.30897 214.372093,162.757475 207.116279,176.352159 C199.860465,189.946844 189.51495,200.571429 176.079734,208.225914 C162.644518,215.880399 147.23588,219.707641 129.853821,219.707641 C117.335548,219.707641 105.415282,217.295681 94.0930233,212.471761 C82.7707641,207.647841 73.0033223,201.129568 64.7906977,192.916944 C56.5780731,184.704319 50.0598007,174.936877 45.2358804,163.614618 C40.4119601,152.292359 38,140.372093 38,127.853821 C38,115.335548 40.4119601,103.415282 45.2358804,92.0930233 C50.0598007,80.7707641 56.5780731,71.0033223 64.7906977,62.7906977 C73.0033223,54.5780731 82.7707641,48.0598007 94.0930233,43.2358804 C105.415282,38.4119601 117.335548,36 129.853821,36 C153.774086,36 174.305648,44.013289 191.448505,60.0398671 L166.451827,84.0797342 C156.644518,74.5913621 144.445183,69.8471761 129.853821,69.8471761 C119.568106,69.8471761 110.059801,72.4385382 101.328904,77.6212625 C92.5980066,82.8039867 85.6810631,89.8405316 80.5780731,98.730897 C75.4750831,107.621262 72.923588,117.328904 72.923588,127.853821 C72.923588,138.378738 75.4750831,148.086379 80.5780731,156.976744 C85.6810631,165.86711 92.5980066,172.903654 101.328904,178.086379 C110.059801,183.269103 119.568106,185.860465 129.853821,185.860465 C136.790698,185.860465 143.169435,184.903654 148.990033,182.990033 C154.810631,181.076412 159.594684,178.684385 163.342193,175.813953 C167.089701,172.943522 170.358804,169.674419 173.149502,166.006645 C175.940199,162.33887 177.993355,158.870432 179.30897,155.601329 C180.624585,152.332226 181.521595,149.222591 182,146.272425 L129.853821,146.272425 L129.853821,114.697674 L129.853821,114.697674 Z" id="Shape" fill="#FFFFFF"></path>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,10 @@
1
+ <svg width="256px" height="256px" viewBox="631 111 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <desc>Google+</desc>
3
+ <defs></defs>
4
+ <g id="google-plus" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(631.000000, 111.000000)">
5
+ <rect id="bg" fill="#F04500" x="0" y="0" width="256" height="256" rx="40"></rect>
6
+ <g transform="translate(28.000000, 64.000000)" id="Shape" fill="#FFFFFF">
7
+ <path d="M124.739583,65.1041667 C124.739583,77.1412037 122.222222,87.8616898 117.1875,97.265625 C112.152778,106.66956 104.976852,114.019097 95.6597222,119.314236 C86.3425926,124.609375 75.6655093,127.256944 63.6284722,127.256944 C55.005787,127.256944 46.7592593,125.578704 38.8888889,122.222222 C31.0185185,118.865741 24.2476852,114.351852 18.5763889,108.680556 C12.9050926,103.009259 8.3912037,96.2384259 5.03472222,88.3680556 C1.67824074,80.4976852 0,72.2511574 0,63.6284722 C0,55.005787 1.67824074,46.7592593 5.03472222,38.8888889 C8.3912037,31.0185185 12.9050926,24.2476852 18.5763889,18.5763889 C24.2476852,12.9050926 31.0185185,8.3912037 38.8888889,5.03472222 C46.7592593,1.67824074 55.005787,0 63.6284722,0 C80.1793981,0 94.3865741,5.55555556 106.25,16.6666667 L88.9756944,33.2465278 C82.2048611,26.7071759 73.755787,23.4375 63.6284722,23.4375 C56.5104167,23.4375 49.927662,25.2314815 43.8802083,28.8194444 C37.8327546,32.4074074 33.0439815,37.2829861 29.5138889,43.4461806 C25.9837963,49.609375 24.21875,56.3368056 24.21875,63.6284722 C24.21875,70.9201389 25.9837963,77.6475694 29.5138889,83.8107639 C33.0439815,89.9739583 37.8327546,94.849537 43.8802083,98.4375 C49.927662,102.025463 56.5104167,103.819444 63.6284722,103.819444 C68.431713,103.819444 72.8443287,103.153935 76.8663194,101.822917 C80.8883102,100.491898 84.2013889,98.828125 86.8055556,96.8315972 C89.4097222,94.8350694 91.6811343,92.5636574 93.6197917,90.0173611 C95.5584491,87.4710648 96.9762731,85.0694444 97.8732639,82.8125 C98.7702546,80.5555556 99.3923611,78.4143519 99.7395833,76.3888889 L63.6284722,76.3888889 L63.6284722,54.5138889 L123.697917,54.5138889 C124.392361,58.1597222 124.739583,61.6898148 124.739583,65.1041667 L124.739583,65.1041667 Z M200,54.5138889 L200,72.7430556 L181.857639,72.7430556 L181.857639,90.8854167 L163.628472,90.8854167 L163.628472,72.7430556 L145.486111,72.7430556 L145.486111,54.5138889 L163.628472,54.5138889 L163.628472,36.3715278 L181.857639,36.3715278 L181.857639,54.5138889 L200,54.5138889 L200,54.5138889 Z"></path>
8
+ </g>
9
+ </g>
10
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="256px" height="256px" viewBox="2841 111 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <desc>LinkedIn</desc>
3
+ <defs></defs>
4
+ <g id="linkedin" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(2841.000000, 111.000000)">
5
+ <rect id="bg" fill="#007CCB" x="0" y="0" width="256" height="256" rx="40"></rect>
6
+ <path d="M78.8984375,96.8984375 L78.8984375,213.03125 L40.2265625,213.03125 L40.2265625,96.8984375 L78.8984375,96.8984375 L78.8984375,96.8984375 Z M81.359375,61.0390625 C81.4375,66.7421875 79.4648438,71.5078125 75.4414062,75.3359375 C71.4179688,79.1640625 66.125,81.078125 59.5625,81.078125 L59.328125,81.078125 C52.921875,81.078125 47.765625,79.1640625 43.859375,75.3359375 C39.953125,71.5078125 38,66.7421875 38,61.0390625 C38,55.2578125 40.0117188,50.4726562 44.0351562,46.6835938 C48.0585938,42.8945312 53.3125,41 59.796875,41 C66.28125,41 71.4765625,42.8945312 75.3828125,46.6835938 C79.2890625,50.4726562 81.28125,55.2578125 81.359375,61.0390625 L81.359375,61.0390625 Z M218,146.46875 L218,213.03125 L179.445312,213.03125 L179.445312,150.921875 C179.445312,142.71875 177.863281,136.292969 174.699219,131.644531 C171.535156,126.996094 166.59375,124.671875 159.875,124.671875 C154.953125,124.671875 150.832031,126.019531 147.511719,128.714844 C144.191406,131.410156 141.710938,134.75 140.070312,138.734375 C139.210938,141.078125 138.78125,144.242188 138.78125,148.226563 L138.78125,213.03125 L100.226562,213.03125 C100.382812,181.859375 100.460938,156.585938 100.460938,137.210938 C100.460938,117.835938 100.421875,106.273438 100.34375,102.523438 L100.226562,96.8984375 L138.78125,96.8984375 L138.78125,113.773438 L138.546875,113.773438 C140.109375,111.273438 141.710938,109.085938 143.351562,107.210938 C144.992188,105.335938 147.199219,103.304688 149.972656,101.117188 C152.746094,98.9296875 156.144531,97.2304688 160.167969,96.0195313 C164.191406,94.8085938 168.664062,94.203125 173.585938,94.203125 C186.945312,94.203125 197.6875,98.6367188 205.8125,107.503906 C213.9375,116.371094 218,129.359375 218,146.46875 L218,146.46875 Z" id="Shape" fill="#FFFFFF"></path>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="256px" height="256px" viewBox="2527 111 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <desc>Pinterest</desc>
3
+ <defs></defs>
4
+ <g id="pinterest" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(2527.000000, 111.000000)">
5
+ <rect id="bg" fill="#D60018" x="0" y="0" width="256" height="256" rx="40"></rect>
6
+ <path d="M48,107.625 C48,98.625 49.5625,90.1458333 52.6875,82.1875 C55.8125,74.2291667 60.125,67.2916667 65.625,61.375 C71.125,55.4583333 77.4583333,50.3333333 84.625,46 C91.7916667,41.6666667 99.5,38.4166667 107.75,36.25 C116,34.0833333 124.416667,33 133,33 C146.166667,33 158.416667,35.7708333 169.75,41.3125 C181.083333,46.8541667 190.291667,54.9166667 197.375,65.5 C204.458333,76.0833333 208,88.0416667 208,101.375 C208,109.375 207.208333,117.208333 205.625,124.875 C204.041667,132.541667 201.541667,139.916667 198.125,147 C194.708333,154.083333 190.541667,160.3125 185.625,165.6875 C180.708333,171.0625 174.666667,175.354167 167.5,178.5625 C160.333333,181.770833 152.458333,183.375 143.875,183.375 C138.208333,183.375 132.583333,182.041667 127,179.375 C121.416667,176.708333 117.416667,173.041667 115,168.375 C114.166667,171.625 113,176.3125 111.5,182.4375 C110,188.5625 109.020833,192.520833 108.5625,194.3125 C108.104167,196.104167 107.25,199.0625 106,203.1875 C104.75,207.3125 103.666667,210.270833 102.75,212.0625 C101.833333,213.854167 100.5,216.458333 98.75,219.875 C97,223.291667 95.0833333,226.520833 93,229.5625 C90.9166667,232.604167 88.3333333,236.208333 85.25,240.375 L83.5,241 L82.375,239.75 C81.125,226.666667 80.5,218.833333 80.5,216.25 C80.5,208.583333 81.3958333,199.979167 83.1875,190.4375 C84.9791667,180.895833 87.75,168.916667 91.5,154.5 C95.25,140.083333 97.4166667,131.625 98,129.125 C95.3333333,123.708333 94,116.666667 94,108 C94,101.083333 96.1666667,94.5833333 100.5,88.5 C104.833333,82.4166667 110.333333,79.375 117,79.375 C122.083333,79.375 126.041667,81.0625 128.875,84.4375 C131.708333,87.8125 133.125,92.0833333 133.125,97.25 C133.125,102.75 131.291667,110.708333 127.625,121.125 C123.958333,131.541667 122.125,139.333333 122.125,144.5 C122.125,149.75 124,154.104167 127.75,157.5625 C131.5,161.020833 136.041667,162.75 141.375,162.75 C145.958333,162.75 150.208333,161.708333 154.125,159.625 C158.041667,157.541667 161.3125,154.708333 163.9375,151.125 C166.5625,147.541667 168.895833,143.583333 170.9375,139.25 C172.979167,134.916667 174.5625,130.3125 175.6875,125.4375 C176.8125,120.5625 177.645833,115.9375 178.1875,111.5625 C178.729167,107.1875 179,103.041667 179,99.125 C179,84.7083333 174.4375,73.4791667 165.3125,65.4375 C156.1875,57.3958333 144.291667,53.375 129.625,53.375 C112.958333,53.375 99.0416667,58.7708333 87.875,69.5625 C76.7083333,80.3541667 71.125,94.0416667 71.125,110.625 C71.125,114.291667 71.6458333,117.833333 72.6875,121.25 C73.7291667,124.666667 74.8541667,127.375 76.0625,129.375 C77.2708333,131.375 78.3958333,133.270833 79.4375,135.0625 C80.4791667,136.854167 81,138.125 81,138.875 C81,141.208333 80.375,144.25 79.125,148 C77.875,151.75 76.3333333,153.625 74.5,153.625 C74.3333333,153.625 73.625,153.5 72.375,153.25 C68.125,152 64.3541667,149.666667 61.0625,146.25 C57.7708333,142.833333 55.2291667,138.895833 53.4375,134.4375 C51.6458333,129.979167 50.2916667,125.479167 49.375,120.9375 C48.4583333,116.395833 48,111.958333 48,107.625 L48,107.625 Z" id="Shape" fill="#FFFFFF"></path>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="256px" height="256px" viewBox="4093 111 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <desc>QQ</desc>
3
+ <defs></defs>
4
+ <g id="qq" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(4093.000000, 111.000000)">
5
+ <rect id="bg" fill="#3086F8" x="0" y="0" width="256" height="256" rx="40"></rect>
6
+ <path d="M70.9612756,119.439636 C70.4753227,118.285497 70.2323462,116.70615 70.2323462,114.701595 C70.2323462,113.486712 70.5664389,111.998481 71.2346241,110.236902 C71.9028094,108.475323 72.6317388,107.10858 73.4214123,106.136674 C73.3606682,104.800304 73.5884586,103.190585 74.1047836,101.307517 C74.6211086,99.4244495 75.3044799,98.118451 76.1548975,97.3895216 C76.1548975,88.9460896 78.9643128,80.1837509 84.5831435,71.1025057 C90.2019742,62.0212604 96.8078967,55.6583144 104.400911,52.0136674 C112.844343,48.0045558 122.68489,46 133.922551,46 C142.001519,46 150.080486,47.6704632 158.159453,51.0113895 C161.135915,52.2870159 163.8694,53.7448747 166.359909,55.3849658 C168.850418,57.0250569 171.006834,58.7258922 172.829157,60.4874715 C174.651481,62.2490509 176.321944,64.3143508 177.840547,66.6833713 C179.35915,69.0523918 180.634776,71.2999241 181.667426,73.4259681 C182.700076,75.5520121 183.687168,78.118451 184.628702,81.1252847 C185.570235,84.1321185 186.344723,86.8504176 186.952164,89.2801822 C187.559605,91.7099468 188.22779,94.6864085 188.95672,98.2095672 L189.047836,98.6651481 C192.388762,103.70691 194.059226,108.262718 194.059226,112.332574 C194.059226,113.182992 193.785877,114.397874 193.23918,115.977221 C192.692483,117.556568 192.419134,118.710706 192.419134,119.439636 C192.419134,119.50038 192.464692,119.606682 192.555809,119.758542 C192.646925,119.910402 192.753227,120.062263 192.874715,120.214123 C192.996203,120.365983 193.056948,120.472285 193.056948,120.53303 C197.734244,127.457859 201.394077,133.972665 204.036446,140.077449 C206.678815,146.182232 208,152.514806 208,159.075171 C208,161.687168 207.407745,164.724374 206.223235,168.186788 C205.038724,171.649203 203.353075,173.38041 201.166287,173.38041 C200.61959,173.38041 200.027335,173.15262 199.389522,172.697039 C198.751708,172.241458 198.174639,171.709947 197.658314,171.102506 C197.141989,170.495065 196.56492,169.705391 195.927107,168.733485 C195.289294,167.761579 194.803341,166.95672 194.469248,166.318907 C194.135156,165.681093 193.725133,164.89142 193.23918,163.949886 C192.753227,163.008352 192.479879,162.476841 192.419134,162.355353 C192.35839,162.294609 192.267274,162.264237 192.145786,162.264237 L191.690205,162.628702 C188.106302,171.983295 184.097191,178.756264 179.66287,182.947608 C180.877752,184.162491 182.745634,185.331815 185.266515,186.455581 C187.787396,187.579347 189.883068,188.839787 191.553531,190.236902 C193.223994,191.634017 194.302202,193.6082 194.788155,196.159453 C194.666667,196.40243 194.545178,196.888383 194.42369,197.617312 C194.302202,198.346241 194.089598,198.892938 193.785877,199.257403 C189.898254,205.149582 180.725892,208.095672 166.268793,208.095672 C163.049355,208.095672 159.693242,207.822323 156.200456,207.275626 C152.707669,206.728929 149.731207,206.121488 147.271071,205.453303 C144.810934,204.785118 141.637054,203.873956 137.749431,202.719818 C136.838269,202.416097 136.139711,202.203493 135.653759,202.082005 C134.803341,201.839028 133.406226,201.702354 131.462415,201.671982 C129.518603,201.64161 128.303721,201.596052 127.817768,201.535308 C125.327259,204.268793 121.454822,206.242976 116.200456,207.457859 C110.94609,208.672741 105.828398,209.280182 100.84738,209.280182 C98.7213364,209.280182 96.6256644,209.234624 94.5603645,209.143508 C92.4950645,209.052392 89.6704632,208.779043 86.0865604,208.323462 C82.5026576,207.867882 79.4350797,207.245254 76.8838269,206.455581 C74.332574,205.665907 72.0698557,204.451025 70.095672,202.810934 C68.1214882,201.170843 67.1343964,199.227031 67.1343964,196.979499 C67.1343964,194.549734 67.4381169,192.742597 68.0455581,191.558087 C68.6529992,190.373576 69.8982536,188.900532 71.7813212,187.138952 C72.4495065,187.017464 73.6795748,186.622627 75.4715262,185.954442 C77.2634776,185.286257 78.7668945,184.921792 79.9817768,184.861048 C80.2247532,184.861048 80.649962,184.800304 81.2574032,184.678815 C81.3788914,184.557327 81.4396355,184.435839 81.4396355,184.314351 L81.2574032,184.041002 C78.3416856,183.372817 75.0615034,180.168565 71.4168565,174.428246 C67.7722096,168.687927 65.5550494,163.9347 64.7653759,160.168565 L64.309795,159.895216 C64.0668185,159.895216 63.7023538,160.502658 63.2164009,161.71754 C62.1230068,164.208049 60.4677297,166.470767 58.2505695,168.505695 C56.0334093,170.540623 53.6795748,171.679575 51.1890661,171.922551 L51.0979499,171.922551 C50.8549734,171.922551 50.6727411,171.785877 50.5512528,171.512528 C50.4297646,171.23918 50.2779043,171.072134 50.095672,171.01139 C48.6985573,167.731207 48,164.694002 48,161.899772 C48,145.19514 55.6537585,131.041762 70.9612756,119.439636 L70.9612756,119.439636 Z" id="Shape" fill="#FFFFFF"></path>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="256px" height="256px" viewBox="2213 111 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <desc>Tumblr</desc>
3
+ <defs></defs>
4
+ <g id="tumblr" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(2213.000000, 111.000000)">
5
+ <rect id="bg" fill="#2E486C" x="0" y="0" width="256" height="256" rx="40"></rect>
6
+ <path d="M170.702703,181.675676 L179.351351,207.297297 C177.693694,209.81982 173.693694,212.198198 167.351351,214.432432 C161.009009,216.666667 154.630631,217.81982 148.216216,217.891892 C140.720721,218.036036 133.855856,217.099099 127.621622,215.081081 C121.387387,213.063063 116.252252,210.396396 112.216216,207.081081 C108.18018,203.765766 104.756757,199.945946 101.945946,195.621622 C99.1351351,191.297297 97.1351351,186.972973 95.9459459,182.648649 C94.7567568,178.324324 94.1621622,174.072072 94.1621622,169.891892 L94.1621622,111.081081 L76,111.081081 L76,87.8378378 C81.1891892,85.963964 85.8378378,83.4594595 89.9459459,80.3243243 C94.0540541,77.1891892 97.3333333,73.9459459 99.7837838,70.5945946 C102.234234,67.2432432 104.324324,63.5675676 106.054054,59.5675676 C107.783784,55.5675676 109.009009,52 109.72973,48.8648649 C110.45045,45.7297297 110.990991,42.5405405 111.351351,39.2972973 C111.423423,38.9369369 111.585586,38.6306306 111.837838,38.3783784 C112.09009,38.1261261 112.36036,38 112.648649,38 L139.027027,38 L139.027027,83.8378378 L175.027027,83.8378378 L175.027027,111.081081 L138.918919,111.081081 L138.918919,167.081081 C138.918919,169.243243 139.153153,171.261261 139.621622,173.135135 C140.09009,175.009009 140.900901,176.900901 142.054054,178.810811 C143.207207,180.720721 144.990991,182.216216 147.405405,183.297297 C149.81982,184.378378 152.756757,184.882883 156.216216,184.810811 C161.837838,184.666667 166.666667,183.621622 170.702703,181.675676 L170.702703,181.675676 Z" id="Shape" fill="#FFFFFF"></path>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="256px" height="256px" viewBox="-2 111 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <desc>Twitter</desc>
3
+ <defs></defs>
4
+ <g id="twitter" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-2.000000, 111.000000)">
5
+ <rect id="bg" fill="#1DA1F2" x="0" y="0" width="256" height="256" rx="40"></rect>
6
+ <path d="M218,74.6546875 C212.898477,81.8132812 206.730964,87.9126953 199.497462,92.9529297 C199.573604,93.9755859 199.611675,95.5095703 199.611675,97.5548828 C199.611675,107.050977 198.164975,116.528809 195.271574,125.988379 C192.378173,135.447949 187.980964,144.524023 182.079949,153.216602 C176.178934,161.90918 169.154822,169.597363 161.007614,176.281152 C152.860406,182.964941 143.038071,188.297363 131.540609,192.278418 C120.043147,196.259473 107.746193,198.25 94.6497462,198.25 C74.0152284,198.25 55.1319797,192.954102 38,182.362305 C40.6649746,182.654492 43.6345178,182.800586 46.9086294,182.800586 C64.0406091,182.800586 79.3071066,177.760352 92.7081218,167.679883 C84.713198,167.533789 77.5558376,165.178027 71.2360406,160.612598 C64.9162437,156.047168 60.5761421,150.22168 58.215736,143.136133 C60.7284264,143.501367 63.0507614,143.683984 65.1827411,143.683984 C68.4568528,143.683984 71.6928934,143.282227 74.8908629,142.478711 C66.3629442,140.798633 59.3007614,136.72627 53.7043147,130.261621 C48.107868,123.796973 45.3096447,116.291406 45.3096447,107.744922 L45.3096447,107.306641 C50.4873096,110.082422 56.0456853,111.579883 61.9847716,111.799023 C56.9593909,108.584961 52.9619289,104.384766 49.9923858,99.1984375 C47.0228426,94.0121094 45.5380711,88.3875 45.5380711,82.3246094 C45.5380711,75.8964844 47.213198,69.9431641 50.5634518,64.4646484 C59.7766497,75.3486328 70.9885787,84.0594727 84.1992386,90.597168 C97.4098985,97.1348633 111.553299,100.768945 126.629442,101.499414 C126.020305,98.7236328 125.715736,96.0208984 125.715736,93.3912109 C125.715736,83.6029297 129.313452,75.2573242 136.508883,68.3543945 C143.704315,61.4514648 152.403553,58 162.606599,58 C173.266497,58 182.251269,61.7253906 189.560914,69.1761719 C197.860406,67.6421875 205.664975,64.7933594 212.974619,60.6296875 C210.15736,69.0300781 204.751269,75.53125 196.756345,80.1332031 C203.837563,79.4027344 210.918782,77.5765625 218,74.6546875 L218,74.6546875 Z" id="Shape" fill="#FFFFFF"></path>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,10 @@
1
+ <svg width="256px" height="256px" viewBox="957 111 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <desc>Weibo</desc>
3
+ <defs></defs>
4
+ <g id="weibo" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(957.000000, 111.000000)">
5
+ <rect id="bg" fill="#EC4039" x="0" y="0" width="256" height="256" rx="40"></rect>
6
+ <g transform="translate(38.000000, 55.000000)" id="Shape" fill="#FFFFFF">
7
+ <path d="M67.7635248,111.834914 C69.1689905,109.559398 69.5370887,107.250418 68.8678193,104.907975 C68.1985499,102.565533 66.6926938,100.892359 64.350251,99.8884551 C62.0747351,98.951478 59.6319018,98.9180145 57.0217513,99.7880647 C54.4116007,100.658115 52.4037925,102.197434 50.9983268,104.406023 C49.5259342,106.681539 49.0909091,108.973787 49.6932515,111.282766 C50.295594,113.591746 51.7345231,115.281651 54.010039,116.352482 C56.2855549,117.423313 58.7785834,117.506972 61.4891244,116.603458 C64.1996654,115.699944 66.2911322,114.110429 67.7635248,111.834914 L67.7635248,111.834914 Z M77.2002231,99.6876743 C77.7356386,98.8176241 77.8527607,97.9308422 77.5515895,97.0273285 C77.2504183,96.1238148 76.6648076,95.5047407 75.7947574,95.170106 C74.8577803,94.8354713 73.9040714,94.852203 72.9336308,95.2203012 C71.9631902,95.5883993 71.2437256,96.2074735 70.775237,97.0775237 C69.6374791,99.1522588 70.0725042,100.658115 72.0803123,101.595092 C73.0172895,101.929727 73.9877301,101.912995 74.9916341,101.544897 C75.9955382,101.176799 76.7317345,100.557724 77.2002231,99.6876743 L77.2002231,99.6876743 Z M94.6681539,110.429448 C91.6564417,117.255996 86.3692136,122.275516 78.8064696,125.488009 C71.2437256,128.700502 63.7479085,129.102064 56.3190184,126.692694 C49.157836,124.417178 44.2219743,120.184049 41.5114334,113.993307 C38.8008924,107.802566 39.0184049,101.528165 42.163971,95.170106 C45.3095371,88.9459007 50.3792526,84.2944785 57.3731177,81.2158394 C64.3669827,78.1372002 71.4110429,77.5013943 78.5052984,79.3084216 C85.9341885,81.2493028 91.2381484,85.2481874 94.4171779,91.3050753 C97.5962075,97.3619632 97.6798661,103.736754 94.6681539,110.429448 L94.6681539,110.429448 Z M125.989961,94.3669827 C125.387619,87.9419967 122.40937,82.2532069 117.055215,77.3006135 C111.70106,72.3480201 104.723926,68.700502 96.1238148,66.3580591 C87.5237033,64.0156163 78.337981,63.3128834 68.5666481,64.2498606 C53.6419409,65.7891801 41.2771891,70.524261 31.4723926,78.4551032 C21.6675962,86.3859453 17.2336866,95.2370329 18.1706637,105.008366 C18.7730061,111.433352 21.7512549,117.122142 27.1054099,122.074735 C32.459565,127.027328 39.4366983,130.674847 48.0368098,133.017289 C56.6369214,135.359732 65.8226436,136.062465 75.5939766,135.125488 C90.5186838,133.586168 102.883436,128.851088 112.688232,120.920245 C122.493028,112.989403 126.926938,104.138316 125.989961,94.3669827 L125.989961,94.3669827 Z M156.910206,94.7685443 C156.910206,99.3195761 155.672058,103.98773 153.195761,108.773006 C150.719465,113.558282 147.071946,118.142777 142.253207,122.526492 C137.434467,126.910206 131.795873,130.842164 125.337423,134.322365 C118.878974,137.802566 111.31623,140.580033 102.649191,142.654769 C93.9821528,144.729504 84.9302844,145.766871 75.4935862,145.766871 C66.0568879,145.766871 56.8544339,144.645845 47.8862242,142.403793 C38.9180145,140.16174 30.8700502,137.049637 23.7423313,133.067485 C16.6146124,129.085332 10.8756274,124.032348 6.52537646,117.908533 C2.17512549,111.784718 0,105.108756 0,97.880647 C0,90.1840491 2.3257111,81.9854992 6.9771333,73.2849972 C11.6285555,64.5844953 18.2375906,55.9509202 26.8042387,47.3842722 C38.1148912,36.0736196 49.5426659,28.1762409 61.0875627,23.6921361 C72.6324596,19.2080312 80.8812047,19.4422755 85.8337981,24.3948689 C90.1840491,28.678193 90.8533185,35.672058 87.8416062,45.376464 C87.5738985,46.3134412 87.540435,46.9827105 87.7412158,47.3842722 C87.9419967,47.7858338 88.2766313,48.0200781 88.7451199,48.087005 C89.2136085,48.153932 89.6988288,48.1372002 90.2007808,48.0368098 C90.7027328,47.9364194 91.1544897,47.8192973 91.5560513,47.6854434 L92.1583938,47.4846626 C101.461238,43.5359732 109.693252,41.5616286 116.854434,41.5616286 C124.015616,41.5616286 129.135527,43.6029002 132.214166,47.6854434 C135.225878,51.9018405 135.225878,57.858338 132.214166,65.5549359 C132.080312,66.4249861 131.929727,67.0942554 131.762409,67.562744 C131.595092,68.0312326 131.745678,68.4495259 132.214166,68.8176241 C132.682655,69.1857223 133.084216,69.4366983 133.418851,69.5705521 C133.753486,69.704406 134.322365,69.9051868 135.125488,70.1728946 C138.940323,71.3775795 142.387061,72.9503625 145.4657,74.8912437 C148.544339,76.8321249 151.221417,79.5593977 153.496933,83.0730619 C155.772448,86.5867262 156.910206,90.4852203 156.910206,94.7685443 L156.910206,94.7685443 Z M149.481316,32.1249303 C152.292248,35.2704964 154.116007,38.9012828 154.952593,43.0172895 C155.78918,47.1332962 155.571668,51.0652538 154.300056,54.8131623 C153.76464,56.3524819 152.777468,57.4902398 151.338539,58.2264361 C149.89961,58.9626325 148.410485,59.0964863 146.871166,58.6279978 C145.331846,58.0925823 144.194088,57.1054099 143.457892,55.6664808 C142.721695,54.2275516 142.587842,52.7384272 143.05633,51.1991076 C144.394869,46.9827105 143.591746,43.2682655 140.64696,40.0557724 C137.702175,36.8432794 134.121584,35.672058 129.905187,36.5421082 C128.29894,36.8767429 126.793084,36.6090351 125.387619,35.7389849 C123.982153,34.8689347 123.145566,33.6307864 122.877858,32.0245399 C122.543224,30.4182934 122.810931,28.929169 123.680982,27.5571668 C124.551032,26.1851645 125.78918,25.3318461 127.395427,24.9972114 C131.411043,24.1271612 135.393196,24.3112103 139.341885,25.5493586 C143.290574,26.787507 146.670385,28.9793642 149.481316,32.1249303 L149.481316,32.1249303 Z M167.65198,15.7612939 C173.474624,22.18628 177.239264,29.6319018 178.945901,38.0981595 C180.652538,46.5644172 180.200781,54.645845 177.59063,62.3424428 C176.988288,64.1494702 175.85053,65.4880089 174.177356,66.3580591 C172.504183,67.2281093 170.764083,67.3619632 168.957055,66.7596207 C167.150028,66.1572783 165.811489,65.0195204 164.941439,63.3463469 C164.071389,61.6731735 163.904071,59.9330731 164.439487,58.1260457 C166.313441,52.6380368 166.648076,46.8823201 165.443391,40.8588957 C164.238706,34.8354713 161.561629,29.5482432 157.412158,24.9972114 C153.262688,20.3792526 148.310095,17.1834914 142.554378,15.4099275 C136.798661,13.6363636 131.009481,13.3519241 125.186838,14.556609 C123.312883,14.9581707 121.572783,14.6402677 119.966537,13.6029002 C118.36029,12.5655326 117.356386,11.1098717 116.954824,9.23591746 C116.553263,7.36196319 116.871166,5.63859453 117.908533,4.06581149 C118.945901,2.49302844 120.401562,1.50585611 122.275516,1.10429448 C130.507529,-0.635805912 138.672616,-0.250976018 146.770775,2.25878416 C154.868935,4.76854434 161.829336,9.26938093 167.65198,15.7612939 L167.65198,15.7612939 Z"></path>
8
+ </g>
9
+ </g>
10
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="256px" height="256px" viewBox="3153 111 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <desc>Weichat (Weixin)</desc>
3
+ <defs></defs>
4
+ <g id="weixin" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(3153.000000, 111.000000)">
5
+ <rect id="bg" fill="#44AB12" x="0" y="0" width="256" height="256" rx="40"></rect>
6
+ <path d="M84.640625,85.9648438 C84.640625,83.2955729 83.8268229,81.1471354 82.1992188,79.5195312 C80.5716146,77.8919271 78.4231771,77.078125 75.7539062,77.078125 C72.9544271,77.078125 70.4804688,77.9082031 68.3320312,79.5683594 C66.1835938,81.2285156 65.109375,83.3606771 65.109375,85.9648438 C65.109375,88.5039062 66.1835938,90.6035156 68.3320312,92.2636719 C70.4804688,93.9238281 72.9544271,94.7539063 75.7539062,94.7539063 C78.4231771,94.7539063 80.5716146,93.9563802 82.1992188,92.3613281 C83.8268229,90.766276 84.640625,88.6341146 84.640625,85.9648438 L84.640625,85.9648438 Z M157.199219,135.476562 C157.199219,133.653646 156.369141,132.026042 154.708984,130.59375 C153.048828,129.161458 150.916667,128.445312 148.3125,128.445312 C146.554688,128.445312 144.943359,129.177734 143.478516,130.642578 C142.013672,132.107422 141.28125,133.71875 141.28125,135.476562 C141.28125,137.299479 142.013672,138.943359 143.478516,140.408203 C144.943359,141.873047 146.554688,142.605469 148.3125,142.605469 C150.916667,142.605469 153.048828,141.889323 154.708984,140.457031 C156.369141,139.02474 157.199219,137.364583 157.199219,135.476562 L157.199219,135.476562 Z M134.152344,85.9648438 C134.152344,83.2955729 133.354818,81.1471354 131.759766,79.5195312 C130.164714,77.8919271 128.032552,77.078125 125.363281,77.078125 C122.563802,77.078125 120.089844,77.9082031 117.941406,79.5683594 C115.792969,81.2285156 114.71875,83.3606771 114.71875,85.9648438 C114.71875,88.5039062 115.792969,90.6035156 117.941406,92.2636719 C120.089844,93.9238281 122.563802,94.7539063 125.363281,94.7539063 C128.032552,94.7539063 130.164714,93.9563802 131.759766,92.3613281 C133.354818,90.766276 134.152344,88.6341146 134.152344,85.9648438 L134.152344,85.9648438 Z M196.164062,135.476562 C196.164062,133.653646 195.317708,132.026042 193.625,130.59375 C191.932292,129.161458 189.816406,128.445312 187.277344,128.445312 C185.519531,128.445312 183.908203,129.177734 182.443359,130.642578 C180.978516,132.107422 180.246094,133.71875 180.246094,135.476562 C180.246094,137.299479 180.978516,138.943359 182.443359,140.408203 C183.908203,141.873047 185.519531,142.605469 187.277344,142.605469 C189.816406,142.605469 191.932292,141.889323 193.625,140.457031 C195.317708,139.02474 196.164062,137.364583 196.164062,135.476562 L196.164062,135.476562 Z M170.1875,96.7070312 C168.169271,96.4466146 165.890625,96.3164062 163.351562,96.3164062 C152.348958,96.3164062 142.22526,98.8229167 132.980469,103.835938 C123.735677,108.848958 116.460286,115.636068 111.154297,124.197266 C105.848307,132.758464 103.195312,142.117188 103.195312,152.273438 C103.195312,157.351562 103.94401,162.299479 105.441406,167.117188 C103.16276,167.3125 100.949219,167.410156 98.8007812,167.410156 C97.1080729,167.410156 95.4804688,167.361328 93.9179688,167.263672 C92.3554688,167.166016 90.5651042,166.954427 88.546875,166.628906 C86.5286458,166.303385 85.0800781,166.075521 84.2011719,165.945312 C83.3222656,165.815104 81.5481771,165.473307 78.8789062,164.919922 C76.2096354,164.366536 74.5820312,164.02474 73.9960938,163.894531 L49.2890625,176.296875 L56.3203125,155.007812 C37.4401042,141.791667 28,125.841146 28,107.15625 C28,96.1536458 31.1738281,86.0299479 37.5214844,76.7851562 C43.8691406,67.5403646 52.4628906,60.264974 63.3027344,54.9589844 C74.1425781,49.6529948 85.9752604,47 98.8007812,47 C110.259115,47 121.082682,49.1484375 131.271484,53.4453125 C141.460286,57.7421875 149.988932,63.6829427 156.857422,71.2675781 C163.725911,78.8522135 168.169271,87.3320312 170.1875,96.7070312 L170.1875,96.7070312 Z M228,151.492188 C228,159.109375 225.770182,166.384766 221.310547,173.318359 C216.850911,180.251953 210.8125,186.550781 203.195312,192.214844 L208.566406,209.890625 L189.132812,199.246094 C179.367188,201.654948 172.270833,202.859375 167.84375,202.859375 C156.841146,202.859375 146.717448,200.564453 137.472656,195.974609 C128.227865,191.384766 120.952474,185.151042 115.646484,177.273438 C110.340495,169.395833 107.6875,160.802083 107.6875,151.492188 C107.6875,142.182292 110.340495,133.588542 115.646484,125.710938 C120.952474,117.833333 128.227865,111.599609 137.472656,107.009766 C146.717448,102.419922 156.841146,100.125 167.84375,100.125 C178.325521,100.125 188.188802,102.419922 197.433594,107.009766 C206.678385,111.599609 214.083984,117.849609 219.650391,125.759766 C225.216797,133.669922 228,142.247396 228,151.492188 L228,151.492188 Z" id="Shape" fill="#FFFFFF"></path>
7
+ </g>
8
+ </svg>
@@ -1,10 +1,10 @@
1
1
  window.SocialShareButton =
2
- openUrl : (url,popup) ->
3
- if popup == "true"
4
- window.open(url,'popup','height=500,width=500')
5
- else
6
- window.open(url)
7
- false
2
+ openUrl : (url, width = 640, height = 480) ->
3
+ left = (screen.width / 2) - (width / 2)
4
+ top = (screen.height * 0.3) - (height / 2)
5
+ opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no"
6
+ window.open(url, 'popup', opt)
7
+ false
8
8
 
9
9
  share : (el) ->
10
10
  site = $(el).data('site')
@@ -15,7 +15,6 @@ window.SocialShareButton =
15
15
  url = encodeURIComponent($parent.data("url") || '')
16
16
  via = encodeURIComponent($parent.data("via") || '')
17
17
  desc = encodeURIComponent($parent.data("desc") || ' ')
18
- popup = encodeURIComponent($parent.data("popup") || 'false')
19
18
 
20
19
  if url.length == 0
21
20
  url = encodeURIComponent(location.href)
@@ -23,37 +22,36 @@ window.SocialShareButton =
23
22
  when "email"
24
23
  location.href = "mailto:?to=&subject=#{title}&body=#{url}"
25
24
  when "weibo"
26
- SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}",popup)
25
+ SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}", 620, 370)
27
26
  when "twitter"
28
27
  via_str = ''
29
28
  via_str = "&via=#{via}" if via.length > 0
30
- SocialShareButton.openUrl("https://twitter.com/intent/tweet?url=#{url}&text=#{title}#{via_str}",popup)
29
+ SocialShareButton.openUrl("https://twitter.com/intent/tweet?url=#{url}&text=#{title}#{via_str}", 650, 300)
31
30
  when "douban"
32
- SocialShareButton.openUrl("http://shuo.douban.com/!service/share?href=#{url}&name=#{title}&image=#{img}&sel=#{desc}",popup)
31
+ SocialShareButton.openUrl("http://shuo.douban.com/!service/share?href=#{url}&name=#{title}&image=#{img}&sel=#{desc}", 770, 470)
33
32
  when "facebook"
34
- SocialShareButton.openUrl("http://www.facebook.com/sharer.php?u=#{url}",popup)
33
+ SocialShareButton.openUrl("http://www.facebook.com/sharer.php?u=#{url}", 555, 400)
35
34
  when "qq"
36
- SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=#{url}&title=#{title}&pics=#{img}&summary=#{desc}&site=#{appkey}", popup)
37
- when "tqq"
38
- SocialShareButton.openUrl("http://share.v.t.qq.com/index.php?c=share&a=index&url=#{url}&title=#{title}&pic=#{img}&appkey=#{appkey}", popup)
39
- when "baidu"
40
- SocialShareButton.openUrl("http://hi.baidu.com/pub/show/share?url=#{url}&title=#{title}&content=#{desc}", popup)
41
- when "kaixin001"
42
- SocialShareButton.openUrl("http://www.kaixin001.com/rest/records.php?url=#{url}&content=#{title}&style=11&pic=#{img}&aid=#{appkey}", popup)
43
- when "renren"
44
- SocialShareButton.openUrl("http://widget.renren.com/dialog/share?resourceUrl=#{url}&srcUrl=#{url}&title=#{title}&pic=#{img}&description=#{desc}", popup)
35
+ SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=#{url}&title=#{title}&pics=#{img}&summary=#{desc}&site=#{appkey}")
45
36
  when "google_plus"
46
- SocialShareButton.openUrl("https://plus.google.com/share?url=#{url}", popup)
37
+ SocialShareButton.openUrl("https://plus.google.com/share?url=#{url}")
47
38
  when "google_bookmark"
48
- SocialShareButton.openUrl("https://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=#{url}&title=#{title}", popup)
39
+ SocialShareButton.openUrl("https://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=#{url}&title=#{title}")
49
40
  when "delicious"
50
- SocialShareButton.openUrl("http://www.delicious.com/save?url=#{url}&title=#{title}&jump=yes&pic=#{img}", popup)
51
- when "plurk"
52
- SocialShareButton.openUrl("http://www.plurk.com/?status=#{title}: #{url}&qualifier=shares", popup)
41
+ SocialShareButton.openUrl("http://www.delicious.com/save?url=#{url}&title=#{title}&jump=yes&pic=#{img}")
53
42
  when "pinterest"
54
- SocialShareButton.openUrl("http://www.pinterest.com/pin/create/button/?url=#{url}&media=#{img}&description=#{title}", popup)
43
+ SocialShareButton.openUrl("http://www.pinterest.com/pin/create/button/?url=#{url}&media=#{img}&description=#{title}")
55
44
  when "linkedin"
56
- SocialShareButton.openUrl("https://www.linkedin.com/shareArticle?url=#{url}&title=#{title}", popup)
45
+ SocialShareButton.openUrl("https://www.linkedin.com/shareArticle?url=#{url}&title=#{title}")
46
+ when "weixin"
47
+ if wx == undefined
48
+ console.log "You must require weichat API js by your self. https://res.wx.qq.com/open/js/jweixin-1.0.0.js"
49
+ return false
50
+ opts =
51
+ title: title
52
+ link: url
53
+ imgUrl: img
54
+ wx.onMenuShareTimeline(opts)
57
55
  when "tumblr"
58
56
  get_tumblr_extra = (param) ->
59
57
  cutom_data = $(el).attr("data-#{param}")
@@ -82,5 +80,5 @@ window.SocialShareButton =
82
80
 
83
81
  "/#{path}?#{params}"
84
82
 
85
- SocialShareButton.openUrl("http://www.tumblr.com/share#{tumblr_params()}", popup)
83
+ SocialShareButton.openUrl("http://www.tumblr.com/share#{tumblr_params()}")
86
84
  false
@@ -1,72 +1,19 @@
1
- /*
2
-
3
- Creating a sprite from following images:
4
-
5
- app/assets/images/sprites/social-share-button/baidu.png (16x16)
6
- app/assets/images/sprites/social-share-button/delicious.png (16x16)
7
- app/assets/images/sprites/social-share-button/douban.png (16x16)
8
- app/assets/images/sprites/social-share-button/email.png (16x16)
9
- app/assets/images/sprites/social-share-button/facebook.png (16x16)
10
- app/assets/images/sprites/social-share-button/flickr.png (16x16)
11
- app/assets/images/sprites/social-share-button/google_bookmark.png (16x16)
12
- app/assets/images/sprites/social-share-button/google_plus.png (16x16)
13
- app/assets/images/sprites/social-share-button/kaixin001.png (16x16)
14
- app/assets/images/sprites/social-share-button/pinterest.png (16x16)
15
- app/assets/images/sprites/social-share-button/plurk.png (16x16)
16
- app/assets/images/sprites/social-share-button/qq.png (16x16)
17
- app/assets/images/sprites/social-share-button/renren.png (16x16)
18
- app/assets/images/sprites/social-share-button/tqq.png (16x16)
19
- app/assets/images/sprites/social-share-button/tumblr.png (16x16)
20
- app/assets/images/sprites/social-share-button/twitter.png (16x16)
21
- app/assets/images/sprites/social-share-button/weibo.png (16x16)
22
- app/assets/images/sprites/social-share-button/linkedin.png (16x16)
23
-
24
-
25
- Output files:
26
- app/assets/images/sprites/social-share-button.png
27
- app/assets/stylesheets/social-share-button.scss
28
-
29
- Output size:
30
- 80x64
31
-
32
- */
33
- .social-share-button-baidu { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) 0px 0px no-repeat }
34
- .social-share-button-delicious { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -16px 0px no-repeat }
35
- .social-share-button-douban { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) 0px -16px no-repeat }
36
- .social-share-button-email { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -16px -16px no-repeat }
37
- .social-share-button-facebook { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -32px 0px no-repeat }
38
- .social-share-button-flickr { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -32px -16px no-repeat }
39
- .social-share-button-google_bookmark { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) 0px -32px no-repeat }
40
- .social-share-button-google_plus { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -16px -32px no-repeat }
41
- .social-share-button-kaixin001 { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -32px -32px no-repeat }
42
- .social-share-button-pinterest { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -48px 0px no-repeat }
43
- .social-share-button-plurk { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -48px -16px no-repeat }
44
- .social-share-button-qq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -48px -32px no-repeat }
45
- .social-share-button-renren { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) 0px -48px no-repeat }
46
- .social-share-button-tqq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -16px -48px no-repeat }
47
- .social-share-button-tumblr { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -32px -48px no-repeat }
48
- .social-share-button-twitter { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -48px -48px no-repeat }
49
- .social-share-button-weibo { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -64px 0px no-repeat }
50
- .social-share-button-linkedin { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -64px -16px no-repeat }
51
-
52
-
53
- @media only screen and (-webkit-device-pixel-ratio: 2) {
54
- .social-share-button-baidu { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px 0px no-repeat; background-size:80px 64px; }
55
- .social-share-button-delicious { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px 0px no-repeat; background-size:80px 64px; }
56
- .social-share-button-douban { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px -16px no-repeat; background-size:80px 64px; }
57
- .social-share-button-email { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px -16px no-repeat; background-size:80px 64px; }
58
- .social-share-button-facebook { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -32px 0px no-repeat; background-size:80px 64px; }
59
- .social-share-button-flickr { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -32px -16px no-repeat; background-size:80px 64px; }
60
- .social-share-button-google_bookmark { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px -32px no-repeat; background-size:80px 64px; }
61
- .social-share-button-google_plus { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px -32px no-repeat; background-size:80px 64px; }
62
- .social-share-button-kaixin001 { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -32px -32px no-repeat; background-size:80px 64px; }
63
- .social-share-button-pinterest { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -48px 0px no-repeat; background-size:80px 64px; }
64
- .social-share-button-plurk { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -48px -16px no-repeat; background-size:80px 64px; }
65
- .social-share-button-qq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -48px -32px no-repeat; background-size:80px 64px; }
66
- .social-share-button-renren { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px -48px no-repeat; background-size:80px 64px; }
67
- .social-share-button-tqq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px -48px no-repeat; background-size:80px 64px; }
68
- .social-share-button-tumblr { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -32px -48px no-repeat; background-size:80px 64px; }
69
- .social-share-button-twitter { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -48px -48px no-repeat; background-size:80px 64px; }
70
- .social-share-button-weibo { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -64px 0px no-repeat; background-size:80px 64px; }
71
- .social-share-button-linkedin { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -64px -16px no-repeat; background-size:80px 64px; }
1
+ $size: 18px;
2
+
3
+ .social-share-button {
4
+ .ssb-icon {
5
+ background-position: center center;
6
+ background-repeat: no-repeat;
7
+ background-size: $size $size;
8
+ display: inline-block;
9
+ height: $size;
10
+ width: $size;
11
+ }
12
+
13
+ @each $site in twitter, facebook, google_bookmark, google_plus, weibo, qq,
14
+ delicious, linkedin, tumblr, pinterest, douban, weichat, email {
15
+ .ssb-#{$site} {
16
+ background-image: image-url('social-share-button/#{$site}.svg');
17
+ }
18
+ }
72
19
  }
@@ -1,3 +1,3 @@
1
1
  SocialShareButton.configure do |config|
2
- config.allow_sites = %w(twitter facebook google_plus weibo douban tqq renren qq kaixin001 baidu google_bookmark delicious huaban tumblr plurk pinterest email linkedin)
2
+ config.allow_sites = %w(twitter facebook google_plus weibo qq douban google_bookmark delicious tumblr pinterest email linkedin weichat)
3
3
  end
@@ -6,15 +6,11 @@ en:
6
6
  facebook: Facebook
7
7
  douban: Douban
8
8
  qq: Qzone
9
- tqq: Tqq
10
9
  delicious: Delicious
11
- baidu: Baidu.com
12
- kaixin001: Kaixin001.com
13
- renren: Renren.com
14
10
  google_plus: Google+
15
11
  google_bookmark: Google Bookmark
16
12
  tumblr: Tumblr
17
- plurk: Plurk
18
13
  pinterest: Pinterest
19
14
  email: Email
20
15
  linkedin: Linkedin
16
+ weichat: Weichat
@@ -5,17 +5,12 @@
5
5
  twitter: Twitter
6
6
  facebook: Facebook
7
7
  douban: 豆瓣
8
- qq: QQ空间
9
- tqq: 腾讯微博
8
+ qq: QQ 空间
10
9
  delicious: Delicious
11
- baidu: 百度收藏
12
- kaixin001: 开心网
13
- renren: 人人网
14
10
  google_plus: Google+
15
11
  google_bookmark: Google 收藏
16
12
  tumblr: Tumblr
17
- plurk: Plurk
18
13
  pinterest: Pinterest
19
14
  email: Email
20
15
  linkedin: Linkedin
21
-
16
+ weichat: 微信
@@ -5,17 +5,12 @@
5
5
  twitter: Twitter
6
6
  facebook: Facebook
7
7
  douban: 豆瓣
8
- qq: QQ空間
9
- tqq: 腾讯微博
8
+ qq: QQ 空間
10
9
  delicious: Delicious
11
- baidu: 百度收藏
12
- kaixin001: 開心網
13
- renren: 人人網
14
10
  google_plus: Google+
15
11
  google_bookmark: Google 收藏
16
12
  tumblr: Tumblr
17
- plurk: 噗浪
18
13
  pinterest: Pinterest
19
14
  email: Email
20
15
  linkedin: Linkedin
21
-
16
+ weichat: 微信
@@ -5,14 +5,26 @@ module SocialShareButton
5
5
  yield self.config ||= Config.new
6
6
  end
7
7
  end
8
-
8
+
9
9
  class Config
10
- # enable social sites to share,
11
- # * default : twitter facebook weibo douban
12
- # * site support: twitter facebook weibo douban
10
+ # enable social sites to share,
11
+ # * site support:
12
+ # - twitter
13
+ # - facebook
14
+ # - google_plus
15
+ # - weibo
16
+ # - qq
17
+ # - douban
18
+ # - google_bookmark
19
+ # - delicious
20
+ # - tumblr
21
+ # - pinterest
22
+ # - email
23
+ # - linkedin
24
+ # - weichat
13
25
  attr_accessor :allow_sites
14
-
26
+
15
27
  def initialize
16
28
  end
17
29
  end
18
- end
30
+ end
@@ -8,18 +8,18 @@ module SocialShareButton
8
8
  rel = opts[:rel]
9
9
  html = []
10
10
  html << "<div class='social-share-button' data-title='#{h title}' data-img='#{opts[:image]}'"
11
- html << "data-url='#{opts[:url]}' data-desc='#{opts[:desc]}' data-popup='#{opts[:popup]}' data-via='#{opts[:via]}'>"
11
+ html << "data-url='#{opts[:url]}' data-desc='#{opts[:desc]}' data-via='#{opts[:via]}'>"
12
12
 
13
13
  opts[:allow_sites].each do |name|
14
14
  extra_data = opts.select { |k, _| k.to_s.start_with?('data') } if name.eql?('tumblr')
15
15
  special_data = opts.select { |k, _| k.to_s.start_with?('data-' + name) }
16
16
 
17
17
  link_title = t "social_share_button.share_to", :name => t("social_share_button.#{name.downcase}")
18
- html << link_to("","#", {:rel => ["nofollow", rel],
19
- "data-site" => name,
20
- :class => "social-share-button-#{name}",
21
- :onclick => "return SocialShareButton.share(this);",
22
- :title => h(link_title)}.merge(extra_data).merge(special_data))
18
+ html << link_to("", "#", { :rel => ["nofollow", rel],
19
+ "data-site" => name,
20
+ :class => "ssb-icon ssb-#{name}",
21
+ :onclick => "return SocialShareButton.share(this);",
22
+ :title => h(link_title) }.merge(extra_data).merge(special_data))
23
23
  end
24
24
  html << "</div>"
25
25
  raw html.join("\n")
@@ -1,3 +1,3 @@
1
1
  module SocialShareButton
2
- VERSION = "0.2.1"
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social-share-button
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-05 00:00:00.000000000 Z
11
+ date: 2016-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -62,8 +62,19 @@ extra_rdoc_files: []
62
62
  files:
63
63
  - CHANGELOG.md
64
64
  - README.md
65
- - app/assets/images/sprites/social-share-button.png
66
- - app/assets/images/sprites/social-share-button@2x.png
65
+ - app/assets/images/social-share-button/delicious.svg
66
+ - app/assets/images/social-share-button/douban.svg
67
+ - app/assets/images/social-share-button/email.svg
68
+ - app/assets/images/social-share-button/facebook.svg
69
+ - app/assets/images/social-share-button/google_bookmark.svg
70
+ - app/assets/images/social-share-button/google_plus.svg
71
+ - app/assets/images/social-share-button/linkedin.svg
72
+ - app/assets/images/social-share-button/pinterest.svg
73
+ - app/assets/images/social-share-button/qq.svg
74
+ - app/assets/images/social-share-button/tumblr.svg
75
+ - app/assets/images/social-share-button/twitter.svg
76
+ - app/assets/images/social-share-button/weibo.svg
77
+ - app/assets/images/social-share-button/weichat.svg
67
78
  - app/assets/javascripts/social-share-button.coffee
68
79
  - app/assets/stylesheets/social-share-button.scss
69
80
  - lib/generators/social_share_button/install_generator.rb
@@ -97,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
108
  version: '0'
98
109
  requirements: []
99
110
  rubyforge_project:
100
- rubygems_version: 2.5.1
111
+ rubygems_version: 2.4.8
101
112
  signing_key:
102
113
  specification_version: 4
103
114
  summary: Helper for add social share feature in your Rails app. Twitter, Facebook,