Version Description
- Added Tumblr, Hubpages, Deviantart icons.
- Added some css to remove underline decoration from icons.
Download this release
Release Info
Developer | lucymtc |
Plugin | Simple Follow Me Social Buttons Widget |
Version | 2.0 |
Comparing to | |
See all releases |
Code changes from version 1.9 to 2.0
- assets/css/icons.css +47 -102
- assets/css/style.css +1 -0
- assets/fonts/social_buttons.eot +0 -0
- assets/fonts/social_buttons.svg +6 -0
- assets/fonts/social_buttons.ttf +0 -0
- assets/fonts/social_buttons.woff +0 -0
- assets/js/widget.js +21 -18
- includes/widget.php +15 -7
- readme.txt +9 -2
- simple-follow-me-social-buttons-widget.php +27 -37
assets/css/icons.css
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
@font-face {
|
2 |
font-family: 'social_buttons';
|
3 |
-
src:url('../fonts/social_buttons.eot?
|
4 |
-
src:url('../fonts/social_buttons.eot?#
|
5 |
-
url('../fonts/social_buttons.woff?
|
6 |
-
url('../fonts/social_buttons.ttf?
|
7 |
-
url('../fonts/social_buttons.svg?
|
8 |
font-weight: normal;
|
9 |
font-style: normal;
|
10 |
}
|
@@ -23,118 +23,63 @@
|
|
23 |
-moz-osx-font-smoothing: grayscale;
|
24 |
}
|
25 |
|
26 |
-
/* V2 */
|
27 |
|
28 |
-
.sfmsb-icon-googleplus.square:before {
|
29 |
-
|
30 |
-
}
|
31 |
-
.sfmsb-icon-googleplus.circle:before {
|
32 |
-
content: "\e617";
|
33 |
-
}
|
34 |
|
35 |
-
.sfmsb-icon-facebook.square:before
|
36 |
-
|
37 |
-
}
|
38 |
-
.sfmsb-icon-facebook.circle:before {
|
39 |
-
content: "\e601";
|
40 |
-
}
|
41 |
|
42 |
-
.sfmsb-icon-twitter.square:before
|
43 |
-
|
44 |
-
}
|
45 |
-
.sfmsb-icon-twitter.circle:before {
|
46 |
-
content: "\e615";
|
47 |
-
}
|
48 |
|
49 |
-
.sfmsb-icon-feed.square:before
|
50 |
-
|
51 |
-
}
|
52 |
-
.sfmsb-icon-feed.circle:before {
|
53 |
-
content: "\e614";
|
54 |
-
}
|
55 |
|
56 |
-
.sfmsb-icon-vimeo.square:before
|
57 |
-
|
58 |
-
}
|
59 |
-
.sfmsb-icon-vimeo.circle:before {
|
60 |
-
content: "\e616";
|
61 |
-
}
|
62 |
|
63 |
-
.sfmsb-icon-github.circle:before
|
64 |
-
|
65 |
-
}
|
66 |
|
67 |
-
.sfmsb-icon-
|
68 |
-
|
69 |
-
}
|
70 |
|
71 |
-
.sfmsb-icon-
|
72 |
-
|
73 |
-
}
|
74 |
-
.sfmsb-icon-wordpress.square:before {
|
75 |
-
content: "\e61c";
|
76 |
-
}
|
77 |
|
78 |
-
.sfmsb-icon-
|
79 |
-
|
80 |
-
}
|
81 |
|
82 |
-
.sfmsb-icon-
|
83 |
-
|
84 |
-
}
|
85 |
|
86 |
-
.sfmsb-icon-
|
87 |
-
|
88 |
-
}
|
89 |
-
.sfmsb-icon-linkedin.circle:before {
|
90 |
-
content: "\e606";
|
91 |
-
}
|
92 |
|
93 |
-
.sfmsb-icon-
|
94 |
-
|
95 |
-
}
|
96 |
-
.sfmsb-icon-youtube.circle:before {
|
97 |
-
content: "\e60f";
|
98 |
-
}
|
99 |
|
100 |
-
.sfmsb-icon-
|
101 |
-
|
102 |
-
}
|
103 |
-
.sfmsb-icon-instagram.circle:before {
|
104 |
-
content: "\e605";
|
105 |
-
}
|
106 |
|
107 |
-
.sfmsb-icon-
|
108 |
-
|
109 |
-
}
|
110 |
-
.sfmsb-icon-email.circle:before {
|
111 |
-
content: "\e621";
|
112 |
-
}
|
113 |
|
114 |
-
.sfmsb-icon-
|
115 |
-
|
116 |
-
}
|
117 |
-
.sfmsb-icon-soundcloud.circle:before {
|
118 |
-
content: "\e619";
|
119 |
-
}
|
120 |
|
121 |
-
.sfmsb-icon-
|
122 |
-
|
123 |
-
}
|
124 |
-
.sfmsb-icon-itunes.circle:before {
|
125 |
-
content: "\e600";
|
126 |
-
}
|
127 |
|
128 |
-
.sfmsb-icon-
|
129 |
-
|
130 |
-
}
|
131 |
-
.sfmsb-icon-bloglovin.circle:before {
|
132 |
-
content: "\e618";
|
133 |
-
}
|
134 |
|
135 |
-
.sfmsb-icon-
|
136 |
-
|
137 |
-
|
138 |
-
.sfmsb-icon-
|
139 |
-
|
140 |
-
|
|
|
|
1 |
@font-face {
|
2 |
font-family: 'social_buttons';
|
3 |
+
src:url('../fonts/social_buttons.eot?6rn0ly5');
|
4 |
+
src:url('../fonts/social_buttons.eot?#iefix6rn0ly5') format('embedded-opentype'),
|
5 |
+
url('../fonts/social_buttons.woff?6rn0ly5') format('woff'),
|
6 |
+
url('../fonts/social_buttons.ttf?6rn0ly5') format('truetype'),
|
7 |
+
url('../fonts/social_buttons.svg?6rn0ly5#social_buttons') format('svg');
|
8 |
font-weight: normal;
|
9 |
font-style: normal;
|
10 |
}
|
23 |
-moz-osx-font-smoothing: grayscale;
|
24 |
}
|
25 |
|
|
|
26 |
|
27 |
+
.sfmsb-icon-googleplus.square:before { content: "\e60e"; }
|
28 |
+
.sfmsb-icon-googleplus.circle:before { content: "\e617"; }
|
|
|
|
|
|
|
|
|
29 |
|
30 |
+
.sfmsb-icon-facebook.square:before { content: "\e610"; }
|
31 |
+
.sfmsb-icon-facebook.circle:before { content: "\e601"; }
|
|
|
|
|
|
|
|
|
32 |
|
33 |
+
.sfmsb-icon-twitter.square:before { content: "\e612"; }
|
34 |
+
.sfmsb-icon-twitter.circle:before { content: "\e615"; }
|
|
|
|
|
|
|
|
|
35 |
|
36 |
+
.sfmsb-icon-feed.square:before { content: "\e613"; }
|
37 |
+
.sfmsb-icon-feed.circle:before { content: "\e614"; }
|
|
|
|
|
|
|
|
|
38 |
|
39 |
+
.sfmsb-icon-vimeo.square:before { content: "\e61b"; }
|
40 |
+
.sfmsb-icon-vimeo.circle:before { content: "\e616"; }
|
|
|
|
|
|
|
|
|
41 |
|
42 |
+
.sfmsb-icon-github.circle:before { content: "\e602"; }
|
43 |
+
.sfmsb-icon-github.square:before { content: "\e603"; }
|
|
|
44 |
|
45 |
+
.sfmsb-icon-wordpress.circle:before { content: "\e61d"; }
|
46 |
+
.sfmsb-icon-wordpress.square:before { content: "\e61c"; }
|
|
|
47 |
|
48 |
+
.sfmsb-icon-pinterest.square:before { content: "\e60b"; }
|
49 |
+
.sfmsb-icon-pinterest.circle:before { content: "\e60a"; }
|
|
|
|
|
|
|
|
|
50 |
|
51 |
+
.sfmsb-icon-linkedin.square:before { content: "\e611"; }
|
52 |
+
.sfmsb-icon-linkedin.circle:before { content: "\e606"; }
|
|
|
53 |
|
54 |
+
.sfmsb-icon-youtube.square:before { content: "\e61e"; }
|
55 |
+
.sfmsb-icon-youtube.circle:before { content: "\e60f"; }
|
|
|
56 |
|
57 |
+
.sfmsb-icon-instagram.square:before { content: "\e604"; }
|
58 |
+
.sfmsb-icon-instagram.circle:before { content: "\e605"; }
|
|
|
|
|
|
|
|
|
59 |
|
60 |
+
.sfmsb-icon-email.square:before { content: "\e608"; }
|
61 |
+
.sfmsb-icon-email.circle:before { content: "\e621"; }
|
|
|
|
|
|
|
|
|
62 |
|
63 |
+
.sfmsb-icon-soundcloud.square:before { content: "\e61a"; }
|
64 |
+
.sfmsb-icon-soundcloud.circle:before { content: "\e619"; }
|
|
|
|
|
|
|
|
|
65 |
|
66 |
+
.sfmsb-icon-itunes.square:before { content: "\e607"; }
|
67 |
+
.sfmsb-icon-itunes.circle:before { content: "\e600"; }
|
|
|
|
|
|
|
|
|
68 |
|
69 |
+
.sfmsb-icon-bloglovin.square:before { content: "\e61f"; }
|
70 |
+
.sfmsb-icon-bloglovin.circle:before { content: "\e618"; }
|
|
|
|
|
|
|
|
|
71 |
|
72 |
+
.sfmsb-icon-flickr.square:before { content: "\e620"; }
|
73 |
+
.sfmsb-icon-flickr.circle:before { content: "\e622"; }
|
|
|
|
|
|
|
|
|
74 |
|
75 |
+
.sfmsb-icon-tumblr.square:before { content: "\e627"; }
|
76 |
+
.sfmsb-icon-tumblr.circle:before { content: "\e628"; }
|
|
|
|
|
|
|
|
|
77 |
|
78 |
+
.sfmsb-icon-hubpages.square:before { content: "\e624"; }
|
79 |
+
.sfmsb-icon-hubpages.circle:before { content: "\e623"; }
|
80 |
+
|
81 |
+
.sfmsb-icon-hubpages.square:before { content: "\e624"; }
|
82 |
+
.sfmsb-icon-hubpages.circle:before { content: "\e623"; }
|
83 |
+
|
84 |
+
.sfmsb-icon-deviantart.square:before { content: "\e626"; }
|
85 |
+
.sfmsb-icon-deviantart.circle:before { content: "\e625"; }
|
assets/css/style.css
CHANGED
@@ -39,6 +39,7 @@
|
|
39 |
margin-right:10px;
|
40 |
}
|
41 |
|
|
|
42 |
.sfmsb-follow-social-buttons a:hover{
|
43 |
text-decoration:none !important;
|
44 |
}
|
39 |
margin-right:10px;
|
40 |
}
|
41 |
|
42 |
+
.sfmsb-follow-social-buttons a,
|
43 |
.sfmsb-follow-social-buttons a:hover{
|
44 |
text-decoration:none !important;
|
45 |
}
|
assets/fonts/social_buttons.eot
CHANGED
Binary file
|
assets/fonts/social_buttons.svg
CHANGED
@@ -42,4 +42,10 @@
|
|
42 |
<glyph unicode="" d="M84.957 137.377c4.828-0.006 9.657-0.012 14.485-0.018-4.412-0.334-8.823-0.669-13.553-1.027 0-5.726 0-11.127 0-16.528-0.311-0.029-0.621-0.059-0.932-0.088 0 5.888 0 11.774 0 17.661zM125.097 170.292c1.874 0 3.746 0 5.62 0 0.007-0.216 0.023-0.432 0.048-0.646-1.904-0.009-3.807-0.018-5.71-0.026 0.016 0.223 0.030 0.447 0.042 0.672zM125.097 170.292c-0.012-0.225-0.026-0.449-0.042-0.673-1.063-0.008-2.127-0.016-3.191-0.023 0.015 0.231 0.022 0.464 0.023 0.696 1.069 0 2.139 0 3.21 0zM130.764 169.646c-0.025 0.215-0.041 0.431-0.048 0.646 0.803 0 1.605 0 2.408 0 0.003-0.221 0.013-0.44 0.029-0.66-0.796 0.005-1.592 0.010-2.389 0.014zM434.975 135.771c-0.218-0.018-0.437-0.026-0.655-0.025-0.133 0.759-0.265 1.519-0.398 2.277 0.352 0.052 0.702 0.104 1.054 0.157-0.001-0.803-0.001-1.606-0.001-2.409zM417 480h-322c-52.467 0-95-42.533-95-95v-322c0-52.467 42.533-95 95-95h322c52.467 0 95 42.533 95 95v322c0 52.467-42.533 95-95 95zM139.974 137.107c0-6.050 0-11.343 0-17.164-5.39 0-10.652 0-16.53 0 0-18.18 0-35.851 0-53.775-8.174 0-15.728 0-23.873 0 0 17.725 0 35.401 0 53.636-4.944 0-9.313 0-13.682 0 0 5.401 0 10.803 0 16.528 4.729 0.358 9.141 0.693 13.553 1.027 0.274 3.274 0.43 6.564 0.845 9.821 1.396 10.97 5.084 19.933 21.576 22.415 1.064 0.008 2.128 0.016 3.191 0.023 1.903 0.009 3.806 0.018 5.71 0.026 0.796-0.004 1.593-0.009 2.389-0.014 2.238-0.337 4.477-0.674 7.36-1.107-0.421-5.509-0.831-10.877-1.253-16.407-4.847-0.026-10.342 2.543-13.345-2.098-2.133-3.296-2.279-7.88-3.576-12.912 6.708 0.001 12.075 0.001 17.635 0.001zM175.98 66.209c-7.677 0-15.224 0-23.147 0 0 33.678 0 67.391 0 101.712 7.743 0 15.284 0 23.147 0 0-33.958 0-67.681 0-101.712zM196.742 166.177c7.68 0 15.197 0 23.122 0 0-5.664 0-11.302 0-17.259-7.563 0-15.094 0-23.122 0 0 5.793 0 11.343 0 17.259zM219.995 66.184c-7.753 0-15.297 0-23.153 0 0 23.415 0 46.749 0 70.588 7.784 0 15.334 0 23.153 0 0-23.625 0-46.964 0-70.588zM293.183 67.671c-15.212-6.168-39.877-4.819-52.011 11.678-11.736 15.953-10.125 49.267 19.994 57.375 8.966 2.413 17.938 2.542 26.896-0.057 1.021-0.296 2.021-0.687 3.003-1.103 0.599-0.252 1.142-0.636 2.077-1.169-0.522-5.599-1.047-11.24-1.604-17.22-10.923 4.27-21.175 6.327-29.086-4.202-4.756-6.328-4.488-16.492-0.068-22.679 5.794-8.108 15.117-9.769 30.801-5.091-0.002-6.091-0.002-11.766-0.002-17.532zM346.433 66.244c-5.902 10.918-12.012 22.222-18.121 33.526-0.292-0.084-0.583-0.167-0.876-0.251 0-11.003 0-22.006 0-33.31-7.958 0-15.507 0-23.461 0 0 33.812 0 67.639 0 101.725 7.78 0 15.325 0 23.317 0 0-19.976 0-39.68 0-59.384 0.336-0.128 0.671-0.257 1.008-0.386 6.282 9.477 12.566 18.954 18.968 28.609 8.354 0 16.685 0 25.876 0-8.080-11.090-15.741-21.604-23.609-32.404 8.437-12.591 16.808-25.084 25.546-38.126-9.799 0.001-18.917 0.001-28.648 0.001zM433.094 118.082c-3.229 0-6.021 0.12-8.801-0.023-6.983-0.36-12.134-3.754-14.237-10.405-1.387-4.385-1.992-9.142-2.157-13.76-0.323-9.068-0.095-18.155-0.095-27.61-7.901 0-15.412 0-23.247 0 0 23.489 0 46.814 0 70.474 6.953 0 13.703 0 21.012 0 0.17-3.751 0.333-7.393 0.53-11.749 0.823 0.955 1.317 1.351 1.584 1.864 4.712 9.077 12.25 12.627 22.237 11.461 1.328-0.155 2.668-0.209 4.001-0.31 0.134-0.759 0.266-1.519 0.398-2.277-0.413-5.962-0.827-11.924-1.225-17.665zM260.165 296.92c0-51.791-41.986-93.777-93.777-93.777s-93.777 41.986-93.777 93.777c0 51.791 41.986 93.777 93.777 93.777s93.777-41.986 93.777-93.777zM449.235 296.92c0-51.791-41.986-93.777-93.777-93.777s-93.777 41.986-93.777 93.777c0 51.791 41.986 93.777 93.777 93.777s93.777-41.986 93.777-93.777z" />
|
43 |
<glyph unicode="" d="M267.8 186.784c-6.248-6.248-16.376-6.248-22.624 0l-12.64 12.64-48.656-47.424h144.816l-48.64 47.032-12.256-12.248zM353.648 296h-194.52l96.872-96 97.648 96zM144 287.952v-135.952h16.488l60.224 59.24-76.712 76.712zM352.488 152h15.512v134.976l-75.744-75.736 60.232-59.24zM256 480c-141.384 0-256-114.616-256-256s114.616-256 256-256 256 114.616 256 256-114.616 256-256 256zM384 152c0-8.832-7.168-16-16-16h-224c-8.832 0-16 7.168-16 16v144c0 8.832 7.168 16 16 16h224c8.832 0 16-7.168 16-16v-144z" />
|
44 |
<glyph unicode="" d="M83.739 138.634c4.865-0.006 9.729-0.013 14.594-0.019-4.444-0.337-8.889-0.674-13.654-1.035 0-5.769 0-11.211 0-16.652-0.313-0.029-0.626-0.059-0.939-0.088-0.001 5.931-0.001 11.862-0.001 17.794zM124.181 171.796c1.887 0 3.774 0 5.662 0 0.002-0.225 0.016-0.447 0.042-0.67-1.917-0.005-3.832-0.009-5.748-0.014 0.018 0.228 0.032 0.455 0.044 0.684zM124.181 171.796c-0.011-0.229-0.026-0.456-0.045-0.684-1.071-0.006-2.143-0.012-3.213-0.018 0.015 0.233 0.022 0.467 0.023 0.701 1.078 0.001 2.156 0.001 3.235 0.001zM129.884 171.126c-0.026 0.223-0.040 0.445-0.042 0.67 0.809 0 1.618 0 2.426 0 0.001-0.227 0.012-0.451 0.034-0.677-0.806 0.003-1.612 0.005-2.418 0.007zM256 480c-141.384 0-256-114.616-256-256s114.616-256 256-256c141.387 0 256 114.615 256 256s-114.613 256-256 256zM196.51 167.8c7.771 0 15.258 0 23.151 0 0-5.853 0-11.532 0-17.537-7.617 0-15.203 0-23.151 0 0 5.633 0 11.32 0 17.537zM139.015 138.488c0-6.041 0-11.462 0-17.421-5.276 0-10.578 0-16.604 0 0-9.47 0-18.422 0-27.374 0-8.848 0-17.695 0-26.805-8.131 0-15.741 0-23.948 0 0 17.858 0 35.667 0 54.039-4.983 0-9.384 0-13.785 0 0 5.441 0 10.884 0 16.652 4.765 0.361 9.21 0.698 13.654 1.035 0.277 3.299 0.434 6.613 0.851 9.895 1.407 11.048 5.119 20.083 21.739 22.585 1.071 0.006 2.142 0.012 3.213 0.018 1.916 0.005 3.832 0.009 5.748 0.014 0.806-0.002 1.612-0.004 2.418-0.007 2.255-0.334 4.511-0.669 7.411-1.1-0.425-5.562-0.838-10.972-1.263-16.537-4.889-0.022-10.423 2.563-13.449-2.113-2.147-3.319-2.29-7.934-3.562-12.881 6.622 0 11.915 0 17.577 0zM175.454 66.921c-7.759 0-15.364 0-23.337 0 0 33.954 0 67.922 0 102.494 7.826 0 15.422 0 23.337 0 0-34.242 0-68.218 0-102.494zM219.756 66.788c-7.879 0-15.393 0-23.256 0 0 23.74 0 47.35 0 71.24 7.726 0 15.334 0 23.256 0 0-23.734 0-47.245 0-71.24zM293.51 68.408c-15.089-6.205-40.084-4.911-52.354 11.72-11.833 16.039-10.269 49.634 20.070 57.835 9.032 2.442 18.076 2.59 27.094-0.047 1.647-0.48 3.209-1.256 5.179-2.043-0.536-5.845-1.059-11.53-1.613-17.579-10.975 4.252-21.313 6.379-29.291-4.207-4.891-6.488-4.548-16.955 0.106-23.182 5.965-7.98 15.392-9.578 30.81-4.812-0.001-6.131-0.001-11.85-0.001-17.685zM347.193 66.936c-5.954 11.021-12.080 22.361-18.206 33.701-0.27-0.030-0.538-0.061-0.808-0.091 0-11.118 0-22.236 0-33.633-8.202 0-15.812 0-23.805 0 0 33.999 0 67.981 0 102.376 7.751 0 15.429 0 23.571 0 0-20.041 0-39.887 0-59.731 0.321-0.114 0.642-0.229 0.964-0.344 6.345 9.56 12.688 19.12 19.113 28.8 8.466 0 16.856 0 26.088 0-8.165-11.184-15.903-21.781-23.819-32.623 8.66-12.922 17.030-25.413 25.771-38.455-9.924 0-19.124 0-28.869 0zM434.588 119.202c-3.152 0-5.932 0.097-8.702-0.019-7.205-0.3-12.453-3.754-14.659-10.614-1.336-4.157-1.938-8.671-2.119-13.055-0.329-7.933-0.096-15.888-0.098-23.834 0-1.452 0-2.905 0-4.706-7.918 0-15.382 0-23.296 0 0 23.543 0 47.121 0 71.037 6.883 0 13.679 0 21.097 0 0-3.781 0-7.45 0-10.854 4.202 3.779 7.792 7.949 12.241 10.755 4.839 3.052 10.583 2.14 16.647 0.983-0.379-6.713-0.746-13.214-1.111-19.693zM259.923 296.92c0-51.791-41.986-93.777-93.777-93.777s-93.777 41.986-93.777 93.777c0 51.791 41.986 93.777 93.777 93.777s93.777-41.986 93.777-93.777zM448.993 296.92c0-51.791-41.986-93.777-93.777-93.777s-93.777 41.986-93.777 93.777c0 51.791 41.986 93.777 93.777 93.777s93.777-41.986 93.777-93.777z" />
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
</font></defs></svg>
|
42 |
<glyph unicode="" d="M84.957 137.377c4.828-0.006 9.657-0.012 14.485-0.018-4.412-0.334-8.823-0.669-13.553-1.027 0-5.726 0-11.127 0-16.528-0.311-0.029-0.621-0.059-0.932-0.088 0 5.888 0 11.774 0 17.661zM125.097 170.292c1.874 0 3.746 0 5.62 0 0.007-0.216 0.023-0.432 0.048-0.646-1.904-0.009-3.807-0.018-5.71-0.026 0.016 0.223 0.030 0.447 0.042 0.672zM125.097 170.292c-0.012-0.225-0.026-0.449-0.042-0.673-1.063-0.008-2.127-0.016-3.191-0.023 0.015 0.231 0.022 0.464 0.023 0.696 1.069 0 2.139 0 3.21 0zM130.764 169.646c-0.025 0.215-0.041 0.431-0.048 0.646 0.803 0 1.605 0 2.408 0 0.003-0.221 0.013-0.44 0.029-0.66-0.796 0.005-1.592 0.010-2.389 0.014zM434.975 135.771c-0.218-0.018-0.437-0.026-0.655-0.025-0.133 0.759-0.265 1.519-0.398 2.277 0.352 0.052 0.702 0.104 1.054 0.157-0.001-0.803-0.001-1.606-0.001-2.409zM417 480h-322c-52.467 0-95-42.533-95-95v-322c0-52.467 42.533-95 95-95h322c52.467 0 95 42.533 95 95v322c0 52.467-42.533 95-95 95zM139.974 137.107c0-6.050 0-11.343 0-17.164-5.39 0-10.652 0-16.53 0 0-18.18 0-35.851 0-53.775-8.174 0-15.728 0-23.873 0 0 17.725 0 35.401 0 53.636-4.944 0-9.313 0-13.682 0 0 5.401 0 10.803 0 16.528 4.729 0.358 9.141 0.693 13.553 1.027 0.274 3.274 0.43 6.564 0.845 9.821 1.396 10.97 5.084 19.933 21.576 22.415 1.064 0.008 2.128 0.016 3.191 0.023 1.903 0.009 3.806 0.018 5.71 0.026 0.796-0.004 1.593-0.009 2.389-0.014 2.238-0.337 4.477-0.674 7.36-1.107-0.421-5.509-0.831-10.877-1.253-16.407-4.847-0.026-10.342 2.543-13.345-2.098-2.133-3.296-2.279-7.88-3.576-12.912 6.708 0.001 12.075 0.001 17.635 0.001zM175.98 66.209c-7.677 0-15.224 0-23.147 0 0 33.678 0 67.391 0 101.712 7.743 0 15.284 0 23.147 0 0-33.958 0-67.681 0-101.712zM196.742 166.177c7.68 0 15.197 0 23.122 0 0-5.664 0-11.302 0-17.259-7.563 0-15.094 0-23.122 0 0 5.793 0 11.343 0 17.259zM219.995 66.184c-7.753 0-15.297 0-23.153 0 0 23.415 0 46.749 0 70.588 7.784 0 15.334 0 23.153 0 0-23.625 0-46.964 0-70.588zM293.183 67.671c-15.212-6.168-39.877-4.819-52.011 11.678-11.736 15.953-10.125 49.267 19.994 57.375 8.966 2.413 17.938 2.542 26.896-0.057 1.021-0.296 2.021-0.687 3.003-1.103 0.599-0.252 1.142-0.636 2.077-1.169-0.522-5.599-1.047-11.24-1.604-17.22-10.923 4.27-21.175 6.327-29.086-4.202-4.756-6.328-4.488-16.492-0.068-22.679 5.794-8.108 15.117-9.769 30.801-5.091-0.002-6.091-0.002-11.766-0.002-17.532zM346.433 66.244c-5.902 10.918-12.012 22.222-18.121 33.526-0.292-0.084-0.583-0.167-0.876-0.251 0-11.003 0-22.006 0-33.31-7.958 0-15.507 0-23.461 0 0 33.812 0 67.639 0 101.725 7.78 0 15.325 0 23.317 0 0-19.976 0-39.68 0-59.384 0.336-0.128 0.671-0.257 1.008-0.386 6.282 9.477 12.566 18.954 18.968 28.609 8.354 0 16.685 0 25.876 0-8.080-11.090-15.741-21.604-23.609-32.404 8.437-12.591 16.808-25.084 25.546-38.126-9.799 0.001-18.917 0.001-28.648 0.001zM433.094 118.082c-3.229 0-6.021 0.12-8.801-0.023-6.983-0.36-12.134-3.754-14.237-10.405-1.387-4.385-1.992-9.142-2.157-13.76-0.323-9.068-0.095-18.155-0.095-27.61-7.901 0-15.412 0-23.247 0 0 23.489 0 46.814 0 70.474 6.953 0 13.703 0 21.012 0 0.17-3.751 0.333-7.393 0.53-11.749 0.823 0.955 1.317 1.351 1.584 1.864 4.712 9.077 12.25 12.627 22.237 11.461 1.328-0.155 2.668-0.209 4.001-0.31 0.134-0.759 0.266-1.519 0.398-2.277-0.413-5.962-0.827-11.924-1.225-17.665zM260.165 296.92c0-51.791-41.986-93.777-93.777-93.777s-93.777 41.986-93.777 93.777c0 51.791 41.986 93.777 93.777 93.777s93.777-41.986 93.777-93.777zM449.235 296.92c0-51.791-41.986-93.777-93.777-93.777s-93.777 41.986-93.777 93.777c0 51.791 41.986 93.777 93.777 93.777s93.777-41.986 93.777-93.777z" />
|
43 |
<glyph unicode="" d="M267.8 186.784c-6.248-6.248-16.376-6.248-22.624 0l-12.64 12.64-48.656-47.424h144.816l-48.64 47.032-12.256-12.248zM353.648 296h-194.52l96.872-96 97.648 96zM144 287.952v-135.952h16.488l60.224 59.24-76.712 76.712zM352.488 152h15.512v134.976l-75.744-75.736 60.232-59.24zM256 480c-141.384 0-256-114.616-256-256s114.616-256 256-256 256 114.616 256 256-114.616 256-256 256zM384 152c0-8.832-7.168-16-16-16h-224c-8.832 0-16 7.168-16 16v144c0 8.832 7.168 16 16 16h224c8.832 0 16-7.168 16-16v-144z" />
|
44 |
<glyph unicode="" d="M83.739 138.634c4.865-0.006 9.729-0.013 14.594-0.019-4.444-0.337-8.889-0.674-13.654-1.035 0-5.769 0-11.211 0-16.652-0.313-0.029-0.626-0.059-0.939-0.088-0.001 5.931-0.001 11.862-0.001 17.794zM124.181 171.796c1.887 0 3.774 0 5.662 0 0.002-0.225 0.016-0.447 0.042-0.67-1.917-0.005-3.832-0.009-5.748-0.014 0.018 0.228 0.032 0.455 0.044 0.684zM124.181 171.796c-0.011-0.229-0.026-0.456-0.045-0.684-1.071-0.006-2.143-0.012-3.213-0.018 0.015 0.233 0.022 0.467 0.023 0.701 1.078 0.001 2.156 0.001 3.235 0.001zM129.884 171.126c-0.026 0.223-0.040 0.445-0.042 0.67 0.809 0 1.618 0 2.426 0 0.001-0.227 0.012-0.451 0.034-0.677-0.806 0.003-1.612 0.005-2.418 0.007zM256 480c-141.384 0-256-114.616-256-256s114.616-256 256-256c141.387 0 256 114.615 256 256s-114.613 256-256 256zM196.51 167.8c7.771 0 15.258 0 23.151 0 0-5.853 0-11.532 0-17.537-7.617 0-15.203 0-23.151 0 0 5.633 0 11.32 0 17.537zM139.015 138.488c0-6.041 0-11.462 0-17.421-5.276 0-10.578 0-16.604 0 0-9.47 0-18.422 0-27.374 0-8.848 0-17.695 0-26.805-8.131 0-15.741 0-23.948 0 0 17.858 0 35.667 0 54.039-4.983 0-9.384 0-13.785 0 0 5.441 0 10.884 0 16.652 4.765 0.361 9.21 0.698 13.654 1.035 0.277 3.299 0.434 6.613 0.851 9.895 1.407 11.048 5.119 20.083 21.739 22.585 1.071 0.006 2.142 0.012 3.213 0.018 1.916 0.005 3.832 0.009 5.748 0.014 0.806-0.002 1.612-0.004 2.418-0.007 2.255-0.334 4.511-0.669 7.411-1.1-0.425-5.562-0.838-10.972-1.263-16.537-4.889-0.022-10.423 2.563-13.449-2.113-2.147-3.319-2.29-7.934-3.562-12.881 6.622 0 11.915 0 17.577 0zM175.454 66.921c-7.759 0-15.364 0-23.337 0 0 33.954 0 67.922 0 102.494 7.826 0 15.422 0 23.337 0 0-34.242 0-68.218 0-102.494zM219.756 66.788c-7.879 0-15.393 0-23.256 0 0 23.74 0 47.35 0 71.24 7.726 0 15.334 0 23.256 0 0-23.734 0-47.245 0-71.24zM293.51 68.408c-15.089-6.205-40.084-4.911-52.354 11.72-11.833 16.039-10.269 49.634 20.070 57.835 9.032 2.442 18.076 2.59 27.094-0.047 1.647-0.48 3.209-1.256 5.179-2.043-0.536-5.845-1.059-11.53-1.613-17.579-10.975 4.252-21.313 6.379-29.291-4.207-4.891-6.488-4.548-16.955 0.106-23.182 5.965-7.98 15.392-9.578 30.81-4.812-0.001-6.131-0.001-11.85-0.001-17.685zM347.193 66.936c-5.954 11.021-12.080 22.361-18.206 33.701-0.27-0.030-0.538-0.061-0.808-0.091 0-11.118 0-22.236 0-33.633-8.202 0-15.812 0-23.805 0 0 33.999 0 67.981 0 102.376 7.751 0 15.429 0 23.571 0 0-20.041 0-39.887 0-59.731 0.321-0.114 0.642-0.229 0.964-0.344 6.345 9.56 12.688 19.12 19.113 28.8 8.466 0 16.856 0 26.088 0-8.165-11.184-15.903-21.781-23.819-32.623 8.66-12.922 17.030-25.413 25.771-38.455-9.924 0-19.124 0-28.869 0zM434.588 119.202c-3.152 0-5.932 0.097-8.702-0.019-7.205-0.3-12.453-3.754-14.659-10.614-1.336-4.157-1.938-8.671-2.119-13.055-0.329-7.933-0.096-15.888-0.098-23.834 0-1.452 0-2.905 0-4.706-7.918 0-15.382 0-23.296 0 0 23.543 0 47.121 0 71.037 6.883 0 13.679 0 21.097 0 0-3.781 0-7.45 0-10.854 4.202 3.779 7.792 7.949 12.241 10.755 4.839 3.052 10.583 2.14 16.647 0.983-0.379-6.713-0.746-13.214-1.111-19.693zM259.923 296.92c0-51.791-41.986-93.777-93.777-93.777s-93.777 41.986-93.777 93.777c0 51.791 41.986 93.777 93.777 93.777s93.777-41.986 93.777-93.777zM448.993 296.92c0-51.791-41.986-93.777-93.777-93.777s-93.777 41.986-93.777 93.777c0 51.791 41.986 93.777 93.777 93.777s93.777-41.986 93.777-93.777z" />
|
45 |
+
<glyph unicode="" d="M256 480c-141.385 0-256-114.615-256-256s114.615-256 256-256 256 114.615 256 256-114.615 256-256 256zM379.804 233.704c-9.972-13.078-21.793-24.256-35.249-33.71-1.344-0.944-2.641-1.956-4.224-3.135 0-38.601 0-77.219 0-115.458-9.044-8.42-35.648-15.38-44.061-11.467 0 34.887 0 69.989 0 105.894-28.355-8.978-56.916-12.194-86.186-11.749 0-25.208 0-49.987 0-74.406-6.376-8.143-33.244-15.943-44.173-12.802 0 30.096 0 60.35 0 90.804-10.697 2.049-20.898 4.235-31.186 5.885-6.015 0.965-10.317 3.247-11.67 9.633-1.886 8.902 0.080 17.577 5.197 21.771 12.127-2.097 24.362-4.212 37.245-6.438 0 46.593 0 92.479 0 137.776 8.203 8.741 36.334 16.202 44.371 11.892 0-50.56 0-101.333 0-152.628 29.683-0.368 58.271 3.328 86.261 13.338 0 2.337 0 4.477 0 6.614-0.004 50.825 0.070 101.648-0.134 152.472-0.020 4.921 1.437 8.354 5.845 9.722 10.574 3.282 21.264 6.207 31.981 8.991 1.87 0.485 4.102-0.422 6.635-0.745 0-51.602 0-102.654 0-155.441 10.802 8.739 20.425 16.525 30.187 24.422 8.189-1.031 14.261-14.544 9.161-21.235z" />
|
46 |
+
<glyph unicode="" d="M417 480h-322c-52.467 0-95-42.533-95-95v-322c0-52.467 42.533-95 95-95h322c52.467 0 95 42.533 95 95v322c0 52.467-42.533 95-95 95zM377.962 235.792c-10.125-12.959-21.834-24.222-35.262-33.708-1.346-0.95-2.667-1.934-4.289-3.113 0-38.556 0-77.169 0-116.456-13.497-8.024-27.736-12.461-44.054-12.026 0 36.17 0 71.262 0 107.346-28.382-8.928-56.89-12.228-86.262-11.73 0-25.221 0-50.137 0-74.564-6.922-8.099-32.62-15.541-44.062-12.834 0 30.093 0 60.329 0 91.029-7.885 1.454-15.333 2.81-22.772 4.21-3.262 0.614-6.507 1.315-9.758 1.991-7.604 1.581-9.085 3.125-10.596 11.021 0.012 3.371 0.024 6.742 0.036 10.114 1.29 3.418 2.58 6.836 3.824 10.133 13.655-2.342 26.014-4.462 38.871-6.667 0 46.703 0 92.483 0 137.852 7.668 8.479 35.89 16.082 44.174 11.909 0-50.573 0-101.346 0-152.71 29.668-0.424 58.231 3.309 86.141 13.252 0 54.784 0 109.39 0 163.577 6.178 8.45 34.648 16.745 44.406 12.904 0-50.847 0-101.907 0-152.966 0.41-0.295 0.819-0.589 1.229-0.884 9.604 7.751 19.207 15.501 29.324 23.667 4.965-0.296 7.020-4.633 9.043-8.755 2.013-4.104 3.396-8.254 0.007-12.592z" />
|
47 |
+
<glyph unicode="" d="M256 480c-141.376 0-256-114.624-256-256s114.624-256 256-256 256 114.624 256 256c0 141.408-114.624 256-256 256zM273.664 183.36l-40.48 72.96c17.536 3.008 32.704 3.776 45.888 3.008l22.944-36.704 55.072 13.344c-21.632 21.184-61.152 41.088-133.408 28.224l-4.736-0.864 44.672-82.688-160.864-44.192c-3.488 5.376-6.304 11.136-8.384 17.184-10.4 30.112-1.856 61.024 19.776 85.568 13.088 14.688 31.264 26.912 53.376 35.456l-13.536 28.352c12.032 3.84 25.056 6.72 38.88 8.576l14.208-26.336 4.64 0.736c42.784 6.464 84.576 6.848 123.136-2.208 39.328-7.744 75.392-24.928 92.064-44.224 3.328-3.872 5.92-7.904 7.616-12.032l-160.864-44.16zM148.736 185.536l55.040 13.344-24.608 51.456c-31.424-16.832-35.392-42.144-30.432-64.8z" />
|
48 |
+
<glyph unicode="" d="M416 480h-320c-53.024 0-96-42.976-96-96v-320c0-53.024 42.976-96 96-96h320c53.024 0 96 42.976 96 96v320c0 53.024-42.976 96-96 96zM273.664 183.36l-40.48 72.96c17.536 3.008 32.704 3.776 45.888 3.008l22.944-36.704 55.072 13.344c-21.632 21.184-61.152 41.088-133.408 28.224l-4.736-0.864 44.672-82.688-160.864-44.192c-3.488 5.376-6.304 11.136-8.384 17.184-10.4 30.112-1.856 61.024 19.776 85.568 13.088 14.688 31.264 26.912 53.376 35.456l-13.536 28.352c12.032 3.84 25.056 6.72 38.88 8.576l14.208-26.336 4.64 0.736c42.784 6.464 84.576 6.848 123.136-2.208 39.328-7.744 75.392-24.928 92.064-44.224 3.328-3.872 5.92-7.904 7.616-12.032l-160.864-44.16zM148.736 185.536l55.040 13.344-24.608 51.456c-31.424-16.832-35.392-42.144-30.432-64.8z" />
|
49 |
+
<glyph unicode="" d="M416 480h-320c-53.024 0-96-42.976-96-96v-320c0-53.024 42.976-96 96-96h320c53.024 0 96 42.976 96 96v320c0 53.024-42.976 96-96 96zM351.968 243.2h-76.768v-70.272c0-17.824-0.256-28.064 1.632-33.12 1.92-5.024 6.56-10.24 11.68-13.248 6.816-4.096 14.56-6.112 23.328-6.112 15.552 0 24.736 2.048 40.128 12.192v-46.24c-13.12-6.176-24.576-9.792-35.2-12.288-10.656-2.464-22.144-3.712-34.528-3.712-14.048 0-22.336 1.76-33.12 5.312-10.784 3.52-20 8.64-27.616 15.168-7.648 6.56-12.896 13.568-15.872 20.96-2.944 7.392-4.416 18.080-4.416 32.16v107.712h-41.184v43.52c12.064 3.904 25.568 9.536 34.144 16.864 8.608 7.328 15.52 16.096 20.736 26.368 5.184 10.208 8.768 23.296 10.752 39.136h49.536v-76.8h76.768v-57.6z" />
|
50 |
+
<glyph unicode="" d="M256 480c-141.376 0-256-114.624-256-256s114.624-256 256-256 256 114.624 256 256c0 141.408-114.624 256-256 256zM351.968 243.2h-76.768v-70.272c0-17.824-0.256-28.064 1.632-33.12 1.92-5.024 6.56-10.24 11.68-13.248 6.816-4.096 14.56-6.112 23.328-6.112 15.552 0 24.736 2.048 40.128 12.192v-46.24c-13.12-6.176-24.576-9.792-35.2-12.288-10.656-2.464-22.144-3.712-34.528-3.712-14.048 0-22.336 1.76-33.12 5.312-10.784 3.52-20 8.64-27.616 15.168-7.648 6.56-12.896 13.568-15.872 20.96-2.944 7.392-4.416 18.080-4.416 32.16v107.712h-41.184v43.52c12.064 3.904 25.568 9.536 34.144 16.864 8.608 7.328 15.52 16.096 20.736 26.368 5.184 10.208 8.768 23.296 10.752 39.136h49.536v-76.8h76.768v-57.6z" />
|
51 |
</font></defs></svg>
|
assets/fonts/social_buttons.ttf
CHANGED
Binary file
|
assets/fonts/social_buttons.woff
CHANGED
Binary file
|
assets/js/widget.js
CHANGED
@@ -5,45 +5,48 @@ jQuery(document).ajaxSuccess(function(e, xhr, settings) {
|
|
5 |
});
|
6 |
|
7 |
jQuery(document).ready(function() {
|
|
|
8 |
init();
|
|
|
9 |
});
|
10 |
|
11 |
|
12 |
function init (){
|
13 |
|
14 |
-
jQuery('.sfmsb-color-picker').wpColorPicker();
|
15 |
|
16 |
//** Icon events
|
17 |
-
jQuery('.sfmsb-icons-container a').on('click', function(event, ui){
|
18 |
|
19 |
-
var tmp = jQuery(this).find('span').attr('class').split(' ');
|
20 |
-
tmp
|
21 |
|
22 |
var icon_name = tmp[2];
|
23 |
-
var widget
|
24 |
|
25 |
-
jQuery(widget + ' .sfmsb-initial-message').css('display', 'none');
|
26 |
-
jQuery(widget + ' .sfmsb-input-block').css('display', 'none');
|
27 |
-
jQuery(widget + ' .sfmsb-input-block.sfmsb-' + icon_name).css('display', 'block');
|
28 |
|
29 |
});
|
30 |
|
31 |
//** Input events
|
32 |
-
jQuery('.sfmsb-icons-container input[type=text]').keyup(function() {
|
33 |
|
34 |
-
var tmp = jQuery(this).attr('id').split('-');
|
35 |
-
tmp
|
36 |
|
37 |
var icon_name = tmp[1];
|
38 |
-
|
39 |
-
var widget
|
40 |
-
|
41 |
-
var aTag = jQuery(widget + ' .sfmsb-icon-' + icon_name).closest('a');
|
42 |
|
43 |
-
if(jQuery(this).val() == ''){
|
44 |
-
|
|
|
|
|
45 |
}else{
|
46 |
-
|
|
|
47 |
}
|
48 |
});
|
49 |
|
5 |
});
|
6 |
|
7 |
jQuery(document).ready(function() {
|
8 |
+
|
9 |
init();
|
10 |
+
|
11 |
});
|
12 |
|
13 |
|
14 |
function init (){
|
15 |
|
16 |
+
jQuery( '.sfmsb-color-picker' ).wpColorPicker();
|
17 |
|
18 |
//** Icon events
|
19 |
+
jQuery( '.sfmsb-icons-container a' ).on( 'click', function( event, ui ){
|
20 |
|
21 |
+
var tmp = jQuery( this ).find( 'span' ).attr( 'class' ).split( ' ' );
|
22 |
+
tmp = tmp[0].split( '-' );
|
23 |
|
24 |
var icon_name = tmp[2];
|
25 |
+
var widget = '#' + jQuery( this ).closest( '.widget' ).attr( 'id' );
|
26 |
|
27 |
+
jQuery( widget + ' .sfmsb-initial-message' ).css( 'display', 'none' );
|
28 |
+
jQuery( widget + ' .sfmsb-input-block' ).css( 'display', 'none' );
|
29 |
+
jQuery( widget + ' .sfmsb-input-block.sfmsb-' + icon_name ).css( 'display', 'block' );
|
30 |
|
31 |
});
|
32 |
|
33 |
//** Input events
|
34 |
+
jQuery( '.sfmsb-icons-container input[type=text]' ).keyup( function() {
|
35 |
|
36 |
+
var tmp = jQuery( this ).attr( 'id' ).split( '-' );
|
37 |
+
tmp = tmp[3].split( '_' );
|
38 |
|
39 |
var icon_name = tmp[1];
|
40 |
+
var widget = '#' + jQuery( this ).closest( '.widget' ).attr( 'id' );
|
41 |
+
var aTag = jQuery( widget + ' .sfmsb-icon-' + icon_name ).closest( 'a' );
|
|
|
|
|
42 |
|
43 |
+
if( jQuery(this).val() == '' ){
|
44 |
+
|
45 |
+
aTag.attr( 'class', 'sfmsb-disable' );
|
46 |
+
|
47 |
}else{
|
48 |
+
|
49 |
+
aTag.attr( 'class', 'sfmsb-pending' );
|
50 |
}
|
51 |
});
|
52 |
|
includes/widget.php
CHANGED
@@ -39,8 +39,8 @@ class Sfmsb_Widget extends WP_Widget {
|
|
39 |
|
40 |
|
41 |
$widget_ops = array(
|
42 |
-
'classname'
|
43 |
-
'description' => __('Adds "follow me" social buttons', 'sfmsb_domain')
|
44 |
);
|
45 |
|
46 |
$this->available_buttons = SFMSB::instance()->available_buttons;
|
@@ -51,7 +51,7 @@ class Sfmsb_Widget extends WP_Widget {
|
|
51 |
|
52 |
//** this is not in add_admin_scripts because it would break after widget save, need to be in the construct.
|
53 |
wp_register_script( 'sfmsb-admin-widget-script', SFMSB_PLUGIN_URL . 'assets/js/widget.js', array('jquery', 'wp-color-picker'), SFMSB_PLUGIN_VERSION );
|
54 |
-
add_action(
|
55 |
}
|
56 |
|
57 |
/**
|
@@ -95,7 +95,11 @@ class Sfmsb_Widget extends WP_Widget {
|
|
95 |
|
96 |
//** patch to add a black bg to buttons if color of icons is white
|
97 |
$class = '';
|
98 |
-
|
|
|
|
|
|
|
|
|
99 |
$class = " dark";
|
100 |
}
|
101 |
|
@@ -352,6 +356,7 @@ class Sfmsb_Widget extends WP_Widget {
|
|
352 |
* @since 1.0.0
|
353 |
*/
|
354 |
public static function register_widgets() {
|
|
|
355 |
register_widget( 'Sfmsb_Widget' );
|
356 |
}
|
357 |
|
@@ -361,8 +366,10 @@ class Sfmsb_Widget extends WP_Widget {
|
|
361 |
* @since 1.0.0
|
362 |
*/
|
363 |
public static function add_style() {
|
|
|
364 |
wp_enqueue_style('sfmsb-style', SFMSB_PLUGIN_URL . 'assets/css/style.css', array(), SFMSB_PLUGIN_VERSION);
|
365 |
wp_enqueue_style('sfmsb-icons', SFMSB_PLUGIN_URL . 'assets/css/icons.css', array(), SFMSB_PLUGIN_VERSION);
|
|
|
366 |
}
|
367 |
|
368 |
/**
|
@@ -372,10 +379,10 @@ class Sfmsb_Widget extends WP_Widget {
|
|
372 |
public static function add_admin_scripts() {
|
373 |
|
374 |
wp_enqueue_style( 'wp-color-picker' );
|
375 |
-
|
376 |
wp_enqueue_style('sfmsb-icons', SFMSB_PLUGIN_URL . 'assets/css/icons.css', array(), SFMSB_PLUGIN_VERSION);
|
377 |
-
|
378 |
-
|
379 |
|
380 |
}
|
381 |
|
@@ -385,6 +392,7 @@ class Sfmsb_Widget extends WP_Widget {
|
|
385 |
*/
|
386 |
|
387 |
public static function admin_widget_scripts(){
|
|
|
388 |
wp_enqueue_script('sfmsb-admin-widget-script');
|
389 |
}
|
390 |
|
39 |
|
40 |
|
41 |
$widget_ops = array(
|
42 |
+
'classname' => 'sfmsb_widget',
|
43 |
+
'description' => __( 'Adds "follow me" social buttons', 'sfmsb_domain' )
|
44 |
);
|
45 |
|
46 |
$this->available_buttons = SFMSB::instance()->available_buttons;
|
51 |
|
52 |
//** this is not in add_admin_scripts because it would break after widget save, need to be in the construct.
|
53 |
wp_register_script( 'sfmsb-admin-widget-script', SFMSB_PLUGIN_URL . 'assets/js/widget.js', array('jquery', 'wp-color-picker'), SFMSB_PLUGIN_VERSION );
|
54 |
+
add_action( 'admin_print_scripts-widgets.php', array('Sfmsb_Widget', 'admin_widget_scripts') );
|
55 |
}
|
56 |
|
57 |
/**
|
95 |
|
96 |
//** patch to add a black bg to buttons if color of icons is white
|
97 |
$class = '';
|
98 |
+
|
99 |
+
if( $instance['color'] == '#ffffff' ||
|
100 |
+
$instance['color'] == '#fff' ||
|
101 |
+
$instance['color'] == 'white' ) {
|
102 |
+
|
103 |
$class = " dark";
|
104 |
}
|
105 |
|
356 |
* @since 1.0.0
|
357 |
*/
|
358 |
public static function register_widgets() {
|
359 |
+
|
360 |
register_widget( 'Sfmsb_Widget' );
|
361 |
}
|
362 |
|
366 |
* @since 1.0.0
|
367 |
*/
|
368 |
public static function add_style() {
|
369 |
+
|
370 |
wp_enqueue_style('sfmsb-style', SFMSB_PLUGIN_URL . 'assets/css/style.css', array(), SFMSB_PLUGIN_VERSION);
|
371 |
wp_enqueue_style('sfmsb-icons', SFMSB_PLUGIN_URL . 'assets/css/icons.css', array(), SFMSB_PLUGIN_VERSION);
|
372 |
+
|
373 |
}
|
374 |
|
375 |
/**
|
379 |
public static function add_admin_scripts() {
|
380 |
|
381 |
wp_enqueue_style( 'wp-color-picker' );
|
382 |
+
wp_enqueue_style('sfmsb-admin-style', SFMSB_PLUGIN_URL . 'assets/css/admin.css', array(), SFMSB_PLUGIN_VERSION);
|
383 |
wp_enqueue_style('sfmsb-icons', SFMSB_PLUGIN_URL . 'assets/css/icons.css', array(), SFMSB_PLUGIN_VERSION);
|
384 |
+
|
385 |
+
wp_enqueue_script( 'wp-color-picker' );
|
386 |
|
387 |
}
|
388 |
|
392 |
*/
|
393 |
|
394 |
public static function admin_widget_scripts(){
|
395 |
+
|
396 |
wp_enqueue_script('sfmsb-admin-widget-script');
|
397 |
}
|
398 |
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Simple Follow Me Social Buttons Widget ===
|
2 |
Contributors: lucymtc
|
3 |
Donate link: http://wptips.me/simple-follow-social-buttons-widget/
|
4 |
-
Tags: social,follow me,buttons,twitter,facebook,pinterest,google plus,linkedin,wordpress,rss,github,youtube,vimeo,instagram,email,sound cloud,itunes,bloglovin,flickr,font icons,retina ready
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.0
|
7 |
-
Stable tag:
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -37,6 +37,9 @@ Availbale Icons:
|
|
37 |
* iTunes
|
38 |
* Bloglovin
|
39 |
* Flickr
|
|
|
|
|
|
|
40 |
|
41 |
Missing any icons? Please feel free to request the icon you need.
|
42 |
|
@@ -56,6 +59,10 @@ http://wptips.me/simple-follow-social-buttons-widget/
|
|
56 |
|
57 |
== Changelog ==
|
58 |
|
|
|
|
|
|
|
|
|
59 |
= 1.9 =
|
60 |
* Added Flickr icon.
|
61 |
|
1 |
=== Simple Follow Me Social Buttons Widget ===
|
2 |
Contributors: lucymtc
|
3 |
Donate link: http://wptips.me/simple-follow-social-buttons-widget/
|
4 |
+
Tags: social,follow me,buttons,twitter,facebook,pinterest,google plus,linkedin,wordpress,rss,github,youtube,vimeo,instagram,email,sound cloud,itunes,bloglovin,flickr,tumblr,hubpages,deviantart,font icons,retina ready
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
37 |
* iTunes
|
38 |
* Bloglovin
|
39 |
* Flickr
|
40 |
+
* Tumblr
|
41 |
+
* Hubpages
|
42 |
+
* Deviantart
|
43 |
|
44 |
Missing any icons? Please feel free to request the icon you need.
|
45 |
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= 2.0 =
|
63 |
+
* Added Tumblr, Hubpages, Deviantart icons.
|
64 |
+
* Added some css to remove underline decoration from icons.
|
65 |
+
|
66 |
= 1.9 =
|
67 |
* Added Flickr icon.
|
68 |
|
simple-follow-me-social-buttons-widget.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
Plugin Name: Simple Follow Me Social Buttons Widget
|
4 |
Description: Widget to add some of the most popular follow me social buttons. Retina ready.
|
5 |
-
Version:
|
6 |
Author: Lucy Tomás
|
7 |
Author URI: https://wordpress.org/support/profile/lucymtc
|
8 |
License: GPLv2
|
@@ -76,8 +76,11 @@ final class SFMSB {
|
|
76 |
add_action( 'widgets_init', array('Sfmsb_Widget', 'register_widgets') );
|
77 |
|
78 |
if( is_admin() ) {
|
|
|
79 |
add_action( 'admin_enqueue_scripts', array('Sfmsb_Widget', 'add_admin_scripts') );
|
|
|
80 |
} else{
|
|
|
81 |
add_action( 'wp_enqueue_scripts', array('Sfmsb_Widget', 'add_style') );
|
82 |
}
|
83 |
|
@@ -104,10 +107,10 @@ final class SFMSB {
|
|
104 |
|
105 |
private function constants() {
|
106 |
|
107 |
-
if( !defined('SFMSB_PLUGIN_DIR') )
|
108 |
-
if( !defined('SFMSB_PLUGIN_URL') )
|
109 |
-
if( !defined('SFMSB_PLUGIN_FILE') )
|
110 |
-
if( !defined('SFMSB_PLUGIN_VERSION') ) { define('SFMSB_PLUGIN_VERSION', '
|
111 |
|
112 |
}
|
113 |
|
@@ -119,38 +122,25 @@ final class SFMSB {
|
|
119 |
private function variables(){
|
120 |
|
121 |
|
122 |
-
$this->available_buttons = array('twitter' => array('name' => 'Twitter',
|
123 |
-
|
124 |
-
'
|
125 |
-
|
126 |
-
'
|
127 |
-
|
128 |
-
'
|
129 |
-
|
130 |
-
'
|
131 |
-
|
132 |
-
'
|
133 |
-
|
134 |
-
'
|
135 |
-
|
136 |
-
'
|
137 |
-
|
138 |
-
'
|
139 |
-
|
140 |
-
'
|
141 |
-
'color' => 'd68778'),
|
142 |
-
'vimeo' => array('name' => 'Vimeo',
|
143 |
-
'color' => '4b6079'),
|
144 |
-
'email' => array('name' => 'Email',
|
145 |
-
'color' => '84b3dc'),
|
146 |
-
'soundcloud' => array('name' => 'SoundCloud',
|
147 |
-
'color' => 'f6a46a'),
|
148 |
-
'itunes' => array('name' => 'iTunes',
|
149 |
-
'color' => 'cf95f5'),
|
150 |
-
'bloglovin' => array('name' => 'Bloglovin',
|
151 |
-
'color' => '5ed3f5'),
|
152 |
-
'flickr' => array('name' => 'Flickr',
|
153 |
-
'color' => 'f66db4')
|
154 |
);
|
155 |
|
156 |
}
|
2 |
/**
|
3 |
Plugin Name: Simple Follow Me Social Buttons Widget
|
4 |
Description: Widget to add some of the most popular follow me social buttons. Retina ready.
|
5 |
+
Version: 2.0
|
6 |
Author: Lucy Tomás
|
7 |
Author URI: https://wordpress.org/support/profile/lucymtc
|
8 |
License: GPLv2
|
76 |
add_action( 'widgets_init', array('Sfmsb_Widget', 'register_widgets') );
|
77 |
|
78 |
if( is_admin() ) {
|
79 |
+
|
80 |
add_action( 'admin_enqueue_scripts', array('Sfmsb_Widget', 'add_admin_scripts') );
|
81 |
+
|
82 |
} else{
|
83 |
+
|
84 |
add_action( 'wp_enqueue_scripts', array('Sfmsb_Widget', 'add_style') );
|
85 |
}
|
86 |
|
107 |
|
108 |
private function constants() {
|
109 |
|
110 |
+
if( !defined('SFMSB_PLUGIN_DIR') ) { define('SFMSB_PLUGIN_DIR', plugin_dir_path( __FILE__ )); }
|
111 |
+
if( !defined('SFMSB_PLUGIN_URL') ) { define('SFMSB_PLUGIN_URL', plugin_dir_url( __FILE__ )); }
|
112 |
+
if( !defined('SFMSB_PLUGIN_FILE') ) { define('SFMSB_PLUGIN_FILE', __FILE__ ); }
|
113 |
+
if( !defined('SFMSB_PLUGIN_VERSION') ) { define('SFMSB_PLUGIN_VERSION', '2.0'); }
|
114 |
|
115 |
}
|
116 |
|
122 |
private function variables(){
|
123 |
|
124 |
|
125 |
+
$this->available_buttons = array('twitter' => array( 'name' => 'Twitter', 'color' => '84b3dc' ),
|
126 |
+
'facebook' => array( 'name' => 'Facebook', 'color' => '6c97bf' ),
|
127 |
+
'googleplus' => array( 'name' => 'Google+', 'color' => 'd68778' ),
|
128 |
+
'feed' => array( 'name' => 'Rss Feed', 'color' => 'e1b96a' ),
|
129 |
+
'linkedin' => array( 'name' => 'Linkedin', 'color' => '6c97bf' ),
|
130 |
+
'pinterest' => array( 'name' => 'Pinterest', 'color' => 'd68678' ),
|
131 |
+
'wordpress' => array( 'name' => 'WordPress', 'color' => '6b96be' ),
|
132 |
+
'github' => array( 'name' => 'Github', 'color' => '717272' ),
|
133 |
+
'instagram' => array( 'name' => 'Instagram', 'color' => 'b9a38c' ),
|
134 |
+
'youtube' => array( 'name' => 'Youtube', 'color' => 'd68778' ),
|
135 |
+
'vimeo' => array( 'name' => 'Vimeo', 'color' => '4b6079' ),
|
136 |
+
'email' => array( 'name' => 'Email', 'color' => '84b3dc' ),
|
137 |
+
'soundcloud' => array( 'name' => 'SoundCloud', 'color' => 'f6a46a' ),
|
138 |
+
'itunes' => array( 'name' => 'iTunes', 'color' => 'cf95f5' ),
|
139 |
+
'bloglovin' => array( 'name' => 'Bloglovin', 'color' => '5ed3f5' ),
|
140 |
+
'flickr' => array( 'name' => 'Flickr', 'color' => 'f66db4' ),
|
141 |
+
'tumblr' => array( 'name' => 'Tumblr', 'color' => '436381' ),
|
142 |
+
'hubpages' => array( 'name' => 'HubPages', 'color' => '717272' ),
|
143 |
+
'deviantart' => array( 'name' => 'Deviantart', 'color' => 'c0ca65' ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
);
|
145 |
|
146 |
}
|