Version Description
- Preview section on the settings page changed to live preview.
- Stylesheet in the admin.css file improved.
- The '!important' declarations in the admin.css file removed.
- Code formatting in the admin.js file improved.
- Code commenting improved.
- Load of the additional remote CSS file removed from the admin.js file.
- Changed the sorting of enqueueing of scripts.
- The ''Family' page tab renamed to 'Store'.
- Added ad banner of my store website.
Download this release
Release Info
Developer | Arthur Gareginyan |
Plugin | Social Media Follow Buttons Bar |
Version | 4.15 |
Comparing to | |
See all releases |
Code changes from version 4.14 to 4.15
- inc/css/admin.css +82 -82
- inc/js/admin.js +66 -13
- inc/php/enqueue.php +14 -30
- inc/php/functional.php +17 -46
- inc/php/messages.php +2 -2
- inc/php/page.php +4 -4
- inc/php/settings.php +8 -6
- languages/social-media-buttons-toolbar-es_ES.po +1 -1
- languages/social-media-buttons-toolbar-ru_RU.po +1 -1
- languages/social-media-buttons-toolbar.pot +1 -1
- readme.txt +12 -1
- social-media-buttons-toolbar.php +1 -1
inc/css/admin.css
CHANGED
@@ -5,18 +5,17 @@
|
|
5 |
* @uthor Arthur Gareginyan
|
6 |
* @link https://www.arthurgareginyan.com
|
7 |
* @copyright Copyright (c) 2016-2017 Arthur Gareginyan. All Rights Reserved.
|
8 |
-
* @since 4.
|
9 |
*/
|
10 |
|
11 |
|
12 |
/* Main
|
13 |
-------------------------------------------------------------- */
|
14 |
body {
|
15 |
-
background: #f1f1f1
|
16 |
}
|
17 |
p {
|
18 |
font-family: Verdana, Geneva, sans-serif;
|
19 |
-
font-size: 13px;
|
20 |
}
|
21 |
.postbox a {
|
22 |
text-decoration: none;
|
@@ -25,10 +24,10 @@ p {
|
|
25 |
/* Title and Description of page
|
26 |
-------------------------------------------------------------- */
|
27 |
h2 {
|
28 |
-
padding: 30px
|
29 |
background-color: #333;
|
30 |
-
color: #e0dfdc
|
31 |
-
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif
|
32 |
font-size: 60px !important;
|
33 |
text-align: center;
|
34 |
text-transform: uppercase;
|
@@ -42,27 +41,29 @@ h2 {
|
|
42 |
0 6px 0 #1a1a1a,
|
43 |
0 7px 0 #161616,
|
44 |
0 8px 0 #121212,
|
45 |
-
0 22px 30px
|
46 |
-
letter-spacing: .1em;
|
47 |
line-height: 50px !important;
|
48 |
overflow: hidden;
|
49 |
}
|
50 |
h2 span {
|
51 |
content: '\A';
|
52 |
-
display: block
|
53 |
margin-top: 15px;
|
54 |
font-size: 16px;
|
55 |
text-shadow: none;
|
56 |
-
line-height: 20px
|
57 |
}
|
58 |
h2 span a,
|
59 |
h2 span a:hover {
|
60 |
-
color: #
|
61 |
}
|
62 |
h2 span a:hover {
|
63 |
text-shadow: none;
|
64 |
text-decoration: none;
|
65 |
-webkit-transition: all 0.2s ease-in-out;
|
|
|
|
|
66 |
transition: all 0.2s ease-in-out;
|
67 |
}
|
68 |
h2 .version {
|
@@ -70,12 +71,12 @@ h2 .version {
|
|
70 |
right: 40px;
|
71 |
color: #a6a6a6;
|
72 |
text-shadow: none;
|
73 |
-
letter-spacing: .1em;
|
74 |
}
|
75 |
|
76 |
/* Titles and Descriptions of sections
|
77 |
-------------------------------------------------------------- */
|
78 |
-
|
79 |
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
80 |
font-size: 16px !important;
|
81 |
font-weight: 400;
|
@@ -85,7 +86,7 @@ h3.title {
|
|
85 |
/* Modal - PopUp windows
|
86 |
-------------------------------------------------------------- */
|
87 |
.modal-dialog {
|
88 |
-
margin-top: 15
|
89 |
}
|
90 |
.hello-message .modal-body {
|
91 |
height: 180px;
|
@@ -115,12 +116,11 @@ h3.title {
|
|
115 |
/* Notes
|
116 |
-------------------------------------------------------------- */
|
117 |
.note {
|
118 |
-
padding: 0.
|
119 |
border-left: 3px solid #05c2ff;
|
120 |
border-right: 3px solid #05c2ff;
|
121 |
-
background:
|
122 |
font-family: Verdana, Geneva, sans-serif;
|
123 |
-
font-size: 13px;
|
124 |
color: #646464;
|
125 |
padding-left: 15px;
|
126 |
letter-spacing: 0.1px;
|
@@ -128,21 +128,24 @@ h3.title {
|
|
128 |
|
129 |
/* Sidebar
|
130 |
-------------------------------------------------------------- */
|
131 |
-
#side-sortables {
|
132 |
-
|
133 |
-
}
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
}
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
}
|
|
|
|
|
|
|
146 |
|
147 |
/* Support - addition section
|
148 |
-------------------------------------------------------------- */
|
@@ -157,13 +160,13 @@ h3.title {
|
|
157 |
-------------------------------------------------------------- */
|
158 |
@media (max-width: 860px) {
|
159 |
.inner-sidebar {
|
160 |
-
display: none
|
161 |
}
|
162 |
#support-addition {
|
163 |
display: block;
|
164 |
}
|
165 |
#post-body-content {
|
166 |
-
margin-right: 0
|
167 |
}
|
168 |
}
|
169 |
|
@@ -175,10 +178,6 @@ h3.title {
|
|
175 |
.tab-page.active {
|
176 |
display: block;
|
177 |
}
|
178 |
-
.tab-page li {
|
179 |
-
font-family: Verdana, Geneva, sans-serif;
|
180 |
-
font-size: 13px;
|
181 |
-
}
|
182 |
|
183 |
/* Tabs navigation menu
|
184 |
-------------------------------------------------------------- */
|
@@ -191,25 +190,24 @@ h3.title {
|
|
191 |
display: -ms-flexbox;
|
192 |
display: flex;
|
193 |
height: 50px;
|
194 |
-
margin: -11px
|
195 |
-
background: #
|
196 |
-
border: 1px solid
|
197 |
-
box-shadow:
|
198 |
-
border-radius: 0.
|
199 |
}
|
200 |
.tabs-nav:after {
|
201 |
content: '';
|
202 |
display: block;
|
203 |
-
height:
|
204 |
clear: both;
|
205 |
visibility: hidden;
|
206 |
}
|
207 |
-
|
208 |
.tabs-nav li {
|
209 |
position: relative;
|
210 |
display: block;
|
211 |
float: left;
|
212 |
-
margin-bottom:
|
213 |
}
|
214 |
.tabs-nav li:first-of-type a {
|
215 |
border-radius: 3px 0 0 3px;
|
@@ -217,11 +215,11 @@ h3.title {
|
|
217 |
.tabs-nav li.active:before {
|
218 |
position: absolute;
|
219 |
content: '';
|
220 |
-
top: 0
|
221 |
-
right:
|
222 |
height: 100%;
|
223 |
width: 1px;
|
224 |
-
background:
|
225 |
}
|
226 |
.tabs-nav li.active:after {
|
227 |
background-color: #f2f2f2;
|
@@ -230,18 +228,21 @@ h3.title {
|
|
230 |
top: 100%;
|
231 |
left: 50%;
|
232 |
-webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
|
|
|
|
|
233 |
-ms-transform: translateX(-50%) translateY(-50%) rotate(45deg);
|
234 |
transform: translateX(-50%) translateY(-50%) rotate(45deg);
|
235 |
-
margin: 0.8px
|
236 |
width: 0.6em;
|
237 |
height: 0.6em;
|
238 |
border: none;
|
239 |
border-bottom: 1px solid #d4d4d5;
|
240 |
border-right: 1px solid #d4d4d5;
|
241 |
-webkit-transition: background 0.1s ease;
|
|
|
|
|
242 |
transition: background 0.1s ease;
|
243 |
}
|
244 |
-
|
245 |
.tabs-nav li a {
|
246 |
position: relative;
|
247 |
display: block;
|
@@ -251,31 +252,31 @@ h3.title {
|
|
251 |
color: grey;
|
252 |
border-left: 1px solid;
|
253 |
border-right: 1px solid;
|
254 |
-
border-color: #
|
255 |
}
|
256 |
.tabs-nav li a:hover,
|
257 |
.tabs-nav li a:focus {
|
258 |
text-decoration: none;
|
259 |
-
background:
|
260 |
-
border-color: #
|
261 |
}
|
262 |
.tabs-nav li.active a,
|
263 |
.tabs-nav li.active a:hover,
|
264 |
.tabs-nav li.active a:focus {
|
265 |
-
background:
|
266 |
-
color:
|
267 |
font-weight: normal;
|
268 |
-
border-color: #
|
269 |
-
-webkit-box-shadow: inset 0 3px 5px
|
270 |
-
box-shadow: inset 0 3px 5px
|
|
|
271 |
}
|
272 |
-
|
273 |
-
@media (max-width:500px) {
|
274 |
.tabs-nav li:last-of-type {
|
275 |
display: none;
|
276 |
}
|
277 |
}
|
278 |
-
@media (max-width:413px) {
|
279 |
.tabs-nav li:nth-last-of-type(2) {
|
280 |
display: none;
|
281 |
}
|
@@ -287,7 +288,7 @@ h3.title {
|
|
287 |
margin-top: 10px;
|
288 |
}
|
289 |
.panel-heading a {
|
290 |
-
text-decoration: none
|
291 |
}
|
292 |
.panel-title,
|
293 |
.panel-title:before,
|
@@ -295,18 +296,17 @@ h3.title {
|
|
295 |
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
296 |
font-size: 16px;
|
297 |
font-weight: 400;
|
298 |
-
color: #6d6d6d
|
299 |
-
text-shadow: 1px 1px
|
300 |
}
|
301 |
-
.panel-title:before
|
302 |
content: "Q.";
|
303 |
display: inline-block;
|
304 |
-
color: red
|
305 |
padding-right: 8px;
|
306 |
}
|
307 |
.panel-title:after {
|
308 |
content: "\25BC";
|
309 |
-
display: inline-block;
|
310 |
float: right;
|
311 |
margin: 0;
|
312 |
background: none;
|
@@ -318,9 +318,9 @@ h3.title {
|
|
318 |
display: inline;
|
319 |
}
|
320 |
.panel-body:before {
|
321 |
-
content: "A."
|
322 |
-
display: inline-block
|
323 |
-
color: #00a5e2
|
324 |
padding-right: 8px;
|
325 |
}
|
326 |
.panel-body {
|
@@ -343,23 +343,24 @@ h3.title {
|
|
343 |
.custom-counter li {
|
344 |
counter-increment: step-counter;
|
345 |
margin-bottom: 15px;
|
|
|
346 |
}
|
347 |
.custom-counter li::before {
|
348 |
content: counter(step-counter);
|
349 |
margin-left: -30px;
|
350 |
margin-right: 8px;
|
|
|
351 |
font-size: 90%;
|
352 |
-
background-color: rgb(0,200,200);
|
353 |
-
color: white;
|
354 |
font-weight: bold;
|
355 |
-
|
|
|
356 |
border-radius: 50%;
|
357 |
}
|
358 |
|
359 |
/* WordPress Color Picker
|
360 |
-------------------------------------------------------------- */
|
361 |
.wp-picker-container a {
|
362 |
-
text-decoration: none
|
363 |
}
|
364 |
.wp-color-result {
|
365 |
height: 30px;
|
@@ -371,7 +372,7 @@ h3.title {
|
|
371 |
/* ON/OFF Buttons
|
372 |
-------------------------------------------------------------- */
|
373 |
.btn {
|
374 |
-
border-radius: 0
|
375 |
}
|
376 |
|
377 |
/* Form-table
|
@@ -395,13 +396,13 @@ h3.title {
|
|
395 |
td.help-text {
|
396 |
width: 90%;
|
397 |
font-family: Verdana, Geneva, sans-serif;
|
398 |
-
font-size: 12px
|
399 |
font-style: italic;
|
400 |
float: left;
|
401 |
clear: left;
|
402 |
color: #797979;
|
403 |
line-height: 15px;
|
404 |
-
padding-top:
|
405 |
}
|
406 |
|
407 |
/* INPUT and TEXTAREA
|
@@ -413,7 +414,6 @@ textarea {
|
|
413 |
.form-table input[type=text] {
|
414 |
max-width: 90%;
|
415 |
}
|
416 |
-
|
417 |
textarea,
|
418 |
.form-table input[type=text] {
|
419 |
padding-top: 5px;
|
@@ -422,9 +422,9 @@ textarea,
|
|
422 |
-moz-border-radius: 3px;
|
423 |
border-radius: 3px;
|
424 |
position: relative;
|
425 |
-
-webkit-box-shadow: inset
|
426 |
-
-moz-box-shadow: inset
|
427 |
-
box-shadow: inset
|
428 |
}
|
429 |
|
430 |
/* SPECIFIC TO THIS PLUGIN
|
5 |
* @uthor Arthur Gareginyan
|
6 |
* @link https://www.arthurgareginyan.com
|
7 |
* @copyright Copyright (c) 2016-2017 Arthur Gareginyan. All Rights Reserved.
|
8 |
+
* @since 4.15
|
9 |
*/
|
10 |
|
11 |
|
12 |
/* Main
|
13 |
-------------------------------------------------------------- */
|
14 |
body {
|
15 |
+
background: #f1f1f1;
|
16 |
}
|
17 |
p {
|
18 |
font-family: Verdana, Geneva, sans-serif;
|
|
|
19 |
}
|
20 |
.postbox a {
|
21 |
text-decoration: none;
|
24 |
/* Title and Description of page
|
25 |
-------------------------------------------------------------- */
|
26 |
h2 {
|
27 |
+
padding: 30px !important;
|
28 |
background-color: #333;
|
29 |
+
color: #e0dfdc;
|
30 |
+
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
31 |
font-size: 60px !important;
|
32 |
text-align: center;
|
33 |
text-transform: uppercase;
|
41 |
0 6px 0 #1a1a1a,
|
42 |
0 7px 0 #161616,
|
43 |
0 8px 0 #121212,
|
44 |
+
0 22px 30px #000000;
|
45 |
+
letter-spacing: 0.1em;
|
46 |
line-height: 50px !important;
|
47 |
overflow: hidden;
|
48 |
}
|
49 |
h2 span {
|
50 |
content: '\A';
|
51 |
+
display: block;
|
52 |
margin-top: 15px;
|
53 |
font-size: 16px;
|
54 |
text-shadow: none;
|
55 |
+
line-height: 20px;
|
56 |
}
|
57 |
h2 span a,
|
58 |
h2 span a:hover {
|
59 |
+
color: #fff;
|
60 |
}
|
61 |
h2 span a:hover {
|
62 |
text-shadow: none;
|
63 |
text-decoration: none;
|
64 |
-webkit-transition: all 0.2s ease-in-out;
|
65 |
+
-moz-transition: all 0.2s ease-in-out;
|
66 |
+
-o-transition: all 0.2s ease-in-out;
|
67 |
transition: all 0.2s ease-in-out;
|
68 |
}
|
69 |
h2 .version {
|
71 |
right: 40px;
|
72 |
color: #a6a6a6;
|
73 |
text-shadow: none;
|
74 |
+
letter-spacing: 0.1em;
|
75 |
}
|
76 |
|
77 |
/* Titles and Descriptions of sections
|
78 |
-------------------------------------------------------------- */
|
79 |
+
.title {
|
80 |
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
81 |
font-size: 16px !important;
|
82 |
font-weight: 400;
|
86 |
/* Modal - PopUp windows
|
87 |
-------------------------------------------------------------- */
|
88 |
.modal-dialog {
|
89 |
+
margin-top: 15%;
|
90 |
}
|
91 |
.hello-message .modal-body {
|
92 |
height: 180px;
|
116 |
/* Notes
|
117 |
-------------------------------------------------------------- */
|
118 |
.note {
|
119 |
+
padding: 0.3em 1em;
|
120 |
border-left: 3px solid #05c2ff;
|
121 |
border-right: 3px solid #05c2ff;
|
122 |
+
background: #eafaff;
|
123 |
font-family: Verdana, Geneva, sans-serif;
|
|
|
124 |
color: #646464;
|
125 |
padding-left: 15px;
|
126 |
letter-spacing: 0.1px;
|
128 |
|
129 |
/* Sidebar
|
130 |
-------------------------------------------------------------- */
|
131 |
+
#side-sortables {
|
132 |
+
position: relative;
|
133 |
+
}
|
134 |
+
#side-sortables .postbox {
|
135 |
+
text-align: center;
|
136 |
+
}
|
137 |
+
#side-sortables .paypal {
|
138 |
+
max-width: 100%;
|
139 |
+
font-size: 18px;
|
140 |
+
overflow: hidden;
|
141 |
+
}
|
142 |
+
#side-sortables .banner .inside {
|
143 |
+
margin: 0;
|
144 |
+
padding: 5px 0;
|
145 |
+
}
|
146 |
+
#side-sortables .banner img {
|
147 |
+
width: 265px;
|
148 |
+
}
|
149 |
|
150 |
/* Support - addition section
|
151 |
-------------------------------------------------------------- */
|
160 |
-------------------------------------------------------------- */
|
161 |
@media (max-width: 860px) {
|
162 |
.inner-sidebar {
|
163 |
+
display: none;
|
164 |
}
|
165 |
#support-addition {
|
166 |
display: block;
|
167 |
}
|
168 |
#post-body-content {
|
169 |
+
margin-right: 0;
|
170 |
}
|
171 |
}
|
172 |
|
178 |
.tab-page.active {
|
179 |
display: block;
|
180 |
}
|
|
|
|
|
|
|
|
|
181 |
|
182 |
/* Tabs navigation menu
|
183 |
-------------------------------------------------------------- */
|
190 |
display: -ms-flexbox;
|
191 |
display: flex;
|
192 |
height: 50px;
|
193 |
+
margin: -11px 0 18px 0;
|
194 |
+
background: #fff;
|
195 |
+
border: 1px solid #d9d9d9;
|
196 |
+
box-shadow: 0 1px 2px 0 #d9d9d9;
|
197 |
+
border-radius: 0.3rem;
|
198 |
}
|
199 |
.tabs-nav:after {
|
200 |
content: '';
|
201 |
display: block;
|
202 |
+
height: 0;
|
203 |
clear: both;
|
204 |
visibility: hidden;
|
205 |
}
|
|
|
206 |
.tabs-nav li {
|
207 |
position: relative;
|
208 |
display: block;
|
209 |
float: left;
|
210 |
+
margin-bottom: 0;
|
211 |
}
|
212 |
.tabs-nav li:first-of-type a {
|
213 |
border-radius: 3px 0 0 3px;
|
215 |
.tabs-nav li.active:before {
|
216 |
position: absolute;
|
217 |
content: '';
|
218 |
+
top: 0;
|
219 |
+
right: 0;
|
220 |
height: 100%;
|
221 |
width: 1px;
|
222 |
+
background: #f2f2f2;
|
223 |
}
|
224 |
.tabs-nav li.active:after {
|
225 |
background-color: #f2f2f2;
|
228 |
top: 100%;
|
229 |
left: 50%;
|
230 |
-webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
|
231 |
+
-moz-transform: translateX(-50%) translateY(-50%) rotate(45deg);
|
232 |
+
-o-transform: translateX(-50%) translateY(-50%) rotate(45deg);
|
233 |
-ms-transform: translateX(-50%) translateY(-50%) rotate(45deg);
|
234 |
transform: translateX(-50%) translateY(-50%) rotate(45deg);
|
235 |
+
margin: 0.8px 0 0;
|
236 |
width: 0.6em;
|
237 |
height: 0.6em;
|
238 |
border: none;
|
239 |
border-bottom: 1px solid #d4d4d5;
|
240 |
border-right: 1px solid #d4d4d5;
|
241 |
-webkit-transition: background 0.1s ease;
|
242 |
+
-moz-transition: background 0.1s ease;
|
243 |
+
-o-transition: background 0.1s ease;
|
244 |
transition: background 0.1s ease;
|
245 |
}
|
|
|
246 |
.tabs-nav li a {
|
247 |
position: relative;
|
248 |
display: block;
|
252 |
color: grey;
|
253 |
border-left: 1px solid;
|
254 |
border-right: 1px solid;
|
255 |
+
border-color: #fff;
|
256 |
}
|
257 |
.tabs-nav li a:hover,
|
258 |
.tabs-nav li a:focus {
|
259 |
text-decoration: none;
|
260 |
+
background: #f8f8f8;
|
261 |
+
border-color: #eee;
|
262 |
}
|
263 |
.tabs-nav li.active a,
|
264 |
.tabs-nav li.active a:hover,
|
265 |
.tabs-nav li.active a:focus {
|
266 |
+
background: #f4f4f4;
|
267 |
+
color: #000;
|
268 |
font-weight: normal;
|
269 |
+
border-color: #eee;
|
270 |
+
-webkit-box-shadow: inset 0 3px 5px #d9d9d9;
|
271 |
+
-moz-box-shadow: inset 0 3px 5px #d9d9d9;
|
272 |
+
box-shadow: inset 0 3px 5px #d9d9d9;
|
273 |
}
|
274 |
+
@media (max-width: 500px) {
|
|
|
275 |
.tabs-nav li:last-of-type {
|
276 |
display: none;
|
277 |
}
|
278 |
}
|
279 |
+
@media (max-width: 413px) {
|
280 |
.tabs-nav li:nth-last-of-type(2) {
|
281 |
display: none;
|
282 |
}
|
288 |
margin-top: 10px;
|
289 |
}
|
290 |
.panel-heading a {
|
291 |
+
text-decoration: none;
|
292 |
}
|
293 |
.panel-title,
|
294 |
.panel-title:before,
|
296 |
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
297 |
font-size: 16px;
|
298 |
font-weight: 400;
|
299 |
+
color: #6d6d6d;
|
300 |
+
text-shadow: 1px 1px 0 #fff;
|
301 |
}
|
302 |
+
.panel-title:before {
|
303 |
content: "Q.";
|
304 |
display: inline-block;
|
305 |
+
color: red;
|
306 |
padding-right: 8px;
|
307 |
}
|
308 |
.panel-title:after {
|
309 |
content: "\25BC";
|
|
|
310 |
float: right;
|
311 |
margin: 0;
|
312 |
background: none;
|
318 |
display: inline;
|
319 |
}
|
320 |
.panel-body:before {
|
321 |
+
content: "A.";
|
322 |
+
display: inline-block;
|
323 |
+
color: #00a5e2;
|
324 |
padding-right: 8px;
|
325 |
}
|
326 |
.panel-body {
|
343 |
.custom-counter li {
|
344 |
counter-increment: step-counter;
|
345 |
margin-bottom: 15px;
|
346 |
+
font-family: Verdana, Geneva, sans-serif;
|
347 |
}
|
348 |
.custom-counter li::before {
|
349 |
content: counter(step-counter);
|
350 |
margin-left: -30px;
|
351 |
margin-right: 8px;
|
352 |
+
padding: 4px 7px;
|
353 |
font-size: 90%;
|
|
|
|
|
354 |
font-weight: bold;
|
355 |
+
background-color: #00c8c8;
|
356 |
+
color: white;
|
357 |
border-radius: 50%;
|
358 |
}
|
359 |
|
360 |
/* WordPress Color Picker
|
361 |
-------------------------------------------------------------- */
|
362 |
.wp-picker-container a {
|
363 |
+
text-decoration: none;
|
364 |
}
|
365 |
.wp-color-result {
|
366 |
height: 30px;
|
372 |
/* ON/OFF Buttons
|
373 |
-------------------------------------------------------------- */
|
374 |
.btn {
|
375 |
+
border-radius: 0;
|
376 |
}
|
377 |
|
378 |
/* Form-table
|
396 |
td.help-text {
|
397 |
width: 90%;
|
398 |
font-family: Verdana, Geneva, sans-serif;
|
399 |
+
font-size: 12px;
|
400 |
font-style: italic;
|
401 |
float: left;
|
402 |
clear: left;
|
403 |
color: #797979;
|
404 |
line-height: 15px;
|
405 |
+
padding-top: 0;
|
406 |
}
|
407 |
|
408 |
/* INPUT and TEXTAREA
|
414 |
.form-table input[type=text] {
|
415 |
max-width: 90%;
|
416 |
}
|
|
|
417 |
textarea,
|
418 |
.form-table input[type=text] {
|
419 |
padding-top: 5px;
|
422 |
-moz-border-radius: 3px;
|
423 |
border-radius: 3px;
|
424 |
position: relative;
|
425 |
+
-webkit-box-shadow: inset 0 1px 1px #f4f4f4, 0 1px 0 #d9d9d9;
|
426 |
+
-moz-box-shadow: inset 0 1px 1px #f4f4f4, 0 1px 0 #d9d9d9;
|
427 |
+
box-shadow: inset 0 1px 1px #f4f4f4, 0 1px 0 #d9d9d9;
|
428 |
}
|
429 |
|
430 |
/* SPECIFIC TO THIS PLUGIN
|
inc/js/admin.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @uthor Arthur Gareginyan
|
6 |
* @link https://www.arthurgareginyan.com
|
7 |
* @copyright Copyright (c) 2016-2017 Arthur Gareginyan. All Rights Reserved.
|
8 |
-
* @since 4.
|
9 |
*/
|
10 |
|
11 |
|
@@ -13,32 +13,85 @@ jQuery(document).ready(function($) {
|
|
13 |
|
14 |
"use strict";
|
15 |
|
16 |
-
// Remove the
|
17 |
-
if (
|
18 |
setTimeout(function() {
|
19 |
-
$(
|
20 |
}, 3000);
|
21 |
}
|
22 |
|
23 |
// Enable Bootstrap Checkboxes
|
24 |
$(':checkbox').checkboxpicker();
|
25 |
|
26 |
-
//
|
27 |
-
$(
|
28 |
-
$(
|
29 |
-
$(
|
30 |
-
$(
|
31 |
|
32 |
// Add questions and answers into spoilers and color them in different colors
|
33 |
-
$(
|
34 |
-
$(
|
35 |
-
$(
|
36 |
|
37 |
-
if ( $(this).find(
|
38 |
$(this).addClass('panel-danger');
|
39 |
} else {
|
40 |
$(this).addClass('panel-info');
|
41 |
}
|
42 |
});
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
});
|
5 |
* @uthor Arthur Gareginyan
|
6 |
* @link https://www.arthurgareginyan.com
|
7 |
* @copyright Copyright (c) 2016-2017 Arthur Gareginyan. All Rights Reserved.
|
8 |
+
* @since 4.15
|
9 |
*/
|
10 |
|
11 |
|
13 |
|
14 |
"use strict";
|
15 |
|
16 |
+
// Remove the 'successful' message after 3 seconds
|
17 |
+
if ('.updated') {
|
18 |
setTimeout(function() {
|
19 |
+
$('.updated').fadeOut();
|
20 |
}, 3000);
|
21 |
}
|
22 |
|
23 |
// Enable Bootstrap Checkboxes
|
24 |
$(':checkbox').checkboxpicker();
|
25 |
|
26 |
+
// Add dynamic content to page tabs. Needed for having an up to date content.
|
27 |
+
$('.include-tab-author').load('https://www.spacexchimp.com/assets/dynamic-content/plugins.html #include-tab-author');
|
28 |
+
$('.include-tab-support').load('https://www.spacexchimp.com/assets/dynamic-content/plugins.html #include-tab-support');
|
29 |
+
$('.include-tab-store').load('https://www.spacexchimp.com/assets/dynamic-content/plugins.html #include-tab-store');
|
30 |
+
$('.include-banner').load('https://www.spacexchimp.com/assets/dynamic-content/plugins.html #include-banner');
|
31 |
|
32 |
// Add questions and answers into spoilers and color them in different colors
|
33 |
+
$('.panel-group .panel').each(function(i) {
|
34 |
+
$('.question-' + (i+1) ).appendTo( $('h4', this) );
|
35 |
+
$('.answer-' + (i+1) ).appendTo( $('.panel-body', this) );
|
36 |
|
37 |
+
if ( $(this).find('h4 div').hasClass('question-red') ) {
|
38 |
$(this).addClass('panel-danger');
|
39 |
} else {
|
40 |
$(this).addClass('panel-info');
|
41 |
}
|
42 |
});
|
43 |
|
44 |
+
// Live preview
|
45 |
+
$('.new_tab').on('change', function() {
|
46 |
+
var val = $(this).val();
|
47 |
+
var position = $(this).next().children().hasClass('btn-success');
|
48 |
+
$('#preview .smbt-social-icons a').each(function( index ) {
|
49 |
+
if (position === true) {
|
50 |
+
$(this).attr('target','_blank');
|
51 |
+
} else {
|
52 |
+
$(this).removeAttr('target');
|
53 |
+
}
|
54 |
+
});
|
55 |
+
});
|
56 |
+
|
57 |
+
$('.tooltips').on('change', function() {
|
58 |
+
var val = $(this).val();
|
59 |
+
var position = $(this).next().children().hasClass('btn-success');
|
60 |
+
$('#preview .smbt-social-icons a').each(function( index ) {
|
61 |
+
var text = '';
|
62 |
+
if (position === true) {
|
63 |
+
text = $(this).attr('title');
|
64 |
+
$(this).attr('data-toggle','tooltip');
|
65 |
+
$(this).attr('data-original-title',text);
|
66 |
+
} else {
|
67 |
+
text = $(this).attr('data-original-title');
|
68 |
+
$(this).attr('title',text);
|
69 |
+
$(this).removeAttr('data-toggle');
|
70 |
+
$(this).removeAttr('data-original-title');
|
71 |
+
}
|
72 |
+
});
|
73 |
+
});
|
74 |
+
|
75 |
+
function LiveInlineStyles() {
|
76 |
+
var icon_size = $('.icon-size').val() || '64';
|
77 |
+
var margin = $('.margin-right').val() / 2 || '5';
|
78 |
+
icon_size = 'width:' + icon_size + 'px !important; height:' + icon_size + 'px !important;';
|
79 |
+
margin = 'margin:' + margin + 'px !important;';
|
80 |
+
$('#preview .smbt-social-icons img').attr('style',icon_size + margin);
|
81 |
+
}
|
82 |
+
|
83 |
+
$('.icon-size').change(function() {
|
84 |
+
LiveInlineStyles();
|
85 |
+
});
|
86 |
+
|
87 |
+
$('.margin-right').change(function() {
|
88 |
+
LiveInlineStyles();
|
89 |
+
});
|
90 |
+
|
91 |
+
$('.alignment').change(function() {
|
92 |
+
var alignment = $('input[type=radio]:checked', '.alignment').val() || 'center';
|
93 |
+
alignment = 'text-align:' + alignment + ' !important;';
|
94 |
+
$('#preview .smbt-social-icons').attr('style',alignment);
|
95 |
+
});
|
96 |
+
|
97 |
});
|
inc/php/enqueue.php
CHANGED
@@ -10,7 +10,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
|
|
10 |
/**
|
11 |
* Base for the _load_scripts hook
|
12 |
*
|
13 |
-
* @since 4.
|
14 |
*/
|
15 |
function smbtoolbar_load_scripts_base( $options ) {
|
16 |
|
@@ -25,26 +25,10 @@ function smbtoolbar_load_scripts_base( $options ) {
|
|
25 |
// Style sheet
|
26 |
wp_enqueue_style( $prefix . '-frontend-css', $url . 'inc/css/frontend.css' );
|
27 |
|
28 |
-
// Size of icons
|
29 |
-
$icon_size = esc_textarea( $options['icon-size'] );
|
30 |
-
if ( empty( $icon_size ) ) {
|
31 |
-
$icon_size = "64";
|
32 |
-
}
|
33 |
-
|
34 |
-
// Space between icons
|
35 |
-
$margin_right = esc_textarea( $options['margin-right'] );
|
36 |
-
if ( empty( $margin_right ) ) {
|
37 |
-
$margin_right = "10";
|
38 |
-
}
|
39 |
-
|
40 |
-
// Alignment of toolbar
|
41 |
-
if ( !empty( $options['alignment'] ) ) {
|
42 |
-
$alignment = $options['alignment'];
|
43 |
-
} else {
|
44 |
-
$alignment = 'center';
|
45 |
-
}
|
46 |
-
|
47 |
// Dynamic CSS. Create CSS and injected it into the stylesheet
|
|
|
|
|
|
|
48 |
$custom_css = "
|
49 |
.smbt-social-icons {
|
50 |
text-align: " . $alignment . " !important;
|
@@ -52,7 +36,7 @@ function smbtoolbar_load_scripts_base( $options ) {
|
|
52 |
.smbt-social-icons li img {
|
53 |
width: " . $icon_size . "px !important;
|
54 |
height: " . $icon_size . "px !important;
|
55 |
-
margin: " . ( $
|
56 |
}
|
57 |
";
|
58 |
wp_add_inline_style( $prefix . '-frontend-css', $custom_css );
|
@@ -62,7 +46,7 @@ function smbtoolbar_load_scripts_base( $options ) {
|
|
62 |
/**
|
63 |
* Load scripts and style sheet for settings page
|
64 |
*
|
65 |
-
* @since 4.
|
66 |
*/
|
67 |
function smbtoolbar_load_scripts_admin( $hook ) {
|
68 |
|
@@ -78,15 +62,9 @@ function smbtoolbar_load_scripts_admin( $hook ) {
|
|
78 |
return;
|
79 |
}
|
80 |
|
81 |
-
// Read options from
|
82 |
$options = get_option( $settings . '_settings' );
|
83 |
|
84 |
-
// Style sheet
|
85 |
-
wp_enqueue_style( $prefix . '-admin-css', $url . 'inc/css/admin.css' );
|
86 |
-
|
87 |
-
// JavaScript
|
88 |
-
wp_enqueue_script( $prefix . '-admin-js', $url . 'inc/js/admin.js', array(), false, true );
|
89 |
-
|
90 |
// Bootstrap library
|
91 |
wp_enqueue_style( $prefix . '-bootstrap-css', $url . 'inc/lib/bootstrap/bootstrap.css' );
|
92 |
wp_enqueue_style( $prefix . '-bootstrap-theme-css', $url . 'inc/lib/bootstrap/bootstrap-theme.css' );
|
@@ -95,6 +73,12 @@ function smbtoolbar_load_scripts_admin( $hook ) {
|
|
95 |
// Other libraries
|
96 |
wp_enqueue_script( $prefix . '-bootstrap-checkbox-js', $url . 'inc/lib/bootstrap-checkbox.js' );
|
97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
// Call the function that contain a basis of scripts
|
99 |
smbtoolbar_load_scripts_base( $options );
|
100 |
|
@@ -114,7 +98,7 @@ function smbtoolbar_load_scripts_frontend() {
|
|
114 |
$url = SMEDIABT_URL;
|
115 |
$settings = SMEDIABT_SETTINGS;
|
116 |
|
117 |
-
// Read options from
|
118 |
$options = get_option( $settings . '_settings' );
|
119 |
|
120 |
// Call the function that contain a basis of scripts
|
10 |
/**
|
11 |
* Base for the _load_scripts hook
|
12 |
*
|
13 |
+
* @since 4.15
|
14 |
*/
|
15 |
function smbtoolbar_load_scripts_base( $options ) {
|
16 |
|
25 |
// Style sheet
|
26 |
wp_enqueue_style( $prefix . '-frontend-css', $url . 'inc/css/frontend.css' );
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
// Dynamic CSS. Create CSS and injected it into the stylesheet
|
29 |
+
$icon_size = !empty( $options['icon-size'] ) ? esc_textarea( $options['icon-size'] ) : '64';
|
30 |
+
$margin = !empty( $options['margin-right'] ) ? esc_textarea( $options['margin-right'] ) : '10';
|
31 |
+
$alignment = !empty( $options['alignment'] ) ? $options['alignment'] : 'center';
|
32 |
$custom_css = "
|
33 |
.smbt-social-icons {
|
34 |
text-align: " . $alignment . " !important;
|
36 |
.smbt-social-icons li img {
|
37 |
width: " . $icon_size . "px !important;
|
38 |
height: " . $icon_size . "px !important;
|
39 |
+
margin: " . ( $margin / 2 ) . "px !important;
|
40 |
}
|
41 |
";
|
42 |
wp_add_inline_style( $prefix . '-frontend-css', $custom_css );
|
46 |
/**
|
47 |
* Load scripts and style sheet for settings page
|
48 |
*
|
49 |
+
* @since 4.15
|
50 |
*/
|
51 |
function smbtoolbar_load_scripts_admin( $hook ) {
|
52 |
|
62 |
return;
|
63 |
}
|
64 |
|
65 |
+
// Read options from database
|
66 |
$options = get_option( $settings . '_settings' );
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
// Bootstrap library
|
69 |
wp_enqueue_style( $prefix . '-bootstrap-css', $url . 'inc/lib/bootstrap/bootstrap.css' );
|
70 |
wp_enqueue_style( $prefix . '-bootstrap-theme-css', $url . 'inc/lib/bootstrap/bootstrap-theme.css' );
|
73 |
// Other libraries
|
74 |
wp_enqueue_script( $prefix . '-bootstrap-checkbox-js', $url . 'inc/lib/bootstrap-checkbox.js' );
|
75 |
|
76 |
+
// Style sheet
|
77 |
+
wp_enqueue_style( $prefix . '-admin-css', $url . 'inc/css/admin.css' );
|
78 |
+
|
79 |
+
// JavaScript
|
80 |
+
wp_enqueue_script( $prefix . '-admin-js', $url . 'inc/js/admin.js', array(), false, true );
|
81 |
+
|
82 |
// Call the function that contain a basis of scripts
|
83 |
smbtoolbar_load_scripts_base( $options );
|
84 |
|
98 |
$url = SMEDIABT_URL;
|
99 |
$settings = SMEDIABT_SETTINGS;
|
100 |
|
101 |
+
// Read options from database
|
102 |
$options = get_option( $settings . '_settings' );
|
103 |
|
104 |
// Call the function that contain a basis of scripts
|
inc/php/functional.php
CHANGED
@@ -8,27 +8,18 @@
|
|
8 |
defined( 'ABSPATH' ) or die( "Restricted access!" );
|
9 |
|
10 |
/**
|
11 |
-
* Render fields for saving social media data to
|
12 |
*
|
13 |
-
* @since 4.
|
14 |
*/
|
15 |
function smbtoolbar_media( $name, $label, $placeholder, $help=null, $link=null ) {
|
16 |
|
17 |
-
// Read options from
|
18 |
$options = get_option( SMEDIABT_SETTINGS . '_settings' );
|
19 |
-
|
20 |
-
if ( !empty( $options["media"][$name]["content"] ) ) {
|
21 |
-
$value = esc_textarea( $options["media"][$name]["content"] );
|
22 |
-
} else {
|
23 |
-
$value = "";
|
24 |
-
}
|
25 |
|
26 |
// Generate the table
|
27 |
-
|
28 |
-
$link_out = "<a href='$link' target='_blank'>$label</a>";
|
29 |
-
} else {
|
30 |
-
$link_out = "$label";
|
31 |
-
}
|
32 |
|
33 |
$label = "<input type='hidden' name='" . SMEDIABT_SETTINGS . "_settings[media][$name][label]' value='$label'>";
|
34 |
$slug = "<input type='hidden' name='" . SMEDIABT_SETTINGS . "_settings[media][$name][slug]' value='$name'>";
|
@@ -63,30 +54,21 @@ function smbtoolbar_media( $name, $label, $placeholder, $help=null, $link=null )
|
|
63 |
/**
|
64 |
* Render checkboxes and fields for saving settings data to database
|
65 |
*
|
66 |
-
* @since 4.
|
67 |
*/
|
68 |
function smbtoolbar_setting( $name, $label, $help=null, $field=null, $placeholder=null, $size=null ) {
|
69 |
|
70 |
-
// Read options from
|
71 |
$options = get_option( SMEDIABT_SETTINGS . '_settings' );
|
72 |
-
|
73 |
-
if ( !empty( $options[$name] ) ) {
|
74 |
-
$value = esc_textarea( $options[$name] );
|
75 |
-
} else {
|
76 |
-
$value = "";
|
77 |
-
}
|
78 |
|
79 |
// Generate the table
|
80 |
-
|
81 |
-
$checked = "checked='checked'";
|
82 |
-
} else {
|
83 |
-
$checked = "";
|
84 |
-
}
|
85 |
|
86 |
if ( $field == "check" ) {
|
87 |
-
$input = "<input type='checkbox' name='" . SMEDIABT_SETTINGS . "_settings[$name]' id='" . SMEDIABT_SETTINGS . "_settings[$name]' $checked >";
|
88 |
} elseif ( $field == "field" ) {
|
89 |
-
$input = "<input type='text' name='" . SMEDIABT_SETTINGS . "_settings[$name]' id='" . SMEDIABT_SETTINGS . "_settings[$name]' size='$size' value='$value' placeholder='$placeholder' >";
|
90 |
}
|
91 |
|
92 |
// Put table to the variables $out and $help_out
|
@@ -116,33 +98,22 @@ function smbtoolbar_setting( $name, $label, $help=null, $field=null, $placeholde
|
|
116 |
/**
|
117 |
* Generate the buttons and make shortcode
|
118 |
*
|
119 |
-
* @since 4.
|
120 |
*/
|
121 |
function smbtoolbar_tollbar() {
|
122 |
|
123 |
-
// Read options from
|
124 |
$options = get_option( SMEDIABT_SETTINGS . '_settings' );
|
125 |
$media = $options['media'];
|
126 |
|
127 |
// Open link in new tab
|
128 |
-
|
129 |
-
$new_tab = 'target="blank"';
|
130 |
-
} else {
|
131 |
-
$new_tab = '';
|
132 |
-
}
|
133 |
|
134 |
// Enable Tolltips
|
135 |
-
|
136 |
-
$tooltips = 'data-toggle="tooltip"';
|
137 |
-
} else {
|
138 |
-
$tooltips = '';
|
139 |
-
}
|
140 |
|
141 |
// Add a caption above of buttons
|
142 |
-
$caption = esc_textarea( $options['caption'] );
|
143 |
-
if ( empty( $caption ) ) {
|
144 |
-
$caption = "";
|
145 |
-
}
|
146 |
|
147 |
// Generate buttons
|
148 |
$metatags_arr[] = '<ul class="smbt-social-icons">';
|
@@ -199,7 +170,7 @@ function smbtoolbar_tollbar() {
|
|
199 |
|
200 |
// Return the content of array
|
201 |
return $metatags_arr;
|
202 |
-
|
203 |
}
|
204 |
|
205 |
/**
|
8 |
defined( 'ABSPATH' ) or die( "Restricted access!" );
|
9 |
|
10 |
/**
|
11 |
+
* Render fields for saving social media data to database
|
12 |
*
|
13 |
+
* @since 4.15
|
14 |
*/
|
15 |
function smbtoolbar_media( $name, $label, $placeholder, $help=null, $link=null ) {
|
16 |
|
17 |
+
// Read options from database and declare variables
|
18 |
$options = get_option( SMEDIABT_SETTINGS . '_settings' );
|
19 |
+
$value = !empty( $options["media"][$name]["content"] ) ? esc_textarea( $options["media"][$name]["content"] ) : '';
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
// Generate the table
|
22 |
+
$link_out = !empty( $link ) ? "<a href='$link' target='_blank'>$label</a>" : "$label";
|
|
|
|
|
|
|
|
|
23 |
|
24 |
$label = "<input type='hidden' name='" . SMEDIABT_SETTINGS . "_settings[media][$name][label]' value='$label'>";
|
25 |
$slug = "<input type='hidden' name='" . SMEDIABT_SETTINGS . "_settings[media][$name][slug]' value='$name'>";
|
54 |
/**
|
55 |
* Render checkboxes and fields for saving settings data to database
|
56 |
*
|
57 |
+
* @since 4.15
|
58 |
*/
|
59 |
function smbtoolbar_setting( $name, $label, $help=null, $field=null, $placeholder=null, $size=null ) {
|
60 |
|
61 |
+
// Read options from database and declare variables
|
62 |
$options = get_option( SMEDIABT_SETTINGS . '_settings' );
|
63 |
+
$value = !empty( $options[$name] ) ? esc_textarea( $options[$name] ) : '';
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
// Generate the table
|
66 |
+
$checked = !empty( $options[$name] ) ? "checked='checked'" : '';
|
|
|
|
|
|
|
|
|
67 |
|
68 |
if ( $field == "check" ) {
|
69 |
+
$input = "<input type='checkbox' name='" . SMEDIABT_SETTINGS . "_settings[$name]' id='" . SMEDIABT_SETTINGS . "_settings[$name]' $checked class='$name' >";
|
70 |
} elseif ( $field == "field" ) {
|
71 |
+
$input = "<input type='text' name='" . SMEDIABT_SETTINGS . "_settings[$name]' id='" . SMEDIABT_SETTINGS . "_settings[$name]' size='$size' value='$value' placeholder='$placeholder' class='$name' >";
|
72 |
}
|
73 |
|
74 |
// Put table to the variables $out and $help_out
|
98 |
/**
|
99 |
* Generate the buttons and make shortcode
|
100 |
*
|
101 |
+
* @since 4.15
|
102 |
*/
|
103 |
function smbtoolbar_tollbar() {
|
104 |
|
105 |
+
// Read options from database and declare variables
|
106 |
$options = get_option( SMEDIABT_SETTINGS . '_settings' );
|
107 |
$media = $options['media'];
|
108 |
|
109 |
// Open link in new tab
|
110 |
+
$new_tab = !empty( $options['new_tab'] ) ? 'target="blank"' : '';
|
|
|
|
|
|
|
|
|
111 |
|
112 |
// Enable Tolltips
|
113 |
+
$tooltips = !empty( $options['tooltips'] ) ? 'data-toggle="tooltip"' : '';
|
|
|
|
|
|
|
|
|
114 |
|
115 |
// Add a caption above of buttons
|
116 |
+
$caption = !empty( $options['caption'] ) ? esc_textarea( $options['caption'] ) : '';
|
|
|
|
|
|
|
117 |
|
118 |
// Generate buttons
|
119 |
$metatags_arr[] = '<ul class="smbt-social-icons">';
|
170 |
|
171 |
// Return the content of array
|
172 |
return $metatags_arr;
|
173 |
+
|
174 |
}
|
175 |
|
176 |
/**
|
inc/php/messages.php
CHANGED
@@ -10,7 +10,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
|
|
10 |
/**
|
11 |
* Hello message - Bootstrap Modal
|
12 |
*
|
13 |
-
* @since 4.
|
14 |
*/
|
15 |
function smbtoolbar_hello_message() {
|
16 |
|
@@ -25,7 +25,7 @@ function smbtoolbar_hello_message() {
|
|
25 |
<div class="modal-dialog">
|
26 |
<div class="modal-content">
|
27 |
<div class="modal-body">
|
28 |
-
<img src="https://
|
29 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
30 |
<p><?php _e( 'Hello. I\'m Arthur, the author of this plugin.', SMEDIABT_TEXT ); ?></p>
|
31 |
<p><?php printf(
|
10 |
/**
|
11 |
* Hello message - Bootstrap Modal
|
12 |
*
|
13 |
+
* @since 4.15
|
14 |
*/
|
15 |
function smbtoolbar_hello_message() {
|
16 |
|
25 |
<div class="modal-dialog">
|
26 |
<div class="modal-content">
|
27 |
<div class="modal-body">
|
28 |
+
<img src="https://www.spacexchimp.com/assets/dynamic-content/images/avatar.png">
|
29 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
30 |
<p><?php _e( 'Hello. I\'m Arthur, the author of this plugin.', SMEDIABT_TEXT ); ?></p>
|
31 |
<p><?php printf(
|
inc/php/page.php
CHANGED
@@ -10,7 +10,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
|
|
10 |
/**
|
11 |
* Render Settings Page
|
12 |
*
|
13 |
-
* @since 4.
|
14 |
*/
|
15 |
function smbtoolbar_render_submenu_page() {
|
16 |
|
@@ -49,7 +49,7 @@ function smbtoolbar_render_submenu_page() {
|
|
49 |
<li><a href="#tab-faq" data-toggle="tab"><?php _e( 'F.A.Q.', $text ); ?></a></li>
|
50 |
<li><a href="#tab-author" data-toggle="tab"><?php _e( 'Author', $text ); ?></a></li>
|
51 |
<li><a href="#tab-support" data-toggle="tab"><?php _e( 'Support', $text ); ?></a></li>
|
52 |
-
<li><a href="#tab-
|
53 |
</ul>
|
54 |
<!-- END-TABS NAVIGATION MENU -->
|
55 |
|
@@ -205,8 +205,8 @@ function smbtoolbar_render_submenu_page() {
|
|
205 |
<!-- END-TAB 5 -->
|
206 |
|
207 |
<!-- TAB 6 -->
|
208 |
-
<div class="tab-page fade" id="tab-
|
209 |
-
<div class="include-tab-
|
210 |
</div>
|
211 |
<!-- END-TAB 6 -->
|
212 |
|
10 |
/**
|
11 |
* Render Settings Page
|
12 |
*
|
13 |
+
* @since 4.15
|
14 |
*/
|
15 |
function smbtoolbar_render_submenu_page() {
|
16 |
|
49 |
<li><a href="#tab-faq" data-toggle="tab"><?php _e( 'F.A.Q.', $text ); ?></a></li>
|
50 |
<li><a href="#tab-author" data-toggle="tab"><?php _e( 'Author', $text ); ?></a></li>
|
51 |
<li><a href="#tab-support" data-toggle="tab"><?php _e( 'Support', $text ); ?></a></li>
|
52 |
+
<li><a href="#tab-store" data-toggle="tab"><?php _e( 'Store', $text ); ?></a></li>
|
53 |
</ul>
|
54 |
<!-- END-TABS NAVIGATION MENU -->
|
55 |
|
205 |
<!-- END-TAB 5 -->
|
206 |
|
207 |
<!-- TAB 6 -->
|
208 |
+
<div class="tab-page fade" id="tab-store">
|
209 |
+
<div class="include-tab-store"></div>
|
210 |
</div>
|
211 |
<!-- END-TAB 6 -->
|
212 |
|
inc/php/settings.php
CHANGED
@@ -10,21 +10,21 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
|
|
10 |
/**
|
11 |
* Render Settings Tab
|
12 |
*
|
13 |
-
* @since 4.
|
14 |
*/
|
15 |
?>
|
16 |
<!-- SIDEBAR -->
|
17 |
<div class="inner-sidebar">
|
18 |
<div id="side-sortables" class="meta-box-sortabless ui-sortable">
|
19 |
|
20 |
-
<div
|
21 |
<h3 class="title"><?php _e( 'About', $text ); ?></h3>
|
22 |
<div class="inside">
|
23 |
<p><?php _e( 'This plugin allows you to easily add the social media follow buttons bar to any place of your website.', $text ); ?></p>
|
24 |
</div>
|
25 |
</div>
|
26 |
|
27 |
-
<div
|
28 |
<h3 class="title"><?php _e( 'Support', $text ); ?></h3>
|
29 |
<div class="inside">
|
30 |
<p><?php _e( 'I\'m an independent developer, without a regular income, so every little contribution helps cover my costs and lets me spend more time building things for people like you to enjoy.', $text ); ?></p>
|
@@ -33,13 +33,15 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
|
|
33 |
</div>
|
34 |
</div>
|
35 |
|
36 |
-
<div
|
37 |
<h3 class="title"><?php _e( 'Help', $text ); ?></h3>
|
38 |
<div class="inside">
|
39 |
<p><?php _e( 'If you have a question, please read the information in the FAQ section.', $text ); ?></p>
|
40 |
</div>
|
41 |
</div>
|
42 |
|
|
|
|
|
43 |
</div>
|
44 |
</div>
|
45 |
<!-- END-SIDEBAR -->
|
@@ -607,7 +609,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
|
|
607 |
<?php _e( 'Alignment', $text ); ?>
|
608 |
</th>
|
609 |
<td>
|
610 |
-
<ul>
|
611 |
<li>
|
612 |
<input type="radio" name="smbtoolbar_settings[alignment]" value="left" <?php checked( 'left', $alignment ); ?> >
|
613 |
<?php _e( 'Left', $text ); ?>
|
@@ -640,7 +642,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
|
|
640 |
</div>
|
641 |
|
642 |
<div class="postbox" id="preview">
|
643 |
-
<h3 class="title"><?php _e( 'Preview', $text ); ?></h3>
|
644 |
<div class="inside">
|
645 |
<p class="note"><?php _e( 'Click the "Save changes" button to update this preview.', $text ); ?></p><br>
|
646 |
<?php echo smbtoolbar_shortcode(); ?>
|
10 |
/**
|
11 |
* Render Settings Tab
|
12 |
*
|
13 |
+
* @since 4.15
|
14 |
*/
|
15 |
?>
|
16 |
<!-- SIDEBAR -->
|
17 |
<div class="inner-sidebar">
|
18 |
<div id="side-sortables" class="meta-box-sortabless ui-sortable">
|
19 |
|
20 |
+
<div class="postbox about">
|
21 |
<h3 class="title"><?php _e( 'About', $text ); ?></h3>
|
22 |
<div class="inside">
|
23 |
<p><?php _e( 'This plugin allows you to easily add the social media follow buttons bar to any place of your website.', $text ); ?></p>
|
24 |
</div>
|
25 |
</div>
|
26 |
|
27 |
+
<div class="postbox support">
|
28 |
<h3 class="title"><?php _e( 'Support', $text ); ?></h3>
|
29 |
<div class="inside">
|
30 |
<p><?php _e( 'I\'m an independent developer, without a regular income, so every little contribution helps cover my costs and lets me spend more time building things for people like you to enjoy.', $text ); ?></p>
|
33 |
</div>
|
34 |
</div>
|
35 |
|
36 |
+
<div class="postbox help">
|
37 |
<h3 class="title"><?php _e( 'Help', $text ); ?></h3>
|
38 |
<div class="inside">
|
39 |
<p><?php _e( 'If you have a question, please read the information in the FAQ section.', $text ); ?></p>
|
40 |
</div>
|
41 |
</div>
|
42 |
|
43 |
+
<div class="include-banner"></div>
|
44 |
+
|
45 |
</div>
|
46 |
</div>
|
47 |
<!-- END-SIDEBAR -->
|
609 |
<?php _e( 'Alignment', $text ); ?>
|
610 |
</th>
|
611 |
<td>
|
612 |
+
<ul class="alignment">
|
613 |
<li>
|
614 |
<input type="radio" name="smbtoolbar_settings[alignment]" value="left" <?php checked( 'left', $alignment ); ?> >
|
615 |
<?php _e( 'Left', $text ); ?>
|
642 |
</div>
|
643 |
|
644 |
<div class="postbox" id="preview">
|
645 |
+
<h3 class="title"><?php _e( 'Live Preview', $text ); ?></h3>
|
646 |
<div class="inside">
|
647 |
<p class="note"><?php _e( 'Click the "Save changes" button to update this preview.', $text ); ?></p><br>
|
648 |
<?php echo smbtoolbar_shortcode(); ?>
|
languages/social-media-buttons-toolbar-es_ES.po
CHANGED
@@ -78,7 +78,7 @@ msgid "Support"
|
|
78 |
msgstr "Soporte"
|
79 |
|
80 |
#: inc/php/page.php:52
|
81 |
-
msgid "
|
82 |
msgstr "Familia"
|
83 |
|
84 |
#: inc/php/page.php:69
|
78 |
msgstr "Soporte"
|
79 |
|
80 |
#: inc/php/page.php:52
|
81 |
+
msgid "Store"
|
82 |
msgstr "Familia"
|
83 |
|
84 |
#: inc/php/page.php:69
|
languages/social-media-buttons-toolbar-ru_RU.po
CHANGED
@@ -77,7 +77,7 @@ msgid "Support"
|
|
77 |
msgstr "Поддержка"
|
78 |
|
79 |
#: inc/php/page.php:52
|
80 |
-
msgid "
|
81 |
msgstr "Семья"
|
82 |
|
83 |
#: inc/php/page.php:69
|
77 |
msgstr "Поддержка"
|
78 |
|
79 |
#: inc/php/page.php:52
|
80 |
+
msgid "Store"
|
81 |
msgstr "Семья"
|
82 |
|
83 |
#: inc/php/page.php:69
|
languages/social-media-buttons-toolbar.pot
CHANGED
@@ -74,7 +74,7 @@ msgid "Support"
|
|
74 |
msgstr ""
|
75 |
|
76 |
#: inc/php/page.php:52
|
77 |
-
msgid "
|
78 |
msgstr ""
|
79 |
|
80 |
#: inc/php/page.php:69
|
74 |
msgstr ""
|
75 |
|
76 |
#: inc/php/page.php:52
|
77 |
+
msgid "Store"
|
78 |
msgstr ""
|
79 |
|
80 |
#: inc/php/page.php:69
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: icon, icon set, button, social, media, social button, social media, social
|
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 4.
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -236,6 +236,17 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
236 |
|
237 |
== Changelog ==
|
238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
= 4.14 =
|
240 |
* Added option for the Google Play.
|
241 |
* Added option for the itch.
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 4.15
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
236 |
|
237 |
== Changelog ==
|
238 |
|
239 |
+
= 4.15 =
|
240 |
+
* Preview section on the settings page changed to live preview.
|
241 |
+
* Stylesheet in the admin.css file improved.
|
242 |
+
* The '!important' declarations in the admin.css file removed.
|
243 |
+
* Code formatting in the admin.js file improved.
|
244 |
+
* Code commenting improved.
|
245 |
+
* Load of the additional remote CSS file removed from the admin.js file.
|
246 |
+
* Changed the sorting of enqueueing of scripts.
|
247 |
+
* The ''Family' page tab renamed to 'Store'.
|
248 |
+
* Added ad banner of my store website.
|
249 |
+
|
250 |
= 4.14 =
|
251 |
* Added option for the Google Play.
|
252 |
* Added option for the itch.
|
social-media-buttons-toolbar.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Easily add the smart bar with social media follow buttons (not share, only link to your profiles) to any place of your WordPress website.
|
6 |
* Author: Arthur Gareginyan
|
7 |
* Author URI: https://www.arthurgareginyan.com
|
8 |
-
* Version: 4.
|
9 |
* License: GPL3
|
10 |
* Text Domain: social-media-buttons-toolbar
|
11 |
* Domain Path: /languages/
|
5 |
* Description: Easily add the smart bar with social media follow buttons (not share, only link to your profiles) to any place of your WordPress website.
|
6 |
* Author: Arthur Gareginyan
|
7 |
* Author URI: https://www.arthurgareginyan.com
|
8 |
+
* Version: 4.15
|
9 |
* License: GPL3
|
10 |
* Text Domain: social-media-buttons-toolbar
|
11 |
* Domain Path: /languages/
|