Version Description
- Added french language
- Query string rule is wide match now
- New trigger method , X amount of pixels
Download this release
Release Info
Developer | timersys |
Plugin | Popups – WordPress Popup |
Version | 1.7.2 |
Comparing to | |
See all releases |
Code changes from version 1.7.1.1 to 1.7.2
- README.txt +11 -3
- admin/assets/js/admin.js +69 -69
- admin/class-social-popup-admin.php +9 -8
- admin/views/metaboxes/metabox-options.php +4 -0
- admin/views/metaboxes/metabox-rules.php +21 -19
- languages/popups-fr_FR .mo +0 -0
- languages/popups-fr_FR .po +864 -0
- popups.php +2 -2
- public/assets/js/min/public-min.js +1 -1
- public/assets/js/public.js +33 -1
- public/class-social-popup.php +3 -3
- public/includes/class-spu-rules.php +5 -17
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: timersys
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K4T6L69EV9G2Q
|
4 |
Tags: popup,twitter,google+, facebook,Popups, twitter follow, facebook like, google plus,social boost, social splash, postmatic, mailpoet, facebook popup, scroll popups, popups, wordpress popup, wp popups, cf7, gf, gravity forms, contact form 7, ifs, infusion soft, subscribe, login popup, ajax login popups
|
5 |
Requires at least: 3.6
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.7.
|
8 |
Text Domain: popups
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -50,7 +50,7 @@ There are multiple display filters that can be combined:
|
|
50 |
= Available Settings =
|
51 |
|
52 |
* Choose from 5 different popup locations
|
53 |
-
* Trigger popup after X seconds
|
54 |
* Auto hide the popup if the user scroll up
|
55 |
* Change font color, background, borders, etc
|
56 |
* You can also configure background opacity.
|
@@ -92,6 +92,8 @@ Fork me in https://github.com/timersys/popups/
|
|
92 |
|
93 |
= Available Languages =
|
94 |
|
|
|
|
|
95 |
* Serbo-Croatian - Borisa - http://www.webhostinghub.com/
|
96 |
* Spanish - Andrew Kurtis - http://www.webhostinghub.com/
|
97 |
|
@@ -196,6 +198,12 @@ If you have cache be sure to enable AJAX mode in the plugin settings page
|
|
196 |
|
197 |
== Changelog ==
|
198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
= 1.7.1.1 =
|
200 |
* Added freemius insights
|
201 |
* Changed some assets
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K4T6L69EV9G2Q
|
4 |
Tags: popup,twitter,google+, facebook,Popups, twitter follow, facebook like, google plus,social boost, social splash, postmatic, mailpoet, facebook popup, scroll popups, popups, wordpress popup, wp popups, cf7, gf, gravity forms, contact form 7, ifs, infusion soft, subscribe, login popup, ajax login popups
|
5 |
Requires at least: 3.6
|
6 |
+
Tested up to: 4.8
|
7 |
+
Stable tag: 1.7.2
|
8 |
Text Domain: popups
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
50 |
= Available Settings =
|
51 |
|
52 |
* Choose from 5 different popup locations
|
53 |
+
* Trigger popup after X seconds , after scrolling % of page, after scrolling X pixels
|
54 |
* Auto hide the popup if the user scroll up
|
55 |
* Change font color, background, borders, etc
|
56 |
* You can also configure background opacity.
|
92 |
|
93 |
= Available Languages =
|
94 |
|
95 |
+
* French
|
96 |
+
* Russian
|
97 |
* Serbo-Croatian - Borisa - http://www.webhostinghub.com/
|
98 |
* Spanish - Andrew Kurtis - http://www.webhostinghub.com/
|
99 |
|
198 |
|
199 |
== Changelog ==
|
200 |
|
201 |
+
= 1.7.2 =
|
202 |
+
* Added french language
|
203 |
+
* Query string rule is wide match now
|
204 |
+
* New trigger method , X amount of pixels
|
205 |
+
|
206 |
+
|
207 |
= 1.7.1.1 =
|
208 |
* Added freemius insights
|
209 |
* Changed some assets
|
admin/assets/js/admin.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
var spu = {
|
2 |
// module
|
3 |
rules : null
|
4 |
};
|
@@ -19,7 +19,7 @@ SPU_ADMIN = (function ( $ ) {
|
|
19 |
|
20 |
//Toogle trigger boxes on init
|
21 |
checkTriggerMethod( $("#spu_trigger").val() );
|
22 |
-
|
23 |
//Toogle trigger boxes on change
|
24 |
$("#spu_trigger").change(function(){
|
25 |
checkTriggerMethod( $(this).val() );
|
@@ -28,7 +28,7 @@ SPU_ADMIN = (function ( $ ) {
|
|
28 |
});
|
29 |
|
30 |
function checkTriggerMethod( val ) {
|
31 |
-
if( val == 'percentage' || val == 'visible') {
|
32 |
$('tr.auto_hide').fadeIn('fast');
|
33 |
} else {
|
34 |
$('tr.auto_hide').fadeOut('fast');
|
@@ -41,7 +41,7 @@ SPU_ADMIN = (function ( $ ) {
|
|
41 |
}
|
42 |
|
43 |
// functions
|
44 |
-
function getPxValue($el, retval)
|
45 |
{
|
46 |
if($el.val()) {
|
47 |
return parseInt($el.val());
|
@@ -59,7 +59,7 @@ SPU_ADMIN = (function ( $ ) {
|
|
59 |
}
|
60 |
}
|
61 |
|
62 |
-
function applyStyles()
|
63 |
{
|
64 |
var $editor = $("#content_ifr").contents().find('html');
|
65 |
$editor.trigger('spu_tinymce_init');
|
@@ -96,52 +96,52 @@ SPU_ADMIN = (function ( $ ) {
|
|
96 |
* @since: 1.0.0
|
97 |
* Thanks to advanced custom fields plugin for part of this code
|
98 |
*/
|
99 |
-
|
100 |
spu.rules = {
|
101 |
$el : null,
|
102 |
init : function(){
|
103 |
-
|
104 |
// vars
|
105 |
var _this = this;
|
106 |
-
|
107 |
-
|
108 |
// $el
|
109 |
_this.$el = $('#spu-rules');
|
110 |
-
|
111 |
-
|
112 |
// add rule
|
113 |
_this.$el.on('click', '.rules-add-rule', function(){
|
114 |
-
|
115 |
_this.add_rule( $(this).closest('tr') );
|
116 |
-
|
117 |
return false;
|
118 |
-
|
119 |
});
|
120 |
-
|
121 |
-
|
122 |
// remove rule
|
123 |
_this.$el.on('click', '.rules-remove-rule', function(){
|
124 |
-
|
125 |
_this.remove_rule( $(this).closest('tr') );
|
126 |
-
|
127 |
return false;
|
128 |
-
|
129 |
});
|
130 |
-
|
131 |
-
|
132 |
// add rule
|
133 |
_this.$el.on('click', '.rules-add-group', function(){
|
134 |
-
|
135 |
_this.add_group();
|
136 |
-
|
137 |
return false;
|
138 |
-
|
139 |
});
|
140 |
-
|
141 |
-
|
142 |
// change rule
|
143 |
_this.$el.on('change', '.param select', function(){
|
144 |
-
|
145 |
// vars
|
146 |
var $tr = $(this).closest('tr'),
|
147 |
rule_id = $tr.attr('data-id'),
|
@@ -156,13 +156,13 @@ SPU_ADMIN = (function ( $ ) {
|
|
156 |
'value' : '',
|
157 |
'param' : $(this).val()
|
158 |
};
|
159 |
-
|
160 |
-
|
161 |
// add loading gif
|
162 |
var div = $('<div class="spu-loading"><img src="'+spu_js.admin_url+'/images/wpspin_light.gif"/> </div>');
|
163 |
val_td.html( div );
|
164 |
-
|
165 |
-
|
166 |
// load rules html
|
167 |
$.ajax({
|
168 |
url: ajaxurl,
|
@@ -172,7 +172,7 @@ SPU_ADMIN = (function ( $ ) {
|
|
172 |
success: function(html){
|
173 |
|
174 |
val_td.html(html);
|
175 |
-
|
176 |
}
|
177 |
});
|
178 |
|
@@ -199,44 +199,44 @@ SPU_ADMIN = (function ( $ ) {
|
|
199 |
|
200 |
}
|
201 |
});
|
202 |
-
|
203 |
});
|
204 |
-
|
205 |
},
|
206 |
add_rule : function( $tr ){
|
207 |
-
|
208 |
// vars
|
209 |
var $tr2 = $tr.clone(),
|
210 |
old_id = $tr2.attr('data-id'),
|
211 |
new_id = 'rule_' + ( parseInt( old_id.replace('rule_', ''), 10 ) + 1);
|
212 |
-
|
213 |
-
|
214 |
// update names
|
215 |
$tr2.find('[name]').each(function(){
|
216 |
-
|
217 |
$(this).attr('name', $(this).attr('name').replace( old_id, new_id ));
|
218 |
$(this).attr('id', $(this).attr('id').replace( old_id, new_id ));
|
219 |
-
|
220 |
});
|
221 |
-
|
222 |
-
|
223 |
// update data-i
|
224 |
$tr2.attr( 'data-id', new_id );
|
225 |
-
|
226 |
-
|
227 |
// add tr
|
228 |
$tr.after( $tr2 );
|
229 |
-
|
230 |
-
|
231 |
return false;
|
232 |
-
|
233 |
},
|
234 |
remove_rule : function( $tr ){
|
235 |
-
|
236 |
// vars
|
237 |
var siblings = $tr.siblings('tr').length;
|
238 |
|
239 |
-
|
240 |
if( siblings == 0 )
|
241 |
{
|
242 |
// remove group
|
@@ -247,52 +247,52 @@ SPU_ADMIN = (function ( $ ) {
|
|
247 |
// remove tr
|
248 |
$tr.remove();
|
249 |
}
|
250 |
-
|
251 |
},
|
252 |
add_group : function(){
|
253 |
-
|
254 |
// vars
|
255 |
var $group = this.$el.find('.rules-group:last'),
|
256 |
$group2 = $group.clone(),
|
257 |
old_id = $group2.attr('data-id'),
|
258 |
new_id = 'group_' + ( parseInt( old_id.replace('group_', ''), 10 ) + 1);
|
259 |
-
|
260 |
-
|
261 |
// update names
|
262 |
$group2.find('[name]').each(function(){
|
263 |
-
|
264 |
$(this).attr('name', $(this).attr('name').replace( old_id, new_id ));
|
265 |
$(this).attr('id', $(this).attr('id').replace( old_id, new_id ));
|
266 |
-
|
267 |
});
|
268 |
-
|
269 |
-
|
270 |
// update data-i
|
271 |
$group2.attr( 'data-id', new_id );
|
272 |
-
|
273 |
-
|
274 |
// update h4
|
275 |
$group2.find('h4').html( spu_js.l10n.or ).addClass('rules-or');
|
276 |
-
|
277 |
-
|
278 |
// remove all tr's except the first one
|
279 |
$group2.find('tr:not(:first)').remove();
|
280 |
-
|
281 |
-
|
282 |
// add tr
|
283 |
$group.after( $group2 );
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
},
|
288 |
remove_group : function( $group ){
|
289 |
-
|
290 |
$group.remove();
|
291 |
-
|
292 |
}
|
293 |
};
|
294 |
|
295 |
-
return {
|
296 |
onTinyMceInit: function() {
|
297 |
applyStyles();
|
298 |
|
@@ -324,4 +324,4 @@ SPU_ADMIN = (function ( $ ) {
|
|
324 |
$( global ).load( loadAce );
|
325 |
}
|
326 |
global.aceSyncCSS = syncCSS;
|
327 |
-
} )( this, jQuery );
|
1 |
+
var spu = {
|
2 |
// module
|
3 |
rules : null
|
4 |
};
|
19 |
|
20 |
//Toogle trigger boxes on init
|
21 |
checkTriggerMethod( $("#spu_trigger").val() );
|
22 |
+
|
23 |
//Toogle trigger boxes on change
|
24 |
$("#spu_trigger").change(function(){
|
25 |
checkTriggerMethod( $(this).val() );
|
28 |
});
|
29 |
|
30 |
function checkTriggerMethod( val ) {
|
31 |
+
if( val == 'pixels' || val == 'percentage' || val == 'visible') {
|
32 |
$('tr.auto_hide').fadeIn('fast');
|
33 |
} else {
|
34 |
$('tr.auto_hide').fadeOut('fast');
|
41 |
}
|
42 |
|
43 |
// functions
|
44 |
+
function getPxValue($el, retval)
|
45 |
{
|
46 |
if($el.val()) {
|
47 |
return parseInt($el.val());
|
59 |
}
|
60 |
}
|
61 |
|
62 |
+
function applyStyles()
|
63 |
{
|
64 |
var $editor = $("#content_ifr").contents().find('html');
|
65 |
$editor.trigger('spu_tinymce_init');
|
96 |
* @since: 1.0.0
|
97 |
* Thanks to advanced custom fields plugin for part of this code
|
98 |
*/
|
99 |
+
|
100 |
spu.rules = {
|
101 |
$el : null,
|
102 |
init : function(){
|
103 |
+
|
104 |
// vars
|
105 |
var _this = this;
|
106 |
+
|
107 |
+
|
108 |
// $el
|
109 |
_this.$el = $('#spu-rules');
|
110 |
+
|
111 |
+
|
112 |
// add rule
|
113 |
_this.$el.on('click', '.rules-add-rule', function(){
|
114 |
+
|
115 |
_this.add_rule( $(this).closest('tr') );
|
116 |
+
|
117 |
return false;
|
118 |
+
|
119 |
});
|
120 |
+
|
121 |
+
|
122 |
// remove rule
|
123 |
_this.$el.on('click', '.rules-remove-rule', function(){
|
124 |
+
|
125 |
_this.remove_rule( $(this).closest('tr') );
|
126 |
+
|
127 |
return false;
|
128 |
+
|
129 |
});
|
130 |
+
|
131 |
+
|
132 |
// add rule
|
133 |
_this.$el.on('click', '.rules-add-group', function(){
|
134 |
+
|
135 |
_this.add_group();
|
136 |
+
|
137 |
return false;
|
138 |
+
|
139 |
});
|
140 |
+
|
141 |
+
|
142 |
// change rule
|
143 |
_this.$el.on('change', '.param select', function(){
|
144 |
+
|
145 |
// vars
|
146 |
var $tr = $(this).closest('tr'),
|
147 |
rule_id = $tr.attr('data-id'),
|
156 |
'value' : '',
|
157 |
'param' : $(this).val()
|
158 |
};
|
159 |
+
|
160 |
+
|
161 |
// add loading gif
|
162 |
var div = $('<div class="spu-loading"><img src="'+spu_js.admin_url+'/images/wpspin_light.gif"/> </div>');
|
163 |
val_td.html( div );
|
164 |
+
|
165 |
+
|
166 |
// load rules html
|
167 |
$.ajax({
|
168 |
url: ajaxurl,
|
172 |
success: function(html){
|
173 |
|
174 |
val_td.html(html);
|
175 |
+
|
176 |
}
|
177 |
});
|
178 |
|
199 |
|
200 |
}
|
201 |
});
|
202 |
+
|
203 |
});
|
204 |
+
|
205 |
},
|
206 |
add_rule : function( $tr ){
|
207 |
+
|
208 |
// vars
|
209 |
var $tr2 = $tr.clone(),
|
210 |
old_id = $tr2.attr('data-id'),
|
211 |
new_id = 'rule_' + ( parseInt( old_id.replace('rule_', ''), 10 ) + 1);
|
212 |
+
|
213 |
+
|
214 |
// update names
|
215 |
$tr2.find('[name]').each(function(){
|
216 |
+
|
217 |
$(this).attr('name', $(this).attr('name').replace( old_id, new_id ));
|
218 |
$(this).attr('id', $(this).attr('id').replace( old_id, new_id ));
|
219 |
+
|
220 |
});
|
221 |
+
|
222 |
+
|
223 |
// update data-i
|
224 |
$tr2.attr( 'data-id', new_id );
|
225 |
+
|
226 |
+
|
227 |
// add tr
|
228 |
$tr.after( $tr2 );
|
229 |
+
|
230 |
+
|
231 |
return false;
|
232 |
+
|
233 |
},
|
234 |
remove_rule : function( $tr ){
|
235 |
+
|
236 |
// vars
|
237 |
var siblings = $tr.siblings('tr').length;
|
238 |
|
239 |
+
|
240 |
if( siblings == 0 )
|
241 |
{
|
242 |
// remove group
|
247 |
// remove tr
|
248 |
$tr.remove();
|
249 |
}
|
250 |
+
|
251 |
},
|
252 |
add_group : function(){
|
253 |
+
|
254 |
// vars
|
255 |
var $group = this.$el.find('.rules-group:last'),
|
256 |
$group2 = $group.clone(),
|
257 |
old_id = $group2.attr('data-id'),
|
258 |
new_id = 'group_' + ( parseInt( old_id.replace('group_', ''), 10 ) + 1);
|
259 |
+
|
260 |
+
|
261 |
// update names
|
262 |
$group2.find('[name]').each(function(){
|
263 |
+
|
264 |
$(this).attr('name', $(this).attr('name').replace( old_id, new_id ));
|
265 |
$(this).attr('id', $(this).attr('id').replace( old_id, new_id ));
|
266 |
+
|
267 |
});
|
268 |
+
|
269 |
+
|
270 |
// update data-i
|
271 |
$group2.attr( 'data-id', new_id );
|
272 |
+
|
273 |
+
|
274 |
// update h4
|
275 |
$group2.find('h4').html( spu_js.l10n.or ).addClass('rules-or');
|
276 |
+
|
277 |
+
|
278 |
// remove all tr's except the first one
|
279 |
$group2.find('tr:not(:first)').remove();
|
280 |
+
|
281 |
+
|
282 |
// add tr
|
283 |
$group.after( $group2 );
|
284 |
+
|
285 |
+
|
286 |
+
|
287 |
},
|
288 |
remove_group : function( $group ){
|
289 |
+
|
290 |
$group.remove();
|
291 |
+
|
292 |
}
|
293 |
};
|
294 |
|
295 |
+
return {
|
296 |
onTinyMceInit: function() {
|
297 |
applyStyles();
|
298 |
|
324 |
$( global ).load( loadAce );
|
325 |
}
|
326 |
global.aceSyncCSS = syncCSS;
|
327 |
+
} )( this, jQuery );
|
admin/class-social-popup-admin.php
CHANGED
@@ -271,14 +271,6 @@ class SocialPopup_Admin {
|
|
271 |
|
272 |
}
|
273 |
|
274 |
-
add_meta_box(
|
275 |
-
'spu-help',
|
276 |
-
'<i class="spu-icon-info spu-icon"></i>' . __( 'PopUp Shortcodes', 'popups' ),
|
277 |
-
array( $this, 'popup_help' ),
|
278 |
-
'spucpt',
|
279 |
-
'normal',
|
280 |
-
'core'
|
281 |
-
);
|
282 |
|
283 |
add_meta_box(
|
284 |
'spu-appearance',
|
@@ -307,6 +299,15 @@ class SocialPopup_Admin {
|
|
307 |
'core'
|
308 |
);
|
309 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
310 |
add_meta_box(
|
311 |
'spu-support',
|
312 |
__( 'Need support?', 'popups' ),
|
271 |
|
272 |
}
|
273 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
274 |
|
275 |
add_meta_box(
|
276 |
'spu-appearance',
|
299 |
'core'
|
300 |
);
|
301 |
|
302 |
+
add_meta_box(
|
303 |
+
'spu-help',
|
304 |
+
'<i class="spu-icon-info spu-icon"></i>' . __( 'PopUp Shortcodes', 'popups' ),
|
305 |
+
array( $this, 'popup_help' ),
|
306 |
+
'spucpt',
|
307 |
+
'normal',
|
308 |
+
'core'
|
309 |
+
);
|
310 |
+
|
311 |
add_meta_box(
|
312 |
'spu-support',
|
313 |
__( 'Need support?', 'popups' ),
|
admin/views/metaboxes/metabox-options.php
CHANGED
@@ -26,6 +26,7 @@ if ( !defined( 'ABSPATH' ) ) exit;?>
|
|
26 |
|
27 |
<option value="seconds" <?php selected($opts['trigger'], 'seconds'); ?>><?php _e( 'seconds after page load', 'popups' ); ?></option>
|
28 |
<option value="percentage" <?php selected($opts['trigger'], 'percentage'); ?>>% <?php _e( 'of page height', 'popups' ); ?></option>
|
|
|
29 |
<option value="manual" <?php selected($opts['trigger'], 'manual'); ?>><?php _e( 'Manual Triggering', 'popups' ); ?></option>
|
30 |
<?php do_action( 'spu/metaboxes/trigger_options', $opts );?>
|
31 |
</select>
|
@@ -35,6 +36,9 @@ if ( !defined( 'ABSPATH' ) ) exit;?>
|
|
35 |
<?php do_action( 'spu/metaboxes/trigger_values', $opts );?>
|
36 |
</td>
|
37 |
</tr>
|
|
|
|
|
|
|
38 |
<tr valign="top" class="auto_hide">
|
39 |
<th><label for="spu_auto_hide"><?php _e( 'Auto-hide?', 'popups' ); ?></label></th>
|
40 |
<td colspan="3">
|
26 |
|
27 |
<option value="seconds" <?php selected($opts['trigger'], 'seconds'); ?>><?php _e( 'seconds after page load', 'popups' ); ?></option>
|
28 |
<option value="percentage" <?php selected($opts['trigger'], 'percentage'); ?>>% <?php _e( 'of page height', 'popups' ); ?></option>
|
29 |
+
<option value="pixels" <?php selected($opts['trigger'], 'pixels'); ?>><?php _e( 'Scrolled down pixels', 'popups' ); ?></option>
|
30 |
<option value="manual" <?php selected($opts['trigger'], 'manual'); ?>><?php _e( 'Manual Triggering', 'popups' ); ?></option>
|
31 |
<?php do_action( 'spu/metaboxes/trigger_options', $opts );?>
|
32 |
</select>
|
36 |
<?php do_action( 'spu/metaboxes/trigger_values', $opts );?>
|
37 |
</td>
|
38 |
</tr>
|
39 |
+
<tr>
|
40 |
+
<td style="margin:0;padding:0"></td><td style="position: relative;top: -15px;margin:0;padding:0 0 0 10px"><p class="help"><?php _e( 'Choose how the popup will be triggered on the page', 'popups' ); ?></p></td>
|
41 |
+
</tr>
|
42 |
<tr valign="top" class="auto_hide">
|
43 |
<th><label for="spu_auto_hide"><?php _e( 'Auto-hide?', 'popups' ); ?></label></th>
|
44 |
<td colspan="3">
|
admin/views/metaboxes/metabox-rules.php
CHANGED
@@ -22,9 +22,9 @@ do_action( 'spu/metaboxes/before_rules', $post );
|
|
22 |
</td>
|
23 |
<td>
|
24 |
<div class="rules-groups">
|
25 |
-
|
26 |
<?php if( is_array($groups) ): ?>
|
27 |
-
<?php foreach( $groups as $group_id => $group ):
|
28 |
$group_id = 'group_' . $group_id;
|
29 |
?>
|
30 |
<div class="rules-group" data-id="<?php echo $group_id; ?>">
|
@@ -36,27 +36,27 @@ do_action( 'spu/metaboxes/before_rules', $post );
|
|
36 |
<?php if( is_array($group) ): ?>
|
37 |
<table class="spu_table widefat">
|
38 |
<tbody>
|
39 |
-
<?php foreach( $group as $rule_id => $rule ):
|
40 |
$rule_id = 'rule_' . $rule_id;
|
41 |
?>
|
42 |
<tr data-id="<?php echo $rule_id; ?>">
|
43 |
-
<td class="param"><?php
|
44 |
-
|
45 |
$choices = $this->get_rules_choices();
|
46 |
|
47 |
-
// create field
|
48 |
$args = array(
|
49 |
'group_id' => $group_id,
|
50 |
'rule_id' => $rule_id,
|
51 |
'name' => 'spu_rules[' . $group_id . '][' . $rule_id . '][param]',
|
52 |
'value' => $rule['param']
|
53 |
);
|
54 |
-
|
55 |
Spu_Helper::print_select( $args, $choices );
|
56 |
-
|
57 |
-
|
58 |
?></td>
|
59 |
-
<td class="operator"><?php
|
60 |
|
61 |
$args = array(
|
62 |
'group_id' => $group_id,
|
@@ -67,9 +67,9 @@ do_action( 'spu/metaboxes/before_rules', $post );
|
|
67 |
|
68 |
);
|
69 |
Spu_Helper::ajax_render_operator( $args );
|
70 |
-
|
71 |
?></td>
|
72 |
-
<td class="value"><?php
|
73 |
$args = array(
|
74 |
'group_id' => $group_id,
|
75 |
'rule_id' => $rule_id,
|
@@ -77,8 +77,8 @@ do_action( 'spu/metaboxes/before_rules', $post );
|
|
77 |
'name' => 'spu_rules[' . $group_id . '][' . $rule_id . '][value]',
|
78 |
'param' => $rule['param'],
|
79 |
);
|
80 |
-
Spu_Helper::ajax_render_rules( $args );
|
81 |
-
|
82 |
?></td>
|
83 |
<td class="add">
|
84 |
<a href="#" class="rules-add-rule button"><?php _e("+ AND", 'popups' ); ?></a>
|
@@ -93,15 +93,17 @@ do_action( 'spu/metaboxes/before_rules', $post );
|
|
93 |
<?php endif; ?>
|
94 |
</div>
|
95 |
<?php endforeach; ?>
|
96 |
-
|
97 |
<h4 class="rules-or"><span><?php _e("OR", 'popups' ); ?></span></h4>
|
98 |
-
|
99 |
<a class="button rules-add-group" href="#"><?php _e("Add rule group (+ OR)", 'popups' ); ?></a>
|
100 |
-
|
|
|
|
|
101 |
<?php endif; ?>
|
102 |
-
|
103 |
</div>
|
104 |
</td>
|
105 |
</tr>
|
106 |
</tbody>
|
107 |
-
</table>
|
22 |
</td>
|
23 |
<td>
|
24 |
<div class="rules-groups">
|
25 |
+
|
26 |
<?php if( is_array($groups) ): ?>
|
27 |
+
<?php foreach( $groups as $group_id => $group ):
|
28 |
$group_id = 'group_' . $group_id;
|
29 |
?>
|
30 |
<div class="rules-group" data-id="<?php echo $group_id; ?>">
|
36 |
<?php if( is_array($group) ): ?>
|
37 |
<table class="spu_table widefat">
|
38 |
<tbody>
|
39 |
+
<?php foreach( $group as $rule_id => $rule ):
|
40 |
$rule_id = 'rule_' . $rule_id;
|
41 |
?>
|
42 |
<tr data-id="<?php echo $rule_id; ?>">
|
43 |
+
<td class="param"><?php
|
44 |
+
|
45 |
$choices = $this->get_rules_choices();
|
46 |
|
47 |
+
// create field
|
48 |
$args = array(
|
49 |
'group_id' => $group_id,
|
50 |
'rule_id' => $rule_id,
|
51 |
'name' => 'spu_rules[' . $group_id . '][' . $rule_id . '][param]',
|
52 |
'value' => $rule['param']
|
53 |
);
|
54 |
+
|
55 |
Spu_Helper::print_select( $args, $choices );
|
56 |
+
|
57 |
+
|
58 |
?></td>
|
59 |
+
<td class="operator"><?php
|
60 |
|
61 |
$args = array(
|
62 |
'group_id' => $group_id,
|
67 |
|
68 |
);
|
69 |
Spu_Helper::ajax_render_operator( $args );
|
70 |
+
|
71 |
?></td>
|
72 |
+
<td class="value"><?php
|
73 |
$args = array(
|
74 |
'group_id' => $group_id,
|
75 |
'rule_id' => $rule_id,
|
77 |
'name' => 'spu_rules[' . $group_id . '][' . $rule_id . '][value]',
|
78 |
'param' => $rule['param'],
|
79 |
);
|
80 |
+
Spu_Helper::ajax_render_rules( $args );
|
81 |
+
|
82 |
?></td>
|
83 |
<td class="add">
|
84 |
<a href="#" class="rules-add-rule button"><?php _e("+ AND", 'popups' ); ?></a>
|
93 |
<?php endif; ?>
|
94 |
</div>
|
95 |
<?php endforeach; ?>
|
96 |
+
|
97 |
<h4 class="rules-or"><span><?php _e("OR", 'popups' ); ?></span></h4>
|
98 |
+
|
99 |
<a class="button rules-add-group" href="#"><?php _e("Add rule group (+ OR)", 'popups' ); ?></a>
|
100 |
+
<p style="margin-top:30px">
|
101 |
+
<?php echo sprintf(__('<strong>Hint</strong>: If you are planning to open the popup with a button, simple leave this set to "All Pages" and change trigger method below to "Manual triggering". Then inside the page you want to open the popup add the following shortcode [spu popup="%s"]Click here[/spu]','spu'),$post->ID);?>
|
102 |
+
</p>
|
103 |
<?php endif; ?>
|
104 |
+
|
105 |
</div>
|
106 |
</td>
|
107 |
</tr>
|
108 |
</tbody>
|
109 |
+
</table>
|
languages/popups-fr_FR .mo
ADDED
Binary file
|
languages/popups-fr_FR .po
ADDED
@@ -0,0 +1,864 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2013 TODO
|
2 |
+
# This file is distributed under the same license as the TODO package.
|
3 |
+
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: 2017-05-20 10:47+0200\n"
|
8 |
+
"PO-Revision-Date: 2017-05-21 18:21+0200\n"
|
9 |
+
"Language-Team: Timersys <info@timersys.com>\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Generator: Poedit 2.0.2\n"
|
14 |
+
"X-Poedit-KeywordsList: __;_e;_n;_x;esc_html_e;esc_html__;esc_attr_e;"
|
15 |
+
"esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2\n"
|
16 |
+
"X-Poedit-Basepath: ..\n"
|
17 |
+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
18 |
+
"Last-Translator: Hubert Desrues <hdesrues@icloud.com>\n"
|
19 |
+
"Language: fr_FR\n"
|
20 |
+
"X-Poedit-SearchPath-0: .\n"
|
21 |
+
|
22 |
+
#: admin/class-social-popup-admin.php:159
|
23 |
+
msgctxt "post type singular name"
|
24 |
+
msgid "Popups"
|
25 |
+
msgstr "Popups"
|
26 |
+
|
27 |
+
#: admin/class-social-popup-admin.php:160
|
28 |
+
msgctxt "admin menu"
|
29 |
+
msgid "Popups"
|
30 |
+
msgstr "Popups"
|
31 |
+
|
32 |
+
#: admin/class-social-popup-admin.php:161
|
33 |
+
msgctxt "add new on admin bar"
|
34 |
+
msgid "Popups"
|
35 |
+
msgstr "Popups"
|
36 |
+
|
37 |
+
#: admin/class-social-popup-admin.php:162
|
38 |
+
msgctxt "Popups"
|
39 |
+
msgid "Add New"
|
40 |
+
msgstr "Ajouter"
|
41 |
+
|
42 |
+
#: admin/class-social-popup-admin.php:163
|
43 |
+
msgid "Add New Popups"
|
44 |
+
msgstr "Ajouter nouveaux Popups"
|
45 |
+
|
46 |
+
#: admin/class-social-popup-admin.php:164
|
47 |
+
msgid "New Popups"
|
48 |
+
msgstr "Nouveau Popups"
|
49 |
+
|
50 |
+
#: admin/class-social-popup-admin.php:165
|
51 |
+
msgid "Edit Popups"
|
52 |
+
msgstr "Éditer"
|
53 |
+
|
54 |
+
#: admin/class-social-popup-admin.php:166
|
55 |
+
msgid "View Popups"
|
56 |
+
msgstr "Visualiser"
|
57 |
+
|
58 |
+
#: admin/class-social-popup-admin.php:167
|
59 |
+
msgid "All Popups"
|
60 |
+
msgstr "Tous les Popups"
|
61 |
+
|
62 |
+
#: admin/class-social-popup-admin.php:168
|
63 |
+
msgid "Search Popups"
|
64 |
+
msgstr "Rechercher des Popups"
|
65 |
+
|
66 |
+
#: admin/class-social-popup-admin.php:169
|
67 |
+
msgid "Parent Popups:"
|
68 |
+
msgstr "Popups parent :"
|
69 |
+
|
70 |
+
#: admin/class-social-popup-admin.php:170
|
71 |
+
msgid "No Popups found."
|
72 |
+
msgstr "Pas de Popups trouvé."
|
73 |
+
|
74 |
+
#: admin/class-social-popup-admin.php:171
|
75 |
+
msgid "No Popups found in Trash."
|
76 |
+
msgstr "Pas de Popups dans la corbeille."
|
77 |
+
|
78 |
+
#: admin/class-social-popup-admin.php:212
|
79 |
+
msgid "Settings"
|
80 |
+
msgstr "Réglages"
|
81 |
+
|
82 |
+
#: admin/class-social-popup-admin.php:260
|
83 |
+
msgid "Popups Premium"
|
84 |
+
msgstr "Popups Premium"
|
85 |
+
|
86 |
+
#: admin/class-social-popup-admin.php:271
|
87 |
+
msgid "PopUp Shortcodes"
|
88 |
+
msgstr "Shortcodes Popups"
|
89 |
+
|
90 |
+
#: admin/class-social-popup-admin.php:280
|
91 |
+
msgid "PopUp Appearance"
|
92 |
+
msgstr "Apparence"
|
93 |
+
|
94 |
+
#: admin/class-social-popup-admin.php:289
|
95 |
+
msgid "PopUp Display Rules"
|
96 |
+
msgstr "Règles d’affichage"
|
97 |
+
|
98 |
+
#: admin/class-social-popup-admin.php:298
|
99 |
+
msgid "Display Options"
|
100 |
+
msgstr "Options de visualisation"
|
101 |
+
|
102 |
+
#: admin/class-social-popup-admin.php:307
|
103 |
+
msgid "Need support?"
|
104 |
+
msgstr "Besoin de support ?"
|
105 |
+
|
106 |
+
#: admin/class-social-popup-admin.php:315
|
107 |
+
msgid "Donate & support"
|
108 |
+
msgstr "Faites un don de soutien"
|
109 |
+
|
110 |
+
#: admin/class-social-popup-admin.php:323
|
111 |
+
msgid "About the developer"
|
112 |
+
msgstr "A propos du développeur"
|
113 |
+
|
114 |
+
#: admin/class-social-popup-admin.php:589
|
115 |
+
#: admin/views/metaboxes/metabox-rules.php:33
|
116 |
+
#: admin/views/metaboxes/metabox-rules.php:106
|
117 |
+
msgid "or"
|
118 |
+
msgstr "ou"
|
119 |
+
|
120 |
+
#: admin/class-social-popup-admin.php:616
|
121 |
+
msgid "Add a Popup"
|
122 |
+
msgstr "Ajouter un Popup"
|
123 |
+
|
124 |
+
#: admin/class-social-popup-admin.php:740
|
125 |
+
msgid "User"
|
126 |
+
msgstr "Utilisateur"
|
127 |
+
|
128 |
+
#: admin/class-social-popup-admin.php:741
|
129 |
+
msgid "User role"
|
130 |
+
msgstr "Rôle de l’utilisateur"
|
131 |
+
|
132 |
+
#: admin/class-social-popup-admin.php:742
|
133 |
+
msgid "User is logged"
|
134 |
+
msgstr "Utilisateur inscrit"
|
135 |
+
|
136 |
+
#: admin/class-social-popup-admin.php:743
|
137 |
+
msgid "User never left a comment"
|
138 |
+
msgstr "Utilisateur n’ayant jamais laissé de commentaire"
|
139 |
+
|
140 |
+
#: admin/class-social-popup-admin.php:744
|
141 |
+
msgid "User came via a search engine"
|
142 |
+
msgstr "Utilisateur venu par un moteur de recherche"
|
143 |
+
|
144 |
+
#: admin/class-social-popup-admin.php:745
|
145 |
+
msgid "User did not arrive via another page on your site"
|
146 |
+
msgstr "Utilisateur ne venant pas d’une autre page de votre site"
|
147 |
+
|
148 |
+
#: admin/class-social-popup-admin.php:747
|
149 |
+
#: admin/class-social-popup-admin.php:748
|
150 |
+
msgid "Post"
|
151 |
+
msgstr "Article"
|
152 |
+
|
153 |
+
#: admin/class-social-popup-admin.php:749
|
154 |
+
msgid "Post ID"
|
155 |
+
msgstr "ID de l’article"
|
156 |
+
|
157 |
+
#: admin/class-social-popup-admin.php:750
|
158 |
+
msgid "Post Type"
|
159 |
+
msgstr "Type d’articles"
|
160 |
+
|
161 |
+
#: admin/class-social-popup-admin.php:751
|
162 |
+
msgid "Post Category"
|
163 |
+
msgstr "Catégorie d’articles"
|
164 |
+
|
165 |
+
#: admin/class-social-popup-admin.php:752
|
166 |
+
msgid "Post Format"
|
167 |
+
msgstr "Format d’articles"
|
168 |
+
|
169 |
+
#: admin/class-social-popup-admin.php:753
|
170 |
+
msgid "Post Status"
|
171 |
+
msgstr "Statut d’articles"
|
172 |
+
|
173 |
+
#: admin/class-social-popup-admin.php:754
|
174 |
+
msgid "Post Taxonomy"
|
175 |
+
msgstr "Taxynomie d’articles"
|
176 |
+
|
177 |
+
#: admin/class-social-popup-admin.php:756
|
178 |
+
#: admin/class-social-popup-admin.php:757
|
179 |
+
msgid "Page"
|
180 |
+
msgstr "Page"
|
181 |
+
|
182 |
+
#: admin/class-social-popup-admin.php:758
|
183 |
+
msgid "Page Type"
|
184 |
+
msgstr "Type de pages"
|
185 |
+
|
186 |
+
#: admin/class-social-popup-admin.php:759
|
187 |
+
msgid "Page Parent"
|
188 |
+
msgstr "Parent de pages"
|
189 |
+
|
190 |
+
#: admin/class-social-popup-admin.php:760
|
191 |
+
msgid "Page Template"
|
192 |
+
msgstr "Modèle de pages"
|
193 |
+
|
194 |
+
#: admin/class-social-popup-admin.php:762
|
195 |
+
msgid "Other"
|
196 |
+
msgstr "Autres"
|
197 |
+
|
198 |
+
#: admin/class-social-popup-admin.php:763
|
199 |
+
msgid "Referrer"
|
200 |
+
msgstr "Référant"
|
201 |
+
|
202 |
+
#: admin/class-social-popup-admin.php:764
|
203 |
+
msgid "Mobile Phone"
|
204 |
+
msgstr "Téléphone mobile"
|
205 |
+
|
206 |
+
#: admin/class-social-popup-admin.php:765
|
207 |
+
msgid "Tablet"
|
208 |
+
msgstr "Tablette"
|
209 |
+
|
210 |
+
#: admin/class-social-popup-admin.php:813
|
211 |
+
msgid "ID"
|
212 |
+
msgstr "ID"
|
213 |
+
|
214 |
+
#: admin/includes/class-spu-notices.php:30
|
215 |
+
#, php-format
|
216 |
+
msgid ""
|
217 |
+
"We noticed that you have been using our plugin for a while and we would like "
|
218 |
+
"to ask you a little favour. If you are happy with it and can take a minute "
|
219 |
+
"please <a href=\"%s\" target=\"_blank\">leave a nice review</a> on "
|
220 |
+
"WordPress. It will be a tremendous help for us!"
|
221 |
+
msgstr ""
|
222 |
+
"Nous avons remarqué que vous avez utilisé notre plugin pendant un certain "
|
223 |
+
"temps et nous vous demandons une faveur. Si vous êtes satisfait de ce plugin "
|
224 |
+
"et si vous avez une minute, veuillez <a href=\"%s\" target=\"_blank\"> "
|
225 |
+
"laisser une bonne critique </a> sur WordPress. Ce sera une aide formidable "
|
226 |
+
"pour nous!"
|
227 |
+
|
228 |
+
#: admin/includes/class-spu-notices.php:32
|
229 |
+
#, php-format
|
230 |
+
msgid "<a href=\"%s\" target=\"_blank\">Leave a nice review</a>"
|
231 |
+
msgstr "<a href=\"%s\" target=\"_blank\">Laissez une bonne appréciation</a>"
|
232 |
+
|
233 |
+
#: admin/includes/class-spu-notices.php:33
|
234 |
+
#, php-format
|
235 |
+
msgid "<a href=\"%s\">No, thanks</a>"
|
236 |
+
msgstr "<a href=\"%s\">Non, merci</a>"
|
237 |
+
|
238 |
+
#: admin/views/metaboxes/metabox-appearance.php:10
|
239 |
+
msgid "Background opacity"
|
240 |
+
msgstr "Opacité du fond"
|
241 |
+
|
242 |
+
#: admin/views/metaboxes/metabox-appearance.php:12
|
243 |
+
msgid "Leave at 0 for no background. Max value is 1"
|
244 |
+
msgstr "Mettre 0 pour aucune opacité. Valeur maximale 1"
|
245 |
+
|
246 |
+
#: admin/views/metaboxes/metabox-appearance.php:18
|
247 |
+
msgid "Background color"
|
248 |
+
msgstr "Couleur du fond"
|
249 |
+
|
250 |
+
#: admin/views/metaboxes/metabox-appearance.php:22
|
251 |
+
msgid "Text color"
|
252 |
+
msgstr "Couleur du texte"
|
253 |
+
|
254 |
+
#: admin/views/metaboxes/metabox-appearance.php:26
|
255 |
+
msgid "Box width"
|
256 |
+
msgstr "Largeur du popup"
|
257 |
+
|
258 |
+
#: admin/views/metaboxes/metabox-appearance.php:32
|
259 |
+
msgid "Border color"
|
260 |
+
msgstr "Couleur du cadre"
|
261 |
+
|
262 |
+
#: admin/views/metaboxes/metabox-appearance.php:36
|
263 |
+
msgid "Border width"
|
264 |
+
msgstr "Épaisseur du cadre"
|
265 |
+
|
266 |
+
#: admin/views/metaboxes/metabox-donate.php:6
|
267 |
+
msgid "If you like this plugin, consider supporting it by donating."
|
268 |
+
msgstr "Si vous aimez ce plugin, manifestez-le par une donation."
|
269 |
+
|
270 |
+
#: admin/views/metaboxes/metabox-donate.php:8
|
271 |
+
msgid "Donate with PayPal"
|
272 |
+
msgstr "Donnez avec PayPal"
|
273 |
+
|
274 |
+
#: admin/views/metaboxes/metabox-donate.php:10
|
275 |
+
msgid "Some other ways to support this plugin"
|
276 |
+
msgstr "Quelques autres façons de supporter ce plugin"
|
277 |
+
|
278 |
+
#: admin/views/metaboxes/metabox-donate.php:12
|
279 |
+
msgid "Leave a ★★★★★ review on WordPress.org"
|
280 |
+
msgstr ""
|
281 |
+
"Laissez une ★★★★★ appréciation sur WordPress."
|
282 |
+
"org"
|
283 |
+
|
284 |
+
#: admin/views/metaboxes/metabox-donate.php:13
|
285 |
+
msgid "Write about Popups on your blog"
|
286 |
+
msgstr "Ecrivez un article à propos de Popups dans votre blog"
|
287 |
+
|
288 |
+
#: admin/views/metaboxes/metabox-donate.php:14
|
289 |
+
msgid "Tweet about Popups"
|
290 |
+
msgstr "Tweetez à propos de Popups"
|
291 |
+
|
292 |
+
#: admin/views/metaboxes/metabox-donate.php:15
|
293 |
+
msgid "Vote \"works\" on the WordPress.org plugin page"
|
294 |
+
msgstr "Votez « works » sur la page plugin de WordPress.org"
|
295 |
+
|
296 |
+
#: admin/views/metaboxes/metabox-help.php:6
|
297 |
+
msgid ""
|
298 |
+
"You have some social shortcodes to use that will print a Facebook like, a "
|
299 |
+
"Google+ Follow and a Twitter follow. Check the available options and "
|
300 |
+
"<strong>configure them with your social accounts</strong>:"
|
301 |
+
msgstr ""
|
302 |
+
"Vous avez des shortcodes pour imprimer des « like » dans Facebook, des "
|
303 |
+
"« Follow » dans Google+ ou dans Twitter. Vérifiez les options disponibles et "
|
304 |
+
"<strong> configurez-les avec vos comptes sociaux </strong> :"
|
305 |
+
|
306 |
+
#: admin/views/metaboxes/metabox-help.php:8
|
307 |
+
msgid "Facebook Page"
|
308 |
+
msgstr "Page Facebook"
|
309 |
+
|
310 |
+
#: admin/views/metaboxes/metabox-help.php:12
|
311 |
+
msgid "View Facebook Page Options"
|
312 |
+
msgstr "Voir les options pour les pages Facebook"
|
313 |
+
|
314 |
+
#: admin/views/metaboxes/metabox-help.php:14
|
315 |
+
#: admin/views/metaboxes/metabox-help.php:27
|
316 |
+
msgid "Your Facebook page url"
|
317 |
+
msgstr "L’url de votre page Facebook"
|
318 |
+
|
319 |
+
#: admin/views/metaboxes/metabox-help.php:15
|
320 |
+
msgid "Your page name"
|
321 |
+
msgstr "Le nom de votre page"
|
322 |
+
|
323 |
+
#: admin/views/metaboxes/metabox-help.php:16
|
324 |
+
msgid "true|false <b>Default value:</b> true"
|
325 |
+
msgstr "vrai|faux <b>valeur par défaut :</b> vrai"
|
326 |
+
|
327 |
+
#: admin/views/metaboxes/metabox-help.php:17
|
328 |
+
msgid "true|false <b>Default value:</b> false"
|
329 |
+
msgstr "vrai|faux <b>valeur par défaut :</b> faux"
|
330 |
+
|
331 |
+
#: admin/views/metaboxes/metabox-help.php:18
|
332 |
+
msgid "number <b>Default value:</b> 500"
|
333 |
+
msgstr "nombre <b>Valeur par défaut :</b> 500"
|
334 |
+
|
335 |
+
#: admin/views/metaboxes/metabox-help.php:21
|
336 |
+
msgid "Facebook Button"
|
337 |
+
msgstr "Bouton Facebook"
|
338 |
+
|
339 |
+
#: admin/views/metaboxes/metabox-help.php:25
|
340 |
+
msgid "View Facebook Options"
|
341 |
+
msgstr "Voir les options Facebook"
|
342 |
+
|
343 |
+
#: admin/views/metaboxes/metabox-help.php:28
|
344 |
+
msgid "standard, box_count, button <b>Default value:</b> button_count"
|
345 |
+
msgstr "standard, box_count, bouton <b> Valeur par défaut: </b> button_count"
|
346 |
+
|
347 |
+
#: admin/views/metaboxes/metabox-help.php:29
|
348 |
+
#: admin/views/metaboxes/metabox-help.php:30
|
349 |
+
msgid "true <b>Default value:</b> false"
|
350 |
+
msgstr "vrai <b>Valeur par défaut :</b> faux"
|
351 |
+
|
352 |
+
#: admin/views/metaboxes/metabox-help.php:31
|
353 |
+
msgid "recommend <b>Default value:</b> like"
|
354 |
+
msgstr "recommander <b>Valeur par défaut:</b> aimer"
|
355 |
+
|
356 |
+
#: admin/views/metaboxes/metabox-help.php:32
|
357 |
+
msgid "number <b>Default value:</b>"
|
358 |
+
msgstr "nombre <b>Valeur par défaut :</b>"
|
359 |
+
|
360 |
+
#: admin/views/metaboxes/metabox-help.php:34
|
361 |
+
msgid "Google+ Button"
|
362 |
+
msgstr "Bouton Google+"
|
363 |
+
|
364 |
+
#: admin/views/metaboxes/metabox-help.php:38
|
365 |
+
msgid "View Google+ Options"
|
366 |
+
msgstr "Voir les options Google+"
|
367 |
+
|
368 |
+
#: admin/views/metaboxes/metabox-help.php:40
|
369 |
+
msgid "Your Google+ url"
|
370 |
+
msgstr "Votre url Google+"
|
371 |
+
|
372 |
+
#: admin/views/metaboxes/metabox-help.php:41
|
373 |
+
msgid "small, standard, tall <b>Default value:</b> medium"
|
374 |
+
msgstr "petit, standard, grand <b>Valeur par défaut:</b> médium"
|
375 |
+
|
376 |
+
#: admin/views/metaboxes/metabox-help.php:42
|
377 |
+
msgid "inline, none <b>Default value:</b> bubble"
|
378 |
+
msgstr "en ligne, non <b>Valeur par défaut :</b> bulle"
|
379 |
+
|
380 |
+
#: admin/views/metaboxes/metabox-help.php:44
|
381 |
+
msgid "Twitter Button"
|
382 |
+
msgstr "Bouton twitter"
|
383 |
+
|
384 |
+
#: admin/views/metaboxes/metabox-help.php:48
|
385 |
+
msgid "View Twitter Options"
|
386 |
+
msgstr "Voir les options twitter"
|
387 |
+
|
388 |
+
#: admin/views/metaboxes/metabox-help.php:50
|
389 |
+
msgid "Your Twitter user <b>Default chifliiiii</b>"
|
390 |
+
msgstr "Votre nom d’utilisateur Twitter <b>Par défaut chifliiiii</b>"
|
391 |
+
|
392 |
+
#: admin/views/metaboxes/metabox-help.php:51
|
393 |
+
msgid "false <b>Default value:</b> true"
|
394 |
+
msgstr "faux <b>valeur par défaut:</b> vrai"
|
395 |
+
|
396 |
+
#: admin/views/metaboxes/metabox-help.php:52
|
397 |
+
msgid "large <b>Default value:</b> \"\""
|
398 |
+
msgstr "grans <b>Valeur par défaut :</b> \"\""
|
399 |
+
|
400 |
+
#: admin/views/metaboxes/metabox-help.php:55
|
401 |
+
msgid "Other available Shortcodes:"
|
402 |
+
msgstr "Autres Shortcodes utilisables :"
|
403 |
+
|
404 |
+
#: admin/views/metaboxes/metabox-help.php:56
|
405 |
+
msgid "Close Button"
|
406 |
+
msgstr "Bouton de fermeture"
|
407 |
+
|
408 |
+
#: admin/views/metaboxes/metabox-help.php:60
|
409 |
+
msgid "View Close shortcode Options"
|
410 |
+
msgstr "Voir les options shortcode de fermeture"
|
411 |
+
|
412 |
+
#: admin/views/metaboxes/metabox-help.php:62
|
413 |
+
msgid "Pass a custom class to style your button"
|
414 |
+
msgstr "Envoie une classe personnalisée pour styler votre bouton"
|
415 |
+
|
416 |
+
#: admin/views/metaboxes/metabox-help.php:63
|
417 |
+
msgid "Button label - <b>Default value:</b> Close"
|
418 |
+
msgstr "Nom du bouton - <b>valeur par défaut :</b> Fermer"
|
419 |
+
|
420 |
+
#: admin/views/metaboxes/metabox-help.php:64
|
421 |
+
msgid "left, right, center, none - <b>Default value:</b> center"
|
422 |
+
msgstr "gauche, droite, centré, aucun - <b>valeur par défaut:</b> centré"
|
423 |
+
|
424 |
+
#: admin/views/metaboxes/metabox-links.php:6
|
425 |
+
msgid "My name is"
|
426 |
+
msgstr "Mon nom est"
|
427 |
+
|
428 |
+
#: admin/views/metaboxes/metabox-links.php:6
|
429 |
+
msgid "I develop WordPress plugins and themes."
|
430 |
+
msgstr "Je développe des thèmes et des plugins pour WordPress."
|
431 |
+
|
432 |
+
#: admin/views/metaboxes/metabox-links.php:7
|
433 |
+
#, php-format
|
434 |
+
msgid ""
|
435 |
+
"Take a look at my <a href=\"%s\">site</a> to see my other plugins or hire "
|
436 |
+
"me. Subscribe to get updates!"
|
437 |
+
msgstr ""
|
438 |
+
"Jetez un coup d’œil à mon <a href=\"%s\">site</a> pour découvrir mes autres "
|
439 |
+
"plugins ou me passer une commande. Inscrivez-vous pour obtenir des mises à "
|
440 |
+
"jour !"
|
441 |
+
|
442 |
+
#: admin/views/metaboxes/metabox-links.php:8
|
443 |
+
msgid "Other plugins I built:"
|
444 |
+
msgstr "Mes autres plugins :"
|
445 |
+
|
446 |
+
#: admin/views/metaboxes/metabox-links.php:10
|
447 |
+
msgid "Install multiple plugins and create collections"
|
448 |
+
msgstr "Installez de multiples plugins et créez des ensembles"
|
449 |
+
|
450 |
+
#: admin/views/metaboxes/metabox-links.php:11
|
451 |
+
msgid "Geotarget your content"
|
452 |
+
msgstr "Ciblez géographiquement votre contenu"
|
453 |
+
|
454 |
+
#: admin/views/metaboxes/metabox-links.php:12
|
455 |
+
msgid "Invite your network friends and import contacts"
|
456 |
+
msgstr "Invitez vos amis et vos contacts importés"
|
457 |
+
|
458 |
+
#: admin/views/metaboxes/metabox-options.php:9
|
459 |
+
msgid "Box Position"
|
460 |
+
msgstr "Position du popup"
|
461 |
+
|
462 |
+
#: admin/views/metaboxes/metabox-options.php:12
|
463 |
+
msgid "Centered"
|
464 |
+
msgstr "Centré"
|
465 |
+
|
466 |
+
#: admin/views/metaboxes/metabox-options.php:13
|
467 |
+
msgid "Top Left"
|
468 |
+
msgstr "En haut à gauche"
|
469 |
+
|
470 |
+
#: admin/views/metaboxes/metabox-options.php:14
|
471 |
+
msgid "Top Right"
|
472 |
+
msgstr "En haut à droite"
|
473 |
+
|
474 |
+
#: admin/views/metaboxes/metabox-options.php:15
|
475 |
+
msgid "Bottom Left"
|
476 |
+
msgstr "En bas à gauche"
|
477 |
+
|
478 |
+
#: admin/views/metaboxes/metabox-options.php:16
|
479 |
+
msgid "Bottom Right"
|
480 |
+
msgstr "En bas à droite"
|
481 |
+
|
482 |
+
#: admin/views/metaboxes/metabox-options.php:23
|
483 |
+
msgid "Trigger action"
|
484 |
+
msgstr "Action de déclenchement"
|
485 |
+
|
486 |
+
#: admin/views/metaboxes/metabox-options.php:27
|
487 |
+
msgid "seconds after page load"
|
488 |
+
msgstr "secondes après chargement de la page"
|
489 |
+
|
490 |
+
#: admin/views/metaboxes/metabox-options.php:28
|
491 |
+
msgid "of page height"
|
492 |
+
msgstr "de hauteur de page"
|
493 |
+
|
494 |
+
#: admin/views/metaboxes/metabox-options.php:38
|
495 |
+
msgid "Auto-hide?"
|
496 |
+
msgstr "Auto-disparition ?"
|
497 |
+
|
498 |
+
#: admin/views/metaboxes/metabox-options.php:40
|
499 |
+
#: admin/views/metaboxes/metabox-options.php:68
|
500 |
+
#: admin/views/metaboxes/metabox-options.php:76
|
501 |
+
#: admin/views/metaboxes/metabox-options.php:84
|
502 |
+
msgid "Yes"
|
503 |
+
msgstr "Oui"
|
504 |
+
|
505 |
+
#: admin/views/metaboxes/metabox-options.php:41
|
506 |
+
#: admin/views/metaboxes/metabox-options.php:69
|
507 |
+
#: admin/views/metaboxes/metabox-options.php:77
|
508 |
+
#: admin/views/metaboxes/metabox-options.php:85
|
509 |
+
msgid "No"
|
510 |
+
msgstr "Non"
|
511 |
+
|
512 |
+
#: admin/views/metaboxes/metabox-options.php:42
|
513 |
+
msgid "Hide box again when visitors scroll back up?"
|
514 |
+
msgstr "Cacher le popup quand les visiteurs provoquent un défilement ?"
|
515 |
+
|
516 |
+
#: admin/views/metaboxes/metabox-options.php:46
|
517 |
+
msgid "Animation"
|
518 |
+
msgstr "Animation"
|
519 |
+
|
520 |
+
#: admin/views/metaboxes/metabox-options.php:49
|
521 |
+
msgid "Fade In"
|
522 |
+
msgstr "Par fondu"
|
523 |
+
|
524 |
+
#: admin/views/metaboxes/metabox-options.php:50
|
525 |
+
msgid "Slide In"
|
526 |
+
msgstr "Par glissement"
|
527 |
+
|
528 |
+
#: admin/views/metaboxes/metabox-options.php:53
|
529 |
+
msgid "Slide will only apply when popup is on the corners"
|
530 |
+
msgstr "Le glissement ne se fait que si le popup est dans un coin"
|
531 |
+
|
532 |
+
#: admin/views/metaboxes/metabox-options.php:58
|
533 |
+
msgid "Cookie expiration days"
|
534 |
+
msgstr "Durée du cookie en jours"
|
535 |
+
|
536 |
+
#: admin/views/metaboxes/metabox-options.php:61
|
537 |
+
msgid "After closing the box, how many days should it stay hidden?"
|
538 |
+
msgstr ""
|
539 |
+
"Après fermeture du popup pendant combien de jours ne doit-il pas reparaître ?"
|
540 |
+
|
541 |
+
#: admin/views/metaboxes/metabox-options.php:66
|
542 |
+
msgid "Enable test mode?"
|
543 |
+
msgstr "Activer le mode test ?"
|
544 |
+
|
545 |
+
#: admin/views/metaboxes/metabox-options.php:70
|
546 |
+
msgid ""
|
547 |
+
"If test mode is enabled, the box will show up regardless of whether a cookie "
|
548 |
+
"has been set. (To admins only)"
|
549 |
+
msgstr ""
|
550 |
+
"Si le mode test est activé, le popup ne tiendra pas compte des consignes du "
|
551 |
+
"cookie. (Administrateurs seulement)"
|
552 |
+
|
553 |
+
#: admin/views/metaboxes/metabox-options.php:74
|
554 |
+
msgid "Close on conversion?"
|
555 |
+
msgstr "Fermer sur conversion ?"
|
556 |
+
|
557 |
+
#: admin/views/metaboxes/metabox-options.php:78
|
558 |
+
msgid ""
|
559 |
+
"If you have a form or social shortcode, by default popup will close on "
|
560 |
+
"submission/conversion"
|
561 |
+
msgstr ""
|
562 |
+
"Si vous avez un formulaire ou un shortcode de réseau social, par défaut le "
|
563 |
+
"popup se fermera sur soumission/conversion"
|
564 |
+
|
565 |
+
#: admin/views/metaboxes/metabox-options.php:82
|
566 |
+
msgid "Show powered by link?"
|
567 |
+
msgstr "Afficher un lien « powered by » ?"
|
568 |
+
|
569 |
+
#: admin/views/metaboxes/metabox-options.php:86
|
570 |
+
#, php-format
|
571 |
+
msgid ""
|
572 |
+
"Shows a \"powered by\" link below your popup. If your affiliate link is set "
|
573 |
+
"in the <a href=\"%s\">settings</a>, it will be used."
|
574 |
+
msgstr ""
|
575 |
+
"Afficher un lien « Powered by » sous votre popup. Si vous êtes affilié le "
|
576 |
+
"lien est mis dans <a href=\"%s\">réglages</a>, pour être utilisé."
|
577 |
+
|
578 |
+
#: admin/views/metaboxes/metabox-premium.php:16
|
579 |
+
msgid ""
|
580 |
+
"Take the best WordPress Popups plugin to the next level with Popups Premium "
|
581 |
+
"extension."
|
582 |
+
msgstr ""
|
583 |
+
"Avec l’extension Popups Premium pour WordPress choisissez le meilleur plugin."
|
584 |
+
|
585 |
+
#: admin/views/metaboxes/metabox-premium.php:17
|
586 |
+
msgid "Popups Premium Features:"
|
587 |
+
msgstr "Fonctionnalités de Popups Premium :"
|
588 |
+
|
589 |
+
#: admin/views/metaboxes/metabox-premium.php:19
|
590 |
+
msgid "Beautiful optin forms for popular mail providers"
|
591 |
+
msgstr ""
|
592 |
+
"Élégants formulaires de souscription pour les plus populaires distributeurs "
|
593 |
+
"de mails"
|
594 |
+
|
595 |
+
#: admin/views/metaboxes/metabox-premium.php:20
|
596 |
+
msgid "Currently supporting MailChimp, Aweber, Postmatic, Mailpoet"
|
597 |
+
msgstr "Supporte MailChimp, Aweber, Postmatic, Mailpoet"
|
598 |
+
|
599 |
+
#: admin/views/metaboxes/metabox-premium.php:21
|
600 |
+
msgid ""
|
601 |
+
"Track impressions and Conversions of social likes and forms submissions like "
|
602 |
+
"Contact Form 7, Gravity forms, etc"
|
603 |
+
msgstr ""
|
604 |
+
"Enregistre les impressions et conversions à partir des réseaux sociaux ou "
|
605 |
+
"des formulaires de soumission comme Contac Form 7, Gravity Forms etc"
|
606 |
+
|
607 |
+
#: admin/views/metaboxes/metabox-premium.php:22
|
608 |
+
msgid "Track impressions and Conversions also in Google Analytics"
|
609 |
+
msgstr "Enregistre aussi les impressions et conversion dans Google Analytics"
|
610 |
+
|
611 |
+
#: admin/views/metaboxes/metabox-premium.php:23
|
612 |
+
#: admin/views/metaboxes/metabox-premium.php:25
|
613 |
+
msgid "Exit Intent technology"
|
614 |
+
msgstr ""
|
615 |
+
"Intégration de « Exit Intent technology » pour suivre les mouvements de la "
|
616 |
+
"souris de l’utilisateur et prévoir sa sortie"
|
617 |
+
|
618 |
+
#: admin/views/metaboxes/metabox-premium.php:24
|
619 |
+
msgid "8 New animations effects"
|
620 |
+
msgstr "8 nouvelles animations"
|
621 |
+
|
622 |
+
#: admin/views/metaboxes/metabox-premium.php:26
|
623 |
+
msgid "New trigger methods"
|
624 |
+
msgstr "Nouvelles méthodes de déclenchement"
|
625 |
+
|
626 |
+
#: admin/views/metaboxes/metabox-premium.php:27
|
627 |
+
msgid "Timer for auto closing"
|
628 |
+
msgstr "Minuteur pour fermeture automatique"
|
629 |
+
|
630 |
+
#: admin/views/metaboxes/metabox-premium.php:28
|
631 |
+
msgid "Ability to disable close button"
|
632 |
+
msgstr "Possibilité de désactiver le bouton de fermeture"
|
633 |
+
|
634 |
+
#: admin/views/metaboxes/metabox-premium.php:29
|
635 |
+
msgid ""
|
636 |
+
"Ability to disable Advanced close methods like esc or clicking outside of "
|
637 |
+
"the popup"
|
638 |
+
msgstr ""
|
639 |
+
"Possibilité de désactiver les méthodes avances de fermeture comme esc ou "
|
640 |
+
"clic à l’extérieur du popup"
|
641 |
+
|
642 |
+
#: admin/views/metaboxes/metabox-premium.php:30
|
643 |
+
msgid "Premium support"
|
644 |
+
msgstr "Support Premium"
|
645 |
+
|
646 |
+
#: admin/views/metaboxes/metabox-premium.php:34
|
647 |
+
msgid "Buy Now!"
|
648 |
+
msgstr "Achetez maintenant !"
|
649 |
+
|
650 |
+
#: admin/views/metaboxes/metabox-rules.php:19
|
651 |
+
msgid "Rules"
|
652 |
+
msgstr "Règles"
|
653 |
+
|
654 |
+
#: admin/views/metaboxes/metabox-rules.php:20
|
655 |
+
msgid "Create a set of rules to determine where the popup will show"
|
656 |
+
msgstr ""
|
657 |
+
"Créez un ensemble de règles pour déterminer quand le popup doit apparaître"
|
658 |
+
|
659 |
+
#: admin/views/metaboxes/metabox-rules.php:31
|
660 |
+
msgid "Show this popup if"
|
661 |
+
msgstr "Affichez le popup si"
|
662 |
+
|
663 |
+
#: admin/views/metaboxes/metabox-rules.php:61
|
664 |
+
msgid "is equal to"
|
665 |
+
msgstr "est égal à"
|
666 |
+
|
667 |
+
#: admin/views/metaboxes/metabox-rules.php:62
|
668 |
+
msgid "is not equal to"
|
669 |
+
msgstr "est différent de"
|
670 |
+
|
671 |
+
#: admin/views/metaboxes/metabox-rules.php:93
|
672 |
+
msgid "and"
|
673 |
+
msgstr "et"
|
674 |
+
|
675 |
+
#: admin/views/metaboxes/metabox-rules.php:108
|
676 |
+
msgid "Add rule group"
|
677 |
+
msgstr "Ajoutez une règle"
|
678 |
+
|
679 |
+
#: admin/views/metaboxes/metabox-support.php:6
|
680 |
+
#, php-format
|
681 |
+
msgid "You are using Popups plugin v%s"
|
682 |
+
msgstr "Vous utilisez la version v%s du plugin Popups"
|
683 |
+
|
684 |
+
#: admin/views/metaboxes/metabox-support.php:7
|
685 |
+
#, php-format
|
686 |
+
msgid ""
|
687 |
+
"If you need support please go to the WordPress.org <a href=\"%s\">support "
|
688 |
+
"forums</a>"
|
689 |
+
msgstr ""
|
690 |
+
"Si vous avez besoin d’une aide, d’un support, rendez-vous sur le <a href=\"%s"
|
691 |
+
"\">forum WordPress.org</a>"
|
692 |
+
|
693 |
+
#: admin/views/settings-page.php:17
|
694 |
+
msgid "Affiliate link"
|
695 |
+
msgstr "Lien affilié"
|
696 |
+
|
697 |
+
#: admin/views/settings-page.php:20
|
698 |
+
#, php-format
|
699 |
+
msgid ""
|
700 |
+
"You can earn money by promoting the plugin! Join <a href=\"%s\">our "
|
701 |
+
"affiliate program</a> and paste your affiliate link here to earn 35% in "
|
702 |
+
"commissions . Once entered, it will replace the default \"Powered by\" on "
|
703 |
+
"the popups."
|
704 |
+
msgstr ""
|
705 |
+
"Monétisez votre site en faisant la promotion du plugin ! Rejoignez <a "
|
706 |
+
"href=« %s »>notre programme d’affiliation</a> et collez votre lien d’affilié "
|
707 |
+
"ici pour percevoir 35% par commission . Une fois enregistrer il "
|
708 |
+
"remplacera la notation par défaut « Powered by » dans les popups."
|
709 |
+
|
710 |
+
#: admin/views/settings-page.php:24
|
711 |
+
msgid "Ajax mode?"
|
712 |
+
msgstr "Mode Ajax ?"
|
713 |
+
|
714 |
+
#: admin/views/settings-page.php:27
|
715 |
+
msgid ""
|
716 |
+
"Load popups using ajax. Compatible with cache plugins, but might not work "
|
717 |
+
"with all plugins"
|
718 |
+
msgstr ""
|
719 |
+
"Utilise Ajax pour charger les popups. Compatible avec les plugins de cache, "
|
720 |
+
"mais peut ne pas fonctionner avec tous les plugins"
|
721 |
+
|
722 |
+
#: admin/views/settings-page.php:32
|
723 |
+
msgid "Enable Debug mode?"
|
724 |
+
msgstr "Activer mode de débogage ?"
|
725 |
+
|
726 |
+
#: admin/views/settings-page.php:35
|
727 |
+
msgid "Will use uncompressed js"
|
728 |
+
msgstr "Utilisera des js non compressés"
|
729 |
+
|
730 |
+
#: admin/views/settings-page.php:40
|
731 |
+
msgid "Enable safe mode?"
|
732 |
+
msgstr "Activer mode sans échec ?"
|
733 |
+
|
734 |
+
#: admin/views/settings-page.php:43
|
735 |
+
msgid "Will move all popups to top of the screen."
|
736 |
+
msgstr "Ouvrira tous les popups en haut de l’écran."
|
737 |
+
|
738 |
+
#: admin/views/settings-page.php:48
|
739 |
+
msgid "Remove shortcodes style"
|
740 |
+
msgstr "Supprimer le style des shortcodes"
|
741 |
+
|
742 |
+
#: admin/views/settings-page.php:51
|
743 |
+
msgid ""
|
744 |
+
"By default the plugin will apply some style to shortcodes. Check here if you "
|
745 |
+
"want to manually style them"
|
746 |
+
msgstr ""
|
747 |
+
"Par défaut le plugin applique un style aux shortcodes. Cochez ici si vous "
|
748 |
+
"voulez les styler manuellement"
|
749 |
+
|
750 |
+
#: admin/views/settings-page.php:56
|
751 |
+
msgid "Unload Facebook javascript"
|
752 |
+
msgstr "Ne pas charger le javascript de Facebook"
|
753 |
+
|
754 |
+
#: admin/views/settings-page.php:59
|
755 |
+
msgid "If you use your own Facebook script, check this"
|
756 |
+
msgstr "Si vous utilisez votre propre script Facebook, cochez ici"
|
757 |
+
|
758 |
+
#: admin/views/settings-page.php:64
|
759 |
+
msgid "Unload Google javascript"
|
760 |
+
msgstr "Ne pas charger le javascript de Google"
|
761 |
+
|
762 |
+
#: admin/views/settings-page.php:67
|
763 |
+
msgid "If you use your own Google script, check this"
|
764 |
+
msgstr "Si vous utilisez votre propre script Google, cochez ici"
|
765 |
+
|
766 |
+
#: admin/views/settings-page.php:72
|
767 |
+
msgid "Unload Twitter javascript"
|
768 |
+
msgstr "Ne pas charger le javascript de Twitter"
|
769 |
+
|
770 |
+
#: admin/views/settings-page.php:75
|
771 |
+
msgid "If you use your own Twitter script, check this"
|
772 |
+
msgstr "Si vous utilisez votre propre script pour Twitter, cochez ici"
|
773 |
+
|
774 |
+
#: admin/views/settings-page.php:82
|
775 |
+
msgid "Delete all data on Uninstall"
|
776 |
+
msgstr "Effacez toutes les données en cas de désinstallation"
|
777 |
+
|
778 |
+
#: admin/views/settings-page.php:85
|
779 |
+
msgid ""
|
780 |
+
"When you uninstall the plugin all popups, settings and stats will be deleted "
|
781 |
+
"from your db"
|
782 |
+
msgstr ""
|
783 |
+
"Quand vous désinstallez le plugin tous les popups, les réglages et les "
|
784 |
+
"statistiques sont effacées de la base de données"
|
785 |
+
|
786 |
+
#: admin/views/settings-page.php:89
|
787 |
+
msgid "Save settings"
|
788 |
+
msgstr "Sauvegarder les réglages"
|
789 |
+
|
790 |
+
#: includes/class-spu-helper.php:131
|
791 |
+
msgid "All Pages"
|
792 |
+
msgstr "Toutes les pages"
|
793 |
+
|
794 |
+
#: includes/class-spu-helper.php:132
|
795 |
+
msgid "Front Page"
|
796 |
+
msgstr "Page de garde"
|
797 |
+
|
798 |
+
#: includes/class-spu-helper.php:133
|
799 |
+
msgid "Posts Page"
|
800 |
+
msgstr "Page des articles"
|
801 |
+
|
802 |
+
#: includes/class-spu-helper.php:134
|
803 |
+
msgid "Category Page"
|
804 |
+
msgstr "Page catégories"
|
805 |
+
|
806 |
+
#: includes/class-spu-helper.php:135
|
807 |
+
msgid "Search Page"
|
808 |
+
msgstr "Page recherche"
|
809 |
+
|
810 |
+
#: includes/class-spu-helper.php:136
|
811 |
+
msgid "Archives Page"
|
812 |
+
msgstr "Page archives"
|
813 |
+
|
814 |
+
#: includes/class-spu-helper.php:137
|
815 |
+
msgid "Top Level Page (parent of 0)"
|
816 |
+
msgstr "Page de premier niveau (parent de 0)"
|
817 |
+
|
818 |
+
#: includes/class-spu-helper.php:138
|
819 |
+
msgid "Parent Page (has children)"
|
820 |
+
msgstr "Page parent (a un enfant)"
|
821 |
+
|
822 |
+
#: includes/class-spu-helper.php:139
|
823 |
+
msgid "Child Page (has parent)"
|
824 |
+
msgstr "Page enfant (a un parent)"
|
825 |
+
|
826 |
+
#: includes/class-spu-helper.php:147
|
827 |
+
msgid "Default Template"
|
828 |
+
msgstr "Modèle par défaut"
|
829 |
+
|
830 |
+
#: includes/class-spu-helper.php:220
|
831 |
+
msgid "Publish"
|
832 |
+
msgstr "Publier"
|
833 |
+
|
834 |
+
#: includes/class-spu-helper.php:221
|
835 |
+
msgid "Pending Review"
|
836 |
+
msgstr "Révision en attente"
|
837 |
+
|
838 |
+
#: includes/class-spu-helper.php:222
|
839 |
+
msgid "Draft"
|
840 |
+
msgstr "Brouillon"
|
841 |
+
|
842 |
+
#: includes/class-spu-helper.php:223
|
843 |
+
msgid "Future"
|
844 |
+
msgstr "Avenir"
|
845 |
+
|
846 |
+
#: includes/class-spu-helper.php:224
|
847 |
+
msgid "Private"
|
848 |
+
msgstr "Privé"
|
849 |
+
|
850 |
+
#: includes/class-spu-helper.php:225
|
851 |
+
msgid "Revision"
|
852 |
+
msgstr "Révision"
|
853 |
+
|
854 |
+
#: includes/class-spu-helper.php:226
|
855 |
+
msgid "Trash"
|
856 |
+
msgstr "Corbeille"
|
857 |
+
|
858 |
+
#: includes/class-spu-helper.php:239
|
859 |
+
msgid "Super Admin"
|
860 |
+
msgstr "Super Administrateur"
|
861 |
+
|
862 |
+
#: includes/class-spu-helper.php:259
|
863 |
+
msgid "True"
|
864 |
+
msgstr "Vrai"
|
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.7.
|
15 |
* Description: Most complete free Popups plugin, scroll triggered popups, compatible with social networks, Gravity Forms, Ninja Forms, Contact form 7, Mailpoet, Mailchimp for WP, Postmatic, etc
|
16 |
* Author: Damian Logghe
|
17 |
* Author URI: https://timersys.com
|
@@ -83,7 +83,7 @@ pop_fs()->add_filter('connect_message_on_update', 'pop_fs_custom_connect_message
|
|
83 |
* Public-Facing Functionality
|
84 |
*----------------------------------------------------------------------------*/
|
85 |
|
86 |
-
define( 'SPU_VERSION' , '1.7.
|
87 |
define( 'SPU_PLUGIN_DIR' , plugin_dir_path(__FILE__) );
|
88 |
define( 'SPU_PLUGIN_URL' , plugin_dir_url(__FILE__) );
|
89 |
define( 'SPU_PLUGIN_HOOK' , basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
|
11 |
* @socialpopup
|
12 |
* Plugin Name: Popups - WordPress Popup
|
13 |
* Plugin URI: http://www.timersys.com/free-plugins/social-popup/
|
14 |
+
* Version: 1.7.2
|
15 |
* Description: Most complete free Popups plugin, scroll triggered popups, compatible with social networks, Gravity Forms, Ninja Forms, Contact form 7, Mailpoet, Mailchimp for WP, Postmatic, etc
|
16 |
* Author: Damian Logghe
|
17 |
* Author URI: https://timersys.com
|
83 |
* Public-Facing Functionality
|
84 |
*----------------------------------------------------------------------------*/
|
85 |
|
86 |
+
define( 'SPU_VERSION' , '1.7.2' );
|
87 |
define( 'SPU_PLUGIN_DIR' , plugin_dir_path(__FILE__) );
|
88 |
define( 'SPU_PLUGIN_URL' , plugin_dir_url(__FILE__) );
|
89 |
define( 'SPU_PLUGIN_HOOK' , basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
|
public/assets/js/min/public-min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(){function t(){}function e(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function n(t){return function(){return this[t].apply(this,arguments)}}var i=t.prototype,r=this,o=r.EventEmitter;i.getListeners=function(t){var e,n,i=this._getEvents();if("object"==typeof t){e={};for(n in i)i.hasOwnProperty(n)&&t.test(n)&&(e[n]=i[n])}else e=i[t]||(i[t]=[]);return e},i.flattenListeners=function(t){var e,n=[];for(e=0;t.length>e;e+=1)n.push(t[e].listener);return n},i.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&(e={},e[t]=n),e||n},i.addListener=function(t,n){var i,r=this.getListenersAsObject(t),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===e(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(t){return this.getListeners(t),this},i.defineEvents=function(t){for(var e=0;t.length>e;e+=1)this.defineEvent(t[e]);return this},i.removeListener=function(t,n){var i,r,o=this.getListenersAsObject(t);for(r in o)o.hasOwnProperty(r)&&(i=e(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},i.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},i.manipulateListeners=function(t,e,n){var i,r,o=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(i=n.length;i--;)o.call(this,e,n[i]);else for(i in e)e.hasOwnProperty(i)&&(r=e[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(t){var e,n=typeof t,i=this._getEvents();if("string"===n)delete i[t];else if("object"===n)for(e in i)i.hasOwnProperty(e)&&t.test(e)&&delete i[e];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(t,e){var n,i,r,o,s=this.getListenersAsObject(t);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(t,n.listener),o=n.listener.apply(this,e||[]),o===this._getOnceReturnValue()&&this.removeListener(t,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},i.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},i._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},i._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return r.EventEmitter=o,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}).call(this),function(t){function e(e){var n=t.event;return n.target=n.target||n.srcElement||e,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(t,e,n){t.addEventListener(e,n,!1)}:n.attachEvent&&(i=function(t,n,i){t[n+i]=i.handleEvent?function(){var n=e(t);i.handleEvent.call(i,n)}:function(){var n=e(t);i.call(t,n)},t.attachEvent("on"+n,t[n+i])});var r=function(){};n.removeEventListener?r=function(t,e,n){t.removeEventListener(e,n,!1)}:n.detachEvent&&(r=function(t,e,n){t.detachEvent("on"+e,t[e+n]);try{delete t[e+n]}catch(i){t[e+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):t.eventie=o}(this),function(t,e){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return e(t,n,i)}):"object"==typeof exports?module.exports=e(t,require("wolfy87-eventemitter"),require("eventie")):t.imagesLoaded=e(t,t.EventEmitter,t.eventie)}(window,function(t,e,n){function i(t,e){for(var n in e)t[n]=e[n];return t}function r(t){return"[object Array]"===p.call(t)}function o(t){var e=[];if(r(t))e=t;else if("number"==typeof t.length)for(var n=0,i=t.length;i>n;n++)e.push(t[n]);else e.push(t);return e}function s(t,e,n){if(!(this instanceof s))return new s(t,e);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=o(t),this.options=i({},this.options),"function"==typeof e?n=e:i(this.options,e),n&&this.on("always",n),this.getImages(),f&&(this.jqDeferred=new f.Deferred);var r=this;setTimeout(function(){r.check()})}function a(t){this.img=t}function u(t){this.src=t,l[t]=this}var f=t.jQuery,c=t.console,d=void 0!==c,p=Object.prototype.toString;s.prototype=new e,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var t=0,e=this.elements.length;e>t;t++){var n=this.elements[t];"IMG"===n.nodeName&&this.addImage(n);var i=n.nodeType;if(i&&(1===i||9===i||11===i))for(var r=n.querySelectorAll("img"),o=0,s=r.length;s>o;o++){var a=r[o];this.addImage(a)}}},s.prototype.addImage=function(t){var e=new a(t);this.images.push(e)},s.prototype.check=function(){function t(t,r){return e.options.debug&&d&&c.log("confirm",t,r),e.progress(t),n++,n===i&&e.complete(),!0}var e=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return void this.complete();for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",t),o.check()}},s.prototype.progress=function(t){this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;var e=this;setTimeout(function(){e.emit("progress",e,t),e.jqDeferred&&e.jqDeferred.notify&&e.jqDeferred.notify(e,t)})},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var e=this;setTimeout(function(){if(e.emit(t,e),e.emit("always",e),e.jqDeferred){var n=e.hasAnyBroken?"reject":"resolve";e.jqDeferred[n](e)}})},f&&(f.fn.imagesLoaded=function(t,e){var n=new s(this,t,e);return n.jqDeferred.promise(f(this))}),a.prototype=new e,a.prototype.check=function(){var t=l[this.img.src]||new u(this.img.src);if(t.isConfirmed)return void this.confirm(t.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var e=this;t.on("confirm",function(t,n){return e.confirm(t.isLoaded,n),!0}),t.check()},a.prototype.confirm=function(t,e){this.isLoaded=t,this.emit("confirm",this,e)};var l={};return u.prototype=new e,u.prototype.check=function(){if(!this.isChecked){var t=new Image;n.bind(t,"load",this),n.bind(t,"error",this),t.src=this.src,this.isChecked=!0}},u.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.prototype.onload=function(t){this.confirm(!0,"onload"),this.unbindProxyEvents(t)},u.prototype.onerror=function(t){this.confirm(!1,"onerror"),this.unbindProxyEvents(t)},u.prototype.confirm=function(t,e){this.isConfirmed=!0,this.isLoaded=t,this.emit("confirm",this,e)},u.prototype.unbindProxyEvents=function(t){n.unbind(t.target,"load",this),n.unbind(t.target,"error",this)},s}),function($){"use strict";function t(t,e,n,i,r){var o={url:spuvar.ajax_url,data:t,cache:!1,type:"POST",dataType:"json",timeout:3e4},r=r||!1,n=n||!1,i=i||!1;e&&(o.url=e),n&&(o.success=n),i&&(o.error=i),r&&(o.dataType=r),$.ajax(o)}function e(t,e,n){if(n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var r="; expires="+i.toGMTString()}else var r="";document.cookie=t+"="+e+r+"; path=/"}function n(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var r=n[i];" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(e))return r.substring(e.length,r.length)}return null}function i(){try{FB.Event.subscribe("edge.create",function(t,e){var n=$(e).parents(".spu-box").data("box-id");n&&SPU.hide(n,!1,!0)})}catch(t){}l=!0,clearInterval(h)}function r(t){var e=$(t.target).parents(".spu-box").data("box-id");e&&SPU.hide(e,!1,!0)}function o(t){if("on"==t.state){var e=jQuery(".spu-gogl").data("box-id");e&&SPU.hide(e,!1,!0)}}function s(t){if("confirm"==t.type){var e=jQuery(".spu-gogl").data("box-id");e&&SPU.hide(e,!1,!0)}}function a(){if("undefined"!=typeof spuvar_social&&spuvar_social.facebook)try{FB.XFBML.parse()}catch(t){}if("undefined"!=typeof spuvar_social&&spuvar_social.google)try{gapi.plusone.go()}catch(t){}if("undefined"!=typeof spuvar_social&&spuvar_social.twitter)try{twttr.widgets.load()}catch(t){}}function u(){$(".spu-box form").each(function(){var t=$(this).attr("action");t&&$(this).attr("action",t.replace("?spu_action=spu_load",""))}),$.fn.wpcf7InitForm&&$(".spu-box div.wpcf7 > form").wpcf7InitForm()}var f=function(){function i(t){var e=c[t],n=$(window).width(),i=$(window).height(),r=e.outerHeight(),o=e.outerWidth(),s=e.data("width"),a=0,u=i/2-r/2,f="fixed",d=$(document).scrollTop();e.hasClass("spu-centered")&&(s<n&&(a=n/2-o/2),e.css({left:a,position:f,top:u})),r+50>i&&(f="absolute",u=d,e.css({position:f,top:u,bottom:"auto"}))}function r(t){var e=$(t).find(".spu-facebook");if(e.length){var n=e.find(".fb-like > span").width();if(0==n){var i=e.find(".fb-like").data("layout");"box_count"==i?e.append('<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>"):"button_count"==i?e.append('<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;min-width: 120px !important;}</style>"):e.append('<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 o(t){var e=t,n=e.data("total");if(n){a();var i=0,r=0,o=e.outerWidth(),s=e.find(".spu-content").width();!spuvar.disable_style&&$(window).width()>o&&(e.find(".spu-shortcode").wrapAll('<div class="spu_shortcodes"/>'),e.find(".spu-shortcode").each(function(){i+=$(this).outerWidth()}),r=s-i-20*n),r>0&&(e.find(".spu-shortcode").each(function(){$(this).css("margin-left",r/2)}),2==n?e.find(".spu-shortcode").last().css("margin-left",0):3==n&&e.find(".spu-shortcode").first().css("margin-left",0))}}function s(t,n,r){var s=c[t],a=$("#spu-bg-"+t),u=s.data("bgopa");if(s.is(":animated"))return!1;if(n===!0&&s.is(":visible")||n===!1&&s.is(":hidden"))return!1;if(n===!1){var f=parseFloat(s.data("close-cookie"));r===!0&&(f=parseFloat(s.data("cookie"))),f>0&&e("spu_box_"+t,!0,f),s.trigger("spu.box_close",[t])}else setTimeout(function(){o(s)},1500),s.trigger("spu.box_open",[t]),$(window).resize(function(){i(t)}),i(t);var d=s.data("spuanimation"),p=s.data("close-on-conversion");return"fade"===d?n===!0?s.fadeIn("slow"):n===!1&&(p&&r||!r)&&s.fadeOut("slow"):n===!0?s.slideDown("slow"):n===!1&&(p&&r||!r)&&s.slideUp("slow"),n===!0&&u>0?a.fadeIn():n===!1&&(p&&r||!r)&&a.fadeOut(),n}var u=$(window).height(),f=spuvar.is_admin,c=[];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),i=e.data("trigger"),o=0,a=1===parseInt(e.data("test-mode")),d=e.data("box-id"),p=1===parseInt(e.data("auto-hide")),l=parseInt(e.data("seconds-close")),h=parseInt(e.data("trigger-number"),10),m="percentage"==i?parseInt(e.data("trigger-number"),10)/100:.8,v=m*$(document).height();r(e),e.on("click",'a:not(".spu-close-popup, .flp_wrapper a, .spu-not-close")',function(){s(d,!1,!0)}),$(document).keyup(function(t){27==t.keyCode&&s(d,!1,!1)});var g=navigator.userAgent,y=g.match(/iPad/i)||g.match(/iPhone/i)?"touchstart":"click";$("body").on(y,function(t){void 0!==t.originalEvent&&s(d,!1,!1)}),$("body").on(y,".spu-box,.spu-clickable",function(t){t.stopPropagation()}),e.hide().css("left",""),c[d]=e;var b=function(){o&&clearTimeout(o),o=window.setTimeout(function(){var t=$(window).scrollTop(),e=t+u>=v;e?(p||$(window).unbind("scroll",b),s(d,!0,!1)):s(d,!1,!1)},100)},w=function(){o&&clearTimeout(o),o=window.setTimeout(function(){s(d,!0,!1)},1e3*h)},_=n("spu_box_"+d);if((void 0==_||""==_||f&&a)&&("seconds"==i&&w(),"percentage"==i&&($(window).bind("scroll",b),b()),window.location.hash&&window.location.hash.length>0)){var x=window.location.hash,E;x.substring(1)===e.attr("id")&&setTimeout(function(){s(d,!0,!1)},100)}e.on("click",".spu-close-popup",function(){s(d,!1,!1),"percentage"==i&&$(window).unbind("scroll",b)}),$(document.body).on("click",'a[href="#spu-'+d+'"], .spu-open-'+d,function(t){t.preventDefault(),s(d,!0,!1)}),$('a[href="#spu-'+d+'"], .spu-open-'+d).css("cursor","pointer").addClass("spu-clickable"),e.find(".gform_wrapper form").addClass("gravity-form"),e.find(".mc4wp-form form").addClass("mc4wp-form"),e.find(".newsletter form").addClass("newsletter-form");var L=e.find("form");if(L.length){if(!L.is(".newsletter-form, .wpcf7-form, .gravity-form, .infusion-form, .widget_wysija, .ninja-forms-form")){var j=L.attr("action"),k=new RegExp(spuvar.site_url,"i");j&&j.length&&(k.test(j)||L.addClass("spu-disable-ajax"))}$(".spu-disable-ajax form").length&&$(".spu-disable-ajax form").addClass("spu-disable-ajax"),e.on("submit",'form.spu-disable-ajax:not(".flp_form")',function(){e.trigger("spu.form_submitted",[d]),s(d,!1,!0)}),e.on("submit",'form:not(".newsletter-form, .wpcf7-form, .gravity-form, .infusion-form, .spu-disable-ajax, .widget_wysija, .ninja-forms-form, .flp_form")',function(n){n.preventDefault();var i=!0,r=$(this),o=r.serialize(),a=r.hasClass("mc4wp-form")?spuvar.site_url+"/":r.attr("action"),u=function(t,e,n){console.log("Spu Form error: "+e+" - "+n)},f=function(t){var e=$(t).filter("#spu-"+d).html();$("#spu-"+d).html(e),$("#spu-"+d).find(".mc4wp-form-error").length||setTimeout(function(){s(d,!1,!0)},1e3*spuvar.seconds_confirmation_close)};return t(o,a,f,u,"html"),e.trigger("spu.form_submitted",[d]),i}),$("body").on("mailsent.wpcf7",function(){e.trigger("spu.form_submitted",[d]),s(d,!1,!0)}),$(document).on("gform_confirmation_loaded",function(){e.trigger("spu.form_submitted",[d]),s(d,!1,!0)}),e.on("submit",".infusion-form",function(t){t.preventDefault(),e.trigger("spu.form_submitted",[d]),s(d,!1,!0),this.submit()}),e.on("submit",".newsletter-form",function(t){t.preventDefault(),e.trigger("spu.form_submitted",[d]),s(d,!1,!0),this.submit()}),$("body").on("submitResponse.default",function(){e.trigger("spu.form_submitted",[d]),s(d,!1,!0)})}}),{show:function(t){return s(t,!0,!1)},hide:function(t,e,n){return s(t,!1,n)},request:function(e,n,i,r){return t(e,n,i,r)}}};if(spuvar.ajax_mode){var c={pid:spuvar.pid,referrer:document.referrer,query_string:document.location.search,is_category:spuvar.is_category,is_archive:spuvar.is_archive},d=function(t){$("body").append(t),$(".spu-box").imagesLoaded(function(){window.SPU=f(),u()})},p=function(t,e,n){console.log("Problem loading popups - error: "+e+" - "+n)};t(c,spuvar.ajax_mode_url,d,p,"html")}else $(".spu-box").imagesLoaded(function(){window.SPU=f()});var l=!1,h=setInterval(function(){"undefined"==typeof FB||l||i()},1e3);if("undefined"!=typeof twttr)try{twttr.ready(function(t){t.events.bind("tweet",r),t.events.bind("follow",r)})}catch(t){}}(jQuery);
|
1 |
+
(function(){function t(){}function e(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function n(t){return function(){return this[t].apply(this,arguments)}}var i=t.prototype,r=this,o=r.EventEmitter;i.getListeners=function(t){var e,n,i=this._getEvents();if("object"==typeof t){e={};for(n in i)i.hasOwnProperty(n)&&t.test(n)&&(e[n]=i[n])}else e=i[t]||(i[t]=[]);return e},i.flattenListeners=function(t){var e,n=[];for(e=0;t.length>e;e+=1)n.push(t[e].listener);return n},i.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&(e={},e[t]=n),e||n},i.addListener=function(t,n){var i,r=this.getListenersAsObject(t),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===e(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(t){return this.getListeners(t),this},i.defineEvents=function(t){for(var e=0;t.length>e;e+=1)this.defineEvent(t[e]);return this},i.removeListener=function(t,n){var i,r,o=this.getListenersAsObject(t);for(r in o)o.hasOwnProperty(r)&&(i=e(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},i.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},i.manipulateListeners=function(t,e,n){var i,r,o=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(i=n.length;i--;)o.call(this,e,n[i]);else for(i in e)e.hasOwnProperty(i)&&(r=e[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(t){var e,n=typeof t,i=this._getEvents();if("string"===n)delete i[t];else if("object"===n)for(e in i)i.hasOwnProperty(e)&&t.test(e)&&delete i[e];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(t,e){var n,i,r,o,s=this.getListenersAsObject(t);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(t,n.listener),o=n.listener.apply(this,e||[]),o===this._getOnceReturnValue()&&this.removeListener(t,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},i.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},i._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},i._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return r.EventEmitter=o,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}).call(this),function(t){function e(e){var n=t.event;return n.target=n.target||n.srcElement||e,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(t,e,n){t.addEventListener(e,n,!1)}:n.attachEvent&&(i=function(t,n,i){t[n+i]=i.handleEvent?function(){var n=e(t);i.handleEvent.call(i,n)}:function(){var n=e(t);i.call(t,n)},t.attachEvent("on"+n,t[n+i])});var r=function(){};n.removeEventListener?r=function(t,e,n){t.removeEventListener(e,n,!1)}:n.detachEvent&&(r=function(t,e,n){t.detachEvent("on"+e,t[e+n]);try{delete t[e+n]}catch(i){t[e+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):t.eventie=o}(this),function(t,e){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return e(t,n,i)}):"object"==typeof exports?module.exports=e(t,require("wolfy87-eventemitter"),require("eventie")):t.imagesLoaded=e(t,t.EventEmitter,t.eventie)}(window,function(t,e,n){function i(t,e){for(var n in e)t[n]=e[n];return t}function r(t){return"[object Array]"===p.call(t)}function o(t){var e=[];if(r(t))e=t;else if("number"==typeof t.length)for(var n=0,i=t.length;i>n;n++)e.push(t[n]);else e.push(t);return e}function s(t,e,n){if(!(this instanceof s))return new s(t,e);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=o(t),this.options=i({},this.options),"function"==typeof e?n=e:i(this.options,e),n&&this.on("always",n),this.getImages(),f&&(this.jqDeferred=new f.Deferred);var r=this;setTimeout(function(){r.check()})}function a(t){this.img=t}function u(t){this.src=t,l[t]=this}var f=t.jQuery,c=t.console,d=void 0!==c,p=Object.prototype.toString;s.prototype=new e,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var t=0,e=this.elements.length;e>t;t++){var n=this.elements[t];"IMG"===n.nodeName&&this.addImage(n);var i=n.nodeType;if(i&&(1===i||9===i||11===i))for(var r=n.querySelectorAll("img"),o=0,s=r.length;s>o;o++){var a=r[o];this.addImage(a)}}},s.prototype.addImage=function(t){var e=new a(t);this.images.push(e)},s.prototype.check=function(){function t(t,r){return e.options.debug&&d&&c.log("confirm",t,r),e.progress(t),n++,n===i&&e.complete(),!0}var e=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return void this.complete();for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",t),o.check()}},s.prototype.progress=function(t){this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;var e=this;setTimeout(function(){e.emit("progress",e,t),e.jqDeferred&&e.jqDeferred.notify&&e.jqDeferred.notify(e,t)})},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var e=this;setTimeout(function(){if(e.emit(t,e),e.emit("always",e),e.jqDeferred){var n=e.hasAnyBroken?"reject":"resolve";e.jqDeferred[n](e)}})},f&&(f.fn.imagesLoaded=function(t,e){var n=new s(this,t,e);return n.jqDeferred.promise(f(this))}),a.prototype=new e,a.prototype.check=function(){var t=l[this.img.src]||new u(this.img.src);if(t.isConfirmed)return void this.confirm(t.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var e=this;t.on("confirm",function(t,n){return e.confirm(t.isLoaded,n),!0}),t.check()},a.prototype.confirm=function(t,e){this.isLoaded=t,this.emit("confirm",this,e)};var l={};return u.prototype=new e,u.prototype.check=function(){if(!this.isChecked){var t=new Image;n.bind(t,"load",this),n.bind(t,"error",this),t.src=this.src,this.isChecked=!0}},u.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.prototype.onload=function(t){this.confirm(!0,"onload"),this.unbindProxyEvents(t)},u.prototype.onerror=function(t){this.confirm(!1,"onerror"),this.unbindProxyEvents(t)},u.prototype.confirm=function(t,e){this.isConfirmed=!0,this.isLoaded=t,this.emit("confirm",this,e)},u.prototype.unbindProxyEvents=function(t){n.unbind(t.target,"load",this),n.unbind(t.target,"error",this)},s}),function($){"use strict";function t(t,e,n,i,r){var o={url:spuvar.ajax_url,data:t,cache:!1,type:"POST",dataType:"json",timeout:3e4},r=r||!1,n=n||!1,i=i||!1;e&&(o.url=e),n&&(o.success=n),i&&(o.error=i),r&&(o.dataType=r),$.ajax(o)}function e(t,e,n){if(n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var r="; expires="+i.toGMTString()}else var r="";document.cookie=t+"="+e+r+"; path=/"}function n(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var r=n[i];" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(e))return r.substring(e.length,r.length)}return null}function i(){try{FB.Event.subscribe("edge.create",function(t,e){var n=$(e).parents(".spu-box").data("box-id");n&&SPU.hide(n,!1,!0)})}catch(t){}l=!0,clearInterval(h)}function r(t){var e=$(t.target).parents(".spu-box").data("box-id");e&&SPU.hide(e,!1,!0)}function o(t){if("on"==t.state){var e=jQuery(".spu-gogl").data("box-id");e&&SPU.hide(e,!1,!0)}}function s(t){if("confirm"==t.type){var e=jQuery(".spu-gogl").data("box-id");e&&SPU.hide(e,!1,!0)}}function a(){if("undefined"!=typeof spuvar_social&&spuvar_social.facebook)try{FB.XFBML.parse()}catch(t){}if("undefined"!=typeof spuvar_social&&spuvar_social.google)try{gapi.plusone.go()}catch(t){}if("undefined"!=typeof spuvar_social&&spuvar_social.twitter)try{twttr.widgets.load()}catch(t){}}function u(){$(".spu-box form").each(function(){var t=$(this).attr("action");t&&$(this).attr("action",t.replace("?spu_action=spu_load",""))}),$.fn.wpcf7InitForm&&$(".spu-box div.wpcf7 > form").wpcf7InitForm()}var f=function(){function i(t){var e=c[t],n=$(window).width(),i=$(window).height(),r=e.outerHeight(),o=e.outerWidth(),s=e.data("width"),a=0,u=i/2-r/2,f="fixed",d=$(document).scrollTop();e.hasClass("spu-centered")&&(s<n&&(a=n/2-o/2),e.css({left:a,position:f,top:u})),r+50>i&&(f="absolute",u=d,e.css({position:f,top:u,bottom:"auto"}))}function r(t){var e=$(t).find(".spu-facebook");if(e.length){var n=e.find(".fb-like > span").width();if(0==n){var i=e.find(".fb-like").data("layout");"box_count"==i?e.append('<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>"):"button_count"==i?e.append('<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;min-width: 120px !important;}</style>"):e.append('<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 o(t){var e=t,n=e.data("total");if(n){a();var i=0,r=0,o=e.outerWidth(),s=e.find(".spu-content").width();!spuvar.disable_style&&$(window).width()>o&&(e.find(".spu-shortcode").wrapAll('<div class="spu_shortcodes"/>'),e.find(".spu-shortcode").each(function(){i+=$(this).outerWidth()}),r=s-i-20*n),r>0&&(e.find(".spu-shortcode").each(function(){$(this).css("margin-left",r/2)}),2==n?e.find(".spu-shortcode").last().css("margin-left",0):3==n&&e.find(".spu-shortcode").first().css("margin-left",0))}}function s(t,n,r){var s=c[t],a=$("#spu-bg-"+t),u=s.data("bgopa");if(s.is(":animated"))return!1;if(n===!0&&s.is(":visible")||n===!1&&s.is(":hidden"))return!1;if(n===!1){var f=parseFloat(s.data("close-cookie"));r===!0&&(f=parseFloat(s.data("cookie"))),f>0&&e("spu_box_"+t,!0,f),s.trigger("spu.box_close",[t])}else setTimeout(function(){o(s)},1500),s.trigger("spu.box_open",[t]),$(window).resize(function(){i(t)}),i(t);var d=s.data("spuanimation"),p=s.data("close-on-conversion");return"fade"===d?n===!0?s.fadeIn("slow"):n===!1&&(p&&r||!r)&&s.fadeOut("slow"):n===!0?s.slideDown("slow"):n===!1&&(p&&r||!r)&&s.slideUp("slow"),n===!0&&u>0?a.fadeIn():n===!1&&(p&&r||!r)&&a.fadeOut(),n}var u=$(window).height(),f=spuvar.is_admin,c=[];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),i=e.data("trigger"),o=0,a=1===parseInt(e.data("test-mode")),d=e.data("box-id"),p=1===parseInt(e.data("auto-hide")),l=parseInt(e.data("seconds-close")),h=parseInt(e.data("trigger-number"),10),m="percentage"==i?parseInt(e.data("trigger-number"),10)/100:.8,v=m*$(document).height();r(e),e.on("click",'a:not(".spu-close-popup, .flp_wrapper a, .spu-not-close, .spu-not-close a")',function(){s(d,!1,!0)}),$(document).keyup(function(t){27==t.keyCode&&s(d,!1,!1)});var g=navigator.userAgent,w=g.match(/iPad/i)||g.match(/iPhone/i)?"touchstart":"click";$("body").on(w,function(t){void 0!==t.originalEvent&&s(d,!1,!1)}),$("body").on(w,".spu-box,.spu-clickable",function(t){t.stopPropagation()}),e.hide().css("left",""),c[d]=e;var y=function(){o&&clearTimeout(o),o=window.setTimeout(function(){var t=$(window).scrollTop(),e=t+u>=v;e?(p||$(window).unbind("scroll",y),s(d,!0,!1)):s(d,!1,!1)},100)},b=function(){o&&clearTimeout(o),o=window.setTimeout(function(){var t=$(window).scrollTop(),e=t>=h;e?(p||$(window).unbind("scroll",b),s(d,!0,!1)):s(d,!1,!1)},100)},_=function(){o&&clearTimeout(o),o=window.setTimeout(function(){s(d,!0,!1)},1e3*h)},x=n("spu_box_"+d);if((void 0==x||""==x||f&&a)&&("seconds"==i&&_(),"percentage"==i&&($(window).bind("scroll",y),y()),"pixels"==i&&($(window).bind("scroll",b),b()),window.location.hash&&window.location.hash.length>0)){var E=window.location.hash,L;E.substring(1)===e.attr("id")&&setTimeout(function(){s(d,!0,!1)},100)}e.on("click",".spu-close-popup",function(){s(d,!1,!1),"percentage"==i&&$(window).unbind("scroll",y)}),$(document.body).on("click",'a[href="#spu-'+d+'"], .spu-open-'+d,function(t){t.preventDefault(),s(d,!0,!1)}),$('a[href="#spu-'+d+'"], .spu-open-'+d).css("cursor","pointer").addClass("spu-clickable"),e.find(".gform_wrapper form").addClass("gravity-form"),e.find(".mc4wp-form form").addClass("mc4wp-form"),e.find(".newsletter form").addClass("newsletter-form");var j=e.find("form");if(j.length){if(!j.is(".newsletter-form, .wpcf7-form, .gravity-form, .infusion-form, .widget_wysija, .ninja-forms-form")){var k=j.attr("action"),T=new RegExp(spuvar.site_url,"i");k&&k.length&&(T.test(k)||j.addClass("spu-disable-ajax"))}$(".spu-disable-ajax form").length&&$(".spu-disable-ajax form").addClass("spu-disable-ajax"),e.on("submit",'form.spu-disable-ajax:not(".flp_form")',function(){e.trigger("spu.form_submitted",[d]),s(d,!1,!0)}),e.on("submit",'form:not(".newsletter-form, .wpcf7-form, .gravity-form, .infusion-form, .spu-disable-ajax, .widget_wysija, .ninja-forms-form, .flp_form")',function(n){n.preventDefault();var i=!0,r=$(this),o=r.serialize(),a=r.hasClass("mc4wp-form")?spuvar.site_url+"/":r.attr("action"),u=function(t,e,n){console.log("Spu Form error: "+e+" - "+n)},f=function(t){var e=$(t).filter("#spu-"+d).html();$("#spu-"+d).html(e),$("#spu-"+d).find(".mc4wp-form-error").length||setTimeout(function(){s(d,!1,!0)},1e3*spuvar.seconds_confirmation_close)};return t(o,a,f,u,"html"),e.trigger("spu.form_submitted",[d]),i}),$("body").on("mailsent.wpcf7",function(){e.trigger("spu.form_submitted",[d]),s(d,!1,!0)}),$(document).on("gform_confirmation_loaded",function(){e.trigger("spu.form_submitted",[d]),s(d,!1,!0)}),e.on("submit",".infusion-form",function(t){t.preventDefault(),e.trigger("spu.form_submitted",[d]),s(d,!1,!0),this.submit()}),e.on("submit",".newsletter-form",function(t){t.preventDefault(),e.trigger("spu.form_submitted",[d]),s(d,!1,!0),this.submit()}),$("body").on("submitResponse.default",function(){e.trigger("spu.form_submitted",[d]),s(d,!1,!0)})}}),{show:function(t){return s(t,!0,!1)},hide:function(t,e,n){return s(t,!1,n)},request:function(e,n,i,r){return t(e,n,i,r)}}};if(spuvar.ajax_mode){var c={pid:spuvar.pid,referrer:document.referrer,query_string:document.location.search,is_category:spuvar.is_category,is_archive:spuvar.is_archive},d=function(t){$("body").append(t),$(".spu-box").imagesLoaded(function(){window.SPU=f(),u()})},p=function(t,e,n){console.log("Problem loading popups - error: "+e+" - "+n)};t(c,spuvar.ajax_mode_url,d,p,"html")}else $(".spu-box").imagesLoaded(function(){window.SPU=f()});var l=!1,h=setInterval(function(){"undefined"==typeof FB||l||i()},1e3);if("undefined"!=typeof twttr)try{twttr.ready(function(t){t.events.bind("tweet",r),t.events.bind("follow",r)})}catch(t){}}(jQuery);
|
public/assets/js/public.js
CHANGED
@@ -48,7 +48,7 @@ var SPU_master = function() {
|
|
48 |
facebookFix( $box );
|
49 |
|
50 |
// Custom links conversion
|
51 |
-
$box.on('click', 'a:not(".spu-close-popup, .flp_wrapper a, .spu-not-close")', function(){
|
52 |
// hide the popup and track conversion
|
53 |
toggleBox( id, false, true);
|
54 |
});
|
@@ -107,6 +107,33 @@ var SPU_master = function() {
|
|
107 |
|
108 |
}, 100);
|
109 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
// function that show popup after X secs
|
111 |
var triggerSecondsCheck = function()
|
112 |
{
|
@@ -134,6 +161,11 @@ var SPU_master = function() {
|
|
134 |
// init, check box criteria once
|
135 |
triggerHeightCheck();
|
136 |
}
|
|
|
|
|
|
|
|
|
|
|
137 |
|
138 |
// shows the box when hash refers to a box
|
139 |
if(window.location.hash && window.location.hash.length > 0) {
|
48 |
facebookFix( $box );
|
49 |
|
50 |
// Custom links conversion
|
51 |
+
$box.on('click', 'a:not(".spu-close-popup, .flp_wrapper a, .spu-not-close, .spu-not-close a")', function(){
|
52 |
// hide the popup and track conversion
|
53 |
toggleBox( id, false, true);
|
54 |
});
|
107 |
|
108 |
}, 100);
|
109 |
}
|
110 |
+
|
111 |
+
// functions that check pixels of height
|
112 |
+
var triggerPixelsCheck = function()
|
113 |
+
{
|
114 |
+
if(timer) {
|
115 |
+
clearTimeout(timer);
|
116 |
+
}
|
117 |
+
|
118 |
+
timer = window.setTimeout(function() {
|
119 |
+
var scrollY = $(window).scrollTop();
|
120 |
+
var triggered = ( scrollY >= triggerSeconds);//triggerSeconds equals to the number field really
|
121 |
+
|
122 |
+
// show box when criteria for this box is matched
|
123 |
+
if( triggered ) {
|
124 |
+
|
125 |
+
// remove listen event if box shouldn't be hidden again
|
126 |
+
if( ! autoHide ) {
|
127 |
+
$(window).unbind('scroll', triggerPixelsCheck);
|
128 |
+
}
|
129 |
+
|
130 |
+
toggleBox( id, true, false );
|
131 |
+
} else {
|
132 |
+
toggleBox( id, false, false );
|
133 |
+
}
|
134 |
+
|
135 |
+
}, 100);
|
136 |
+
}
|
137 |
// function that show popup after X secs
|
138 |
var triggerSecondsCheck = function()
|
139 |
{
|
161 |
// init, check box criteria once
|
162 |
triggerHeightCheck();
|
163 |
}
|
164 |
+
if(triggerMethod == 'pixels'){
|
165 |
+
$(window).bind( 'scroll', triggerPixelsCheck );
|
166 |
+
// init, check box criteria once
|
167 |
+
triggerPixelsCheck();
|
168 |
+
}
|
169 |
|
170 |
// shows the box when hash refers to a box
|
171 |
if(window.location.hash && window.location.hash.length > 0) {
|
public/class-social-popup.php
CHANGED
@@ -285,9 +285,7 @@ class SocialPopup {
|
|
285 |
|
286 |
|
287 |
if ( empty( $spus) ) {
|
288 |
-
$post_content ='<
|
289 |
-
<p style="text-align: center;">If you like this site please help and make click on any of these buttons!</p>
|
290 |
-
<p style="text-align: center;">[spu-facebook][spu-google][spu-twitter]</p>';
|
291 |
$defaults = array(
|
292 |
'post_status' => 'draft',
|
293 |
'post_type' => 'spucpt',
|
@@ -692,6 +690,8 @@ class SocialPopup {
|
|
692 |
if ( empty( $_REQUEST['spu_action'] ) || $_REQUEST['spu_action'] != 'spu_load' )
|
693 |
return;
|
694 |
|
|
|
|
|
695 |
define( 'DOING_AJAX', TRUE );
|
696 |
|
697 |
$this->print_boxes();
|
285 |
|
286 |
|
287 |
if ( empty( $spus) ) {
|
288 |
+
$post_content ='<h2 style="text-align:center">Welcome!</h2><p style="text-align:center">This is popup preview that you can fill with any content you want.</p><p style="text-align:center">The plugin include some shortcodes, you can read more about them at the bottom of this page. The main 3 sections to configure the popup are:</p><p>Appearance: Where you edit the look and feel of the popup.<br>Display Rules: Here you choose on which page to display the popup (Set to all by default)<br>Display options: Some important settings about the plugin, being the more important trigger action.</br></p>';
|
|
|
|
|
289 |
$defaults = array(
|
290 |
'post_status' => 'draft',
|
291 |
'post_type' => 'spucpt',
|
690 |
if ( empty( $_REQUEST['spu_action'] ) || $_REQUEST['spu_action'] != 'spu_load' )
|
691 |
return;
|
692 |
|
693 |
+
do_action('spu/print_boxes');
|
694 |
+
|
695 |
define( 'DOING_AJAX', TRUE );
|
696 |
|
697 |
$this->print_boxes();
|
public/includes/class-spu-rules.php
CHANGED
@@ -333,26 +333,14 @@ class Spu_Rules
|
|
333 |
*/
|
334 |
function rule_match_query_string( $match, $rule ) {
|
335 |
|
336 |
-
parse_str( str_replace('?', '', $this->query_string ), $request );
|
337 |
-
parse_str( $rule['value'], $rule_query );
|
338 |
|
339 |
-
|
340 |
-
sort( $request );
|
341 |
-
sort( $rule_query );
|
342 |
-
}
|
343 |
-
|
344 |
-
if ( $rule['operator'] == "==" ) {
|
345 |
|
346 |
-
if( $request == $rule_query )
|
347 |
-
return true;
|
348 |
-
return false;
|
349 |
|
350 |
-
|
351 |
-
|
352 |
-
return true;
|
353 |
-
return false;
|
354 |
|
355 |
-
|
356 |
|
357 |
}
|
358 |
|
@@ -645,7 +633,7 @@ class Spu_Rules
|
|
645 |
}
|
646 |
elseif( $rule['value'] == 'child') {
|
647 |
|
648 |
-
|
649 |
|
650 |
if($rule['operator'] == "==")
|
651 |
{
|
333 |
*/
|
334 |
function rule_match_query_string( $match, $rule ) {
|
335 |
|
|
|
|
|
336 |
|
337 |
+
$found = strpos($this->query_string, $rule['value']) > -1 ? true: false;
|
|
|
|
|
|
|
|
|
|
|
338 |
|
|
|
|
|
|
|
339 |
|
340 |
+
if ( $rule['operator'] == "==" )
|
341 |
+
return $found;
|
|
|
|
|
342 |
|
343 |
+
return ! $found;
|
344 |
|
345 |
}
|
346 |
|
633 |
}
|
634 |
elseif( $rule['value'] == 'child') {
|
635 |
|
636 |
+
|
637 |
|
638 |
if($rule['operator'] == "==")
|
639 |
{
|