Version Description
- Improved popup center
- Improved popup in mobile for different effects / positions / popup sizes
- WPML compatibility ( Sitepress Multilanguage )
- Fixed javascript error preventing some basics functions as closing popup on fb like
Download this release
Release Info
Developer | timersys |
Plugin | Popups – WordPress Popup |
Version | 1.2.3.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.3.1 to 1.2.3.2
- README.txt +9 -1
- includes/class-spu-helper.php +2 -8
- languages/popups.pot +274 -113
- popups.php +1 -1
- public/assets/css/public.css +17 -1
- public/assets/js/min/public-min.js +1 -1
- public/assets/js/public.js +48 -32
- public/class-social-popup.php +21 -6
- public/includes/class-spu-rules.php +29 -14
- public/views/popup.php +3 -2
README.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: twitter,google+, facebook,Popups, twitter follow, facebook like, google plus,social boost, social splash, popup, facebook popup, scroll popups, popups, wordpress popup, wp popups
|
5 |
Requires at least: 3.6
|
6 |
Tested up to: 4.1
|
7 |
-
Stable tag: 1.2.3.
|
8 |
Text Domain: spucpt
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -100,6 +100,14 @@ Yes if you need to debug you can use uncompressed javascript by addings ([this c
|
|
100 |
|
101 |
== Changelog ==
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
= 1.2.3.1 =
|
104 |
|
105 |
* Hotfix- Bug with ajax mode & testmode preventing plugin to work. Please update
|
4 |
Tags: twitter,google+, facebook,Popups, twitter follow, facebook like, google plus,social boost, social splash, popup, facebook popup, scroll popups, popups, wordpress popup, wp popups
|
5 |
Requires at least: 3.6
|
6 |
Tested up to: 4.1
|
7 |
+
Stable tag: 1.2.3.2
|
8 |
Text Domain: spucpt
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
100 |
|
101 |
== Changelog ==
|
102 |
|
103 |
+
= 1.2.3.2 =
|
104 |
+
|
105 |
+
* Improved popup center
|
106 |
+
* Improved popup in mobile for different effects / positions / popup sizes
|
107 |
+
* WPML compatibility ( Sitepress Multilanguage )
|
108 |
+
* Fixed javascript error preventing some basics functions as closing popup on fb like
|
109 |
+
|
110 |
+
|
111 |
= 1.2.3.1 =
|
112 |
|
113 |
* Hotfix- Bug with ajax mode & testmode preventing plugin to work. Please update
|
includes/class-spu-helper.php
CHANGED
@@ -202,14 +202,8 @@ class Spu_Helper {
|
|
202 |
|
203 |
case "post_category" :
|
204 |
|
205 |
-
$
|
206 |
-
$
|
207 |
-
|
208 |
-
foreach($category_ids as $cat_id)
|
209 |
-
{
|
210 |
-
$cat_name = get_cat_name($cat_id);
|
211 |
-
$choices[$cat_id] = $cat_name;
|
212 |
-
}
|
213 |
|
214 |
break;
|
215 |
|
202 |
|
203 |
case "post_category" :
|
204 |
|
205 |
+
$categories = get_terms('category', array('get' => 'all', 'fields' => 'id=>name' ) );
|
206 |
+
$choices = apply_filters('spu/rules/categories', $categories );
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
|
208 |
break;
|
209 |
|
languages/popups.pot
CHANGED
@@ -4,113 +4,117 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Popups\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
-
"PO-Revision-Date:
|
9 |
"Last-Translator: Damian Logghe <info@timersys.com>\n"
|
10 |
"Language-Team: Timersys <info@timersys.com>\n"
|
11 |
"Language: en_EN\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
-
"X-Generator: Poedit 1.6.
|
16 |
"X-Poedit-KeywordsList: __;_e;_n;_x;esc_html_e;esc_html__;esc_attr_e;"
|
17 |
"esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2\n"
|
18 |
"X-Poedit-Basepath: ../\n"
|
19 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
|
22 |
-
#: admin/class-social-popup-admin.php:
|
23 |
msgctxt "post type general name"
|
24 |
-
msgid "Popups"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: admin/class-social-popup-admin.php:
|
28 |
msgctxt "post type singular name"
|
29 |
msgid "Popups"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: admin/class-social-popup-admin.php:
|
33 |
msgctxt "admin menu"
|
34 |
msgid "Popups"
|
35 |
msgstr ""
|
36 |
|
37 |
-
#: admin/class-social-popup-admin.php:
|
38 |
msgctxt "add new on admin bar"
|
39 |
msgid "Popups"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: admin/class-social-popup-admin.php:
|
43 |
msgctxt "Popups"
|
44 |
msgid "Add New"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: admin/class-social-popup-admin.php:
|
48 |
msgid "Add New Popups"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: admin/class-social-popup-admin.php:
|
52 |
msgid "New Popups"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: admin/class-social-popup-admin.php:
|
56 |
msgid "Edit Popups"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: admin/class-social-popup-admin.php:
|
60 |
msgid "View Popups"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: admin/class-social-popup-admin.php:
|
64 |
msgid "All Popups"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: admin/class-social-popup-admin.php:
|
68 |
msgid "Search Popups"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: admin/class-social-popup-admin.php:
|
72 |
msgid "Parent Popups:"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: admin/class-social-popup-admin.php:
|
76 |
msgid "No Popups found."
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: admin/class-social-popup-admin.php:
|
80 |
msgid "No Popups found in Trash."
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: admin/class-social-popup-admin.php:
|
|
|
|
|
|
|
|
|
84 |
msgid "PopUp Shortcodes"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: admin/class-social-popup-admin.php:
|
88 |
msgid "PopUp Display Rules"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: admin/class-social-popup-admin.php:
|
92 |
msgid "Display Options"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: admin/class-social-popup-admin.php:
|
96 |
msgid "Need support?"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: admin/class-social-popup-admin.php:
|
100 |
-
msgid "Donate
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: admin/class-social-popup-admin.php:
|
104 |
msgid "About the developer"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: admin/class-social-popup-admin.php:
|
108 |
-
#: admin/views/metabox-rules.php:
|
109 |
msgid "or"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: admin/class-social-popup-admin.php:
|
113 |
-
msgid "
|
114 |
msgstr ""
|
115 |
|
116 |
#: admin/includes/class-spu-upgrade.php:104
|
@@ -152,64 +156,80 @@ msgstr ""
|
|
152 |
#: admin/views/metabox-help.php:6
|
153 |
msgid ""
|
154 |
"You have three social shortcodes to use that will print a Facebook like, a "
|
155 |
-
"Google+ Follow and a Twitter follow. Check the available options and
|
156 |
-
"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: admin/views/metabox-help.php:
|
160 |
msgid "View Facebook Options"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: admin/views/metabox-help.php:
|
164 |
msgid "Your facebook page url"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: admin/views/metabox-help.php:
|
168 |
-
msgid "standard, box_count, button
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: admin/views/metabox-help.php:
|
172 |
-
msgid "true
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: admin/views/metabox-help.php:
|
176 |
-
msgid "recommend
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: admin/views/metabox-help.php:
|
180 |
msgid "View Google+ Options"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: admin/views/metabox-help.php:26
|
184 |
-
msgid "Your Google+ url"
|
185 |
-
msgstr ""
|
186 |
-
|
187 |
#: admin/views/metabox-help.php:27
|
188 |
-
msgid "
|
189 |
msgstr ""
|
190 |
|
191 |
#: admin/views/metabox-help.php:28
|
192 |
-
msgid "
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: admin/views/metabox-help.php:
|
196 |
-
msgid "
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: admin/views/metabox-help.php:
|
200 |
-
msgid "
|
201 |
msgstr ""
|
202 |
|
203 |
#: admin/views/metabox-help.php:37
|
204 |
-
msgid "
|
205 |
msgstr ""
|
206 |
|
207 |
#: admin/views/metabox-help.php:38
|
208 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: admin/views/metabox-help.php:
|
212 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
msgstr ""
|
214 |
|
215 |
#: admin/views/metabox-links.php:6
|
@@ -227,6 +247,22 @@ msgid ""
|
|
227 |
"me. Subscribe to get updates!"
|
228 |
msgstr ""
|
229 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
#: admin/views/metabox-options.php:9
|
231 |
msgid "Box Position"
|
232 |
msgstr ""
|
@@ -251,103 +287,157 @@ msgstr ""
|
|
251 |
msgid "Bottom Right"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: admin/views/metabox-options.php:
|
255 |
msgid "Trigger action"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: admin/views/metabox-options.php:
|
259 |
msgid "seconds after page load"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: admin/views/metabox-options.php:
|
263 |
msgid "of page height"
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: admin/views/metabox-options.php:36
|
267 |
-
msgid "Animation"
|
268 |
-
msgstr ""
|
269 |
-
|
270 |
#: admin/views/metabox-options.php:38
|
271 |
-
msgid "
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: admin/views/metabox-options.php:
|
275 |
-
msgid "
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: admin/views/metabox-options.php:
|
279 |
-
msgid "
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: admin/views/metabox-options.php:
|
283 |
-
|
|
|
|
|
|
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: admin/views/metabox-options.php:
|
287 |
-
msgid "
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: admin/views/metabox-options.php:
|
291 |
-
msgid "
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: admin/views/metabox-options.php:
|
295 |
-
msgid "
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: admin/views/metabox-options.php:
|
299 |
-
msgid "
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: admin/views/metabox-options.php:
|
303 |
-
|
304 |
-
msgid ""
|
305 |
-
"Hide box again when visitors scroll back up? Only works when Trigger action "
|
306 |
-
"is set to % of page height"
|
307 |
msgstr ""
|
308 |
|
309 |
#: admin/views/metabox-options.php:62
|
|
|
|
|
|
|
|
|
310 |
msgid "Enable test mode?"
|
311 |
msgstr ""
|
312 |
|
313 |
-
#: admin/views/metabox-options.php:
|
314 |
msgid ""
|
315 |
"If test mode is enabled, the box will show up regardless of whether a cookie "
|
316 |
"has been set. (To admins only)"
|
317 |
msgstr ""
|
318 |
|
319 |
-
#: admin/views/metabox-options.php:
|
320 |
msgid "Appearance"
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: admin/views/metabox-options.php:
|
324 |
msgid "Background opacity"
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: admin/views/metabox-options.php:
|
328 |
msgid "Leave at 0 for no background. Max value is 1"
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: admin/views/metabox-options.php:
|
332 |
msgid "Background color"
|
333 |
msgstr ""
|
334 |
|
335 |
-
#: admin/views/metabox-options.php:
|
336 |
msgid "Text color"
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: admin/views/metabox-options.php:
|
340 |
msgid "Box width"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: admin/views/metabox-options.php:
|
344 |
msgid "Border color"
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: admin/views/metabox-options.php:
|
348 |
msgid "Border width"
|
349 |
msgstr ""
|
350 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
351 |
#: admin/views/metabox-rules.php:19
|
352 |
msgid "Rules"
|
353 |
msgstr ""
|
@@ -429,94 +519,165 @@ msgid "Other"
|
|
429 |
msgstr ""
|
430 |
|
431 |
#: admin/views/metabox-rules.php:67
|
432 |
-
msgid "Mobile
|
433 |
msgstr ""
|
434 |
|
435 |
-
#: admin/views/metabox-rules.php:
|
436 |
-
msgid "
|
437 |
msgstr ""
|
438 |
|
439 |
#: admin/views/metabox-rules.php:92
|
|
|
|
|
|
|
|
|
440 |
msgid "is not equal to"
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: admin/views/metabox-rules.php:
|
444 |
msgid "and"
|
445 |
msgstr ""
|
446 |
|
447 |
-
#: admin/views/metabox-rules.php:
|
448 |
msgid "Add rule group"
|
449 |
msgstr ""
|
450 |
|
451 |
#: admin/views/metabox-support.php:6
|
452 |
#, php-format
|
|
|
|
|
|
|
|
|
|
|
453 |
msgid ""
|
454 |
"If you need support please go to the WordPress.org <a href=\"%s\">support "
|
455 |
"forums</a>"
|
456 |
msgstr ""
|
457 |
|
458 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
459 |
msgid "All Pages"
|
460 |
msgstr ""
|
461 |
|
462 |
-
#: includes/class-spu-helper.php:
|
463 |
msgid "Front Page"
|
464 |
msgstr ""
|
465 |
|
466 |
-
#: includes/class-spu-helper.php:
|
467 |
msgid "Posts Page"
|
468 |
msgstr ""
|
469 |
|
470 |
-
#: includes/class-spu-helper.php:
|
471 |
msgid "Top Level Page (parent of 0)"
|
472 |
msgstr ""
|
473 |
|
474 |
-
#: includes/class-spu-helper.php:
|
475 |
msgid "Parent Page (has children)"
|
476 |
msgstr ""
|
477 |
|
478 |
-
#: includes/class-spu-helper.php:
|
479 |
msgid "Child Page (has parent)"
|
480 |
msgstr ""
|
481 |
|
482 |
-
#: includes/class-spu-helper.php:
|
483 |
msgid "Default Template"
|
484 |
msgstr ""
|
485 |
|
486 |
-
#: includes/class-spu-helper.php:
|
487 |
msgid "Publish"
|
488 |
msgstr ""
|
489 |
|
490 |
-
#: includes/class-spu-helper.php:
|
491 |
msgid "Pending Review"
|
492 |
msgstr ""
|
493 |
|
494 |
-
#: includes/class-spu-helper.php:
|
495 |
msgid "Draft"
|
496 |
msgstr ""
|
497 |
|
498 |
-
#: includes/class-spu-helper.php:
|
499 |
msgid "Future"
|
500 |
msgstr ""
|
501 |
|
502 |
-
#: includes/class-spu-helper.php:
|
503 |
msgid "Private"
|
504 |
msgstr ""
|
505 |
|
506 |
-
#: includes/class-spu-helper.php:
|
507 |
msgid "Revision"
|
508 |
msgstr ""
|
509 |
|
510 |
-
#: includes/class-spu-helper.php:
|
511 |
msgid "Trash"
|
512 |
msgstr ""
|
513 |
|
514 |
-
#: includes/class-spu-helper.php:
|
515 |
msgid "Super Admin"
|
516 |
msgstr ""
|
517 |
|
518 |
-
#: includes/class-spu-helper.php:
|
519 |
-
#: includes/class-spu-helper.php:268 includes/class-spu-helper.php:274
|
520 |
-
#: includes/class-spu-helper.php:280
|
521 |
msgid "True"
|
522 |
msgstr ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Popups\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
|
7 |
+
"POT-Creation-Date: 2015-01-26 10:24-0300\n"
|
8 |
+
"PO-Revision-Date: 2015-01-26 10:24-0300\n"
|
9 |
"Last-Translator: Damian Logghe <info@timersys.com>\n"
|
10 |
"Language-Team: Timersys <info@timersys.com>\n"
|
11 |
"Language: en_EN\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
+
"X-Generator: Poedit 1.6.8\n"
|
16 |
"X-Poedit-KeywordsList: __;_e;_n;_x;esc_html_e;esc_html__;esc_attr_e;"
|
17 |
"esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2\n"
|
18 |
"X-Poedit-Basepath: ../\n"
|
19 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
|
22 |
+
#: admin/class-social-popup-admin.php:150
|
23 |
msgctxt "post type general name"
|
24 |
+
msgid "Popups v"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: admin/class-social-popup-admin.php:151
|
28 |
msgctxt "post type singular name"
|
29 |
msgid "Popups"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: admin/class-social-popup-admin.php:152
|
33 |
msgctxt "admin menu"
|
34 |
msgid "Popups"
|
35 |
msgstr ""
|
36 |
|
37 |
+
#: admin/class-social-popup-admin.php:153
|
38 |
msgctxt "add new on admin bar"
|
39 |
msgid "Popups"
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: admin/class-social-popup-admin.php:154
|
43 |
msgctxt "Popups"
|
44 |
msgid "Add New"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: admin/class-social-popup-admin.php:155
|
48 |
msgid "Add New Popups"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: admin/class-social-popup-admin.php:156
|
52 |
msgid "New Popups"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: admin/class-social-popup-admin.php:157
|
56 |
msgid "Edit Popups"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: admin/class-social-popup-admin.php:158
|
60 |
msgid "View Popups"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: admin/class-social-popup-admin.php:159
|
64 |
msgid "All Popups"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: admin/class-social-popup-admin.php:160
|
68 |
msgid "Search Popups"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: admin/class-social-popup-admin.php:161
|
72 |
msgid "Parent Popups:"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: admin/class-social-popup-admin.php:162
|
76 |
msgid "No Popups found."
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: admin/class-social-popup-admin.php:163
|
80 |
msgid "No Popups found in Trash."
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: admin/class-social-popup-admin.php:244
|
84 |
+
msgid "Popups Premium"
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#: admin/class-social-popup-admin.php:255
|
88 |
msgid "PopUp Shortcodes"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: admin/class-social-popup-admin.php:264
|
92 |
msgid "PopUp Display Rules"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: admin/class-social-popup-admin.php:273
|
96 |
msgid "Display Options"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: admin/class-social-popup-admin.php:282
|
100 |
msgid "Need support?"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: admin/class-social-popup-admin.php:290
|
104 |
+
msgid "Donate & support"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: admin/class-social-popup-admin.php:298
|
108 |
msgid "About the developer"
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: admin/class-social-popup-admin.php:541 admin/views/metabox-rules.php:33
|
112 |
+
#: admin/views/metabox-rules.php:137
|
113 |
msgid "or"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: admin/class-social-popup-admin.php:559
|
117 |
+
msgid "Add a Popup"
|
118 |
msgstr ""
|
119 |
|
120 |
#: admin/includes/class-spu-upgrade.php:104
|
156 |
#: admin/views/metabox-help.php:6
|
157 |
msgid ""
|
158 |
"You have three social shortcodes to use that will print a Facebook like, a "
|
159 |
+
"Google+ Follow and a Twitter follow. Check the available options and "
|
160 |
+
"<strong>configure them with your social accounts</strong>:"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: admin/views/metabox-help.php:12
|
164 |
msgid "View Facebook Options"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: admin/views/metabox-help.php:14
|
168 |
msgid "Your facebook page url"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: admin/views/metabox-help.php:15
|
172 |
+
msgid "standard, box_count, button <b>Default value:</b> button_count"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: admin/views/metabox-help.php:16 admin/views/metabox-help.php:17
|
176 |
+
msgid "true <b>Default value:</b> false"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: admin/views/metabox-help.php:18
|
180 |
+
msgid "recommend <b>Default value:</b> like"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: admin/views/metabox-help.php:25
|
184 |
msgid "View Google+ Options"
|
185 |
msgstr ""
|
186 |
|
|
|
|
|
|
|
|
|
187 |
#: admin/views/metabox-help.php:27
|
188 |
+
msgid "Your Google+ url"
|
189 |
msgstr ""
|
190 |
|
191 |
#: admin/views/metabox-help.php:28
|
192 |
+
msgid "small, standard, tall <b>Default value:</b> medium"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: admin/views/metabox-help.php:29
|
196 |
+
msgid "inline, none <b>Default value:</b> bubble"
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: admin/views/metabox-help.php:35
|
200 |
+
msgid "View Twitter Options"
|
201 |
msgstr ""
|
202 |
|
203 |
#: admin/views/metabox-help.php:37
|
204 |
+
msgid "Your Twitter user <b>Default chifli</b>iiii"
|
205 |
msgstr ""
|
206 |
|
207 |
#: admin/views/metabox-help.php:38
|
208 |
+
msgid "false <b>Default value:</b> true"
|
209 |
+
msgstr ""
|
210 |
+
|
211 |
+
#: admin/views/metabox-help.php:39
|
212 |
+
msgid "large <b>Default value:</b> \"\""
|
213 |
+
msgstr ""
|
214 |
+
|
215 |
+
#: admin/views/metabox-help.php:42
|
216 |
+
msgid "Other available Shortcodes:"
|
217 |
+
msgstr ""
|
218 |
+
|
219 |
+
#: admin/views/metabox-help.php:47
|
220 |
+
msgid "View Close shortcode Options"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: admin/views/metabox-help.php:49
|
224 |
+
msgid "Pass a custom class to style your button"
|
225 |
+
msgstr ""
|
226 |
+
|
227 |
+
#: admin/views/metabox-help.php:50
|
228 |
+
msgid "Button label - <b>Default value:</b> Close"
|
229 |
+
msgstr ""
|
230 |
+
|
231 |
+
#: admin/views/metabox-help.php:51
|
232 |
+
msgid "left, right, center, none - <b>Default value:</b> center"
|
233 |
msgstr ""
|
234 |
|
235 |
#: admin/views/metabox-links.php:6
|
247 |
"me. Subscribe to get updates!"
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: admin/views/metabox-links.php:8
|
251 |
+
msgid "Other plugins I built:"
|
252 |
+
msgstr ""
|
253 |
+
|
254 |
+
#: admin/views/metabox-links.php:10
|
255 |
+
msgid "Install multiple plugins and create collections"
|
256 |
+
msgstr ""
|
257 |
+
|
258 |
+
#: admin/views/metabox-links.php:11
|
259 |
+
msgid "Like Facebook like box but for Twitter"
|
260 |
+
msgstr ""
|
261 |
+
|
262 |
+
#: admin/views/metabox-links.php:12
|
263 |
+
msgid "Invite your network friends and import contacts"
|
264 |
+
msgstr ""
|
265 |
+
|
266 |
#: admin/views/metabox-options.php:9
|
267 |
msgid "Box Position"
|
268 |
msgstr ""
|
287 |
msgid "Bottom Right"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: admin/views/metabox-options.php:23
|
291 |
msgid "Trigger action"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: admin/views/metabox-options.php:27
|
295 |
msgid "seconds after page load"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: admin/views/metabox-options.php:28
|
299 |
msgid "of page height"
|
300 |
msgstr ""
|
301 |
|
|
|
|
|
|
|
|
|
302 |
#: admin/views/metabox-options.php:38
|
303 |
+
msgid "Auto-hide?"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: admin/views/metabox-options.php:40 admin/views/metabox-options.php:69
|
307 |
+
msgid "Yes"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: admin/views/metabox-options.php:41 admin/views/metabox-options.php:70
|
311 |
+
msgid "No"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: admin/views/metabox-options.php:42
|
315 |
+
#, php-format
|
316 |
+
msgid ""
|
317 |
+
"Hide box again when visitors scroll back up? Only works when Trigger action "
|
318 |
+
"is set to % of page height"
|
319 |
msgstr ""
|
320 |
|
321 |
+
#: admin/views/metabox-options.php:47
|
322 |
+
msgid "Animation"
|
323 |
msgstr ""
|
324 |
|
325 |
+
#: admin/views/metabox-options.php:50
|
326 |
+
msgid "Fade In"
|
327 |
msgstr ""
|
328 |
|
329 |
+
#: admin/views/metabox-options.php:51
|
330 |
+
msgid "Slide In"
|
331 |
msgstr ""
|
332 |
|
333 |
+
#: admin/views/metabox-options.php:54
|
334 |
+
msgid "Slide will only apply when popup is on the corners"
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: admin/views/metabox-options.php:59
|
338 |
+
msgid "Cookie expiration days"
|
|
|
|
|
|
|
339 |
msgstr ""
|
340 |
|
341 |
#: admin/views/metabox-options.php:62
|
342 |
+
msgid "After closing the box, how many days should it stay hidden?"
|
343 |
+
msgstr ""
|
344 |
+
|
345 |
+
#: admin/views/metabox-options.php:67
|
346 |
msgid "Enable test mode?"
|
347 |
msgstr ""
|
348 |
|
349 |
+
#: admin/views/metabox-options.php:71
|
350 |
msgid ""
|
351 |
"If test mode is enabled, the box will show up regardless of whether a cookie "
|
352 |
"has been set. (To admins only)"
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: admin/views/metabox-options.php:77
|
356 |
msgid "Appearance"
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: admin/views/metabox-options.php:81
|
360 |
msgid "Background opacity"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: admin/views/metabox-options.php:84
|
364 |
msgid "Leave at 0 for no background. Max value is 1"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: admin/views/metabox-options.php:90
|
368 |
msgid "Background color"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: admin/views/metabox-options.php:94
|
372 |
msgid "Text color"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: admin/views/metabox-options.php:98
|
376 |
msgid "Box width"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: admin/views/metabox-options.php:104
|
380 |
msgid "Border color"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: admin/views/metabox-options.php:108
|
384 |
msgid "Border width"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: admin/views/metabox-premium.php:16
|
388 |
+
msgid ""
|
389 |
+
"Take the best WordPress Popups plugin to the next level with Popups Premium "
|
390 |
+
"extension."
|
391 |
+
msgstr ""
|
392 |
+
|
393 |
+
#: admin/views/metabox-premium.php:17
|
394 |
+
msgid "Popups Premium Features:"
|
395 |
+
msgstr ""
|
396 |
+
|
397 |
+
#: admin/views/metabox-premium.php:19
|
398 |
+
msgid ""
|
399 |
+
"Track impressions and Conversions of social likes/follow and forms "
|
400 |
+
"submissions like Contact Form 7, Gravity forms, etc"
|
401 |
+
msgstr ""
|
402 |
+
|
403 |
+
#: admin/views/metabox-premium.php:20
|
404 |
+
msgid "Track impressions and Conversions also in Google Analytics"
|
405 |
+
msgstr ""
|
406 |
+
|
407 |
+
#: admin/views/metabox-premium.php:21 admin/views/metabox-premium.php:23
|
408 |
+
msgid "Exit Intent technology"
|
409 |
+
msgstr ""
|
410 |
+
|
411 |
+
#: admin/views/metabox-premium.php:22
|
412 |
+
msgid "8 New animations effects"
|
413 |
+
msgstr ""
|
414 |
+
|
415 |
+
#: admin/views/metabox-premium.php:24
|
416 |
+
msgid "New trigger methods"
|
417 |
+
msgstr ""
|
418 |
+
|
419 |
+
#: admin/views/metabox-premium.php:25
|
420 |
+
msgid "Timer for auto closing"
|
421 |
+
msgstr ""
|
422 |
+
|
423 |
+
#: admin/views/metabox-premium.php:26
|
424 |
+
msgid "Ability to disable close button"
|
425 |
+
msgstr ""
|
426 |
+
|
427 |
+
#: admin/views/metabox-premium.php:27
|
428 |
+
msgid ""
|
429 |
+
"Ability to disable Advanced close methods like esc or clicking outside of "
|
430 |
+
"the popup"
|
431 |
+
msgstr ""
|
432 |
+
|
433 |
+
#: admin/views/metabox-premium.php:28
|
434 |
+
msgid "Premium support"
|
435 |
+
msgstr ""
|
436 |
+
|
437 |
+
#: admin/views/metabox-premium.php:32
|
438 |
+
msgid "Buy Now!"
|
439 |
+
msgstr ""
|
440 |
+
|
441 |
#: admin/views/metabox-rules.php:19
|
442 |
msgid "Rules"
|
443 |
msgstr ""
|
519 |
msgstr ""
|
520 |
|
521 |
#: admin/views/metabox-rules.php:67
|
522 |
+
msgid "Mobile Phone"
|
523 |
msgstr ""
|
524 |
|
525 |
+
#: admin/views/metabox-rules.php:68
|
526 |
+
msgid "Tablet"
|
527 |
msgstr ""
|
528 |
|
529 |
#: admin/views/metabox-rules.php:92
|
530 |
+
msgid "is equal to"
|
531 |
+
msgstr ""
|
532 |
+
|
533 |
+
#: admin/views/metabox-rules.php:93
|
534 |
msgid "is not equal to"
|
535 |
msgstr ""
|
536 |
|
537 |
+
#: admin/views/metabox-rules.php:124
|
538 |
msgid "and"
|
539 |
msgstr ""
|
540 |
|
541 |
+
#: admin/views/metabox-rules.php:139
|
542 |
msgid "Add rule group"
|
543 |
msgstr ""
|
544 |
|
545 |
#: admin/views/metabox-support.php:6
|
546 |
#, php-format
|
547 |
+
msgid "You are using Popups plugin v%s"
|
548 |
+
msgstr ""
|
549 |
+
|
550 |
+
#: admin/views/metabox-support.php:7
|
551 |
+
#, php-format
|
552 |
msgid ""
|
553 |
"If you need support please go to the WordPress.org <a href=\"%s\">support "
|
554 |
"forums</a>"
|
555 |
msgstr ""
|
556 |
|
557 |
+
#: admin/views/settings-page.php:14
|
558 |
+
msgid "Ajax mode?"
|
559 |
+
msgstr ""
|
560 |
+
|
561 |
+
#: admin/views/settings-page.php:17
|
562 |
+
msgid ""
|
563 |
+
"Load popups using ajax. Compatible with cache plugins, but might not work "
|
564 |
+
"with all plugins"
|
565 |
+
msgstr ""
|
566 |
+
|
567 |
+
#: admin/views/settings-page.php:23
|
568 |
+
msgid "Enable Debug mode?"
|
569 |
+
msgstr ""
|
570 |
+
|
571 |
+
#: admin/views/settings-page.php:26
|
572 |
+
msgid "Will use uncompressed js"
|
573 |
+
msgstr ""
|
574 |
+
|
575 |
+
#: admin/views/settings-page.php:31
|
576 |
+
msgid "Enable safe mode?"
|
577 |
+
msgstr ""
|
578 |
+
|
579 |
+
#: admin/views/settings-page.php:34
|
580 |
+
msgid "Will move all popups to top of the screen."
|
581 |
+
msgstr ""
|
582 |
+
|
583 |
+
#: admin/views/settings-page.php:39
|
584 |
+
msgid "Remove shortcodes style"
|
585 |
+
msgstr ""
|
586 |
+
|
587 |
+
#: admin/views/settings-page.php:42
|
588 |
+
msgid ""
|
589 |
+
"By default the plugin will apply some style to shortcodes. Check here if you "
|
590 |
+
"want to manually style them"
|
591 |
+
msgstr ""
|
592 |
+
|
593 |
+
#: admin/views/settings-page.php:47
|
594 |
+
msgid "Unload Facebook javascript"
|
595 |
+
msgstr ""
|
596 |
+
|
597 |
+
#: admin/views/settings-page.php:50
|
598 |
+
msgid "If you use your own Facebook script, check this"
|
599 |
+
msgstr ""
|
600 |
+
|
601 |
+
#: admin/views/settings-page.php:55
|
602 |
+
msgid "Unload Google javascript"
|
603 |
+
msgstr ""
|
604 |
+
|
605 |
+
#: admin/views/settings-page.php:58
|
606 |
+
msgid "If you use your own Google script, check this"
|
607 |
+
msgstr ""
|
608 |
+
|
609 |
+
#: admin/views/settings-page.php:63
|
610 |
+
msgid "Unload Twitter javascript"
|
611 |
+
msgstr ""
|
612 |
+
|
613 |
+
#: admin/views/settings-page.php:66
|
614 |
+
msgid "If you use your own Twitter script, check this"
|
615 |
+
msgstr ""
|
616 |
+
|
617 |
+
#: admin/views/settings-page.php:71
|
618 |
+
msgid "Save settings"
|
619 |
+
msgstr ""
|
620 |
+
|
621 |
+
#: includes/class-spu-helper.php:133
|
622 |
msgid "All Pages"
|
623 |
msgstr ""
|
624 |
|
625 |
+
#: includes/class-spu-helper.php:134
|
626 |
msgid "Front Page"
|
627 |
msgstr ""
|
628 |
|
629 |
+
#: includes/class-spu-helper.php:135
|
630 |
msgid "Posts Page"
|
631 |
msgstr ""
|
632 |
|
633 |
+
#: includes/class-spu-helper.php:136
|
634 |
msgid "Top Level Page (parent of 0)"
|
635 |
msgstr ""
|
636 |
|
637 |
+
#: includes/class-spu-helper.php:137
|
638 |
msgid "Parent Page (has children)"
|
639 |
msgstr ""
|
640 |
|
641 |
+
#: includes/class-spu-helper.php:138
|
642 |
msgid "Child Page (has parent)"
|
643 |
msgstr ""
|
644 |
|
645 |
+
#: includes/class-spu-helper.php:146
|
646 |
msgid "Default Template"
|
647 |
msgstr ""
|
648 |
|
649 |
+
#: includes/class-spu-helper.php:219
|
650 |
msgid "Publish"
|
651 |
msgstr ""
|
652 |
|
653 |
+
#: includes/class-spu-helper.php:220
|
654 |
msgid "Pending Review"
|
655 |
msgstr ""
|
656 |
|
657 |
+
#: includes/class-spu-helper.php:221
|
658 |
msgid "Draft"
|
659 |
msgstr ""
|
660 |
|
661 |
+
#: includes/class-spu-helper.php:222
|
662 |
msgid "Future"
|
663 |
msgstr ""
|
664 |
|
665 |
+
#: includes/class-spu-helper.php:223
|
666 |
msgid "Private"
|
667 |
msgstr ""
|
668 |
|
669 |
+
#: includes/class-spu-helper.php:224
|
670 |
msgid "Revision"
|
671 |
msgstr ""
|
672 |
|
673 |
+
#: includes/class-spu-helper.php:225
|
674 |
msgid "Trash"
|
675 |
msgstr ""
|
676 |
|
677 |
+
#: includes/class-spu-helper.php:238
|
678 |
msgid "Super Admin"
|
679 |
msgstr ""
|
680 |
|
681 |
+
#: includes/class-spu-helper.php:258
|
|
|
|
|
682 |
msgid "True"
|
683 |
msgstr ""
|
popups.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @socialpopup
|
12 |
* Plugin Name: Popups - WordPress Popup
|
13 |
* Plugin URI: http://www.timersys.com/free-plugins/social-popup/
|
14 |
-
* Version: 1.2.3.
|
15 |
* Description: This plugin will display a popup or splash screen when a new user visit your site showing a Google+, twitter and facebook follow links. This will increase you followers ratio in a 40%. Popup will be close depending on your settings. Check readme.txt for full details.
|
16 |
* Author: Damian Logghe
|
17 |
* Author URI: http://wp.timersys.com
|
11 |
* @socialpopup
|
12 |
* Plugin Name: Popups - WordPress Popup
|
13 |
* Plugin URI: http://www.timersys.com/free-plugins/social-popup/
|
14 |
+
* Version: 1.2.3.2
|
15 |
* Description: This plugin will display a popup or splash screen when a new user visit your site showing a Google+, twitter and facebook follow links. This will increase you followers ratio in a 40%. Popup will be close depending on your settings. Check readme.txt for full details.
|
16 |
* Author: Damian Logghe
|
17 |
* Author URI: http://wp.timersys.com
|
public/assets/css/public.css
CHANGED
@@ -17,6 +17,18 @@ body {
|
|
17 |
display: none;
|
18 |
z-index: 99999;
|
19 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
.spu-box {
|
21 |
position:fixed;
|
22 |
z-index: 999999;
|
@@ -119,9 +131,13 @@ body {
|
|
119 |
|
120 |
|
121 |
@media only screen and (max-width: 620px) {
|
122 |
-
.spu-box {
|
123 |
left: 0 !important;
|
124 |
top: 100px !important;
|
125 |
position: absolute !important;
|
126 |
}
|
|
|
|
|
|
|
|
|
127 |
}
|
17 |
display: none;
|
18 |
z-index: 99999;
|
19 |
}
|
20 |
+
.spu-box:before,
|
21 |
+
.spu-box:after {
|
22 |
+
content:"";
|
23 |
+
display:table;
|
24 |
+
}
|
25 |
+
.spu-box:after {
|
26 |
+
clear:both;
|
27 |
+
}
|
28 |
+
/* Triggers "haslayout" for IE6/7 */
|
29 |
+
.spu-box {
|
30 |
+
zoom:1;
|
31 |
+
}
|
32 |
.spu-box {
|
33 |
position:fixed;
|
34 |
z-index: 999999;
|
131 |
|
132 |
|
133 |
@media only screen and (max-width: 620px) {
|
134 |
+
.spu-box.taller-than-viewport {
|
135 |
left: 0 !important;
|
136 |
top: 100px !important;
|
137 |
position: absolute !important;
|
138 |
}
|
139 |
+
|
140 |
+
.spu-box{
|
141 |
+
margin: 0;
|
142 |
+
}
|
143 |
}
|
public/assets/js/min/public-min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function($){"use strict";function t(t,i,
|
1 |
+
!function($){"use strict";function t(t,e,i,o,n){var a={url:spuvar.ajax_url,data:t,cache:!1,type:"POST",dataType:"json",timeout:3e4},n=n||!1,i=i||!1,o=o||!1;e&&(a.url=e),i&&(a.success=i),o&&(a.error=o),n&&(a.dataType=n),$.ajax(a)}function e(t,e,i){if(i){var o=new Date;o.setTime(o.getTime()+24*i*60*60*1e3);var n="; expires="+o.toGMTString()}else var n="";document.cookie=t+"="+e+n+"; path=/"}function i(t){for(var e=t+"=",i=document.cookie.split(";"),o=0;o<i.length;o++){for(var n=i[o];" "==n.charAt(0);)n=n.substring(1,n.length);if(0==n.indexOf(e))return n.substring(e.length,n.length)}return null}function o(){FB.Event.subscribe("edge.create",function(t,e){var i=$(e).parents(".spu-box").data("box-id");i&&SPU.hide(i)}),p=!0,clearInterval(l)}function n(t){var e=$(t.target).parents(".spu-box").data("box-id");e&&SPU.hide(e)}function a(t){if("on"==t.state){var e=jQuery(".spu-gogl").data("box-id");e&&SPU.hide(e)}}function r(t){if("confirm"==t.type){var e=jQuery(".spu-gogl").data("box-id");e&&SPU.hide(e)}}function s(){if(spuvar_social.facebook)try{FB.XFBML.parse()}catch(t){}spuvar_social.google&&gapi.plusone.go(),spuvar_social.twitter&&twttr.widgets.load()}var d=function(){function o(t){var e=d[t],i=$(window).width(),o=$(window).height(),n=e.outerHeight(),a=e.outerWidth(),r=e.data("width"),s=0,u=o/2-n/2,c="fixed",f=$(document).scrollTop();e.hasClass("spu-centered")&&(i>r&&(s=i/2-a/2),e.css({left:s,position:c,top:u})),n+50>o&&(c="absolute",u=f,e.css({position:c,top:u,bottom:"auto"}))}function n(t){var e=$(t).find(".spu-facebook");if(e.length){var i=e.find(".fb-like > span").width();if(0==i){var o=e.find(".fb-like").data("layout");e.append("box_count"==o?'<style type="text/css"> #'+$(t).attr("id")+" .fb-like iframe, #"+$(t).attr("id")+" .fb_iframe_widget span, #"+$(t).attr("id")+" .fb_iframe_widget{ height: 63px !important;width: 80px !important;}</style>":'<style type="text/css"> #'+$(t).attr("id")+" .fb-like iframe, #"+$(t).attr("id")+" .fb_iframe_widget span, #"+$(t).attr("id")+" .fb_iframe_widget{ height: 20px !important;width: 80px !important;}</style>")}}}function a(t,i){var n=d[t],a=$("#spu-bg-"+t),r=n.data("bgopa");if(n.is(":animated"))return!1;if(i===!0&&n.is(":visible")||i===!1&&n.is(":hidden"))return!1;if(i===!1){var s=parseInt(n.data("cookie"));s>0&&e("spu_box_"+t,!0,s)}else $(window).resize(function(){o(t)}),o(t);var u=n.data("spuanimation");return"fade"===u?n.fadeToggle("slow"):n.slideToggle("slow"),i===!0&&r>0?a.fadeIn():a.fadeOut(),i}var r=$(window).height(),s=spuvar.is_admin,d=[];return $(".spu-content").children().first().css({"margin-top":0,"padding-top":0}).end().last().css({"margin-bottom":0,"padding-bottom":0}),$(".spu-box").each(function(){spuvar.safe_mode&&$(this).prependTo("body");var e=$(this),o=e.data("trigger"),u=0,c=1===parseInt(e.data("test-mode")),f=e.data("box-id"),p=1===parseInt(e.data("auto-hide")),l=parseInt(e.data("seconds-close")),h=parseInt(e.data("trigger-number"),10),g="percentage"==o?parseInt(e.data("trigger-number"),10)/100:.8,w=g*$(document).height();n(e),$(".spu-google").width($(".spu-google").width()-20),$(".spu-twitter").width($(".spu-twitter ").width()-50);var m=0,v=0,b=e.outerWidth(),y=e.find(".spu-content").width(),_=e.data("total");$(".spu-shortcode").wrapAll('<div class="spu_shortcodes"/>'),_&&!spuvar.disable_style&&$(window).width()>b&&($(this).find(".spu-shortcode").each(function(){m+=$(this).width()}),v=y-m-_),v>0&&($(this).find(".spu-shortcode").each(function(){$(this).css("margin-left",v/2)}),2==_?$(this).find(".spu-shortcode").last().css("margin-left",0):3==_&&$(this).find(".spu-shortcode").first().css("margin-left",0)),$(document).keyup(function(t){27==t.keyCode&&a(f,!1)});var x=navigator.userAgent,T=x.match(/iPad/i)||x.match(/iPhone/i)?"touchstart":"click";$("body").on(T,function(t){void 0!==t.originalEvent&&a(f,!1)}),$("body").on(T,".spu-box",function(t){t.stopPropagation()}),e.hide().css("left",""),d[f]=e;var k=function(){u&&clearTimeout(u),u=window.setTimeout(function(){var t=$(window).scrollTop(),e=t+r>=w;e?(p||$(window).unbind("scroll",k),a(f,!0)):a(f,!1)},100)},P=function(){u&&clearTimeout(u),u=window.setTimeout(function(){a(f,!0)},1e3*h)},j=i("spu_box_"+f);if((void 0==j||""==j||s&&c)&&("seconds"==o?P():($(window).bind("scroll",k),k()),window.location.hash&&window.location.hash.length>0)){var I=window.location.hash,S;I.substring(1)===e.attr("id")&&setTimeout(function(){a(f,!0)},100)}e.find(".spu-close-popup").click(function(){a(f,!1),"percentage"==o&&$(window).unbind("scroll",k)}),$('a[href="#'+e.attr("id")+'"]').click(function(){return a(f,!0),!1}),e.find(".gform_wrapper form").addClass("gravity-form"),e.on("submit",'form:not(".wpcf7-form, .gravity-form")',function(e){e.preventDefault(),track(f,!0);var i=!0,o=$(this),n=o.serialize(),r=o.attr("action"),s=function(t,e,i){console.log("Spu Form error: "+e+" - "+i)},d=function(t){var e=$(t).filter("#spu-"+f).html();$("#spu-"+f).html(e),$("#spu-"+f).find(".mc4wp-form-error").length||setTimeout(function(){a(f,!1)},1e3*spuvar.seconds_confirmation_close)};return t(n,r,d,s,"html"),i}),$("body").on("mailsent.wpcf7",function(){a(f,!1)}),$(document).on("gform_confirmation_loaded",function(){a(f,!1)})}),{show:function(t){return a(t,!0)},hide:function(t){return a(t,!1)},request:function(e,i,o,n){return t(e,i,o,n)}}};if(spuvar.ajax_mode){var u={pid:spuvar.pid,referrer:document.referrer},c=function(t){$("body").append(t),s(),window.SPU=d()},f=function(t,e,i){console.log("Problem loading popups - error: "+e+" - "+i)};t(u,spuvar.ajax_mode_url,c,f,"html")}else jQuery(window).load(function(){window.SPU=d()});var p=!1,l=setInterval(function(){"undefined"==typeof FB||p||o()},1e3);"undefined"!=typeof twttr&&twttr.ready(function(t){t.events.bind("tweet",n),t.events.bind("follow",n)})}(jQuery);
|
public/assets/js/public.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
(function($){
|
2 |
"use strict";
|
3 |
|
4 |
-
var
|
5 |
|
6 |
var windowHeight = $(window).height();
|
7 |
var isAdmin = spuvar.is_admin;
|
@@ -42,12 +42,12 @@ var SPU = function() {
|
|
42 |
facebookFix( $box );
|
43 |
//correct widths of sharing icons
|
44 |
$('.spu-google').width($('.spu-google').width()-20);
|
45 |
-
$('.spu-twitter').width($('.spu-twitter').width()-
|
46 |
|
47 |
//center spu-shortcodes
|
48 |
var swidth = 0;
|
49 |
var free_width = 0;
|
50 |
-
var boxwidth = $box.
|
51 |
var cwidth = $box.find(".spu-content").width();
|
52 |
var total = $box.data('total'); //total of shortcodes used
|
53 |
|
@@ -67,15 +67,8 @@ var SPU = function() {
|
|
67 |
if( free_width > 0 ) {
|
68 |
//leave some margin
|
69 |
$(this).find(".spu-shortcode").each(function(){
|
70 |
-
if( total == 3) {
|
71 |
-
|
72 |
-
$(this).css('margin-left',(free_width / (total-1)));
|
73 |
-
|
74 |
-
} else {
|
75 |
|
76 |
-
|
77 |
-
|
78 |
-
}
|
79 |
|
80 |
});
|
81 |
//remove margin when neccesary
|
@@ -261,17 +254,43 @@ var SPU = function() {
|
|
261 |
|
262 |
|
263 |
//function that center popup on screen
|
264 |
-
function
|
265 |
var $box = $boxes[id];
|
266 |
var windowWidth = $(window).width();
|
267 |
var windowHeight = $(window).height();
|
268 |
-
var popupHeight = $box.
|
269 |
-
var popupWidth = $box.
|
270 |
-
$box.
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
275 |
}
|
276 |
|
277 |
//facebookBugFix
|
@@ -322,17 +341,16 @@ var SPU = function() {
|
|
322 |
}
|
323 |
} else {
|
324 |
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
centerBox( id );
|
331 |
|
332 |
-
|
333 |
-
|
334 |
|
335 |
-
|
336 |
|
337 |
}
|
338 |
|
@@ -377,7 +395,7 @@ if( spuvar.ajax_mode ) {
|
|
377 |
|
378 |
$('body').append(response);
|
379 |
reload_socials();
|
380 |
-
SPU();
|
381 |
|
382 |
|
383 |
},
|
@@ -389,7 +407,7 @@ if( spuvar.ajax_mode ) {
|
|
389 |
|
390 |
jQuery(window).load(function() {
|
391 |
|
392 |
-
SPU();
|
393 |
|
394 |
});
|
395 |
}
|
@@ -490,8 +508,6 @@ function spuReadCookie(name) {
|
|
490 |
var box_id = $(html_element).parents('.spu-box').data('box-id');
|
491 |
if( box_id) {
|
492 |
SPU.hide(box_id);
|
493 |
-
//Track the conversion.
|
494 |
-
SPU.track( box_id, true);
|
495 |
}
|
496 |
});
|
497 |
SPUfb = true;
|
1 |
(function($){
|
2 |
"use strict";
|
3 |
|
4 |
+
var SPU_master = function() {
|
5 |
|
6 |
var windowHeight = $(window).height();
|
7 |
var isAdmin = spuvar.is_admin;
|
42 |
facebookFix( $box );
|
43 |
//correct widths of sharing icons
|
44 |
$('.spu-google').width($('.spu-google').width()-20);
|
45 |
+
$('.spu-twitter').width($('.spu-twitter ').width()-50);
|
46 |
|
47 |
//center spu-shortcodes
|
48 |
var swidth = 0;
|
49 |
var free_width = 0;
|
50 |
+
var boxwidth = $box.outerWidth();
|
51 |
var cwidth = $box.find(".spu-content").width();
|
52 |
var total = $box.data('total'); //total of shortcodes used
|
53 |
|
67 |
if( free_width > 0 ) {
|
68 |
//leave some margin
|
69 |
$(this).find(".spu-shortcode").each(function(){
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
+
$(this).css('margin-left',(free_width / 2 ));
|
|
|
|
|
72 |
|
73 |
});
|
74 |
//remove margin when neccesary
|
254 |
|
255 |
|
256 |
//function that center popup on screen
|
257 |
+
function fixSize( id ) {
|
258 |
var $box = $boxes[id];
|
259 |
var windowWidth = $(window).width();
|
260 |
var windowHeight = $(window).height();
|
261 |
+
var popupHeight = $box.outerHeight();
|
262 |
+
var popupWidth = $box.outerWidth();
|
263 |
+
var intentWidth = $box.data('width');
|
264 |
+
var left = 0;
|
265 |
+
var top = windowHeight / 2 - popupHeight / 2;
|
266 |
+
var position = 'fixed';
|
267 |
+
var currentScroll = $(document).scrollTop();
|
268 |
+
|
269 |
+
if( $box.hasClass('spu-centered') ){
|
270 |
+
if( intentWidth < windowWidth ) {
|
271 |
+
left = windowWidth / 2 - popupWidth / 2;
|
272 |
+
}
|
273 |
+
$box.css({
|
274 |
+
"left": left,
|
275 |
+
"position": position,
|
276 |
+
"top": top,
|
277 |
+
});
|
278 |
+
}
|
279 |
+
|
280 |
+
// if popup is higher than viewport we need to make it absolute
|
281 |
+
if( (popupHeight + 50) > windowHeight ) {
|
282 |
+
position = 'absolute';
|
283 |
+
top = currentScroll;
|
284 |
+
|
285 |
+
$box.css({
|
286 |
+
"position": position,
|
287 |
+
"top": top,
|
288 |
+
"bottom": "auto",
|
289 |
+
//"right": "auto",
|
290 |
+
//"left": "auto",
|
291 |
+
});
|
292 |
+
}
|
293 |
+
|
294 |
}
|
295 |
|
296 |
//facebookBugFix
|
341 |
}
|
342 |
} else {
|
343 |
|
344 |
+
|
345 |
+
//bind for resize
|
346 |
+
$(window).resize(function(){
|
347 |
+
|
348 |
+
fixSize( id );
|
|
|
349 |
|
350 |
+
});
|
351 |
+
fixSize( id );
|
352 |
|
353 |
+
|
354 |
|
355 |
}
|
356 |
|
395 |
|
396 |
$('body').append(response);
|
397 |
reload_socials();
|
398 |
+
window.SPU = SPU_master();
|
399 |
|
400 |
|
401 |
},
|
407 |
|
408 |
jQuery(window).load(function() {
|
409 |
|
410 |
+
window.SPU = SPU_master();
|
411 |
|
412 |
});
|
413 |
}
|
508 |
var box_id = $(html_element).parents('.spu-box').data('box-id');
|
509 |
if( box_id) {
|
510 |
SPU.hide(box_id);
|
|
|
|
|
511 |
}
|
512 |
});
|
513 |
SPUfb = true;
|
public/class-social-popup.php
CHANGED
@@ -23,7 +23,7 @@ class SocialPopup {
|
|
23 |
*
|
24 |
* @var string
|
25 |
*/
|
26 |
-
const VERSION = '1.2.3.
|
27 |
|
28 |
/**
|
29 |
* Popups to use acrros files
|
@@ -97,8 +97,8 @@ class SocialPopup {
|
|
97 |
add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
|
98 |
|
99 |
// Register public-facing style sheet and JavaScript.
|
100 |
-
add_action( 'wp_enqueue_scripts', array( $this, 'register_scripts' )
|
101 |
-
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ));
|
102 |
|
103 |
if( !isset($this->spu_settings['ajax_mode'] ) ) {
|
104 |
//print boxes
|
@@ -363,19 +363,34 @@ class SocialPopup {
|
|
363 |
|
364 |
//Grab all popups ids
|
365 |
$spu_ids = $wpdb->get_results( "SELECT ID, post_content FROM $wpdb->posts WHERE post_type='spucpt' AND post_status='publish'");
|
|
|
366 |
foreach( $spu_ids as $spu ) {
|
367 |
|
368 |
-
$
|
|
|
|
|
369 |
|
370 |
-
$match
|
371 |
if( $match ) {
|
372 |
-
$spu_matches[] = $
|
373 |
}
|
374 |
}
|
375 |
|
376 |
return $spu_matches;
|
377 |
}
|
378 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
379 |
/**
|
380 |
* Function that enqueue all needed scritps and styles
|
381 |
* @since 1.3
|
23 |
*
|
24 |
* @var string
|
25 |
*/
|
26 |
+
const VERSION = '1.2.3.2';
|
27 |
|
28 |
/**
|
29 |
* Popups to use acrros files
|
97 |
add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
|
98 |
|
99 |
// Register public-facing style sheet and JavaScript.
|
100 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'register_scripts' ) );
|
101 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
102 |
|
103 |
if( !isset($this->spu_settings['ajax_mode'] ) ) {
|
104 |
//print boxes
|
363 |
|
364 |
//Grab all popups ids
|
365 |
$spu_ids = $wpdb->get_results( "SELECT ID, post_content FROM $wpdb->posts WHERE post_type='spucpt' AND post_status='publish'");
|
366 |
+
|
367 |
foreach( $spu_ids as $spu ) {
|
368 |
|
369 |
+
$spu_id = $this->get_real_spu_id($spu->ID);
|
370 |
+
|
371 |
+
$rules = get_post_meta( $spu_id, 'spu_rules' ,true );
|
372 |
|
373 |
+
$match = $spu_rules->check_rules( $rules );
|
374 |
if( $match ) {
|
375 |
+
$spu_matches[] = $spu_id;
|
376 |
}
|
377 |
}
|
378 |
|
379 |
return $spu_matches;
|
380 |
}
|
381 |
|
382 |
+
/**
|
383 |
+
* Used to get wpml real ids if wpml installed
|
384 |
+
* @param int $id popup id
|
385 |
+
* @return int return id
|
386 |
+
*/
|
387 |
+
function get_real_spu_id($id) {
|
388 |
+
if( !function_exists('icl_object_id') )
|
389 |
+
return $id;
|
390 |
+
|
391 |
+
return icl_object_id($id,'spucpt');
|
392 |
+
}
|
393 |
+
|
394 |
/**
|
395 |
* Function that enqueue all needed scritps and styles
|
396 |
* @since 1.3
|
public/includes/class-spu-rules.php
CHANGED
@@ -379,7 +379,7 @@ class Spu_Rules
|
|
379 |
elseif( $rule['value'] == 'posts_page') {
|
380 |
|
381 |
$posts_page = (int) get_option('page_for_posts');
|
382 |
-
|
383 |
if( $posts_page !== 0 ) {
|
384 |
if($rule['operator'] == "==") {
|
385 |
|
@@ -390,18 +390,33 @@ class Spu_Rules
|
|
390 |
$match = ( $posts_page != $post_id );
|
391 |
|
392 |
}
|
393 |
-
} else {
|
394 |
-
|
395 |
-
if(
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
|
|
|
|
|
|
|
|
404 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
}
|
406 |
|
407 |
}
|
@@ -852,8 +867,8 @@ class Spu_Rules
|
|
852 |
|
853 |
$post_type = isset( $wp_query->query_vars['post_type'] ) ? $wp_query->query_vars['post_type'] : '';
|
854 |
|
855 |
-
$post_type = empty( $post_type ) ? get_post_type() : '';
|
856 |
-
|
857 |
return $post_type;
|
858 |
}
|
859 |
|
379 |
elseif( $rule['value'] == 'posts_page') {
|
380 |
|
381 |
$posts_page = (int) get_option('page_for_posts');
|
382 |
+
|
383 |
if( $posts_page !== 0 ) {
|
384 |
if($rule['operator'] == "==") {
|
385 |
|
390 |
$match = ( $posts_page != $post_id );
|
391 |
|
392 |
}
|
393 |
+
} else {
|
394 |
+
// if doing ajax is_home won't work so we do a workaround
|
395 |
+
if( defined( 'DOING_AJAX') ) {
|
396 |
+
|
397 |
+
|
398 |
+
if($rule['operator'] == "==") {
|
399 |
+
|
400 |
+
$match = ( 0 === $posts_page && $post_id == 0 );
|
401 |
+
|
402 |
+
} elseif($rule['operator'] == "!=") {
|
403 |
+
|
404 |
+
$match = !( 0 === $posts_page && $post_id == 0 );
|
405 |
+
|
406 |
+
}
|
407 |
+
|
408 |
|
409 |
+
} else {
|
410 |
+
if($rule['operator'] == "==") {
|
411 |
+
|
412 |
+
$match = is_home();
|
413 |
+
|
414 |
+
} elseif($rule['operator'] == "!=") {
|
415 |
+
|
416 |
+
$match = !is_home();
|
417 |
+
|
418 |
+
}
|
419 |
+
}
|
420 |
}
|
421 |
|
422 |
}
|
867 |
|
868 |
$post_type = isset( $wp_query->query_vars['post_type'] ) ? $wp_query->query_vars['post_type'] : '';
|
869 |
|
870 |
+
$post_type = empty( $post_type ) ? get_post_type($this->post_id) : '';
|
871 |
+
|
872 |
return $post_type;
|
873 |
}
|
874 |
|
public/views/popup.php
CHANGED
@@ -22,6 +22,7 @@ $opts = $helper->get_box_options( $box->ID );
|
|
22 |
$css = $opts['css'];
|
23 |
$content = $box->post_content;
|
24 |
$data_attrs = '';
|
|
|
25 |
|
26 |
// run filters on content
|
27 |
$content = apply_filters( 'spu/popup/content', $content, $box );
|
@@ -40,7 +41,7 @@ do_action( 'spu/popup/before_popup', $box, $opts, $css);
|
|
40 |
background: <?php echo ( !empty( $css['background_color'] ) ) ? esc_attr($css['background_color']) : 'white'; ?>;
|
41 |
<?php if ( !empty( $css['color'] ) ) { ?>color: <?php echo esc_attr($css['color']); ?>;<?php } ?>
|
42 |
<?php if ( !empty( $css['border_color'] ) && !empty( $css['border_width'] ) ) { ?>border: <?php echo esc_attr($css['border_width']) . 'px' ?> solid <?php echo esc_attr($css['border_color']); ?>;<?php } ?>
|
43 |
-
width: <?php echo ( !empty( $
|
44 |
}
|
45 |
#spu-bg-<?php echo $box->ID; ?> {
|
46 |
opacity: <?php echo ( !empty( $css['bgopacity'] ) ) ? esc_attr($css['bgopacity']) : 0; ?>;
|
@@ -52,7 +53,7 @@ do_action( 'spu/popup/before_popup', $box, $opts, $css);
|
|
52 |
data-trigger-number="<?php echo esc_attr( absint( $opts['trigger_number'] ) ); ?>"
|
53 |
data-spuanimation="<?php echo esc_attr($opts['animation']); ?>" data-cookie="<?php echo esc_attr( absint ( $opts['cookie'] ) ); ?>" data-test-mode="<?php echo esc_attr($opts['test_mode']); ?>"
|
54 |
data-auto-hide="<?php echo esc_attr($opts['auto_hide']); ?>" data-bgopa="<?php echo esc_attr($css['bgopacity']);?>" data-total="<?php echo get_post_meta($box->ID, 'spu_social',true);?>"
|
55 |
-
style="left:-99999px" <?php echo apply_filters( 'spu/popup/data_attrs', $data_attrs, $opts);?>>
|
56 |
<div class="spu-content"><?php echo $content; ?></div>
|
57 |
<span class="spu-close spu-close-popup">×</span>
|
58 |
<span class="spu-timer"></span>
|
22 |
$css = $opts['css'];
|
23 |
$content = $box->post_content;
|
24 |
$data_attrs = '';
|
25 |
+
$width = !empty( $css['width'] ) ? $css['width'] : '';
|
26 |
|
27 |
// run filters on content
|
28 |
$content = apply_filters( 'spu/popup/content', $content, $box );
|
41 |
background: <?php echo ( !empty( $css['background_color'] ) ) ? esc_attr($css['background_color']) : 'white'; ?>;
|
42 |
<?php if ( !empty( $css['color'] ) ) { ?>color: <?php echo esc_attr($css['color']); ?>;<?php } ?>
|
43 |
<?php if ( !empty( $css['border_color'] ) && !empty( $css['border_width'] ) ) { ?>border: <?php echo esc_attr($css['border_width']) . 'px' ?> solid <?php echo esc_attr($css['border_color']); ?>;<?php } ?>
|
44 |
+
width: <?php echo ( !empty( $width ) ) ? esc_attr( $width ) : 'auto'; ?>;
|
45 |
}
|
46 |
#spu-bg-<?php echo $box->ID; ?> {
|
47 |
opacity: <?php echo ( !empty( $css['bgopacity'] ) ) ? esc_attr($css['bgopacity']) : 0; ?>;
|
53 |
data-trigger-number="<?php echo esc_attr( absint( $opts['trigger_number'] ) ); ?>"
|
54 |
data-spuanimation="<?php echo esc_attr($opts['animation']); ?>" data-cookie="<?php echo esc_attr( absint ( $opts['cookie'] ) ); ?>" data-test-mode="<?php echo esc_attr($opts['test_mode']); ?>"
|
55 |
data-auto-hide="<?php echo esc_attr($opts['auto_hide']); ?>" data-bgopa="<?php echo esc_attr($css['bgopacity']);?>" data-total="<?php echo get_post_meta($box->ID, 'spu_social',true);?>"
|
56 |
+
style="left:-99999px !important;" data-width="<?php echo esc_attr(str_replace('px', '', $width)); ?>" <?php echo apply_filters( 'spu/popup/data_attrs', $data_attrs, $opts);?>>
|
57 |
<div class="spu-content"><?php echo $content; ?></div>
|
58 |
<span class="spu-close spu-close-popup">×</span>
|
59 |
<span class="spu-timer"></span>
|