Simple Follow Me Social Buttons Widget - Version 1.1

Version Description

  • Change set of icons
  • Added Instagram, Youtube and Vimeo icons
Download this release

Release Info

Developer lucymtc
Plugin Icon 128x128 Simple Follow Me Social Buttons Widget
Version 1.1
Comparing to
See all releases

Version 1.1

assets/css/admin.css ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* @group clearfix */
2
+
3
+ .clearfix:after {
4
+ visibility: hidden;
5
+ display: block;
6
+ content: "";
7
+ clear: both;
8
+ height: 0;
9
+ }
10
+ * html .clearfix { zoom: 1; } /* IE6 */
11
+ *:first-child+html .clearfix { zoom: 1; } /* IE7 */
12
+
13
+
14
+ /* @end */
15
+
16
+ /* @group widget */
17
+
18
+ div.widget[id*=_sfmsb] input[type=checkbox],
19
+ div.widget[id*=_sfmsb] input[type=radio],
20
+ div.widget[id*=_sfmsb] select,
21
+ div.widget[id*=_sfmsb] input.s{
22
+ margin-top: -15px;
23
+ }
24
+
25
+ div.widget[id*=_sfmsb] input.s{
26
+ width:100px;
27
+ }
28
+
29
+
30
+
31
+ /* @end */
32
+
assets/css/style.css ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ /* @group clearfix */
3
+
4
+ .clearfix:after {
5
+ visibility: hidden;
6
+ display: block;
7
+ content: "";
8
+ clear: both;
9
+ height: 0;
10
+ }
11
+ * html .clearfix { zoom: 1; } /* IE6 */
12
+ *:first-child+html .clearfix { zoom: 1; } /* IE7 */
13
+
14
+
15
+ /* @end */
16
+
17
+ /* @group social buttons */
18
+
19
+ .sfmsb-follow-social-buttons.sfmsb-under .sfmsb-text{
20
+ display:block;
21
+ margin-bottom:5px;
22
+ }
23
+
24
+ .sfmsb-follow-social-buttons.sfmsb-float{
25
+ display:table-row;
26
+
27
+ }
28
+
29
+ .sfmsb-follow-social-buttons.sfmsb-float .sfmsb-text,
30
+ .sfmsb-follow-social-buttons.sfmsb-float a{
31
+ /*float:left;*/
32
+ vertical-align: middle;
33
+ display:table-cell;
34
+ padding:0px 5px 0px 5px;
35
+ margin-right:0px;
36
+ }
37
+
38
+ .sfmsb-follow-social-buttons.sfmsb-under a{
39
+ margin-right:10px;
40
+ }
41
+
42
+
43
+ @font-face {
44
+ font-family: 'wp_social_buttons';
45
+ src:url('../fonts/wp_social_buttons.eot?6rn0ly');
46
+ src:url('../fonts/wp_social_buttons.eot?#iefix6rn0ly') format('embedded-opentype'),
47
+ url('../fonts/wp_social_buttons.woff?6rn0ly') format('woff'),
48
+ url('../fonts/wp_social_buttons.ttf?6rn0ly') format('truetype'),
49
+ url('../fonts/wp_social_buttons.svg?6rn0ly#wp_social_buttons') format('svg');
50
+ font-weight: normal;
51
+ font-style: normal;
52
+ }
53
+
54
+ [class^="sfmsb-icon-"], [class*=" sfmsb-icon-"] {
55
+ font-family: 'wp_social_buttons';
56
+ speak: none;
57
+ font-style: normal;
58
+ font-weight: normal;
59
+ font-variant: normal;
60
+ text-transform: none;
61
+ line-height: 1;
62
+
63
+ /* Better Font Rendering =========== */
64
+ -webkit-font-smoothing: antialiased;
65
+ -moz-osx-font-smoothing: grayscale;
66
+ }
67
+
68
+ /* V2 */
69
+
70
+ .sfmsb-icon-googleplus-square:before {
71
+ content: "\e60c";
72
+ }
73
+ .sfmsb-icon-googleplus-circle:before {
74
+ content: "\e605";
75
+ }
76
+
77
+ .sfmsb-icon-facebook-square:before {
78
+ content: "\e600";
79
+ }
80
+ .sfmsb-icon-facebook-circle:before {
81
+ content: "\e601";
82
+ }
83
+
84
+ .sfmsb-icon-twitter-square:before {
85
+ content: "\e60f";
86
+ }
87
+ .sfmsb-icon-twitter-circle:before {
88
+ content: "\e610";
89
+ }
90
+
91
+ .sfmsb-icon-feed-square:before {
92
+ content: "\e60a";
93
+ }
94
+ .sfmsb-icon-feed-circle:before {
95
+ content: "\e60b";
96
+ }
97
+
98
+ .sfmsb-icon-vimeo-square:before {
99
+ content: "\e611";
100
+ }
101
+ .sfmsb-icon-vimeo-circle:before {
102
+ content: "\e612";
103
+ }
104
+
105
+ .sfmsb-icon-github-circle:before {
106
+ content: "\e603";
107
+ }
108
+
109
+ .sfmsb-icon-github-square:before {
110
+ content: "\e604";
111
+ }
112
+
113
+ .sfmsb-icon-wordpress-circle:before {
114
+ content: "\e616";
115
+ }
116
+ .sfmsb-icon-wordpress-square:before {
117
+ content: "\e615";
118
+ }
119
+
120
+ .sfmsb-icon-pinterest-square:before {
121
+ content: "\e609";
122
+ }
123
+
124
+ .sfmsb-icon-pinterest-circle:before {
125
+ content: "\e608";
126
+ }
127
+
128
+ .sfmsb-icon-linkedin-square:before {
129
+ content: "\e60e";
130
+ }
131
+ .sfmsb-icon-linkedin-circle:before {
132
+ content: "\e607";
133
+ }
134
+
135
+ .sfmsb-icon-youtube-square:before {
136
+ content: "\e617";
137
+ }
138
+ .sfmsb-icon-youtube-circle:before {
139
+ content: "\e60d";
140
+ }
141
+
142
+ .sfmsb-icon-instagram-square:before {
143
+ content: "\e61b";
144
+ }
145
+ .sfmsb-icon-instagram-circle:before {
146
+ content: "\e606";
147
+ }
148
+
149
+
150
+
151
+
152
+ /* @end */
153
+
154
+
assets/fonts/social_buttons.eot ADDED
Binary file
assets/fonts/social_buttons.svg ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Generated by IcoMoon</metadata>
5
+ <defs>
6
+ <font id="social_buttons" horiz-adv-x="512">
7
+ <font-face units-per-em="512" ascent="480" descent="-32" />
8
+ <missing-glyph horiz-adv-x="512" />
9
+ <glyph unicode="&#x20;" d="" horiz-adv-x="256" />
10
+ <glyph unicode="&#xe600;" d="M279.533 448c0 0-100.478 0-133.97 0-60.060 0-116.585-45.503-116.585-98.211 0-53.863 40.941-97.333 102.044-97.333 4.249 0 8.378 0.085 12.421 0.376-3.965-7.593-6.801-16.144-6.801-25.021 0-14.969 8.052-27.105 18.234-37.012-7.693 0-15.121-0.224-23.226-0.224-74.391 0.001-131.65-47.379-131.65-96.51 0-48.389 62.771-78.657 137.167-78.657 84.812 0 131.653 48.122 131.653 96.514 0 38.8-11.448 62.036-46.843 87.067-12.108 8.572-35.265 29.418-35.265 41.672 0 14.36 4.098 21.434 25.714 38.323 22.156 17.312 37.836 41.651 37.836 69.958 0 33.703-15.010 66.549-43.186 77.386h42.477l29.98 21.672zM232.74 120.271c1.063-4.486 1.642-9.103 1.642-13.814 0-39.1-25.196-69.655-97.487-69.655-51.421 0-88.558 32.552-88.558 71.65 0 38.321 46.063 70.222 97.482 69.666 12-0.127 23.184-2.058 33.335-5.345 27.913-19.413 47.938-30.381 53.586-52.502zM150.409 266.112c-34.519 1.032-67.318 38.613-73.276 83.93-5.958 45.333 17.185 80.021 51.694 78.995 34.505-1.037 67.319-37.407 73.279-82.729 5.953-45.33-17.195-81.229-51.697-80.196zM416 352v96h-32v-96h-96v-32h96v-96h32v96h96v32z" />
11
+ <glyph unicode="&#xe601;" d="M0.403 45.168c-0.122 1.266-0.226 2.535-0.292 3.815 0.065-1.28 0.17-2.549 0.292-3.815zM117.954 197.426c46.005-1.369 76.867 46.349 68.931 106.599-7.947 60.24-51.698 108.584-97.704 109.961-46.013 1.365-76.87-44.741-68.926-105 7.941-60.234 51.676-110.187 97.699-111.56zM512 352v42.655c0 46.94-38.391 85.345-85.329 85.345h-341.328c-46.138 0-84.006-37.116-85.282-82.963 29.181 25.693 69.662 47.158 111.437 47.158 44.652 0 178.622 0 178.622 0l-39.974-33.809h-56.634c37.565-14.402 57.578-58.062 57.578-102.861 0-37.624-20.905-69.977-50.444-92.984-28.822-22.451-34.286-31.854-34.286-50.939 0-16.289 30.873-44 47.016-55.394 47.191-33.269 62.458-64.156 62.458-115.728 0-8.214-1.021-16.415-3.033-24.48h153.871c46.937 0 85.328 38.375 85.328 85.345v266.654h-96v-95.999h-32v96h-95.999v32h95.999v96h32v-96h96zM92.943 97.032c10.807 0 20.711 0.295 30.968 0.295-13.573 13.167-24.313 29.3-24.313 49.19 0 11.804 3.782 23.168 9.067 33.26-5.391-0.385-10.895-0.497-16.563-0.497-37.178 0-68.753 12.038-92.102 31.927v-33.621l0.003-100.865c26.72 12.687 58.444 20.311 92.94 20.311zM1.71 36.371c-0.556 2.729-0.983 5.503-1.271 8.317 0.287-2.814 0.715-5.588 1.271-8.317zM227.725 3.577c-7.529 29.403-34.227 43.982-71.444 69.784-13.536 4.366-28.447 6.937-44.447 7.104-44.809 0.482-86.554-17.471-110.108-44.186 7.96-38.853 42.517-68.279 83.617-68.279h143.222c0.908 5.564 1.348 11.316 1.348 17.216 0 6.267-0.767 12.396-2.188 18.361z" />
12
+ <glyph unicode="&#xe602;" d="M218.503 70.919c0-37.534-23.195-67.196-88.879-69.588-38.492 21.893-70.745 53.476-93.454 91.433 11.845 29.248 48.846 51.523 91.158 51.057 12.011-0.126 23.205-2.057 33.372-5.35 27.954-19.433 50.5-31.576 56.162-53.724 1.057-4.482 1.641-9.103 1.641-13.828zM256 480c-73.97 0-140.598-31.385-187.333-81.549 18.467 10.226 40.269 16.319 63.451 16.319 33.534 0 128.219 0 128.219 0l-28.652-30.070h-33.655c23.748-13.606 36.376-41.624 36.376-72.506 0-28.346-15.708-51.19-37.89-68.529-21.64-16.901-25.746-23.983-25.746-38.367 0-12.271 25.861-30.549 37.75-39.468 41.409-31.056 49.789-50.592 49.789-89.435 0-39.363-34.468-78.552-92.933-91.871 28.174-10.669 58.713-16.524 90.624-16.524 141.385 0 256 114.615 256 256s-114.615 256-256 256zM384 288v-64h-32v64h-64v32h64v64h32v-64h64v-32h-64zM182.884 310.264c5.961-45.388-13.923-74.595-48.467-73.567-34.563 1.041-67.403 32.746-73.37 78.121-5.964 45.394 17.209 80.127 51.765 79.098 34.545-1.037 64.11-38.271 70.072-83.652zM110.443 158.966c-37.34 0-69.064-12.884-91.421-31.932-12.251 29.91-19.022 62.645-19.022 96.966 0 28.383 4.628 55.684 13.156 81.198 3.687-49.721 38.676-88.096 96.485-88.096 4.257 0 8.382 0.221 12.437 0.511-3.975-7.615-6.811-16.095-6.811-24.991 0-14.985 8.244-23.535 18.434-33.447-7.701 0-15.135-0.209-23.258-0.209z" />
13
+ <glyph unicode="&#xe603;" d="M287.935-32h-95.935v256h-64v88.225l64 0.029-0.104 51.976c0 71.976 19.517 115.77 104.299 115.77h70.588v-88.242h-44.115c-33.016 0-34.603-12.328-34.603-35.342l-0.131-44.162h79.345l-9.352-88.225-69.927-0.029-0.065-256z" />
14
+ <glyph unicode="&#xe604;" d="M426.672 480h-341.33c-46.936 0-85.342-38.407-85.342-85.344v-341.313c0-46.969 38.406-85.343 85.342-85.343l341.33 0.001c46.938 0 85.328 38.373 85.328 85.344v341.311c0 46.937-38.391 85.344-85.328 85.344zM435.296 224h-83.296v-224h-96v224h-46.263v73.282h46.263v47.593c0 64.671 27.896 103.125 103.935 103.125h87.622v-79.285h-71.565c-21.241 0.035-23.876-11.076-23.876-31.756l-0.116-39.677h96l-12.704-73.282z" />
15
+ <glyph unicode="&#xe605;" d="M256 480c141.385 0 256-114.615 256-256 0-130.547-97.719-238.265-224-254.013v190.013h88l8 64h-96v32c0 17.673 14.327 32 32 32h64v64h-64c-53.020 0-96-42.98-96-96v-32h-48v-64h48v-190.013c-126.281 15.748-224 123.466-224 254.013 0 141.385 114.615 256 256 256z" />
16
+ <glyph unicode="&#xe606;" d="M512 382.791c-18.838-8.354-39.082-14.001-60.33-16.54 21.686 13 38.343 33.585 46.186 58.115-20.298-12.039-42.778-20.78-66.705-25.49-19.16 20.415-46.461 33.17-76.673 33.17-58.011 0-105.044-47.029-105.044-105.039 0-8.233 0.929-16.25 2.72-23.939-87.3 4.382-164.701 46.2-216.509 109.753-9.042-15.514-14.223-33.558-14.223-52.809 0-36.444 18.544-68.596 46.73-87.433-17.219 0.546-33.416 5.271-47.577 13.139-0.010-0.438-0.010-0.878-0.010-1.321 0-50.894 36.209-93.348 84.261-103-8.813-2.4-18.094-3.686-27.674-3.686-6.769 0-13.349 0.66-19.764 1.886 13.368-41.73 52.16-72.103 98.126-72.948-35.95-28.175-81.243-44.967-130.458-44.967-8.479 0-16.84 0.497-25.058 1.47 46.486-29.805 101.701-47.197 161.021-47.197 193.211 0 298.868 160.062 298.868 298.872 0 4.554-0.103 9.084-0.305 13.59 20.528 14.81 38.336 33.31 52.418 54.374z" />
17
+ <glyph unicode="&#xe607;" d="M426.671 480h-341.328c-46.937 0-85.343-38.405-85.343-85.345v-341.311c0-46.969 38.406-85.344 85.343-85.344h341.328c46.938 0 85.329 38.375 85.329 85.345v341.31c0 46.94-38.391 85.345-85.329 85.345zM419.026 309.083c0.164-3.671 0.245-7.364 0.245-11.074 0-113.107-84.608-243.534-239.329-243.534-47.502 0-91.717 14.174-128.943 38.459 6.58-0.794 13.276-1.197 20.065-1.197 39.411 0 75.679 13.685 104.467 36.641-36.808 0.69-67.872 25.438-78.577 59.441 5.137-1 10.406-1.537 15.826-1.537 7.672 0 15.103 1.048 22.16 3.004-38.48 7.866-67.475 42.458-67.475 83.928 0 0.361 0 0.719 0.008 1.076 11.34-6.41 24.312-10.26 38.1-10.705-22.571 15.349-37.421 41.546-37.421 71.244 0 15.685 4.147 30.389 11.389 43.029 41.487-51.785 103.468-85.86 173.377-89.431-1.435 6.266-2.179 12.798-2.179 19.507 0 47.269 37.663 85.59 84.115 85.59 24.195 0 46.059-10.393 61.401-27.029 19.16 3.838 37.162 10.96 53.416 20.771-6.281-19.988-19.617-36.761-36.983-47.355 17.013 2.069 33.226 6.67 48.31 13.477-11.273-17.162-25.535-32.238-41.972-44.305z" />
18
+ <glyph unicode="&#xe608;" d="M256 480c-141.385 0-256-114.615-256-256s114.615-256 256-256 256 114.615 256 256-114.615 256-256 256zM403.121 299.456c0.146-3.254 0.221-6.528 0.221-9.819 0-100.311-76.354-215.982-215.979-215.982-42.868 0-82.768 12.568-116.363 34.107 5.938-0.704 11.981-1.063 18.108-1.063 35.565 0 68.295 12.138 94.275 32.497-33.217 0.61-61.25 22.561-70.912 52.716 4.637-0.884 9.392-1.361 14.283-1.361 6.923 0 13.629 0.928 19.999 2.662-34.726 6.976-60.893 37.656-60.893 74.434 0 0.32 0 0.639 0.008 0.955 10.235-5.685 21.939-9.1 34.382-9.494-20.37 13.611-33.77 36.846-33.77 63.184 0 13.911 3.744 26.952 10.278 38.162 37.439-45.927 93.374-76.146 156.462-79.314-1.294 5.559-1.965 11.351-1.965 17.302 0 41.92 33.99 75.906 75.909 75.906 21.833 0 41.562-9.218 55.409-23.97 17.29 3.404 33.537 9.721 48.206 18.42-5.668-17.727-17.705-32.603-33.376-41.997 15.355 1.834 29.984 5.916 43.597 11.952-10.175-15.224-23.045-28.593-37.879-39.297z" />
19
+ <glyph unicode="&#xe609;" d="M68.147 104.535c-37.598 0-68.146-30.667-68.146-68.038 0-37.577 30.55-67.901 68.146-67.901 37.733 0 68.247 30.324 68.247 67.901-0.001 37.371-30.512 68.038-68.247 68.038zM0.078 306.035v-98.129c63.892 0 123.979-24.986 169.229-70.256 45.192-45.159 70.141-105.518 70.141-169.65h98.561c-0.001 186.41-151.641 338.035-337.931 338.035zM0.194 480v-98.178c227.891 0 413.378-185.667 413.378-413.822h98.428c0 282.235-229.627 512-511.806 512z" />
20
+ <glyph unicode="&#xe60a;" d="M426.67 480h-341.327c-46.938 0-85.343-38.406-85.343-85.344v-341.314c0-46.967 38.406-85.342 85.344-85.342h341.326c46.938 0 85.33 38.374 85.33 85.342v341.314c0 46.938-38.392 85.344-85.33 85.344zM139.472 64.376c-23.985 0-43.472 19.346-43.472 43.314 0 23.842 19.486 43.406 43.472 43.406 24.079 0 43.53-19.564 43.53-43.406-0.001-23.968-19.452-43.314-43.53-43.314zM248.734 64.002c0 40.905-15.904 79.409-44.73 108.222-28.857 28.875-67.188 44.813-107.952 44.813v62.593c118.826 0 215.563-96.721 215.563-215.627l-62.881-0.001zM359.814 64.002c0 145.531-118.329 263.97-263.688 263.97v62.624c180.001 0 326.473-146.562 326.473-326.596l-62.785 0.002z" />
21
+ <glyph unicode="&#xe60b;" d="M256 480c-141.385 0-256-114.615-256-256s114.615-256 256-256 256 114.615 256 256-114.615 256-256 256zM160 96c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zM248 96c0 66.168-53.832 120-120 120v48c92.636 0 168-75.364 168-168h-48zM344 96c0 57.695-22.468 111.938-63.265 152.735s-95.039 63.265-152.735 63.265v48c70.517 0 136.813-27.461 186.677-77.324 49.862-49.863 77.323-116.159 77.323-186.676h-48z" />
22
+ <glyph unicode="&#xe60c;" d="M0 325.815l20.797-27.272c0 0 42.885 33.804 57.18 16.901 14.294-16.901 68.868-220.978 87.085-258.623 15.9-33.015 59.759-76.66 107.857-45.491 48.068 31.17 207.92 167.643 236.533 328.808 28.59 161.113-192.36 127.363-215.765-13.005 58.495 35.118 89.718-14.269 59.785-70.186-29.879-55.862-57.18-92.296-71.476-92.296-14.269 0-25.245 37.384-41.594 102.723-16.899 67.551-16.796 189.23-87.058 175.435-66.259-13.006-153.344-116.994-153.344-116.994z" />
23
+ <glyph unicode="&#xe60d;" d="M426.655 480h-341.31c-46.939 0-85.345-38.408-85.345-85.346v-341.31c0-46.969 38.406-85.344 85.345-85.344h341.31c46.939 0 85.345 38.375 85.345 85.345v341.309c0 46.938-38.406 85.346-85.345 85.346zM406.434 260.937c-16.979-95.648-111.854-176.648-140.39-195.155-28.544-18.503-54.577 7.411-64.019 26.997-10.808 22.354-43.205 143.47-51.684 153.51-8.482 10.019-33.938-10.040-33.938-10.040l-12.346 16.188c0 0 51.691 61.724 91.020 69.439 41.702 8.183 41.64-64.033 51.67-104.121 9.7-38.782 16.22-60.976 24.688-60.976 8.485 0 24.691 21.631 42.426 54.785 17.768 33.188-0.769 62.505-35.486 41.646 13.893 83.326 145.031 103.36 128.059 7.727z" />
24
+ <glyph unicode="&#xe60e;" d="M256 480c-141.385 0-256-114.615-256-256s114.615-256 256-256 256 114.615 256 256-114.615 256-256 256zM406.434 260.937c-16.979-95.648-111.854-176.648-140.39-195.155-28.544-18.503-54.577 7.411-64.019 26.997-10.808 22.354-43.205 143.47-51.684 153.51-8.482 10.019-33.938-10.040-33.938-10.040l-12.346 16.188c0 0 51.691 61.724 91.020 69.439 41.702 8.183 41.64-64.033 51.67-104.121 9.7-38.782 16.22-60.976 24.688-60.976 8.485 0 24.691 21.631 42.426 54.785 17.768 33.188-0.769 62.505-35.486 41.646 13.893 83.326 145.031 103.36 128.059 7.727z" />
25
+ <glyph unicode="&#xe60f;" d="M256 480c-141.385 0-256-114.615-256-256s114.615-256 256-256 256 114.615 256 256-114.615 256-256 256zM408.028 71.972c-19.759-19.758-42.756-35.266-68.354-46.093-6.503-2.75-13.107-5.164-19.8-7.246v38.367c0 20.167-6.917 35-20.75 44.5 8.667 0.833 16.625 2 23.875 3.5s14.917 3.667 23 6.5 15.333 6.208 21.75 10.125 12.583 9 18.5 15.25 10.875 13.333 14.875 21.25 7.167 17.417 9.5 28.5 3.5 23.292 3.5 36.625c0 25.833-8.417 47.833-25.25 66 7.667 20 6.833 41.75-2.5 65.25l-6.25 0.75c-4.333 0.5-12.125-1.333-23.375-5.5s-23.875-11-37.875-20.5c-19.833 5.5-40.417 8.25-61.75 8.25-21.5 0-42-2.75-61.5-8.25-8.833 6-17.208 10.958-25.125 14.875s-14.25 6.583-19 8-9.167 2.292-13.25 2.625-6.708 0.417-7.875 0.25-2-0.333-2.5-0.5c-9.333-23.667-10.167-45.417-2.5-65.25-16.833-18.167-25.25-40.167-25.25-66 0-13.333 1.167-25.542 3.5-36.625s5.5-20.583 9.5-28.5 8.958-15 14.875-21.25 12.083-11.333 18.5-15.25 13.667-7.292 21.75-10.125 15.75-5 23-6.5 15.208-2.667 23.875-3.5c-13.667-9.333-20.5-24.167-20.5-44.5v-39.115c-7.549 2.247-14.99 4.902-22.3 7.994-25.597 10.827-48.594 26.335-68.353 46.093-19.758 19.759-35.267 42.756-46.093 68.354-11.199 26.479-16.878 54.631-16.878 83.674s5.679 57.195 16.879 83.675c10.827 25.597 26.335 48.594 46.093 68.353s42.756 35.267 68.353 46.093c26.48 11.2 54.632 16.879 83.675 16.879s57.195-5.679 83.675-16.879c25.598-10.827 48.595-26.335 68.354-46.093 19.758-19.758 35.266-42.756 46.093-68.353 11.199-26.48 16.878-54.632 16.878-83.675s-5.679-57.195-16.879-83.675c-10.827-25.597-26.335-48.595-46.093-68.353z" />
26
+ <glyph unicode="&#xe610;" d="M117.639 355.64c-25.396 0-47.242-8.403-65.542-25.208-19.043-17.926-28.57-40.33-28.57-67.218 0-17.926 5.188-34.731 15.647-50.416 9.337-14.563 19.090-23.903 31.889-28.012v-1.121c-12.799-5.224-18.483-18.295-18.483-39.209 0-16.062 5.686-28.011 18.483-35.854v-1.121c-35.327-11.573-51.496-33.047-51.496-64.415 0-27.267 11.874-47.244 35.033-59.939 18.295-10.086 41.789-15.127 70.173-15.127 69.085 0 103.703 28.941 103.703 86.832 0 36.223-26.661 58.441-80.064 66.658-12.323 1.863-21.643 6.348-27.991 13.445-4.854 4.854-7.271 9.709-7.271 14.563 0 13.816 7.479 21.848 22.41 24.088 22.779 3.357 41.364 13.912 55.743 31.648 14.375 17.74 21.565 38.559 21.565 62.458 0 7.469-2.259 15.498-5.244 24.086 9.709 2.244 16.525 4.297 21.646 6.166v57.696c-22.527-8.964-43.495-13.442-61.421-13.442-15.687 8.961-31.912 13.442-50.21 13.442zM123.801 76.115c31.372 0 47.052-9.521 47.052-28.57 0-20.168-14.377-30.246-43.132-30.246-32.862 0-49.293 9.711-49.293 29.127-0.001 19.795 15.122 29.689 45.373 29.689zM119.88 224c-23.527 0-35.293 12.882-35.293 38.654 0 27.631 11.766 41.453 35.293 41.453 11.201 0 19.979-4.298 26.326-12.884 5.229-7.845 7.845-17.18 7.845-28.011 0-26.139-11.393-39.212-34.171-39.212zM290.192 480c-10.828 0-20.070-4.107-27.727-12.324-7.657-8.218-11.485-18.108-11.485-29.688 0-11.205 3.829-20.91 11.485-29.129 7.654-8.217 16.896-12.32 27.727-12.32 10.455 0 19.514 4.104 27.17 12.32 7.656 8.219 11.48 17.924 11.48 29.129 0 11.58-3.824 21.472-11.48 29.688-7.659 8.217-16.715 12.324-27.17 12.324zM321.565 352.001h-63.303c0.748-7.168-0.32-18.021-0.32-35.57v-174.216c0-17.928 1.068-32.387 0.32-38.018h63.303c-0.75 8.188-2.697 22.334-2.697 41.379v171.973c-0.003 16.432 1.947 27.284 2.697 34.452zM461.168 157.9c-16.436 0-24.541 12.514-24.541 37.533v103.32h24.932c4.48 0 8.516 0.246 13.559-0.123 5.043-0.374 7.076-0.125 9.639-0.125v53.495h-48.129v23.808c0 8.961 1.408 17.151 2.527 22.271h-64.979c1.121-5.12 1.014-12.938 1.014-23.395v-22.684h-28.16v-53.494c7.682 1.12 14.545 1.678 19.398 1.678l8.762-0.559v-101.393c0-31.371 3.979-54.336 11.818-68.9 10.461-19.42 28.811-29.129 56.068-29.129 19.424 0 36.559 3.732 49.357 11.205v56.016c-10.237-6.35-19.691-9.524-31.265-9.524z" />
27
+ <glyph unicode="&#xe611;" d="M131.736 100.316c0-13.526 11.447-20.291 34.334-20.291 20.032 0 30.044 7.021 30.044 21.067 0 13.269-10.923 19.898-32.772 19.898-21.073 0.002-31.606-6.888-31.606-20.674zM426.674 480h-341.33c-46.938 0-85.344-38.405-85.344-85.344v-341.313c0-46.968 38.406-85.343 85.344-85.343h341.33c46.934 0 85.326 38.375 85.326 85.344v341.312c0 46.939-38.391 85.344-85.326 85.344zM237.864 275.506c-3.642-1.302-8.844-2.729-15.606-4.293 2.080-5.983 3.123-11.576 3.123-16.777 0-16.646-5.009-31.149-15.022-43.506-10.015-12.354-22.956-19.703-38.823-22.043-10.402-1.563-15.604-7.156-15.604-16.779 0-3.381 1.689-6.765 5.072-10.145 4.422-4.943 10.924-8.066 19.509-9.367 37.195-5.721 55.793-21.197 55.793-46.427 0-40.321-24.062-60.481-72.181-60.481-19.771 0-36.028 3.513-48.772 10.535-16.129 8.844-24.188 22.76-24.188 41.75 0 21.852 12.096 36.808 36.282 44.869v0.78c-8.842 5.462-13.263 13.785-13.263 24.972 0 14.566 4.162 23.672 12.484 27.311v0.781c-8.323 2.862-15.737 9.366-22.24 19.512-7.282 10.926-10.925 22.63-10.925 35.115 0 18.729 6.635 34.335 19.896 46.82 12.748 11.707 27.964 17.558 45.653 17.558 12.747 0 24.579-3.119 35.505-9.361 12.485 0 26.921 3.12 43.313 9.361l-0.006-40.185zM301.089 140.503h-44.093c0.521 5.201 0.779 14.042 0.779 26.532v121.346c0 12.227-0.261 20.682-0.779 25.359h44.093c-0.521-4.942-0.781-13.135-0.781-24.582v-119.782c0-13.267 0.261-22.892 0.781-28.873zM298.159 352.759c-5.332-5.722-11.641-8.581-18.923-8.581-7.543 0-13.979 2.859-19.313 8.581-5.333 5.726-8.001 12.486-8.001 20.289 0 8.067 2.668 14.956 8.001 20.683 5.333 5.721 11.77 8.584 19.313 8.584 7.282 0 13.592-2.863 18.923-8.584 5.333-5.728 7.999-12.615 7.999-20.683 0-7.803-2.666-14.564-7.999-20.289zM420.845 145.576c-9.627-5.205-21.203-7.803-34.729-7.803-18.985 0-32.124 6.76-39.405 20.287-5.465 10.145-8.193 26.14-8.193 47.99v69.842h0.389v0.781l-5.853 0.391c-3.382 0-7.806-0.391-13.267-1.171v37.847h19.117v15.216c0 7.285-0.389 13.14-1.17 17.56h45.259c-0.775-4.94-1.168-10.533-1.168-16.776v-15.999h33.943v-37.846c-1.299 0-3.705 0.129-7.218 0.389-3.512 0.261-6.828 0.393-9.949 0.393h-16.777v-72.572c0-17.432 5.725-26.145 17.167-26.145 8.063 0 15.348 2.209 21.854 6.632v-39.016zM160.608 279.797c-16.388 0-24.582-9.627-24.582-28.873 0-17.951 8.194-26.924 24.582-26.924 15.868 0 23.801 9.104 23.801 27.313 0 7.545-1.82 14.047-5.461 19.511-4.423 5.981-10.537 8.973-18.34 8.973z" />
28
+ <glyph unicode="&#xe612;" d="M64 224.004c0-74.013 44.161-137.984 108.215-168.289l-91.589 244.392c-10.654-23.254-16.626-48.991-16.626-76.103zM385.614 233.436c0 23.117-8.527 39.118-15.827 51.571-9.729 15.41-18.86 28.447-18.86 43.858 0 17.187 13.383 33.188 32.243 33.188 0.852 0 1.66-0.102 2.488-0.151-34.158 30.485-79.67 49.098-129.654 49.098-67.080 0-126.093-33.523-160.422-84.284 4.505-0.141 8.753-0.227 12.356-0.227 20.077 0 51.17 2.376 51.17 2.376 10.345 0.591 11.566-14.217 1.229-15.411 0 0-10.405-1.184-21.976-1.775l69.917-202.553 42.022 122.728-29.911 79.825c-10.344 0.592-20.139 1.775-20.139 1.775-10.351 0.596-9.136 16.001 1.219 15.411 0 0 31.7-2.376 50.567-2.376 20.073 0 51.175 2.376 51.175 2.376 10.351 0.591 11.57-14.217 1.223-15.411 0 0-10.417-1.186-21.974-1.775l69.39-201.009 19.156 62.316c8.29 25.875 14.608 44.45 14.608 60.45zM259.371 207.648l-57.613-163.029c17.208-4.929 35.397-7.619 54.244-7.619 22.358 0 43.802 3.759 63.759 10.6-0.509 0.801-0.987 1.652-1.375 2.577l-59.015 157.471zM424.481 313.714c0.826-5.955 1.294-12.343 1.294-19.229 0-18.965-3.646-40.298-14.601-66.975l-58.643-165.136c57.081 32.414 95.469 92.644 95.469 161.629 0 32.515-8.53 63.080-23.519 89.711zM256 480c-141.385 0-256-114.615-256-256s114.615-256 256-256 256 114.615 256 256-114.615 256-256 256zM256 0c-123.712 0-224 100.288-224 224s100.288 224 224 224 224-100.288 224-224-100.288-224-224-224z" />
29
+ <glyph unicode="&#xe613;" d="M259.371 207.648l59.015-157.471c0.389-0.925 0.866-1.775 1.375-2.577-19.956-6.841-41.402-10.6-63.759-10.6-18.847 0-37.036 2.69-54.244 7.619l57.613 163.029zM448 224.003c0-68.985-38.388-129.215-95.47-161.629l58.643 165.136c10.956 26.677 14.602 48.010 14.602 66.975 0 6.886-0.469 13.274-1.294 19.229 14.989-26.631 23.519-57.196 23.519-89.711zM64 224.004c0 27.112 5.972 52.849 16.626 76.103l91.589-244.392c-64.054 30.305-108.215 94.276-108.215 168.289zM95.582 326.716c34.329 50.761 93.342 84.284 160.422 84.284 49.984 0 95.496-18.613 129.654-49.098-0.828 0.049-1.635 0.151-2.488 0.151-18.86 0-32.243-16.001-32.243-33.188 0-15.411 9.131-28.448 18.86-43.858 7.3-12.453 15.827-28.454 15.827-51.571 0-16.001-6.318-34.575-14.608-60.45l-19.156-62.316-69.39 201.009c11.558 0.589 21.974 1.775 21.974 1.775 10.347 1.194 9.129 16.002-1.223 15.411 0 0-31.102-2.376-51.175-2.376-18.867 0-50.567 2.376-50.567 2.376-10.355 0.59-11.57-14.815-1.219-15.411 0 0 9.795-1.183 20.139-1.775l29.911-79.825-42.022-122.728-69.917 202.553c11.571 0.591 21.976 1.775 21.976 1.775 10.337 1.194 9.116 16.002-1.229 15.411 0 0-31.093-2.376-51.17-2.376-3.603 0-7.851 0.086-12.356 0.227zM426 480h-340c-47.3 0-86-38.7-86-86v-340c0-47.3 38.7-86 86-86h340c47.3 0 86 38.7 86 86v340c0 47.3-38.7 86-86 86zM480 224c0-123.712-100.288-224-224-224s-224 100.288-224 224 100.288 224 224 224 224-100.288 224-224z" />
30
+ <glyph unicode="&#xe614;" d="M426 480h-340c-47.3 0-86-38.7-86-86v-340c0-47.3 38.7-86 86-86h340c47.3 0 86 38.7 86 86v340c0 47.3-38.7 86-86 86zM192 64h-64v224h64v-224zM160 320c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zM416 64h-64v128c0 17.673-14.327 32-32 32s-32-14.327-32-32v-128h-64v224h64v-39.736c13.199 18.132 33.376 39.736 56 39.736 39.765 0 72-35.817 72-80v-144z" />
31
+ <glyph unicode="&#xe615;" d="M256 480c-141.385 0-256-114.615-256-256s114.613-256 256-256c141.385 0 256 114.615 256 256s-114.615 256-256 256zM280.822 137.941c-23.26 1.807-33.021 13.328-51.252 24.404-10.030-52.588-22.282-103.008-58.57-129.343-11.202 79.484 16.447 139.182 29.285 202.557-21.892 36.853 2.635 111.017 48.81 92.737 56.813-22.474-49.2-137.004 21.966-151.308 74.31-14.934 104.644 128.929 58.571 175.712-66.579 67.553-193.799 1.54-178.155-95.178 3.807-23.646 28.236-30.819 9.762-63.451-42.61 9.446-55.325 43.051-53.688 87.856 2.634 73.337 65.892 124.682 129.343 131.783 80.242 8.982 155.553-29.454 165.953-104.938 11.706-85.195-36.224-177.465-122.025-170.831z" />
32
+ <glyph unicode="&#xe616;" d="M426.675 480h-341.351c-47.125 0-85.324-38.21-85.324-85.343v-341.315c0-47.133 38.199-85.342 85.324-85.342h341.351c47.125 0 85.325 38.209 85.325 85.342v341.315c0 47.133-38.2 85.343-85.325 85.343zM280.822 137.941c-23.26 1.807-33.021 13.328-51.252 24.404-10.030-52.589-22.281-103.009-58.569-129.344-11.202 79.484 16.447 139.182 29.285 202.557-21.893 36.853 2.635 111.017 48.81 92.737 56.813-22.474-49.2-137.004 21.966-151.308 74.31-14.934 104.644 128.929 58.571 175.712-66.579 67.553-193.799 1.54-178.155-95.178 3.807-23.646 28.236-30.819 9.762-63.451-42.61 9.446-55.325 43.051-53.688 87.856 2.634 73.337 65.892 124.682 129.343 131.783 80.242 8.982 155.553-29.454 165.953-104.938 11.705-85.194-36.225-177.464-122.026-170.83z" />
33
+ <glyph unicode="&#xe617;" d="M220.57 147.763c-13.44-70.477-29.85-138.061-78.49-173.363-15.001 106.547 22.041 186.547 39.245 271.488-29.338 49.408 3.533 148.787 65.433 124.288 76.16-30.131-65.945-183.629 29.44-202.803 99.61-20.019 140.262 172.8 78.515 235.495-89.241 90.573-259.789 2.099-238.797-127.513 5.094-31.693 37.837-41.319 13.082-85.043-57.114 12.647-74.163 57.703-71.962 117.76 3.533 98.278 88.32 167.091 173.363 176.614 107.571 12.058 208.512-39.475 222.413-140.647 15.693-114.176-48.512-237.85-163.558-228.941-31.155 2.381-44.237 17.817-68.685 32.666z" />
34
+ <glyph unicode="&#xe618;" d="M129.946 408.32c0-27.213-20.096-49.254-53.145-49.254-31.104 0-51.2 22.041-51.2 49.255 0 27.853 20.761 49.254 52.505 49.254s51.2-21.401 51.84-49.254zM28.211 3.225v316.928h98.509v-316.928h-98.509zM185.677 219.059c0 39.527-1.305 72.576-2.611 101.095h85.555l4.557-44.083h1.945c12.954 20.762 44.723 51.2 97.869 51.2 64.793 0 113.408-43.417 113.408-136.755v-187.315h-98.509v175.642c0 40.832-14.285 68.711-49.92 68.711-27.213 0-43.392-18.79-50.534-36.941-2.611-6.477-3.251-15.539-3.251-24.627v-182.784h-98.509v215.859z" />
35
+ <glyph unicode="&#xe619;" d="M256 476.16c-135.731 0-245.76-110.029-245.76-245.76s110.029-245.76 245.76-245.76 245.76 110.029 245.76 245.76-110.029 245.76-245.76 245.76zM195.84 128.537h-49.767v160.128h49.767v-160.128zM170.649 308.327c-15.719 0-25.881 11.161-25.881 24.909 0 14.080 10.47 24.883 26.522 24.883s25.881-10.803 26.189-24.883c0.025-13.773-10.137-24.909-26.829-24.909zM377.575 128.537h-49.741v88.755c0 20.634-7.219 34.688-25.216 34.688-13.747 0-21.913-9.498-25.549-18.662-1.305-3.251-1.639-7.859-1.639-12.416v-92.339h-49.792v109.056c0 19.968-0.64 36.685-1.305 51.072h43.213l2.304-22.246h0.973c6.553 10.471 22.605 25.856 49.459 25.856 32.743 0 57.293-21.913 57.293-69.069v-94.695z" />
36
+ </font></defs></svg>
assets/fonts/social_buttons.ttf ADDED
Binary file
assets/fonts/social_buttons.woff ADDED
Binary file
includes/widget.php ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package SFMSB
4
+ * @author Lucy Tomás
5
+ * @since 1.0
6
+ */
7
+
8
+ // Exit if accessed directly
9
+ if ( !defined( 'ABSPATH' ) ) exit;
10
+
11
+ if( !class_exists( 'Sfmsb_Widget' )){
12
+
13
+ class Sfmsb_Widget extends WP_Widget {
14
+
15
+
16
+ /**
17
+ * Constructor.
18
+ *
19
+ * @since 1.0
20
+ */
21
+
22
+ function __construct() {
23
+
24
+ $this->defaults = array(
25
+ 'title' => __('Social', 'sfmsb_domain'),
26
+ 'size' => '20',
27
+ 'position' => 'under',
28
+ 'text' => __('Follow me on:', 'sfmsb_domain'),
29
+ 'color' => '',
30
+ 'style' => 'circle'
31
+ );
32
+
33
+
34
+ foreach ( SFMSB::instance()->available_buttons as $key => $item ) {
35
+
36
+ $this->defaults['enable_' . $key] = 0;
37
+ $this->defaults['url_' . $key] = '';
38
+ }
39
+
40
+
41
+ $widget_ops = array(
42
+ 'classname' => 'sfmsb_widget',
43
+ 'description' => 'Display follow me social buttons'
44
+ );
45
+
46
+
47
+ $this->styles = SFMSB::instance()->buttons_styles;
48
+ $this->sizes = SFMSB::instance()->buttons_sizes;
49
+ $this->available_buttons = SFMSB::instance()->available_buttons;
50
+
51
+
52
+ parent::__construct( 'sfmsb_settings', __( 'Simple follow me social buttons', 'sfmsb_domain' ), $widget_ops );
53
+
54
+ }
55
+
56
+ /**
57
+ * Form
58
+ *
59
+ * @param $instance
60
+ * @since 1.0
61
+ */
62
+
63
+
64
+ function form( $instance ) {
65
+
66
+ $instance = wp_parse_args( (array) $instance, $this->defaults );
67
+
68
+ ?>
69
+
70
+ <!-- *** TITLE text ***-->
71
+
72
+ <p>
73
+ <label class="description" for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title', 'sfmsb_domain'); ?></label>
74
+
75
+ <input class="widefat"
76
+ name="<?php echo $this->get_field_name( 'title' ); ?>"
77
+ type="text"
78
+ value="<?php echo esc_attr( $instance['title'] ); ?>" />
79
+ </p>
80
+
81
+ <!-- *** TEXT extra ***-->
82
+
83
+ <p>
84
+ <label class="description" for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e('Text', 'sfmsb_domain'); ?></label>
85
+
86
+ <input class="widefat"
87
+ name="<?php echo $this->get_field_name( 'text' ); ?>"
88
+ type="text"
89
+ value="<?php echo esc_attr( $instance['text'] ); ?>" />
90
+ </p>
91
+
92
+ <!-- *** ENABLE checkbox & URL text ***-->
93
+
94
+
95
+ <? foreach ( $this->available_buttons as $key => $item ) { ?>
96
+
97
+ <p>
98
+
99
+ <input id="<?php echo $this->get_field_name( 'enable_' . $key ) ?>"
100
+ name="<?php echo $this->get_field_name( 'enable_' . $key ) ?>"
101
+ type="checkbox"
102
+ value="1" <?php checked(1, $instance[ 'enable_' . $key ] ) ?> />
103
+
104
+ <label class="description" for="<?php echo $this->get_field_id( 'url_' . $key ); ?>"><?php _e( $item['name'] . ' URL', 'sfmsb_domain'); ?></label>
105
+
106
+ <input id="<?php echo $this->get_field_id( 'url_' . $key ) ?>"
107
+ class="widefat"
108
+ name="<?php echo $this->get_field_name( 'url_' . $key ); ?>"
109
+ type="text"
110
+ class=""
111
+ value="<?php echo esc_url( $instance['url_' . $key] ); ?>"/>
112
+ </p>
113
+
114
+ <? } // foreach available buttons ?>
115
+
116
+
117
+ <!-- *** STYLE select ***-->
118
+ <p>
119
+ <label class="description" for="<?php echo $this->get_field_id( 'style' ); ?>"><b><?php _e('Style', 'sfmsb_domain'); ?></b></label>
120
+ <select id="<?php echo $this->get_field_id( 'style' ); ?>" name="<?php echo $this->get_field_name( 'style' ); ?>">
121
+ <option value="circle" <?php selected($instance[ 'style' ], 'circle') ?>><?php _e('Rounded', 'sfmsb_domain') ?></option>
122
+ <option value="square" <?php selected($instance[ 'style' ], 'square') ?>><?php _e('Squared', 'sfmsb_domain') ?></option>
123
+ </select>
124
+ </p>
125
+
126
+ <script type='text/javascript'>
127
+ jQuery(document).ready(function($) {
128
+ $('.sfmsb-color-picker').wpColorPicker();
129
+ });
130
+ </script>
131
+
132
+ <p>
133
+ <label class="description" for="<?php echo $this->get_field_id( 'color' ); ?>"><b><?php _e( 'Color', 'sfmsb_domain' ); ?></b></label>
134
+ <input class="sfmsb-color-picker" type="text" id="<?php echo $this->get_field_id( 'color' ); ?>" name="<?php echo $this->get_field_name( 'color' ); ?>" value="<?php echo esc_attr( $instance['color'] ); ?>" />
135
+ </p>
136
+
137
+ <!-- *** SIZES radios ***-->
138
+ <p>
139
+ <label class="description" for="<?php echo $this->get_field_id( 'size' ); ?>"><b><?php _e('Size', 'sfmsb_domain'); ?></b></label>
140
+ &nbsp;&nbsp;&nbsp;
141
+
142
+ <input class="s"
143
+ name="<?php echo $this->get_field_name( 'size' ); ?>"
144
+ type="text"
145
+ value="<?php echo esc_attr( $instance['size'] ); ?>" /> px
146
+
147
+ </p>
148
+
149
+ <!-- *** POSITIONS radios ***-->
150
+ <p>
151
+ <label class="description" for="<?php echo $this->get_field_id( 'position' ); ?>"><b><?php _e('Position', 'sfmsb_domain'); ?></b></label>
152
+ <br/>
153
+
154
+
155
+ <input id="<?php echo $this->get_field_id( 'position' ); ?>"
156
+ name="<?php echo $this->get_field_name( 'position' ); ?>"
157
+ type="radio"
158
+ value="under" <?php checked('under', $instance['position']) ?> />
159
+
160
+ <label class="description"><?php _e('Icons under text', 'sfmsb_domain'); ?></label>
161
+ &nbsp;
162
+
163
+ <input id="<?php echo $this->get_field_id( 'position' ); ?>"
164
+ name="<?php echo $this->get_field_name( 'position' ); ?>"
165
+ type="radio"
166
+ value="float" <?php checked('float', $instance['position']) ?> />
167
+
168
+ <label class="description"><?php _e('Icons next to text', 'sfmsb_domain'); ?></label>
169
+ &nbsp;
170
+ </p>
171
+
172
+
173
+ <?
174
+
175
+ }
176
+
177
+ /**
178
+ * Update
179
+ *
180
+ * @param $new_instance new values
181
+ * @param $old_instance old values
182
+ * @return $instance values to save or false if hasn't been saved
183
+ * @since 1.0
184
+ */
185
+
186
+ function update($new_instance, $old_instance) {
187
+
188
+ $instance = $old_instance;
189
+
190
+ $instance['title'] = $new_instance['title'];
191
+ $instance['text'] = $new_instance['text'];
192
+
193
+ foreach( $this->available_buttons as $key => $item ){
194
+
195
+ $instance['url_' . $key] = esc_url($new_instance['url_' . $key]);
196
+ $instance['enable_' . $key] = absint($new_instance['enable_' . $key]);
197
+
198
+ }
199
+
200
+ $instance['size'] = absint(esc_attr($new_instance['size']));
201
+ $instance['position'] = esc_attr($new_instance['position']);
202
+ $instance['style'] = esc_attr($new_instance['style']);
203
+ $instance['color'] = esc_attr($new_instance['color']);
204
+
205
+ return $instance;
206
+ }
207
+
208
+ /**
209
+ * widget
210
+ *
211
+ * @param array $args Arguments
212
+ * @param array $instance Settings for the widget
213
+ */
214
+
215
+ function widget($args, $instance) {
216
+
217
+ extract( $args );
218
+
219
+ $instance = wp_parse_args( (array) $instance, $this->defaults );
220
+
221
+ echo $before_widget;
222
+
223
+ $title = apply_filters( 'widget_title', $instance['title']);
224
+
225
+ // ** do_action
226
+ do_action('sfmsb_widget_pre_buttons');
227
+
228
+ echo '<div class="sfmsb-follow-social-buttons sfmsb-' . $instance['position'] . ' sfmsb-' . $instance['style'] . ' ' . $instance['size'] . '">';
229
+
230
+ if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };
231
+
232
+ switch( TRUE ) {
233
+
234
+ case $instance['size'] <= 25 :
235
+ $text_size = 14;
236
+ break;
237
+
238
+ case $instance['size'] > 25 && $instance['size'] < 35 :
239
+ $text_size = $instance['size'] / 2 + 3;
240
+ break;
241
+
242
+ case $instance['size'] >= 35 :
243
+ $text_size = $instance['size'] / 2;
244
+ break;
245
+ }
246
+
247
+ if ( !empty( $instance['text'] ) ) { echo '<span class="sfmsb-text" style="font-size:'. $text_size .'px;">' . $instance['text'] . '</span>'; };
248
+
249
+ // ** do_action
250
+ do_action('sfmsb_widget_before_links');
251
+
252
+ foreach ( SFMSB::instance()->available_buttons as $key => $item ) {
253
+
254
+ if( isset( $instance['enable_' . $key] ) && $instance['enable_' . $key] == 1 ) {
255
+
256
+ if( $instance['color'] == '') {
257
+ $color = '#' . $item['color'];
258
+ }else{
259
+ $color = $instance['color'];
260
+ }
261
+
262
+ echo '<a target="_blank" href="' . esc_url($instance['url_' . $key]) . '">';
263
+ echo '<span class="sfmsb-icon-'. $key .'-'. $instance['style'] .'" style="color:' . $color . ';font-size:'. $instance['size'] .'px"></span>';
264
+ echo '</a>';
265
+ }
266
+ } // foreach
267
+
268
+ // ** do_action
269
+ do_action('sfmsb_widget_after_links');
270
+
271
+ echo '<div class="clearfix"></div></div>';
272
+
273
+ // ** do_action
274
+ do_action('sfmsb_widget_pos_buttons');
275
+
276
+ echo $after_widget;
277
+ }
278
+
279
+
280
+
281
+ /**
282
+ * register_widgets
283
+ * @since 1.0.0
284
+ */
285
+ public static function register_widgets() {
286
+ register_widget( 'Sfmsb_Widget' );
287
+ }
288
+
289
+
290
+ /**
291
+ * add_style
292
+ * @since 1.0.0
293
+ */
294
+ public static function add_style() {
295
+ wp_enqueue_style('sfmsb-style', SFMSB_PLUGIN_URL . 'assets/css/style.css');
296
+ }
297
+
298
+ /**
299
+ * add_admin_style
300
+ * @since 1.0.0
301
+ */
302
+ public static function add_admin_scripts() {
303
+ wp_enqueue_style('sfmsb-admin-style', SFMSB_PLUGIN_URL . 'assets/css/admin.css');
304
+ wp_enqueue_style( 'wp-color-picker' );
305
+ wp_enqueue_script( 'wp-color-picker' );
306
+ }
307
+
308
+
309
+ }// class
310
+ }// if
311
+
languages/sfmsb_domain-en_EN.mo ADDED
Binary file
languages/sfmsb_domain-en_EN.po ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Simple Follow Me Social Buttons Widget\n"
4
+ "POT-Creation-Date: 2014-07-08 10:16+0100\n"
5
+ "PO-Revision-Date: 2014-07-08 10:16+0100\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "Language: en\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.5\n"
13
+ "X-Poedit-Basepath: ..\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
16
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
17
+ "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #: includes/widget.php:25
22
+ msgid "Social"
23
+ msgstr ""
24
+
25
+ #: includes/widget.php:28
26
+ msgid "Follow me on:"
27
+ msgstr ""
28
+
29
+ #: includes/widget.php:52
30
+ msgid "Simple follow me social buttons"
31
+ msgstr ""
32
+
33
+ #: includes/widget.php:73
34
+ msgid "Title"
35
+ msgstr ""
36
+
37
+ #: includes/widget.php:84
38
+ msgid "Text"
39
+ msgstr ""
40
+
41
+ #: includes/widget.php:103
42
+ msgid " URL"
43
+ msgstr ""
44
+
45
+ #: includes/widget.php:118
46
+ msgid "Style"
47
+ msgstr ""
48
+
49
+ #: includes/widget.php:120
50
+ msgid "Rounded"
51
+ msgstr ""
52
+
53
+ #: includes/widget.php:121
54
+ msgid "Squared"
55
+ msgstr ""
56
+
57
+ #: includes/widget.php:132
58
+ msgid "Color"
59
+ msgstr ""
60
+
61
+ #: includes/widget.php:138
62
+ msgid "Size"
63
+ msgstr ""
64
+
65
+ #: includes/widget.php:150
66
+ msgid "Position"
67
+ msgstr ""
68
+
69
+ #: includes/widget.php:159
70
+ msgid "Icons under text"
71
+ msgstr ""
72
+
73
+ #: includes/widget.php:167
74
+ msgid "Icons next to text"
75
+ msgstr ""
languages/sfmsb_domain-es_ES.mo ADDED
Binary file
languages/sfmsb_domain-es_ES.po ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Simple Follow Me Social Buttons Widget\n"
4
+ "POT-Creation-Date: 2014-07-08 10:16+0100\n"
5
+ "PO-Revision-Date: 2014-07-08 10:17+0100\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "Language: es\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.5\n"
13
+ "X-Poedit-Basepath: ..\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
16
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
17
+ "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #: includes/widget.php:25
22
+ msgid "Social"
23
+ msgstr "Social"
24
+
25
+ #: includes/widget.php:28
26
+ msgid "Follow me on:"
27
+ msgstr "Sígueme en:"
28
+
29
+ #: includes/widget.php:52
30
+ msgid "Simple follow me social buttons"
31
+ msgstr "Simple follow me social buttons"
32
+
33
+ #: includes/widget.php:73
34
+ msgid "Title"
35
+ msgstr "Título"
36
+
37
+ #: includes/widget.php:84
38
+ msgid "Text"
39
+ msgstr "Texto"
40
+
41
+ #: includes/widget.php:103
42
+ msgid " URL"
43
+ msgstr "URL"
44
+
45
+ #: includes/widget.php:118
46
+ msgid "Style"
47
+ msgstr "Estilo"
48
+
49
+ #: includes/widget.php:120
50
+ msgid "Rounded"
51
+ msgstr "Redondo"
52
+
53
+ #: includes/widget.php:121
54
+ msgid "Squared"
55
+ msgstr "Cuadrado"
56
+
57
+ #: includes/widget.php:132
58
+ msgid "Color"
59
+ msgstr "Color"
60
+
61
+ #: includes/widget.php:138
62
+ msgid "Size"
63
+ msgstr "Tamaño"
64
+
65
+ #: includes/widget.php:150
66
+ msgid "Position"
67
+ msgstr "Posición"
68
+
69
+ #: includes/widget.php:159
70
+ msgid "Icons under text"
71
+ msgstr "Iconos bajo texto"
72
+
73
+ #: includes/widget.php:167
74
+ msgid "Icons next to text"
75
+ msgstr "Iconos junto texto"
readme.txt ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Simple Follow Me Social Buttons Widget ===
2
+ Contributors: lucymtc
3
+ Tags: social,follow me,buttons,twitter,facebook,pinterest,google plus,linkedin,wordpress,rss,github,youtube,vimeo,instagram,font icons,retina ready
4
+ Requires at least: 3.8
5
+ Tested up to: 3.9.1
6
+ Stable tag: 1.1
7
+ License: GPLv2 or later
8
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
+
10
+ Add follow me social buttons. Uses font icons, ready for Retina Display.
11
+
12
+
13
+ == Description ==
14
+ No settings page, only a simple widget to add to your widget areas.
15
+ It displays the Follow Me social buttons. No images, this widget uses a font icons so it makes it ready for Retina Display.
16
+
17
+ * Options to choose style between rounded and square.
18
+ * You can also enter the size of the icons in pixels.
19
+ * Choose the color from the color picker. Leave blank for default colors.
20
+
21
+ Availbale Icons:
22
+
23
+ * Twitter
24
+ * Facebook
25
+ * Pinterest
26
+ * Google +
27
+ * Linkedin
28
+ * WordPress
29
+ * RSS Feed
30
+ * Github
31
+ * Youtube
32
+ * Vimeo
33
+ * Instagram
34
+
35
+ Icons from www.flaticon.com
36
+
37
+
38
+ == Installation ==
39
+ 1. Unzip simple-follow-me-social-buttons.zip
40
+ 2. Upload the unziped folder `simple-follow-me-social-buttons` to the `/wp-content/plugins/` directory
41
+ 3. Activate the plugin through the \'Plugins\' menu in WordPress
42
+ 4. Go to Appearance -> Widgets and look for the widget Simple follow me social buttons
43
+
44
+ == Screenshots ==
45
+ 1. ../assets/screenshot-1.png
46
+ 2. ../assets/screenshot-2.png
47
+
48
+ == Changelog ==
49
+
50
+ = 1.1 =
51
+ * Change set of icons
52
+ * Added Instagram, Youtube and Vimeo icons
53
+
54
+ = 1.0 =
55
+ * First version
screenshot-1.png ADDED
Binary file
screenshot-2.png ADDED
Binary file
simple-follow-me-social-buttons-widget.php ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
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: 1.1
6
+ Author: Lucy Tomás
7
+ Author URI: https://wordpress.org/support/profile/lucymtc
8
+ License: GPLv2
9
+ */
10
+
11
+ /* Copyright 2014 Lucy Tomás (email: lucy@wptips.me)
12
+
13
+ This program is free software; you can redistribute it and/or modify
14
+ it under the terms of the GNU General Public License as published by
15
+ the Free Software Foundation; either version 2 of the License, or
16
+ (at your option) any later version.
17
+
18
+ This program is distributed in the hope that it will be useful,
19
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ GNU General Public License for more details.
22
+
23
+ You should have received a copy of the GNU General Public License
24
+ along with this program; if not, write to the Free Software
25
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
+ */
27
+
28
+ // If this file is called directly, exit.
29
+ if ( !defined( 'ABSPATH' ) ) exit;
30
+
31
+ if( !class_exists('SFMSB') ) {
32
+
33
+ /**
34
+ * Main class
35
+ * @since 1.0
36
+ */
37
+
38
+ final class SFMSB {
39
+
40
+ private static $instance = null;
41
+
42
+ public $default_options = array();
43
+
44
+ /**
45
+ * Instance
46
+ * This functions returns the only one true instance of the plugin main class
47
+ *
48
+ * @return object instance
49
+ * @since 1.0
50
+ */
51
+
52
+ public static function instance (){
53
+
54
+ if( self::$instance == null ){
55
+
56
+ self::$instance = new SFMSB;
57
+ self::$instance->constants();
58
+ self::$instance->includes();
59
+ self::$instance->load_textdomain();
60
+ self::$instance->variables();
61
+ }
62
+
63
+ return self::$instance;
64
+ }
65
+
66
+ /**
67
+ * Class Contructor
68
+ *
69
+ * @since 1.0
70
+ */
71
+
72
+ private function __construct () {
73
+
74
+ $this->default_options = array();
75
+
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
+
84
+ }
85
+
86
+
87
+ /**
88
+ * includes
89
+ *
90
+ * @since 1.0
91
+ */
92
+
93
+ private function includes () {
94
+
95
+ require_once( SFMSB_PLUGIN_DIR . '/includes/widget.php');
96
+
97
+ }
98
+
99
+
100
+ /**
101
+ * constants
102
+ * @since 1.0
103
+ */
104
+
105
+ private function constants() {
106
+
107
+ if( !defined('SFMSB_PLUGIN_DIR') ) { define('SFMSB_PLUGIN_DIR', plugin_dir_path( __FILE__ )); }
108
+ if( !defined('SFMSB_PLUGIN_URL') ) { define('SFMSB_PLUGIN_URL', plugin_dir_url( __FILE__ )); }
109
+ if( !defined('SFMSB_PLUGIN_FILE') ) { define('SFMSB_PLUGIN_FILE', __FILE__ ); }
110
+ if( !defined('SFMSB_PLUGIN_VERSION') ) { define('SFMSB_PLUGIN_VERSION', '1.1'); }
111
+
112
+ }
113
+
114
+ /**
115
+ * variables
116
+ * @since 1.0
117
+ */
118
+
119
+ private function variables(){
120
+
121
+
122
+ $this->available_buttons = array('twitter' => array('name' => 'Twitter',
123
+ 'color' => '84b3dc'),
124
+ 'facebook' => array('name' => 'Facebook',
125
+ 'color' => '6c97bf'),
126
+ 'googleplus' => array('name' => 'Google+',
127
+ 'color' => 'd68778'),
128
+ 'feed' => array('name' => 'Rss Feed',
129
+ 'color' => 'e1b96a'),
130
+ 'linkedin' => array('name' => 'Linkedin',
131
+ 'color' => '6c97bf'),
132
+ 'pinterest' => array('name' => 'Pinterest',
133
+ 'color' => 'd68678'),
134
+ 'wordpress' => array('name' => 'WordPress',
135
+ 'color' => '6b96be'),
136
+ 'github' => array('name' => 'Github',
137
+ 'color' => '717272'),
138
+ 'instagram' => array('name' => 'Instagram',
139
+ 'color' => 'b9a38c'),
140
+ 'youtube' => array('name' => 'Youtube',
141
+ 'color' => 'd68778'),
142
+ 'vimeo' => array('name' => 'Vimeo',
143
+ 'color' => '4b6079')
144
+ );
145
+
146
+ }
147
+
148
+ /**
149
+ * load_textdomain
150
+ * @since 1.0
151
+ */
152
+ public function load_textdomain() {
153
+
154
+ load_plugin_textdomain('sfmsb_domain', false, dirname( plugin_basename( SFMSB_PLUGIN_FILE ) ) . '/languages/' );
155
+ }
156
+
157
+
158
+ }// class
159
+
160
+
161
+ }// if !class_exists
162
+
163
+
164
+ SFMSB::instance();
165
+
166
+
uninstall.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file runs when plugin is uninstalled
4
+ *
5
+ * @package SFMSB
6
+ * @subpackage uninstall
7
+ * @author Lucy Tomás
8
+ * @since 1.0
9
+ */
10
+
11
+ // If uninstall not called from WordPress exit
12
+ if( !defined( 'WP_UNINSTALL_PLUGIN' ) ) exit ();
13
+
14
+
15
+ delete_option('sfmsb_settings');