Version Description
- Added Facebook Login plugin support
- Minor code edits for premium version
- Fixed bug with Mailchimp for Wordpress plugin [mc4wp_form]
- Popup fires later for better shortcodes support
- Updates in language packs
- Now users can have custom links inside of popup that does not count as conversion (read faq)
Download this release
Release Info
Developer | timersys |
Plugin | Popups – WordPress Popup |
Version | 1.4.2 |
Comparing to | |
See all releases |
Code changes from version 1.4.1 to 1.4.2
- README.txt +22 -4
- admin/class-social-popup-admin.php +46 -46
- admin/views/metaboxes/metabox-donate.php +7 -7
- admin/views/metaboxes/metabox-help.php +25 -25
- admin/views/metaboxes/metabox-links.php +6 -6
- admin/views/metaboxes/metabox-options.php +31 -31
- admin/views/metaboxes/metabox-premium.php +15 -15
- admin/views/metaboxes/metabox-rules.php +9 -9
- admin/views/metaboxes/metabox-support.php +2 -2
- admin/views/settings-page.php +19 -19
- includes/class-spu-helper.php +11 -13
- languages/{spu-es_ES.mo → popups-es_ES.mo} +0 -0
- languages/{spu-es_ES.po → popups-es_ES.po} +1 -1
- languages/popups-ru_RU.mo +0 -0
- languages/popups-ru_RU.po +730 -0
- languages/{spu-sr_RS.mo → popups-sr_RS.mo} +0 -0
- languages/{spu-sr_RS.po → popups-sr_RS.po} +0 -0
- popups.php +3 -3
- public/assets/js/min/public-min.js +1 -1
- public/assets/js/public.js +5 -3
- public/class-social-popup.php +5 -5
- public/views/popup.php +1 -1
README.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
=== Popups - WordPress Popup ===
|
2 |
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
|
5 |
Requires at least: 3.6
|
6 |
-
Tested up to: 4.3
|
7 |
-
Stable tag: 1.4.
|
8 |
-
Text Domain:
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -26,6 +26,7 @@ It's compatible with the major form plugins like (read FAQ):
|
|
26 |
* Mailchimp for WP
|
27 |
* Postmatic
|
28 |
* Any generic form
|
|
|
29 |
|
30 |
There are multiple display filters that can be combined:
|
31 |
|
@@ -115,6 +116,10 @@ Enhance your site by letting your users send Social Invitations ([http://wp.time
|
|
115 |
|
116 |
== Frequently Asked Questions ==
|
117 |
|
|
|
|
|
|
|
|
|
118 |
= Popups plugin is compatible with Gravity Forms ? =
|
119 |
Yes, you need to configure your form to use ajax when inserting it
|
120 |
|
@@ -143,6 +148,9 @@ Check the following gist (https://gist.github.com/timersys/d68690a85aed14a02318)
|
|
143 |
= How to close the popup is a user clicks on a regular link ? =
|
144 |
To use custom conversions check [this code](https://gist.github.com/timersys/7facec9c80935a0df1c6) . You need to add it in your theme javascript files
|
145 |
|
|
|
|
|
|
|
146 |
= I closed the popup but youtube is still playing. How I fix it? =
|
147 |
Check [this gist](https://gist.github.com/timersys/99db1a8d2c8db74cb954) for instructions
|
148 |
|
@@ -173,6 +181,16 @@ If you have cache be sure to enable AJAX mode in the plugin settings page
|
|
173 |
|
174 |
== Changelog ==
|
175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
= 1.4.1 =
|
177 |
|
178 |
* Now you can delete all data on uninstall
|
1 |
=== Popups - WordPress Popup ===
|
2 |
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.3.1
|
7 |
+
Stable tag: 1.4.2
|
8 |
+
Text Domain: popups
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
26 |
* Mailchimp for WP
|
27 |
* Postmatic
|
28 |
* Any generic form
|
29 |
+
* Facebook Login popups using the [Facebook login pro plugin](http://wp.timersys.com/facebook-login/)
|
30 |
|
31 |
There are multiple display filters that can be combined:
|
32 |
|
116 |
|
117 |
== Frequently Asked Questions ==
|
118 |
|
119 |
+
= How can I include a custom link inside of the popup ? =
|
120 |
+
By default any link you enter will be used as a conversion link. By that we mean that if the link is clicked the popup will be closed as the user already performed the desired action.
|
121 |
+
To avoid that you can add the class attribute .spu-not-close to the link
|
122 |
+
|
123 |
= Popups plugin is compatible with Gravity Forms ? =
|
124 |
Yes, you need to configure your form to use ajax when inserting it
|
125 |
|
148 |
= How to close the popup is a user clicks on a regular link ? =
|
149 |
To use custom conversions check [this code](https://gist.github.com/timersys/7facec9c80935a0df1c6) . You need to add it in your theme javascript files
|
150 |
|
151 |
+
= If I have multiple Gravity forms on my page, form is not working =
|
152 |
+
On certain occasions multiple GF instances can cause problems. There is a plugin that fixes that https://wordpress.org/plugins/gravity-forms-multiple-form-instances/
|
153 |
+
|
154 |
= I closed the popup but youtube is still playing. How I fix it? =
|
155 |
Check [this gist](https://gist.github.com/timersys/99db1a8d2c8db74cb954) for instructions
|
156 |
|
181 |
|
182 |
== Changelog ==
|
183 |
|
184 |
+
|
185 |
+
= 1.4.2 =
|
186 |
+
|
187 |
+
* Added Facebook Login plugin support
|
188 |
+
* Minor code edits for premium version
|
189 |
+
* Fixed bug with Mailchimp for Wordpress plugin [mc4wp_form]
|
190 |
+
* Popup fires later for better shortcodes support
|
191 |
+
* Updates in language packs
|
192 |
+
* Now users can have custom links inside of popup that does not count as conversion (read faq)
|
193 |
+
|
194 |
= 1.4.1 =
|
195 |
|
196 |
* Now you can delete all data on uninstall
|
admin/class-social-popup-admin.php
CHANGED
@@ -155,19 +155,19 @@ class SocialPopup_Admin {
|
|
155 |
}
|
156 |
$labels = array(
|
157 |
'name' => $name,
|
158 |
-
'singular_name' => _x( 'Popups', 'post type singular name',
|
159 |
-
'menu_name' => _x( 'Popups', 'admin menu',
|
160 |
-
'name_admin_bar' => _x( 'Popups', 'add new on admin bar',
|
161 |
-
'add_new' => _x( 'Add New', 'Popups',
|
162 |
-
'add_new_item' => __( 'Add New Popups',
|
163 |
-
'new_item' => __( 'New Popups',
|
164 |
-
'edit_item' => __( 'Edit Popups',
|
165 |
-
'view_item' => __( 'View Popups',
|
166 |
-
'all_items' => __( 'All Popups',
|
167 |
-
'search_items' => __( 'Search Popups',
|
168 |
-
'parent_item_colon' => __( 'Parent Popups:',
|
169 |
-
'not_found' => __( 'No Popups found.',
|
170 |
-
'not_found_in_trash' => __( 'No Popups found in Trash.',
|
171 |
);
|
172 |
|
173 |
$args = array(
|
@@ -256,7 +256,7 @@ class SocialPopup_Admin {
|
|
256 |
|
257 |
add_meta_box(
|
258 |
'spu-premium',
|
259 |
-
__( 'Popups Premium',
|
260 |
array( $this, 'popup_premium' ),
|
261 |
'spucpt',
|
262 |
'normal',
|
@@ -267,7 +267,7 @@ class SocialPopup_Admin {
|
|
267 |
|
268 |
add_meta_box(
|
269 |
'spu-help',
|
270 |
-
'<i class="spu-icon-info spu-icon"></i>' . __( 'PopUp Shortcodes',
|
271 |
array( $this, 'popup_help' ),
|
272 |
'spucpt',
|
273 |
'normal',
|
@@ -276,7 +276,7 @@ class SocialPopup_Admin {
|
|
276 |
|
277 |
add_meta_box(
|
278 |
'spu-rules',
|
279 |
-
'<i class="spu-icon-eye spu-icon"></i>' . __( 'PopUp Display Rules',
|
280 |
array( $this, 'popup_rules' ),
|
281 |
'spucpt',
|
282 |
'normal',
|
@@ -285,7 +285,7 @@ class SocialPopup_Admin {
|
|
285 |
|
286 |
add_meta_box(
|
287 |
'spu-options',
|
288 |
-
'<i class="spu-icon-gears spu-icon"></i>' . __( 'Display Options',
|
289 |
array( $this, 'popup_options' ),
|
290 |
'spucpt',
|
291 |
'normal',
|
@@ -294,7 +294,7 @@ class SocialPopup_Admin {
|
|
294 |
|
295 |
add_meta_box(
|
296 |
'spu-support',
|
297 |
-
__( 'Need support?',
|
298 |
array( $this, 'metabox_support' ),
|
299 |
'spucpt',
|
300 |
'side'
|
@@ -302,7 +302,7 @@ class SocialPopup_Admin {
|
|
302 |
|
303 |
add_meta_box(
|
304 |
'spu-donate',
|
305 |
-
__( 'Donate & support',
|
306 |
array( $this, 'metabox_donate' ),
|
307 |
'spucpt',
|
308 |
'side'
|
@@ -310,7 +310,7 @@ class SocialPopup_Admin {
|
|
310 |
|
311 |
add_meta_box(
|
312 |
'spu-links',
|
313 |
-
__( 'About the developer',
|
314 |
array( $this, 'metabox_links' ),
|
315 |
'spucpt',
|
316 |
'side'
|
@@ -564,7 +564,7 @@ class SocialPopup_Admin {
|
|
564 |
'admin_url' => admin_url( ),
|
565 |
'nonce' => wp_create_nonce( 'spu_nonce' ),
|
566 |
'l10n' => array (
|
567 |
-
'or' => __('or',
|
568 |
),
|
569 |
'opts' => $this->helper->get_box_options($box_id)
|
570 |
)
|
@@ -591,7 +591,7 @@ class SocialPopup_Admin {
|
|
591 |
|
592 |
return array_merge(
|
593 |
array(
|
594 |
-
'settings' => '<a href="' . admin_url( 'edit.php?post_type=spucpt' ) . '">' . __( 'Add a Popup',
|
595 |
),
|
596 |
$links
|
597 |
);
|
@@ -715,32 +715,32 @@ class SocialPopup_Admin {
|
|
715 |
|
716 |
function get_rules_choices() {
|
717 |
$choices = array(
|
718 |
-
__("User",
|
719 |
-
'user_type' => __("User role",
|
720 |
-
'logged_user' => __("User is logged",
|
721 |
-
'left_comment' => __("User never left a comment",
|
722 |
-
'search_engine' => __("User came via a search engine",
|
723 |
-
'same_site' => __("User did not arrive via another page on your site",
|
724 |
),
|
725 |
-
__("Post",
|
726 |
-
'post' => __("Post",
|
727 |
-
'post_id' => __("Post ID",
|
728 |
-
'post_type' => __("Post Type",
|
729 |
-
'post_category' => __("Post Category",
|
730 |
-
'post_format' => __("Post Format",
|
731 |
-
'post_status' => __("Post Status",
|
732 |
-
'taxonomy' => __("Post Taxonomy",
|
733 |
),
|
734 |
-
__("Page",
|
735 |
-
'page' => __("Page",
|
736 |
-
'page_type' => __("Page Type",
|
737 |
-
'page_parent' => __("Page Parent",
|
738 |
-
'page_template' => __("Page Template",
|
739 |
),
|
740 |
-
__("Other",
|
741 |
-
'referrer' => __("Referrer",
|
742 |
-
'mobiles' => __("Mobile Phone",
|
743 |
-
'tablets' => __("Tablet",
|
744 |
)
|
745 |
);
|
746 |
// allow custom rules rules
|
@@ -788,7 +788,7 @@ class SocialPopup_Admin {
|
|
788 |
public function set_custom_cpt_columns( $columns ){
|
789 |
unset( $columns['date'] );
|
790 |
|
791 |
-
$columns['spu_id'] = __( 'ID', '
|
792 |
return $columns;
|
793 |
}
|
794 |
/**
|
155 |
}
|
156 |
$labels = array(
|
157 |
'name' => $name,
|
158 |
+
'singular_name' => _x( 'Popups', 'post type singular name', 'popups' ),
|
159 |
+
'menu_name' => _x( 'Popups', 'admin menu', 'popups' ),
|
160 |
+
'name_admin_bar' => _x( 'Popups', 'add new on admin bar', 'popups' ),
|
161 |
+
'add_new' => _x( 'Add New', 'Popups', 'popups' ),
|
162 |
+
'add_new_item' => __( 'Add New Popups', 'popups' ),
|
163 |
+
'new_item' => __( 'New Popups', 'popups' ),
|
164 |
+
'edit_item' => __( 'Edit Popups', 'popups' ),
|
165 |
+
'view_item' => __( 'View Popups', 'popups' ),
|
166 |
+
'all_items' => __( 'All Popups', 'popups' ),
|
167 |
+
'search_items' => __( 'Search Popups', 'popups' ),
|
168 |
+
'parent_item_colon' => __( 'Parent Popups:', 'popups' ),
|
169 |
+
'not_found' => __( 'No Popups found.', 'popups' ),
|
170 |
+
'not_found_in_trash' => __( 'No Popups found in Trash.', 'popups' )
|
171 |
);
|
172 |
|
173 |
$args = array(
|
256 |
|
257 |
add_meta_box(
|
258 |
'spu-premium',
|
259 |
+
__( 'Popups Premium', 'popups' ),
|
260 |
array( $this, 'popup_premium' ),
|
261 |
'spucpt',
|
262 |
'normal',
|
267 |
|
268 |
add_meta_box(
|
269 |
'spu-help',
|
270 |
+
'<i class="spu-icon-info spu-icon"></i>' . __( 'PopUp Shortcodes', 'popups' ),
|
271 |
array( $this, 'popup_help' ),
|
272 |
'spucpt',
|
273 |
'normal',
|
276 |
|
277 |
add_meta_box(
|
278 |
'spu-rules',
|
279 |
+
'<i class="spu-icon-eye spu-icon"></i>' . __( 'PopUp Display Rules', 'popups' ),
|
280 |
array( $this, 'popup_rules' ),
|
281 |
'spucpt',
|
282 |
'normal',
|
285 |
|
286 |
add_meta_box(
|
287 |
'spu-options',
|
288 |
+
'<i class="spu-icon-gears spu-icon"></i>' . __( 'Display Options', 'popups' ),
|
289 |
array( $this, 'popup_options' ),
|
290 |
'spucpt',
|
291 |
'normal',
|
294 |
|
295 |
add_meta_box(
|
296 |
'spu-support',
|
297 |
+
__( 'Need support?', 'popups' ),
|
298 |
array( $this, 'metabox_support' ),
|
299 |
'spucpt',
|
300 |
'side'
|
302 |
|
303 |
add_meta_box(
|
304 |
'spu-donate',
|
305 |
+
__( 'Donate & support', 'popups' ),
|
306 |
array( $this, 'metabox_donate' ),
|
307 |
'spucpt',
|
308 |
'side'
|
310 |
|
311 |
add_meta_box(
|
312 |
'spu-links',
|
313 |
+
__( 'About the developer', 'popups' ),
|
314 |
array( $this, 'metabox_links' ),
|
315 |
'spucpt',
|
316 |
'side'
|
564 |
'admin_url' => admin_url( ),
|
565 |
'nonce' => wp_create_nonce( 'spu_nonce' ),
|
566 |
'l10n' => array (
|
567 |
+
'or' => __('or', 'popups' )
|
568 |
),
|
569 |
'opts' => $this->helper->get_box_options($box_id)
|
570 |
)
|
591 |
|
592 |
return array_merge(
|
593 |
array(
|
594 |
+
'settings' => '<a href="' . admin_url( 'edit.php?post_type=spucpt' ) . '">' . __( 'Add a Popup', 'popups' ) . '</a>'
|
595 |
),
|
596 |
$links
|
597 |
);
|
715 |
|
716 |
function get_rules_choices() {
|
717 |
$choices = array(
|
718 |
+
__("User", 'popups' ) => array(
|
719 |
+
'user_type' => __("User role", 'popups' ),
|
720 |
+
'logged_user' => __("User is logged", 'popups' ),
|
721 |
+
'left_comment' => __("User never left a comment", 'popups' ),
|
722 |
+
'search_engine' => __("User came via a search engine", 'popups' ),
|
723 |
+
'same_site' => __("User did not arrive via another page on your site", 'popups' ),
|
724 |
),
|
725 |
+
__("Post", 'popups' ) => array(
|
726 |
+
'post' => __("Post", 'popups' ),
|
727 |
+
'post_id' => __("Post ID", 'popups' ),
|
728 |
+
'post_type' => __("Post Type", 'popups' ),
|
729 |
+
'post_category' => __("Post Category", 'popups' ),
|
730 |
+
'post_format' => __("Post Format", 'popups' ),
|
731 |
+
'post_status' => __("Post Status", 'popups' ),
|
732 |
+
'taxonomy' => __("Post Taxonomy", 'popups' ),
|
733 |
),
|
734 |
+
__("Page", 'popups' ) => array(
|
735 |
+
'page' => __("Page", 'popups' ),
|
736 |
+
'page_type' => __("Page Type", 'popups' ),
|
737 |
+
'page_parent' => __("Page Parent", 'popups' ),
|
738 |
+
'page_template' => __("Page Template", 'popups' ),
|
739 |
),
|
740 |
+
__("Other", 'popups' ) => array(
|
741 |
+
'referrer' => __("Referrer", 'popups' ),
|
742 |
+
'mobiles' => __("Mobile Phone", 'popups' ),
|
743 |
+
'tablets' => __("Tablet", 'popups' ),
|
744 |
)
|
745 |
);
|
746 |
// allow custom rules rules
|
788 |
public function set_custom_cpt_columns( $columns ){
|
789 |
unset( $columns['date'] );
|
790 |
|
791 |
+
$columns['spu_id'] = __( 'ID', 'popups' );
|
792 |
return $columns;
|
793 |
}
|
794 |
/**
|
admin/views/metaboxes/metabox-donate.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
if ( !defined( 'ABSPATH' ) ) exit;
|
4 |
?>
|
5 |
|
6 |
-
<p><?php _e( 'If you like this plugin, consider supporting it by donating.',
|
7 |
|
8 |
-
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K4T6L69EV9G2Q" class="button-primary"><?php _e( 'Donate with PayPal',
|
9 |
|
10 |
-
<p><?php _e( 'Some other ways to support this plugin',
|
11 |
<ul class="ul-square">
|
12 |
-
<li><a href="http://wordpress.org/support/view/plugin-reviews/popups?rate=5#postform" target="_blank"><?php _e( 'Leave a ★★★★★ review on WordPress.org',
|
13 |
-
<li><a href="http://wp.timersys.com/free-plugins/popups/" target="_blank"><?php _e( 'Write about Popups on your blog',
|
14 |
-
<li><a href="http://twitter.com/intent/tweet/?text=I+am+using+Social+PopUP+on+my+WordPress+site.+It%27s+great%21&via=chifliiii&url=http%3A%2F%2Fwordpress.org%2Fplugins%2Fpopups%2F" target="_blank"><?php _e( 'Tweet about Popups',
|
15 |
-
<li><a href="http://wordpress.org/plugins/popups/#compatibility"><?php _e( 'Vote "works" on the WordPress.org plugin page',
|
16 |
</ul>
|
3 |
if ( !defined( 'ABSPATH' ) ) exit;
|
4 |
?>
|
5 |
|
6 |
+
<p><?php _e( 'If you like this plugin, consider supporting it by donating.', 'popups' );?></p>
|
7 |
|
8 |
+
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K4T6L69EV9G2Q" class="button-primary"><?php _e( 'Donate with PayPal', 'popups' );?></a>
|
9 |
|
10 |
+
<p><?php _e( 'Some other ways to support this plugin', 'popups' );?></p>
|
11 |
<ul class="ul-square">
|
12 |
+
<li><a href="http://wordpress.org/support/view/plugin-reviews/popups?rate=5#postform" target="_blank"><?php _e( 'Leave a ★★★★★ review on WordPress.org', 'popups' );?></a></li>
|
13 |
+
<li><a href="http://wp.timersys.com/free-plugins/popups/" target="_blank"><?php _e( 'Write about Popups on your blog', 'popups' );?></a></li>
|
14 |
+
<li><a href="http://twitter.com/intent/tweet/?text=I+am+using+Social+PopUP+on+my+WordPress+site.+It%27s+great%21&via=chifliiii&url=http%3A%2F%2Fwordpress.org%2Fplugins%2Fpopups%2F" target="_blank"><?php _e( 'Tweet about Popups', 'popups' );?></a></li>
|
15 |
+
<li><a href="http://wordpress.org/plugins/popups/#compatibility"><?php _e( 'Vote "works" on the WordPress.org plugin page', 'popups' );?></a></li>
|
16 |
</ul>
|
admin/views/metaboxes/metabox-help.php
CHANGED
@@ -3,18 +3,18 @@
|
|
3 |
if ( !defined( 'ABSPATH' ) ) exit;
|
4 |
?>
|
5 |
|
6 |
-
<p><?php _e( 'You have three social shortcodes to use that will print a Facebook like, a Google+ Follow and a Twitter follow. Check the available options and <strong>configure them with your social accounts</strong>:',
|
7 |
|
8 |
<p><strong>New Facebook page:</strong></p>
|
9 |
<p>
|
10 |
[spu-facebook-page href="" name="" show_faces="" hide_cover="" width=""]
|
11 |
</p>
|
12 |
-
<a href="fb-opts" onclick="jQuery('#fbpage-opts').slideToggle();return false;"><?php _e( 'View Facebook Page Options',
|
13 |
<ul id="fbpage-opts" style="display:none;">
|
14 |
-
<li><b>href:</b> <?php _e( 'Your facebook page url',
|
15 |
-
<li><b>name:</b> <?php _e( 'Your page name',
|
16 |
-
<li><b>show_faces:</b> <?php _e( 'true|false <b>Default value:</b> true',
|
17 |
-
<li><b>hide_cover:</b> <?php _e( 'true|false <b>Default value:</b> false',
|
18 |
<li><b>width:</b></li>
|
19 |
</ul>
|
20 |
|
@@ -22,44 +22,44 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
22 |
<p>
|
23 |
[spu-facebook href="" layout="" show_faces="" share="" action="" width=""]
|
24 |
</p>
|
25 |
-
<a href="fb-opts" onclick="jQuery('#fb-opts').slideToggle();return false;"><?php _e( 'View Facebook Options',
|
26 |
<ul id="fb-opts" style="display:none;">
|
27 |
-
<li><b>href:</b> <?php _e( 'Your facebook page url',
|
28 |
-
<li><b>layout:</b> <?php _e( 'standard, box_count, button <b>Default value:</b> button_count',
|
29 |
-
<li><b>show_faces:</b> <?php _e( 'true <b>Default value:</b> false',
|
30 |
-
<li><b>share:</b> <?php _e( 'true <b>Default value:</b> false',
|
31 |
-
<li><b>action:</b> <?php _e( 'recommend <b>Default value:</b> like',
|
32 |
<li><b>width:</b></li>
|
33 |
</ul>
|
34 |
<p><strong>Google+:</strong></p>
|
35 |
<p>
|
36 |
[spu-google url="" size="" annotation=""]
|
37 |
</p>
|
38 |
-
<a href="go-opts" onclick="jQuery('#go-opts').slideToggle();return false;"><?php _e( 'View Google+ Options',
|
39 |
<ul id="go-opts" style="display:none;">
|
40 |
-
<li><b>url:</b> <?php _e( 'Your Google+ url',
|
41 |
-
<li><b>size:</b> <?php _e( 'small, standard, tall <b>Default value:</b> medium',
|
42 |
-
<li><b>annotation:</b> <?php _e( 'inline, none <b>Default value:</b> bubble',
|
43 |
</ul>
|
44 |
<p><strong>Twitter:</strong></p>
|
45 |
<p>
|
46 |
[spu-twitter user="" show_count="" size="" lang=""]
|
47 |
</p>
|
48 |
-
<a href="tw-opts" onclick="jQuery('#tw-opts').slideToggle();return false;"><?php _e( 'View Twitter Options',
|
49 |
<ul id="tw-opts" style="display:none;">
|
50 |
-
<li><b>user:</b> <?php _e( 'Your Twitter user <b>Default chifli</b>iiii',
|
51 |
-
<li><b>show_count:</b> <?php _e( 'false <b>Default value:</b> true',
|
52 |
-
<li><b>size:</b> <?php _e( 'large <b>Default value:</b> ""',
|
53 |
<li><b>lang:</b> </li>
|
54 |
</ul>
|
55 |
-
<h3 style="padding-left:0;margin: 20px 0;"><strong><?php _e('Other available Shortcodes:',
|
56 |
<p><strong>Close Button:</strong></p>
|
57 |
<p>
|
58 |
[spu-close class="" text="" align=""]
|
59 |
</p>
|
60 |
-
<a href="close-opts" onclick="jQuery('#close-opts').slideToggle();return false;"><?php _e( 'View Close shortcode Options',
|
61 |
<ul id="close-opts" style="display:none;">
|
62 |
-
<li><b>class:</b> <?php _e( 'Pass a custom class to style your button',
|
63 |
-
<li><b>text:</b> <?php _e( 'Button label - <b>Default value:</b> Close',
|
64 |
-
<li><b>align:</b> <?php _e( 'left, right, center, none - <b>Default value:</b> center',
|
65 |
</ul>
|
3 |
if ( !defined( 'ABSPATH' ) ) exit;
|
4 |
?>
|
5 |
|
6 |
+
<p><?php _e( 'You have three social shortcodes to use that will print a Facebook like, a Google+ Follow and a Twitter follow. Check the available options and <strong>configure them with your social accounts</strong>:', 'popups' );?></p>
|
7 |
|
8 |
<p><strong>New Facebook page:</strong></p>
|
9 |
<p>
|
10 |
[spu-facebook-page href="" name="" show_faces="" hide_cover="" width=""]
|
11 |
</p>
|
12 |
+
<a href="fb-opts" onclick="jQuery('#fbpage-opts').slideToggle();return false;"><?php _e( 'View Facebook Page Options', 'popups' );?></a>
|
13 |
<ul id="fbpage-opts" style="display:none;">
|
14 |
+
<li><b>href:</b> <?php _e( 'Your facebook page url', 'popups' );?></li>
|
15 |
+
<li><b>name:</b> <?php _e( 'Your page name', 'popups' );?></li>
|
16 |
+
<li><b>show_faces:</b> <?php _e( 'true|false <b>Default value:</b> true', 'popups' );?></li>
|
17 |
+
<li><b>hide_cover:</b> <?php _e( 'true|false <b>Default value:</b> false', 'popups' );?></li>
|
18 |
<li><b>width:</b></li>
|
19 |
</ul>
|
20 |
|
22 |
<p>
|
23 |
[spu-facebook href="" layout="" show_faces="" share="" action="" width=""]
|
24 |
</p>
|
25 |
+
<a href="fb-opts" onclick="jQuery('#fb-opts').slideToggle();return false;"><?php _e( 'View Facebook Options', 'popups' );?></a>
|
26 |
<ul id="fb-opts" style="display:none;">
|
27 |
+
<li><b>href:</b> <?php _e( 'Your facebook page url', 'popups' );?></li>
|
28 |
+
<li><b>layout:</b> <?php _e( 'standard, box_count, button <b>Default value:</b> button_count', 'popups' );?></li>
|
29 |
+
<li><b>show_faces:</b> <?php _e( 'true <b>Default value:</b> false', 'popups' );?></li>
|
30 |
+
<li><b>share:</b> <?php _e( 'true <b>Default value:</b> false', 'popups' );?></li>
|
31 |
+
<li><b>action:</b> <?php _e( 'recommend <b>Default value:</b> like', 'popups' );?></li>
|
32 |
<li><b>width:</b></li>
|
33 |
</ul>
|
34 |
<p><strong>Google+:</strong></p>
|
35 |
<p>
|
36 |
[spu-google url="" size="" annotation=""]
|
37 |
</p>
|
38 |
+
<a href="go-opts" onclick="jQuery('#go-opts').slideToggle();return false;"><?php _e( 'View Google+ Options', 'popups' );?></a>
|
39 |
<ul id="go-opts" style="display:none;">
|
40 |
+
<li><b>url:</b> <?php _e( 'Your Google+ url', 'popups' );?></li>
|
41 |
+
<li><b>size:</b> <?php _e( 'small, standard, tall <b>Default value:</b> medium', 'popups' );?></li>
|
42 |
+
<li><b>annotation:</b> <?php _e( 'inline, none <b>Default value:</b> bubble', 'popups' );?></li>
|
43 |
</ul>
|
44 |
<p><strong>Twitter:</strong></p>
|
45 |
<p>
|
46 |
[spu-twitter user="" show_count="" size="" lang=""]
|
47 |
</p>
|
48 |
+
<a href="tw-opts" onclick="jQuery('#tw-opts').slideToggle();return false;"><?php _e( 'View Twitter Options', 'popups' );?></a>
|
49 |
<ul id="tw-opts" style="display:none;">
|
50 |
+
<li><b>user:</b> <?php _e( 'Your Twitter user <b>Default chifli</b>iiii', 'popups' );?></li>
|
51 |
+
<li><b>show_count:</b> <?php _e( 'false <b>Default value:</b> true', 'popups' );?></li>
|
52 |
+
<li><b>size:</b> <?php _e( 'large <b>Default value:</b> ""', 'popups' );?></li>
|
53 |
<li><b>lang:</b> </li>
|
54 |
</ul>
|
55 |
+
<h3 style="padding-left:0;margin: 20px 0;"><strong><?php _e('Other available Shortcodes:', 'popups' );?><strong></h3>
|
56 |
<p><strong>Close Button:</strong></p>
|
57 |
<p>
|
58 |
[spu-close class="" text="" align=""]
|
59 |
</p>
|
60 |
+
<a href="close-opts" onclick="jQuery('#close-opts').slideToggle();return false;"><?php _e( 'View Close shortcode Options', 'popups' );?></a>
|
61 |
<ul id="close-opts" style="display:none;">
|
62 |
+
<li><b>class:</b> <?php _e( 'Pass a custom class to style your button', 'popups' );?></li>
|
63 |
+
<li><b>text:</b> <?php _e( 'Button label - <b>Default value:</b> Close', 'popups' );?></li>
|
64 |
+
<li><b>align:</b> <?php _e( 'left, right, center, none - <b>Default value:</b> center', 'popups' );?></li>
|
65 |
</ul>
|
admin/views/metaboxes/metabox-links.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
if ( !defined( 'ABSPATH' ) ) exit;
|
4 |
?>
|
5 |
|
6 |
-
<p><?php _e( 'My name is',
|
7 |
-
<p><?php printf(__( 'Take a look at my <a href="%s">site</a> to see my other plugins or hire me. Subscribe to get updates!',
|
8 |
-
<h4><?php _e( 'Other plugins I built:',
|
9 |
<ul>
|
10 |
-
<li> <a href="http://wordpress.org/plugins/wpfavs/" target="_blank">Wp Favs</a> - <?php _e( 'Install multiple plugins and create collections',
|
11 |
-
<li> <a href="http://wordpress.org/plugins/geotargeting/" target="_blank">Geotargeting</a> - <?php _e( 'Geotarget your content',
|
12 |
-
<li> <a href="http://wordpress.org/plugins/wp-social-invitations" target="_blank">Wordpress Social Invitations</a> - <?php _e( 'Invite your network friends and import contacts',
|
13 |
</ul>
|
3 |
if ( !defined( 'ABSPATH' ) ) exit;
|
4 |
?>
|
5 |
|
6 |
+
<p><?php _e( 'My name is', 'popups' );?> <a href="http://twitter.com/chifliiiii">Damian Logghe</a>. <?php _e( 'I develop WordPress plugins and themes.', 'popups' );?></p>
|
7 |
+
<p><?php printf(__( 'Take a look at my <a href="%s">site</a> to see my other plugins or hire me. Subscribe to get updates!', 'popups' ), 'http://wp.timersys.com/');?></p>
|
8 |
+
<h4><?php _e( 'Other plugins I built:', 'popups' );?></h4>
|
9 |
<ul>
|
10 |
+
<li> <a href="http://wordpress.org/plugins/wpfavs/" target="_blank">Wp Favs</a> - <?php _e( 'Install multiple plugins and create collections', 'popups' );?></li>
|
11 |
+
<li> <a href="http://wordpress.org/plugins/geotargeting/" target="_blank">Geotargeting</a> - <?php _e( 'Geotarget your content', 'popups' );?></li>
|
12 |
+
<li> <a href="http://wordpress.org/plugins/wp-social-invitations" target="_blank">Wordpress Social Invitations</a> - <?php _e( 'Invite your network friends and import contacts', 'popups' );?></li>
|
13 |
</ul>
|
admin/views/metaboxes/metabox-options.php
CHANGED
@@ -6,26 +6,26 @@ if ( !defined( 'ABSPATH' ) ) exit;?>
|
|
6 |
|
7 |
<?php do_action( 'spu/metaboxes/before_display_options', $opts );?>
|
8 |
<tr valign="top">
|
9 |
-
<th><label for="spu_position"><?php _e( 'Box Position',
|
10 |
<td>
|
11 |
<select id="spu_position" name="spu[css][position]" class="widefat">
|
12 |
-
<option value="centered" <?php selected($opts['css']['position'], 'centered'); ?>><?php _e( 'Centered',
|
13 |
-
<option value="top-left" <?php selected($opts['css']['position'], 'top-left'); ?>><?php _e( 'Top Left',
|
14 |
-
<option value="top-right" <?php selected($opts['css']['position'], 'top-right'); ?>><?php _e( 'Top Right',
|
15 |
-
<option value="bottom-left" <?php selected($opts['css']['position'], 'bottom-left'); ?>><?php _e( 'Bottom Left',
|
16 |
-
<option value="bottom-right" <?php selected($opts['css']['position'], 'bottom-right'); ?>><?php _e( 'Bottom Right',
|
17 |
<?php do_action( 'spu/metaboxes/positions', $opts );?>
|
18 |
</select>
|
19 |
</td>
|
20 |
<td colspan="2"></td>
|
21 |
</tr>
|
22 |
<tr valign="top">
|
23 |
-
<th><label for="spu_trigger"><?php _e( 'Trigger action',
|
24 |
<td class="spu-sm">
|
25 |
<select id="spu_trigger" name="spu[trigger]" class="widefat">
|
26 |
|
27 |
-
<option value="seconds" <?php selected($opts['trigger'], 'seconds'); ?>><?php _e( 'seconds after page load',
|
28 |
-
<option value="percentage" <?php selected($opts['trigger'], 'percentage'); ?>>% <?php _e( 'of page height',
|
29 |
<?php do_action( 'spu/metaboxes/trigger_options', $opts );?>
|
30 |
</select>
|
31 |
</td>
|
@@ -35,91 +35,91 @@ if ( !defined( 'ABSPATH' ) ) exit;?>
|
|
35 |
</td>
|
36 |
</tr>
|
37 |
<tr valign="top" class="auto_hide">
|
38 |
-
<th><label for="spu_auto_hide"><?php _e( 'Auto-hide?',
|
39 |
<td colspan="3">
|
40 |
<label><input type="radio" id="spu_auto_hide_1" name="spu[auto_hide]" value="1" <?php checked($opts['auto_hide'], 1); ?> /> <?php _e( 'Yes' ); ?></label>
|
41 |
<label><input type="radio" id="spu_auto_hide_0" name="spu[auto_hide]" value="0" <?php checked($opts['auto_hide'], 0); ?> /> <?php _e( 'No' ); ?></label>
|
42 |
-
<p class="help"><?php _e( 'Hide box again when visitors scroll back up?',
|
43 |
</td>
|
44 |
</tr>
|
45 |
<tr valign="top">
|
46 |
-
<th><label><?php _e( 'Animation',
|
47 |
<td colspan="3">
|
48 |
<select id="spu_animation" name="spu[animation]" class="widefat">
|
49 |
-
<option value="fade" <?php selected($opts['animation'], 'fade'); ?> > <?php _e( 'Fade In',
|
50 |
-
<option value="slide" <?php selected($opts['animation'], 'slide'); ?> > <?php _e( 'Slide In',
|
51 |
<?php do_action( 'spu/metaboxes/animations', $opts );?>
|
52 |
</select>
|
53 |
-
<p class="help"><?php _e( 'Slide will only apply when popup is on the corners',
|
54 |
</td>
|
55 |
</tr>
|
56 |
|
57 |
<tr valign="top">
|
58 |
-
<th><label for="spu_cookie"><?php _e( 'Cookie expiration days',
|
59 |
<td colspan="3">
|
60 |
<input type="number" id="spu_cookie" name="spu[cookie]" min="0" step="1" value="<?php echo esc_attr($opts['cookie']); ?>" />
|
61 |
-
<p class="help"><?php _e( 'After closing the box, how many days should it stay hidden?',
|
62 |
</td>
|
63 |
|
64 |
</tr>
|
65 |
<tr valign="top">
|
66 |
-
<th><label for="spu_test_mode"><?php _e( 'Enable test mode?',
|
67 |
<td colspan="3">
|
68 |
<label><input type="radio" id="spu_test_mode_1" name="spu[test_mode]" value="1" <?php checked($opts['test_mode'], 1); ?> /> <?php _e( 'Yes' ); ?></label>
|
69 |
<label><input type="radio" id="spu_test_mode_0" name="spu[test_mode]" value="0" <?php checked($opts['test_mode'], 0); ?> /> <?php _e( 'No' ); ?></label>
|
70 |
-
<p class="help"><?php _e( 'If test mode is enabled, the box will show up regardless of whether a cookie has been set. (To admins only)',
|
71 |
</td>
|
72 |
</tr>
|
73 |
<tr valign="top" class="conversion_close">
|
74 |
-
<th><label for="spu_conversion_close"><?php _e( 'Close on conversion?',
|
75 |
<td colspan="3">
|
76 |
<label><input type="radio" id="spu_conversion_close_1" name="spu[conversion_close]" value="1" <?php checked($opts['conversion_close'], 1); ?> /> <?php _e( 'Yes' ); ?></label>
|
77 |
<label><input type="radio" id="spu_conversion_close_0" name="spu[conversion_close]" value="0" <?php checked($opts['conversion_close'], 0); ?> /> <?php _e( 'No' ); ?></label>
|
78 |
-
<p class="help"><?php _e( 'If you have a form or social shortcode, by default popup will close on submission/conversion',
|
79 |
</td>
|
80 |
</tr>
|
81 |
<tr valign="top" class="powered_link">
|
82 |
-
<th><label for="spu_powered_link"><?php _e( 'Show powered by link?',
|
83 |
<td colspan="3">
|
84 |
<label><input type="radio" id="spu_powered_link_1" name="spu[powered_link]" value="1" <?php checked($opts['powered_link'], 1); ?> /> <?php _e( 'Yes' ); ?></label>
|
85 |
<label><input type="radio" id="spu_powered_link_0" name="spu[powered_link]" value="0" <?php checked($opts['powered_link'], 0); ?> /> <?php _e( 'No' ); ?></label>
|
86 |
-
<p class="help"><?php echo sprintf(__( 'Shows a "powered by" link below your popup. If your affiliate link is set in the <a href="%s">settings</a>, it will be used.',
|
87 |
</td>
|
88 |
</tr>
|
89 |
<?php do_action( 'spu/metaboxes/after_display_options', $opts );?>
|
90 |
</table>
|
91 |
-
<h3 class="spu-title"><?php _e( 'Appearance',
|
92 |
<table class="form-table">
|
93 |
<?php do_action( 'spu/metaboxes/before_appearance_options', $opts );?>
|
94 |
<tr valign="top">
|
95 |
-
<th><label for="spu_bgopacity"><?php _e( 'Background opacity',
|
96 |
<td colspan="3">
|
97 |
<input type="number" id="spu_bgopacity" name="spu[css][bgopacity]" min="0" step="0.1" max="1" value="<?php echo esc_attr($opts['css']['bgopacity']); ?>" />
|
98 |
-
<p class="help"><?php _e( 'Leave at 0 for no background. Max value is 1',
|
99 |
</td>
|
100 |
|
101 |
</tr>
|
102 |
<tr valign="top" class="spu-appearance">
|
103 |
<td>
|
104 |
-
<label class="spu-label" for="spu-background-color"><?php _e( 'Background color',
|
105 |
<input id="spu-background-color" name="spu[css][background_color]" type="text" class="spu-color-field" value="<?php echo esc_attr($opts['css']['background_color']); ?>" />
|
106 |
</td>
|
107 |
<td>
|
108 |
-
<label class="spu-label" for="spu-color"><?php _e( 'Text color',
|
109 |
<input id="spu-color" name="spu[css][color]" type="text" class="spu-color-field" value="<?php echo esc_attr($opts['css']['color']); ?>" />
|
110 |
</td>
|
111 |
<td>
|
112 |
-
<label class="spu-label" for="spu-width"><?php _e( 'Box width',
|
113 |
<input id="spu-width" name="spu[css][width]" id="spu-box-width" type="text" class="small" value="<?php echo esc_attr($opts['css']['width']); ?>" />
|
114 |
</td>
|
115 |
</tr>
|
116 |
<tr valign="top" class="spu-appearance">
|
117 |
<td>
|
118 |
-
<label class="spu-label" for="spu-border-color"><?php _e( 'Border color',
|
119 |
<input name="spu[css][border_color]" id="spu-border-color" type="text" class="spu-color-field" value="<?php echo esc_attr($opts['css']['border_color']); ?>" />
|
120 |
</td>
|
121 |
<td>
|
122 |
-
<label class="spu-label" for="spu-border-width"><?php _e( 'Border width',
|
123 |
<input name="spu[css][border_width]" id="spu-border-width" type="number" min="0" max="25" value="<?php echo esc_attr($opts['css']['border_width']); ?>" /> px
|
124 |
</td>
|
125 |
<td></td>
|
6 |
|
7 |
<?php do_action( 'spu/metaboxes/before_display_options', $opts );?>
|
8 |
<tr valign="top">
|
9 |
+
<th><label for="spu_position"><?php _e( 'Box Position', 'popups' ); ?></label></th>
|
10 |
<td>
|
11 |
<select id="spu_position" name="spu[css][position]" class="widefat">
|
12 |
+
<option value="centered" <?php selected($opts['css']['position'], 'centered'); ?>><?php _e( 'Centered', 'popups' ); ?></option>
|
13 |
+
<option value="top-left" <?php selected($opts['css']['position'], 'top-left'); ?>><?php _e( 'Top Left', 'popups' ); ?></option>
|
14 |
+
<option value="top-right" <?php selected($opts['css']['position'], 'top-right'); ?>><?php _e( 'Top Right', 'popups' ); ?></option>
|
15 |
+
<option value="bottom-left" <?php selected($opts['css']['position'], 'bottom-left'); ?>><?php _e( 'Bottom Left', 'popups' ); ?></option>
|
16 |
+
<option value="bottom-right" <?php selected($opts['css']['position'], 'bottom-right'); ?>><?php _e( 'Bottom Right', 'popups' ); ?></option>
|
17 |
<?php do_action( 'spu/metaboxes/positions', $opts );?>
|
18 |
</select>
|
19 |
</td>
|
20 |
<td colspan="2"></td>
|
21 |
</tr>
|
22 |
<tr valign="top">
|
23 |
+
<th><label for="spu_trigger"><?php _e( 'Trigger action', 'popups' ); ?></label></th>
|
24 |
<td class="spu-sm">
|
25 |
<select id="spu_trigger" name="spu[trigger]" class="widefat">
|
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 |
<?php do_action( 'spu/metaboxes/trigger_options', $opts );?>
|
30 |
</select>
|
31 |
</td>
|
35 |
</td>
|
36 |
</tr>
|
37 |
<tr valign="top" class="auto_hide">
|
38 |
+
<th><label for="spu_auto_hide"><?php _e( 'Auto-hide?', 'popups' ); ?></label></th>
|
39 |
<td colspan="3">
|
40 |
<label><input type="radio" id="spu_auto_hide_1" name="spu[auto_hide]" value="1" <?php checked($opts['auto_hide'], 1); ?> /> <?php _e( 'Yes' ); ?></label>
|
41 |
<label><input type="radio" id="spu_auto_hide_0" name="spu[auto_hide]" value="0" <?php checked($opts['auto_hide'], 0); ?> /> <?php _e( 'No' ); ?></label>
|
42 |
+
<p class="help"><?php _e( 'Hide box again when visitors scroll back up?', 'popups' ); ?></p>
|
43 |
</td>
|
44 |
</tr>
|
45 |
<tr valign="top">
|
46 |
+
<th><label><?php _e( 'Animation', 'popups' ); ?></label></th>
|
47 |
<td colspan="3">
|
48 |
<select id="spu_animation" name="spu[animation]" class="widefat">
|
49 |
+
<option value="fade" <?php selected($opts['animation'], 'fade'); ?> > <?php _e( 'Fade In', 'popups' ); ?></option>
|
50 |
+
<option value="slide" <?php selected($opts['animation'], 'slide'); ?> > <?php _e( 'Slide In', 'popups' ); ?></option>
|
51 |
<?php do_action( 'spu/metaboxes/animations', $opts );?>
|
52 |
</select>
|
53 |
+
<p class="help"><?php _e( 'Slide will only apply when popup is on the corners', 'popups' ); ?></p>
|
54 |
</td>
|
55 |
</tr>
|
56 |
|
57 |
<tr valign="top">
|
58 |
+
<th><label for="spu_cookie"><?php _e( 'Cookie expiration days', 'popups' ); ?></label></th>
|
59 |
<td colspan="3">
|
60 |
<input type="number" id="spu_cookie" name="spu[cookie]" min="0" step="1" value="<?php echo esc_attr($opts['cookie']); ?>" />
|
61 |
+
<p class="help"><?php _e( 'After closing the box, how many days should it stay hidden?', 'popups' ); ?></p>
|
62 |
</td>
|
63 |
|
64 |
</tr>
|
65 |
<tr valign="top">
|
66 |
+
<th><label for="spu_test_mode"><?php _e( 'Enable test mode?', 'popups' ); ?></label></th>
|
67 |
<td colspan="3">
|
68 |
<label><input type="radio" id="spu_test_mode_1" name="spu[test_mode]" value="1" <?php checked($opts['test_mode'], 1); ?> /> <?php _e( 'Yes' ); ?></label>
|
69 |
<label><input type="radio" id="spu_test_mode_0" name="spu[test_mode]" value="0" <?php checked($opts['test_mode'], 0); ?> /> <?php _e( 'No' ); ?></label>
|
70 |
+
<p class="help"><?php _e( 'If test mode is enabled, the box will show up regardless of whether a cookie has been set. (To admins only)', 'popups' ); ?></p>
|
71 |
</td>
|
72 |
</tr>
|
73 |
<tr valign="top" class="conversion_close">
|
74 |
+
<th><label for="spu_conversion_close"><?php _e( 'Close on conversion?', 'popups' ); ?></label></th>
|
75 |
<td colspan="3">
|
76 |
<label><input type="radio" id="spu_conversion_close_1" name="spu[conversion_close]" value="1" <?php checked($opts['conversion_close'], 1); ?> /> <?php _e( 'Yes' ); ?></label>
|
77 |
<label><input type="radio" id="spu_conversion_close_0" name="spu[conversion_close]" value="0" <?php checked($opts['conversion_close'], 0); ?> /> <?php _e( 'No' ); ?></label>
|
78 |
+
<p class="help"><?php _e( 'If you have a form or social shortcode, by default popup will close on submission/conversion', 'popups' ); ?></p>
|
79 |
</td>
|
80 |
</tr>
|
81 |
<tr valign="top" class="powered_link">
|
82 |
+
<th><label for="spu_powered_link"><?php _e( 'Show powered by link?', 'popups' ); ?></label></th>
|
83 |
<td colspan="3">
|
84 |
<label><input type="radio" id="spu_powered_link_1" name="spu[powered_link]" value="1" <?php checked($opts['powered_link'], 1); ?> /> <?php _e( 'Yes' ); ?></label>
|
85 |
<label><input type="radio" id="spu_powered_link_0" name="spu[powered_link]" value="0" <?php checked($opts['powered_link'], 0); ?> /> <?php _e( 'No' ); ?></label>
|
86 |
+
<p class="help"><?php echo sprintf(__( 'Shows a "powered by" link below your popup. If your affiliate link is set in the <a href="%s">settings</a>, it will be used.', 'popups' ), admin_url('edit.php?post_type=spucpt&page=spu_settings')); ?></p>
|
87 |
</td>
|
88 |
</tr>
|
89 |
<?php do_action( 'spu/metaboxes/after_display_options', $opts );?>
|
90 |
</table>
|
91 |
+
<h3 class="spu-title"><?php _e( 'Appearance', 'popups' ); ?></h3>
|
92 |
<table class="form-table">
|
93 |
<?php do_action( 'spu/metaboxes/before_appearance_options', $opts );?>
|
94 |
<tr valign="top">
|
95 |
+
<th><label for="spu_bgopacity"><?php _e( 'Background opacity', 'popups' ); ?></label></th>
|
96 |
<td colspan="3">
|
97 |
<input type="number" id="spu_bgopacity" name="spu[css][bgopacity]" min="0" step="0.1" max="1" value="<?php echo esc_attr($opts['css']['bgopacity']); ?>" />
|
98 |
+
<p class="help"><?php _e( 'Leave at 0 for no background. Max value is 1', 'popups' ); ?></p>
|
99 |
</td>
|
100 |
|
101 |
</tr>
|
102 |
<tr valign="top" class="spu-appearance">
|
103 |
<td>
|
104 |
+
<label class="spu-label" for="spu-background-color"><?php _e( 'Background color', 'popups' ); ?></label>
|
105 |
<input id="spu-background-color" name="spu[css][background_color]" type="text" class="spu-color-field" value="<?php echo esc_attr($opts['css']['background_color']); ?>" />
|
106 |
</td>
|
107 |
<td>
|
108 |
+
<label class="spu-label" for="spu-color"><?php _e( 'Text color', 'popups' ); ?></label>
|
109 |
<input id="spu-color" name="spu[css][color]" type="text" class="spu-color-field" value="<?php echo esc_attr($opts['css']['color']); ?>" />
|
110 |
</td>
|
111 |
<td>
|
112 |
+
<label class="spu-label" for="spu-width"><?php _e( 'Box width', 'popups' ); ?></label>
|
113 |
<input id="spu-width" name="spu[css][width]" id="spu-box-width" type="text" class="small" value="<?php echo esc_attr($opts['css']['width']); ?>" />
|
114 |
</td>
|
115 |
</tr>
|
116 |
<tr valign="top" class="spu-appearance">
|
117 |
<td>
|
118 |
+
<label class="spu-label" for="spu-border-color"><?php _e( 'Border color', 'popups' ); ?></label>
|
119 |
<input name="spu[css][border_color]" id="spu-border-color" type="text" class="spu-color-field" value="<?php echo esc_attr($opts['css']['border_color']); ?>" />
|
120 |
</td>
|
121 |
<td>
|
122 |
+
<label class="spu-label" for="spu-border-width"><?php _e( 'Border width', 'popups' ); ?></label>
|
123 |
<input name="spu[css][border_width]" id="spu-border-width" type="number" min="0" max="25" value="<?php echo esc_attr($opts['css']['border_width']); ?>" /> px
|
124 |
</td>
|
125 |
<td></td>
|
admin/views/metaboxes/metabox-premium.php
CHANGED
@@ -13,23 +13,23 @@ if($today > $blackbegin && $today < $blackend) : ?>
|
|
13 |
</div>
|
14 |
<?php endif;?>
|
15 |
|
16 |
-
<p><?php _e( 'Take the best WordPress Popups plugin to the next level with Popups Premium extension.',
|
17 |
-
<h2><?php _e( 'Popups Premium Features:',
|
18 |
<ul>
|
19 |
-
<li><?php _e( 'Beautiful optin forms for popular mail providers',
|
20 |
-
<li><?php _e( 'Currently supporting MailChimp, Aweber, Postmatic, Mailpoet',
|
21 |
-
<li><?php _e( 'Track impressions and Conversions of social likes and forms submissions like Contact Form 7, Gravity forms, etc',
|
22 |
-
<li><?php _e( 'Track impressions and Conversions also in Google Analytics',
|
23 |
-
<li><?php _e( 'Exit Intent technology',
|
24 |
-
<li><?php _e( '8 New animations effects',
|
25 |
-
<li><?php _e( 'Exit Intent technology',
|
26 |
-
<li><?php _e( 'New trigger methods',
|
27 |
-
<li><?php _e( 'Timer for auto closing',
|
28 |
-
<li><?php _e( 'Ability to disable close button',
|
29 |
-
<li><?php _e( 'Ability to disable Advanced close methods like esc or clicking outside of the popup',
|
30 |
-
<li><?php _e( 'Premium support',
|
31 |
</ul>
|
32 |
<p><strong>Hurry up and get your copy!</strong> Take advantage of this <span style="color:red">launch offer</span> before the price goes up. We have a <strong>lot of new features</strong> to be added soon like aweber integration, etc</p>
|
33 |
<p style="text-align:center">
|
34 |
-
<a class="button-primary" href="http://wp.timersys.com/downloads/popups-premium/?utm_source=Plugin&utm_medium=buy-button&utm_campaign=Popups%20Premium"><?php _e( 'Buy Now!',
|
35 |
</p>
|
13 |
</div>
|
14 |
<?php endif;?>
|
15 |
|
16 |
+
<p><?php _e( 'Take the best WordPress Popups plugin to the next level with Popups Premium extension.', 'popups' );?></p>
|
17 |
+
<h2><?php _e( 'Popups Premium Features:', 'popups' );?></h2>
|
18 |
<ul>
|
19 |
+
<li><?php _e( 'Beautiful optin forms for popular mail providers', 'popups' );?></li>
|
20 |
+
<li><?php _e( 'Currently supporting MailChimp, Aweber, Postmatic, Mailpoet', 'popups' );?></li>
|
21 |
+
<li><?php _e( 'Track impressions and Conversions of social likes and forms submissions like Contact Form 7, Gravity forms, etc', 'popups' );?></li>
|
22 |
+
<li><?php _e( 'Track impressions and Conversions also in Google Analytics', 'popups' );?></li>
|
23 |
+
<li><?php _e( 'Exit Intent technology', 'popups' );?></li>
|
24 |
+
<li><?php _e( '8 New animations effects', 'popups' );?> - <a href="http://wp.timersys.com/popups/?utm_source=Plugin&utm_medium=demo-button&utm_campaign=Popups%20Premium">Online demo</a></li>
|
25 |
+
<li><?php _e( 'Exit Intent technology', 'popups' );?></li>
|
26 |
+
<li><?php _e( 'New trigger methods', 'popups' );?></li>
|
27 |
+
<li><?php _e( 'Timer for auto closing', 'popups' );?></li>
|
28 |
+
<li><?php _e( 'Ability to disable close button', 'popups' );?></li>
|
29 |
+
<li><?php _e( 'Ability to disable Advanced close methods like esc or clicking outside of the popup', 'popups' );?></li>
|
30 |
+
<li><?php _e( 'Premium support', 'popups' );?></li>
|
31 |
</ul>
|
32 |
<p><strong>Hurry up and get your copy!</strong> Take advantage of this <span style="color:red">launch offer</span> before the price goes up. We have a <strong>lot of new features</strong> to be added soon like aweber integration, etc</p>
|
33 |
<p style="text-align:center">
|
34 |
+
<a class="button-primary" href="http://wp.timersys.com/downloads/popups-premium/?utm_source=Plugin&utm_medium=buy-button&utm_campaign=Popups%20Premium"><?php _e( 'Buy Now!', 'popups' );?></a>
|
35 |
</p>
|
admin/views/metaboxes/metabox-rules.php
CHANGED
@@ -16,8 +16,8 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
16 |
<tbody>
|
17 |
<tr>
|
18 |
<td class="label">
|
19 |
-
<label for="post_type"><?php _e("Rules",
|
20 |
-
<p class="description"><?php _e("Create a set of rules to determine where the popup will show",
|
21 |
</td>
|
22 |
<td>
|
23 |
<div class="rules-groups">
|
@@ -28,9 +28,9 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
28 |
?>
|
29 |
<div class="rules-group" data-id="<?php echo $group_id; ?>">
|
30 |
<?php if( $group_id == 'group_0' ): ?>
|
31 |
-
<h4><?php _e("Show this popup if",
|
32 |
<?php else: ?>
|
33 |
-
<h4><?php _e("or",
|
34 |
<?php endif; ?>
|
35 |
<?php if( is_array($group) ): ?>
|
36 |
<table class="spu_table widefat">
|
@@ -58,8 +58,8 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
58 |
<td class="operator"><?php
|
59 |
|
60 |
$choices = array(
|
61 |
-
'==' => __("is equal to",
|
62 |
-
'!=' => __("is not equal to",
|
63 |
);
|
64 |
|
65 |
|
@@ -90,7 +90,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
90 |
|
91 |
?></td>
|
92 |
<td class="add">
|
93 |
-
<a href="#" class="rules-add-rule button"><?php _e("and",
|
94 |
</td>
|
95 |
<td class="remove">
|
96 |
<a href="#" class="rules-remove-rule rules-remove-rule">-</a>
|
@@ -103,9 +103,9 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
103 |
</div>
|
104 |
<?php endforeach; ?>
|
105 |
|
106 |
-
<h4><?php _e("or",
|
107 |
|
108 |
-
<a class="button rules-add-group" href="#"><?php _e("Add rule group",
|
109 |
|
110 |
<?php endif; ?>
|
111 |
|
16 |
<tbody>
|
17 |
<tr>
|
18 |
<td class="label">
|
19 |
+
<label for="post_type"><?php _e("Rules", 'popups' ); ?></label>
|
20 |
+
<p class="description"><?php _e("Create a set of rules to determine where the popup will show", 'popups' ); ?></p>
|
21 |
</td>
|
22 |
<td>
|
23 |
<div class="rules-groups">
|
28 |
?>
|
29 |
<div class="rules-group" data-id="<?php echo $group_id; ?>">
|
30 |
<?php if( $group_id == 'group_0' ): ?>
|
31 |
+
<h4><?php _e("Show this popup if", 'popups' ); ?></h4>
|
32 |
<?php else: ?>
|
33 |
+
<h4><?php _e("or", 'popups' ); ?></h4>
|
34 |
<?php endif; ?>
|
35 |
<?php if( is_array($group) ): ?>
|
36 |
<table class="spu_table widefat">
|
58 |
<td class="operator"><?php
|
59 |
|
60 |
$choices = array(
|
61 |
+
'==' => __("is equal to", 'popups' ),
|
62 |
+
'!=' => __("is not equal to", 'popups' ),
|
63 |
);
|
64 |
|
65 |
|
90 |
|
91 |
?></td>
|
92 |
<td class="add">
|
93 |
+
<a href="#" class="rules-add-rule button"><?php _e("and", 'popups' ); ?></a>
|
94 |
</td>
|
95 |
<td class="remove">
|
96 |
<a href="#" class="rules-remove-rule rules-remove-rule">-</a>
|
103 |
</div>
|
104 |
<?php endforeach; ?>
|
105 |
|
106 |
+
<h4><?php _e("or", 'popups' ); ?></h4>
|
107 |
|
108 |
+
<a class="button rules-add-group" href="#"><?php _e("Add rule group", 'popups' ); ?></a>
|
109 |
|
110 |
<?php endif; ?>
|
111 |
|
admin/views/metaboxes/metabox-support.php
CHANGED
@@ -3,5 +3,5 @@
|
|
3 |
if ( !defined( 'ABSPATH' ) ) exit;
|
4 |
?>
|
5 |
|
6 |
-
<p><?php echo sprintf( __( 'You are using Popups plugin v%s',
|
7 |
-
<p><?php echo sprintf( __( 'If you need support please go to the WordPress.org <a href="%s">support forums</a>',
|
3 |
if ( !defined( 'ABSPATH' ) ) exit;
|
4 |
?>
|
5 |
|
6 |
+
<p><?php echo sprintf( __( 'You are using Popups plugin v%s', 'popups' ), SocialPopup::VERSION );?></p>
|
7 |
+
<p><?php echo sprintf( __( 'If you need support please go to the WordPress.org <a href="%s">support forums</a>', 'popups' ), 'http://wordpress.org/support/plugin/http://wordpress.org/plugins/popups/');?></p>
|
admin/views/settings-page.php
CHANGED
@@ -14,79 +14,79 @@
|
|
14 |
<table class="form-table">
|
15 |
<?php do_action( 'spu/settings_page/before' ); ?>
|
16 |
<tr valign="top" class="">
|
17 |
-
<th><label for="add_link"><?php _e( 'Affiliate link',
|
18 |
<td colspan="3">
|
19 |
<label><input type="text" id="add_link" name="spu_settings[aff_link]" value="<?php echo @$opts['aff_link'];?>" class="regular-text" />
|
20 |
-
<p class="help"><?php echo sprintf(__( 'You can earn money by promoting the plugin! Join <a href="%s">our affiliate program</a> and paste your affiliate link here to earn 35% in commissions . Once entered, it will replace the default "Powered by" on the popups.',
|
21 |
</td>
|
22 |
</tr>
|
23 |
<tr valign="top" class="">
|
24 |
-
<th><label for="ajax_mode"><?php _e( 'Ajax mode?',
|
25 |
<td colspan="3">
|
26 |
<label><input type="checkbox" id="ajax_mode" name="spu_settings[ajax_mode]" value="1" <?php checked(@$opts['ajax_mode'], 1); ?> />
|
27 |
-
<p class="help"><?php _e( 'Load popups using ajax. Compatible with cache plugins, but might not work with all plugins',
|
28 |
</td>
|
29 |
</tr>
|
30 |
|
31 |
<tr valign="top" class="">
|
32 |
-
<th><label for="debug"><?php _e( 'Enable Debug mode?',
|
33 |
<td colspan="3">
|
34 |
<label><input type="checkbox" id="debug" name="spu_settings[debug]" value="1" <?php checked(@$opts['debug'], 1); ?> />
|
35 |
-
<p class="help"><?php _e( 'Will use uncompressed js',
|
36 |
</td>
|
37 |
|
38 |
</tr>
|
39 |
<tr valign="top" class="">
|
40 |
-
<th><label for="safe"><?php _e( 'Enable safe mode?',
|
41 |
<td colspan="3">
|
42 |
<label><input type="checkbox" id="safe" name="spu_settings[safe]" value="1" <?php checked(@$opts['safe'], 1); ?> />
|
43 |
-
<p class="help"><?php _e( 'Will move all popups to top of the screen.',
|
44 |
</td>
|
45 |
|
46 |
</tr>
|
47 |
<tr valign="top" class="">
|
48 |
-
<th><label for="style"><?php _e( 'Remove shortcodes style',
|
49 |
<td colspan="3">
|
50 |
<label><input type="checkbox" id="style" name="spu_settings[shortcodes_style]" value="1" <?php checked(@$opts['shortcodes_style'], 1); ?> />
|
51 |
-
<p class="help"><?php _e( 'By default the plugin will apply some style to shortcodes. Check here if you want to manually style them',
|
52 |
</td>
|
53 |
|
54 |
</tr>
|
55 |
<tr valign="top" class="">
|
56 |
-
<th><label for="style"><?php _e( 'Unload Facebook javascript',
|
57 |
<td colspan="3">
|
58 |
<label><input type="checkbox" id="style" name="spu_settings[facebook]" value="1" <?php checked(@$opts['facebook'], 1); ?> />
|
59 |
-
<p class="help"><?php _e( 'If you use your own Facebook script, check this',
|
60 |
</td>
|
61 |
|
62 |
</tr>
|
63 |
<tr valign="top" class="">
|
64 |
-
<th><label for="style"><?php _e( 'Unload Google javascript',
|
65 |
<td colspan="3">
|
66 |
<label><input type="checkbox" id="style" name="spu_settings[google]" value="1" <?php checked(@$opts['google'], 1); ?> />
|
67 |
-
<p class="help"><?php _e( 'If you use your own Google script, check this',
|
68 |
</td>
|
69 |
|
70 |
</tr>
|
71 |
<tr valign="top" class="">
|
72 |
-
<th><label for="style"><?php _e( 'Unload Twitter javascript',
|
73 |
<td colspan="3">
|
74 |
<label><input type="checkbox" id="style" name="spu_settings[twitter]" value="1" <?php checked(@$opts['twitter'], 1); ?> />
|
75 |
-
<p class="help"><?php _e( 'If you use your own Twitter script, check this',
|
76 |
</td>
|
77 |
|
78 |
</tr>
|
79 |
<?php do_action( 'spu/settings_page/after' ); ?>
|
80 |
|
81 |
<tr valign="top" class="">
|
82 |
-
<th><label for="uninstall"><?php _e( 'Delete all data on Uninstall',
|
83 |
<td colspan="3">
|
84 |
<label><input type="checkbox" id="uninstall" name="spu_settings[uninstall]" value="1" <?php checked(@$opts['uninstall'], 1); ?> />
|
85 |
-
<p class="help"><?php _e( 'When you uninstall the plugin all popups, settings and stats will be deleted from your db',
|
86 |
</td>
|
87 |
|
88 |
</tr>
|
89 |
-
<tr><td><input type="submit" class="button-primary" value="<?php _e( 'Save settings',
|
90 |
<?php wp_nonce_field('spu_save_settings','spu_nonce'); ?>
|
91 |
</table>
|
92 |
</form>
|
14 |
<table class="form-table">
|
15 |
<?php do_action( 'spu/settings_page/before' ); ?>
|
16 |
<tr valign="top" class="">
|
17 |
+
<th><label for="add_link"><?php _e( 'Affiliate link', 'popups' ); ?></label></th>
|
18 |
<td colspan="3">
|
19 |
<label><input type="text" id="add_link" name="spu_settings[aff_link]" value="<?php echo @$opts['aff_link'];?>" class="regular-text" />
|
20 |
+
<p class="help"><?php echo sprintf(__( 'You can earn money by promoting the plugin! Join <a href="%s">our affiliate program</a> and paste your affiliate link here to earn 35% in commissions . Once entered, it will replace the default "Powered by" on the popups.', 'popups' ) , 'https://wp.timersys.com/affiliates/'); ?></p>
|
21 |
</td>
|
22 |
</tr>
|
23 |
<tr valign="top" class="">
|
24 |
+
<th><label for="ajax_mode"><?php _e( 'Ajax mode?', 'popups' ); ?></label></th>
|
25 |
<td colspan="3">
|
26 |
<label><input type="checkbox" id="ajax_mode" name="spu_settings[ajax_mode]" value="1" <?php checked(@$opts['ajax_mode'], 1); ?> />
|
27 |
+
<p class="help"><?php _e( 'Load popups using ajax. Compatible with cache plugins, but might not work with all plugins', 'popups' ); ?></p>
|
28 |
</td>
|
29 |
</tr>
|
30 |
|
31 |
<tr valign="top" class="">
|
32 |
+
<th><label for="debug"><?php _e( 'Enable Debug mode?', 'popups' ); ?></label></th>
|
33 |
<td colspan="3">
|
34 |
<label><input type="checkbox" id="debug" name="spu_settings[debug]" value="1" <?php checked(@$opts['debug'], 1); ?> />
|
35 |
+
<p class="help"><?php _e( 'Will use uncompressed js', 'popups' ); ?></p>
|
36 |
</td>
|
37 |
|
38 |
</tr>
|
39 |
<tr valign="top" class="">
|
40 |
+
<th><label for="safe"><?php _e( 'Enable safe mode?', 'popups' ); ?></label></th>
|
41 |
<td colspan="3">
|
42 |
<label><input type="checkbox" id="safe" name="spu_settings[safe]" value="1" <?php checked(@$opts['safe'], 1); ?> />
|
43 |
+
<p class="help"><?php _e( 'Will move all popups to top of the screen.', 'popups' ); ?></p>
|
44 |
</td>
|
45 |
|
46 |
</tr>
|
47 |
<tr valign="top" class="">
|
48 |
+
<th><label for="style"><?php _e( 'Remove shortcodes style', 'popups' ); ?></label></th>
|
49 |
<td colspan="3">
|
50 |
<label><input type="checkbox" id="style" name="spu_settings[shortcodes_style]" value="1" <?php checked(@$opts['shortcodes_style'], 1); ?> />
|
51 |
+
<p class="help"><?php _e( 'By default the plugin will apply some style to shortcodes. Check here if you want to manually style them', 'popups' ); ?></p>
|
52 |
</td>
|
53 |
|
54 |
</tr>
|
55 |
<tr valign="top" class="">
|
56 |
+
<th><label for="style"><?php _e( 'Unload Facebook javascript', 'popups' ); ?></label></th>
|
57 |
<td colspan="3">
|
58 |
<label><input type="checkbox" id="style" name="spu_settings[facebook]" value="1" <?php checked(@$opts['facebook'], 1); ?> />
|
59 |
+
<p class="help"><?php _e( 'If you use your own Facebook script, check this', 'popups' ); ?></p>
|
60 |
</td>
|
61 |
|
62 |
</tr>
|
63 |
<tr valign="top" class="">
|
64 |
+
<th><label for="style"><?php _e( 'Unload Google javascript', 'popups' ); ?></label></th>
|
65 |
<td colspan="3">
|
66 |
<label><input type="checkbox" id="style" name="spu_settings[google]" value="1" <?php checked(@$opts['google'], 1); ?> />
|
67 |
+
<p class="help"><?php _e( 'If you use your own Google script, check this', 'popups' ); ?></p>
|
68 |
</td>
|
69 |
|
70 |
</tr>
|
71 |
<tr valign="top" class="">
|
72 |
+
<th><label for="style"><?php _e( 'Unload Twitter javascript', 'popups' ); ?></label></th>
|
73 |
<td colspan="3">
|
74 |
<label><input type="checkbox" id="style" name="spu_settings[twitter]" value="1" <?php checked(@$opts['twitter'], 1); ?> />
|
75 |
+
<p class="help"><?php _e( 'If you use your own Twitter script, check this', 'popups' ); ?></p>
|
76 |
</td>
|
77 |
|
78 |
</tr>
|
79 |
<?php do_action( 'spu/settings_page/after' ); ?>
|
80 |
|
81 |
<tr valign="top" class="">
|
82 |
+
<th><label for="uninstall"><?php _e( 'Delete all data on Uninstall', 'popups' ); ?></label></th>
|
83 |
<td colspan="3">
|
84 |
<label><input type="checkbox" id="uninstall" name="spu_settings[uninstall]" value="1" <?php checked(@$opts['uninstall'], 1); ?> />
|
85 |
+
<p class="help"><?php _e( 'When you uninstall the plugin all popups, settings and stats will be deleted from your db', 'popups' ); ?></p>
|
86 |
</td>
|
87 |
|
88 |
</tr>
|
89 |
+
<tr><td><input type="submit" class="button-primary" value="<?php _e( 'Save settings', 'popups' );?>"/></td>
|
90 |
<?php wp_nonce_field('spu_save_settings','spu_nonce'); ?>
|
91 |
</table>
|
92 |
</form>
|
includes/class-spu-helper.php
CHANGED
@@ -23,8 +23,6 @@ class Spu_Helper {
|
|
23 |
|
24 |
public static function ajax_render_rules( $options = array() )
|
25 |
{
|
26 |
-
$plugin = SocialPopup::get_instance();
|
27 |
-
self::$plugin_slug = $plugin->get_plugin_slug();
|
28 |
|
29 |
// defaults
|
30 |
$defaults = array(
|
@@ -130,14 +128,14 @@ class Spu_Helper {
|
|
130 |
case "page_type" :
|
131 |
|
132 |
$choices = array(
|
133 |
-
'all_pages' => __("All Pages",
|
134 |
-
'front_page' => __("Front Page",
|
135 |
-
'posts_page' => __("Posts Page",
|
136 |
-
'category_page' => __("Category Page",
|
137 |
-
'archive_page' => __("Archives Page",
|
138 |
-
'top_level' => __("Top Level Page (parent of 0)",
|
139 |
-
'parent' => __("Parent Page (has children)",
|
140 |
-
'child' => __("Child Page (has parent)",
|
141 |
);
|
142 |
|
143 |
break;
|
@@ -145,7 +143,7 @@ class Spu_Helper {
|
|
145 |
case "page_template" :
|
146 |
|
147 |
$choices = array(
|
148 |
-
'default' => __("Default Template",
|
149 |
);
|
150 |
|
151 |
$templates = get_page_templates();
|
@@ -257,7 +255,7 @@ class Spu_Helper {
|
|
257 |
case "search_engine" :
|
258 |
case "same_site" :
|
259 |
|
260 |
-
$choices = array('true' => __( 'True',
|
261 |
|
262 |
break;
|
263 |
|
@@ -392,7 +390,7 @@ class Spu_Helper {
|
|
392 |
'powered_link' => '1',
|
393 |
);
|
394 |
|
395 |
-
$opts = get_post_meta( $id, 'spu_options', true );
|
396 |
|
397 |
return wp_parse_args( $opts, apply_filters( 'spu/metaboxes/default_options', $defaults ) );
|
398 |
}
|
23 |
|
24 |
public static function ajax_render_rules( $options = array() )
|
25 |
{
|
|
|
|
|
26 |
|
27 |
// defaults
|
28 |
$defaults = array(
|
128 |
case "page_type" :
|
129 |
|
130 |
$choices = array(
|
131 |
+
'all_pages' => __("All Pages", 'popups'),
|
132 |
+
'front_page' => __("Front Page", 'popups'),
|
133 |
+
'posts_page' => __("Posts Page", 'popups'),
|
134 |
+
'category_page' => __("Category Page", 'popups'),
|
135 |
+
'archive_page' => __("Archives Page", 'popups'),
|
136 |
+
'top_level' => __("Top Level Page (parent of 0)", 'popups'),
|
137 |
+
'parent' => __("Parent Page (has children)", 'popups'),
|
138 |
+
'child' => __("Child Page (has parent)", 'popups'),
|
139 |
);
|
140 |
|
141 |
break;
|
143 |
case "page_template" :
|
144 |
|
145 |
$choices = array(
|
146 |
+
'default' => __("Default Template", 'popups'),
|
147 |
);
|
148 |
|
149 |
$templates = get_page_templates();
|
255 |
case "search_engine" :
|
256 |
case "same_site" :
|
257 |
|
258 |
+
$choices = array('true' => __( 'True', 'popups' ) );
|
259 |
|
260 |
break;
|
261 |
|
390 |
'powered_link' => '1',
|
391 |
);
|
392 |
|
393 |
+
$opts = apply_filters( 'spu/metaboxes/box_options', get_post_meta( $id, 'spu_options', true ), $id );
|
394 |
|
395 |
return wp_parse_args( $opts, apply_filters( 'spu/metaboxes/default_options', $defaults ) );
|
396 |
}
|
languages/{spu-es_ES.mo → popups-es_ES.mo}
RENAMED
Binary file
|
languages/{spu-es_ES.po → popups-es_ES.po}
RENAMED
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"Project-Id-Version: Popups\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
|
7 |
"POT-Creation-Date: 2015-06-14 00:02-0300\n"
|
8 |
-
"PO-Revision-Date: 2015-
|
9 |
"Last-Translator: Damian Logghe <info@timersys.com>\n"
|
10 |
"Language-Team: Timersys <info@timersys.com>\n"
|
11 |
"Language: es_ES\n"
|
5 |
"Project-Id-Version: Popups\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
|
7 |
"POT-Creation-Date: 2015-06-14 00:02-0300\n"
|
8 |
+
"PO-Revision-Date: 2015-10-01 15:15-0300\n"
|
9 |
"Last-Translator: Damian Logghe <info@timersys.com>\n"
|
10 |
"Language-Team: Timersys <info@timersys.com>\n"
|
11 |
"Language: es_ES\n"
|
languages/popups-ru_RU.mo
ADDED
Binary file
|
languages/popups-ru_RU.po
ADDED
@@ -0,0 +1,730 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2013 TODO
|
2 |
+
# This file is distributed under the same license as the TODO package.
|
3 |
+
# Translators:
|
4 |
+
# Анатолий, 2015
|
5 |
+
msgid ""
|
6 |
+
msgstr ""
|
7 |
+
"Project-Id-Version: Popups\n"
|
8 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
|
9 |
+
"POT-Creation-Date: 2015-06-14 00:02-0300\n"
|
10 |
+
"PO-Revision-Date: 2015-10-01 11:18-0300\n"
|
11 |
+
"Last-Translator: Анатолий\n"
|
12 |
+
"Language-Team: Russian (Russia) (http://www.transifex.com/timersys/popups/language/ru_RU/)\n"
|
13 |
+
"MIME-Version: 1.0\n"
|
14 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
15 |
+
"Content-Transfer-Encoding: 8bit\n"
|
16 |
+
"Language: ru_RU\n"
|
17 |
+
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
|
18 |
+
"X-Generator: Poedit 1.7.4\n"
|
19 |
+
"X-Poedit-Basepath: ../\n"
|
20 |
+
"X-Poedit-KeywordsList: __;_e;_n;_x;esc_html_e;esc_html__;esc_attr_e;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2\n"
|
21 |
+
"X-Poedit-SearchPath-0: .\n"
|
22 |
+
|
23 |
+
#: admin/class-social-popup-admin.php:154
|
24 |
+
msgctxt "post type singular name"
|
25 |
+
msgid "Popups"
|
26 |
+
msgstr "Popups"
|
27 |
+
|
28 |
+
#: admin/class-social-popup-admin.php:155
|
29 |
+
msgctxt "admin menu"
|
30 |
+
msgid "Popups"
|
31 |
+
msgstr "Popups"
|
32 |
+
|
33 |
+
#: admin/class-social-popup-admin.php:156
|
34 |
+
msgctxt "add new on admin bar"
|
35 |
+
msgid "Popups"
|
36 |
+
msgstr "Popups"
|
37 |
+
|
38 |
+
#: admin/class-social-popup-admin.php:157
|
39 |
+
msgctxt "Popups"
|
40 |
+
msgid "Add New"
|
41 |
+
msgstr "Добавить новый"
|
42 |
+
|
43 |
+
#: admin/class-social-popup-admin.php:158
|
44 |
+
msgid "Add New Popups"
|
45 |
+
msgstr "Добавить новый Popups"
|
46 |
+
|
47 |
+
#: admin/class-social-popup-admin.php:159
|
48 |
+
msgid "New Popups"
|
49 |
+
msgstr "Новый Popups"
|
50 |
+
|
51 |
+
#: admin/class-social-popup-admin.php:160
|
52 |
+
msgid "Edit Popups"
|
53 |
+
msgstr "Редактировать Popups"
|
54 |
+
|
55 |
+
#: admin/class-social-popup-admin.php:161
|
56 |
+
msgid "View Popups"
|
57 |
+
msgstr "Редактировать Popups"
|
58 |
+
|
59 |
+
#: admin/class-social-popup-admin.php:162
|
60 |
+
msgid "All Popups"
|
61 |
+
msgstr "Все Popups"
|
62 |
+
|
63 |
+
#: admin/class-social-popup-admin.php:163
|
64 |
+
msgid "Search Popups"
|
65 |
+
msgstr "Поиск Popups"
|
66 |
+
|
67 |
+
#: admin/class-social-popup-admin.php:164
|
68 |
+
msgid "Parent Popups:"
|
69 |
+
msgstr "Родительский Popups:"
|
70 |
+
|
71 |
+
#: admin/class-social-popup-admin.php:165
|
72 |
+
msgid "No Popups found."
|
73 |
+
msgstr "Не найден Popups"
|
74 |
+
|
75 |
+
#: admin/class-social-popup-admin.php:166
|
76 |
+
msgid "No Popups found in Trash."
|
77 |
+
msgstr "Не найден Popups в Корзине"
|
78 |
+
|
79 |
+
#: admin/class-social-popup-admin.php:255
|
80 |
+
msgid "Popups Premium"
|
81 |
+
msgstr "Премиум Popups"
|
82 |
+
|
83 |
+
#: admin/class-social-popup-admin.php:266
|
84 |
+
msgid "PopUp Shortcodes"
|
85 |
+
msgstr "Шорткоды PopUp"
|
86 |
+
|
87 |
+
#: admin/class-social-popup-admin.php:275
|
88 |
+
msgid "PopUp Display Rules"
|
89 |
+
msgstr "Отображать правила PopUp"
|
90 |
+
|
91 |
+
#: admin/class-social-popup-admin.php:284
|
92 |
+
msgid "Display Options"
|
93 |
+
msgstr "Отображать опции"
|
94 |
+
|
95 |
+
#: admin/class-social-popup-admin.php:293
|
96 |
+
msgid "Need support?"
|
97 |
+
msgstr "Нужна помощь?"
|
98 |
+
|
99 |
+
#: admin/class-social-popup-admin.php:301
|
100 |
+
msgid "Donate & support"
|
101 |
+
msgstr "Помощь и Поддержка"
|
102 |
+
|
103 |
+
#: admin/class-social-popup-admin.php:309
|
104 |
+
msgid "About the developer"
|
105 |
+
msgstr "О разработчике"
|
106 |
+
|
107 |
+
#: admin/class-social-popup-admin.php:557 admin/views/metaboxes/metabox-rules.php:33 admin/views/metaboxes/metabox-rules.php:106
|
108 |
+
msgid "or"
|
109 |
+
msgstr "или"
|
110 |
+
|
111 |
+
#: admin/class-social-popup-admin.php:584
|
112 |
+
msgid "Add a Popup"
|
113 |
+
msgstr "Добавить Popup"
|
114 |
+
|
115 |
+
#: admin/class-social-popup-admin.php:708
|
116 |
+
msgid "User"
|
117 |
+
msgstr "Пользователь"
|
118 |
+
|
119 |
+
#: admin/class-social-popup-admin.php:709
|
120 |
+
msgid "User role"
|
121 |
+
msgstr "Роль пользователя"
|
122 |
+
|
123 |
+
#: admin/class-social-popup-admin.php:710
|
124 |
+
msgid "User is logged"
|
125 |
+
msgstr "Пользователь залогинен"
|
126 |
+
|
127 |
+
#: admin/class-social-popup-admin.php:711
|
128 |
+
msgid "User never left a comment"
|
129 |
+
msgstr "Пользователь никогда не комментировал"
|
130 |
+
|
131 |
+
#: admin/class-social-popup-admin.php:712
|
132 |
+
msgid "User came via a search engine"
|
133 |
+
msgstr "Пользователь пришел из поисковых систем"
|
134 |
+
|
135 |
+
#: admin/class-social-popup-admin.php:713
|
136 |
+
msgid "User did not arrive via another page on your site"
|
137 |
+
msgstr "Пользователь не пришел с другой страницы на вашем сайте"
|
138 |
+
|
139 |
+
#: admin/class-social-popup-admin.php:715 admin/class-social-popup-admin.php:716
|
140 |
+
msgid "Post"
|
141 |
+
msgstr "Публикация"
|
142 |
+
|
143 |
+
#: admin/class-social-popup-admin.php:717
|
144 |
+
msgid "Post ID"
|
145 |
+
msgstr "ID публикации"
|
146 |
+
|
147 |
+
#: admin/class-social-popup-admin.php:718
|
148 |
+
msgid "Post Type"
|
149 |
+
msgstr "Тип публикации"
|
150 |
+
|
151 |
+
#: admin/class-social-popup-admin.php:719
|
152 |
+
msgid "Post Category"
|
153 |
+
msgstr "Категория публикации"
|
154 |
+
|
155 |
+
#: admin/class-social-popup-admin.php:720
|
156 |
+
msgid "Post Format"
|
157 |
+
msgstr "Формат публикации"
|
158 |
+
|
159 |
+
#: admin/class-social-popup-admin.php:721
|
160 |
+
msgid "Post Status"
|
161 |
+
msgstr "Статус публикации"
|
162 |
+
|
163 |
+
#: admin/class-social-popup-admin.php:722
|
164 |
+
msgid "Post Taxonomy"
|
165 |
+
msgstr "Таксономия публикации"
|
166 |
+
|
167 |
+
#: admin/class-social-popup-admin.php:724 admin/class-social-popup-admin.php:725
|
168 |
+
msgid "Page"
|
169 |
+
msgstr "Страница"
|
170 |
+
|
171 |
+
#: admin/class-social-popup-admin.php:726
|
172 |
+
msgid "Page Type"
|
173 |
+
msgstr "Тип страницы"
|
174 |
+
|
175 |
+
#: admin/class-social-popup-admin.php:727
|
176 |
+
msgid "Page Parent"
|
177 |
+
msgstr "Родительская страница"
|
178 |
+
|
179 |
+
#: admin/class-social-popup-admin.php:728
|
180 |
+
msgid "Page Template"
|
181 |
+
msgstr "Шаблон страницы"
|
182 |
+
|
183 |
+
#: admin/class-social-popup-admin.php:730
|
184 |
+
msgid "Other"
|
185 |
+
msgstr "Другие"
|
186 |
+
|
187 |
+
#: admin/class-social-popup-admin.php:731
|
188 |
+
msgid "Referrer"
|
189 |
+
msgstr "Реферер"
|
190 |
+
|
191 |
+
#: admin/class-social-popup-admin.php:732
|
192 |
+
msgid "Mobile Phone"
|
193 |
+
msgstr "Мобильный телефон"
|
194 |
+
|
195 |
+
#: admin/class-social-popup-admin.php:733
|
196 |
+
msgid "Tablet"
|
197 |
+
msgstr "Планшет"
|
198 |
+
|
199 |
+
#: admin/includes/class-spu-notices.php:30
|
200 |
+
#, php-format
|
201 |
+
msgid "We noticed that you have been using our plugin for a while and we would like to ask you a little favour. If you are happy with it and can take a minute please <a href=\"%s\" target=\"_blank\">leave a nice review</a> on WordPress. It will be a tremendous help for us!"
|
202 |
+
msgstr "Мы заметили, что вы использовали наш плагин некоторое время, и мы хотели бы попросить оказать нам небольшую услугу. Если вам понравился наш плагин и у вас есть свободная минутка, пожалуйста <a href=\"%s\" target=\"_blank\">оставьте хороший отзыв</a> на WordPress. Это будет огромная помощь для нас!"
|
203 |
+
|
204 |
+
#: admin/includes/class-spu-notices.php:32
|
205 |
+
#, php-format
|
206 |
+
msgid "<a href=\"%s\" target=\"_blank\">Leave a nice review</a>"
|
207 |
+
msgstr "<a href=\"%s\" target=\"_blank\">Оставьте хороший отзыв</a>"
|
208 |
+
|
209 |
+
#: admin/includes/class-spu-notices.php:33
|
210 |
+
#, php-format
|
211 |
+
msgid "<a href=\"%s\">No, thanks</a>"
|
212 |
+
msgstr "<a href=\"%s\">Нет, спасибо</a>"
|
213 |
+
|
214 |
+
#: admin/views/metaboxes/metabox-donate.php:6
|
215 |
+
msgid "If you like this plugin, consider supporting it by donating."
|
216 |
+
msgstr "Если вам нравится этот плагин, поддержите, пожалуйста, его."
|
217 |
+
|
218 |
+
#: admin/views/metaboxes/metabox-donate.php:8
|
219 |
+
msgid "Donate with PayPal"
|
220 |
+
msgstr "Помочь через PayPal"
|
221 |
+
|
222 |
+
#: admin/views/metaboxes/metabox-donate.php:10
|
223 |
+
msgid "Some other ways to support this plugin"
|
224 |
+
msgstr "Некоторые другие способы поддержки этого плагина"
|
225 |
+
|
226 |
+
#: admin/views/metaboxes/metabox-donate.php:12
|
227 |
+
msgid "Leave a ★★★★★ review on WordPress.org"
|
228 |
+
msgstr "Оставьте ★★★★★ отзыв на WordPress.org"
|
229 |
+
|
230 |
+
#: admin/views/metaboxes/metabox-donate.php:13
|
231 |
+
msgid "Write about Popups on your blog"
|
232 |
+
msgstr "Напишите о плагине Popups на своем блоге"
|
233 |
+
|
234 |
+
#: admin/views/metaboxes/metabox-donate.php:14
|
235 |
+
msgid "Tweet about Popups"
|
236 |
+
msgstr "Твитнуть о плагине Popups"
|
237 |
+
|
238 |
+
#: admin/views/metaboxes/metabox-donate.php:15
|
239 |
+
msgid "Vote \"works\" on the WordPress.org plugin page"
|
240 |
+
msgstr "Проголосовать \"работает\" на странице плагина в WordPress.org"
|
241 |
+
|
242 |
+
#: admin/views/metaboxes/metabox-help.php:6
|
243 |
+
msgid "You have three social shortcodes to use that will print a Facebook like, a Google+ Follow and a Twitter follow. Check the available options and <strong>configure them with your social accounts</strong>:"
|
244 |
+
msgstr "У вас есть возможность использовать три социальных Шорткода: Facebook Лайк, подписка на Google+ и следовать в Twitter. Проверьте доступные варианты и <strong>настройте их со своими социальными профилями</strong>:"
|
245 |
+
|
246 |
+
#: admin/views/metaboxes/metabox-help.php:12
|
247 |
+
msgid "View Facebook Page Options"
|
248 |
+
msgstr "Смотреть параметры страницы в Facebook"
|
249 |
+
|
250 |
+
#: admin/views/metaboxes/metabox-help.php:14 admin/views/metaboxes/metabox-help.php:27
|
251 |
+
msgid "Your facebook page url"
|
252 |
+
msgstr "Ссылка на вашу страницу Facebook"
|
253 |
+
|
254 |
+
#: admin/views/metaboxes/metabox-help.php:15
|
255 |
+
msgid "Your page name"
|
256 |
+
msgstr "Имя вашей страницы"
|
257 |
+
|
258 |
+
#: admin/views/metaboxes/metabox-help.php:16
|
259 |
+
msgid "true|false <b>Default value:</b> true"
|
260 |
+
msgstr "true|false <b>Значение по умолчанию:</b> true"
|
261 |
+
|
262 |
+
#: admin/views/metaboxes/metabox-help.php:17
|
263 |
+
msgid "true|false <b>Default value:</b> false"
|
264 |
+
msgstr "true|false <b>Значение по умолчанию:</b> false"
|
265 |
+
|
266 |
+
#: admin/views/metaboxes/metabox-help.php:25
|
267 |
+
msgid "View Facebook Options"
|
268 |
+
msgstr "Посмотреть опции Facebook"
|
269 |
+
|
270 |
+
#: admin/views/metaboxes/metabox-help.php:28
|
271 |
+
msgid "standard, box_count, button <b>Default value:</b> button_count"
|
272 |
+
msgstr "standard, box_count, button <b>Значение по умолчанию:</b> button_count"
|
273 |
+
|
274 |
+
#: admin/views/metaboxes/metabox-help.php:29 admin/views/metaboxes/metabox-help.php:30
|
275 |
+
msgid "true <b>Default value:</b> false"
|
276 |
+
msgstr "true <b>Значение по умолчанию:</b> false"
|
277 |
+
|
278 |
+
#: admin/views/metaboxes/metabox-help.php:31
|
279 |
+
msgid "recommend <b>Default value:</b> like"
|
280 |
+
msgstr "рекомендованное <b>Значение по умолчанию:</b> like"
|
281 |
+
|
282 |
+
#: admin/views/metaboxes/metabox-help.php:38
|
283 |
+
msgid "View Google+ Options"
|
284 |
+
msgstr "Посмотреть опции Google+"
|
285 |
+
|
286 |
+
#: admin/views/metaboxes/metabox-help.php:40
|
287 |
+
msgid "Your Google+ url"
|
288 |
+
msgstr "Ссылка на ваш Google+"
|
289 |
+
|
290 |
+
#: admin/views/metaboxes/metabox-help.php:41
|
291 |
+
msgid "small, standard, tall <b>Default value:</b> medium"
|
292 |
+
msgstr "small, standard, tall <b>Значение по умолчанию:</b> medium"
|
293 |
+
|
294 |
+
#: admin/views/metaboxes/metabox-help.php:42
|
295 |
+
msgid "inline, none <b>Default value:</b> bubble"
|
296 |
+
msgstr "inline, none <b>Значение по умолчанию:</b> bubble"
|
297 |
+
|
298 |
+
#: admin/views/metaboxes/metabox-help.php:48
|
299 |
+
msgid "View Twitter Options"
|
300 |
+
msgstr "Посмотреть опции в Twitter"
|
301 |
+
|
302 |
+
#: admin/views/metaboxes/metabox-help.php:50
|
303 |
+
msgid "Your Twitter user <b>Default chifli</b>iiii"
|
304 |
+
msgstr "Ваш пользователь в Twitter <b>chifli по умолчанию</b>iiii"
|
305 |
+
|
306 |
+
#: admin/views/metaboxes/metabox-help.php:51
|
307 |
+
msgid "false <b>Default value:</b> true"
|
308 |
+
msgstr "false <b>Значение по умолчанию:</b> true"
|
309 |
+
|
310 |
+
#: admin/views/metaboxes/metabox-help.php:52
|
311 |
+
msgid "large <b>Default value:</b> \"\""
|
312 |
+
msgstr "large <b>Значение по умолчанию:</b> \"\""
|
313 |
+
|
314 |
+
#: admin/views/metaboxes/metabox-help.php:55
|
315 |
+
msgid "Other available Shortcodes:"
|
316 |
+
msgstr "Другие доступные шорткоды:"
|
317 |
+
|
318 |
+
#: admin/views/metaboxes/metabox-help.php:60
|
319 |
+
msgid "View Close shortcode Options"
|
320 |
+
msgstr "Помостреть Закрыть опции шорткодов"
|
321 |
+
|
322 |
+
#: admin/views/metaboxes/metabox-help.php:62
|
323 |
+
msgid "Pass a custom class to style your button"
|
324 |
+
msgstr "Передайте собственный класс стиля для ваших кнопок"
|
325 |
+
|
326 |
+
#: admin/views/metaboxes/metabox-help.php:63
|
327 |
+
msgid "Button label - <b>Default value:</b> Close"
|
328 |
+
msgstr "Значение кнопки - <b>Значение по умолчанию:</b> Close"
|
329 |
+
|
330 |
+
#: admin/views/metaboxes/metabox-help.php:64
|
331 |
+
msgid "left, right, center, none - <b>Default value:</b> center"
|
332 |
+
msgstr "left, right, center, none - <b>Значение по умолчанию:</b> center"
|
333 |
+
|
334 |
+
#: admin/views/metaboxes/metabox-links.php:6
|
335 |
+
msgid "My name is"
|
336 |
+
msgstr "Меня зовут"
|
337 |
+
|
338 |
+
#: admin/views/metaboxes/metabox-links.php:6
|
339 |
+
msgid "I develop WordPress plugins and themes."
|
340 |
+
msgstr "Я разрабатываю плагины и темы для WordPress."
|
341 |
+
|
342 |
+
#: admin/views/metaboxes/metabox-links.php:7
|
343 |
+
#, php-format
|
344 |
+
msgid "Take a look at my <a href=\"%s\">site</a> to see my other plugins or hire me. Subscribe to get updates!"
|
345 |
+
msgstr "Взгляните на мой <a href=\"%s\">сайт</a> чтобы увидеть мои другие плагины или нанять меня. Подпишитесь на обновления!"
|
346 |
+
|
347 |
+
#: admin/views/metaboxes/metabox-links.php:8
|
348 |
+
msgid "Other plugins I built:"
|
349 |
+
msgstr "Другие плагины которые я разработал:"
|
350 |
+
|
351 |
+
#: admin/views/metaboxes/metabox-links.php:10
|
352 |
+
msgid "Install multiple plugins and create collections"
|
353 |
+
msgstr "Установка нескольких плагинов и создать коллекции"
|
354 |
+
|
355 |
+
#: admin/views/metaboxes/metabox-links.php:11
|
356 |
+
msgid "Geotarget your content"
|
357 |
+
msgstr "Геотаргетинг вашего контента"
|
358 |
+
|
359 |
+
#: admin/views/metaboxes/metabox-links.php:12
|
360 |
+
msgid "Invite your network friends and import contacts"
|
361 |
+
msgstr "Пригласить своих друзей из сети и импортировать контакты"
|
362 |
+
|
363 |
+
#: admin/views/metaboxes/metabox-options.php:9
|
364 |
+
msgid "Box Position"
|
365 |
+
msgstr "Позиция Box"
|
366 |
+
|
367 |
+
#: admin/views/metaboxes/metabox-options.php:12
|
368 |
+
msgid "Centered"
|
369 |
+
msgstr "По центру"
|
370 |
+
|
371 |
+
#: admin/views/metaboxes/metabox-options.php:13
|
372 |
+
msgid "Top Left"
|
373 |
+
msgstr "Слева вверху"
|
374 |
+
|
375 |
+
#: admin/views/metaboxes/metabox-options.php:14
|
376 |
+
msgid "Top Right"
|
377 |
+
msgstr "Справа вверху"
|
378 |
+
|
379 |
+
#: admin/views/metaboxes/metabox-options.php:15
|
380 |
+
msgid "Bottom Left"
|
381 |
+
msgstr "Внизу слева"
|
382 |
+
|
383 |
+
#: admin/views/metaboxes/metabox-options.php:16
|
384 |
+
msgid "Bottom Right"
|
385 |
+
msgstr "Внизу справа"
|
386 |
+
|
387 |
+
#: admin/views/metaboxes/metabox-options.php:23
|
388 |
+
msgid "Trigger action"
|
389 |
+
msgstr "Запуск действия"
|
390 |
+
|
391 |
+
#: admin/views/metaboxes/metabox-options.php:27
|
392 |
+
msgid "seconds after page load"
|
393 |
+
msgstr "секунд после загрузки страницы"
|
394 |
+
|
395 |
+
#: admin/views/metaboxes/metabox-options.php:28
|
396 |
+
msgid "of page height"
|
397 |
+
msgstr "высоты страницы"
|
398 |
+
|
399 |
+
#: admin/views/metaboxes/metabox-options.php:38
|
400 |
+
msgid "Auto-hide?"
|
401 |
+
msgstr "Авто-скрытие?"
|
402 |
+
|
403 |
+
#: admin/views/metaboxes/metabox-options.php:40 admin/views/metaboxes/metabox-options.php:68 admin/views/metaboxes/metabox-options.php:76 admin/views/metaboxes/metabox-options.php:84
|
404 |
+
msgid "Yes"
|
405 |
+
msgstr "Да"
|
406 |
+
|
407 |
+
#: admin/views/metaboxes/metabox-options.php:41 admin/views/metaboxes/metabox-options.php:69 admin/views/metaboxes/metabox-options.php:77 admin/views/metaboxes/metabox-options.php:85
|
408 |
+
msgid "No"
|
409 |
+
msgstr "Нет"
|
410 |
+
|
411 |
+
#: admin/views/metaboxes/metabox-options.php:42
|
412 |
+
#, php-format
|
413 |
+
msgid "Hide box again when visitors scroll back up? Only works when Trigger action is set to % of page height"
|
414 |
+
msgstr "Скрыть окно снова, когда посетители прокрутили обратно? Работает только когда действие триггера установлено % oт высоты страницы"
|
415 |
+
|
416 |
+
#: admin/views/metaboxes/metabox-options.php:46
|
417 |
+
msgid "Animation"
|
418 |
+
msgstr "Анимация"
|
419 |
+
|
420 |
+
#: admin/views/metaboxes/metabox-options.php:49
|
421 |
+
msgid "Fade In"
|
422 |
+
msgstr "Плавное появление"
|
423 |
+
|
424 |
+
#: admin/views/metaboxes/metabox-options.php:50
|
425 |
+
msgid "Slide In"
|
426 |
+
msgstr "Выдвижение"
|
427 |
+
|
428 |
+
#: admin/views/metaboxes/metabox-options.php:53
|
429 |
+
msgid "Slide will only apply when popup is on the corners"
|
430 |
+
msgstr "Выдвижение будет применяться только тогда, когда всплывающее окно находится по углах"
|
431 |
+
|
432 |
+
#: admin/views/metaboxes/metabox-options.php:58
|
433 |
+
msgid "Cookie expiration days"
|
434 |
+
msgstr "Куки действуют дней"
|
435 |
+
|
436 |
+
#: admin/views/metaboxes/metabox-options.php:61
|
437 |
+
msgid "After closing the box, how many days should it stay hidden?"
|
438 |
+
msgstr "После закрытия окна, сколько дней PopUp должен оставаться скрытым?"
|
439 |
+
|
440 |
+
#: admin/views/metaboxes/metabox-options.php:66
|
441 |
+
msgid "Enable test mode?"
|
442 |
+
msgstr "Включить тестовый режим?"
|
443 |
+
|
444 |
+
#: admin/views/metaboxes/metabox-options.php:70
|
445 |
+
msgid "If test mode is enabled, the box will show up regardless of whether a cookie has been set. (To admins only)"
|
446 |
+
msgstr "Если тестовый режим включен, окно будет отображаться независимо от того, были ли установлены куки. (только Админам)"
|
447 |
+
|
448 |
+
#: admin/views/metaboxes/metabox-options.php:74
|
449 |
+
msgid "Close on conversion?"
|
450 |
+
msgstr "Закрыть при конверсии?"
|
451 |
+
|
452 |
+
#: admin/views/metaboxes/metabox-options.php:78
|
453 |
+
msgid "If you have a form or social shortcode, by default popup will close on submission/conversion"
|
454 |
+
msgstr "Если у вас есть форма или социальной шорткод, по умолчанию всплывающие закроется при подтверждении/конверсии"
|
455 |
+
|
456 |
+
#: admin/views/metaboxes/metabox-options.php:82
|
457 |
+
msgid "Show powered by link?"
|
458 |
+
msgstr "Показать ссылку powered by?"
|
459 |
+
|
460 |
+
#: admin/views/metaboxes/metabox-options.php:86
|
461 |
+
#, php-format
|
462 |
+
msgid "Shows a \"powered by\" link below your popup. If your affiliate link is set in the <a href=\"%s\">settings</a>, it will be used."
|
463 |
+
msgstr "Показать ссылку \"powered by\" под вашим PopUp. Если ваша партнерская ссылка указана в <a href=\"%s\">настройках</a>, она будет использована."
|
464 |
+
|
465 |
+
#: admin/views/metaboxes/metabox-options.php:91
|
466 |
+
msgid "Appearance"
|
467 |
+
msgstr "Появление"
|
468 |
+
|
469 |
+
#: admin/views/metaboxes/metabox-options.php:95
|
470 |
+
msgid "Background opacity"
|
471 |
+
msgstr "Размытие фона"
|
472 |
+
|
473 |
+
#: admin/views/metaboxes/metabox-options.php:98
|
474 |
+
msgid "Leave at 0 for no background. Max value is 1"
|
475 |
+
msgstr "Оставьте 0 для без фона. Максимальное значение равно 1"
|
476 |
+
|
477 |
+
#: admin/views/metaboxes/metabox-options.php:104
|
478 |
+
msgid "Background color"
|
479 |
+
msgstr "Цвет фона"
|
480 |
+
|
481 |
+
#: admin/views/metaboxes/metabox-options.php:108
|
482 |
+
msgid "Text color"
|
483 |
+
msgstr "Цвет текста"
|
484 |
+
|
485 |
+
#: admin/views/metaboxes/metabox-options.php:112
|
486 |
+
msgid "Box width"
|
487 |
+
msgstr "Ширина Бокса"
|
488 |
+
|
489 |
+
#: admin/views/metaboxes/metabox-options.php:118
|
490 |
+
msgid "Border color"
|
491 |
+
msgstr "Цвет рамки"
|
492 |
+
|
493 |
+
#: admin/views/metaboxes/metabox-options.php:122
|
494 |
+
msgid "Border width"
|
495 |
+
msgstr "Ширина рамки"
|
496 |
+
|
497 |
+
#: admin/views/metaboxes/metabox-premium.php:16
|
498 |
+
msgid "Take the best WordPress Popups plugin to the next level with Popups Premium extension."
|
499 |
+
msgstr "Используйте максимум преимуществ плагина \"всплывающие окна\" для WordPress с расширением Popups Premium ."
|
500 |
+
|
501 |
+
#: admin/views/metaboxes/metabox-premium.php:17
|
502 |
+
msgid "Popups Premium Features:"
|
503 |
+
msgstr "Преимущества Popups Premium:"
|
504 |
+
|
505 |
+
#: admin/views/metaboxes/metabox-premium.php:19
|
506 |
+
msgid "Beautiful optin forms for popular mail providers"
|
507 |
+
msgstr "Красивые OptIn формы для популярных почтовых служб"
|
508 |
+
|
509 |
+
#: admin/views/metaboxes/metabox-premium.php:20
|
510 |
+
msgid "Currently supporting MailChimp, Aweber, Postmatic, Mailpoet"
|
511 |
+
msgstr "Сейчас поддерживаются MailChimp, Aweber, Postmatic, Mailpoet"
|
512 |
+
|
513 |
+
#: admin/views/metaboxes/metabox-premium.php:21
|
514 |
+
msgid "Track impressions and Conversions of social likes and forms submissions like Contact Form 7, Gravity forms, etc"
|
515 |
+
msgstr "Отслеживать показы и переходы из социальных сетей и формировать отчеты по действиям Contact Form 7, Gravity формы, и т.д."
|
516 |
+
|
517 |
+
#: admin/views/metaboxes/metabox-premium.php:22
|
518 |
+
msgid "Track impressions and Conversions also in Google Analytics"
|
519 |
+
msgstr "Отслеживать показы и переходы также и в Google Analytics"
|
520 |
+
|
521 |
+
#: admin/views/metaboxes/metabox-premium.php:23 admin/views/metaboxes/metabox-premium.php:25
|
522 |
+
msgid "Exit Intent technology"
|
523 |
+
msgstr "Выход Целевой технологии"
|
524 |
+
|
525 |
+
#: admin/views/metaboxes/metabox-premium.php:24
|
526 |
+
msgid "8 New animations effects"
|
527 |
+
msgstr "8 новых анимационных эффектов"
|
528 |
+
|
529 |
+
#: admin/views/metaboxes/metabox-premium.php:26
|
530 |
+
msgid "New trigger methods"
|
531 |
+
msgstr "Новые методы отслеживания"
|
532 |
+
|
533 |
+
#: admin/views/metaboxes/metabox-premium.php:27
|
534 |
+
msgid "Timer for auto closing"
|
535 |
+
msgstr "Таймер для автоматического закрытия"
|
536 |
+
|
537 |
+
#: admin/views/metaboxes/metabox-premium.php:28
|
538 |
+
msgid "Ability to disable close button"
|
539 |
+
msgstr "Возможность отключения кнопки закрытия"
|
540 |
+
|
541 |
+
#: admin/views/metaboxes/metabox-premium.php:29
|
542 |
+
msgid "Ability to disable Advanced close methods like esc or clicking outside of the popup"
|
543 |
+
msgstr "Возможность отключения расширенных методов закрытия, такие как нажатие ESC или клик снаружи всплывающего окна"
|
544 |
+
|
545 |
+
#: admin/views/metaboxes/metabox-premium.php:30
|
546 |
+
msgid "Premium support"
|
547 |
+
msgstr "Премиум поддержка"
|
548 |
+
|
549 |
+
#: admin/views/metaboxes/metabox-premium.php:34
|
550 |
+
msgid "Buy Now!"
|
551 |
+
msgstr "Купить сейчас!"
|
552 |
+
|
553 |
+
#: admin/views/metaboxes/metabox-rules.php:19
|
554 |
+
msgid "Rules"
|
555 |
+
msgstr "Правила"
|
556 |
+
|
557 |
+
#: admin/views/metaboxes/metabox-rules.php:20
|
558 |
+
msgid "Create a set of rules to determine where the popup will show"
|
559 |
+
msgstr "Создать набор правил для показа всплывающего окна"
|
560 |
+
|
561 |
+
#: admin/views/metaboxes/metabox-rules.php:31
|
562 |
+
msgid "Show this popup if"
|
563 |
+
msgstr "Показать это всплывающее окно, если"
|
564 |
+
|
565 |
+
#: admin/views/metaboxes/metabox-rules.php:61
|
566 |
+
msgid "is equal to"
|
567 |
+
msgstr "равно"
|
568 |
+
|
569 |
+
#: admin/views/metaboxes/metabox-rules.php:62
|
570 |
+
msgid "is not equal to"
|
571 |
+
msgstr "неравно"
|
572 |
+
|
573 |
+
#: admin/views/metaboxes/metabox-rules.php:93
|
574 |
+
msgid "and"
|
575 |
+
msgstr "и"
|
576 |
+
|
577 |
+
#: admin/views/metaboxes/metabox-rules.php:108
|
578 |
+
msgid "Add rule group"
|
579 |
+
msgstr "Добавить группу правил"
|
580 |
+
|
581 |
+
#: admin/views/metaboxes/metabox-support.php:6
|
582 |
+
#, php-format
|
583 |
+
msgid "You are using Popups plugin v%s"
|
584 |
+
msgstr "Вы используете плагин Popups v%s"
|
585 |
+
|
586 |
+
#: admin/views/metaboxes/metabox-support.php:7
|
587 |
+
#, php-format
|
588 |
+
msgid "If you need support please go to the WordPress.org <a href=\"%s\">support forums</a>"
|
589 |
+
msgstr "Если вам нужна поддержка, пожалуйста, перейдите на <a href=\"%s\">форум поддержки</a> WordPress.org"
|
590 |
+
|
591 |
+
#: admin/views/settings-page.php:17
|
592 |
+
msgid "Affiliate link"
|
593 |
+
msgstr "Партнерская ссылка"
|
594 |
+
|
595 |
+
#: admin/views/settings-page.php:20
|
596 |
+
#, php-format
|
597 |
+
msgid "You can earn money by promoting the plugin! Join <a href=\"%s\">our affiliate program</a> and paste your affiliate link here to earn 35% in commissions . Once entered, it will replace the default \"Powered by\" on the popups."
|
598 |
+
msgstr "Вы можете заработать деньги, продвигая плагин! Присоединяйтесь к <a href=\"%s\">нашей партнерской программе</a> и вставьте свою партнерскую ссылку, чтобы заработать 35% комиссионных . После того, как вы введете ее, она заменит значение по умолчанию \"Powered by\" во всплывающих окнах."
|
599 |
+
|
600 |
+
#: admin/views/settings-page.php:24
|
601 |
+
msgid "Ajax mode?"
|
602 |
+
msgstr "Режим Ajax?"
|
603 |
+
|
604 |
+
#: admin/views/settings-page.php:27
|
605 |
+
msgid "Load popups using ajax. Compatible with cache plugins, but might not work with all plugins"
|
606 |
+
msgstr "Загрузка всплывающего окна с помощью Ajax. Совместима с плагинами кэширования, но не может работать с некоторыми плагинами"
|
607 |
+
|
608 |
+
#: admin/views/settings-page.php:32
|
609 |
+
msgid "Enable Debug mode?"
|
610 |
+
msgstr "Включить режим отладки?"
|
611 |
+
|
612 |
+
#: admin/views/settings-page.php:35
|
613 |
+
msgid "Will use uncompressed js"
|
614 |
+
msgstr "Будут использоваться несжатые JS"
|
615 |
+
|
616 |
+
#: admin/views/settings-page.php:40
|
617 |
+
msgid "Enable safe mode?"
|
618 |
+
msgstr "Включить безопасный режим?"
|
619 |
+
|
620 |
+
#: admin/views/settings-page.php:43
|
621 |
+
msgid "Will move all popups to top of the screen."
|
622 |
+
msgstr "Будут передвинуты все всплывающие окна в верхнюю часть экрана."
|
623 |
+
|
624 |
+
#: admin/views/settings-page.php:48
|
625 |
+
msgid "Remove shortcodes style"
|
626 |
+
msgstr "Удалить стили Шорткодов"
|
627 |
+
|
628 |
+
#: admin/views/settings-page.php:51
|
629 |
+
msgid "By default the plugin will apply some style to shortcodes. Check here if you want to manually style them"
|
630 |
+
msgstr "По умолчанию плагин будет применять некоторые стили Шорткодов. Отметьте здесь, если вы хотите задать их стиль вручную"
|
631 |
+
|
632 |
+
#: admin/views/settings-page.php:56
|
633 |
+
msgid "Unload Facebook javascript"
|
634 |
+
msgstr "Выгрузка JavaScript Facebook"
|
635 |
+
|
636 |
+
#: admin/views/settings-page.php:59
|
637 |
+
msgid "If you use your own Facebook script, check this"
|
638 |
+
msgstr "Если вы используете свой собственный скрипт Facebook, отметьте это"
|
639 |
+
|
640 |
+
#: admin/views/settings-page.php:64
|
641 |
+
msgid "Unload Google javascript"
|
642 |
+
msgstr "Выгрузка JavaScript Google"
|
643 |
+
|
644 |
+
#: admin/views/settings-page.php:67
|
645 |
+
msgid "If you use your own Google script, check this"
|
646 |
+
msgstr "Если вы используете свой собственный скрипт Google, отметьте это"
|
647 |
+
|
648 |
+
#: admin/views/settings-page.php:72
|
649 |
+
msgid "Unload Twitter javascript"
|
650 |
+
msgstr "Выгрузка JavaScript Twitter"
|
651 |
+
|
652 |
+
#: admin/views/settings-page.php:75
|
653 |
+
msgid "If you use your own Twitter script, check this"
|
654 |
+
msgstr "Если вы используете свой собственный скрипт Twitter, отметьте это"
|
655 |
+
|
656 |
+
#: admin/views/settings-page.php:80
|
657 |
+
msgid "Save settings"
|
658 |
+
msgstr "Сохранить настройки"
|
659 |
+
|
660 |
+
#: includes/class-spu-helper.php:133
|
661 |
+
msgid "All Pages"
|
662 |
+
msgstr "Все страницы"
|
663 |
+
|
664 |
+
#: includes/class-spu-helper.php:134
|
665 |
+
msgid "Front Page"
|
666 |
+
msgstr "Титульная страница"
|
667 |
+
|
668 |
+
#: includes/class-spu-helper.php:135
|
669 |
+
msgid "Posts Page"
|
670 |
+
msgstr "Страница Публикаций"
|
671 |
+
|
672 |
+
#: includes/class-spu-helper.php:136
|
673 |
+
msgid "Category Page"
|
674 |
+
msgstr "Страница Категорий"
|
675 |
+
|
676 |
+
#: includes/class-spu-helper.php:137
|
677 |
+
msgid "Archives Page"
|
678 |
+
msgstr "Страница Архивов"
|
679 |
+
|
680 |
+
#: includes/class-spu-helper.php:138
|
681 |
+
msgid "Top Level Page (parent of 0)"
|
682 |
+
msgstr "Верхний уровень страницы (родителей 0)"
|
683 |
+
|
684 |
+
#: includes/class-spu-helper.php:139
|
685 |
+
msgid "Parent Page (has children)"
|
686 |
+
msgstr "Родительская страница (имеет потомков)"
|
687 |
+
|
688 |
+
#: includes/class-spu-helper.php:140
|
689 |
+
msgid "Child Page (has parent)"
|
690 |
+
msgstr "Дочерняя страница (имеет родителя)"
|
691 |
+
|
692 |
+
#: includes/class-spu-helper.php:148
|
693 |
+
msgid "Default Template"
|
694 |
+
msgstr "Шаблон по умолчанию"
|
695 |
+
|
696 |
+
#: includes/class-spu-helper.php:221
|
697 |
+
msgid "Publish"
|
698 |
+
msgstr "Опубликовать"
|
699 |
+
|
700 |
+
#: includes/class-spu-helper.php:222
|
701 |
+
msgid "Pending Review"
|
702 |
+
msgstr "Ожидает оценки"
|
703 |
+
|
704 |
+
#: includes/class-spu-helper.php:223
|
705 |
+
msgid "Draft"
|
706 |
+
msgstr "Черновик"
|
707 |
+
|
708 |
+
#: includes/class-spu-helper.php:224
|
709 |
+
msgid "Future"
|
710 |
+
msgstr "Запланировать"
|
711 |
+
|
712 |
+
#: includes/class-spu-helper.php:225
|
713 |
+
msgid "Private"
|
714 |
+
msgstr "Приватное"
|
715 |
+
|
716 |
+
#: includes/class-spu-helper.php:226
|
717 |
+
msgid "Revision"
|
718 |
+
msgstr "Ревизии"
|
719 |
+
|
720 |
+
#: includes/class-spu-helper.php:227
|
721 |
+
msgid "Trash"
|
722 |
+
msgstr "Корзина"
|
723 |
+
|
724 |
+
#: includes/class-spu-helper.php:240
|
725 |
+
msgid "Super Admin"
|
726 |
+
msgstr "Супер Админ"
|
727 |
+
|
728 |
+
#: includes/class-spu-helper.php:260
|
729 |
+
msgid "True"
|
730 |
+
msgstr "Правда"
|
languages/{spu-sr_RS.mo → popups-sr_RS.mo}
RENAMED
File without changes
|
languages/{spu-sr_RS.po → popups-sr_RS.po}
RENAMED
File without changes
|
popups.php
CHANGED
@@ -11,11 +11,11 @@
|
|
11 |
* @socialpopup
|
12 |
* Plugin Name: Popups - WordPress Popup
|
13 |
* Plugin URI: http://www.timersys.com/free-plugins/social-popup/
|
14 |
-
* Version: 1.4.
|
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: http://wp.timersys.com
|
18 |
-
* Text Domain:
|
19 |
* License: GPL-2.0+
|
20 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
21 |
* Domain Path: /languages
|
@@ -30,7 +30,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
30 |
* Public-Facing Functionality
|
31 |
*----------------------------------------------------------------------------*/
|
32 |
|
33 |
-
define( 'SPU_VERSION' , '1.4.
|
34 |
define( 'SPU_PLUGIN_DIR' , plugin_dir_path(__FILE__) );
|
35 |
define( 'SPU_PLUGIN_URL' , plugin_dir_url(__FILE__) );
|
36 |
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.4.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: http://wp.timersys.com
|
18 |
+
* Text Domain: popups
|
19 |
* License: GPL-2.0+
|
20 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
21 |
* Domain Path: /languages
|
30 |
* Public-Facing Functionality
|
31 |
*----------------------------------------------------------------------------*/
|
32 |
|
33 |
+
define( 'SPU_VERSION' , '1.4.2' );
|
34 |
define( 'SPU_PLUGIN_DIR' , plugin_dir_path(__FILE__) );
|
35 |
define( 'SPU_PLUGIN_URL' , plugin_dir_url(__FILE__) );
|
36 |
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:!0},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(),c&&(this.jqDeferred=new c.Deferred);var r=this;setTimeout(function(){r.check()})}function a(t){this.img=t}function u(t){this.src=t,h[t]=this}var c=t.jQuery,f=t.console,d=void 0!==f,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&&f.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)}})},c&&(c.fn.imagesLoaded=function(t,e){var n=new s(this,t,e);return n.jqDeferred.promise(c(this))}),a.prototype=new e,a.prototype.check=function(){var t=h[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 h={};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)})}catch(t){}h=!0,clearInterval(l)}function r(t){var e=$(t.target).parents(".spu-box").data("box-id");e&&SPU.hide(e)}function o(t){if("on"==t.state){var e=jQuery(".spu-gogl").data("box-id");e&&SPU.hide(e)}}function s(t){if("confirm"==t.type){var e=jQuery(".spu-gogl").data("box-id");e&&SPU.hide(e)}}function a(){if(spuvar_social.facebook)try{FB.XFBML.parse()}catch(t){}if(spuvar_social.google)try{gapi.plusone.go()}catch(t){}if(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 c=function(){function i(t){var e=f[t],n=$(window).width(),i=$(window).height(),r=e.outerHeight(),o=e.outerWidth(),s=e.data("width"),a=0,u=i/2-r/2,c="fixed",d=$(document).scrollTop();e.hasClass("spu-centered")&&(n>s&&(a=n/2-o/2),e.css({left:a,position:c,top:u})),r+50>i&&(c="absolute",u=d,e.css({position:c,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>"):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=f[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 c=parseInt(s.data("cookie"));c>0&&e("spu_box_"+t,!0,c),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(),c=spuvar.is_admin,f=[];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")),h=parseInt(e.data("seconds-close")),l=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")',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",""),f[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*l)},_=n("spu_box_"+d);if((void 0==_||""==_||c&&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)}),$('a[href="#spu-'+d+'"]').on("click",function(t){t.preventDefault(),s(d,!0,!1)}).css("cursor","pointer").addClass("spu-clickable"),e.find(".gform_wrapper form").addClass("gravity-form");var L=e.find("form");if(L.length){if(!L.is(".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",function(){e.trigger("spu.form_submitted",[d]),s(d,!1,!0)}),e.on("submit",'form:not(".wpcf7-form, .gravity-form, .infusion-form, .spu-disable-ajax, .widget_wysija, .ninja-forms-form")',function(n){n.preventDefault();var i=!0,r=$(this),o=r.serialize(),a=r.attr("action"),u=function(t,e,n){console.log("Spu Form error: "+e+" - "+n)},c=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,c,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()})}}),{show:function(t){return s(t,!0,!1)},hide:function(t){return s(t,!1,!1)},request:function(e,n,i,r){return t(e,n,i,r)}}};if(spuvar.ajax_mode){var f={pid:spuvar.pid,referrer:document.referrer,is_category:spuvar.is_category,is_archive:spuvar.is_archive},d=function(t){$("body").append(t),$(".spu-box").imagesLoaded(function(){window.SPU=c(),u()})},p=function(t,e,n){console.log("Problem loading popups - error: "+e+" - "+n)};t(f,spuvar.ajax_mode_url,d,p,"html")}else $(".spu-box").imagesLoaded(function(){window.SPU=c()});var h=!1,l=setInterval(function(){"undefined"==typeof FB||h||i()},1e3);if("undefined"!=typeof twttr)try{twttr.ready(function(t){t.events.bind("tweet",r),t.events.bind("follow",r)})}catch(m){}}(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:!0},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,h[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=h[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 h={};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)})}catch(t){}h=!0,clearInterval(l)}function r(t){var e=$(t.target).parents(".spu-box").data("box-id");e&&SPU.hide(e)}function o(t){if("on"==t.state){var e=jQuery(".spu-gogl").data("box-id");e&&SPU.hide(e)}}function s(t){if("confirm"==t.type){var e=jQuery(".spu-gogl").data("box-id");e&&SPU.hide(e)}}function a(){if(spuvar_social.facebook)try{FB.XFBML.parse()}catch(t){}if(spuvar_social.google)try{gapi.plusone.go()}catch(t){}if(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")&&(n>s&&(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>"):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=parseInt(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")),h=parseInt(e.data("seconds-close")),l=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 w=function(){o&&clearTimeout(o),o=window.setTimeout(function(){var t=$(window).scrollTop(),e=t+u>=v;e?(p||$(window).unbind("scroll",w),s(d,!0,!1)):s(d,!1,!1)},100)},b=function(){o&&clearTimeout(o),o=window.setTimeout(function(){s(d,!0,!1)},1e3*l)},_=n("spu_box_"+d);if((void 0==_||""==_||f&&a)&&("seconds"==i&&b(),"percentage"==i&&($(window).bind("scroll",w),w()),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",w)}),$('a[href="#spu-'+d+'"]').on("click",function(t){t.preventDefault(),s(d,!0,!1)}).css("cursor","pointer").addClass("spu-clickable"),e.find(".gform_wrapper form").addClass("gravity-form"),e.find(".mc4wp-form form").addClass("mc4wp-form");var L=e.find("form");if(L.length){if(!L.is(".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(".wpcf7-form, .gravity-form, .infusion-form, .spu-disable-ajax, .widget_wysija, .ninja-forms-form, .flp_form, .mc4wp-form")',function(n){n.preventDefault();var i=!0,r=$(this),o=r.serialize(),a=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()})}}),{show:function(t){return s(t,!0,!1)},hide:function(t){return s(t,!1,!1)},request:function(e,n,i,r){return t(e,n,i,r)}}};if(spuvar.ajax_mode){var c={pid:spuvar.pid,referrer:document.referrer,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 h=!1,l=setInterval(function(){"undefined"==typeof FB||h||i()},1e3);if("undefined"!=typeof twttr)try{twttr.ready(function(t){t.events.bind("tweet",r),t.events.bind("follow",r)})}catch(m){}}(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")', function(){
|
52 |
// hide the popup and track conversion
|
53 |
toggleBox( id, false, true);
|
54 |
});
|
@@ -169,6 +169,8 @@ var SPU_master = function() {
|
|
169 |
|
170 |
// add class to the gravity form if they exist within the box
|
171 |
$box.find('.gform_wrapper form').addClass('gravity-form');
|
|
|
|
|
172 |
|
173 |
// check if we have forms and perform different actions
|
174 |
var box_form = $box.find('form');
|
@@ -187,14 +189,14 @@ var SPU_master = function() {
|
|
187 |
$('.spu-disable-ajax form').addClass('spu-disable-ajax');
|
188 |
}
|
189 |
// Disable ajax on form by adding .spu-disable-ajax class to it
|
190 |
-
$box.on('submit','form.spu-disable-ajax', function(){
|
191 |
|
192 |
$box.trigger('spu.form_submitted', [id]);
|
193 |
toggleBox(id, false, true );
|
194 |
});
|
195 |
|
196 |
// Add generic form tracking
|
197 |
-
$box.on('submit','form:not(".wpcf7-form, .gravity-form, .infusion-form, .spu-disable-ajax, .widget_wysija, .ninja-forms-form")', function(e){
|
198 |
e.preventDefault();
|
199 |
|
200 |
|
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 |
});
|
169 |
|
170 |
// add class to the gravity form if they exist within the box
|
171 |
$box.find('.gform_wrapper form').addClass('gravity-form');
|
172 |
+
// same for mc4wp
|
173 |
+
$box.find('.mc4wp-form form').addClass('mc4wp-form');
|
174 |
|
175 |
// check if we have forms and perform different actions
|
176 |
var box_form = $box.find('form');
|
189 |
$('.spu-disable-ajax form').addClass('spu-disable-ajax');
|
190 |
}
|
191 |
// Disable ajax on form by adding .spu-disable-ajax class to it
|
192 |
+
$box.on('submit','form.spu-disable-ajax:not(".flp_form")', function(){
|
193 |
|
194 |
$box.trigger('spu.form_submitted', [id]);
|
195 |
toggleBox(id, false, true );
|
196 |
});
|
197 |
|
198 |
// Add generic form tracking
|
199 |
+
$box.on('submit','form:not(".wpcf7-form, .gravity-form, .infusion-form, .spu-disable-ajax, .widget_wysija, .ninja-forms-form, .flp_form, .mc4wp-form")', function(e){
|
200 |
e.preventDefault();
|
201 |
|
202 |
|
public/class-social-popup.php
CHANGED
@@ -86,13 +86,13 @@ class SocialPopup {
|
|
86 |
'upgrade_version' => '1.6.4.3',
|
87 |
'wpml_lang' => defined('ICL_LANGUAGE_CODE') ? ICL_LANGUAGE_CODE : '',
|
88 |
);
|
|
|
|
|
89 |
|
90 |
$this->load_dependencies();
|
91 |
|
92 |
$this->spu_settings = apply_filters('spu/settings_page/opts', get_option( 'spu_settings' ) );
|
93 |
|
94 |
-
// Load plugin text domain
|
95 |
-
add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
|
96 |
|
97 |
// Activate plugin when new blog is added
|
98 |
add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
|
@@ -105,7 +105,7 @@ class SocialPopup {
|
|
105 |
//print boxes
|
106 |
add_action( 'wp_footer', array( $this, 'print_boxes' ) );
|
107 |
}
|
108 |
-
add_action( 'init', array( $this, 'register_spu_ajax' ),
|
109 |
|
110 |
//FILTERS
|
111 |
add_filter('spu/get_info', array($this, 'get_info'), 1, 1);
|
@@ -321,11 +321,11 @@ class SocialPopup {
|
|
321 |
*/
|
322 |
public function load_plugin_textdomain() {
|
323 |
|
324 |
-
$domain =
|
325 |
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
|
326 |
|
327 |
load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' );
|
328 |
-
load_plugin_textdomain( $domain, FALSE,
|
329 |
|
330 |
}
|
331 |
|
86 |
'upgrade_version' => '1.6.4.3',
|
87 |
'wpml_lang' => defined('ICL_LANGUAGE_CODE') ? ICL_LANGUAGE_CODE : '',
|
88 |
);
|
89 |
+
// Load plugin text domain
|
90 |
+
$this->load_plugin_textdomain();
|
91 |
|
92 |
$this->load_dependencies();
|
93 |
|
94 |
$this->spu_settings = apply_filters('spu/settings_page/opts', get_option( 'spu_settings' ) );
|
95 |
|
|
|
|
|
96 |
|
97 |
// Activate plugin when new blog is added
|
98 |
add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
|
105 |
//print boxes
|
106 |
add_action( 'wp_footer', array( $this, 'print_boxes' ) );
|
107 |
}
|
108 |
+
add_action( 'init', array( $this, 'register_spu_ajax' ), 11 );
|
109 |
|
110 |
//FILTERS
|
111 |
add_filter('spu/get_info', array($this, 'get_info'), 1, 1);
|
321 |
*/
|
322 |
public function load_plugin_textdomain() {
|
323 |
|
324 |
+
$domain = 'popups';
|
325 |
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
|
326 |
|
327 |
load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' );
|
328 |
+
load_plugin_textdomain( $domain, FALSE, dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/' );
|
329 |
|
330 |
}
|
331 |
|
public/views/popup.php
CHANGED
@@ -50,7 +50,7 @@ do_action( 'spu/popup/before_popup', $box, $opts, $css);
|
|
50 |
background: <?php echo ( !empty( $css['background_color'] ) ) ? esc_attr($css['background_color']) : 'white'; ?>;
|
51 |
<?php if ( !empty( $css['color'] ) ) { ?>color: <?php echo esc_attr($css['color']); ?>;<?php } ?>
|
52 |
<?php if ( !empty( $css['border_color'] ) && !empty( $css['border_width'] ) ) { ?>border: <?php echo esc_attr($css['border_width']) . 'px' ?> solid <?php echo esc_attr($css['border_color']); ?>;<?php } ?>
|
53 |
-
width: <?php echo ( empty( $opts['optin'] ) ) ? esc_attr( $width ) : 'auto'; ?>;
|
54 |
|
55 |
}
|
56 |
#spu-bg-<?php echo $box->ID; ?> {
|
50 |
background: <?php echo ( !empty( $css['background_color'] ) ) ? esc_attr($css['background_color']) : 'white'; ?>;
|
51 |
<?php if ( !empty( $css['color'] ) ) { ?>color: <?php echo esc_attr($css['color']); ?>;<?php } ?>
|
52 |
<?php if ( !empty( $css['border_color'] ) && !empty( $css['border_width'] ) ) { ?>border: <?php echo esc_attr($css['border_width']) . 'px' ?> solid <?php echo esc_attr($css['border_color']); ?>;<?php } ?>
|
53 |
+
width: <?php echo ( empty( $opts['optin'] ) || $opts['optin'] == 'custom' ) ? esc_attr( $width ) : 'auto'; ?>;
|
54 |
|
55 |
}
|
56 |
#spu-bg-<?php echo $box->ID; ?> {
|