WooCommerce Wishlist Plugin - Version 1.5.7

Version Description

Release Date - 21 October 2017

  • Fixed an issue with fonts not applying in Wishlist if "Use Theme Style" option is enabled
  • Fixed an issue with transferring products between guest and user wishlists used on the same device/machine in the same browser.
  • Fixed an issue with empty pop up window after clicking Share Wishlist by Email button
  • Internal improvements:
    • Variable product (without predefined variations applied by default) added from products listing page will be always substituted with the product added from details page (with selected variations).
  • Improved WooCommerce Composite Products plugin support:
    • Fixed individual price calculation with components
  • Improved Polylang plugin support
Download this release

Release Info

Developer templateinvaders
Plugin Icon 128x128 WooCommerce Wishlist Plugin
Version 1.5.7
Comparing to
See all releases

Code changes from version 1.5.6 to 1.5.7

Files changed (85) hide show
  1. admin/settings/general.class.php +11 -10
  2. admin/settings/style.class.php +12 -0
  3. admin/tinvwl.class.php +403 -403
  4. asset/css/admin-form.css +406 -406
  5. asset/css/admin-form.min.css +1 -1
  6. asset/css/font-awesome.css +74 -74
  7. asset/css/font-awesome.min.css +1 -1
  8. asset/fonts/fontawesome-webfont.svg +25 -25
  9. asset/js/public.js +8 -8
  10. asset/js/public.min.js +1 -1
  11. freemius/LICENSE.txt +673 -673
  12. freemius/README.md +253 -253
  13. freemius/assets/css/admin/account.css +1 -1
  14. freemius/assets/css/admin/add-ons.css +2 -2
  15. freemius/assets/css/admin/checkout.css +1 -1
  16. freemius/assets/css/admin/common.css +2 -2
  17. freemius/assets/css/admin/connect.css +1 -1
  18. freemius/assets/css/admin/deactivation-feedback.css +1 -1
  19. freemius/assets/css/admin/debug.css +1 -1
  20. freemius/assets/css/admin/dialog-boxes.css +2 -2
  21. freemius/assets/css/admin/license-activation.css +1 -1
  22. freemius/assets/css/customizer.css +1 -1
  23. freemius/assets/index.php +2 -2
  24. freemius/assets/js/nojquery.ba-postmessage.js +139 -139
  25. freemius/assets/js/nojquery.ba-postmessage.min.js +11 -11
  26. freemius/assets/js/postmessage.js +134 -134
  27. freemius/assets/scss/_colors.scss +65 -65
  28. freemius/assets/scss/_mixins.scss +282 -282
  29. freemius/assets/scss/admin/_ajax-loader.scss +48 -48
  30. freemius/assets/scss/admin/_auto-install.scss +32 -32
  31. freemius/assets/scss/admin/_deactivation-feedback.scss +54 -54
  32. freemius/assets/scss/admin/_license-activation.scss +6 -6
  33. freemius/assets/scss/admin/_license-key-resend.scss +68 -68
  34. freemius/assets/scss/admin/_modal-common.scss +185 -185
  35. freemius/assets/scss/admin/_themes.scss +20 -20
  36. freemius/assets/scss/admin/account.scss +255 -255
  37. freemius/assets/scss/admin/add-ons.scss +448 -448
  38. freemius/assets/scss/admin/checkout.scss +4 -4
  39. freemius/assets/scss/admin/debug.scss +134 -134
  40. freemius/assets/scss/admin/dialog-boxes.scss +6 -6
  41. freemius/assets/scss/customizer.scss +124 -124
  42. freemius/config.php +328 -328
  43. freemius/includes/class-freemius-abstract.php +596 -596
  44. freemius/includes/class-fs-logger.php +687 -687
  45. freemius/includes/class-fs-security.php +85 -85
  46. freemius/includes/customizer/class-fs-customizer-support-section.php +101 -101
  47. freemius/includes/customizer/class-fs-customizer-upsell-control.php +156 -156
  48. freemius/includes/debug/class-fs-debug-bar-panel.php +64 -64
  49. freemius/includes/debug/debug-bar-start.php +51 -51
  50. freemius/includes/debug/index.php +2 -2
  51. freemius/includes/entities/class-fs-billing.php +94 -94
  52. freemius/includes/entities/class-fs-entity.php +148 -148
  53. freemius/includes/entities/class-fs-payment.php +93 -93
  54. freemius/includes/entities/class-fs-plugin-info.php +33 -33
  55. freemius/includes/entities/class-fs-plugin-license.php +224 -224
  56. freemius/includes/entities/class-fs-plugin-plan.php +144 -144
  57. freemius/includes/entities/class-fs-plugin-tag.php +23 -23
  58. freemius/includes/entities/class-fs-plugin.php +95 -95
  59. freemius/includes/entities/class-fs-pricing.php +140 -140
  60. freemius/includes/entities/class-fs-scope-entity.php +28 -28
  61. freemius/includes/entities/class-fs-site.php +147 -147
  62. freemius/includes/entities/class-fs-subscription.php +124 -124
  63. freemius/includes/entities/class-fs-user.php +61 -61
  64. freemius/includes/entities/index.php +2 -2
  65. freemius/includes/fs-core-functions.php +674 -674
  66. freemius/includes/fs-essential-functions.php +493 -493
  67. freemius/includes/index.php +2 -2
  68. freemius/includes/l10n.php +268 -268
  69. freemius/includes/managers/class-fs-admin-menu-manager.php +848 -848
  70. freemius/includes/managers/class-fs-cache-manager.php +279 -279
  71. freemius/includes/managers/class-fs-key-value-storage.php +327 -327
  72. freemius/includes/managers/class-fs-license-manager.php +103 -103
  73. freemius/includes/managers/class-fs-option-manager.php +301 -301
  74. freemius/includes/managers/class-fs-plan-manager.php +161 -161
  75. freemius/includes/managers/class-fs-plugin-manager.php +219 -219
  76. freemius/includes/managers/index.php +2 -2
  77. freemius/includes/sdk/Exceptions/index.php +2 -2
  78. freemius/includes/sdk/LICENSE.txt +340 -340
  79. freemius/includes/sdk/index.php +2 -2
  80. freemius/includes/supplements/fs-essential-functions-1.1.7.1.php +47 -47
  81. freemius/includes/supplements/index.php +2 -2
  82. freemius/index.php +2 -2
  83. freemius/languages/freemius-da_DK.po +1826 -1826
  84. freemius/languages/freemius-en.po +1824 -1824
  85. freemius/languages/freemius-he.po +0 -582
admin/settings/general.class.php CHANGED
@@ -97,7 +97,8 @@ class TInvWL_Admin_Settings_General extends TInvWL_Admin_BaseSection {
97
  'text' => __( 'Remove product from Wishlist on second click', 'ti-woocommerce-wishlist' ),
98
  'std' => false,
99
  'extra' => array(
100
- 'tiwl-show' => '.tiwl-button-simple-flow',
 
101
  ),
102
  ),
103
  array(
@@ -129,14 +130,6 @@ class TInvWL_Admin_Settings_General extends TInvWL_Admin_BaseSection {
129
  'std' => true,
130
  'class' => 'tiwl-button-show-notice',
131
  ),
132
- array(
133
- 'type' => 'text',
134
- 'name' => 'text_removed_from',
135
- 'text' => __( '"Product removed from Wishlist" Text', 'ti-woocommerce-wishlist' ),
136
- 'desc' => __( 'This notification will be shown once the product is removed from Wishlist on a single or a catalog page.', 'ti-woocommerce-wishlist' ),
137
- 'std' => 'Product removed from Wishlist',
138
- 'class' => 'tiwl-button-show-notice',
139
- ),
140
  array(
141
  'type' => 'text',
142
  'name' => 'text_added_to',
@@ -150,7 +143,15 @@ class TInvWL_Admin_Settings_General extends TInvWL_Admin_BaseSection {
150
  'text' => __( '"Product already in Wishlist" Text', 'ti-woocommerce-wishlist' ),
151
  'desc' => __( 'This notification will be shown if user will try to add product that already in wishlist when quantity on wishlist page is disabled.', 'ti-woocommerce-wishlist' ),
152
  'std' => 'Product already in Wishlist',
153
- 'class' => 'tiwl-button-show-notice',
 
 
 
 
 
 
 
 
154
  ),
155
  ),
156
  ),
97
  'text' => __( 'Remove product from Wishlist on second click', 'ti-woocommerce-wishlist' ),
98
  'std' => false,
99
  'extra' => array(
100
+ 'tiwl-show' => '.tiwl-general-simple-flow>td',
101
+ 'tiwl-hide' => '.tiwl-general-simple-flow-hide>td',
102
  ),
103
  ),
104
  array(
130
  'std' => true,
131
  'class' => 'tiwl-button-show-notice',
132
  ),
 
 
 
 
 
 
 
 
133
  array(
134
  'type' => 'text',
135
  'name' => 'text_added_to',
143
  'text' => __( '"Product already in Wishlist" Text', 'ti-woocommerce-wishlist' ),
144
  'desc' => __( 'This notification will be shown if user will try to add product that already in wishlist when quantity on wishlist page is disabled.', 'ti-woocommerce-wishlist' ),
145
  'std' => 'Product already in Wishlist',
146
+ 'class' => 'tiwl-button-show-notice tiwl-general-simple-flow-hide',
147
+ ),
148
+ array(
149
+ 'type' => 'text',
150
+ 'name' => 'text_removed_from',
151
+ 'text' => __( '"Product removed from Wishlist" Text', 'ti-woocommerce-wishlist' ),
152
+ 'desc' => __( 'This notification will be shown once the product is removed from Wishlist on a single or a catalog page.', 'ti-woocommerce-wishlist' ),
153
+ 'std' => 'Product removed from Wishlist',
154
+ 'class' => 'tiwl-button-show-notice tiwl-general-simple-flow',
155
  ),
156
  ),
157
  ),
admin/settings/style.class.php CHANGED
@@ -88,6 +88,7 @@ class TInvWL_Admin_Settings_Style extends TInvWL_Admin_BaseStyle {
88
  'element' => 'font-family',
89
  'text' => __( 'Font', 'ti-woocommerce-wishlist' ),
90
  'options' => $font_family,
 
91
  ),
92
 
93
  array(
@@ -123,6 +124,7 @@ class TInvWL_Admin_Settings_Style extends TInvWL_Admin_BaseStyle {
123
  'element' => 'font-family',
124
  'text' => __( 'Font', 'ti-woocommerce-wishlist' ),
125
  'options' => $font_family,
 
126
  ),
127
 
128
  array(
@@ -160,6 +162,7 @@ class TInvWL_Admin_Settings_Style extends TInvWL_Admin_BaseStyle {
160
  'element' => 'font-family',
161
  'text' => __( 'Font', 'ti-woocommerce-wishlist' ),
162
  'options' => $font_family,
 
163
  ),
164
  array(
165
  'type' => 'text',
@@ -221,6 +224,7 @@ class TInvWL_Admin_Settings_Style extends TInvWL_Admin_BaseStyle {
221
  'element' => 'font-family',
222
  'text' => __( 'Font', 'ti-woocommerce-wishlist' ),
223
  'options' => $font_family,
 
224
  ),
225
  array(
226
  'type' => 'text',
@@ -270,6 +274,7 @@ class TInvWL_Admin_Settings_Style extends TInvWL_Admin_BaseStyle {
270
  'element' => 'font-family',
271
  'text' => __( 'Font', 'ti-woocommerce-wishlist' ),
272
  'options' => $font_family,
 
273
  ),
274
  array(
275
  'type' => 'text',
@@ -319,6 +324,7 @@ class TInvWL_Admin_Settings_Style extends TInvWL_Admin_BaseStyle {
319
  'element' => 'font-family',
320
  'text' => __( 'Font', 'ti-woocommerce-wishlist' ),
321
  'options' => $font_family,
 
322
  ),
323
  array(
324
  'type' => 'text',
@@ -368,6 +374,7 @@ class TInvWL_Admin_Settings_Style extends TInvWL_Admin_BaseStyle {
368
  'element' => 'font-family',
369
  'text' => __( 'Font', 'ti-woocommerce-wishlist' ),
370
  'options' => $font_family,
 
371
  ),
372
  array(
373
  'type' => 'text',
@@ -417,6 +424,7 @@ class TInvWL_Admin_Settings_Style extends TInvWL_Admin_BaseStyle {
417
  'element' => 'font-family',
418
  'text' => __( 'Table Head Font', 'ti-woocommerce-wishlist' ),
419
  'options' => $font_family,
 
420
  ),
421
  array(
422
  'type' => 'text',
@@ -436,6 +444,7 @@ class TInvWL_Admin_Settings_Style extends TInvWL_Admin_BaseStyle {
436
  'element' => 'font-family',
437
  'text' => __( 'Content Text Font', 'ti-woocommerce-wishlist' ),
438
  'options' => $font_family,
 
439
  ),
440
  array(
441
  'type' => 'text',
@@ -455,6 +464,7 @@ class TInvWL_Admin_Settings_Style extends TInvWL_Admin_BaseStyle {
455
  'element' => 'font-family',
456
  'text' => __( 'Price Font', 'ti-woocommerce-wishlist' ),
457
  'options' => $font_family,
 
458
  ),
459
  array(
460
  'type' => 'text',
@@ -521,6 +531,7 @@ class TInvWL_Admin_Settings_Style extends TInvWL_Admin_BaseStyle {
521
  'element' => 'font-family',
522
  'text' => __( 'Title Font', 'ti-woocommerce-wishlist' ),
523
  'options' => $font_family,
 
524
  ),
525
  array(
526
  'type' => 'text',
@@ -540,6 +551,7 @@ class TInvWL_Admin_Settings_Style extends TInvWL_Admin_BaseStyle {
540
  'element' => 'font-family',
541
  'text' => __( 'Content Text Font', 'ti-woocommerce-wishlist' ),
542
  'options' => $font_family,
 
543
  ),
544
  array(
545
  'type' => 'text',
88
  'element' => 'font-family',
89
  'text' => __( 'Font', 'ti-woocommerce-wishlist' ),
90
  'options' => $font_family,
91
+ 'validate' => array( 'filter' => FILTER_DEFAULT ),
92
  ),
93
 
94
  array(
124
  'element' => 'font-family',
125
  'text' => __( 'Font', 'ti-woocommerce-wishlist' ),
126
  'options' => $font_family,
127
+ 'validate' => array( 'filter' => FILTER_DEFAULT ),
128
  ),
129
 
130
  array(
162
  'element' => 'font-family',
163
  'text' => __( 'Font', 'ti-woocommerce-wishlist' ),
164
  'options' => $font_family,
165
+ 'validate' => array( 'filter' => FILTER_DEFAULT ),
166
  ),
167
  array(
168
  'type' => 'text',
224
  'element' => 'font-family',
225
  'text' => __( 'Font', 'ti-woocommerce-wishlist' ),
226
  'options' => $font_family,
227
+ 'validate' => array( 'filter' => FILTER_DEFAULT ),
228
  ),
229
  array(
230
  'type' => 'text',
274
  'element' => 'font-family',
275
  'text' => __( 'Font', 'ti-woocommerce-wishlist' ),
276
  'options' => $font_family,
277
+ 'validate' => array( 'filter' => FILTER_DEFAULT ),
278
  ),
279
  array(
280
  'type' => 'text',
324
  'element' => 'font-family',
325
  'text' => __( 'Font', 'ti-woocommerce-wishlist' ),
326
  'options' => $font_family,
327
+ 'validate' => array( 'filter' => FILTER_DEFAULT ),
328
  ),
329
  array(
330
  'type' => 'text',
374
  'element' => 'font-family',
375
  'text' => __( 'Font', 'ti-woocommerce-wishlist' ),
376
  'options' => $font_family,
377
+ 'validate' => array( 'filter' => FILTER_DEFAULT ),
378
  ),
379
  array(
380
  'type' => 'text',
424
  'element' => 'font-family',
425
  'text' => __( 'Table Head Font', 'ti-woocommerce-wishlist' ),
426
  'options' => $font_family,
427
+ 'validate' => array( 'filter' => FILTER_DEFAULT ),
428
  ),
429
  array(
430
  'type' => 'text',
444
  'element' => 'font-family',
445
  'text' => __( 'Content Text Font', 'ti-woocommerce-wishlist' ),
446
  'options' => $font_family,
447
+ 'validate' => array( 'filter' => FILTER_DEFAULT ),
448
  ),
449
  array(
450
  'type' => 'text',
464
  'element' => 'font-family',
465
  'text' => __( 'Price Font', 'ti-woocommerce-wishlist' ),
466
  'options' => $font_family,
467
+ 'validate' => array( 'filter' => FILTER_DEFAULT ),
468
  ),
469
  array(
470
  'type' => 'text',
531
  'element' => 'font-family',
532
  'text' => __( 'Title Font', 'ti-woocommerce-wishlist' ),
533
  'options' => $font_family,
534
+ 'validate' => array( 'filter' => FILTER_DEFAULT ),
535
  ),
536
  array(
537
  'type' => 'text',
551
  'element' => 'font-family',
552
  'text' => __( 'Content Text Font', 'ti-woocommerce-wishlist' ),
553
  'options' => $font_family,
554
+ 'validate' => array( 'filter' => FILTER_DEFAULT ),
555
  ),
556
  array(
557
  'type' => 'text',
admin/tinvwl.class.php CHANGED
@@ -1,403 +1,403 @@
1
- <?php
2
- /**
3
- * Admin pages class
4
- *
5
- * @since 1.0.0
6
- * @package TInvWishlist\Admin
7
- */
8
-
9
- // If this file is called directly, abort.
10
- if ( ! defined( 'ABSPATH' ) ) {
11
- die;
12
- }
13
-
14
- /**
15
- * Admin pages class
16
- */
17
- class TInvWL_Admin_TInvWL extends TInvWL_Admin_Base {
18
-
19
- /**
20
- * Constructor
21
- *
22
- * @param string $plugin_name Plugin name.
23
- * @param string $version Plugin version.
24
- */
25
- function __construct( $plugin_name, $version ) {
26
- $this->_n = $plugin_name;
27
- $this->_v = $version;
28
- }
29
-
30
- /**
31
- * Load functions.
32
- * Create Wishlist and Product class.
33
- * Load settings classes.
34
- */
35
- function load_function() {
36
- TII18n();
37
- TInvWL_Notice::instance()->add_notice( 'rating', '<p>' . __( 'Woo-Ha! It has been a month since the first wishlist was created with <strong>WooCommerce WishList plugin</strong>!', 'ti-woocommerce-wishlist' ) . '</p><p>' . __( 'What do you think about our plugin?', 'ti-woocommerce-wishlist' ) . '</p><p>' . __( 'Share your love with us.', 'ti-woocommerce-wishlist' ) . '</p>' )->add_trigger( 'admin_init', 'tinvwl_rating_notice_trigger_30' );
38
- $this->load_settings();
39
-
40
- $this->define_hooks();
41
- }
42
-
43
- /**
44
- * Load settings classes.
45
- *
46
- * @return boolean
47
- */
48
- function load_settings() {
49
- $dir = TINVWL_PATH . 'admin/settings/';
50
- if ( ! file_exists( $dir ) || ! is_dir( $dir ) ) {
51
- return false;
52
- }
53
- $files = scandir( $dir );
54
- foreach ( $files as $value ) {
55
- if ( preg_match( '/\.class\.php$/i', $value ) ) {
56
- $file = preg_replace( '/\.class\.php$/i', '', $value );
57
- $class = 'TInvWL_Admin_Settings_' . ucfirst( $file );
58
- $settings = new $class( $this->_n, $this->_v );
59
- }
60
- }
61
- return true;
62
- }
63
-
64
- /**
65
- * Define hooks
66
- */
67
- function define_hooks() {
68
- add_action( 'admin_menu', array( $this, 'action_menu' ) );
69
- if ( 'skip' === filter_input( INPUT_GET, $this->_n . '-wizard' ) ) {
70
- update_option( $this->_n . '_wizard', true );
71
- }
72
- if ( ! get_option( $this->_n . '_wizard' ) ) {
73
- add_action( 'admin_notices', array( $this, 'wizard_run_admin_notice' ) );
74
- } elseif ( ! tinv_get_option( 'page', 'wishlist' ) ) {
75
- add_action( 'admin_notices', array( $this, 'empty_page_admin_notice' ) );
76
- }
77
- add_action( 'woocommerce_system_status_report', array( $this, 'system_report_templates' ) );
78
-
79
- add_action( 'switch_theme', array( $this, 'admin_notice_outdated_templates' ) );
80
- add_action( 'tinvwl_updated', array( $this, 'admin_notice_outdated_templates' ) );
81
- add_action( 'wp_ajax_' . $this->_n . '_checker_hook', array( $this, 'validation_template' ) );
82
- add_action( 'switch_theme', array( $this, 'clear_notice_validation_template' ) );
83
- add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts_validate_template' ) );
84
- add_action( 'tinvwl_admin_promo_footer', array( $this, 'promo_footer' ) );
85
- }
86
-
87
- /**
88
- * Error notice if wizard didn't run.
89
- */
90
- function wizard_run_admin_notice() {
91
- printf( '<div class="notice notice-error"><p>%1$s</p><p><a href="%2$s" class="button-primary">%3$s</a> <a href="%4$s" class="button-secondary">%5$s</a></p></div>',
92
- __( '<strong>Welcome to WooCommerce Wishlist Plugin<strong> – You‘re almost ready to start :)', 'ti-woocommerce-wishlist' ), // @codingStandardsIgnoreLine WordPress.XSS.EscapeOutput.OutputNotEscaped
93
- esc_url( admin_url( 'index.php?page=tinvwl-wizard' ) ),
94
- esc_html__( 'Run the Setup Wizard', 'ti-woocommerce-wishlist' ),
95
- esc_url( admin_url( 'index.php?page=' . $this->_n . '&' . $this->_n . '-wizard=skip' ) ),
96
- esc_html__( 'Skip Setup', 'ti-woocommerce-wishlist' )
97
- );
98
- }
99
-
100
- /**
101
- * Error notice if wishlist page not set.
102
- */
103
- function empty_page_admin_notice() {
104
- printf( '<div class="notice notice-error is-dismissible" style="position: relative;"><p>%1$s <a href="%2$s">%3$s</a>%4$s<a href="%5$s">%6$s</a></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">' . __( 'Dismiss' ) . '</span></button></div>', // @codingStandardsIgnoreLine WordPress.XSS.EscapeOutput.OutputNotEscaped
105
- esc_html__( 'Link to Wishlists does not work!', 'ti-woocommerce-wishlist' ),
106
- esc_url( $this->admin_url( '' ) . '#general' ),
107
- esc_html__( 'Please apply the Wishlist page', 'ti-woocommerce-wishlist' ),
108
- esc_html__( ' or ', 'ti-woocommerce-wishlist' ),
109
- esc_url( admin_url( 'index.php?page=tinvwl-wizard' ) ),
110
- esc_html__( 'Run the Setup Wizard', 'ti-woocommerce-wishlist' )
111
- );
112
- }
113
-
114
- /**
115
- * Creation mune and sub-menu
116
- */
117
- function action_menu() {
118
- $page = add_menu_page( 'TI Wishlists', 'TI Wishlists', 'manage_options', $this->_n, null, TINVWL_URL . 'asset/img/icon_menu.png', 56 );
119
- add_action( "load-$page", array( $this, 'onload' ) );
120
- $menu = apply_filters( $this->_n . '_admin_menu', array() );
121
- foreach ( $menu as $item ) {
122
- if ( ! array_key_exists( 'page_title', $item ) ) {
123
- $item['page_title'] = $item['title'];
124
- }
125
- if ( ! array_key_exists( 'parent', $item ) ) {
126
- $item['parent'] = $this->_n;
127
- }
128
- if ( ! array_key_exists( 'capability', $item ) ) {
129
- $item['capability'] = 'manage_options';
130
- }
131
- $item['slug'] = implode( '-', array_filter( array( $this->_n, $item['slug'] ) ) );
132
-
133
- $page = add_submenu_page( $item['parent'], $item['page_title'], $item['title'], $item['capability'], $item['slug'], $item['method'] );
134
- add_action( "load-$page", array( $this, 'onload' ) );
135
- }
136
- }
137
-
138
- /**
139
- * Load style and javascript
140
- */
141
- function onload() {
142
- add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) );
143
- add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
144
- add_filter( 'admin_footer_text', array( $this, 'footer_admin' ) );
145
-
146
- add_filter( $this->_n . '_view_panelstatus', array( $this, 'status_panel' ), 9999 );
147
- }
148
-
149
- /**
150
- * Load style
151
- */
152
- function enqueue_styles() {
153
- wp_enqueue_style( 'gfonts', ( is_ssl() ? 'https' : 'http' ) . '://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800', '', null, 'all' );
154
- wp_enqueue_style( $this->_n, TINVWL_URL . 'asset/css/admin.css', array(), $this->_v, 'all' );
155
- wp_enqueue_style( $this->_n . '-font-awesome', TINVWL_URL . 'asset/css/font-awesome.min.css', array(), $this->_v, 'all' );
156
- wp_enqueue_style( $this->_n . '-form', TINVWL_URL . 'asset/css/admin-form.css', array(), $this->_v, 'all' );
157
- }
158
-
159
- /**
160
- * Load javascript
161
- */
162
- function enqueue_scripts() {
163
- $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
164
- wp_enqueue_script( $this->_n . '-bootstrap', TINVWL_URL . 'asset/js/bootstrap' . $suffix . '.js', array( 'jquery' ), $this->_v, 'all' );
165
- wp_enqueue_script( $this->_n, TINVWL_URL . 'asset/js/admin' . $suffix . '.js', array( 'jquery', 'wp-color-picker' ), $this->_v, 'all' );
166
- }
167
-
168
- /**
169
- * Add plugin footer copywriting
170
- */
171
- function footer_admin() {
172
- do_action( 'tinvwl_admin_promo_footer' );
173
- }
174
-
175
- /**
176
- * Promo in footer for wishlist
177
- */
178
- function promo_footer() {
179
- echo 'Made with <i class="fa fa-heart"></i> by <a href="https://templateinvaders.com/?utm_source=' . TINVWL_UTM_SOURCE . '&utm_campaign=' . TINVWL_UTM_CAMPAIGN . '&utm_medium=' . TINVWL_UTM_MEDIUM . '&utm_content=made_by&partner=' . TINVWL_UTM_SOURCE . '">TemplateInvaders</a><br />If you like WooCommerce Wishlist Plugin please leave us a <a href="https://wordpress.org/support/plugin/ti-woocommerce-wishlist/reviews/#new-post"><span><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i></span></a> rating.'; // WPCS: xss ok.
180
- }
181
-
182
- /**
183
- * Create Upgrade button
184
- *
185
- * @param array $panel Panel Button.
186
- *
187
- * @return array
188
- */
189
- function status_panel( $panel ) {
190
- array_unshift( $panel, sprintf( '<a class="tinvwl-btn red w-icon smaller-txt" href="%s"><i class="fa fa-star"></i><span class="tinvwl-txt">%s</span></a>', 'https://templateinvaders.com/product/ti-woocommerce-wishlist-wordpress-plugin/?utm_source=' . TINVWL_UTM_SOURCE . '&utm_campaign=' . TINVWL_UTM_CAMPAIGN . '&utm_medium=' . TINVWL_UTM_MEDIUM . '&utm_content=header_upgrade&partner=' . TINVWL_UTM_SOURCE, __( 'Upgrade to Pro', 'ti-woocommerce-wishlist' ) ) );
191
-
192
- return $panel;
193
- }
194
-
195
- /**
196
- * Templates overriding status check.
197
- *
198
- * @param boolean $outdated Out date status.
199
- * @return string
200
- */
201
- function templates_status_check( $outdated = false ) {
202
-
203
- $found_files = array();
204
-
205
- $scanned_files = WC_Admin_Status::scan_template_files( TINVWL_PATH . '/templates/' );
206
-
207
- foreach ( $scanned_files as $file ) {
208
- if ( file_exists( get_stylesheet_directory() . '/' . $file ) ) {
209
- $theme_file = get_stylesheet_directory() . '/' . $file;
210
- } elseif ( file_exists( get_stylesheet_directory() . '/woocommerce/' . $file ) ) {
211
- $theme_file = get_stylesheet_directory() . '/woocommerce/' . $file;
212
- } elseif ( file_exists( get_template_directory() . '/' . $file ) ) {
213
- $theme_file = get_template_directory() . '/' . $file;
214
- } elseif ( file_exists( get_template_directory() . '/woocommerce/' . $file ) ) {
215
- $theme_file = get_template_directory() . '/woocommerce/' . $file;
216
- } else {
217
- $theme_file = false;
218
- }
219
-
220
- if ( ! empty( $theme_file ) ) {
221
- $core_version = WC_Admin_Status::get_file_version( TINVWL_PATH . '/templates/' . $file );
222
- $theme_version = WC_Admin_Status::get_file_version( $theme_file );
223
-
224
- if ( $core_version && ( empty( $theme_version ) || version_compare( $theme_version, $core_version, '<' ) ) ) {
225
- if ( $outdated ) {
226
- return 'outdated';
227
- }
228
- $found_files[] = sprintf( __( '<code>%1$s</code> version <strong style="color:red">%2$s</strong> is out of date. The core version is <strong style="color:red">%3$s</strong>', 'ti-woocommerce-wishlist' ), str_replace( WP_CONTENT_DIR . '/themes/', '', $theme_file ), $theme_version ? $theme_version : '-', $core_version );
229
- } else {
230
- $found_files[] = str_replace( WP_CONTENT_DIR . '/themes/', '', $theme_file );
231
- }
232
- }
233
- }
234
-
235
- return $found_files;
236
- }
237
-
238
- /**
239
- * Templates overriding status for WooCommerce Status report page.
240
- */
241
- function system_report_templates() {
242
-
243
- TInvWL_View::view( 'templates-status', array( 'found_files' => $this->templates_status_check() ) );
244
- }
245
-
246
- /**
247
- * Outdated templates notice.
248
- */
249
- function admin_notice_outdated_templates() {
250
- if ( 'outdated' === $this->templates_status_check( true ) ) {
251
-
252
- $theme = wp_get_theme();
253
-
254
- $html = sprintf( __( '<strong>Your theme (%1$s) contains outdated copies of some WooCommerce Wishlist Plugin template files.</strong><br> These files may need updating to ensure they are compatible with the current version of WooCommerce Wishlist Plugin.<br> You can see which files are affected from the <a href="%2$s">system status page</a>.<br> If in doubt, check with the author of the theme.', 'ti-woocommerce-wishlist' ), esc_html( $theme['Name'] ), esc_url( admin_url( 'admin.php?page=wc-status' ) ) );
255
-
256
- WC_Admin_Notices::add_custom_notice( 'outdated_templates', $html );
257
- } else {
258
- WC_Admin_Notices::remove_notice( 'outdated_templates' );
259
- }
260
- }
261
-
262
- /**
263
- * Load javascript for validation templates
264
- */
265
- function enqueue_scripts_validate_template() {
266
- $theme = wp_get_theme();
267
- $theme = $theme->get_template();
268
- if ( tinv_get_option( 'template_checker', 'theme' ) !== $theme ) {
269
- tinv_update_option( 'template_checker', '', array() );
270
- tinv_update_option( 'template_checker', 'theme', $theme );
271
- tinv_update_option( 'template_checker', 'checked', false );
272
- tinv_update_option( 'template_checker', 'time', 0 );
273
- }
274
- if ( tinv_get_option( 'template_checker', 'checked' ) && absint( tinv_get_option( 'template_checker', 'time' ) ) + HOUR_IN_SECONDS > time() ) {
275
- return;
276
- }
277
- $types = array_keys( wc_get_product_types() );
278
- foreach ( $types as $type => $type_name ) {
279
- if ( ! tinv_get_option( 'template_checker', 'missing_hook_' . $type ) ) {
280
- $data = filter_input_array( INPUT_GET, array(
281
- 'wc-hide-notice' => FILTER_DEFAULT,
282
- '_wc_notice_nonce' => FILTER_DEFAULT,
283
- ) );
284
- if ( 'missing_hook_' . $type === $data['wc-hide-notice'] && wp_verify_nonce( $data['_wc_notice_nonce'], 'woocommerce_hide_notices_nonce' ) ) {
285
- tinv_update_option( 'template_checker', 'missing_hook_' . $type, true );
286
- }
287
- }
288
- }
289
- if ( ! tinv_get_option( 'template_checker', 'hide_product_listing' ) ) {
290
- $data = filter_input_array( INPUT_GET, array(
291
- 'wc-hide-notice' => FILTER_DEFAULT,
292
- '_wc_notice_nonce' => FILTER_DEFAULT,
293
- ) );
294
- if ( 'missing_hook_listing' === $data['wc-hide-notice'] && wp_verify_nonce( $data['_wc_notice_nonce'], 'woocommerce_hide_notices_nonce' ) ) {
295
- tinv_update_option( 'template_checker', 'hide_product_listing', true );
296
- }
297
- }
298
-
299
- wp_enqueue_script( $this->_n . '-checker', TINVWL_URL . 'asset/js/admin.checker.min.js', array( 'jquery' ), $this->_v, 'all' );
300
- }
301
-
302
- /**
303
- * Validation templates hook from request remote page
304
- */
305
- function validation_template() {
306
- global $post, $product;
307
-
308
- if ( tinv_get_option( 'template_checker', 'checked' ) ) {
309
- return;
310
- }
311
- if ( absint( tinv_get_option( 'template_checker', 'time' ) ) + HOUR_IN_SECONDS > time() ) {
312
- return;
313
- }
314
- tinv_update_option( 'template_checker', 'time', time() );
315
- $tags = array(
316
- 'woocommerce_single_product_summary' => 'tinvwl_single_product_summary',
317
- 'woocommerce_before_add_to_cart_button' => 'tinvwl_before_add_to_cart_button',
318
- 'woocommerce_after_add_to_cart_button' => 'tinvwl_after_add_to_cart_button',
319
- );
320
- $tch = TInvWL_CheckerHook::instance();
321
- $tch->add_action( $tags );
322
- $tch->add_action( array_keys( $tags ) );
323
-
324
- $types = wc_get_product_types();
325
-
326
- $check = true;
327
- foreach ( $types as $type => $type_name ) {
328
- if ( tinv_get_option( 'template_checker', 'missing_hook_' . $type ) ) {
329
- continue;
330
- }
331
-
332
- if ( function_exists( 'wc_get_products' ) ) {
333
- $products = wc_get_products( array(
334
- 'status' => 'publish',
335
- 'type' => $type,
336
- 'limit' => 1,
337
- ) );
338
- } else {
339
- $products = array_map( 'wc_get_product', get_posts( array(
340
- 'post_type' => 'product',
341
- 'post_status' => 'publish',
342
- 'numberposts' => 1,
343
- 'tax_query' => array(
344
- array(
345
- 'taxonomy' => 'product_type',
346
- 'field' => 'slug',
347
- 'terms' => $type,
348
- ),
349
- ),
350
- ) ) );
351
- }
352
- if ( ! empty( $products ) ) {
353
- $product = array_shift( $products );
354
- $post = get_post( $product->get_id() ); // @codingStandardsIgnoreLine WordPress.Variables.GlobalVariables.OverrideProhibited
355
- $result = $tch->run( array(
356
- 'template' => array( 'content-single-product.php', 'single-product/add-to-cart/' . $type . '.php' ),
357
- 'template_args' => array(
358
- 'available_variations' => array( 1, 2, 3, 4, 5 ),
359
- 'attributes' => array(),
360
- ),
361
- 'url' => $product->get_permalink(),
362
- ) );
363
- if ( ! empty( $result ) ) {
364
- $result = array_keys( $result );
365
- foreach ( $result as $key => $tag ) {
366
- if ( array_key_exists( $tag, $tags ) ) {
367
- $tags[ $tag ];
368
- if ( ! array_key_exists( $tag, $tags ) ) {
369
- unset( $result[ $key ] );
370
- }
371
- } else {
372
- unset( $result[ $key ] );
373
- }
374
- }
375
- if ( ! empty( $result ) ) {
376
- WC_Admin_Notices::add_custom_notice( 'missing_hook_' . $type, sprintf( _n( 'The "Add to Wishlist" button may work improperly in a product type "%1$s" because the hook "%2$s" is missing.<br />Please, ask your theme developers to check the theme templates or <a href="https://templateinvaders.com/help/" target="_blank">contact us</a> for assistance.', 'The "Add to Wishlist" button may work improperly in a product type "%1$s" because the hooks "%2$s" are missing.<br />Please, ask your theme developers to check the theme templates or <a href="https://templateinvaders.com/help/" target="_blank">contact us</a> for assistance.', count( $result ), 'ti-woocommerce-wishlist' ), $type_name, '<strong>' . join( '</strong>, <strong>', $result ) . '</strong>' ) );
377
- $check = false;
378
- } else {
379
- WC_Admin_Notices::remove_notice( 'missing_hook_' . $type );
380
- }
381
- } else {
382
- WC_Admin_Notices::remove_notice( 'missing_hook_' . $type );
383
- }
384
- }
385
- } // End foreach().
386
-
387
- tinv_update_option( 'template_checker', 'checked', $check );
388
- wp_die();
389
- }
390
-
391
- /**
392
- * Clear notice validation template when theme switched
393
- */
394
- function clear_notice_validation_template() {
395
- WC_Admin_Notices::remove_notice( 'missing_hook_listing' );
396
- $types = wc_get_product_types();
397
- foreach ( $types as $type => $type_name ) {
398
- WC_Admin_Notices::remove_notice( 'missing_hook_' . $type );
399
- }
400
- tinv_update_option( 'template_checker', '', array() );
401
- }
402
-
403
- }
1
+ <?php
2
+ /**
3
+ * Admin pages class
4
+ *
5
+ * @since 1.0.0
6
+ * @package TInvWishlist\Admin
7
+ */
8
+
9
+ // If this file is called directly, abort.
10
+ if ( ! defined( 'ABSPATH' ) ) {
11
+ die;
12
+ }
13
+
14
+ /**
15
+ * Admin pages class
16
+ */
17
+ class TInvWL_Admin_TInvWL extends TInvWL_Admin_Base {
18
+
19
+ /**
20
+ * Constructor
21
+ *
22
+ * @param string $plugin_name Plugin name.
23
+ * @param string $version Plugin version.
24
+ */
25
+ function __construct( $plugin_name, $version ) {
26
+ $this->_n = $plugin_name;
27
+ $this->_v = $version;
28
+ }
29
+
30
+ /**
31
+ * Load functions.
32
+ * Create Wishlist and Product class.
33
+ * Load settings classes.
34
+ */
35
+ function load_function() {
36
+ TII18n();
37
+ TInvWL_Notice::instance()->add_notice( 'rating', '<p>' . __( 'Woo-Ha! It has been a month since the first wishlist was created with <strong>WooCommerce WishList plugin</strong>!', 'ti-woocommerce-wishlist' ) . '</p><p>' . __( 'What do you think about our plugin?', 'ti-woocommerce-wishlist' ) . '</p><p>' . __( 'Share your love with us.', 'ti-woocommerce-wishlist' ) . '</p>' )->add_trigger( 'admin_init', 'tinvwl_rating_notice_trigger_30' );
38
+ $this->load_settings();
39
+
40
+ $this->define_hooks();
41
+ }
42
+
43
+ /**
44
+ * Load settings classes.
45
+ *
46
+ * @return boolean
47
+ */
48
+ function load_settings() {
49
+ $dir = TINVWL_PATH . 'admin/settings/';
50
+ if ( ! file_exists( $dir ) || ! is_dir( $dir ) ) {
51
+ return false;
52
+ }
53
+ $files = scandir( $dir );
54
+ foreach ( $files as $value ) {
55
+ if ( preg_match( '/\.class\.php$/i', $value ) ) {
56
+ $file = preg_replace( '/\.class\.php$/i', '', $value );
57
+ $class = 'TInvWL_Admin_Settings_' . ucfirst( $file );
58
+ $settings = new $class( $this->_n, $this->_v );
59
+ }
60
+ }
61
+ return true;
62
+ }
63
+
64
+ /**
65
+ * Define hooks
66
+ */
67
+ function define_hooks() {
68
+ add_action( 'admin_menu', array( $this, 'action_menu' ) );
69
+ if ( 'skip' === filter_input( INPUT_GET, $this->_n . '-wizard' ) ) {
70
+ update_option( $this->_n . '_wizard', true );
71
+ }
72
+ if ( ! get_option( $this->_n . '_wizard' ) ) {
73
+ add_action( 'admin_notices', array( $this, 'wizard_run_admin_notice' ) );
74
+ } elseif ( ! tinv_get_option( 'page', 'wishlist' ) ) {
75
+ add_action( 'admin_notices', array( $this, 'empty_page_admin_notice' ) );
76
+ }
77
+ add_action( 'woocommerce_system_status_report', array( $this, 'system_report_templates' ) );
78
+
79
+ add_action( 'switch_theme', array( $this, 'admin_notice_outdated_templates' ) );
80
+ add_action( 'tinvwl_updated', array( $this, 'admin_notice_outdated_templates' ) );
81
+ add_action( 'wp_ajax_' . $this->_n . '_checker_hook', array( $this, 'validation_template' ) );
82
+ add_action( 'switch_theme', array( $this, 'clear_notice_validation_template' ) );
83
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts_validate_template' ) );
84
+ add_action( 'tinvwl_admin_promo_footer', array( $this, 'promo_footer' ) );
85
+ }
86
+
87
+ /**
88
+ * Error notice if wizard didn't run.
89
+ */
90
+ function wizard_run_admin_notice() {
91
+ printf( '<div class="notice notice-error"><p>%1$s</p><p><a href="%2$s" class="button-primary">%3$s</a> <a href="%4$s" class="button-secondary">%5$s</a></p></div>',
92
+ __( '<strong>Welcome to WooCommerce Wishlist Plugin<strong> – You‘re almost ready to start :)', 'ti-woocommerce-wishlist' ), // @codingStandardsIgnoreLine WordPress.XSS.EscapeOutput.OutputNotEscaped
93
+ esc_url( admin_url( 'index.php?page=tinvwl-wizard' ) ),
94
+ esc_html__( 'Run the Setup Wizard', 'ti-woocommerce-wishlist' ),
95
+ esc_url( admin_url( 'index.php?page=' . $this->_n . '&' . $this->_n . '-wizard=skip' ) ),
96
+ esc_html__( 'Skip Setup', 'ti-woocommerce-wishlist' )
97
+ );
98
+ }
99
+
100
+ /**
101
+ * Error notice if wishlist page not set.
102
+ */
103
+ function empty_page_admin_notice() {
104
+ printf( '<div class="notice notice-error is-dismissible" style="position: relative;"><p>%1$s <a href="%2$s">%3$s</a>%4$s<a href="%5$s">%6$s</a></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">' . __( 'Dismiss' ) . '</span></button></div>', // @codingStandardsIgnoreLine WordPress.XSS.EscapeOutput.OutputNotEscaped
105
+ esc_html__( 'Link to Wishlists does not work!', 'ti-woocommerce-wishlist' ),
106
+ esc_url( $this->admin_url( '' ) . '#general' ),
107
+ esc_html__( 'Please apply the Wishlist page', 'ti-woocommerce-wishlist' ),
108
+ esc_html__( ' or ', 'ti-woocommerce-wishlist' ),
109
+ esc_url( admin_url( 'index.php?page=tinvwl-wizard' ) ),
110
+ esc_html__( 'Run the Setup Wizard', 'ti-woocommerce-wishlist' )
111
+ );
112
+ }
113
+
114
+ /**
115
+ * Creation mune and sub-menu
116
+ */
117
+ function action_menu() {
118
+ $page = add_menu_page( 'TI Wishlists', 'TI Wishlists', 'manage_options', $this->_n, null, TINVWL_URL . 'asset/img/icon_menu.png', 56 );
119
+ add_action( "load-$page", array( $this, 'onload' ) );
120
+ $menu = apply_filters( $this->_n . '_admin_menu', array() );
121
+ foreach ( $menu as $item ) {
122
+ if ( ! array_key_exists( 'page_title', $item ) ) {
123
+ $item['page_title'] = $item['title'];
124
+ }
125
+ if ( ! array_key_exists( 'parent', $item ) ) {
126
+ $item['parent'] = $this->_n;
127
+ }
128
+ if ( ! array_key_exists( 'capability', $item ) ) {
129
+ $item['capability'] = 'manage_options';
130
+ }
131
+ $item['slug'] = implode( '-', array_filter( array( $this->_n, $item['slug'] ) ) );
132
+
133
+ $page = add_submenu_page( $item['parent'], $item['page_title'], $item['title'], $item['capability'], $item['slug'], $item['method'] );
134
+ add_action( "load-$page", array( $this, 'onload' ) );
135
+ }
136
+ }
137
+
138
+ /**
139
+ * Load style and javascript
140
+ */
141
+ function onload() {
142
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) );
143
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
144
+ add_filter( 'admin_footer_text', array( $this, 'footer_admin' ) );
145
+
146
+ add_filter( $this->_n . '_view_panelstatus', array( $this, 'status_panel' ), 9999 );
147
+ }
148
+
149
+ /**
150
+ * Load style
151
+ */
152
+ function enqueue_styles() {
153
+ wp_enqueue_style( 'gfonts', ( is_ssl() ? 'https' : 'http' ) . '://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800', '', null, 'all' );
154
+ wp_enqueue_style( $this->_n, TINVWL_URL . 'asset/css/admin.css', array(), $this->_v, 'all' );
155
+ wp_enqueue_style( $this->_n . '-font-awesome', TINVWL_URL . 'asset/css/font-awesome.min.css', array(), $this->_v, 'all' );
156
+ wp_enqueue_style( $this->_n . '-form', TINVWL_URL . 'asset/css/admin-form.css', array(), $this->_v, 'all' );
157
+ }
158
+
159
+ /**
160
+ * Load javascript
161
+ */
162
+ function enqueue_scripts() {
163
+ $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
164
+ wp_enqueue_script( $this->_n . '-bootstrap', TINVWL_URL . 'asset/js/bootstrap' . $suffix . '.js', array( 'jquery' ), $this->_v, 'all' );
165
+ wp_enqueue_script( $this->_n, TINVWL_URL . 'asset/js/admin' . $suffix . '.js', array( 'jquery', 'wp-color-picker' ), $this->_v, 'all' );
166
+ }
167
+
168
+ /**
169
+ * Add plugin footer copywriting
170
+ */
171
+ function footer_admin() {
172
+ do_action( 'tinvwl_admin_promo_footer' );
173
+ }
174
+
175
+ /**
176
+ * Promo in footer for wishlist
177
+ */
178
+ function promo_footer() {
179
+ echo 'Made with <i class="fa fa-heart"></i> by <a href="https://templateinvaders.com/?utm_source=' . TINVWL_UTM_SOURCE . '&utm_campaign=' . TINVWL_UTM_CAMPAIGN . '&utm_medium=' . TINVWL_UTM_MEDIUM . '&utm_content=made_by&partner=' . TINVWL_UTM_SOURCE . '">TemplateInvaders</a><br />If you like WooCommerce Wishlist Plugin please leave us a <a href="https://wordpress.org/support/plugin/ti-woocommerce-wishlist/reviews/#new-post"><span><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i></span></a> rating.'; // WPCS: xss ok.
180
+ }
181
+
182
+ /**
183
+ * Create Upgrade button
184
+ *
185
+ * @param array $panel Panel Button.
186
+ *
187
+ * @return array
188
+ */
189
+ function status_panel( $panel ) {
190
+ array_unshift( $panel, sprintf( '<a class="tinvwl-btn red w-icon smaller-txt" href="%s"><i class="fa fa-star"></i><span class="tinvwl-txt">%s</span></a>', 'https://templateinvaders.com/product/ti-woocommerce-wishlist-wordpress-plugin/?utm_source=' . TINVWL_UTM_SOURCE . '&utm_campaign=' . TINVWL_UTM_CAMPAIGN . '&utm_medium=' . TINVWL_UTM_MEDIUM . '&utm_content=header_upgrade&partner=' . TINVWL_UTM_SOURCE, __( 'Upgrade to Pro', 'ti-woocommerce-wishlist' ) ) );
191
+
192
+ return $panel;
193
+ }
194
+
195
+ /**
196
+ * Templates overriding status check.
197
+ *
198
+ * @param boolean $outdated Out date status.
199
+ * @return string
200
+ */
201
+ function templates_status_check( $outdated = false ) {
202
+
203
+ $found_files = array();
204
+
205
+ $scanned_files = WC_Admin_Status::scan_template_files( TINVWL_PATH . '/templates/' );
206
+
207
+ foreach ( $scanned_files as $file ) {
208
+ if ( file_exists( get_stylesheet_directory() . '/' . $file ) ) {
209
+ $theme_file = get_stylesheet_directory() . '/' . $file;
210
+ } elseif ( file_exists( get_stylesheet_directory() . '/woocommerce/' . $file ) ) {
211
+ $theme_file = get_stylesheet_directory() . '/woocommerce/' . $file;
212
+ } elseif ( file_exists( get_template_directory() . '/' . $file ) ) {
213
+ $theme_file = get_template_directory() . '/' . $file;
214
+ } elseif ( file_exists( get_template_directory() . '/woocommerce/' . $file ) ) {
215
+ $theme_file = get_template_directory() . '/woocommerce/' . $file;
216
+ } else {
217
+ $theme_file = false;
218
+ }
219
+
220
+ if ( ! empty( $theme_file ) ) {
221
+ $core_version = WC_Admin_Status::get_file_version( TINVWL_PATH . '/templates/' . $file );
222
+ $theme_version = WC_Admin_Status::get_file_version( $theme_file );
223
+
224
+ if ( $core_version && ( empty( $theme_version ) || version_compare( $theme_version, $core_version, '<' ) ) ) {
225
+ if ( $outdated ) {
226
+ return 'outdated';
227
+ }
228
+ $found_files[] = sprintf( __( '<code>%1$s</code> version <strong style="color:red">%2$s</strong> is out of date. The core version is <strong style="color:red">%3$s</strong>', 'ti-woocommerce-wishlist' ), str_replace( WP_CONTENT_DIR . '/themes/', '', $theme_file ), $theme_version ? $theme_version : '-', $core_version );
229
+ } else {
230
+ $found_files[] = str_replace( WP_CONTENT_DIR . '/themes/', '', $theme_file );
231
+ }
232
+ }
233
+ }
234
+
235
+ return $found_files;
236
+ }
237
+
238
+ /**
239
+ * Templates overriding status for WooCommerce Status report page.
240
+ */
241
+ function system_report_templates() {
242
+
243
+ TInvWL_View::view( 'templates-status', array( 'found_files' => $this->templates_status_check() ) );
244
+ }
245
+
246
+ /**
247
+ * Outdated templates notice.
248
+ */
249
+ function admin_notice_outdated_templates() {
250
+ if ( 'outdated' === $this->templates_status_check( true ) ) {
251
+
252
+ $theme = wp_get_theme();
253
+
254
+ $html = sprintf( __( '<strong>Your theme (%1$s) contains outdated copies of some WooCommerce Wishlist Plugin template files.</strong><br> These files may need updating to ensure they are compatible with the current version of WooCommerce Wishlist Plugin.<br> You can see which files are affected from the <a href="%2$s">system status page</a>.<br> If in doubt, check with the author of the theme.', 'ti-woocommerce-wishlist' ), esc_html( $theme['Name'] ), esc_url( admin_url( 'admin.php?page=wc-status' ) ) );
255
+
256
+ WC_Admin_Notices::add_custom_notice( 'outdated_templates', $html );
257
+ } else {
258
+ WC_Admin_Notices::remove_notice( 'outdated_templates' );
259
+ }
260
+ }
261
+
262
+ /**
263
+ * Load javascript for validation templates
264
+ */
265
+ function enqueue_scripts_validate_template() {
266
+ $theme = wp_get_theme();
267
+ $theme = $theme->get_template();
268
+ if ( tinv_get_option( 'template_checker', 'theme' ) !== $theme ) {
269
+ tinv_update_option( 'template_checker', '', array() );
270
+ tinv_update_option( 'template_checker', 'theme', $theme );
271
+ tinv_update_option( 'template_checker', 'checked', false );
272
+ tinv_update_option( 'template_checker', 'time', 0 );
273
+ }
274
+ if ( tinv_get_option( 'template_checker', 'checked' ) && absint( tinv_get_option( 'template_checker', 'time' ) ) + HOUR_IN_SECONDS > time() ) {
275
+ return;
276
+ }
277
+ $types = array_keys( wc_get_product_types() );
278
+ foreach ( $types as $type => $type_name ) {
279
+ if ( ! tinv_get_option( 'template_checker', 'missing_hook_' . $type ) ) {
280
+ $data = filter_input_array( INPUT_GET, array(
281
+ 'wc-hide-notice' => FILTER_DEFAULT,
282
+ '_wc_notice_nonce' => FILTER_DEFAULT,
283
+ ) );
284
+ if ( 'missing_hook_' . $type === $data['wc-hide-notice'] && wp_verify_nonce( $data['_wc_notice_nonce'], 'woocommerce_hide_notices_nonce' ) ) {
285
+ tinv_update_option( 'template_checker', 'missing_hook_' . $type, true );
286
+ }
287
+ }
288
+ }
289
+ if ( ! tinv_get_option( 'template_checker', 'hide_product_listing' ) ) {
290
+ $data = filter_input_array( INPUT_GET, array(
291
+ 'wc-hide-notice' => FILTER_DEFAULT,
292
+ '_wc_notice_nonce' => FILTER_DEFAULT,
293
+ ) );
294
+ if ( 'missing_hook_listing' === $data['wc-hide-notice'] && wp_verify_nonce( $data['_wc_notice_nonce'], 'woocommerce_hide_notices_nonce' ) ) {
295
+ tinv_update_option( 'template_checker', 'hide_product_listing', true );
296
+ }
297
+ }
298
+
299
+ wp_enqueue_script( $this->_n . '-checker', TINVWL_URL . 'asset/js/admin.checker.min.js', array( 'jquery' ), $this->_v, 'all' );
300
+ }
301
+
302
+ /**
303
+ * Validation templates hook from request remote page
304
+ */
305
+ function validation_template() {
306
+ global $post, $product;
307
+
308
+ if ( tinv_get_option( 'template_checker', 'checked' ) ) {
309
+ return;
310
+ }
311
+ if ( absint( tinv_get_option( 'template_checker', 'time' ) ) + HOUR_IN_SECONDS > time() ) {
312
+ return;
313
+ }
314
+ tinv_update_option( 'template_checker', 'time', time() );
315
+ $tags = array(
316
+ 'woocommerce_single_product_summary' => 'tinvwl_single_product_summary',
317
+ 'woocommerce_before_add_to_cart_button' => 'tinvwl_before_add_to_cart_button',
318
+ 'woocommerce_after_add_to_cart_button' => 'tinvwl_after_add_to_cart_button',
319
+ );
320
+ $tch = TInvWL_CheckerHook::instance();
321
+ $tch->add_action( $tags );
322
+ $tch->add_action( array_keys( $tags ) );
323
+
324
+ $types = wc_get_product_types();
325
+
326
+ $check = true;
327
+ foreach ( $types as $type => $type_name ) {
328
+ if ( tinv_get_option( 'template_checker', 'missing_hook_' . $type ) ) {
329
+ continue;
330
+ }
331
+
332
+ if ( function_exists( 'wc_get_products' ) ) {
333
+ $products = wc_get_products( array(
334
+ 'status' => 'publish',
335
+ 'type' => $type,
336
+ 'limit' => 1,
337
+ ) );
338
+ } else {
339
+ $products = array_map( 'wc_get_product', get_posts( array(
340
+ 'post_type' => 'product',
341
+ 'post_status' => 'publish',
342
+ 'numberposts' => 1,
343
+ 'tax_query' => array(
344
+ array(
345
+ 'taxonomy' => 'product_type',
346
+ 'field' => 'slug',
347
+ 'terms' => $type,
348
+ ),
349
+ ),
350
+ ) ) );
351
+ }
352
+ if ( ! empty( $products ) ) {
353
+ $product = array_shift( $products );
354
+ $post = get_post( $product->get_id() ); // @codingStandardsIgnoreLine WordPress.Variables.GlobalVariables.OverrideProhibited
355
+ $result = $tch->run( array(
356
+ 'template' => array( 'content-single-product.php', 'single-product/add-to-cart/' . $type . '.php' ),
357
+ 'template_args' => array(
358
+ 'available_variations' => array( 1, 2, 3, 4, 5 ),
359
+ 'attributes' => array(),
360
+ ),
361
+ 'url' => $product->get_permalink(),
362
+ ) );
363
+ if ( ! empty( $result ) ) {
364
+ $result = array_keys( $result );
365
+ foreach ( $result as $key => $tag ) {
366
+ if ( array_key_exists( $tag, $tags ) ) {
367
+ $tags[ $tag ];
368
+ if ( ! array_key_exists( $tag, $tags ) ) {
369
+ unset( $result[ $key ] );
370
+ }
371
+ } else {
372
+ unset( $result[ $key ] );
373
+ }
374
+ }
375
+ if ( ! empty( $result ) ) {
376
+ WC_Admin_Notices::add_custom_notice( 'missing_hook_' . $type, sprintf( _n( 'The "Add to Wishlist" button may work improperly in a product type "%1$s" because the hook "%2$s" is missing.<br />Please, ask your theme developers to check the theme templates or <a href="https://templateinvaders.com/help/" target="_blank">contact us</a> for assistance.', 'The "Add to Wishlist" button may work improperly in a product type "%1$s" because the hooks "%2$s" are missing.<br />Please, ask your theme developers to check the theme templates or <a href="https://templateinvaders.com/help/" target="_blank">contact us</a> for assistance.', count( $result ), 'ti-woocommerce-wishlist' ), $type_name, '<strong>' . join( '</strong>, <strong>', $result ) . '</strong>' ) );
377
+ $check = false;
378
+ } else {
379
+ WC_Admin_Notices::remove_notice( 'missing_hook_' . $type );
380
+ }
381
+ } else {
382
+ WC_Admin_Notices::remove_notice( 'missing_hook_' . $type );
383
+ }
384
+ }
385
+ } // End foreach().
386
+
387
+ tinv_update_option( 'template_checker', 'checked', $check );
388
+ wp_die();
389
+ }
390
+
391
+ /**
392
+ * Clear notice validation template when theme switched
393
+ */
394
+ function clear_notice_validation_template() {
395
+ WC_Admin_Notices::remove_notice( 'missing_hook_listing' );
396
+ $types = wc_get_product_types();
397
+ foreach ( $types as $type => $type_name ) {
398
+ WC_Admin_Notices::remove_notice( 'missing_hook_' . $type );
399
+ }
400
+ tinv_update_option( 'template_checker', '', array() );
401
+ }
402
+
403
+ }
asset/css/admin-form.css CHANGED
@@ -1,406 +1,406 @@
1
- /*
2
- number input
3
- */
4
- .tiwlform-number-container {
5
- display: inline-block;
6
- margin: 2px;
7
- position: relative;
8
- vertical-align: middle;
9
- }
10
-
11
- .tiwlform-number-container input, .tiwlform-number-container button {
12
- margin: 0;
13
- font-weight: 800;
14
- display: inline-block;
15
- font-size: 14px;
16
- }
17
-
18
- .tiwlform-number-container input[type=text] {
19
- width: 50px;
20
- height: 36px;
21
- text-align: right;
22
- border-radius: 5px;
23
- line-height: 26px;
24
- margin: 0;
25
- }
26
-
27
- .tiwlform-number-container button {
28
- width: 20px;
29
- height: 38px;
30
- line-height: 38px;
31
- text-align: center;
32
- border-radius: 5px;
33
- margin: 0 2px;
34
- background-color: #f1eee8;
35
- border: 0;
36
- color: #000;
37
- padding: 0;
38
- cursor: pointer;
39
- }
40
-
41
- .tiwlform-number-container button:hover {
42
- background-color: #96b100;
43
- color: #FFF;
44
- }
45
-
46
- /*
47
- on off button
48
- */
49
- /*.tiwlform-onoff-container input {
50
- display: none;
51
- }*/
52
- .tiwlform-onoff-container {
53
- cursor: pointer;
54
- position: relative;
55
- display: inline-block;
56
- height: 36px;
57
- width: 132px;
58
- margin: 0;
59
-
60
- -webkit-border-radius: 3px;
61
- -moz-border-radius: 3px;
62
- border-radius: 3px;
63
-
64
- -webkit-box-shadow: inset 1px 1px 6px 0 rgba(170, 157, 137, .16);
65
- box-shadow: inset 1px 1px 6px 0 rgba(170, 157, 137, .16);
66
-
67
- -webkit-transition: all .3s ease-in-out;
68
- -moz-transition: all .3s ease-in-out;
69
- -o-transition: all .3s ease-in-out;
70
- transition: all .3s ease-in-out;
71
-
72
- border: 1px solid #eae6df;
73
- background: #f1eee8;
74
- }
75
-
76
- .tiwlform-onoff-container.disabled.checked {
77
- /*-webkit-box-shadow: inset 0 0 0 36px rgba(0,0,0,0.4);
78
- box-shadow: inset 0 0 0 36px rgba(0,0,0,0.4);*/
79
- border-color: rgba(0, 0, 0, 0.4);
80
- background-color: rgba(0, 0, 0, 0.4);
81
- }
82
-
83
- .tiwlform-onoff-container.disabled .tiwlform-onoff-button {
84
- color: rgba(0, 0, 0, 0.4) !important;
85
- }
86
-
87
- .tiwlform-onoff-container.checked {
88
- /*-webkit-box-shadow: inset 0 0 0 36px #96b100;
89
- box-shadow: inset 0 0 0 36px #96b100;*/
90
- background: #96b100;
91
- border-color: #96b100;
92
- }
93
-
94
- .tiwlform-onoff-container.checked .tiwlform-onoff-button {
95
- left: 4px;
96
- color: #96b100;
97
- }
98
-
99
- .tiwlform-onoff-container .tiwlform-onoff-button {
100
- display: inline-block;
101
- /*font-size: 21px;
102
- line-height: 21px;
103
- font-weight: 600;
104
- font-family: dashicons;*/
105
- font: normal normal normal 14px/1 FontAwesome;
106
- font-size: inherit;
107
- text-rendering: auto;
108
- -webkit-font-smoothing: antialiased;
109
- -moz-osx-font-smoothing: grayscale;
110
-
111
- position: absolute;
112
- top: 3px;
113
- left: 66px;
114
- width: 59px;
115
- height: 27px;
116
- line-height: 18px;
117
- padding: 4px;
118
- text-align: center;
119
-
120
- -webkit-border-radius: 3px;
121
- -moz-border-radius: 3px;
122
- border-radius: 3px;
123
-
124
- -webkit-box-shadow: 1px 1px 4px 0 rgba(2, 2, 2, .21);
125
- box-shadow: 1px 1px 4px 0 rgba(2, 2, 2, .21);
126
-
127
- -webkit-transition: all 350ms cubic-bezier(0, 0.89, 0.44, 1);
128
- -moz-transition: all 350ms cubic-bezier(0, 0.89, 0.44, 1);
129
- -o-transition: all 350ms cubic-bezier(0, 0.89, 0.44, 1);
130
- transition: all 350ms cubic-bezier(0, 0.89, 0.44, 1);
131
-
132
- color: #6b625a;
133
- background: #fff;
134
- }
135
-
136
- .tiwlform-onoff-container .tiwlform-onoff-button:before {
137
- content: "\e916";
138
- font-size: 11px;
139
- }
140
-
141
- .tiwlform-onoff-container.checked .tiwlform-onoff-button:before {
142
- content: "\e916";
143
- }
144
-
145
- .tiwlform-onoff-container.disabled {
146
- background-color: rgba(0, 0, 0, 0.4);
147
- }
148
-
149
- /*
150
- input range
151
- */
152
- .tiwlform-range-container {
153
- padding-top: 25px;
154
- height: 50px;
155
- }
156
-
157
- .tiwlform-range-container .range {
158
- width: 100%;
159
- position: relative;
160
- }
161
-
162
- .tiwlform-range-container input[type=text] {
163
- display: none;
164
- }
165
-
166
- .tiwlform-range-container .line {
167
- margin: 0 5%;
168
- width: 90%;
169
- height: 4px;
170
- top: -14px;
171
- background-color: #ede8df;
172
- position: absolute;
173
-
174
- }
175
-
176
- .tiwlform-range-container .line .selector {
177
- position: absolute;
178
- z-index: 100;
179
- width: 15px;
180
- height: 15px;
181
- background: #fff;
182
- border: 5px solid #96b100;
183
- border-radius: 50%;
184
- top: -10px;
185
- right: -12.5px;
186
- cursor: pointer;
187
- }
188
-
189
- .tiwlform-range-container .line-selector {
190
- width: 0;
191
- background-color: #96b100;
192
- height: 6px;
193
- top: -15px;
194
- }
195
-
196
- .tiwlform-range-container .label {
197
- display: -webkit-box;
198
- display: -moz-box;
199
- display: -ms-flexbox;
200
- display: -webkit-flex;
201
- display: flex;
202
- list-style: outside none none;
203
- padding: 0;
204
- }
205
-
206
- .tiwlform-range-container .label li {
207
- -moz-flex: 1 1;
208
- -webkit-flex: 1 1;
209
- -ms-flex: 1 1;
210
- flex: 1 1;
211
- position: relative;
212
- float: left;
213
- text-align: center;
214
- color: #000;
215
- padding: 10px 0;
216
- font-size: 14px;
217
- line-height: 14px;
218
- cursor: pointer;
219
- margin: 0;
220
- }
221
-
222
- .tiwlform-range-container .label li.active {
223
- font-weight: 600;
224
- }
225
-
226
- .tiwlform-range-container .label li.preactive::before {
227
- background: #96b100;
228
- width: 25px;
229
- height: 25px;
230
- top: -25px;
231
- }
232
-
233
- .tiwlform-range-container .label li::before {
234
- position: absolute;
235
- top: -20px;
236
- right: 0;
237
- left: 0;
238
- content: "";
239
- margin: 0 auto;
240
- width: 15px;
241
- height: 15px;
242
- background: #ede8df;
243
- border-radius: 50%;
244
- }
245
-
246
- /*
247
- multi radio box
248
- */
249
- .tiwlform-multirbox input {
250
- display: none;
251
- }
252
-
253
- .tiwlform-multirbox {
254
- border-radius: 3px;
255
- border: 1px solid #eae6df;
256
- box-shadow: 0 0 10px rgba(0, 0, 0, .1) inset;
257
- display: inline-block;
258
- margin: 2px;
259
- position: relative;
260
- }
261
-
262
- .tiwlform-multirbox label {
263
- display: inline-block;
264
- font-weight: normal;
265
- color: #948d84;
266
- margin: 0;
267
- line-height: 26px;
268
- vertical-align: middle;
269
- padding: 5px 10px;
270
- height: 26px;
271
- }
272
-
273
- .tiwlform-multirbox label.checked {
274
- -webkit-box-shadow: inset 0 0 0 36px #96b100;
275
- box-shadow: inset 0 0 0 36px #96b100;
276
- color: #FFF;
277
- border-radius: 3px;
278
- }
279
-
280
- .tiwlform-multirbox label .dashicons {
281
- line-height: 26px;
282
- }
283
-
284
- .tinvwl-multicheckbox {
285
- border: 1px solid #dbdbdb;
286
- border-radius: 3px;
287
- box-shadow: 0 0 10px rgba(0, 0, 0, .1) inset;
288
- margin: 2px;
289
- }
290
-
291
- .tinvwl-multicheckbox ul {
292
- height: 208px;
293
- overflow: auto;
294
- margin: 0;
295
- padding: 0 12px;
296
- }
297
-
298
- .tinvwl-multicheckbox li {
299
- height: 30px;
300
- }
301
-
302
- .tinvwl-multicheckbox label {
303
- width: 100%;
304
- display: inline-block;
305
- font-weight: normal;
306
- }
307
-
308
- .tinvwl-multicheckbox input {
309
- margin-right: 13px;
310
- }
311
-
312
- .tinvwl-multicheckbox > .tinvwl-before {
313
- background-color: #fbfaf9;
314
- border-bottom: 1px solid #dbdbdb;
315
- padding: 7px;
316
- }
317
-
318
- .tinvwl-multicheckbox > .tinvwl-after {
319
- background-color: #fbfaf9;
320
- border-top: 1px solid #dbdbdb;
321
- padding: 7px;
322
- }
323
-
324
- .tinvwl-targeting-box {
325
- display: -webkit-box;
326
- display: -moz-box;
327
- display: -ms-flexbox;
328
- display: -webkit-flex;
329
- display: flex;
330
- padding-top: 28px;
331
- }
332
-
333
- .tinvwl-targeting-box-action {
334
- display: none;
335
- }
336
-
337
- .tinvwl-targeting-box .selector {
338
- -moz-flex: 1 1 50%;
339
- -webkit-flex: 1 1 50%;
340
- -ms-flex: 1 1 50%;
341
- flex: 1 1 50%;
342
- padding-right: 20px;
343
- }
344
-
345
- .tinvwl-targeting-box .selector div + div {
346
- margin-top: 6px;
347
- }
348
-
349
- .tinvwl-targeting-box .zone {
350
- -moz-flex: 1 1 50%;
351
- -webkit-flex: 1 1 50%;
352
- -ms-flex: 1 1 50%;
353
- flex: 1 1 50%;
354
- background-color: #fbfaf9;
355
- border-radius: 3px;
356
- position: relative;
357
- margin: 2px;
358
- padding: 0;
359
- }
360
-
361
- .tinvwl-targeting-box .inner {
362
- margin: 0;
363
- padding: 20px;
364
- overflow: auto;
365
- border-radius: 3px;
366
- min-height: 42px;
367
- }
368
-
369
- .tinvwl-targeting-box .filter-field, .tinvwl-targeting-box .tinvwl-multicheckbox {
370
- width: 100%;
371
- }
372
-
373
- .tinvwl-targeting-box .zone > .tinvwl-after {
374
- background-color: #f4f2ee;
375
- border-top: 1px solid #fbfaf9;
376
- padding: 7px;
377
- margin: 0;
378
- position: absolute;
379
- border-radius: 0 0 3px 3px;
380
- bottom: 0;
381
- left: 0;
382
- right: 0;
383
- }
384
-
385
- .tinvwl-targeting-box .action-bth {
386
- background-color: #FFF;
387
- color: #000;
388
- border: 1px solid #dbdbdb;
389
- font-weight: normal;
390
- text-align: center;
391
- }
392
-
393
- .tinvwl-targeting-box .action-bth:hover {
394
- background-color: #96b100;
395
- color: #FFF;
396
- }
397
-
398
- .tinvwl-numberrange {
399
- width: 100%;
400
- }
401
-
402
- .tinvwl-numberrange .range {
403
- position: relative;
404
- width: 100%;
405
- height: 5px;
406
- }
1
+ /*
2
+ number input
3
+ */
4
+ .tiwlform-number-container {
5
+ display: inline-block;
6
+ margin: 2px;
7
+ position: relative;
8
+ vertical-align: middle;
9
+ }
10
+
11
+ .tiwlform-number-container input, .tiwlform-number-container button {
12
+ margin: 0;
13
+ font-weight: 800;
14
+ display: inline-block;
15
+ font-size: 14px;
16
+ }
17
+
18
+ .tiwlform-number-container input[type=text] {
19
+ width: 50px;
20
+ height: 36px;
21
+ text-align: right;
22
+ border-radius: 5px;
23
+ line-height: 26px;
24
+ margin: 0;
25
+ }
26
+
27
+ .tiwlform-number-container button {
28
+ width: 20px;
29
+ height: 38px;
30
+ line-height: 38px;
31
+ text-align: center;
32
+ border-radius: 5px;
33
+ margin: 0 2px;
34
+ background-color: #f1eee8;
35
+ border: 0;
36
+ color: #000;
37
+ padding: 0;
38
+ cursor: pointer;
39
+ }
40
+
41
+ .tiwlform-number-container button:hover {
42
+ background-color: #96b100;
43
+ color: #FFF;
44
+ }
45
+
46
+ /*
47
+ on off button
48
+ */
49
+ /*.tiwlform-onoff-container input {
50
+ display: none;
51
+ }*/
52
+ .tiwlform-onoff-container {
53
+ cursor: pointer;
54
+ position: relative;
55
+ display: inline-block;
56
+ height: 36px;
57
+ width: 132px;
58
+ margin: 0;
59
+
60
+ -webkit-border-radius: 3px;
61
+ -moz-border-radius: 3px;
62
+ border-radius: 3px;
63
+
64
+ -webkit-box-shadow: inset 1px 1px 6px 0 rgba(170, 157, 137, .16);
65
+ box-shadow: inset 1px 1px 6px 0 rgba(170, 157, 137, .16);
66
+
67
+ -webkit-transition: all .3s ease-in-out;
68
+ -moz-transition: all .3s ease-in-out;
69
+ -o-transition: all .3s ease-in-out;
70
+ transition: all .3s ease-in-out;
71
+
72
+ border: 1px solid #eae6df;
73
+ background: #f1eee8;
74
+ }
75
+
76
+ .tiwlform-onoff-container.disabled.checked {
77
+ /*-webkit-box-shadow: inset 0 0 0 36px rgba(0,0,0,0.4);
78
+ box-shadow: inset 0 0 0 36px rgba(0,0,0,0.4);*/
79
+ border-color: rgba(0, 0, 0, 0.4);
80
+ background-color: rgba(0, 0, 0, 0.4);
81
+ }
82
+
83
+ .tiwlform-onoff-container.disabled .tiwlform-onoff-button {
84
+ color: rgba(0, 0, 0, 0.4) !important;
85
+ }
86
+
87
+ .tiwlform-onoff-container.checked {
88
+ /*-webkit-box-shadow: inset 0 0 0 36px #96b100;
89
+ box-shadow: inset 0 0 0 36px #96b100;*/
90
+ background: #96b100;
91
+ border-color: #96b100;
92
+ }
93
+
94
+ .tiwlform-onoff-container.checked .tiwlform-onoff-button {
95
+ left: 4px;
96
+ color: #96b100;
97
+ }
98
+
99
+ .tiwlform-onoff-container .tiwlform-onoff-button {
100
+ display: inline-block;
101
+ /*font-size: 21px;
102
+ line-height: 21px;
103
+ font-weight: 600;
104
+ font-family: dashicons;*/
105
+ font: normal normal normal 14px/1 FontAwesome;
106
+ font-size: inherit;
107
+ text-rendering: auto;
108
+ -webkit-font-smoothing: antialiased;
109
+ -moz-osx-font-smoothing: grayscale;
110
+
111
+ position: absolute;
112
+ top: 3px;
113
+ left: 66px;
114
+ width: 59px;
115
+ height: 27px;
116
+ line-height: 18px;
117
+ padding: 4px;
118
+ text-align: center;
119
+
120
+ -webkit-border-radius: 3px;
121
+ -moz-border-radius: 3px;
122
+ border-radius: 3px;
123
+
124
+ -webkit-box-shadow: 1px 1px 4px 0 rgba(2, 2, 2, .21);
125
+ box-shadow: 1px 1px 4px 0 rgba(2, 2, 2, .21);
126
+
127
+ -webkit-transition: all 350ms cubic-bezier(0, 0.89, 0.44, 1);
128
+ -moz-transition: all 350ms cubic-bezier(0, 0.89, 0.44, 1);
129
+ -o-transition: all 350ms cubic-bezier(0, 0.89, 0.44, 1);
130
+ transition: all 350ms cubic-bezier(0, 0.89, 0.44, 1);
131
+
132
+ color: #6b625a;
133
+ background: #fff;
134
+ }
135
+
136
+ .tiwlform-onoff-container .tiwlform-onoff-button:before {
137
+ content: "\e916";
138
+ font-size: 11px;
139
+ }
140
+
141
+ .tiwlform-onoff-container.checked .tiwlform-onoff-button:before {
142
+ content: "\e916";
143
+ }
144
+
145
+ .tiwlform-onoff-container.disabled {
146
+ background-color: rgba(0, 0, 0, 0.4);
147
+ }
148
+
149
+ /*
150
+ input range
151
+ */
152
+ .tiwlform-range-container {
153
+ padding-top: 25px;
154
+ height: 50px;
155
+ }
156
+
157
+ .tiwlform-range-container .range {
158
+ width: 100%;
159
+ position: relative;
160
+ }
161
+
162
+ .tiwlform-range-container input[type=text] {
163
+ display: none;
164
+ }
165
+
166
+ .tiwlform-range-container .line {
167
+ margin: 0 5%;
168
+ width: 90%;
169
+ height: 4px;
170
+ top: -14px;
171
+ background-color: #ede8df;
172
+ position: absolute;
173
+
174
+ }
175
+
176
+ .tiwlform-range-container .line .selector {
177
+ position: absolute;
178
+ z-index: 100;
179
+ width: 15px;
180
+ height: 15px;
181
+ background: #fff;
182
+ border: 5px solid #96b100;
183
+ border-radius: 50%;
184
+ top: -10px;
185
+ right: -12.5px;
186
+ cursor: pointer;
187
+ }
188
+
189
+ .tiwlform-range-container .line-selector {
190
+ width: 0;
191
+ background-color: #96b100;
192
+ height: 6px;
193
+ top: -15px;
194
+ }
195
+
196
+ .tiwlform-range-container .label {
197
+ display: -webkit-box;
198
+ display: -moz-box;
199
+ display: -ms-flexbox;
200
+ display: -webkit-flex;
201
+ display: flex;
202
+ list-style: outside none none;
203
+ padding: 0;
204
+ }
205
+
206
+ .tiwlform-range-container .label li {
207
+ -moz-flex: 1 1;
208
+ -webkit-flex: 1 1;
209
+ -ms-flex: 1 1;
210
+ flex: 1 1;
211
+ position: relative;
212
+ float: left;
213
+ text-align: center;
214
+ color: #000;
215
+ padding: 10px 0;
216
+ font-size: 14px;
217
+ line-height: 14px;
218
+ cursor: pointer;
219
+ margin: 0;
220
+ }
221
+
222
+ .tiwlform-range-container .label li.active {
223
+ font-weight: 600;
224
+ }
225
+
226
+ .tiwlform-range-container .label li.preactive::before {
227
+ background: #96b100;
228
+ width: 25px;
229
+ height: 25px;
230
+ top: -25px;
231
+ }
232
+
233
+ .tiwlform-range-container .label li::before {
234
+ position: absolute;
235
+ top: -20px;
236
+ right: 0;
237
+ left: 0;
238
+ content: "";
239
+ margin: 0 auto;
240
+ width: 15px;
241
+ height: 15px;
242
+ background: #ede8df;
243
+ border-radius: 50%;
244
+ }
245
+
246
+ /*
247
+ multi radio box
248
+ */
249
+ .tiwlform-multirbox input {
250
+ display: none;
251
+ }
252
+
253
+ .tiwlform-multirbox {
254
+ border-radius: 3px;
255
+ border: 1px solid #eae6df;
256
+ box-shadow: 0 0 10px rgba(0, 0, 0, .1) inset;
257
+ display: inline-block;
258
+ margin: 2px;
259
+ position: relative;
260
+ }
261
+
262
+ .tiwlform-multirbox label {
263
+ display: inline-block;
264
+ font-weight: normal;
265
+ color: #948d84;
266
+ margin: 0;
267
+ line-height: 26px;
268
+ vertical-align: middle;
269
+ padding: 5px 10px;
270
+ height: 26px;
271
+ }
272
+
273
+ .tiwlform-multirbox label.checked {
274
+ -webkit-box-shadow: inset 0 0 0 36px #96b100;
275
+ box-shadow: inset 0 0 0 36px #96b100;
276
+ color: #FFF;
277
+ border-radius: 3px;
278
+ }
279
+
280
+ .tiwlform-multirbox label .dashicons {
281
+ line-height: 26px;
282
+ }
283
+
284
+ .tinvwl-multicheckbox {
285
+ border: 1px solid #dbdbdb;
286
+ border-radius: 3px;
287
+ box-shadow: 0 0 10px rgba(0, 0, 0, .1) inset;
288
+ margin: 2px;
289
+ }
290
+
291
+ .tinvwl-multicheckbox ul {
292
+ height: 208px;
293
+ overflow: auto;
294
+ margin: 0;
295
+ padding: 0 12px;
296
+ }
297
+
298
+ .tinvwl-multicheckbox li {
299
+ height: 30px;
300
+ }
301
+
302
+ .tinvwl-multicheckbox label {
303
+ width: 100%;
304
+ display: inline-block;
305
+ font-weight: normal;
306
+ }
307
+
308
+ .tinvwl-multicheckbox input {
309
+ margin-right: 13px;
310
+ }
311
+
312
+ .tinvwl-multicheckbox > .tinvwl-before {
313
+ background-color: #fbfaf9;
314
+ border-bottom: 1px solid #dbdbdb;
315
+ padding: 7px;
316
+ }
317
+
318
+ .tinvwl-multicheckbox > .tinvwl-after {
319
+ background-color: #fbfaf9;
320
+ border-top: 1px solid #dbdbdb;
321
+ padding: 7px;
322
+ }
323
+
324
+ .tinvwl-targeting-box {
325
+ display: -webkit-box;
326
+ display: -moz-box;
327
+ display: -ms-flexbox;
328
+ display: -webkit-flex;
329
+ display: flex;
330
+ padding-top: 28px;
331
+ }
332
+
333
+ .tinvwl-targeting-box-action {
334
+ display: none;
335
+ }
336
+
337
+ .tinvwl-targeting-box .selector {
338
+ -moz-flex: 1 1 50%;
339
+ -webkit-flex: 1 1 50%;
340
+ -ms-flex: 1 1 50%;
341
+ flex: 1 1 50%;
342
+ padding-right: 20px;
343
+ }
344
+
345
+ .tinvwl-targeting-box .selector div + div {
346
+ margin-top: 6px;
347
+ }
348
+
349
+ .tinvwl-targeting-box .zone {
350
+ -moz-flex: 1 1 50%;
351
+ -webkit-flex: 1 1 50%;
352
+ -ms-flex: 1 1 50%;
353
+ flex: 1 1 50%;
354
+ background-color: #fbfaf9;
355
+ border-radius: 3px;
356
+ position: relative;
357
+ margin: 2px;
358
+ padding: 0;
359
+ }
360
+
361
+ .tinvwl-targeting-box .inner {
362
+ margin: 0;
363
+ padding: 20px;
364
+ overflow: auto;
365
+ border-radius: 3px;
366
+ min-height: 42px;
367
+ }
368
+
369
+ .tinvwl-targeting-box .filter-field, .tinvwl-targeting-box .tinvwl-multicheckbox {
370
+ width: 100%;
371
+ }
372
+
373
+ .tinvwl-targeting-box .zone > .tinvwl-after {
374
+ background-color: #f4f2ee;
375
+ border-top: 1px solid #fbfaf9;
376
+ padding: 7px;
377
+ margin: 0;
378
+ position: absolute;
379
+ border-radius: 0 0 3px 3px;
380
+ bottom: 0;
381
+ left: 0;
382
+ right: 0;
383
+ }
384
+
385
+ .tinvwl-targeting-box .action-bth {
386
+ background-color: #FFF;
387
+ color: #000;
388
+ border: 1px solid #dbdbdb;
389
+ font-weight: normal;
390
+ text-align: center;
391
+ }
392
+
393
+ .tinvwl-targeting-box .action-bth:hover {
394
+ background-color: #96b100;
395
+ color: #FFF;
396
+ }
397
+
398
+ .tinvwl-numberrange {
399
+ width: 100%;
400
+ }
401
+
402
+ .tinvwl-numberrange .range {
403
+ position: relative;
404
+ width: 100%;
405
+ height: 5px;
406
+ }
asset/css/admin-form.min.css CHANGED
@@ -1 +1 @@
1
- .tiwlform-number-container{display:inline-block;margin:2px;position:relative;vertical-align:middle}.tiwlform-number-container button,.tiwlform-number-container input{margin:0;font-weight:800;display:inline-block;font-size:14px}.tiwlform-number-container input[type=text]{width:50px;height:36px;text-align:right;border-radius:5px;line-height:26px;margin:0}.tiwlform-number-container button{width:20px;height:38px;line-height:38px;text-align:center;border-radius:5px;margin:0 2px;background-color:#f1eee8;border:0;color:#000;padding:0;cursor:pointer}.tiwlform-number-container button:hover{background-color:#96b100;color:#FFF}.tiwlform-onoff-container{cursor:pointer;position:relative;display:inline-block;height:36px;width:132px;margin:0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 1px 1px 6px 0 rgba(170,157,137,.16);box-shadow:inset 1px 1px 6px 0 rgba(170,157,137,.16);-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out;border:1px solid #eae6df;background:#f1eee8}.tiwlform-onoff-container.disabled.checked{border-color:rgba(0,0,0,.4);background-color:rgba(0,0,0,.4)}.tiwlform-onoff-container.disabled .tiwlform-onoff-button{color:rgba(0,0,0,.4)!important}.tiwlform-onoff-container.checked{background:#96b100;border-color:#96b100}.tiwlform-onoff-container.checked .tiwlform-onoff-button{left:4px;color:#96b100}.tiwlform-onoff-container .tiwlform-onoff-button{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:3px;left:66px;width:59px;height:27px;line-height:18px;padding:4px;text-align:center;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:1px 1px 4px 0 rgba(2,2,2,.21);box-shadow:1px 1px 4px 0 rgba(2,2,2,.21);-webkit-transition:all 350ms cubic-bezier(0,.89,.44,1);-moz-transition:all 350ms cubic-bezier(0,.89,.44,1);-o-transition:all 350ms cubic-bezier(0,.89,.44,1);transition:all 350ms cubic-bezier(0,.89,.44,1);color:#6b625a;background:#fff}.tiwlform-onoff-container .tiwlform-onoff-button:before{content:"\e916";font-size:11px}.tiwlform-onoff-container.checked .tiwlform-onoff-button:before{content:"\e916"}.tiwlform-onoff-container.disabled{background-color:rgba(0,0,0,.4)}.tiwlform-range-container{padding-top:25px;height:50px}.tiwlform-range-container .range{width:100%;position:relative}.tiwlform-range-container input[type=text]{display:none}.tiwlform-range-container .line{margin:0 5%;width:90%;height:4px;top:-14px;background-color:#ede8df;position:absolute}.tiwlform-range-container .line .selector{position:absolute;z-index:100;width:15px;height:15px;background:#fff;border:5px solid #96b100;border-radius:50%;top:-10px;right:-12.5px;cursor:pointer}.tiwlform-range-container .line-selector{width:0;background-color:#96b100;height:6px;top:-15px}.tiwlform-range-container .label{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;list-style:none;padding:0}.tiwlform-range-container .label li{-moz-flex:1 1;-webkit-flex:1 1;-ms-flex:1 1;flex:1 1;position:relative;float:left;text-align:center;color:#000;padding:10px 0;font-size:14px;line-height:14px;cursor:pointer;margin:0}.tiwlform-range-container .label li.active{font-weight:600}.tiwlform-range-container .label li.preactive::before{background:#96b100;width:25px;height:25px;top:-25px}.tiwlform-range-container .label li::before{position:absolute;top:-20px;right:0;left:0;content:"";margin:0 auto;width:15px;height:15px;background:#ede8df;border-radius:50%}.tiwlform-multirbox input{display:none}.tiwlform-multirbox{border-radius:3px;border:1px solid #eae6df;box-shadow:0 0 10px rgba(0,0,0,.1) inset;display:inline-block;margin:2px;position:relative}.tiwlform-multirbox label{display:inline-block;font-weight:400;color:#948d84;margin:0;line-height:26px;vertical-align:middle;padding:5px 10px;height:26px}.tiwlform-multirbox label.checked{-webkit-box-shadow:inset 0 0 0 36px #96b100;box-shadow:inset 0 0 0 36px #96b100;color:#FFF;border-radius:3px}.tiwlform-multirbox label .dashicons{line-height:26px}.tinvwl-multicheckbox{border:1px solid #dbdbdb;border-radius:3px;box-shadow:0 0 10px rgba(0,0,0,.1) inset;margin:2px}.tinvwl-multicheckbox ul{height:208px;overflow:auto;margin:0;padding:0 12px}.tinvwl-multicheckbox li{height:30px}.tinvwl-multicheckbox label{width:100%;display:inline-block;font-weight:400}.tinvwl-multicheckbox input{margin-right:13px}.tinvwl-multicheckbox>.tinvwl-before{background-color:#fbfaf9;border-bottom:1px solid #dbdbdb;padding:7px}.tinvwl-multicheckbox>.tinvwl-after{background-color:#fbfaf9;border-top:1px solid #dbdbdb;padding:7px}.tinvwl-targeting-box{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;padding-top:28px}.tinvwl-targeting-box-action{display:none}.tinvwl-targeting-box .selector{-moz-flex:1 1 50%;-webkit-flex:1 1 50%;-ms-flex:1 1 50%;flex:1 1 50%;padding-right:20px}.tinvwl-targeting-box .selector div+div{margin-top:6px}.tinvwl-targeting-box .zone{-moz-flex:1 1 50%;-webkit-flex:1 1 50%;-ms-flex:1 1 50%;flex:1 1 50%;background-color:#fbfaf9;border-radius:3px;position:relative;margin:2px;padding:0}.tinvwl-targeting-box .inner{margin:0;padding:20px;overflow:auto;border-radius:3px;min-height:42px}.tinvwl-targeting-box .filter-field,.tinvwl-targeting-box .tinvwl-multicheckbox{width:100%}.tinvwl-targeting-box .zone>.tinvwl-after{background-color:#f4f2ee;border-top:1px solid #fbfaf9;padding:7px;margin:0;position:absolute;border-radius:0 0 3px 3px;bottom:0;left:0;right:0}.tinvwl-targeting-box .action-bth{background-color:#FFF;color:#000;border:1px solid #dbdbdb;font-weight:400;text-align:center}.tinvwl-targeting-box .action-bth:hover{background-color:#96b100;color:#FFF}.tinvwl-numberrange{width:100%}.tinvwl-numberrange .range{position:relative;width:100%;height:5px}
1
+ .tiwlform-number-container{display:inline-block;margin:2px;position:relative;vertical-align:middle}.tiwlform-number-container button,.tiwlform-number-container input{margin:0;font-weight:800;display:inline-block;font-size:14px}.tiwlform-number-container input[type=text]{width:50px;height:36px;text-align:right;border-radius:5px;line-height:26px;margin:0}.tiwlform-number-container button{width:20px;height:38px;line-height:38px;text-align:center;border-radius:5px;margin:0 2px;background-color:#f1eee8;border:0;color:#000;padding:0;cursor:pointer}.tiwlform-number-container button:hover{background-color:#96b100;color:#FFF}.tiwlform-onoff-container{cursor:pointer;position:relative;display:inline-block;height:36px;width:132px;margin:0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 1px 1px 6px 0 rgba(170,157,137,.16);box-shadow:inset 1px 1px 6px 0 rgba(170,157,137,.16);-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out;border:1px solid #eae6df;background:#f1eee8}.tiwlform-onoff-container.disabled.checked{border-color:rgba(0,0,0,.4);background-color:rgba(0,0,0,.4)}.tiwlform-onoff-container.disabled .tiwlform-onoff-button{color:rgba(0,0,0,.4)!important}.tiwlform-onoff-container.checked{background:#96b100;border-color:#96b100}.tiwlform-onoff-container.checked .tiwlform-onoff-button{left:4px;color:#96b100}.tiwlform-onoff-container .tiwlform-onoff-button{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:3px;left:66px;width:59px;height:27px;line-height:18px;padding:4px;text-align:center;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:1px 1px 4px 0 rgba(2,2,2,.21);box-shadow:1px 1px 4px 0 rgba(2,2,2,.21);-webkit-transition:all 350ms cubic-bezier(0,.89,.44,1);-moz-transition:all 350ms cubic-bezier(0,.89,.44,1);-o-transition:all 350ms cubic-bezier(0,.89,.44,1);transition:all 350ms cubic-bezier(0,.89,.44,1);color:#6b625a;background:#fff}.tiwlform-onoff-container .tiwlform-onoff-button:before{content:"\e916";font-size:11px}.tiwlform-onoff-container.checked .tiwlform-onoff-button:before{content:"\e916"}.tiwlform-onoff-container.disabled{background-color:rgba(0,0,0,.4)}.tiwlform-range-container{padding-top:25px;height:50px}.tiwlform-range-container .range{width:100%;position:relative}.tiwlform-range-container input[type=text]{display:none}.tiwlform-range-container .line{margin:0 5%;width:90%;height:4px;top:-14px;background-color:#ede8df;position:absolute}.tiwlform-range-container .line .selector{position:absolute;z-index:100;width:15px;height:15px;background:#fff;border:5px solid #96b100;border-radius:50%;top:-10px;right:-12.5px;cursor:pointer}.tiwlform-range-container .line-selector{width:0;background-color:#96b100;height:6px;top:-15px}.tiwlform-range-container .label{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;list-style:none;padding:0}.tiwlform-range-container .label li{-moz-flex:1 1;-webkit-flex:1 1;-ms-flex:1 1;flex:1 1;position:relative;float:left;text-align:center;color:#000;padding:10px 0;font-size:14px;line-height:14px;cursor:pointer;margin:0}.tiwlform-range-container .label li.active{font-weight:600}.tiwlform-range-container .label li.preactive::before{background:#96b100;width:25px;height:25px;top:-25px}.tiwlform-range-container .label li::before{position:absolute;top:-20px;right:0;left:0;content:"";margin:0 auto;width:15px;height:15px;background:#ede8df;border-radius:50%}.tiwlform-multirbox input{display:none}.tiwlform-multirbox{border-radius:3px;border:1px solid #eae6df;box-shadow:0 0 10px rgba(0,0,0,.1) inset;display:inline-block;margin:2px;position:relative}.tiwlform-multirbox label{display:inline-block;font-weight:400;color:#948d84;margin:0;line-height:26px;vertical-align:middle;padding:5px 10px;height:26px}.tiwlform-multirbox label.checked{-webkit-box-shadow:inset 0 0 0 36px #96b100;box-shadow:inset 0 0 0 36px #96b100;color:#FFF;border-radius:3px}.tiwlform-multirbox label .dashicons{line-height:26px}.tinvwl-multicheckbox{border:1px solid #dbdbdb;border-radius:3px;box-shadow:0 0 10px rgba(0,0,0,.1) inset;margin:2px}.tinvwl-multicheckbox ul{height:208px;overflow:auto;margin:0;padding:0 12px}.tinvwl-multicheckbox li{height:30px}.tinvwl-multicheckbox label{width:100%;display:inline-block;font-weight:400}.tinvwl-multicheckbox input{margin-right:13px}.tinvwl-multicheckbox>.tinvwl-before{background-color:#fbfaf9;border-bottom:1px solid #dbdbdb;padding:7px}.tinvwl-multicheckbox>.tinvwl-after{background-color:#fbfaf9;border-top:1px solid #dbdbdb;padding:7px}.tinvwl-targeting-box{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;padding-top:28px}.tinvwl-targeting-box-action{display:none}.tinvwl-targeting-box .selector{-moz-flex:1 1 50%;-webkit-flex:1 1 50%;-ms-flex:1 1 50%;flex:1 1 50%;padding-right:20px}.tinvwl-targeting-box .selector div+div{margin-top:6px}.tinvwl-targeting-box .zone{-moz-flex:1 1 50%;-webkit-flex:1 1 50%;-ms-flex:1 1 50%;flex:1 1 50%;background-color:#fbfaf9;border-radius:3px;position:relative;margin:2px;padding:0}.tinvwl-targeting-box .inner{margin:0;padding:20px;overflow:auto;border-radius:3px;min-height:42px}.tinvwl-targeting-box .filter-field,.tinvwl-targeting-box .tinvwl-multicheckbox{width:100%}.tinvwl-targeting-box .zone>.tinvwl-after{background-color:#f4f2ee;border-top:1px solid #fbfaf9;padding:7px;margin:0;position:absolute;border-radius:0 0 3px 3px;bottom:0;left:0;right:0}.tinvwl-targeting-box .action-bth{background-color:#FFF;color:#000;border:1px solid #dbdbdb;font-weight:400;text-align:center}.tinvwl-targeting-box .action-bth:hover{background-color:#96b100;color:#FFF}.tinvwl-numberrange{width:100%}.tinvwl-numberrange .range{position:relative;width:100%;height:5px}
asset/css/font-awesome.css CHANGED
@@ -1,74 +1,74 @@
1
- @font-face {
2
- font-family: 'FontAwesome';
3
- src: url('../fonts/fontawesome-webfont.eot?12s0n5');
4
- src: url('../fonts/fontawesome-webfont.eot?12s0n5#iefix') format('embedded-opentype'),
5
- url('../fonts/fontawesome-webfont.ttf?12s0n5') format('truetype'),
6
- url('../fonts/fontawesome-webfont.woff?12s0n5') format('woff'),
7
- url('../fonts/fontawesome-webfont.svg?12s0n5#fontawesome-webfont') format('svg');
8
- font-weight: normal;
9
- font-style: normal;
10
- }
11
-
12
- .fa {
13
- /* use !important to prevent issues with browser extensions that change fonts */
14
- font-family: 'FontAwesome' !important;
15
- speak: none;
16
- font-style: normal;
17
- font-weight: normal;
18
- font-variant: normal;
19
- text-transform: none;
20
- line-height: 1;
21
-
22
- /* Better Font Rendering =========== */
23
- -webkit-font-smoothing: antialiased;
24
- -moz-osx-font-smoothing: grayscale;
25
- }
26
-
27
- .fa-wrench:before {
28
- content: "\e91a";
29
- }
30
- .fa-times:before {
31
- content: "\e901";
32
- }
33
- .fa-star:before {
34
- content: "\e902";
35
- }
36
- .fa-shopping-cart:before {
37
- content: "\e904";
38
- }
39
- .fa-magic:before {
40
- content: "\e908";
41
- }
42
- .fa-info:before {
43
- content: "\e90a";
44
- }
45
- .fa-heart-o:before {
46
- content: "\e90b";
47
- }
48
- .fa-heart:before {
49
- content: "\e90c";
50
- }
51
- .fa-graduation-cap:before {
52
- content: "\e90d";
53
- }
54
- .fa-floppy-o:before {
55
- content: "\e90e";
56
- }
57
- .fa-eyedropper:before {
58
- content: "\e90f";
59
- }
60
- .fa-exclamation-triangle:before {
61
- content: "\e911";
62
- }
63
- .fa-chevron-left:before {
64
- content: "\e913";
65
- }
66
- .fa-chevron-right:before {
67
- content: "\e914";
68
- }
69
- .fa-check:before {
70
- content: "\e916";
71
- }
72
- .fa-arrow-left:before {
73
- content: "\e919";
74
- }
1
+ @font-face {
2
+ font-family: 'FontAwesome';
3
+ src: url('../fonts/fontawesome-webfont.eot?12s0n5');
4
+ src: url('../fonts/fontawesome-webfont.eot?12s0n5#iefix') format('embedded-opentype'),
5
+ url('../fonts/fontawesome-webfont.ttf?12s0n5') format('truetype'),
6
+ url('../fonts/fontawesome-webfont.woff?12s0n5') format('woff'),
7
+ url('../fonts/fontawesome-webfont.svg?12s0n5#fontawesome-webfont') format('svg');
8
+ font-weight: normal;
9
+ font-style: normal;
10
+ }
11
+
12
+ .fa {
13
+ /* use !important to prevent issues with browser extensions that change fonts */
14
+ font-family: 'FontAwesome' !important;
15
+ speak: none;
16
+ font-style: normal;
17
+ font-weight: normal;
18
+ font-variant: normal;
19
+ text-transform: none;
20
+ line-height: 1;
21
+
22
+ /* Better Font Rendering =========== */
23
+ -webkit-font-smoothing: antialiased;
24
+ -moz-osx-font-smoothing: grayscale;
25
+ }
26
+
27
+ .fa-wrench:before {
28
+ content: "\e91a";
29
+ }
30
+ .fa-times:before {
31
+ content: "\e901";
32
+ }
33
+ .fa-star:before {
34
+ content: "\e902";
35
+ }
36
+ .fa-shopping-cart:before {
37
+ content: "\e904";
38
+ }
39
+ .fa-magic:before {
40
+ content: "\e908";
41
+ }
42
+ .fa-info:before {
43
+ content: "\e90a";
44
+ }
45
+ .fa-heart-o:before {
46
+ content: "\e90b";
47
+ }
48
+ .fa-heart:before {
49
+ content: "\e90c";
50
+ }
51
+ .fa-graduation-cap:before {
52
+ content: "\e90d";
53
+ }
54
+ .fa-floppy-o:before {
55
+ content: "\e90e";
56
+ }
57
+ .fa-eyedropper:before {
58
+ content: "\e90f";
59
+ }
60
+ .fa-exclamation-triangle:before {
61
+ content: "\e911";
62
+ }
63
+ .fa-chevron-left:before {
64
+ content: "\e913";
65
+ }
66
+ .fa-chevron-right:before {
67
+ content: "\e914";
68
+ }
69
+ .fa-check:before {
70
+ content: "\e916";
71
+ }
72
+ .fa-arrow-left:before {
73
+ content: "\e919";
74
+ }
asset/css/font-awesome.min.css CHANGED
@@ -1 +1 @@
1
- @font-face{font-family:FontAwesome;src:url(../fonts/fontawesome-webfont.eot?12s0n5);src:url(../fonts/fontawesome-webfont.eot?12s0n5#iefix) format('embedded-opentype'),url(../fonts/fontawesome-webfont.ttf?12s0n5) format('truetype'),url(../fonts/fontawesome-webfont.woff?12s0n5) format('woff'),url(../fonts/fontawesome-webfont.svg?12s0n5#fontawesome-webfont) format('svg');font-weight:400;font-style:normal}.fa{font-family:FontAwesome!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-wrench:before{content:"\e91a"}.fa-times:before{content:"\e901"}.fa-star:before{content:"\e902"}.fa-shopping-cart:before{content:"\e904"}.fa-magic:before{content:"\e908"}.fa-info:before{content:"\e90a"}.fa-heart-o:before{content:"\e90b"}.fa-heart:before{content:"\e90c"}.fa-graduation-cap:before{content:"\e90d"}.fa-floppy-o:before{content:"\e90e"}.fa-eyedropper:before{content:"\e90f"}.fa-exclamation-triangle:before{content:"\e911"}.fa-chevron-left:before{content:"\e913"}.fa-chevron-right:before{content:"\e914"}.fa-check:before{content:"\e916"}.fa-arrow-left:before{content:"\e919"}
1
+ @font-face{font-family:FontAwesome;src:url(../fonts/fontawesome-webfont.eot?12s0n5);src:url(../fonts/fontawesome-webfont.eot?12s0n5#iefix) format('embedded-opentype'),url(../fonts/fontawesome-webfont.ttf?12s0n5) format('truetype'),url(../fonts/fontawesome-webfont.woff?12s0n5) format('woff'),url(../fonts/fontawesome-webfont.svg?12s0n5#fontawesome-webfont) format('svg');font-weight:400;font-style:normal}.fa{font-family:FontAwesome!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-wrench:before{content:"\e91a"}.fa-times:before{content:"\e901"}.fa-star:before{content:"\e902"}.fa-shopping-cart:before{content:"\e904"}.fa-magic:before{content:"\e908"}.fa-info:before{content:"\e90a"}.fa-heart-o:before{content:"\e90b"}.fa-heart:before{content:"\e90c"}.fa-graduation-cap:before{content:"\e90d"}.fa-floppy-o:before{content:"\e90e"}.fa-eyedropper:before{content:"\e90f"}.fa-exclamation-triangle:before{content:"\e911"}.fa-chevron-left:before{content:"\e913"}.fa-chevron-right:before{content:"\e914"}.fa-check:before{content:"\e916"}.fa-arrow-left:before{content:"\e919"}
asset/fonts/fontawesome-webfont.svg CHANGED
@@ -1,26 +1,26 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
- <svg xmlns="http://www.w3.org/2000/svg">
4
- <metadata>Generated by IcoMoon</metadata>
5
- <defs>
6
- <font id="fontawesome-webfont" horiz-adv-x="1024">
7
- <font-face units-per-em="1024" ascent="960" descent="-64" />
8
- <missing-glyph horiz-adv-x="1024" />
9
- <glyph unicode="&#x20;" horiz-adv-x="512" d="" />
10
- <glyph unicode="&#xe901;" glyph-name="times" horiz-adv-x="805" d="M741.714 195.428c0-14.286-5.714-28.571-16-38.857l-77.714-77.714c-10.286-10.286-24.571-16-38.857-16s-28.571 5.714-38.857 16l-168 168-168-168c-10.286-10.286-24.571-16-38.857-16s-28.571 5.714-38.857 16l-77.714 77.714c-10.286 10.286-16 24.571-16 38.857s5.714 28.571 16 38.857l168 168-168 168c-10.286 10.286-16 24.571-16 38.857s5.714 28.571 16 38.857l77.714 77.714c10.286 10.286 24.571 16 38.857 16s28.571-5.714 38.857-16l168-168 168 168c10.286 10.286 24.571 16 38.857 16s28.571-5.714 38.857-16l77.714-77.714c10.286-10.286 16-24.571 16-38.857s-5.714-28.571-16-38.857l-168-168 168-168c10.286-10.286 16-24.571 16-38.857z" />
11
- <glyph unicode="&#xe902;" glyph-name="star" horiz-adv-x="951" d="M950.857 581.143c0-10.286-7.429-20-14.857-27.429l-207.429-202.286 49.143-285.714c0.571-4 0.571-7.429 0.571-11.429 0-14.857-6.857-28.571-23.429-28.571-8 0-16 2.857-22.857 6.857l-256.571 134.857-256.571-134.857c-7.429-4-14.857-6.857-22.857-6.857-16.571 0-24 13.714-24 28.571 0 4 0.571 7.429 1.143 11.429l49.143 285.714-208 202.286c-6.857 7.429-14.286 17.143-14.286 27.429 0 17.143 17.714 24 32 26.286l286.857 41.714 128.571 260c5.143 10.857 14.857 23.429 28 23.429s22.857-12.571 28-23.429l128.571-260 286.857-41.714c13.714-2.286 32-9.143 32-26.286z" />
12
- <glyph unicode="&#xe904;" glyph-name="shopping-cart" horiz-adv-x="951" d="M365.714 73.143c0-40-33.143-73.143-73.143-73.143s-73.143 33.143-73.143 73.143 33.143 73.143 73.143 73.143 73.143-33.143 73.143-73.143zM877.714 73.143c0-40-33.143-73.143-73.143-73.143s-73.143 33.143-73.143 73.143 33.143 73.143 73.143 73.143 73.143-33.143 73.143-73.143zM950.857 694.857v-292.571c0-18.286-14.286-34.286-32.571-36.571l-596.571-69.714c2.857-13.143 7.429-26.286 7.429-40 0-13.143-8-25.143-13.714-36.571h525.714c20 0 36.571-16.571 36.571-36.571s-16.571-36.571-36.571-36.571h-585.143c-20 0-36.571 16.571-36.571 36.571 0 17.714 25.714 60.571 34.857 78.286l-101.143 470.286h-116.571c-20 0-36.571 16.571-36.571 36.571s16.571 36.571 36.571 36.571h146.286c38.286 0 39.429-45.714 45.143-73.143h686.286c20 0 36.571-16.571 36.571-36.571z" />
13
- <glyph unicode="&#xe908;" glyph-name="magic" horiz-adv-x="966" d="M680 618.857l167.429 167.429-61.143 61.143-167.429-167.429zM935.429 786.286c0-9.714-3.429-18.857-10.286-25.714l-734.857-734.857c-6.857-6.857-16-10.286-25.714-10.286s-18.857 3.429-25.714 10.286l-113.143 113.143c-6.857 6.857-10.286 16-10.286 25.714s3.429 18.857 10.286 25.714l734.857 734.857c6.857 6.857 16 10.286 25.714 10.286s18.857-3.429 25.714-10.286l113.143-113.143c6.857-6.857 10.286-16 10.286-25.714zM163.429 894.857l56-17.143-56-17.143-17.143-56-17.143 56-56 17.143 56 17.143 17.143 56zM363.429 802.286l112-34.286-112-34.286-34.286-112-34.286 112-112 34.286 112 34.286 34.286 112zM894.857 529.143l56-17.143-56-17.143-17.143-56-17.143 56-56 17.143 56 17.143 17.143 56zM529.143 894.857l56-17.143-56-17.143-17.143-56-17.143 56-56 17.143 56 17.143 17.143 56z" />
14
- <glyph unicode="&#xe90a;" glyph-name="info" horiz-adv-x="366" d="M365.714 182.857v-73.143c0-20-16.571-36.571-36.571-36.571h-292.571c-20 0-36.571 16.571-36.571 36.571v73.143c0 20 16.571 36.571 36.571 36.571h36.571v219.429h-36.571c-20 0-36.571 16.571-36.571 36.571v73.143c0 20 16.571 36.571 36.571 36.571h219.429c20 0 36.571-16.571 36.571-36.571v-329.143h36.571c20 0 36.571-16.571 36.571-36.571zM292.571 841.143v-109.714c0-20-16.571-36.571-36.571-36.571h-146.286c-20 0-36.571 16.571-36.571 36.571v109.714c0 20 16.571 36.571 36.571 36.571h146.286c20 0 36.571-16.571 36.571-36.571z" />
15
- <glyph unicode="&#xe90b;" glyph-name="heart-o" d="M950.857 610.286c0 160.571-108.571 194.286-200 194.286-85.143 0-181.143-92-210.857-127.429-13.714-16.571-42.286-16.571-56 0-29.714 35.429-125.714 127.429-210.857 127.429-91.429 0-200-33.714-200-194.286 0-104.571 105.714-201.714 106.857-202.857l332-320 331.429 319.429c1.714 1.714 107.429 98.857 107.429 203.429zM1024 610.286c0-137.143-125.714-252-130.857-257.143l-356-342.857c-6.857-6.857-16-10.286-25.143-10.286s-18.286 3.429-25.143 10.286l-356.571 344c-4.571 4-130.286 118.857-130.286 256 0 167.429 102.286 267.429 273.143 267.429 100 0 193.714-78.857 238.857-123.429 45.143 44.571 138.857 123.429 238.857 123.429 170.857 0 273.143-100 273.143-267.429z" />
16
- <glyph unicode="&#xe90c;" glyph-name="heart" d="M512 0c-9.143 0-18.286 3.429-25.143 10.286l-356.571 344c-4.571 4-130.286 118.857-130.286 256 0 167.429 102.286 267.429 273.143 267.429 100 0 193.714-78.857 238.857-123.429 45.143 44.571 138.857 123.429 238.857 123.429 170.857 0 273.143-100 273.143-267.429 0-137.143-125.714-252-130.857-257.143l-356-342.857c-6.857-6.857-16-10.286-25.143-10.286z" />
17
- <glyph unicode="&#xe90d;" glyph-name="graduation-cap" horiz-adv-x="1317" d="M1013.714 473.143l10.286-180.571c4.571-80.571-164-146.286-365.714-146.286s-370.286 65.714-365.714 146.286l10.286 180.571 328-103.429c9.143-2.857 18.286-4 27.429-4s18.286 1.143 27.429 4zM1316.571 658.286c0-8-5.143-14.857-12.571-17.714l-640-201.143c-2.286-0.571-4-0.571-5.714-0.571s-3.429 0-5.714 0.571l-372.571 117.714c-32.571-25.714-55.429-88.571-60-165.714 21.714-12.571 36-35.429 36-62.286 0-25.714-13.143-48-33.143-61.143l33.143-247.429c0.571-5.143-1.143-10.286-4.571-14.286s-8.571-6.286-13.714-6.286h-109.714c-5.143 0-10.286 2.286-13.714 6.286s-5.143 9.143-4.571 14.286l33.143 247.429c-20 13.143-33.143 35.429-33.143 61.143 0 27.429 15.429 50.857 37.143 63.429 3.429 66.857 20.571 138.857 56 188.571l-190.286 59.429c-7.429 2.857-12.571 9.714-12.571 17.714s5.143 14.857 12.571 17.714l640 201.143c2.286 0.571 4 0.571 5.714 0.571s3.429 0 5.714-0.571l640-201.143c7.429-2.857 12.571-9.714 12.571-17.714z" />
18
- <glyph unicode="&#xe90e;" glyph-name="floppy-o" horiz-adv-x="878" d="M219.429 73.143h438.857v219.429h-438.857v-219.429zM731.429 73.143h73.143v512c0 10.857-9.714 34.286-17.143 41.714l-160.571 160.571c-8 8-30.286 17.143-41.714 17.143v-237.714c0-30.286-24.571-54.857-54.857-54.857h-329.143c-30.286 0-54.857 24.571-54.857 54.857v237.714h-73.143v-731.429h73.143v237.714c0 30.286 24.571 54.857 54.857 54.857h475.429c30.286 0 54.857-24.571 54.857-54.857v-237.714zM512 603.428v182.857c0 9.714-8.571 18.286-18.286 18.286h-109.714c-9.714 0-18.286-8.571-18.286-18.286v-182.857c0-9.714 8.571-18.286 18.286-18.286h109.714c9.714 0 18.286 8.571 18.286 18.286zM877.714 585.143v-530.286c0-30.286-24.571-54.857-54.857-54.857h-768c-30.286 0-54.857 24.571-54.857 54.857v768c0 30.286 24.571 54.857 54.857 54.857h530.286c30.286 0 72-17.143 93.714-38.857l160-160c21.714-21.714 38.857-63.429 38.857-93.714z" />
19
- <glyph unicode="&#xe90f;" glyph-name="eyedropper" horiz-adv-x="1042" d="M970.286 897.143c71.429-71.429 72-187.429 0-258.286l-128.571-127.429 59.429-59.429c7.429-7.429 7.429-18.857 0-26.286l-120-120c-7.429-7.429-18.857-7.429-26.286 0l-60 60-344.571-344.571c-13.714-13.714-32-21.143-51.429-21.143h-116l-146.286-73.143-36.571 36.571 73.143 146.286v116c0 19.429 7.429 37.714 21.143 51.429l344.571 344.571-60 60c-7.429 7.429-7.429 18.857 0 26.286l120 120c7.429 7.429 18.857 7.429 26.286 0l59.429-59.429 127.429 128.571c70.857 72 186.857 71.429 258.286 0zM292.571 109.714l329.143 329.143-109.714 109.714-329.143-329.143v-109.714h109.714z" />
20
- <glyph unicode="&#xe911;" glyph-name="exclamation-triangle" d="M585.143 165.143v108.571c0 10.286-8 18.857-18.286 18.857h-109.714c-10.286 0-18.286-8.571-18.286-18.857v-108.571c0-10.286 8-18.857 18.286-18.857h109.714c10.286 0 18.286 8.571 18.286 18.857zM584 378.857l10.286 262.286c0 3.429-1.714 8-5.714 10.857-3.429 2.857-8.571 6.286-13.714 6.286h-125.714c-5.143 0-10.286-3.429-13.714-6.286-4-2.857-5.714-8.571-5.714-12l9.714-261.143c0-7.429 8.571-13.143 19.429-13.143h105.714c10.286 0 18.857 5.714 19.429 13.143zM576 912.571l438.857-804.571c12.571-22.286 12-49.714-1.143-72s-37.143-36-62.857-36h-877.714c-25.714 0-49.714 13.714-62.857 36s-13.714 49.714-1.143 72l438.857 804.571c12.571 23.429 37.143 38.286 64 38.286s51.429-14.857 64-38.286z" />
21
- <glyph unicode="&#xe913;" glyph-name="chevron-left" horiz-adv-x="768" d="M669.143 778.857l-303.429-303.429 303.429-303.429c14.286-14.286 14.286-37.143 0-51.429l-94.857-94.857c-14.286-14.286-37.143-14.286-51.429 0l-424 424c-14.286 14.286-14.286 37.143 0 51.429l424 424c14.286 14.286 37.143 14.286 51.429 0l94.857-94.857c14.286-14.286 14.286-37.143 0-51.429z" />
22
- <glyph unicode="&#xe914;" glyph-name="chevron-right" horiz-adv-x="695" d="M632.571 449.714l-424-424c-14.286-14.286-37.143-14.286-51.429 0l-94.857 94.857c-14.286 14.286-14.286 37.143 0 51.429l303.429 303.429-303.429 303.429c-14.286 14.286-14.286 37.143 0 51.429l94.857 94.857c14.286 14.286 37.143 14.286 51.429 0l424-424c14.286-14.286 14.286-37.143 0-51.429z" />
23
- <glyph unicode="&#xe916;" glyph-name="check" d="M954.857 627.428c0-14.286-5.714-28.571-16-38.857l-491.429-491.429c-10.286-10.286-24.571-16-38.857-16s-28.571 5.714-38.857 16l-284.571 284.571c-10.286 10.286-16 24.571-16 38.857s5.714 28.571 16 38.857l77.714 77.714c10.286 10.286 24.571 16 38.857 16s28.571-5.714 38.857-16l168-168.571 374.857 375.429c10.286 10.286 24.571 16 38.857 16s28.571-5.714 38.857-16l77.714-77.714c10.286-10.286 16-24.571 16-38.857z" />
24
- <glyph unicode="&#xe919;" glyph-name="arrow-left" horiz-adv-x="914" d="M877.714 438.857v-73.143c0-38.857-25.714-73.143-66.857-73.143h-402.286l167.429-168c13.714-13.143 21.714-32 21.714-51.429s-8-38.286-21.714-51.429l-42.857-43.429c-13.143-13.143-32-21.143-51.429-21.143s-38.286 8-52 21.143l-372 372.571c-13.143 13.143-21.143 32-21.143 51.429s8 38.286 21.143 52l372 371.429c13.714 13.714 32.571 21.714 52 21.714s37.714-8 51.429-21.714l42.857-42.286c13.714-13.714 21.714-32.571 21.714-52s-8-38.286-21.714-52l-167.429-167.429h402.286c41.143 0 66.857-34.286 66.857-73.143z" />
25
- <glyph unicode="&#xe91a;" glyph-name="wrench" horiz-adv-x="962" d="M219.429 109.714c0 20-16.571 36.571-36.571 36.571s-36.571-16.571-36.571-36.571 16.571-36.571 36.571-36.571 36.571 16.571 36.571 36.571zM587.429 349.714l-389.714-389.714c-13.143-13.143-32-21.143-51.429-21.143s-38.286 8-52 21.143l-60.571 61.714c-13.714 13.143-21.714 32-21.714 51.429s8 38.286 21.714 52l389.143 389.143c29.714-74.857 89.714-134.857 164.571-164.571zM949.714 598.286c0-18.857-6.857-42.286-13.143-60.571-36-101.714-133.714-172-241.714-172-141.143 0-256 114.857-256 256s114.857 256 256 256c41.714 0 96-12.571 130.857-36 5.714-4 9.143-9.143 9.143-16 0-6.286-4-12.571-9.143-16l-167.429-96.571v-128l110.286-61.143c18.857 10.857 151.429 94.286 162.857 94.286s18.286-8.571 18.286-20z" />
26
  </font></defs></svg>
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Generated by IcoMoon</metadata>
5
+ <defs>
6
+ <font id="fontawesome-webfont" horiz-adv-x="1024">
7
+ <font-face units-per-em="1024" ascent="960" descent="-64" />
8
+ <missing-glyph horiz-adv-x="1024" />
9
+ <glyph unicode="&#x20;" horiz-adv-x="512" d="" />
10
+ <glyph unicode="&#xe901;" glyph-name="times" horiz-adv-x="805" d="M741.714 195.428c0-14.286-5.714-28.571-16-38.857l-77.714-77.714c-10.286-10.286-24.571-16-38.857-16s-28.571 5.714-38.857 16l-168 168-168-168c-10.286-10.286-24.571-16-38.857-16s-28.571 5.714-38.857 16l-77.714 77.714c-10.286 10.286-16 24.571-16 38.857s5.714 28.571 16 38.857l168 168-168 168c-10.286 10.286-16 24.571-16 38.857s5.714 28.571 16 38.857l77.714 77.714c10.286 10.286 24.571 16 38.857 16s28.571-5.714 38.857-16l168-168 168 168c10.286 10.286 24.571 16 38.857 16s28.571-5.714 38.857-16l77.714-77.714c10.286-10.286 16-24.571 16-38.857s-5.714-28.571-16-38.857l-168-168 168-168c10.286-10.286 16-24.571 16-38.857z" />
11
+ <glyph unicode="&#xe902;" glyph-name="star" horiz-adv-x="951" d="M950.857 581.143c0-10.286-7.429-20-14.857-27.429l-207.429-202.286 49.143-285.714c0.571-4 0.571-7.429 0.571-11.429 0-14.857-6.857-28.571-23.429-28.571-8 0-16 2.857-22.857 6.857l-256.571 134.857-256.571-134.857c-7.429-4-14.857-6.857-22.857-6.857-16.571 0-24 13.714-24 28.571 0 4 0.571 7.429 1.143 11.429l49.143 285.714-208 202.286c-6.857 7.429-14.286 17.143-14.286 27.429 0 17.143 17.714 24 32 26.286l286.857 41.714 128.571 260c5.143 10.857 14.857 23.429 28 23.429s22.857-12.571 28-23.429l128.571-260 286.857-41.714c13.714-2.286 32-9.143 32-26.286z" />
12
+ <glyph unicode="&#xe904;" glyph-name="shopping-cart" horiz-adv-x="951" d="M365.714 73.143c0-40-33.143-73.143-73.143-73.143s-73.143 33.143-73.143 73.143 33.143 73.143 73.143 73.143 73.143-33.143 73.143-73.143zM877.714 73.143c0-40-33.143-73.143-73.143-73.143s-73.143 33.143-73.143 73.143 33.143 73.143 73.143 73.143 73.143-33.143 73.143-73.143zM950.857 694.857v-292.571c0-18.286-14.286-34.286-32.571-36.571l-596.571-69.714c2.857-13.143 7.429-26.286 7.429-40 0-13.143-8-25.143-13.714-36.571h525.714c20 0 36.571-16.571 36.571-36.571s-16.571-36.571-36.571-36.571h-585.143c-20 0-36.571 16.571-36.571 36.571 0 17.714 25.714 60.571 34.857 78.286l-101.143 470.286h-116.571c-20 0-36.571 16.571-36.571 36.571s16.571 36.571 36.571 36.571h146.286c38.286 0 39.429-45.714 45.143-73.143h686.286c20 0 36.571-16.571 36.571-36.571z" />
13
+ <glyph unicode="&#xe908;" glyph-name="magic" horiz-adv-x="966" d="M680 618.857l167.429 167.429-61.143 61.143-167.429-167.429zM935.429 786.286c0-9.714-3.429-18.857-10.286-25.714l-734.857-734.857c-6.857-6.857-16-10.286-25.714-10.286s-18.857 3.429-25.714 10.286l-113.143 113.143c-6.857 6.857-10.286 16-10.286 25.714s3.429 18.857 10.286 25.714l734.857 734.857c6.857 6.857 16 10.286 25.714 10.286s18.857-3.429 25.714-10.286l113.143-113.143c6.857-6.857 10.286-16 10.286-25.714zM163.429 894.857l56-17.143-56-17.143-17.143-56-17.143 56-56 17.143 56 17.143 17.143 56zM363.429 802.286l112-34.286-112-34.286-34.286-112-34.286 112-112 34.286 112 34.286 34.286 112zM894.857 529.143l56-17.143-56-17.143-17.143-56-17.143 56-56 17.143 56 17.143 17.143 56zM529.143 894.857l56-17.143-56-17.143-17.143-56-17.143 56-56 17.143 56 17.143 17.143 56z" />
14
+ <glyph unicode="&#xe90a;" glyph-name="info" horiz-adv-x="366" d="M365.714 182.857v-73.143c0-20-16.571-36.571-36.571-36.571h-292.571c-20 0-36.571 16.571-36.571 36.571v73.143c0 20 16.571 36.571 36.571 36.571h36.571v219.429h-36.571c-20 0-36.571 16.571-36.571 36.571v73.143c0 20 16.571 36.571 36.571 36.571h219.429c20 0 36.571-16.571 36.571-36.571v-329.143h36.571c20 0 36.571-16.571 36.571-36.571zM292.571 841.143v-109.714c0-20-16.571-36.571-36.571-36.571h-146.286c-20 0-36.571 16.571-36.571 36.571v109.714c0 20 16.571 36.571 36.571 36.571h146.286c20 0 36.571-16.571 36.571-36.571z" />
15
+ <glyph unicode="&#xe90b;" glyph-name="heart-o" d="M950.857 610.286c0 160.571-108.571 194.286-200 194.286-85.143 0-181.143-92-210.857-127.429-13.714-16.571-42.286-16.571-56 0-29.714 35.429-125.714 127.429-210.857 127.429-91.429 0-200-33.714-200-194.286 0-104.571 105.714-201.714 106.857-202.857l332-320 331.429 319.429c1.714 1.714 107.429 98.857 107.429 203.429zM1024 610.286c0-137.143-125.714-252-130.857-257.143l-356-342.857c-6.857-6.857-16-10.286-25.143-10.286s-18.286 3.429-25.143 10.286l-356.571 344c-4.571 4-130.286 118.857-130.286 256 0 167.429 102.286 267.429 273.143 267.429 100 0 193.714-78.857 238.857-123.429 45.143 44.571 138.857 123.429 238.857 123.429 170.857 0 273.143-100 273.143-267.429z" />
16
+ <glyph unicode="&#xe90c;" glyph-name="heart" d="M512 0c-9.143 0-18.286 3.429-25.143 10.286l-356.571 344c-4.571 4-130.286 118.857-130.286 256 0 167.429 102.286 267.429 273.143 267.429 100 0 193.714-78.857 238.857-123.429 45.143 44.571 138.857 123.429 238.857 123.429 170.857 0 273.143-100 273.143-267.429 0-137.143-125.714-252-130.857-257.143l-356-342.857c-6.857-6.857-16-10.286-25.143-10.286z" />
17
+ <glyph unicode="&#xe90d;" glyph-name="graduation-cap" horiz-adv-x="1317" d="M1013.714 473.143l10.286-180.571c4.571-80.571-164-146.286-365.714-146.286s-370.286 65.714-365.714 146.286l10.286 180.571 328-103.429c9.143-2.857 18.286-4 27.429-4s18.286 1.143 27.429 4zM1316.571 658.286c0-8-5.143-14.857-12.571-17.714l-640-201.143c-2.286-0.571-4-0.571-5.714-0.571s-3.429 0-5.714 0.571l-372.571 117.714c-32.571-25.714-55.429-88.571-60-165.714 21.714-12.571 36-35.429 36-62.286 0-25.714-13.143-48-33.143-61.143l33.143-247.429c0.571-5.143-1.143-10.286-4.571-14.286s-8.571-6.286-13.714-6.286h-109.714c-5.143 0-10.286 2.286-13.714 6.286s-5.143 9.143-4.571 14.286l33.143 247.429c-20 13.143-33.143 35.429-33.143 61.143 0 27.429 15.429 50.857 37.143 63.429 3.429 66.857 20.571 138.857 56 188.571l-190.286 59.429c-7.429 2.857-12.571 9.714-12.571 17.714s5.143 14.857 12.571 17.714l640 201.143c2.286 0.571 4 0.571 5.714 0.571s3.429 0 5.714-0.571l640-201.143c7.429-2.857 12.571-9.714 12.571-17.714z" />
18
+ <glyph unicode="&#xe90e;" glyph-name="floppy-o" horiz-adv-x="878" d="M219.429 73.143h438.857v219.429h-438.857v-219.429zM731.429 73.143h73.143v512c0 10.857-9.714 34.286-17.143 41.714l-160.571 160.571c-8 8-30.286 17.143-41.714 17.143v-237.714c0-30.286-24.571-54.857-54.857-54.857h-329.143c-30.286 0-54.857 24.571-54.857 54.857v237.714h-73.143v-731.429h73.143v237.714c0 30.286 24.571 54.857 54.857 54.857h475.429c30.286 0 54.857-24.571 54.857-54.857v-237.714zM512 603.428v182.857c0 9.714-8.571 18.286-18.286 18.286h-109.714c-9.714 0-18.286-8.571-18.286-18.286v-182.857c0-9.714 8.571-18.286 18.286-18.286h109.714c9.714 0 18.286 8.571 18.286 18.286zM877.714 585.143v-530.286c0-30.286-24.571-54.857-54.857-54.857h-768c-30.286 0-54.857 24.571-54.857 54.857v768c0 30.286 24.571 54.857 54.857 54.857h530.286c30.286 0 72-17.143 93.714-38.857l160-160c21.714-21.714 38.857-63.429 38.857-93.714z" />
19
+ <glyph unicode="&#xe90f;" glyph-name="eyedropper" horiz-adv-x="1042" d="M970.286 897.143c71.429-71.429 72-187.429 0-258.286l-128.571-127.429 59.429-59.429c7.429-7.429 7.429-18.857 0-26.286l-120-120c-7.429-7.429-18.857-7.429-26.286 0l-60 60-344.571-344.571c-13.714-13.714-32-21.143-51.429-21.143h-116l-146.286-73.143-36.571 36.571 73.143 146.286v116c0 19.429 7.429 37.714 21.143 51.429l344.571 344.571-60 60c-7.429 7.429-7.429 18.857 0 26.286l120 120c7.429 7.429 18.857 7.429 26.286 0l59.429-59.429 127.429 128.571c70.857 72 186.857 71.429 258.286 0zM292.571 109.714l329.143 329.143-109.714 109.714-329.143-329.143v-109.714h109.714z" />
20
+ <glyph unicode="&#xe911;" glyph-name="exclamation-triangle" d="M585.143 165.143v108.571c0 10.286-8 18.857-18.286 18.857h-109.714c-10.286 0-18.286-8.571-18.286-18.857v-108.571c0-10.286 8-18.857 18.286-18.857h109.714c10.286 0 18.286 8.571 18.286 18.857zM584 378.857l10.286 262.286c0 3.429-1.714 8-5.714 10.857-3.429 2.857-8.571 6.286-13.714 6.286h-125.714c-5.143 0-10.286-3.429-13.714-6.286-4-2.857-5.714-8.571-5.714-12l9.714-261.143c0-7.429 8.571-13.143 19.429-13.143h105.714c10.286 0 18.857 5.714 19.429 13.143zM576 912.571l438.857-804.571c12.571-22.286 12-49.714-1.143-72s-37.143-36-62.857-36h-877.714c-25.714 0-49.714 13.714-62.857 36s-13.714 49.714-1.143 72l438.857 804.571c12.571 23.429 37.143 38.286 64 38.286s51.429-14.857 64-38.286z" />
21
+ <glyph unicode="&#xe913;" glyph-name="chevron-left" horiz-adv-x="768" d="M669.143 778.857l-303.429-303.429 303.429-303.429c14.286-14.286 14.286-37.143 0-51.429l-94.857-94.857c-14.286-14.286-37.143-14.286-51.429 0l-424 424c-14.286 14.286-14.286 37.143 0 51.429l424 424c14.286 14.286 37.143 14.286 51.429 0l94.857-94.857c14.286-14.286 14.286-37.143 0-51.429z" />
22
+ <glyph unicode="&#xe914;" glyph-name="chevron-right" horiz-adv-x="695" d="M632.571 449.714l-424-424c-14.286-14.286-37.143-14.286-51.429 0l-94.857 94.857c-14.286 14.286-14.286 37.143 0 51.429l303.429 303.429-303.429 303.429c-14.286 14.286-14.286 37.143 0 51.429l94.857 94.857c14.286 14.286 37.143 14.286 51.429 0l424-424c14.286-14.286 14.286-37.143 0-51.429z" />
23
+ <glyph unicode="&#xe916;" glyph-name="check" d="M954.857 627.428c0-14.286-5.714-28.571-16-38.857l-491.429-491.429c-10.286-10.286-24.571-16-38.857-16s-28.571 5.714-38.857 16l-284.571 284.571c-10.286 10.286-16 24.571-16 38.857s5.714 28.571 16 38.857l77.714 77.714c10.286 10.286 24.571 16 38.857 16s28.571-5.714 38.857-16l168-168.571 374.857 375.429c10.286 10.286 24.571 16 38.857 16s28.571-5.714 38.857-16l77.714-77.714c10.286-10.286 16-24.571 16-38.857z" />
24
+ <glyph unicode="&#xe919;" glyph-name="arrow-left" horiz-adv-x="914" d="M877.714 438.857v-73.143c0-38.857-25.714-73.143-66.857-73.143h-402.286l167.429-168c13.714-13.143 21.714-32 21.714-51.429s-8-38.286-21.714-51.429l-42.857-43.429c-13.143-13.143-32-21.143-51.429-21.143s-38.286 8-52 21.143l-372 372.571c-13.143 13.143-21.143 32-21.143 51.429s8 38.286 21.143 52l372 371.429c13.714 13.714 32.571 21.714 52 21.714s37.714-8 51.429-21.714l42.857-42.286c13.714-13.714 21.714-32.571 21.714-52s-8-38.286-21.714-52l-167.429-167.429h402.286c41.143 0 66.857-34.286 66.857-73.143z" />
25
+ <glyph unicode="&#xe91a;" glyph-name="wrench" horiz-adv-x="962" d="M219.429 109.714c0 20-16.571 36.571-36.571 36.571s-36.571-16.571-36.571-36.571 16.571-36.571 36.571-36.571 36.571 16.571 36.571 36.571zM587.429 349.714l-389.714-389.714c-13.143-13.143-32-21.143-51.429-21.143s-38.286 8-52 21.143l-60.571 61.714c-13.714 13.143-21.714 32-21.714 51.429s8 38.286 21.714 52l389.143 389.143c29.714-74.857 89.714-134.857 164.571-164.571zM949.714 598.286c0-18.857-6.857-42.286-13.143-60.571-36-101.714-133.714-172-241.714-172-141.143 0-256 114.857-256 256s114.857 256 256 256c41.714 0 96-12.571 130.857-36 5.714-4 9.143-9.143 9.143-16 0-6.286-4-12.571-9.143-16l-167.429-96.571v-128l110.286-61.143c18.857 10.857 151.429 94.286 162.857 94.286s18.286-8.571 18.286-20z" />
26
  </font></defs></svg>
asset/js/public.js CHANGED
@@ -123,13 +123,11 @@
123
  },
124
  removed: function (status) {
125
  if (status) {
126
- $(this).removeClass('tinvwl-product-in-list').removeClass('tinvwl-product-make-remove');
127
  }
128
  },
129
  make_remove: function (status) {
130
- if (status) {
131
- $(this).addClass( 'tinvwl-product-make-remove' );
132
- }
133
  },
134
  top_wishlist_content: function(data) {
135
  $('.widget_wishlist_content').html(data);
@@ -146,7 +144,8 @@
146
  tinv_wishlist_name: name || '',
147
  product_type: $(this).attr('tinv-wl-producttype'),
148
  product_id: $(this).attr('tinv-wl-product') || 0,
149
- product_variation: $(this).attr('tinv-wl-productvariation') || 0
 
150
  },
151
  a = this;
152
  $('form.cart[method=post], .woocommerce-variation-add-to-cart').find('input, select, textarea').each(function () {
@@ -390,13 +389,14 @@
390
  e.addClass('disabled-add-wishlist');
391
  }).on('show_variation', function (a, b, d) {
392
  var f = JSON.parse(e.attr('tinv-wl-list')),
393
- j = false;
 
394
  for(var i in f) {
395
  if (f[i].hasOwnProperty('in') && Array.isArray(f[i]['in']) && -1 < (f[i]['in'] || []).indexOf(b.variation_id)) {
396
  j = true;
397
  }
398
  }
399
- e.toggleClass('tinvwl-product-in-list', j).toggleClass('tinvwl-product-make-remove', j);
400
  a.preventDefault();
401
  e.removeClass('disabled-add-wishlist');
402
  });
@@ -433,7 +433,7 @@
433
  $(this).remove();
434
  }
435
  });
436
- $('.social-buttons .social').on('click', function (e) {
437
  var newWind = window.open($(this).attr('href'), $(this).attr('title'), "width=420,height=320,resizable=yes,scrollbars=yes,status=yes");
438
  if (newWind) {
439
  newWind.focus();
123
  },
124
  removed: function (status) {
125
  if (status) {
126
+ $(this).removeClass('tinvwl-product-in-list').removeClass('tinvwl-product-make-remove').attr('tinv-wl-action', 'addto');
127
  }
128
  },
129
  make_remove: function (status) {
130
+ $( this ).toggleClass( 'tinvwl-product-make-remove', status ).attr( 'tinv-wl-action', status ? 'remove' : 'addto' );
 
 
131
  },
132
  top_wishlist_content: function(data) {
133
  $('.widget_wishlist_content').html(data);
144
  tinv_wishlist_name: name || '',
145
  product_type: $(this).attr('tinv-wl-producttype'),
146
  product_id: $(this).attr('tinv-wl-product') || 0,
147
+ product_variation: $(this).attr('tinv-wl-productvariation') || 0,
148
+ product_action: $(this).attr('tinv-wl-action') || 'addto'
149
  },
150
  a = this;
151
  $('form.cart[method=post], .woocommerce-variation-add-to-cart').find('input, select, textarea').each(function () {
389
  e.addClass('disabled-add-wishlist');
390
  }).on('show_variation', function (a, b, d) {
391
  var f = JSON.parse(e.attr('tinv-wl-list')),
392
+ j = false,
393
+ g = '1' == window.tinvwl_add_to_wishlist['simple_flow'];
394
  for(var i in f) {
395
  if (f[i].hasOwnProperty('in') && Array.isArray(f[i]['in']) && -1 < (f[i]['in'] || []).indexOf(b.variation_id)) {
396
  j = true;
397
  }
398
  }
399
+ e.toggleClass('tinvwl-product-in-list', j).toggleClass('tinvwl-product-make-remove', (j && g)).attr('tinv-wl-action', ( (j && g) ? 'remove' : 'addto' ) );
400
  a.preventDefault();
401
  e.removeClass('disabled-add-wishlist');
402
  });
433
  $(this).remove();
434
  }
435
  });
436
+ $('body').on('click', '.social-buttons .social[title!=email]', function (e) {
437
  var newWind = window.open($(this).attr('href'), $(this).attr('title'), "width=420,height=320,resizable=yes,scrollbars=yes,status=yes");
438
  if (newWind) {
439
  newWind.focus();
asset/js/public.min.js CHANGED
@@ -1 +1 @@
1
- (function($){$.fn.tinvwl_to_wishlist=function(so){var sd={api_url:window.location.href,text_create:window.tinvwl_add_to_wishlist['text_create'],text_already_in:window.tinvwl_add_to_wishlist['text_already_in'],class:{dialogbox:'.tinvwl_add_to_select_wishlist',select:'.tinvwl_wishlist',newtitle:'.tinvwl_new_input',dialogbutton:'.tinvwl_button_add'},redirectTimer:null,onPrepareList:function(){},onGetDialogBox:function(){},onPrepareDialogBox:function(){if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));} $(this).appendTo('body > .tinv-wishlist');},onCreateWishList:function(wishlist){$(this).append($('<option>').html(wishlist.title).attr('value',wishlist.ID).toggleClass('tinv_in_wishlist',wishlist.in));},onSelectWishList:function(){},onDialogShow:function(){$(this).addClass('tinv-modal-open');},onDialogHide:function(){$(this).removeClass('tinv-modal-open');},onInited:function(){},onClick:function(){if($(this).is('.disabled-add-wishlist')){return false;} if(this.tinvwl_dialog){this.tinvwl_dialog.show_list.call(this);}else{s.onActionProduct.call(this);}},onPrepareDataAction:function(){},filterProductAlreadyIn:function(WList){var WList=WList||[],data={};$('form.cart[method=post], .woocommerce-variation-add-to-cart').find('input, select').each(function(){var name_elm=$(this).attr('name'),type_elm=$(this).attr('type'),value_elm=$(this).val();if('checkbox'===type_elm||'radio'===type_elm){if($(this).is(':checked')){data['form'+name_elm]=value_elm;}}else{data['form'+name_elm]=value_elm;}});data=data['formvariation_id'];return WList.filter(function(wishlist){if('object'===typeof wishlist.in&&'string'===typeof data){var number=parseInt(data);return 0<=wishlist.in.indexOf(number);} return wishlist.in;});},onMultiProductAlreadyIn:function(WList){var WList=WList||[];WList=s.onPrepareList.call(WList)||WList;WList=s.filterProductAlreadyIn.call(this,WList)||WList;$(this).parent().parent().find('.already-in').remove();var text='';switch(WList.length){case 0:break;default:var text=$('<ul>');$.each(WList,function(k,wishlist){text.append($('<li>').html($('<a>').html(wishlist.title).attr({href:wishlist.url})).attr('value',wishlist.ID));});break;} if(text.length){$(this).closest('.tinv-modal-inner').find('img').after($('<div>').addClass('already-in').html(s.text_already_in+' ').append(text));}},onAction:{redirect:function(url){if(s.redirectTimer){clearTimeout(s.redirectTimer);} s.redirectTimer=window.setTimeout(function(){window.location.href=url;},4000);},wishlists:function(wishlist){$(this).attr('tinv-wl-list',wishlist);},msg:function(html){if(!html){return false;} var $msg=$(html).eq(0);if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));} $('body > .tinv-wishlist').append($msg);$msg.on('click','.tinv-close-modal, .tinvwl_button_close, .tinv-overlay',function(e){e.preventDefault();$msg.remove();if(s.redirectTimer){clearTimeout(s.redirectTimer);}});},status:function(status){if(status){$(this).addClass('tinvwl-product-in-list');}},removed:function(status){if(status){$(this).removeClass('tinvwl-product-in-list').removeClass('tinvwl-product-make-remove');}},make_remove:function(status){if(status){$(this).addClass('tinvwl-product-make-remove');}},top_wishlist_content:function(data){$('.widget_wishlist_content').html(data);},top_wishlist_counter:function(data){$('.wishlist_products_counter_number').html(data);}}};sd.onActionProduct=function(id,name){var data={form:{},tinv_wishlist_id:id||'',tinv_wishlist_name:name||'',product_type:$(this).attr('tinv-wl-producttype'),product_id:$(this).attr('tinv-wl-product')||0,product_variation:$(this).attr('tinv-wl-productvariation')||0},a=this;$('form.cart[method=post], .woocommerce-variation-add-to-cart').find('input, select, textarea').each(function(){var name_elm=$(this).attr('name'),type_elm=$(this).attr('type'),value_elm=$(this).val(),count=10,ti_merge_value=function(o1,o2){if('object'===typeof o2){if('undefined'===typeof o1){o1={};} for(var i in o2){if(''===i){var j=-1;for(j in o1){j=j;} j=parseInt(j)+1;o1[j]=ti_merge_value(o1[i],o2[i]);}else{o1[i]=ti_merge_value(o1[i],o2[i]);}} return o1;}else{return o2;}};while(/^(.+)\[([^\[\]]*?)\]$/.test(name_elm)&&0<count){var n_name=name_elm.match(/^(.+)\[([^\[\]]*?)\]$/);if(3===n_name.length){var _value_elm={};_value_elm[n_name[2]]=value_elm;value_elm=_value_elm;} name_elm=n_name[1];count--;} if('checkbox'===type_elm||'radio'===type_elm){if($(this).is(':checked')){if(!value_elm.length&&'object'!==typeof value_elm){value_elm=true;} data.form[name_elm]=ti_merge_value(data.form[name_elm],value_elm);}}else{data.form[name_elm]=ti_merge_value(data.form[name_elm],value_elm);}});data=s.onPrepareDataAction.call(a,data)||data;$.post(s.api_url,data,function(body){s.onDialogHide.call(a.tinvwl_dialog);if('object'===typeof body){for(var k in body){if('function'===typeof s.onAction[k]){s.onAction[k].call(a,body[k]);}}}else{if('function'===typeof s.onAction['msg']){s.onAction['msg'].call(a,body);}}});};var s=$.extend(true,{},sd,so);return $(this).each(function(){if(!$(this).attr('tinv-wl-list')){return false;} if(s.dialogbox){if(s.dialogbox.length){this.tinvwl_dialog=s.dialogbox;}} if(!this.tinvwl_dialog){this.tinvwl_dialog=s.onGetDialogBox.call(this);} if(!this.tinvwl_dialog){var _tinvwl_dialog=$(this).nextAll(s.class.dialogbox).eq(0);if(_tinvwl_dialog.length){this.tinvwl_dialog=_tinvwl_dialog;}} if(this.tinvwl_dialog){s.onPrepareDialogBox.call(this.tinvwl_dialog);if('function'!==typeof this.tinvwl_dialog.update_list){this.tinvwl_dialog.update_list=function(WL){var $select=$(this).find(s.class.select).eq(0);$(this).find(s.class.newtitle).hide().val('');$select.html('');$.each(WL,function(k,v){s.onCreateWishList.call($select,v);});if(s.text_create){s.onCreateWishList.call($select,{ID:'',title:s.text_create,in:false});} s.onMultiProductAlreadyIn.call($select,WL);s.onSelectWishList.call($select,WL);$(this).find(s.class.newtitle).toggle(''===$select.val());}} if('function'!==typeof this.tinvwl_dialog.show_list){this.tinvwl_dialog.show_list=function(){var WList=$.parseJSON($(this).attr('tinv-wl-list'))||[];if(WList.length){WList=s.onPrepareList.call(WList)||WList;this.tinvwl_dialog.update_list(WList);s.onDialogShow.call(this.tinvwl_dialog);}else{s.onActionProduct.call(this);}}} var a=this;$(this.tinvwl_dialog).find(s.class.dialogbutton).off('click').on('click',function(){var b=$(a.tinvwl_dialog).find(s.class.select),c=$(a.tinvwl_dialog).find(s.class.newtitle),d;if(b.val()||c.val()){s.onActionProduct.call(a,b.val(),c.val());}else{d=c.is(':visible')?c:b;d.addClass('empty-name-wishlist');window.setTimeout(function(){d.removeClass('empty-name-wishlist');},1000);}});} $(this).off('click').on('click',s.onClick);s.onInited.call(this,s);});};$(document).ready(function(){$('body').on('click','.tinvwl_add_to_wishlist_button',function(e){if($(this).is('.disabled-add-wishlist')){e.preventDefault();window.alert(tinvwl_add_to_wishlist.i18n_make_a_selection_text);return;} if($(this).is('.inited-add-wishlist')){return;} $(this).tinvwl_to_wishlist({onInited:function(s){$(this).addClass('inited-add-wishlist');s.onClick.call(this);}});});$('.tinvwl_move_product_button').tinvwl_to_wishlist({class:{dialogbox:'.tinvwl_wishlist_move',select:'.tinvwl_wishlist',newtitle:'.tinvwl_new_input',dialogbutton:'.tinvwl_button_move'},onPrepareDataAction:function(data){data.tinv_from_wishlist_id=$(this).attr('tinv-wl');data.tinv_to_wishlist_id=data.tinv_wishlist_id;if(!data.tinv_wishlist_name){data.tinv_wishlist_name='-';} delete data.tinv_wishlist_id;return data;},onPrepareList:function(){return this.filter(function(a){return!a.hide;});},onAction:{redirect:function(url){return window.location.href=url;}}});$('.global-cb').on('click',function(){$(this).closest('table').eq(0).find('.product-cb input[type=checkbox], .wishlist-cb input[type=checkbox]').prop('checked',$(this).is(':checked'))});});})(jQuery);(function($){$.fn.tinvwl_break_submit=function(so){var sd={selector:'input, select, textarea',ifempty:true,invert:false,validate:function(){return $(this).val();},rule:function(){var form_elements=$(this).parents('form').eq(0).find(s.selector),trigger=s.invert;if(0===form_elements.length){return s.ifempty;} form_elements.each(function(){if((trigger&&!s.invert)||(!trigger&&s.invert)){return;} trigger=Boolean(s.validate.call($(this)));});return trigger;}};var s=$.extend(true,{},sd,so);return $(this).each(function(){$(this).on('click',function(event){if(!s.rule.call($(this))){event.preventDefault();}});});};$(document).ready(function(){$('.tinvwl-break-input').tinvwl_break_submit({selector:'.tinvwl-break-input-filed'});$('.tinvwl-break-checkbox').tinvwl_break_submit({selector:'table td input[type=checkbox]',validate:function(){return $(this).is(':checked');}});});})(jQuery);(function($){$('.variations_form').each(function(){var c=$(this),e=c.find('.tinvwl_add_to_wishlist_button');if(e.length){c.on('hide_variation',function(a){a.preventDefault();e.addClass('disabled-add-wishlist');}).on('show_variation',function(a,b,d){var f=JSON.parse(e.attr('tinv-wl-list')),j=false;for(var i in f){if(f[i].hasOwnProperty('in')&&Array.isArray(f[i]['in'])&&-1<(f[i]['in']||[]).indexOf(b.variation_id)){j=true;}} e.toggleClass('tinvwl-product-in-list',j).toggleClass('tinvwl-product-make-remove',j);a.preventDefault();e.removeClass('disabled-add-wishlist');});}});})(jQuery);(function($){$(document).ready(function(){$.fn.tinvwl_modal=function(so){var sd={showClass:'tinv-modal-open',modal:'.tinv-modal',onPrepare:function(){if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));} $(this).appendTo('body > .tinv-wishlist');}},s=$.extend(true,{},sd,so);return $(this).each(function(){var a=$(this),b=a.next(s.modal);s.onPrepare.call(b);a.on('click',function(){b.addClass(s.showClass);});});};$('.tinv-modal-btn').tinvwl_modal({});$('#tinvwl_manage_actions, #tinvwl_product_actions').addClass('form-control').parent().wrapInner('<div class="input-group tinvwl-no-full">').find('button').wrap('<span class="input-group-btn">');$('.tinv-lists-nav').each(function(){if(!$.trim($(this).html()).length){$(this).remove();}});$('.social-buttons .social').on('click',function(e){var newWind=window.open($(this).attr('href'),$(this).attr('title'),"width=420,height=320,resizable=yes,scrollbars=yes,status=yes");if(newWind){newWind.focus();e.preventDefault();}});$('.tinvwl-select-all').on('click',function(e){e.preventDefault();$(this).parent().parent().find('ul li input[type="checkbox"]').attr('checked',true);});$('.tinvwl-select-none').on('click',function(e){e.preventDefault();$(this).parent().parent().find('ul li input[type="checkbox"]').attr('checked',false);});$('body').on('click','.tinv-wishlist .tinv-overlay, .tinv-wishlist .tinv-close-modal, .tinv-wishlist .tinvwl_button_close',function(e){e.preventDefault();$(this).parents('.tinv-modal:first').removeClass('tinv-modal-open');});$('body').on('click','.tinv-wishlist .tinvwl-btn-onclick',function(e){var url=$(this).data('url');if(url){e.preventDefault();window.location=$(this).data('url');}});var navigationButton=$('.tinv-wishlist .navigation-button');if(navigationButton.length){navigationButton.each(function(){var navigationButtons=$(this).find('> li');if(navigationButtons.length<5){navigationButtons.parent().addClass('tinvwl-btns-count-'+navigationButtons.length);}});} $('.tinv-login .showlogin').unbind("click").on('click',function(e){e.preventDefault();$(this).closest('.tinv-login').find('.login').toggle();});$('.tinv-wishlist table.tinvwl-table-manage-list tfoot td').each(function(){$(this).toggle(!!$(this).children().not('.look_in').length||!!$(this).children('.look_in').children().length);});})})(jQuery);
1
+ (function($){$.fn.tinvwl_to_wishlist=function(so){var sd={api_url:window.location.href,text_create:window.tinvwl_add_to_wishlist['text_create'],text_already_in:window.tinvwl_add_to_wishlist['text_already_in'],class:{dialogbox:'.tinvwl_add_to_select_wishlist',select:'.tinvwl_wishlist',newtitle:'.tinvwl_new_input',dialogbutton:'.tinvwl_button_add'},redirectTimer:null,onPrepareList:function(){},onGetDialogBox:function(){},onPrepareDialogBox:function(){if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));} $(this).appendTo('body > .tinv-wishlist');},onCreateWishList:function(wishlist){$(this).append($('<option>').html(wishlist.title).attr('value',wishlist.ID).toggleClass('tinv_in_wishlist',wishlist.in));},onSelectWishList:function(){},onDialogShow:function(){$(this).addClass('tinv-modal-open');},onDialogHide:function(){$(this).removeClass('tinv-modal-open');},onInited:function(){},onClick:function(){if($(this).is('.disabled-add-wishlist')){return false;} if(this.tinvwl_dialog){this.tinvwl_dialog.show_list.call(this);}else{s.onActionProduct.call(this);}},onPrepareDataAction:function(){},filterProductAlreadyIn:function(WList){var WList=WList||[],data={};$('form.cart[method=post], .woocommerce-variation-add-to-cart').find('input, select').each(function(){var name_elm=$(this).attr('name'),type_elm=$(this).attr('type'),value_elm=$(this).val();if('checkbox'===type_elm||'radio'===type_elm){if($(this).is(':checked')){data['form'+name_elm]=value_elm;}}else{data['form'+name_elm]=value_elm;}});data=data['formvariation_id'];return WList.filter(function(wishlist){if('object'===typeof wishlist.in&&'string'===typeof data){var number=parseInt(data);return 0<=wishlist.in.indexOf(number);} return wishlist.in;});},onMultiProductAlreadyIn:function(WList){var WList=WList||[];WList=s.onPrepareList.call(WList)||WList;WList=s.filterProductAlreadyIn.call(this,WList)||WList;$(this).parent().parent().find('.already-in').remove();var text='';switch(WList.length){case 0:break;default:var text=$('<ul>');$.each(WList,function(k,wishlist){text.append($('<li>').html($('<a>').html(wishlist.title).attr({href:wishlist.url})).attr('value',wishlist.ID));});break;} if(text.length){$(this).closest('.tinv-modal-inner').find('img').after($('<div>').addClass('already-in').html(s.text_already_in+' ').append(text));}},onAction:{redirect:function(url){if(s.redirectTimer){clearTimeout(s.redirectTimer);} s.redirectTimer=window.setTimeout(function(){window.location.href=url;},4000);},wishlists:function(wishlist){$(this).attr('tinv-wl-list',wishlist);},msg:function(html){if(!html){return false;} var $msg=$(html).eq(0);if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));} $('body > .tinv-wishlist').append($msg);$msg.on('click','.tinv-close-modal, .tinvwl_button_close, .tinv-overlay',function(e){e.preventDefault();$msg.remove();if(s.redirectTimer){clearTimeout(s.redirectTimer);}});},status:function(status){if(status){$(this).addClass('tinvwl-product-in-list');}},removed:function(status){if(status){$(this).removeClass('tinvwl-product-in-list').removeClass('tinvwl-product-make-remove').attr('tinv-wl-action','addto');}},make_remove:function(status){$(this).toggleClass('tinvwl-product-make-remove',status).attr('tinv-wl-action',status?'remove':'addto');},top_wishlist_content:function(data){$('.widget_wishlist_content').html(data);},top_wishlist_counter:function(data){$('.wishlist_products_counter_number').html(data);}}};sd.onActionProduct=function(id,name){var data={form:{},tinv_wishlist_id:id||'',tinv_wishlist_name:name||'',product_type:$(this).attr('tinv-wl-producttype'),product_id:$(this).attr('tinv-wl-product')||0,product_variation:$(this).attr('tinv-wl-productvariation')||0,product_action:$(this).attr('tinv-wl-action')||'addto'},a=this;$('form.cart[method=post], .woocommerce-variation-add-to-cart').find('input, select, textarea').each(function(){var name_elm=$(this).attr('name'),type_elm=$(this).attr('type'),value_elm=$(this).val(),count=10,ti_merge_value=function(o1,o2){if('object'===typeof o2){if('undefined'===typeof o1){o1={};} for(var i in o2){if(''===i){var j=-1;for(j in o1){j=j;} j=parseInt(j)+1;o1[j]=ti_merge_value(o1[i],o2[i]);}else{o1[i]=ti_merge_value(o1[i],o2[i]);}} return o1;}else{return o2;}};while(/^(.+)\[([^\[\]]*?)\]$/.test(name_elm)&&0<count){var n_name=name_elm.match(/^(.+)\[([^\[\]]*?)\]$/);if(3===n_name.length){var _value_elm={};_value_elm[n_name[2]]=value_elm;value_elm=_value_elm;} name_elm=n_name[1];count--;} if('checkbox'===type_elm||'radio'===type_elm){if($(this).is(':checked')){if(!value_elm.length&&'object'!==typeof value_elm){value_elm=true;} data.form[name_elm]=ti_merge_value(data.form[name_elm],value_elm);}}else{data.form[name_elm]=ti_merge_value(data.form[name_elm],value_elm);}});data=s.onPrepareDataAction.call(a,data)||data;$.post(s.api_url,data,function(body){s.onDialogHide.call(a.tinvwl_dialog);if('object'===typeof body){for(var k in body){if('function'===typeof s.onAction[k]){s.onAction[k].call(a,body[k]);}}}else{if('function'===typeof s.onAction['msg']){s.onAction['msg'].call(a,body);}}});};var s=$.extend(true,{},sd,so);return $(this).each(function(){if(!$(this).attr('tinv-wl-list')){return false;} if(s.dialogbox){if(s.dialogbox.length){this.tinvwl_dialog=s.dialogbox;}} if(!this.tinvwl_dialog){this.tinvwl_dialog=s.onGetDialogBox.call(this);} if(!this.tinvwl_dialog){var _tinvwl_dialog=$(this).nextAll(s.class.dialogbox).eq(0);if(_tinvwl_dialog.length){this.tinvwl_dialog=_tinvwl_dialog;}} if(this.tinvwl_dialog){s.onPrepareDialogBox.call(this.tinvwl_dialog);if('function'!==typeof this.tinvwl_dialog.update_list){this.tinvwl_dialog.update_list=function(WL){var $select=$(this).find(s.class.select).eq(0);$(this).find(s.class.newtitle).hide().val('');$select.html('');$.each(WL,function(k,v){s.onCreateWishList.call($select,v);});if(s.text_create){s.onCreateWishList.call($select,{ID:'',title:s.text_create,in:false});} s.onMultiProductAlreadyIn.call($select,WL);s.onSelectWishList.call($select,WL);$(this).find(s.class.newtitle).toggle(''===$select.val());}} if('function'!==typeof this.tinvwl_dialog.show_list){this.tinvwl_dialog.show_list=function(){var WList=$.parseJSON($(this).attr('tinv-wl-list'))||[];if(WList.length){WList=s.onPrepareList.call(WList)||WList;this.tinvwl_dialog.update_list(WList);s.onDialogShow.call(this.tinvwl_dialog);}else{s.onActionProduct.call(this);}}} var a=this;$(this.tinvwl_dialog).find(s.class.dialogbutton).off('click').on('click',function(){var b=$(a.tinvwl_dialog).find(s.class.select),c=$(a.tinvwl_dialog).find(s.class.newtitle),d;if(b.val()||c.val()){s.onActionProduct.call(a,b.val(),c.val());}else{d=c.is(':visible')?c:b;d.addClass('empty-name-wishlist');window.setTimeout(function(){d.removeClass('empty-name-wishlist');},1000);}});} $(this).off('click').on('click',s.onClick);s.onInited.call(this,s);});};$(document).ready(function(){$('body').on('click','.tinvwl_add_to_wishlist_button',function(e){if($(this).is('.disabled-add-wishlist')){e.preventDefault();window.alert(tinvwl_add_to_wishlist.i18n_make_a_selection_text);return;} if($(this).is('.inited-add-wishlist')){return;} $(this).tinvwl_to_wishlist({onInited:function(s){$(this).addClass('inited-add-wishlist');s.onClick.call(this);}});});$('.tinvwl_move_product_button').tinvwl_to_wishlist({class:{dialogbox:'.tinvwl_wishlist_move',select:'.tinvwl_wishlist',newtitle:'.tinvwl_new_input',dialogbutton:'.tinvwl_button_move'},onPrepareDataAction:function(data){data.tinv_from_wishlist_id=$(this).attr('tinv-wl');data.tinv_to_wishlist_id=data.tinv_wishlist_id;if(!data.tinv_wishlist_name){data.tinv_wishlist_name='-';} delete data.tinv_wishlist_id;return data;},onPrepareList:function(){return this.filter(function(a){return!a.hide;});},onAction:{redirect:function(url){return window.location.href=url;}}});$('.global-cb').on('click',function(){$(this).closest('table').eq(0).find('.product-cb input[type=checkbox], .wishlist-cb input[type=checkbox]').prop('checked',$(this).is(':checked'))});});})(jQuery);(function($){$.fn.tinvwl_break_submit=function(so){var sd={selector:'input, select, textarea',ifempty:true,invert:false,validate:function(){return $(this).val();},rule:function(){var form_elements=$(this).parents('form').eq(0).find(s.selector),trigger=s.invert;if(0===form_elements.length){return s.ifempty;} form_elements.each(function(){if((trigger&&!s.invert)||(!trigger&&s.invert)){return;} trigger=Boolean(s.validate.call($(this)));});return trigger;}};var s=$.extend(true,{},sd,so);return $(this).each(function(){$(this).on('click',function(event){if(!s.rule.call($(this))){event.preventDefault();}});});};$(document).ready(function(){$('.tinvwl-break-input').tinvwl_break_submit({selector:'.tinvwl-break-input-filed'});$('.tinvwl-break-checkbox').tinvwl_break_submit({selector:'table td input[type=checkbox]',validate:function(){return $(this).is(':checked');}});});})(jQuery);(function($){$('.variations_form').each(function(){var c=$(this),e=c.find('.tinvwl_add_to_wishlist_button');if(e.length){c.on('hide_variation',function(a){a.preventDefault();e.addClass('disabled-add-wishlist');}).on('show_variation',function(a,b,d){var f=JSON.parse(e.attr('tinv-wl-list')),j=false,g='1'==window.tinvwl_add_to_wishlist['simple_flow'];for(var i in f){if(f[i].hasOwnProperty('in')&&Array.isArray(f[i]['in'])&&-1<(f[i]['in']||[]).indexOf(b.variation_id)){j=true;}} e.toggleClass('tinvwl-product-in-list',j).toggleClass('tinvwl-product-make-remove',(j&&g)).attr('tinv-wl-action',((j&&g)?'remove':'addto'));a.preventDefault();e.removeClass('disabled-add-wishlist');});}});})(jQuery);(function($){$(document).ready(function(){$.fn.tinvwl_modal=function(so){var sd={showClass:'tinv-modal-open',modal:'.tinv-modal',onPrepare:function(){if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));} $(this).appendTo('body > .tinv-wishlist');}},s=$.extend(true,{},sd,so);return $(this).each(function(){var a=$(this),b=a.next(s.modal);s.onPrepare.call(b);a.on('click',function(){b.addClass(s.showClass);});});};$('.tinv-modal-btn').tinvwl_modal({});$('#tinvwl_manage_actions, #tinvwl_product_actions').addClass('form-control').parent().wrapInner('<div class="input-group tinvwl-no-full">').find('button').wrap('<span class="input-group-btn">');$('.tinv-lists-nav').each(function(){if(!$.trim($(this).html()).length){$(this).remove();}});$('body').on('click','.social-buttons .social[title!=email]',function(e){var newWind=window.open($(this).attr('href'),$(this).attr('title'),"width=420,height=320,resizable=yes,scrollbars=yes,status=yes");if(newWind){newWind.focus();e.preventDefault();}});$('.tinvwl-select-all').on('click',function(e){e.preventDefault();$(this).parent().parent().find('ul li input[type="checkbox"]').attr('checked',true);});$('.tinvwl-select-none').on('click',function(e){e.preventDefault();$(this).parent().parent().find('ul li input[type="checkbox"]').attr('checked',false);});$('body').on('click','.tinv-wishlist .tinv-overlay, .tinv-wishlist .tinv-close-modal, .tinv-wishlist .tinvwl_button_close',function(e){e.preventDefault();$(this).parents('.tinv-modal:first').removeClass('tinv-modal-open');});$('body').on('click','.tinv-wishlist .tinvwl-btn-onclick',function(e){var url=$(this).data('url');if(url){e.preventDefault();window.location=$(this).data('url');}});var navigationButton=$('.tinv-wishlist .navigation-button');if(navigationButton.length){navigationButton.each(function(){var navigationButtons=$(this).find('> li');if(navigationButtons.length<5){navigationButtons.parent().addClass('tinvwl-btns-count-'+navigationButtons.length);}});} $('.tinv-login .showlogin').unbind("click").on('click',function(e){e.preventDefault();$(this).closest('.tinv-login').find('.login').toggle();});$('.tinv-wishlist table.tinvwl-table-manage-list tfoot td').each(function(){$(this).toggle(!!$(this).children().not('.look_in').length||!!$(this).children('.look_in').children().length);});})})(jQuery);
freemius/LICENSE.txt CHANGED
@@ -1,674 +1,674 @@
1
- GNU GENERAL PUBLIC LICENSE
2
- Version 3, 29 June 2007
3
-
4
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
- Everyone is permitted to copy and distribute verbatim copies
6
- of this license document, but changing it is not allowed.
7
-
8
- Preamble
9
-
10
- The GNU General Public License is a free, copyleft license for
11
- software and other kinds of works.
12
-
13
- The licenses for most software and other practical works are designed
14
- to take away your freedom to share and change the works. By contrast,
15
- the GNU General Public License is intended to guarantee your freedom to
16
- share and change all versions of a program--to make sure it remains free
17
- software for all its users. We, the Free Software Foundation, use the
18
- GNU General Public License for most of our software; it applies also to
19
- any other work released this way by its authors. You can apply it to
20
- your programs, too.
21
-
22
- When we speak of free software, we are referring to freedom, not
23
- price. Our General Public Licenses are designed to make sure that you
24
- have the freedom to distribute copies of free software (and charge for
25
- them if you wish), that you receive source code or can get it if you
26
- want it, that you can change the software or use pieces of it in new
27
- free programs, and that you know you can do these things.
28
-
29
- To protect your rights, we need to prevent others from denying you
30
- these rights or asking you to surrender the rights. Therefore, you have
31
- certain responsibilities if you distribute copies of the software, or if
32
- you modify it: responsibilities to respect the freedom of others.
33
-
34
- For example, if you distribute copies of such a program, whether
35
- gratis or for a fee, you must pass on to the recipients the same
36
- freedoms that you received. You must make sure that they, too, receive
37
- or can get the source code. And you must show them these terms so they
38
- know their rights.
39
-
40
- Developers that use the GNU GPL protect your rights with two steps:
41
- (1) assert copyright on the software, and (2) offer you this License
42
- giving you legal permission to copy, distribute and/or modify it.
43
-
44
- For the developers' and authors' protection, the GPL clearly explains
45
- that there is no warranty for this free software. For both users' and
46
- authors' sake, the GPL requires that modified versions be marked as
47
- changed, so that their problems will not be attributed erroneously to
48
- authors of previous versions.
49
-
50
- Some devices are designed to deny users access to install or run
51
- modified versions of the software inside them, although the manufacturer
52
- can do so. This is fundamentally incompatible with the aim of
53
- protecting users' freedom to change the software. The systematic
54
- pattern of such abuse occurs in the area of products for individuals to
55
- use, which is precisely where it is most unacceptable. Therefore, we
56
- have designed this version of the GPL to prohibit the practice for those
57
- products. If such problems arise substantially in other domains, we
58
- stand ready to extend this provision to those domains in future versions
59
- of the GPL, as needed to protect the freedom of users.
60
-
61
- Finally, every program is threatened constantly by software patents.
62
- States should not allow patents to restrict development and use of
63
- software on general-purpose computers, but in those that do, we wish to
64
- avoid the special danger that patents applied to a free program could
65
- make it effectively proprietary. To prevent this, the GPL assures that
66
- patents cannot be used to render the program non-free.
67
-
68
- The precise terms and conditions for copying, distribution and
69
- modification follow.
70
-
71
- TERMS AND CONDITIONS
72
-
73
- 0. Definitions.
74
-
75
- "This License" refers to version 3 of the GNU General Public License.
76
-
77
- "Copyright" also means copyright-like laws that apply to other kinds of
78
- works, such as semiconductor masks.
79
-
80
- "The Program" refers to any copyrightable work licensed under this
81
- License. Each licensee is addressed as "you". "Licensees" and
82
- "recipients" may be individuals or organizations.
83
-
84
- To "modify" a work means to copy from or adapt all or part of the work
85
- in a fashion requiring copyright permission, other than the making of an
86
- exact copy. The resulting work is called a "modified version" of the
87
- earlier work or a work "based on" the earlier work.
88
-
89
- A "covered work" means either the unmodified Program or a work based
90
- on the Program.
91
-
92
- To "propagate" a work means to do anything with it that, without
93
- permission, would make you directly or secondarily liable for
94
- infringement under applicable copyright law, except executing it on a
95
- computer or modifying a private copy. Propagation includes copying,
96
- distribution (with or without modification), making available to the
97
- public, and in some countries other activities as well.
98
-
99
- To "convey" a work means any kind of propagation that enables other
100
- parties to make or receive copies. Mere interaction with a user through
101
- a computer network, with no transfer of a copy, is not conveying.
102
-
103
- An interactive user interface displays "Appropriate Legal Notices"
104
- to the extent that it includes a convenient and prominently visible
105
- feature that (1) displays an appropriate copyright notice, and (2)
106
- tells the user that there is no warranty for the work (except to the
107
- extent that warranties are provided), that licensees may convey the
108
- work under this License, and how to view a copy of this License. If
109
- the interface presents a list of user commands or options, such as a
110
- menu, a prominent item in the list meets this criterion.
111
-
112
- 1. Source Code.
113
-
114
- The "source code" for a work means the preferred form of the work
115
- for making modifications to it. "Object code" means any non-source
116
- form of a work.
117
-
118
- A "Standard Interface" means an interface that either is an official
119
- standard defined by a recognized standards body, or, in the case of
120
- interfaces specified for a particular programming language, one that
121
- is widely used among developers working in that language.
122
-
123
- The "System Libraries" of an executable work include anything, other
124
- than the work as a whole, that (a) is included in the normal form of
125
- packaging a Major Component, but which is not part of that Major
126
- Component, and (b) serves only to enable use of the work with that
127
- Major Component, or to implement a Standard Interface for which an
128
- implementation is available to the public in source code form. A
129
- "Major Component", in this context, means a major essential component
130
- (kernel, window system, and so on) of the specific operating system
131
- (if any) on which the executable work runs, or a compiler used to
132
- produce the work, or an object code interpreter used to run it.
133
-
134
- The "Corresponding Source" for a work in object code form means all
135
- the source code needed to generate, install, and (for an executable
136
- work) run the object code and to modify the work, including scripts to
137
- control those activities. However, it does not include the work's
138
- System Libraries, or general-purpose tools or generally available free
139
- programs which are used unmodified in performing those activities but
140
- which are not part of the work. For example, Corresponding Source
141
- includes interface definition files associated with source files for
142
- the work, and the source code for shared libraries and dynamically
143
- linked subprograms that the work is specifically designed to require,
144
- such as by intimate data communication or control flow between those
145
- subprograms and other parts of the work.
146
-
147
- The Corresponding Source need not include anything that users
148
- can regenerate automatically from other parts of the Corresponding
149
- Source.
150
-
151
- The Corresponding Source for a work in source code form is that
152
- same work.
153
-
154
- 2. Basic Permissions.
155
-
156
- All rights granted under this License are granted for the term of
157
- copyright on the Program, and are irrevocable provided the stated
158
- conditions are met. This License explicitly affirms your unlimited
159
- permission to run the unmodified Program. The output from running a
160
- covered work is covered by this License only if the output, given its
161
- content, constitutes a covered work. This License acknowledges your
162
- rights of fair use or other equivalent, as provided by copyright law.
163
-
164
- You may make, run and propagate covered works that you do not
165
- convey, without conditions so long as your license otherwise remains
166
- in force. You may convey covered works to others for the sole purpose
167
- of having them make modifications exclusively for you, or provide you
168
- with facilities for running those works, provided that you comply with
169
- the terms of this License in conveying all material for which you do
170
- not control copyright. Those thus making or running the covered works
171
- for you must do so exclusively on your behalf, under your direction
172
- and control, on terms that prohibit them from making any copies of
173
- your copyrighted material outside their relationship with you.
174
-
175
- Conveying under any other circumstances is permitted solely under
176
- the conditions stated below. Sublicensing is not allowed; section 10
177
- makes it unnecessary.
178
-
179
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
-
181
- No covered work shall be deemed part of an effective technological
182
- measure under any applicable law fulfilling obligations under article
183
- 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
- similar laws prohibiting or restricting circumvention of such
185
- measures.
186
-
187
- When you convey a covered work, you waive any legal power to forbid
188
- circumvention of technological measures to the extent such circumvention
189
- is effected by exercising rights under this License with respect to
190
- the covered work, and you disclaim any intention to limit operation or
191
- modification of the work as a means of enforcing, against the work's
192
- users, your or third parties' legal rights to forbid circumvention of
193
- technological measures.
194
-
195
- 4. Conveying Verbatim Copies.
196
-
197
- You may convey verbatim copies of the Program's source code as you
198
- receive it, in any medium, provided that you conspicuously and
199
- appropriately publish on each copy an appropriate copyright notice;
200
- keep intact all notices stating that this License and any
201
- non-permissive terms added in accord with section 7 apply to the code;
202
- keep intact all notices of the absence of any warranty; and give all
203
- recipients a copy of this License along with the Program.
204
-
205
- You may charge any price or no price for each copy that you convey,
206
- and you may offer support or warranty protection for a fee.
207
-
208
- 5. Conveying Modified Source Versions.
209
-
210
- You may convey a work based on the Program, or the modifications to
211
- produce it from the Program, in the form of source code under the
212
- terms of section 4, provided that you also meet all of these conditions:
213
-
214
- a) The work must carry prominent notices stating that you modified
215
- it, and giving a relevant date.
216
-
217
- b) The work must carry prominent notices stating that it is
218
- released under this License and any conditions added under section
219
- 7. This requirement modifies the requirement in section 4 to
220
- "keep intact all notices".
221
-
222
- c) You must license the entire work, as a whole, under this
223
- License to anyone who comes into possession of a copy. This
224
- License will therefore apply, along with any applicable section 7
225
- additional terms, to the whole of the work, and all its parts,
226
- regardless of how they are packaged. This License gives no
227
- permission to license the work in any other way, but it does not
228
- invalidate such permission if you have separately received it.
229
-
230
- d) If the work has interactive user interfaces, each must display
231
- Appropriate Legal Notices; however, if the Program has interactive
232
- interfaces that do not display Appropriate Legal Notices, your
233
- work need not make them do so.
234
-
235
- A compilation of a covered work with other separate and independent
236
- works, which are not by their nature extensions of the covered work,
237
- and which are not combined with it such as to form a larger program,
238
- in or on a volume of a storage or distribution medium, is called an
239
- "aggregate" if the compilation and its resulting copyright are not
240
- used to limit the access or legal rights of the compilation's users
241
- beyond what the individual works permit. Inclusion of a covered work
242
- in an aggregate does not cause this License to apply to the other
243
- parts of the aggregate.
244
-
245
- 6. Conveying Non-Source Forms.
246
-
247
- You may convey a covered work in object code form under the terms
248
- of sections 4 and 5, provided that you also convey the
249
- machine-readable Corresponding Source under the terms of this License,
250
- in one of these ways:
251
-
252
- a) Convey the object code in, or embodied in, a physical product
253
- (including a physical distribution medium), accompanied by the
254
- Corresponding Source fixed on a durable physical medium
255
- customarily used for software interchange.
256
-
257
- b) Convey the object code in, or embodied in, a physical product
258
- (including a physical distribution medium), accompanied by a
259
- written offer, valid for at least three years and valid for as
260
- long as you offer spare parts or customer support for that product
261
- model, to give anyone who possesses the object code either (1) a
262
- copy of the Corresponding Source for all the software in the
263
- product that is covered by this License, on a durable physical
264
- medium customarily used for software interchange, for a price no
265
- more than your reasonable cost of physically performing this
266
- conveying of source, or (2) access to copy the
267
- Corresponding Source from a network server at no charge.
268
-
269
- c) Convey individual copies of the object code with a copy of the
270
- written offer to provide the Corresponding Source. This
271
- alternative is allowed only occasionally and noncommercially, and
272
- only if you received the object code with such an offer, in accord
273
- with subsection 6b.
274
-
275
- d) Convey the object code by offering access from a designated
276
- place (gratis or for a charge), and offer equivalent access to the
277
- Corresponding Source in the same way through the same place at no
278
- further charge. You need not require recipients to copy the
279
- Corresponding Source along with the object code. If the place to
280
- copy the object code is a network server, the Corresponding Source
281
- may be on a different server (operated by you or a third party)
282
- that supports equivalent copying facilities, provided you maintain
283
- clear directions next to the object code saying where to find the
284
- Corresponding Source. Regardless of what server hosts the
285
- Corresponding Source, you remain obligated to ensure that it is
286
- available for as long as needed to satisfy these requirements.
287
-
288
- e) Convey the object code using peer-to-peer transmission, provided
289
- you inform other peers where the object code and Corresponding
290
- Source of the work are being offered to the general public at no
291
- charge under subsection 6d.
292
-
293
- A separable portion of the object code, whose source code is excluded
294
- from the Corresponding Source as a System Library, need not be
295
- included in conveying the object code work.
296
-
297
- A "User Product" is either (1) a "consumer product", which means any
298
- tangible personal property which is normally used for personal, family,
299
- or household purposes, or (2) anything designed or sold for incorporation
300
- into a dwelling. In determining whether a product is a consumer product,
301
- doubtful cases shall be resolved in favor of coverage. For a particular
302
- product received by a particular user, "normally used" refers to a
303
- typical or common use of that class of product, regardless of the status
304
- of the particular user or of the way in which the particular user
305
- actually uses, or expects or is expected to use, the product. A product
306
- is a consumer product regardless of whether the product has substantial
307
- commercial, industrial or non-consumer uses, unless such uses represent
308
- the only significant mode of use of the product.
309
-
310
- "Installation Information" for a User Product means any methods,
311
- procedures, authorization keys, or other information required to install
312
- and execute modified versions of a covered work in that User Product from
313
- a modified version of its Corresponding Source. The information must
314
- suffice to ensure that the continued functioning of the modified object
315
- code is in no case prevented or interfered with solely because
316
- modification has been made.
317
-
318
- If you convey an object code work under this section in, or with, or
319
- specifically for use in, a User Product, and the conveying occurs as
320
- part of a transaction in which the right of possession and use of the
321
- User Product is transferred to the recipient in perpetuity or for a
322
- fixed term (regardless of how the transaction is characterized), the
323
- Corresponding Source conveyed under this section must be accompanied
324
- by the Installation Information. But this requirement does not apply
325
- if neither you nor any third party retains the ability to install
326
- modified object code on the User Product (for example, the work has
327
- been installed in ROM).
328
-
329
- The requirement to provide Installation Information does not include a
330
- requirement to continue to provide support service, warranty, or updates
331
- for a work that has been modified or installed by the recipient, or for
332
- the User Product in which it has been modified or installed. Access to a
333
- network may be denied when the modification itself materially and
334
- adversely affects the operation of the network or violates the rules and
335
- protocols for communication across the network.
336
-
337
- Corresponding Source conveyed, and Installation Information provided,
338
- in accord with this section must be in a format that is publicly
339
- documented (and with an implementation available to the public in
340
- source code form), and must require no special password or key for
341
- unpacking, reading or copying.
342
-
343
- 7. Additional Terms.
344
-
345
- "Additional permissions" are terms that supplement the terms of this
346
- License by making exceptions from one or more of its conditions.
347
- Additional permissions that are applicable to the entire Program shall
348
- be treated as though they were included in this License, to the extent
349
- that they are valid under applicable law. If additional permissions
350
- apply only to part of the Program, that part may be used separately
351
- under those permissions, but the entire Program remains governed by
352
- this License without regard to the additional permissions.
353
-
354
- When you convey a copy of a covered work, you may at your option
355
- remove any additional permissions from that copy, or from any part of
356
- it. (Additional permissions may be written to require their own
357
- removal in certain cases when you modify the work.) You may place
358
- additional permissions on material, added by you to a covered work,
359
- for which you have or can give appropriate copyright permission.
360
-
361
- Notwithstanding any other provision of this License, for material you
362
- add to a covered work, you may (if authorized by the copyright holders of
363
- that material) supplement the terms of this License with terms:
364
-
365
- a) Disclaiming warranty or limiting liability differently from the
366
- terms of sections 15 and 16 of this License; or
367
-
368
- b) Requiring preservation of specified reasonable legal notices or
369
- author attributions in that material or in the Appropriate Legal
370
- Notices displayed by works containing it; or
371
-
372
- c) Prohibiting misrepresentation of the origin of that material, or
373
- requiring that modified versions of such material be marked in
374
- reasonable ways as different from the original version; or
375
-
376
- d) Limiting the use for publicity purposes of names of licensors or
377
- authors of the material; or
378
-
379
- e) Declining to grant rights under trademark law for use of some
380
- trade names, trademarks, or service marks; or
381
-
382
- f) Requiring indemnification of licensors and authors of that
383
- material by anyone who conveys the material (or modified versions of
384
- it) with contractual assumptions of liability to the recipient, for
385
- any liability that these contractual assumptions directly impose on
386
- those licensors and authors.
387
-
388
- All other non-permissive additional terms are considered "further
389
- restrictions" within the meaning of section 10. If the Program as you
390
- received it, or any part of it, contains a notice stating that it is
391
- governed by this License along with a term that is a further
392
- restriction, you may remove that term. If a license document contains
393
- a further restriction but permits relicensing or conveying under this
394
- License, you may add to a covered work material governed by the terms
395
- of that license document, provided that the further restriction does
396
- not survive such relicensing or conveying.
397
-
398
- If you add terms to a covered work in accord with this section, you
399
- must place, in the relevant source files, a statement of the
400
- additional terms that apply to those files, or a notice indicating
401
- where to find the applicable terms.
402
-
403
- Additional terms, permissive or non-permissive, may be stated in the
404
- form of a separately written license, or stated as exceptions;
405
- the above requirements apply either way.
406
-
407
- 8. Termination.
408
-
409
- You may not propagate or modify a covered work except as expressly
410
- provided under this License. Any attempt otherwise to propagate or
411
- modify it is void, and will automatically terminate your rights under
412
- this License (including any patent licenses granted under the third
413
- paragraph of section 11).
414
-
415
- However, if you cease all violation of this License, then your
416
- license from a particular copyright holder is reinstated (a)
417
- provisionally, unless and until the copyright holder explicitly and
418
- finally terminates your license, and (b) permanently, if the copyright
419
- holder fails to notify you of the violation by some reasonable means
420
- prior to 60 days after the cessation.
421
-
422
- Moreover, your license from a particular copyright holder is
423
- reinstated permanently if the copyright holder notifies you of the
424
- violation by some reasonable means, this is the first time you have
425
- received notice of violation of this License (for any work) from that
426
- copyright holder, and you cure the violation prior to 30 days after
427
- your receipt of the notice.
428
-
429
- Termination of your rights under this section does not terminate the
430
- licenses of parties who have received copies or rights from you under
431
- this License. If your rights have been terminated and not permanently
432
- reinstated, you do not qualify to receive new licenses for the same
433
- material under section 10.
434
-
435
- 9. Acceptance Not Required for Having Copies.
436
-
437
- You are not required to accept this License in order to receive or
438
- run a copy of the Program. Ancillary propagation of a covered work
439
- occurring solely as a consequence of using peer-to-peer transmission
440
- to receive a copy likewise does not require acceptance. However,
441
- nothing other than this License grants you permission to propagate or
442
- modify any covered work. These actions infringe copyright if you do
443
- not accept this License. Therefore, by modifying or propagating a
444
- covered work, you indicate your acceptance of this License to do so.
445
-
446
- 10. Automatic Licensing of Downstream Recipients.
447
-
448
- Each time you convey a covered work, the recipient automatically
449
- receives a license from the original licensors, to run, modify and
450
- propagate that work, subject to this License. You are not responsible
451
- for enforcing compliance by third parties with this License.
452
-
453
- An "entity transaction" is a transaction transferring control of an
454
- organization, or substantially all assets of one, or subdividing an
455
- organization, or merging organizations. If propagation of a covered
456
- work results from an entity transaction, each party to that
457
- transaction who receives a copy of the work also receives whatever
458
- licenses to the work the party's predecessor in interest had or could
459
- give under the previous paragraph, plus a right to possession of the
460
- Corresponding Source of the work from the predecessor in interest, if
461
- the predecessor has it or can get it with reasonable efforts.
462
-
463
- You may not impose any further restrictions on the exercise of the
464
- rights granted or affirmed under this License. For example, you may
465
- not impose a license fee, royalty, or other charge for exercise of
466
- rights granted under this License, and you may not initiate litigation
467
- (including a cross-claim or counterclaim in a lawsuit) alleging that
468
- any patent claim is infringed by making, using, selling, offering for
469
- sale, or importing the Program or any portion of it.
470
-
471
- 11. Patents.
472
-
473
- A "contributor" is a copyright holder who authorizes use under this
474
- License of the Program or a work on which the Program is based. The
475
- work thus licensed is called the contributor's "contributor version".
476
-
477
- A contributor's "essential patent claims" are all patent claims
478
- owned or controlled by the contributor, whether already acquired or
479
- hereafter acquired, that would be infringed by some manner, permitted
480
- by this License, of making, using, or selling its contributor version,
481
- but do not include claims that would be infringed only as a
482
- consequence of further modification of the contributor version. For
483
- purposes of this definition, "control" includes the right to grant
484
- patent sublicenses in a manner consistent with the requirements of
485
- this License.
486
-
487
- Each contributor grants you a non-exclusive, worldwide, royalty-free
488
- patent license under the contributor's essential patent claims, to
489
- make, use, sell, offer for sale, import and otherwise run, modify and
490
- propagate the contents of its contributor version.
491
-
492
- In the following three paragraphs, a "patent license" is any express
493
- agreement or commitment, however denominated, not to enforce a patent
494
- (such as an express permission to practice a patent or covenant not to
495
- sue for patent infringement). To "grant" such a patent license to a
496
- party means to make such an agreement or commitment not to enforce a
497
- patent against the party.
498
-
499
- If you convey a covered work, knowingly relying on a patent license,
500
- and the Corresponding Source of the work is not available for anyone
501
- to copy, free of charge and under the terms of this License, through a
502
- publicly available network server or other readily accessible means,
503
- then you must either (1) cause the Corresponding Source to be so
504
- available, or (2) arrange to deprive yourself of the benefit of the
505
- patent license for this particular work, or (3) arrange, in a manner
506
- consistent with the requirements of this License, to extend the patent
507
- license to downstream recipients. "Knowingly relying" means you have
508
- actual knowledge that, but for the patent license, your conveying the
509
- covered work in a country, or your recipient's use of the covered work
510
- in a country, would infringe one or more identifiable patents in that
511
- country that you have reason to believe are valid.
512
-
513
- If, pursuant to or in connection with a single transaction or
514
- arrangement, you convey, or propagate by procuring conveyance of, a
515
- covered work, and grant a patent license to some of the parties
516
- receiving the covered work authorizing them to use, propagate, modify
517
- or convey a specific copy of the covered work, then the patent license
518
- you grant is automatically extended to all recipients of the covered
519
- work and works based on it.
520
-
521
- A patent license is "discriminatory" if it does not include within
522
- the scope of its coverage, prohibits the exercise of, or is
523
- conditioned on the non-exercise of one or more of the rights that are
524
- specifically granted under this License. You may not convey a covered
525
- work if you are a party to an arrangement with a third party that is
526
- in the business of distributing software, under which you make payment
527
- to the third party based on the extent of your activity of conveying
528
- the work, and under which the third party grants, to any of the
529
- parties who would receive the covered work from you, a discriminatory
530
- patent license (a) in connection with copies of the covered work
531
- conveyed by you (or copies made from those copies), or (b) primarily
532
- for and in connection with specific products or compilations that
533
- contain the covered work, unless you entered into that arrangement,
534
- or that patent license was granted, prior to 28 March 2007.
535
-
536
- Nothing in this License shall be construed as excluding or limiting
537
- any implied license or other defenses to infringement that may
538
- otherwise be available to you under applicable patent law.
539
-
540
- 12. No Surrender of Others' Freedom.
541
-
542
- If conditions are imposed on you (whether by court order, agreement or
543
- otherwise) that contradict the conditions of this License, they do not
544
- excuse you from the conditions of this License. If you cannot convey a
545
- covered work so as to satisfy simultaneously your obligations under this
546
- License and any other pertinent obligations, then as a consequence you may
547
- not convey it at all. For example, if you agree to terms that obligate you
548
- to collect a royalty for further conveying from those to whom you convey
549
- the Program, the only way you could satisfy both those terms and this
550
- License would be to refrain entirely from conveying the Program.
551
-
552
- 13. Use with the GNU Affero General Public License.
553
-
554
- Notwithstanding any other provision of this License, you have
555
- permission to link or combine any covered work with a work licensed
556
- under version 3 of the GNU Affero General Public License into a single
557
- combined work, and to convey the resulting work. The terms of this
558
- License will continue to apply to the part which is the covered work,
559
- but the special requirements of the GNU Affero General Public License,
560
- section 13, concerning interaction through a network will apply to the
561
- combination as such.
562
-
563
- 14. Revised Versions of this License.
564
-
565
- The Free Software Foundation may publish revised and/or new versions of
566
- the GNU General Public License from time to time. Such new versions will
567
- be similar in spirit to the present version, but may differ in detail to
568
- address new problems or concerns.
569
-
570
- Each version is given a distinguishing version number. If the
571
- Program specifies that a certain numbered version of the GNU General
572
- Public License "or any later version" applies to it, you have the
573
- option of following the terms and conditions either of that numbered
574
- version or of any later version published by the Free Software
575
- Foundation. If the Program does not specify a version number of the
576
- GNU General Public License, you may choose any version ever published
577
- by the Free Software Foundation.
578
-
579
- If the Program specifies that a proxy can decide which future
580
- versions of the GNU General Public License can be used, that proxy's
581
- public statement of acceptance of a version permanently authorizes you
582
- to choose that version for the Program.
583
-
584
- Later license versions may give you additional or different
585
- permissions. However, no additional obligations are imposed on any
586
- author or copyright holder as a result of your choosing to follow a
587
- later version.
588
-
589
- 15. Disclaimer of Warranty.
590
-
591
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
- APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
- HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
- OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
- PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
- IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
- ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
-
600
- 16. Limitation of Liability.
601
-
602
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
- WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
- THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
- GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
- USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
- DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
- PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
- EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
- SUCH DAMAGES.
611
-
612
- 17. Interpretation of Sections 15 and 16.
613
-
614
- If the disclaimer of warranty and limitation of liability provided
615
- above cannot be given local legal effect according to their terms,
616
- reviewing courts shall apply local law that most closely approximates
617
- an absolute waiver of all civil liability in connection with the
618
- Program, unless a warranty or assumption of liability accompanies a
619
- copy of the Program in return for a fee.
620
-
621
- END OF TERMS AND CONDITIONS
622
-
623
- How to Apply These Terms to Your New Programs
624
-
625
- If you develop a new program, and you want it to be of the greatest
626
- possible use to the public, the best way to achieve this is to make it
627
- free software which everyone can redistribute and change under these terms.
628
-
629
- To do so, attach the following notices to the program. It is safest
630
- to attach them to the start of each source file to most effectively
631
- state the exclusion of warranty; and each file should have at least
632
- the "copyright" line and a pointer to where the full notice is found.
633
-
634
- {one line to give the program's name and a brief idea of what it does.}
635
- Copyright (C) {year} {name of author}
636
-
637
- This program is free software: you can redistribute it and/or modify
638
- it under the terms of the GNU General Public License as published by
639
- the Free Software Foundation, either version 3 of the License, or
640
- (at your option) any later version.
641
-
642
- This program is distributed in the hope that it will be useful,
643
- but WITHOUT ANY WARRANTY; without even the implied warranty of
644
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645
- GNU General Public License for more details.
646
-
647
- You should have received a copy of the GNU General Public License
648
- along with this program. If not, see <http://www.gnu.org/licenses/>.
649
-
650
- Also add information on how to contact you by electronic and paper mail.
651
-
652
- If the program does terminal interaction, make it output a short
653
- notice like this when it starts in an interactive mode:
654
-
655
- {project} Copyright (C) {year} {fullname}
656
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
- This is free software, and you are welcome to redistribute it
658
- under certain conditions; type `show c' for details.
659
-
660
- The hypothetical commands `show w' and `show c' should show the appropriate
661
- parts of the General Public License. Of course, your program's commands
662
- might be different; for a GUI interface, you would use an "about box".
663
-
664
- You should also get your employer (if you work as a programmer) or school,
665
- if any, to sign a "copyright disclaimer" for the program, if necessary.
666
- For more information on this, and how to apply and follow the GNU GPL, see
667
- <http://www.gnu.org/licenses/>.
668
-
669
- The GNU General Public License does not permit incorporating your program
670
- into proprietary programs. If your program is a subroutine library, you
671
- may consider it more useful to permit linking proprietary applications with
672
- the library. If this is what you want to do, use the GNU Lesser General
673
- Public License instead of this License. But first, please read
674
  <http://www.gnu.org/philosophy/why-not-lgpl.html>.
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU General Public License is a free, copyleft license for
11
+ software and other kinds of works.
12
+
13
+ The licenses for most software and other practical works are designed
14
+ to take away your freedom to share and change the works. By contrast,
15
+ the GNU General Public License is intended to guarantee your freedom to
16
+ share and change all versions of a program--to make sure it remains free
17
+ software for all its users. We, the Free Software Foundation, use the
18
+ GNU General Public License for most of our software; it applies also to
19
+ any other work released this way by its authors. You can apply it to
20
+ your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not
23
+ price. Our General Public Licenses are designed to make sure that you
24
+ have the freedom to distribute copies of free software (and charge for
25
+ them if you wish), that you receive source code or can get it if you
26
+ want it, that you can change the software or use pieces of it in new
27
+ free programs, and that you know you can do these things.
28
+
29
+ To protect your rights, we need to prevent others from denying you
30
+ these rights or asking you to surrender the rights. Therefore, you have
31
+ certain responsibilities if you distribute copies of the software, or if
32
+ you modify it: responsibilities to respect the freedom of others.
33
+
34
+ For example, if you distribute copies of such a program, whether
35
+ gratis or for a fee, you must pass on to the recipients the same
36
+ freedoms that you received. You must make sure that they, too, receive
37
+ or can get the source code. And you must show them these terms so they
38
+ know their rights.
39
+
40
+ Developers that use the GNU GPL protect your rights with two steps:
41
+ (1) assert copyright on the software, and (2) offer you this License
42
+ giving you legal permission to copy, distribute and/or modify it.
43
+
44
+ For the developers' and authors' protection, the GPL clearly explains
45
+ that there is no warranty for this free software. For both users' and
46
+ authors' sake, the GPL requires that modified versions be marked as
47
+ changed, so that their problems will not be attributed erroneously to
48
+ authors of previous versions.
49
+
50
+ Some devices are designed to deny users access to install or run
51
+ modified versions of the software inside them, although the manufacturer
52
+ can do so. This is fundamentally incompatible with the aim of
53
+ protecting users' freedom to change the software. The systematic
54
+ pattern of such abuse occurs in the area of products for individuals to
55
+ use, which is precisely where it is most unacceptable. Therefore, we
56
+ have designed this version of the GPL to prohibit the practice for those
57
+ products. If such problems arise substantially in other domains, we
58
+ stand ready to extend this provision to those domains in future versions
59
+ of the GPL, as needed to protect the freedom of users.
60
+
61
+ Finally, every program is threatened constantly by software patents.
62
+ States should not allow patents to restrict development and use of
63
+ software on general-purpose computers, but in those that do, we wish to
64
+ avoid the special danger that patents applied to a free program could
65
+ make it effectively proprietary. To prevent this, the GPL assures that
66
+ patents cannot be used to render the program non-free.
67
+
68
+ The precise terms and conditions for copying, distribution and
69
+ modification follow.
70
+
71
+ TERMS AND CONDITIONS
72
+
73
+ 0. Definitions.
74
+
75
+ "This License" refers to version 3 of the GNU General Public License.
76
+
77
+ "Copyright" also means copyright-like laws that apply to other kinds of
78
+ works, such as semiconductor masks.
79
+
80
+ "The Program" refers to any copyrightable work licensed under this
81
+ License. Each licensee is addressed as "you". "Licensees" and
82
+ "recipients" may be individuals or organizations.
83
+
84
+ To "modify" a work means to copy from or adapt all or part of the work
85
+ in a fashion requiring copyright permission, other than the making of an
86
+ exact copy. The resulting work is called a "modified version" of the
87
+ earlier work or a work "based on" the earlier work.
88
+
89
+ A "covered work" means either the unmodified Program or a work based
90
+ on the Program.
91
+
92
+ To "propagate" a work means to do anything with it that, without
93
+ permission, would make you directly or secondarily liable for
94
+ infringement under applicable copyright law, except executing it on a
95
+ computer or modifying a private copy. Propagation includes copying,
96
+ distribution (with or without modification), making available to the
97
+ public, and in some countries other activities as well.
98
+
99
+ To "convey" a work means any kind of propagation that enables other
100
+ parties to make or receive copies. Mere interaction with a user through
101
+ a computer network, with no transfer of a copy, is not conveying.
102
+
103
+ An interactive user interface displays "Appropriate Legal Notices"
104
+ to the extent that it includes a convenient and prominently visible
105
+ feature that (1) displays an appropriate copyright notice, and (2)
106
+ tells the user that there is no warranty for the work (except to the
107
+ extent that warranties are provided), that licensees may convey the
108
+ work under this License, and how to view a copy of this License. If
109
+ the interface presents a list of user commands or options, such as a
110
+ menu, a prominent item in the list meets this criterion.
111
+
112
+ 1. Source Code.
113
+
114
+ The "source code" for a work means the preferred form of the work
115
+ for making modifications to it. "Object code" means any non-source
116
+ form of a work.
117
+
118
+ A "Standard Interface" means an interface that either is an official
119
+ standard defined by a recognized standards body, or, in the case of
120
+ interfaces specified for a particular programming language, one that
121
+ is widely used among developers working in that language.
122
+
123
+ The "System Libraries" of an executable work include anything, other
124
+ than the work as a whole, that (a) is included in the normal form of
125
+ packaging a Major Component, but which is not part of that Major
126
+ Component, and (b) serves only to enable use of the work with that
127
+ Major Component, or to implement a Standard Interface for which an
128
+ implementation is available to the public in source code form. A
129
+ "Major Component", in this context, means a major essential component
130
+ (kernel, window system, and so on) of the specific operating system
131
+ (if any) on which the executable work runs, or a compiler used to
132
+ produce the work, or an object code interpreter used to run it.
133
+
134
+ The "Corresponding Source" for a work in object code form means all
135
+ the source code needed to generate, install, and (for an executable
136
+ work) run the object code and to modify the work, including scripts to
137
+ control those activities. However, it does not include the work's
138
+ System Libraries, or general-purpose tools or generally available free
139
+ programs which are used unmodified in performing those activities but
140
+ which are not part of the work. For example, Corresponding Source
141
+ includes interface definition files associated with source files for
142
+ the work, and the source code for shared libraries and dynamically
143
+ linked subprograms that the work is specifically designed to require,
144
+ such as by intimate data communication or control flow between those
145
+ subprograms and other parts of the work.
146
+
147
+ The Corresponding Source need not include anything that users
148
+ can regenerate automatically from other parts of the Corresponding
149
+ Source.
150
+
151
+ The Corresponding Source for a work in source code form is that
152
+ same work.
153
+
154
+ 2. Basic Permissions.
155
+
156
+ All rights granted under this License are granted for the term of
157
+ copyright on the Program, and are irrevocable provided the stated
158
+ conditions are met. This License explicitly affirms your unlimited
159
+ permission to run the unmodified Program. The output from running a
160
+ covered work is covered by this License only if the output, given its
161
+ content, constitutes a covered work. This License acknowledges your
162
+ rights of fair use or other equivalent, as provided by copyright law.
163
+
164
+ You may make, run and propagate covered works that you do not
165
+ convey, without conditions so long as your license otherwise remains
166
+ in force. You may convey covered works to others for the sole purpose
167
+ of having them make modifications exclusively for you, or provide you
168
+ with facilities for running those works, provided that you comply with
169
+ the terms of this License in conveying all material for which you do
170
+ not control copyright. Those thus making or running the covered works
171
+ for you must do so exclusively on your behalf, under your direction
172
+ and control, on terms that prohibit them from making any copies of
173
+ your copyrighted material outside their relationship with you.
174
+
175
+ Conveying under any other circumstances is permitted solely under
176
+ the conditions stated below. Sublicensing is not allowed; section 10
177
+ makes it unnecessary.
178
+
179
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+ No covered work shall be deemed part of an effective technological
182
+ measure under any applicable law fulfilling obligations under article
183
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
+ similar laws prohibiting or restricting circumvention of such
185
+ measures.
186
+
187
+ When you convey a covered work, you waive any legal power to forbid
188
+ circumvention of technological measures to the extent such circumvention
189
+ is effected by exercising rights under this License with respect to
190
+ the covered work, and you disclaim any intention to limit operation or
191
+ modification of the work as a means of enforcing, against the work's
192
+ users, your or third parties' legal rights to forbid circumvention of
193
+ technological measures.
194
+
195
+ 4. Conveying Verbatim Copies.
196
+
197
+ You may convey verbatim copies of the Program's source code as you
198
+ receive it, in any medium, provided that you conspicuously and
199
+ appropriately publish on each copy an appropriate copyright notice;
200
+ keep intact all notices stating that this License and any
201
+ non-permissive terms added in accord with section 7 apply to the code;
202
+ keep intact all notices of the absence of any warranty; and give all
203
+ recipients a copy of this License along with the Program.
204
+
205
+ You may charge any price or no price for each copy that you convey,
206
+ and you may offer support or warranty protection for a fee.
207
+
208
+ 5. Conveying Modified Source Versions.
209
+
210
+ You may convey a work based on the Program, or the modifications to
211
+ produce it from the Program, in the form of source code under the
212
+ terms of section 4, provided that you also meet all of these conditions:
213
+
214
+ a) The work must carry prominent notices stating that you modified
215
+ it, and giving a relevant date.
216
+
217
+ b) The work must carry prominent notices stating that it is
218
+ released under this License and any conditions added under section
219
+ 7. This requirement modifies the requirement in section 4 to
220
+ "keep intact all notices".
221
+
222
+ c) You must license the entire work, as a whole, under this
223
+ License to anyone who comes into possession of a copy. This
224
+ License will therefore apply, along with any applicable section 7
225
+ additional terms, to the whole of the work, and all its parts,
226
+ regardless of how they are packaged. This License gives no
227
+ permission to license the work in any other way, but it does not
228
+ invalidate such permission if you have separately received it.
229
+
230
+ d) If the work has interactive user interfaces, each must display
231
+ Appropriate Legal Notices; however, if the Program has interactive
232
+ interfaces that do not display Appropriate Legal Notices, your
233
+ work need not make them do so.
234
+
235
+ A compilation of a covered work with other separate and independent
236
+ works, which are not by their nature extensions of the covered work,
237
+ and which are not combined with it such as to form a larger program,
238
+ in or on a volume of a storage or distribution medium, is called an
239
+ "aggregate" if the compilation and its resulting copyright are not
240
+ used to limit the access or legal rights of the compilation's users
241
+ beyond what the individual works permit. Inclusion of a covered work
242
+ in an aggregate does not cause this License to apply to the other
243
+ parts of the aggregate.
244
+
245
+ 6. Conveying Non-Source Forms.
246
+
247
+ You may convey a covered work in object code form under the terms
248
+ of sections 4 and 5, provided that you also convey the
249
+ machine-readable Corresponding Source under the terms of this License,
250
+ in one of these ways:
251
+
252
+ a) Convey the object code in, or embodied in, a physical product
253
+ (including a physical distribution medium), accompanied by the
254
+ Corresponding Source fixed on a durable physical medium
255
+ customarily used for software interchange.
256
+
257
+ b) Convey the object code in, or embodied in, a physical product
258
+ (including a physical distribution medium), accompanied by a
259
+ written offer, valid for at least three years and valid for as
260
+ long as you offer spare parts or customer support for that product
261
+ model, to give anyone who possesses the object code either (1) a
262
+ copy of the Corresponding Source for all the software in the
263
+ product that is covered by this License, on a durable physical
264
+ medium customarily used for software interchange, for a price no
265
+ more than your reasonable cost of physically performing this
266
+ conveying of source, or (2) access to copy the
267
+ Corresponding Source from a network server at no charge.
268
+
269
+ c) Convey individual copies of the object code with a copy of the
270
+ written offer to provide the Corresponding Source. This
271
+ alternative is allowed only occasionally and noncommercially, and
272
+ only if you received the object code with such an offer, in accord
273
+ with subsection 6b.
274
+
275
+ d) Convey the object code by offering access from a designated
276
+ place (gratis or for a charge), and offer equivalent access to the
277
+ Corresponding Source in the same way through the same place at no
278
+ further charge. You need not require recipients to copy the
279
+ Corresponding Source along with the object code. If the place to
280
+ copy the object code is a network server, the Corresponding Source
281
+ may be on a different server (operated by you or a third party)
282
+ that supports equivalent copying facilities, provided you maintain
283
+ clear directions next to the object code saying where to find the
284
+ Corresponding Source. Regardless of what server hosts the
285
+ Corresponding Source, you remain obligated to ensure that it is
286
+ available for as long as needed to satisfy these requirements.
287
+
288
+ e) Convey the object code using peer-to-peer transmission, provided
289
+ you inform other peers where the object code and Corresponding
290
+ Source of the work are being offered to the general public at no
291
+ charge under subsection 6d.
292
+
293
+ A separable portion of the object code, whose source code is excluded
294
+ from the Corresponding Source as a System Library, need not be
295
+ included in conveying the object code work.
296
+
297
+ A "User Product" is either (1) a "consumer product", which means any
298
+ tangible personal property which is normally used for personal, family,
299
+ or household purposes, or (2) anything designed or sold for incorporation
300
+ into a dwelling. In determining whether a product is a consumer product,
301
+ doubtful cases shall be resolved in favor of coverage. For a particular
302
+ product received by a particular user, "normally used" refers to a
303
+ typical or common use of that class of product, regardless of the status
304
+ of the particular user or of the way in which the particular user
305
+ actually uses, or expects or is expected to use, the product. A product
306
+ is a consumer product regardless of whether the product has substantial
307
+ commercial, industrial or non-consumer uses, unless such uses represent
308
+ the only significant mode of use of the product.
309
+
310
+ "Installation Information" for a User Product means any methods,
311
+ procedures, authorization keys, or other information required to install
312
+ and execute modified versions of a covered work in that User Product from
313
+ a modified version of its Corresponding Source. The information must
314
+ suffice to ensure that the continued functioning of the modified object
315
+ code is in no case prevented or interfered with solely because
316
+ modification has been made.
317
+
318
+ If you convey an object code work under this section in, or with, or
319
+ specifically for use in, a User Product, and the conveying occurs as
320
+ part of a transaction in which the right of possession and use of the
321
+ User Product is transferred to the recipient in perpetuity or for a
322
+ fixed term (regardless of how the transaction is characterized), the
323
+ Corresponding Source conveyed under this section must be accompanied
324
+ by the Installation Information. But this requirement does not apply
325
+ if neither you nor any third party retains the ability to install
326
+ modified object code on the User Product (for example, the work has
327
+ been installed in ROM).
328
+
329
+ The requirement to provide Installation Information does not include a
330
+ requirement to continue to provide support service, warranty, or updates
331
+ for a work that has been modified or installed by the recipient, or for
332
+ the User Product in which it has been modified or installed. Access to a
333
+ network may be denied when the modification itself materially and
334
+ adversely affects the operation of the network or violates the rules and
335
+ protocols for communication across the network.
336
+
337
+ Corresponding Source conveyed, and Installation Information provided,
338
+ in accord with this section must be in a format that is publicly
339
+ documented (and with an implementation available to the public in
340
+ source code form), and must require no special password or key for
341
+ unpacking, reading or copying.
342
+
343
+ 7. Additional Terms.
344
+
345
+ "Additional permissions" are terms that supplement the terms of this
346
+ License by making exceptions from one or more of its conditions.
347
+ Additional permissions that are applicable to the entire Program shall
348
+ be treated as though they were included in this License, to the extent
349
+ that they are valid under applicable law. If additional permissions
350
+ apply only to part of the Program, that part may be used separately
351
+ under those permissions, but the entire Program remains governed by
352
+ this License without regard to the additional permissions.
353
+
354
+ When you convey a copy of a covered work, you may at your option
355
+ remove any additional permissions from that copy, or from any part of
356
+ it. (Additional permissions may be written to require their own
357
+ removal in certain cases when you modify the work.) You may place
358
+ additional permissions on material, added by you to a covered work,
359
+ for which you have or can give appropriate copyright permission.
360
+
361
+ Notwithstanding any other provision of this License, for material you
362
+ add to a covered work, you may (if authorized by the copyright holders of
363
+ that material) supplement the terms of this License with terms:
364
+
365
+ a) Disclaiming warranty or limiting liability differently from the
366
+ terms of sections 15 and 16 of this License; or
367
+
368
+ b) Requiring preservation of specified reasonable legal notices or
369
+ author attributions in that material or in the Appropriate Legal
370
+ Notices displayed by works containing it; or
371
+
372
+ c) Prohibiting misrepresentation of the origin of that material, or
373
+ requiring that modified versions of such material be marked in
374
+ reasonable ways as different from the original version; or
375
+
376
+ d) Limiting the use for publicity purposes of names of licensors or
377
+ authors of the material; or
378
+
379
+ e) Declining to grant rights under trademark law for use of some
380
+ trade names, trademarks, or service marks; or
381
+
382
+ f) Requiring indemnification of licensors and authors of that
383
+ material by anyone who conveys the material (or modified versions of
384
+ it) with contractual assumptions of liability to the recipient, for
385
+ any liability that these contractual assumptions directly impose on
386
+ those licensors and authors.
387
+
388
+ All other non-permissive additional terms are considered "further
389
+ restrictions" within the meaning of section 10. If the Program as you
390
+ received it, or any part of it, contains a notice stating that it is
391
+ governed by this License along with a term that is a further
392
+ restriction, you may remove that term. If a license document contains
393
+ a further restriction but permits relicensing or conveying under this
394
+ License, you may add to a covered work material governed by the terms
395
+ of that license document, provided that the further restriction does
396
+ not survive such relicensing or conveying.
397
+
398
+ If you add terms to a covered work in accord with this section, you
399
+ must place, in the relevant source files, a statement of the
400
+ additional terms that apply to those files, or a notice indicating
401
+ where to find the applicable terms.
402
+
403
+ Additional terms, permissive or non-permissive, may be stated in the
404
+ form of a separately written license, or stated as exceptions;
405
+ the above requirements apply either way.
406
+
407
+ 8. Termination.
408
+
409
+ You may not propagate or modify a covered work except as expressly
410
+ provided under this License. Any attempt otherwise to propagate or
411
+ modify it is void, and will automatically terminate your rights under
412
+ this License (including any patent licenses granted under the third
413
+ paragraph of section 11).
414
+
415
+ However, if you cease all violation of this License, then your
416
+ license from a particular copyright holder is reinstated (a)
417
+ provisionally, unless and until the copyright holder explicitly and
418
+ finally terminates your license, and (b) permanently, if the copyright
419
+ holder fails to notify you of the violation by some reasonable means
420
+ prior to 60 days after the cessation.
421
+
422
+ Moreover, your license from a particular copyright holder is
423
+ reinstated permanently if the copyright holder notifies you of the
424
+ violation by some reasonable means, this is the first time you have
425
+ received notice of violation of this License (for any work) from that
426
+ copyright holder, and you cure the violation prior to 30 days after
427
+ your receipt of the notice.
428
+
429
+ Termination of your rights under this section does not terminate the
430
+ licenses of parties who have received copies or rights from you under
431
+ this License. If your rights have been terminated and not permanently
432
+ reinstated, you do not qualify to receive new licenses for the same
433
+ material under section 10.
434
+
435
+ 9. Acceptance Not Required for Having Copies.
436
+
437
+ You are not required to accept this License in order to receive or
438
+ run a copy of the Program. Ancillary propagation of a covered work
439
+ occurring solely as a consequence of using peer-to-peer transmission
440
+ to receive a copy likewise does not require acceptance. However,
441
+ nothing other than this License grants you permission to propagate or
442
+ modify any covered work. These actions infringe copyright if you do
443
+ not accept this License. Therefore, by modifying or propagating a
444
+ covered work, you indicate your acceptance of this License to do so.
445
+
446
+ 10. Automatic Licensing of Downstream Recipients.
447
+
448
+ Each time you convey a covered work, the recipient automatically
449
+ receives a license from the original licensors, to run, modify and
450
+ propagate that work, subject to this License. You are not responsible
451
+ for enforcing compliance by third parties with this License.
452
+
453
+ An "entity transaction" is a transaction transferring control of an
454
+ organization, or substantially all assets of one, or subdividing an
455
+ organization, or merging organizations. If propagation of a covered
456
+ work results from an entity transaction, each party to that
457
+ transaction who receives a copy of the work also receives whatever
458
+ licenses to the work the party's predecessor in interest had or could
459
+ give under the previous paragraph, plus a right to possession of the
460
+ Corresponding Source of the work from the predecessor in interest, if
461
+ the predecessor has it or can get it with reasonable efforts.
462
+
463
+ You may not impose any further restrictions on the exercise of the
464
+ rights granted or affirmed under this License. For example, you may
465
+ not impose a license fee, royalty, or other charge for exercise of
466
+ rights granted under this License, and you may not initiate litigation
467
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
468
+ any patent claim is infringed by making, using, selling, offering for
469
+ sale, or importing the Program or any portion of it.
470
+
471
+ 11. Patents.
472
+
473
+ A "contributor" is a copyright holder who authorizes use under this
474
+ License of the Program or a work on which the Program is based. The
475
+ work thus licensed is called the contributor's "contributor version".
476
+
477
+ A contributor's "essential patent claims" are all patent claims
478
+ owned or controlled by the contributor, whether already acquired or
479
+ hereafter acquired, that would be infringed by some manner, permitted
480
+ by this License, of making, using, or selling its contributor version,
481
+ but do not include claims that would be infringed only as a
482
+ consequence of further modification of the contributor version. For
483
+ purposes of this definition, "control" includes the right to grant
484
+ patent sublicenses in a manner consistent with the requirements of
485
+ this License.
486
+
487
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
488
+ patent license under the contributor's essential patent claims, to
489
+ make, use, sell, offer for sale, import and otherwise run, modify and
490
+ propagate the contents of its contributor version.
491
+
492
+ In the following three paragraphs, a "patent license" is any express
493
+ agreement or commitment, however denominated, not to enforce a patent
494
+ (such as an express permission to practice a patent or covenant not to
495
+ sue for patent infringement). To "grant" such a patent license to a
496
+ party means to make such an agreement or commitment not to enforce a
497
+ patent against the party.
498
+
499
+ If you convey a covered work, knowingly relying on a patent license,
500
+ and the Corresponding Source of the work is not available for anyone
501
+ to copy, free of charge and under the terms of this License, through a
502
+ publicly available network server or other readily accessible means,
503
+ then you must either (1) cause the Corresponding Source to be so
504
+ available, or (2) arrange to deprive yourself of the benefit of the
505
+ patent license for this particular work, or (3) arrange, in a manner
506
+ consistent with the requirements of this License, to extend the patent
507
+ license to downstream recipients. "Knowingly relying" means you have
508
+ actual knowledge that, but for the patent license, your conveying the
509
+ covered work in a country, or your recipient's use of the covered work
510
+ in a country, would infringe one or more identifiable patents in that
511
+ country that you have reason to believe are valid.
512
+
513
+ If, pursuant to or in connection with a single transaction or
514
+ arrangement, you convey, or propagate by procuring conveyance of, a
515
+ covered work, and grant a patent license to some of the parties
516
+ receiving the covered work authorizing them to use, propagate, modify
517
+ or convey a specific copy of the covered work, then the patent license
518
+ you grant is automatically extended to all recipients of the covered
519
+ work and works based on it.
520
+
521
+ A patent license is "discriminatory" if it does not include within
522
+ the scope of its coverage, prohibits the exercise of, or is
523
+ conditioned on the non-exercise of one or more of the rights that are
524
+ specifically granted under this License. You may not convey a covered
525
+ work if you are a party to an arrangement with a third party that is
526
+ in the business of distributing software, under which you make payment
527
+ to the third party based on the extent of your activity of conveying
528
+ the work, and under which the third party grants, to any of the
529
+ parties who would receive the covered work from you, a discriminatory
530
+ patent license (a) in connection with copies of the covered work
531
+ conveyed by you (or copies made from those copies), or (b) primarily
532
+ for and in connection with specific products or compilations that
533
+ contain the covered work, unless you entered into that arrangement,
534
+ or that patent license was granted, prior to 28 March 2007.
535
+
536
+ Nothing in this License shall be construed as excluding or limiting
537
+ any implied license or other defenses to infringement that may
538
+ otherwise be available to you under applicable patent law.
539
+
540
+ 12. No Surrender of Others' Freedom.
541
+
542
+ If conditions are imposed on you (whether by court order, agreement or
543
+ otherwise) that contradict the conditions of this License, they do not
544
+ excuse you from the conditions of this License. If you cannot convey a
545
+ covered work so as to satisfy simultaneously your obligations under this
546
+ License and any other pertinent obligations, then as a consequence you may
547
+ not convey it at all. For example, if you agree to terms that obligate you
548
+ to collect a royalty for further conveying from those to whom you convey
549
+ the Program, the only way you could satisfy both those terms and this
550
+ License would be to refrain entirely from conveying the Program.
551
+
552
+ 13. Use with the GNU Affero General Public License.
553
+
554
+ Notwithstanding any other provision of this License, you have
555
+ permission to link or combine any covered work with a work licensed
556
+ under version 3 of the GNU Affero General Public License into a single
557
+ combined work, and to convey the resulting work. The terms of this
558
+ License will continue to apply to the part which is the covered work,
559
+ but the special requirements of the GNU Affero General Public License,
560
+ section 13, concerning interaction through a network will apply to the
561
+ combination as such.
562
+
563
+ 14. Revised Versions of this License.
564
+
565
+ The Free Software Foundation may publish revised and/or new versions of
566
+ the GNU General Public License from time to time. Such new versions will
567
+ be similar in spirit to the present version, but may differ in detail to
568
+ address new problems or concerns.
569
+
570
+ Each version is given a distinguishing version number. If the
571
+ Program specifies that a certain numbered version of the GNU General
572
+ Public License "or any later version" applies to it, you have the
573
+ option of following the terms and conditions either of that numbered
574
+ version or of any later version published by the Free Software
575
+ Foundation. If the Program does not specify a version number of the
576
+ GNU General Public License, you may choose any version ever published
577
+ by the Free Software Foundation.
578
+
579
+ If the Program specifies that a proxy can decide which future
580
+ versions of the GNU General Public License can be used, that proxy's
581
+ public statement of acceptance of a version permanently authorizes you
582
+ to choose that version for the Program.
583
+
584
+ Later license versions may give you additional or different
585
+ permissions. However, no additional obligations are imposed on any
586
+ author or copyright holder as a result of your choosing to follow a
587
+ later version.
588
+
589
+ 15. Disclaimer of Warranty.
590
+
591
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
+
600
+ 16. Limitation of Liability.
601
+
602
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
+ SUCH DAMAGES.
611
+
612
+ 17. Interpretation of Sections 15 and 16.
613
+
614
+ If the disclaimer of warranty and limitation of liability provided
615
+ above cannot be given local legal effect according to their terms,
616
+ reviewing courts shall apply local law that most closely approximates
617
+ an absolute waiver of all civil liability in connection with the
618
+ Program, unless a warranty or assumption of liability accompanies a
619
+ copy of the Program in return for a fee.
620
+
621
+ END OF TERMS AND CONDITIONS
622
+
623
+ How to Apply These Terms to Your New Programs
624
+
625
+ If you develop a new program, and you want it to be of the greatest
626
+ possible use to the public, the best way to achieve this is to make it
627
+ free software which everyone can redistribute and change under these terms.
628
+
629
+ To do so, attach the following notices to the program. It is safest
630
+ to attach them to the start of each source file to most effectively
631
+ state the exclusion of warranty; and each file should have at least
632
+ the "copyright" line and a pointer to where the full notice is found.
633
+
634
+ {one line to give the program's name and a brief idea of what it does.}
635
+ Copyright (C) {year} {name of author}
636
+
637
+ This program is free software: you can redistribute it and/or modify
638
+ it under the terms of the GNU General Public License as published by
639
+ the Free Software Foundation, either version 3 of the License, or
640
+ (at your option) any later version.
641
+
642
+ This program is distributed in the hope that it will be useful,
643
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
644
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645
+ GNU General Public License for more details.
646
+
647
+ You should have received a copy of the GNU General Public License
648
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
649
+
650
+ Also add information on how to contact you by electronic and paper mail.
651
+
652
+ If the program does terminal interaction, make it output a short
653
+ notice like this when it starts in an interactive mode:
654
+
655
+ {project} Copyright (C) {year} {fullname}
656
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
+ This is free software, and you are welcome to redistribute it
658
+ under certain conditions; type `show c' for details.
659
+
660
+ The hypothetical commands `show w' and `show c' should show the appropriate
661
+ parts of the General Public License. Of course, your program's commands
662
+ might be different; for a GUI interface, you would use an "about box".
663
+
664
+ You should also get your employer (if you work as a programmer) or school,
665
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
666
+ For more information on this, and how to apply and follow the GNU GPL, see
667
+ <http://www.gnu.org/licenses/>.
668
+
669
+ The GNU General Public License does not permit incorporating your program
670
+ into proprietary programs. If your program is a subroutine library, you
671
+ may consider it more useful to permit linking proprietary applications with
672
+ the library. If this is what you want to do, use the GNU Lesser General
673
+ Public License instead of this License. But first, please read
674
  <http://www.gnu.org/philosophy/why-not-lgpl.html>.
freemius/README.md CHANGED
@@ -1,253 +1,253 @@
1
- Freemius WordPress SDK
2
- ======================
3
-
4
- [Monetization](https://freemius.com/wordpress/), [analytics](https://freemius.com/wordpress/insights/), and marketing automation platform for plugin & theme developers. Freemius empower developers to create prosperous subscription based businesses.
5
-
6
- You can see some of the WordPress.org plugins & themes that are utilizing the power of Freemius here:
7
-
8
- https://includewp.com/freemius/#focus
9
-
10
- If you are a WordPress plugin or theme developer and you are interested to monetize with Freemius you can [sign-up here for free](https://dashboard.freemius.com/register/):
11
-
12
- https://dashboard.freemius.com/register/
13
-
14
- **Below you'll find the integration instructions for our WordPress SDK.**
15
-
16
- ## Code Documentation
17
-
18
- You can find the SDK's PHP-Doc documentation here:
19
- https://codedoc.pub/freemius/wordpress-sdk/master/
20
-
21
- ## Initializing the SDK
22
-
23
- Copy the code below and paste it into the top of your main plugin's PHP file, right after the plugin's header comment:
24
-
25
- ```php
26
- <?php
27
- // Create a helper function for easy SDK access.
28
- function my_prefix_fs() {
29
- global $my_prefix_fs;
30
- if ( ! isset( $my_prefix_fs ) ) {
31
- // Include Freemius SDK.
32
- require_once dirname(__FILE__) . '/freemius/start.php';
33
-
34
- $my_prefix_fs = fs_dynamic_init( array(
35
- 'id' => '1234',
36
- 'slug' => 'my-plugin-slug',
37
- 'menu_slug' => 'my_menu_slug', // You can also use __FILE__
38
- 'public_key' => 'pk_MY_PUBLIC_KEY',
39
- 'is_live' => true,
40
- 'is_premium' => true,
41
- 'has_addons' => false,
42
- 'has_paid_plans' => false,
43
- // Set the SDK to work in a sandbox mode (for development & testing).
44
- // IMPORTANT: MAKE SURE TO REMOVE SECRET KEY BEFORE DEPLOYMENT.
45
- 'secret_key' => 'sk_MY_SECRET_KEY',
46
- ) );
47
- }
48
-
49
- return $my_prefix_fs;
50
- }
51
-
52
- // Init Freemius.
53
- my_prefix_fs();
54
- ?>
55
- ```
56
-
57
- - **1234** - Replace with your plugin's ID.
58
- - **pk_MY_PUBLIC_KEY** - Replace with your plugin's public key.
59
- - **sk_MY_SECRET_KEY** - Replace with your plugin's secret key.
60
- - **my-plugin-slug** - Replace with your plugin's WordPress.org slug.
61
- - **my_menu_slug** - Replace with your admin dashboard settings menu slug.
62
-
63
-
64
- ## Usage example
65
-
66
- You can call the SDK by using the shortcode function:
67
-
68
- ```php
69
- <?php my_prefix_fs()->get_upgrade_url(); ?>
70
- ```
71
-
72
- Or when calling Freemius multiple times in a scope, it's recommended to use it with the global variable:
73
-
74
- ```php
75
- <?php
76
- global $my_prefix_fs;
77
- $my_prefix_fs->get_account_url();
78
- ?>
79
- ```
80
-
81
- ## Adding license based logic examples
82
-
83
- Add marketing content to encourage your users to upgrade for your paid version:
84
-
85
- ```php
86
- <?php
87
- if ( my_prefix_fs()->is_not_paying() ) {
88
- echo '<section><h1>' . esc_html__('Awesome Premium Features', 'my-plugin-slug') . '</h1>';
89
- echo '<a href="' . my_prefix_fs()->get_upgrade_url() . '">' .
90
- esc_html__('Upgrade Now!', 'my-plugin-slug') .
91
- '</a>';
92
- echo '</section>';
93
- }
94
- ?>
95
- ```
96
-
97
- Add logic which will only be available in your premium plugin version:
98
-
99
- ```php
100
- <?php
101
- // This "if" block will be auto removed from the Free version.
102
- if ( my_prefix_fs()->is__premium_only() ) {
103
-
104
- // ... premium only logic ...
105
-
106
- }
107
- ?>
108
- ```
109
-
110
- To add a function which will only be available in your premium plugin version, simply add __premium_only as the suffix of the function name. Just make sure that all lines that call that method directly or by hooks, are also wrapped in premium only logic:
111
-
112
- ```php
113
- <?php
114
- class My_Plugin {
115
- function init() {
116
- ...
117
-
118
- // This "if" block will be auto removed from the free version.
119
- if ( my_prefix_fs()->is__premium_only() ) {
120
- // Init premium version.
121
- $this->admin_init__premium_only();
122
-
123
- add_action( 'admin_init', array( &$this, 'admin_init_hook__premium_only' );
124
- }
125
-
126
- ...
127
- }
128
-
129
- // This method will be only included in the premium version.
130
- function admin_init__premium_only() {
131
- ...
132
- }
133
-
134
- // This method will be only included in the premium version.
135
- function admin_init_hook__premium_only() {
136
- ...
137
- }
138
- }
139
- ?>
140
- ```
141
-
142
- Add logic which will only be executed for customers in your 'professional' plan:
143
-
144
- ```php
145
- <?php
146
- if ( my_prefix_fs()->is_plan('professional', true) ) {
147
- // .. logic related to Professional plan only ...
148
- }
149
- ?>
150
- ```
151
-
152
- Add logic which will only be executed for customers in your 'professional' plan or higher plans:
153
-
154
- ```php
155
- <?php
156
- if ( my_prefix_fs()->is_plan('professional') ) {
157
- // ... logic related to Professional plan and higher plans ...
158
- }
159
- ?>
160
- ```
161
-
162
- Add logic which will only be available in your premium plugin version AND will only be executed for customers in your 'professional' plan (and higher plans):
163
-
164
- ```php
165
- <?php
166
- // This "if" block will be auto removed from the Free version.
167
- if ( my_prefix_fs()->is_plan__premium_only('professional') ) {
168
- // ... logic related to Professional plan and higher plans ...
169
- }
170
- ?>
171
- ```
172
-
173
- Add logic only for users in trial:
174
-
175
- ```php
176
- <?php
177
- if ( my_prefix_fs()->is_trial() ) {
178
- // ... logic for users in trial ...
179
- }
180
- ?>
181
- ```
182
-
183
- Add logic for specified paid plan:
184
-
185
- ```php
186
- <?php
187
- // This "if" block will be auto removed from the Free version.
188
- if ( my_prefix_fs()->is__premium_only() ) {
189
- if ( my_prefix_fs()->is_plan( 'professional', true ) ) {
190
-
191
- // ... logic related to Professional plan only ...
192
-
193
- } else if ( my_prefix_fs()->is_plan( 'business' ) ) {
194
-
195
- // ... logic related to Business plan and higher plans ...
196
-
197
- }
198
- }
199
- ?>
200
- ```
201
-
202
- ## Excluding files and folders from the free plugin version
203
- There are two ways to exclude files from your free version.
204
-
205
- 1. Add `__premium_only` just before the file extension. For example, functions__premium_only.php will be only included in the premium plugin version. This works for all type of files, not only PHP.
206
- 2. Add `@fs_premium_only` a sepcial meta tag to the plugin's main PHP file header. Example:
207
- ```php
208
- <?php
209
- /**
210
- * Plugin Name: My Very Awesome Plugin
211
- * Plugin URI: http://my-awesome-plugin.com
212
- * Description: Create and manage Awesomeness right in WordPress.
213
- * Version: 1.0.0
214
- * Author: Awesomattic
215
- * Author URI: http://my-awesome-plugin.com/me/
216
- * License: GPLv2
217
- * Text Domain: myplugin
218
- * Domain Path: /langs
219
- *
220
- * @fs_premium_only /lib/functions.php, /premium-files/
221
- */
222
-
223
- if ( ! defined( 'ABSPATH' ) ) {
224
- exit;
225
- }
226
-
227
- // ... my code ...
228
- ?>
229
- ```
230
- The file `/lib/functions.php` and the directory `/premium-files/` will be removed from the free plugin version.
231
-
232
- # WordPress.org Compliance
233
- Based on [WordPress.org Guidelines](https://wordpress.org/plugins/about/guidelines/) you are not allowed to submit a plugin that has premium code in it:
234
- > All code hosted by WordPress.org servers must be free and fully-functional. If you want to sell advanced features for a plugin (such as a "pro" version), then you must sell and serve that code from your own site, we will not host it on our servers.
235
-
236
- Therefore, if you want to deploy your free plugin's version to WordPress.org, make sure you wrap all your premium code with `if ( my_prefix_fs()->{{ method }}__premium_only() )` or the other methods provided to exclude premium features & files from the free version.
237
-
238
- ## Deployment
239
- Zip your plugin's root folder and upload it in the Deployment section in the *Freemius Developer's Dashboard*.
240
- The plugin will be scanned and processed by a custom developed *PHP Processor* which will auto-generate two versions of your plugin:
241
-
242
- 1. **Premium version**: Identical to your uploaded version, including all code (except your `secret_key`). Will be enabled for download ONLY for your paying or in trial customers.
243
- 2. **Free version**: The code stripped from all your paid features (based on the logic added wrapped in `{ method }__premium_only()`).
244
-
245
- The free version is the one that you should give your users to download. Therefore, download the free generated version and upload to your site. Or, if your plugin was WordPress.org complaint and you made sure to exclude all your premium code with the different provided techniques, you can deploy the downloaded free version to the .org repo.
246
-
247
- ## Reporting Bugs
248
- Email dev [at] freemius [dot] com
249
-
250
- ## FAQ
251
-
252
- ## Copyright
253
- Freemius, Inc.
1
+ Freemius WordPress SDK
2
+ ======================
3
+
4
+ [Monetization](https://freemius.com/wordpress/), [analytics](https://freemius.com/wordpress/insights/), and marketing automation platform for plugin & theme developers. Freemius empower developers to create prosperous subscription based businesses.
5
+
6
+ You can see some of the WordPress.org plugins & themes that are utilizing the power of Freemius here:
7
+
8
+ https://includewp.com/freemius/#focus
9
+
10
+ If you are a WordPress plugin or theme developer and you are interested to monetize with Freemius you can [sign-up here for free](https://dashboard.freemius.com/register/):
11
+
12
+ https://dashboard.freemius.com/register/
13
+
14
+ **Below you'll find the integration instructions for our WordPress SDK.**
15
+
16
+ ## Code Documentation
17
+
18
+ You can find the SDK's PHP-Doc documentation here:
19
+ https://codedoc.pub/freemius/wordpress-sdk/master/
20
+
21
+ ## Initializing the SDK
22
+
23
+ Copy the code below and paste it into the top of your main plugin's PHP file, right after the plugin's header comment:
24
+
25
+ ```php
26
+ <?php
27
+ // Create a helper function for easy SDK access.
28
+ function my_prefix_fs() {
29
+ global $my_prefix_fs;
30
+ if ( ! isset( $my_prefix_fs ) ) {
31
+ // Include Freemius SDK.
32
+ require_once dirname(__FILE__) . '/freemius/start.php';
33
+
34
+ $my_prefix_fs = fs_dynamic_init( array(
35
+ 'id' => '1234',
36
+ 'slug' => 'my-plugin-slug',
37
+ 'menu_slug' => 'my_menu_slug', // You can also use __FILE__
38
+ 'public_key' => 'pk_MY_PUBLIC_KEY',
39
+ 'is_live' => true,
40
+ 'is_premium' => true,
41
+ 'has_addons' => false,
42
+ 'has_paid_plans' => false,
43
+ // Set the SDK to work in a sandbox mode (for development & testing).
44
+ // IMPORTANT: MAKE SURE TO REMOVE SECRET KEY BEFORE DEPLOYMENT.
45
+ 'secret_key' => 'sk_MY_SECRET_KEY',
46
+ ) );
47
+ }
48
+
49
+ return $my_prefix_fs;
50
+ }
51
+
52
+ // Init Freemius.
53
+ my_prefix_fs();
54
+ ?>
55
+ ```
56
+
57
+ - **1234** - Replace with your plugin's ID.
58
+ - **pk_MY_PUBLIC_KEY** - Replace with your plugin's public key.
59
+ - **sk_MY_SECRET_KEY** - Replace with your plugin's secret key.
60
+ - **my-plugin-slug** - Replace with your plugin's WordPress.org slug.
61
+ - **my_menu_slug** - Replace with your admin dashboard settings menu slug.
62
+
63
+
64
+ ## Usage example
65
+
66
+ You can call the SDK by using the shortcode function:
67
+
68
+ ```php
69
+ <?php my_prefix_fs()->get_upgrade_url(); ?>
70
+ ```
71
+
72
+ Or when calling Freemius multiple times in a scope, it's recommended to use it with the global variable:
73
+
74
+ ```php
75
+ <?php
76
+ global $my_prefix_fs;
77
+ $my_prefix_fs->get_account_url();
78
+ ?>
79
+ ```
80
+
81
+ ## Adding license based logic examples
82
+
83
+ Add marketing content to encourage your users to upgrade for your paid version:
84
+
85
+ ```php
86
+ <?php
87
+ if ( my_prefix_fs()->is_not_paying() ) {
88
+ echo '<section><h1>' . esc_html__('Awesome Premium Features', 'my-plugin-slug') . '</h1>';
89
+ echo '<a href="' . my_prefix_fs()->get_upgrade_url() . '">' .
90
+ esc_html__('Upgrade Now!', 'my-plugin-slug') .
91
+ '</a>';
92
+ echo '</section>';
93
+ }
94
+ ?>
95
+ ```
96
+
97
+ Add logic which will only be available in your premium plugin version:
98
+
99
+ ```php
100
+ <?php
101
+ // This "if" block will be auto removed from the Free version.
102
+ if ( my_prefix_fs()->is__premium_only() ) {
103
+
104
+ // ... premium only logic ...
105
+
106
+ }
107
+ ?>
108
+ ```
109
+
110
+ To add a function which will only be available in your premium plugin version, simply add __premium_only as the suffix of the function name. Just make sure that all lines that call that method directly or by hooks, are also wrapped in premium only logic:
111
+
112
+ ```php
113
+ <?php
114
+ class My_Plugin {
115
+ function init() {
116
+ ...
117
+
118
+ // This "if" block will be auto removed from the free version.
119
+ if ( my_prefix_fs()->is__premium_only() ) {
120
+ // Init premium version.
121
+ $this->admin_init__premium_only();
122
+
123
+ add_action( 'admin_init', array( &$this, 'admin_init_hook__premium_only' );
124
+ }
125
+
126
+ ...
127
+ }
128
+
129
+ // This method will be only included in the premium version.
130
+ function admin_init__premium_only() {
131
+ ...
132
+ }
133
+
134
+ // This method will be only included in the premium version.
135
+ function admin_init_hook__premium_only() {
136
+ ...
137
+ }
138
+ }
139
+ ?>
140
+ ```
141
+
142
+ Add logic which will only be executed for customers in your 'professional' plan:
143
+
144
+ ```php
145
+ <?php
146
+ if ( my_prefix_fs()->is_plan('professional', true) ) {
147
+ // .. logic related to Professional plan only ...
148
+ }
149
+ ?>
150
+ ```
151
+
152
+ Add logic which will only be executed for customers in your 'professional' plan or higher plans:
153
+
154
+ ```php
155
+ <?php
156
+ if ( my_prefix_fs()->is_plan('professional') ) {
157
+ // ... logic related to Professional plan and higher plans ...
158
+ }
159
+ ?>
160
+ ```
161
+
162
+ Add logic which will only be available in your premium plugin version AND will only be executed for customers in your 'professional' plan (and higher plans):
163
+
164
+ ```php
165
+ <?php
166
+ // This "if" block will be auto removed from the Free version.
167
+ if ( my_prefix_fs()->is_plan__premium_only('professional') ) {
168
+ // ... logic related to Professional plan and higher plans ...
169
+ }
170
+ ?>
171
+ ```
172
+
173
+ Add logic only for users in trial:
174
+
175
+ ```php
176
+ <?php
177
+ if ( my_prefix_fs()->is_trial() ) {
178
+ // ... logic for users in trial ...
179
+ }
180
+ ?>
181
+ ```
182
+
183
+ Add logic for specified paid plan:
184
+
185
+ ```php
186
+ <?php
187
+ // This "if" block will be auto removed from the Free version.
188
+ if ( my_prefix_fs()->is__premium_only() ) {
189
+ if ( my_prefix_fs()->is_plan( 'professional', true ) ) {
190
+
191
+ // ... logic related to Professional plan only ...
192
+
193
+ } else if ( my_prefix_fs()->is_plan( 'business' ) ) {
194
+
195
+ // ... logic related to Business plan and higher plans ...
196
+
197
+ }
198
+ }
199
+ ?>
200
+ ```
201
+
202
+ ## Excluding files and folders from the free plugin version
203
+ There are two ways to exclude files from your free version.
204
+
205
+ 1. Add `__premium_only` just before the file extension. For example, functions__premium_only.php will be only included in the premium plugin version. This works for all type of files, not only PHP.
206
+ 2. Add `@fs_premium_only` a sepcial meta tag to the plugin's main PHP file header. Example:
207
+ ```php
208
+ <?php
209
+ /**
210
+ * Plugin Name: My Very Awesome Plugin
211
+ * Plugin URI: http://my-awesome-plugin.com
212
+ * Description: Create and manage Awesomeness right in WordPress.
213
+ * Version: 1.0.0
214
+ * Author: Awesomattic
215
+ * Author URI: http://my-awesome-plugin.com/me/
216
+ * License: GPLv2
217
+ * Text Domain: myplugin
218
+ * Domain Path: /langs
219
+ *
220
+ * @fs_premium_only /lib/functions.php, /premium-files/
221
+ */
222
+
223
+ if ( ! defined( 'ABSPATH' ) ) {
224
+ exit;
225
+ }
226
+
227
+ // ... my code ...
228
+ ?>
229
+ ```
230
+ The file `/lib/functions.php` and the directory `/premium-files/` will be removed from the free plugin version.
231
+
232
+ # WordPress.org Compliance
233
+ Based on [WordPress.org Guidelines](https://wordpress.org/plugins/about/guidelines/) you are not allowed to submit a plugin that has premium code in it:
234
+ > All code hosted by WordPress.org servers must be free and fully-functional. If you want to sell advanced features for a plugin (such as a "pro" version), then you must sell and serve that code from your own site, we will not host it on our servers.
235
+
236
+ Therefore, if you want to deploy your free plugin's version to WordPress.org, make sure you wrap all your premium code with `if ( my_prefix_fs()->{{ method }}__premium_only() )` or the other methods provided to exclude premium features & files from the free version.
237
+
238
+ ## Deployment
239
+ Zip your plugin's root folder and upload it in the Deployment section in the *Freemius Developer's Dashboard*.
240
+ The plugin will be scanned and processed by a custom developed *PHP Processor* which will auto-generate two versions of your plugin:
241
+
242
+ 1. **Premium version**: Identical to your uploaded version, including all code (except your `secret_key`). Will be enabled for download ONLY for your paying or in trial customers.
243
+ 2. **Free version**: The code stripped from all your paid features (based on the logic added wrapped in `{ method }__premium_only()`).
244
+
245
+ The free version is the one that you should give your users to download. Therefore, download the free generated version and upload to your site. Or, if your plugin was WordPress.org complaint and you made sure to exclude all your premium code with the different provided techniques, you can deploy the downloaded free version to the .org repo.
246
+
247
+ ## Reporting Bugs
248
+ Email dev [at] freemius [dot] com
249
+
250
+ ## FAQ
251
+
252
+ ## Copyright
253
+ Freemius, Inc.
freemius/assets/css/admin/account.css CHANGED
@@ -1 +1 @@
1
- #fs_account .postbox,#fs_account .widefat{max-width:700px}#fs_account h3{font-size:1.3em;padding:12px 15px;margin:0 0 12px 0;line-height:1.4;border-bottom:1px solid #F1F1F1}#fs_account h3 .dashicons{width:26px;height:26px;font-size:1.3em}#fs_account i.dashicons{font-size:1.2em;height:1.2em;width:1.2em}#fs_account .button i.dashicons{vertical-align:middle}#fs_account .fs-header-actions{position:absolute;top:17px;right:15px;font-size:0.9em}#fs_account .fs-header-actions ul{margin:0}#fs_account .fs-header-actions li{float:left}#fs_account .fs-header-actions li form{display:inline-block}#fs_account .fs-header-actions li a{text-decoration:none}#fs_account_details .button-group{float:right}.rtl #fs_account .fs-header-actions{left:15px;right:auto}.fs-key-value-table{width:100%}.fs-key-value-table form{display:inline-block}.fs-key-value-table tr td:first-child{text-align:right}.fs-key-value-table tr td:first-child nobr{font-weight:bold}.fs-key-value-table tr td:first-child form{display:block}.fs-key-value-table tr td.fs-right{text-align:right}.fs-key-value-table tr.fs-odd{background:#ebebeb}.fs-key-value-table td,.fs-key-value-table th{padding:10px}.fs-key-value-table code{line-height:28px}.fs-key-value-table var,.fs-key-value-table code,.fs-key-value-table input[type="text"]{color:#0073AA;font-size:16px;background:none}.fs-key-value-table input[type="text"]{width:100%;font-weight:bold}label.fs-tag{background:#ffba00;color:#fff;display:inline-block;border-radius:3px;padding:5px;font-size:11px;line-height:11px;vertical-align:baseline}label.fs-tag.fs-warn{background:#ffba00}label.fs-tag.fs-success{background:#46b450}label.fs-tag.fs-error{background:#dc3232}#fs_addons h3{border:none;margin-bottom:0;padding:4px 5px}#fs_addons td{vertical-align:middle}#fs_addons thead{white-space:nowrap}#fs_addons td:first-child,#fs_addons th:first-child{text-align:left;font-weight:bold}#fs_addons td:last-child,#fs_addons th:last-child{text-align:right}#fs_addons th{font-weight:bold}#fs_billing_address{width:100%}#fs_billing_address tr td{width:50%;padding:5px}#fs_billing_address tr:first-of-type td{padding-top:0}#fs_billing_address span{font-weight:bold}#fs_billing_address input,#fs_billing_address select{display:block;width:100%;margin-top:5px}#fs_billing_address input::-moz-placeholder,#fs_billing_address select::-moz-placeholder{color:transparent;opacity:1}#fs_billing_address input:-ms-input-placeholder,#fs_billing_address select:-ms-input-placeholder{color:transparent}#fs_billing_address input::-webkit-input-placeholder,#fs_billing_address select::-webkit-input-placeholder{color:transparent}#fs_billing_address input.fs-read-mode,#fs_billing_address select.fs-read-mode{border-color:transparent;color:#777;border-bottom:1px dashed #ccc;padding-left:0;background:none}#fs_billing_address.fs-read-mode td span{display:none}#fs_billing_address.fs-read-mode input,#fs_billing_address.fs-read-mode select{border-color:transparent;color:#777;border-bottom:1px dashed #ccc;padding-left:0;background:none}#fs_billing_address.fs-read-mode input::-moz-placeholder,#fs_billing_address.fs-read-mode select::-moz-placeholder{color:#ccc;opacity:1}#fs_billing_address.fs-read-mode input:-ms-input-placeholder,#fs_billing_address.fs-read-mode select:-ms-input-placeholder{color:#ccc}#fs_billing_address.fs-read-mode input::-webkit-input-placeholder,#fs_billing_address.fs-read-mode select::-webkit-input-placeholder{color:#ccc}#fs_billing_address button{display:block;width:100%}
1
+ #fs_account .postbox,#fs_account .widefat{max-width:700px}#fs_account h3{font-size:1.3em;padding:12px 15px;margin:0 0 12px 0;line-height:1.4;border-bottom:1px solid #F1F1F1}#fs_account h3 .dashicons{width:26px;height:26px;font-size:1.3em}#fs_account i.dashicons{font-size:1.2em;height:1.2em;width:1.2em}#fs_account .button i.dashicons{vertical-align:middle}#fs_account .fs-header-actions{position:absolute;top:17px;right:15px;font-size:0.9em}#fs_account .fs-header-actions ul{margin:0}#fs_account .fs-header-actions li{float:left}#fs_account .fs-header-actions li form{display:inline-block}#fs_account .fs-header-actions li a{text-decoration:none}#fs_account_details .button-group{float:right}.rtl #fs_account .fs-header-actions{left:15px;right:auto}.fs-key-value-table{width:100%}.fs-key-value-table form{display:inline-block}.fs-key-value-table tr td:first-child{text-align:right}.fs-key-value-table tr td:first-child nobr{font-weight:bold}.fs-key-value-table tr td:first-child form{display:block}.fs-key-value-table tr td.fs-right{text-align:right}.fs-key-value-table tr.fs-odd{background:#ebebeb}.fs-key-value-table td,.fs-key-value-table th{padding:10px}.fs-key-value-table code{line-height:28px}.fs-key-value-table var,.fs-key-value-table code,.fs-key-value-table input[type="text"]{color:#0073AA;font-size:16px;background:none}.fs-key-value-table input[type="text"]{width:100%;font-weight:bold}label.fs-tag{background:#ffba00;color:#fff;display:inline-block;border-radius:3px;padding:5px;font-size:11px;line-height:11px;vertical-align:baseline}label.fs-tag.fs-warn{background:#ffba00}label.fs-tag.fs-success{background:#46b450}label.fs-tag.fs-error{background:#dc3232}#fs_addons h3{border:none;margin-bottom:0;padding:4px 5px}#fs_addons td{vertical-align:middle}#fs_addons thead{white-space:nowrap}#fs_addons td:first-child,#fs_addons th:first-child{text-align:left;font-weight:bold}#fs_addons td:last-child,#fs_addons th:last-child{text-align:right}#fs_addons th{font-weight:bold}#fs_billing_address{width:100%}#fs_billing_address tr td{width:50%;padding:5px}#fs_billing_address tr:first-of-type td{padding-top:0}#fs_billing_address span{font-weight:bold}#fs_billing_address input,#fs_billing_address select{display:block;width:100%;margin-top:5px}#fs_billing_address input::-moz-placeholder,#fs_billing_address select::-moz-placeholder{color:transparent;opacity:1}#fs_billing_address input:-ms-input-placeholder,#fs_billing_address select:-ms-input-placeholder{color:transparent}#fs_billing_address input::-webkit-input-placeholder,#fs_billing_address select::-webkit-input-placeholder{color:transparent}#fs_billing_address input.fs-read-mode,#fs_billing_address select.fs-read-mode{border-color:transparent;color:#777;border-bottom:1px dashed #ccc;padding-left:0;background:none}#fs_billing_address.fs-read-mode td span{display:none}#fs_billing_address.fs-read-mode input,#fs_billing_address.fs-read-mode select{border-color:transparent;color:#777;border-bottom:1px dashed #ccc;padding-left:0;background:none}#fs_billing_address.fs-read-mode input::-moz-placeholder,#fs_billing_address.fs-read-mode select::-moz-placeholder{color:#ccc;opacity:1}#fs_billing_address.fs-read-mode input:-ms-input-placeholder,#fs_billing_address.fs-read-mode select:-ms-input-placeholder{color:#ccc}#fs_billing_address.fs-read-mode input::-webkit-input-placeholder,#fs_billing_address.fs-read-mode select::-webkit-input-placeholder{color:#ccc}#fs_billing_address button{display:block;width:100%}
freemius/assets/css/admin/add-ons.css CHANGED
@@ -1,2 +1,2 @@
1
- #fs_addons .fs-cards-list{list-style:none}#fs_addons .fs-cards-list .fs-card{float:left;height:152px;width:310px;padding:0;margin:0 0 30px 30px;font-size:14px;list-style:none;border:1px solid #ddd;cursor:pointer;position:relative}#fs_addons .fs-cards-list .fs-card .fs-overlay{position:absolute;left:0;right:0;bottom:0;top:0;z-index:9}#fs_addons .fs-cards-list .fs-card .fs-inner{background-color:#fff;overflow:hidden;height:100%;position:relative}#fs_addons .fs-cards-list .fs-card .fs-inner ul{-moz-transition:all,0.15s;-o-transition:all,0.15s;-ms-transition:all,0.15s;-webkit-transition:all,0.15s;transition:all,0.15s;left:0;right:0;top:0;position:absolute}#fs_addons .fs-cards-list .fs-card .fs-inner li{list-style:none;line-height:18px;padding:0 15px;width:100%;display:block;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-card-banner{padding:0;margin:0;line-height:0;display:block;height:100px;background-repeat:repeat-x;background-size:100% 100%;-moz-transition:all,0.15s;-o-transition:all,0.15s;-ms-transition:all,0.15s;-webkit-transition:all,0.15s;transition:all,0.15s}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-title{margin:10px 0 0 0;height:18px;overflow:hidden;color:#000;white-space:nowrap;text-overflow:ellipsis;font-weight:bold}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-offer{font-size:0.9em}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-description{background-color:#f9f9f9;padding:10px 15px 100px 15px;border-top:1px solid #eee;margin:0 0 10px 0;color:#777}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-tag{position:absolute;top:10px;right:0px;background:greenyellow;display:block;padding:2px 10px;-moz-box-shadow:1px 1px 1px rgba(0,0,0,0.3);-webkit-box-shadow:1px 1px 1px rgba(0,0,0,0.3);box-shadow:1px 1px 1px rgba(0,0,0,0.3);text-transform:uppercase;font-size:0.9em;font-weight:bold}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-cta .button{position:absolute;top:112px;right:10px}@media screen and (min-width: 960px){#fs_addons .fs-cards-list .fs-card:hover .fs-overlay{border:2px solid #29abe1;margin-left:-1px;margin-top:-1px}#fs_addons .fs-cards-list .fs-card:hover .fs-inner ul{top:-100px}#fs_addons .fs-cards-list .fs-card:hover .fs-inner .fs-title,#fs_addons .fs-cards-list .fs-card:hover .fs-inner .fs-offer{color:#29abe1}}
2
- #TB_window,#TB_window iframe{width:772px !important}#plugin-information #section-description h2,#plugin-information #section-description h3,#plugin-information #section-description p,#plugin-information #section-description b,#plugin-information #section-description i,#plugin-information #section-description blockquote,#plugin-information #section-description li,#plugin-information #section-description ul,#plugin-information #section-description ol{clear:none}#plugin-information #section-description .fs-selling-points{padding-bottom:10px;border-bottom:1px solid #ddd}#plugin-information #section-description .fs-selling-points ul{margin:0}#plugin-information #section-description .fs-selling-points ul li{padding:0;list-style:none outside none}#plugin-information #section-description .fs-selling-points ul li i.dashicons{color:#71ae00;font-size:3em;vertical-align:middle;line-height:30px;float:left;margin:0 0 0 -15px}#plugin-information #section-description .fs-selling-points ul li h3{margin:1em 30px !important}#plugin-information #section-description .fs-screenshots:after{content:"";display:table;clear:both}#plugin-information #section-description .fs-screenshots ul{list-style:none;margin:0}#plugin-information #section-description .fs-screenshots ul li{width:225px;height:225px;float:left;margin-bottom:20px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}#plugin-information #section-description .fs-screenshots ul li a{display:block;width:100%;height:100%;border:1px solid;-moz-box-shadow:1px 1px 1px rgba(0,0,0,0.2);-webkit-box-shadow:1px 1px 1px rgba(0,0,0,0.2);box-shadow:1px 1px 1px rgba(0,0,0,0.2);background-size:cover}#plugin-information #section-description .fs-screenshots ul li.odd{margin-right:20px}#plugin-information .plugin-information-pricing{margin:-16px;border-bottom:1px solid #ddd}#plugin-information .plugin-information-pricing .fs-plan h3{margin-top:0;padding:20px;font-size:16px}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper{border-bottom:1px solid #ddd}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper .nav-tab{cursor:pointer;position:relative;padding:0 10px;font-size:0.9em}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper .nav-tab label{text-transform:uppercase;color:green;background:greenyellow;position:absolute;left:-1px;right:-1px;bottom:100%;border:1px solid darkgreen;padding:2px;text-align:center;font-size:0.9em;line-height:1em}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper .nav-tab.nav-tab-active{cursor:default;background:#fffeec;border-bottom-color:#fffeec}#plugin-information .plugin-information-pricing .fs-plan.fs-single-cycle h3{background:#fffeec;margin:0;padding-bottom:0;color:#0073aa}#plugin-information .plugin-information-pricing .fs-plan.fs-single-cycle .nav-tab-wrapper,#plugin-information .plugin-information-pricing .fs-plan.fs-single-cycle .fs-billing-frequency{display:none}#plugin-information .plugin-information-pricing .fs-plan .fs-pricing-body{background:#fffeec;padding:20px}#plugin-information .plugin-information-pricing .fs-plan .button{width:100%;text-align:center;font-weight:bold;text-transform:uppercase;font-size:1.1em}#plugin-information .plugin-information-pricing .fs-plan label{white-space:nowrap}#plugin-information .plugin-information-pricing .fs-plan var{font-style:normal}#plugin-information .plugin-information-pricing .fs-plan .fs-billing-frequency,#plugin-information .plugin-information-pricing .fs-plan .fs-annual-discount{text-align:center;display:block;font-weight:bold;margin-bottom:10px;text-transform:uppercase;background:#F3F3F3;padding:2px;border:1px solid #ccc}#plugin-information .plugin-information-pricing .fs-plan .fs-annual-discount{text-transform:none;color:green;background:greenyellow}#plugin-information .plugin-information-pricing .fs-plan ul.fs-trial-terms{font-size:0.9em}#plugin-information .plugin-information-pricing .fs-plan ul.fs-trial-terms i{float:left;margin:0 0 0 -15px}#plugin-information .plugin-information-pricing .fs-plan ul.fs-trial-terms li{margin:10px 0 0 0}#plugin-information #section-features .fs-features{margin:-20px -26px}#plugin-information #section-features table{width:100%;border-spacing:0;border-collapse:separate}#plugin-information #section-features table thead th{padding:10px 0}#plugin-information #section-features table thead .fs-price{color:#71ae00;font-weight:normal;display:block;text-align:center}#plugin-information #section-features table tbody td{border-top:1px solid #ccc;padding:10px 0;text-align:center;width:100px;color:#71ae00}#plugin-information #section-features table tbody td:first-child{text-align:left;width:auto;color:inherit;padding-left:26px}#plugin-information #section-features table tbody tr.fs-odd td{background:#fefefe}#plugin-information #section-features .dashicons-yes{width:30px;height:30px;font-size:30px}@media screen and (max-width: 961px){#fs_addons .fs-cards-list .fs-card{height:265px}}
1
+ #fs_addons .fs-cards-list{list-style:none}#fs_addons .fs-cards-list .fs-card{float:left;height:152px;width:310px;padding:0;margin:0 0 30px 30px;font-size:14px;list-style:none;border:1px solid #ddd;cursor:pointer;position:relative}#fs_addons .fs-cards-list .fs-card .fs-overlay{position:absolute;left:0;right:0;bottom:0;top:0;z-index:9}#fs_addons .fs-cards-list .fs-card .fs-inner{background-color:#fff;overflow:hidden;height:100%;position:relative}#fs_addons .fs-cards-list .fs-card .fs-inner ul{-moz-transition:all,0.15s;-o-transition:all,0.15s;-ms-transition:all,0.15s;-webkit-transition:all,0.15s;transition:all,0.15s;left:0;right:0;top:0;position:absolute}#fs_addons .fs-cards-list .fs-card .fs-inner li{list-style:none;line-height:18px;padding:0 15px;width:100%;display:block;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-card-banner{padding:0;margin:0;line-height:0;display:block;height:100px;background-repeat:repeat-x;background-size:100% 100%;-moz-transition:all,0.15s;-o-transition:all,0.15s;-ms-transition:all,0.15s;-webkit-transition:all,0.15s;transition:all,0.15s}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-title{margin:10px 0 0 0;height:18px;overflow:hidden;color:#000;white-space:nowrap;text-overflow:ellipsis;font-weight:bold}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-offer{font-size:0.9em}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-description{background-color:#f9f9f9;padding:10px 15px 100px 15px;border-top:1px solid #eee;margin:0 0 10px 0;color:#777}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-tag{position:absolute;top:10px;right:0px;background:greenyellow;display:block;padding:2px 10px;-moz-box-shadow:1px 1px 1px rgba(0,0,0,0.3);-webkit-box-shadow:1px 1px 1px rgba(0,0,0,0.3);box-shadow:1px 1px 1px rgba(0,0,0,0.3);text-transform:uppercase;font-size:0.9em;font-weight:bold}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-cta .button{position:absolute;top:112px;right:10px}@media screen and (min-width: 960px){#fs_addons .fs-cards-list .fs-card:hover .fs-overlay{border:2px solid #29abe1;margin-left:-1px;margin-top:-1px}#fs_addons .fs-cards-list .fs-card:hover .fs-inner ul{top:-100px}#fs_addons .fs-cards-list .fs-card:hover .fs-inner .fs-title,#fs_addons .fs-cards-list .fs-card:hover .fs-inner .fs-offer{color:#29abe1}}
2
+ #TB_window,#TB_window iframe{width:772px !important}#plugin-information #section-description h2,#plugin-information #section-description h3,#plugin-information #section-description p,#plugin-information #section-description b,#plugin-information #section-description i,#plugin-information #section-description blockquote,#plugin-information #section-description li,#plugin-information #section-description ul,#plugin-information #section-description ol{clear:none}#plugin-information #section-description .fs-selling-points{padding-bottom:10px;border-bottom:1px solid #ddd}#plugin-information #section-description .fs-selling-points ul{margin:0}#plugin-information #section-description .fs-selling-points ul li{padding:0;list-style:none outside none}#plugin-information #section-description .fs-selling-points ul li i.dashicons{color:#71ae00;font-size:3em;vertical-align:middle;line-height:30px;float:left;margin:0 0 0 -15px}#plugin-information #section-description .fs-selling-points ul li h3{margin:1em 30px !important}#plugin-information #section-description .fs-screenshots:after{content:"";display:table;clear:both}#plugin-information #section-description .fs-screenshots ul{list-style:none;margin:0}#plugin-information #section-description .fs-screenshots ul li{width:225px;height:225px;float:left;margin-bottom:20px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}#plugin-information #section-description .fs-screenshots ul li a{display:block;width:100%;height:100%;border:1px solid;-moz-box-shadow:1px 1px 1px rgba(0,0,0,0.2);-webkit-box-shadow:1px 1px 1px rgba(0,0,0,0.2);box-shadow:1px 1px 1px rgba(0,0,0,0.2);background-size:cover}#plugin-information #section-description .fs-screenshots ul li.odd{margin-right:20px}#plugin-information .plugin-information-pricing{margin:-16px;border-bottom:1px solid #ddd}#plugin-information .plugin-information-pricing .fs-plan h3{margin-top:0;padding:20px;font-size:16px}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper{border-bottom:1px solid #ddd}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper .nav-tab{cursor:pointer;position:relative;padding:0 10px;font-size:0.9em}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper .nav-tab label{text-transform:uppercase;color:green;background:greenyellow;position:absolute;left:-1px;right:-1px;bottom:100%;border:1px solid darkgreen;padding:2px;text-align:center;font-size:0.9em;line-height:1em}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper .nav-tab.nav-tab-active{cursor:default;background:#fffeec;border-bottom-color:#fffeec}#plugin-information .plugin-information-pricing .fs-plan.fs-single-cycle h3{background:#fffeec;margin:0;padding-bottom:0;color:#0073aa}#plugin-information .plugin-information-pricing .fs-plan.fs-single-cycle .nav-tab-wrapper,#plugin-information .plugin-information-pricing .fs-plan.fs-single-cycle .fs-billing-frequency{display:none}#plugin-information .plugin-information-pricing .fs-plan .fs-pricing-body{background:#fffeec;padding:20px}#plugin-information .plugin-information-pricing .fs-plan .button{width:100%;text-align:center;font-weight:bold;text-transform:uppercase;font-size:1.1em}#plugin-information .plugin-information-pricing .fs-plan label{white-space:nowrap}#plugin-information .plugin-information-pricing .fs-plan var{font-style:normal}#plugin-information .plugin-information-pricing .fs-plan .fs-billing-frequency,#plugin-information .plugin-information-pricing .fs-plan .fs-annual-discount{text-align:center;display:block;font-weight:bold;margin-bottom:10px;text-transform:uppercase;background:#F3F3F3;padding:2px;border:1px solid #ccc}#plugin-information .plugin-information-pricing .fs-plan .fs-annual-discount{text-transform:none;color:green;background:greenyellow}#plugin-information .plugin-information-pricing .fs-plan ul.fs-trial-terms{font-size:0.9em}#plugin-information .plugin-information-pricing .fs-plan ul.fs-trial-terms i{float:left;margin:0 0 0 -15px}#plugin-information .plugin-information-pricing .fs-plan ul.fs-trial-terms li{margin:10px 0 0 0}#plugin-information #section-features .fs-features{margin:-20px -26px}#plugin-information #section-features table{width:100%;border-spacing:0;border-collapse:separate}#plugin-information #section-features table thead th{padding:10px 0}#plugin-information #section-features table thead .fs-price{color:#71ae00;font-weight:normal;display:block;text-align:center}#plugin-information #section-features table tbody td{border-top:1px solid #ccc;padding:10px 0;text-align:center;width:100px;color:#71ae00}#plugin-information #section-features table tbody td:first-child{text-align:left;width:auto;color:inherit;padding-left:26px}#plugin-information #section-features table tbody tr.fs-odd td{background:#fefefe}#plugin-information #section-features .dashicons-yes{width:30px;height:30px;font-size:30px}@media screen and (max-width: 961px){#fs_addons .fs-cards-list .fs-card{height:265px}}
freemius/assets/css/admin/checkout.css CHANGED
@@ -1 +1 @@
1
- @media screen and (max-width: 782px){#wpbody-content{padding-bottom:0 !important}}
1
+ @media screen and (max-width: 782px){#wpbody-content{padding-bottom:0 !important}}
freemius/assets/css/admin/common.css CHANGED
@@ -1,2 +1,2 @@
1
- .theme-browser .theme .fs-premium-theme-badge{position:absolute;top:10px;right:0;background:#71ae00;color:#fff;text-transform:uppercase;padding:5px 10px;-moz-border-radius:3px 0 0 3px;-webkit-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;font-weight:bold;border-right:0;-moz-box-shadow:0 2px 1px -1px rgba(0,0,0,0.3);-webkit-box-shadow:0 2px 1px -1px rgba(0,0,0,0.3);box-shadow:0 2px 1px -1px rgba(0,0,0,0.3);font-size:1.1em}#iframe{line-height:0;font-size:0}.fs-full-size-wrapper{margin:40px 0 -65px -20px}@media (max-width: 600px){.fs-full-size-wrapper{margin:0 0 -65px -10px}}
2
- .fs-notice{position:relative}.fs-notice.fs-has-title{margin-bottom:30px !important}.fs-notice.success{color:green}.fs-notice.promotion{border-color:#00a0d2 !important;background-color:#f2fcff !important}.fs-notice .fs-notice-body{margin:.5em 0;padding:2px}.fs-notice .fs-close{cursor:pointer;color:#aaa;float:right}.fs-notice .fs-close:hover{color:#666}.fs-notice .fs-close>*{margin-top:7px;display:inline-block}.fs-notice label.fs-plugin-title{background:rgba(0,0,0,0.3);color:#fff;padding:2px 10px;position:absolute;top:100%;bottom:auto;right:auto;-moz-border-radius:0 0 3px 3px;-webkit-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;left:10px;font-size:12px;font-weight:bold;cursor:auto}div.fs-notice.updated,div.fs-notice.success,div.fs-notice.promotion{display:block !important}.rtl .fs-notice .fs-close{float:left}.fs-secure-notice{position:fixed;top:32px;left:160px;right:0;background:#ebfdeb;padding:10px 20px;color:green;z-index:9999;-moz-box-shadow:0 2px 2px rgba(6,113,6,0.3);-webkit-box-shadow:0 2px 2px rgba(6,113,6,0.3);box-shadow:0 2px 2px rgba(6,113,6,0.3);opacity:0.95;filter:alpha(opacity=95)}.fs-secure-notice:hover{opacity:1;filter:alpha(opacity=100)}.fs-secure-notice a.fs-security-proof{color:green;text-decoration:none}@media screen and (max-width: 960px){.fs-secure-notice{left:36px}}@media screen and (max-width: 600px){.fs-secure-notice{display:none}}@media screen and (max-width: 500px){#fs_promo_tab{display:none}}@media screen and (max-width: 782px){.fs-secure-notice{left:0;top:46px;text-align:center}}span.fs-submenu-item.fs-sub:before{content:'\21B3';padding:0 5px}.rtl span.fs-submenu-item.fs-sub:before{content:'\21B2'}.fs-submenu-item.pricing.upgrade-mode{color:greenyellow}.fs-submenu-item.pricing.trial-mode{color:#83e2ff}#adminmenu .update-plugins.fs-trial{background-color:#00b9eb}.fs-ajax-spinner{border:0;width:20px;height:20px;margin-right:5px;vertical-align:sub;display:inline-block;background:url("../../../../../../../wp-admin/images/wpspin_light-2x.gif");background-size:contain}.wrap.fs-section h2{text-align:left}
1
+ .theme-browser .theme .fs-premium-theme-badge{position:absolute;top:10px;right:0;background:#71ae00;color:#fff;text-transform:uppercase;padding:5px 10px;-moz-border-radius:3px 0 0 3px;-webkit-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;font-weight:bold;border-right:0;-moz-box-shadow:0 2px 1px -1px rgba(0,0,0,0.3);-webkit-box-shadow:0 2px 1px -1px rgba(0,0,0,0.3);box-shadow:0 2px 1px -1px rgba(0,0,0,0.3);font-size:1.1em}#iframe{line-height:0;font-size:0}.fs-full-size-wrapper{margin:40px 0 -65px -20px}@media (max-width: 600px){.fs-full-size-wrapper{margin:0 0 -65px -10px}}
2
+ .fs-notice{position:relative}.fs-notice.fs-has-title{margin-bottom:30px !important}.fs-notice.success{color:green}.fs-notice.promotion{border-color:#00a0d2 !important;background-color:#f2fcff !important}.fs-notice .fs-notice-body{margin:.5em 0;padding:2px}.fs-notice .fs-close{cursor:pointer;color:#aaa;float:right}.fs-notice .fs-close:hover{color:#666}.fs-notice .fs-close>*{margin-top:7px;display:inline-block}.fs-notice label.fs-plugin-title{background:rgba(0,0,0,0.3);color:#fff;padding:2px 10px;position:absolute;top:100%;bottom:auto;right:auto;-moz-border-radius:0 0 3px 3px;-webkit-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;left:10px;font-size:12px;font-weight:bold;cursor:auto}div.fs-notice.updated,div.fs-notice.success,div.fs-notice.promotion{display:block !important}.rtl .fs-notice .fs-close{float:left}.fs-secure-notice{position:fixed;top:32px;left:160px;right:0;background:#ebfdeb;padding:10px 20px;color:green;z-index:9999;-moz-box-shadow:0 2px 2px rgba(6,113,6,0.3);-webkit-box-shadow:0 2px 2px rgba(6,113,6,0.3);box-shadow:0 2px 2px rgba(6,113,6,0.3);opacity:0.95;filter:alpha(opacity=95)}.fs-secure-notice:hover{opacity:1;filter:alpha(opacity=100)}.fs-secure-notice a.fs-security-proof{color:green;text-decoration:none}@media screen and (max-width: 960px){.fs-secure-notice{left:36px}}@media screen and (max-width: 600px){.fs-secure-notice{display:none}}@media screen and (max-width: 500px){#fs_promo_tab{display:none}}@media screen and (max-width: 782px){.fs-secure-notice{left:0;top:46px;text-align:center}}span.fs-submenu-item.fs-sub:before{content:'\21B3';padding:0 5px}.rtl span.fs-submenu-item.fs-sub:before{content:'\21B2'}.fs-submenu-item.pricing.upgrade-mode{color:greenyellow}.fs-submenu-item.pricing.trial-mode{color:#83e2ff}#adminmenu .update-plugins.fs-trial{background-color:#00b9eb}.fs-ajax-spinner{border:0;width:20px;height:20px;margin-right:5px;vertical-align:sub;display:inline-block;background:url("../../../../../../../wp-admin/images/wpspin_light-2x.gif");background-size:contain}.wrap.fs-section h2{text-align:left}
freemius/assets/css/admin/connect.css CHANGED
@@ -1 +1 @@
1
- #fs_connect{width:480px;-moz-box-shadow:0px 1px 2px rgba(0,0,0,0.3);-webkit-box-shadow:0px 1px 2px rgba(0,0,0,0.3);box-shadow:0px 1px 2px rgba(0,0,0,0.3);margin:20px 0}@media screen and (max-width: 479px){#fs_connect{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;width:auto;margin:0 0 0 -10px}}#fs_connect .fs-content{background:#fff;padding:15px 20px}#fs_connect .fs-content .fs-error{background:snow;color:#d3135a;border:1px solid #d3135a;-moz-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);text-align:center;padding:5px;margin-bottom:10px}#fs_connect .fs-content p{margin:0;padding:0;font-size:1.2em}#fs_connect .fs-license-key-container{position:relative;width:280px;margin:10px auto 0 auto}#fs_connect .fs-license-key-container input{width:100%}#fs_connect .fs-license-key-container .dashicons{position:absolute;top:5px;right:5px}#fs_connect .fs-actions{padding:10px 20px;background:#C0C7CA}#fs_connect .fs-actions .button{padding:0 10px 1px;line-height:35px;height:37px;font-size:16px;margin-bottom:0}#fs_connect .fs-actions .button .dashicons{font-size:37px;margin-left:-8px;margin-right:12px}#fs_connect .fs-actions .button.button-primary{padding-right:15px;padding-left:15px}#fs_connect .fs-actions .button.button-primary:after{content:' \279C'}#fs_connect .fs-actions .button.button-primary.fs-loading:after{content:''}#fs_connect .fs-actions .button.button-secondary{float:right}#fs_connect.fs-anonymous-disabled .fs-actions .button.button-primary{width:100%}#fs_connect .fs-permissions{padding:10px 20px;background:#FEFEFE;-moz-transition:background 0.5s ease;-o-transition:background 0.5s ease;-ms-transition:background 0.5s ease;-webkit-transition:background 0.5s ease;transition:background 0.5s ease}#fs_connect .fs-permissions .fs-license-sync-disclaimer{text-align:center;margin-top:0}#fs_connect .fs-permissions .fs-trigger{font-size:0.9em;text-decoration:none;text-align:center;display:block}#fs_connect .fs-permissions ul{height:0;overflow:hidden;margin:0}#fs_connect .fs-permissions ul li{margin-bottom:12px}#fs_connect .fs-permissions ul li:last-child{margin-bottom:0}#fs_connect .fs-permissions ul li i.dashicons{float:left;font-size:40px;width:40px;height:40px}#fs_connect .fs-permissions ul li div{margin-left:55px}#fs_connect .fs-permissions ul li div span{font-weight:bold;text-transform:uppercase;color:#23282d}#fs_connect .fs-permissions ul li div p{margin:2px 0 0 0}#fs_connect .fs-permissions.fs-open{background:#fff}#fs_connect .fs-permissions.fs-open ul{height:auto;margin:20px 20px 10px 20px}@media screen and (max-width: 479px){#fs_connect .fs-permissions{background:#fff}#fs_connect .fs-permissions .fs-trigger{display:none}#fs_connect .fs-permissions ul{height:auto;margin:20px}}#fs_connect .fs-freemium-licensing{padding:8px;background:#777;color:#fff}#fs_connect .fs-freemium-licensing p{text-align:center;display:block;margin:0;padding:0}#fs_connect .fs-freemium-licensing a{color:#C2EEFF;text-decoration:underline}#fs_connect .fs-visual{padding:12px;line-height:0;background:#fafafa;height:80px;position:relative}#fs_connect .fs-visual .fs-site-icon{position:absolute;left:20px;top:10px}#fs_connect .fs-visual .fs-connect-logo{position:absolute;right:20px;top:10px}#fs_connect .fs-visual .fs-plugin-icon{position:absolute;top:10px;left:50%;margin-left:-40px}#fs_connect .fs-visual .fs-plugin-icon,#fs_connect .fs-visual .fs-site-icon,#fs_connect .fs-visual img,#fs_connect .fs-visual object{width:80px;height:80px}#fs_connect .fs-visual .dashicons-wordpress{font-size:64px;background:#01749a;color:#fff;width:64px;height:64px;padding:8px}#fs_connect .fs-visual .dashicons-plus{position:absolute;top:50%;font-size:30px;margin-top:-10px;color:#bbb}#fs_connect .fs-visual .dashicons-plus.fs-first{left:28%}#fs_connect .fs-visual .dashicons-plus.fs-second{left:65%}#fs_connect .fs-visual .fs-plugin-icon,#fs_connect .fs-visual .fs-connect-logo,#fs_connect .fs-visual .fs-site-icon{border:1px solid #ccc;padding:1px;background:#fff}#fs_connect .fs-terms{text-align:center;font-size:0.85em;padding:5px;background:rgba(0,0,0,0.05)}#fs_connect .fs-terms,#fs_connect .fs-terms a{color:#999}#fs_connect .fs-terms a{text-decoration:none}.rtl #fs_connect .fs-actions{padding:10px 20px;background:#C0C7CA}.rtl #fs_connect .fs-actions .button .dashicons{font-size:37px;margin-left:-8px;margin-right:12px}.rtl #fs_connect .fs-actions .button.button-primary:after{content:' \000bb'}.rtl #fs_connect .fs-actions .button.button-primary.fs-loading:after{content:''}.rtl #fs_connect .fs-actions .button.button-secondary{float:left}.rtl #fs_connect .fs-permissions ul li div{margin-right:55px;margin-left:0}.rtl #fs_connect .fs-permissions ul li i.dashicons{float:right}.rtl #fs_connect .fs-visual .fs-site-icon{right:20px;left:auto}.rtl #fs_connect .fs-visual .fs-connect-logo{right:auto;left:20px}#fs_theme_connect_wrapper{position:fixed;top:0;height:100%;width:100%;z-index:99990;background:rgba(0,0,0,0.75);text-align:center;overflow-y:auto}#fs_theme_connect_wrapper:before{content:"";display:inline-block;vertical-align:middle;height:100%}#fs_theme_connect_wrapper>button.close{color:white;cursor:pointer;height:40px;width:40px;position:absolute;right:0;border:0;background-color:transparent;top:32px}#fs_theme_connect_wrapper #fs_connect{top:0;text-align:left;display:inline-block;vertical-align:middle;margin-top:52px;margin-bottom:20px}#fs_theme_connect_wrapper #fs_connect .fs-terms{background:rgba(140,140,140,0.64)}#fs_theme_connect_wrapper #fs_connect .fs-terms,#fs_theme_connect_wrapper #fs_connect .fs-terms a{color:#c5c5c5}.wp-pointer-content #fs_connect{margin:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.fs-opt-in-pointer .wp-pointer-content{padding:0}.fs-opt-in-pointer.wp-pointer-top .wp-pointer-arrow{border-bottom-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-top .wp-pointer-arrow-inner{border-bottom-color:#fafafa}.fs-opt-in-pointer.wp-pointer-bottom .wp-pointer-arrow{border-top-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-bottom .wp-pointer-arrow-inner{border-top-color:#fafafa}.fs-opt-in-pointer.wp-pointer-left .wp-pointer-arrow{border-right-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-left .wp-pointer-arrow-inner{border-right-color:#fafafa}.fs-opt-in-pointer.wp-pointer-right .wp-pointer-arrow{border-left-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-right .wp-pointer-arrow-inner{border-left-color:#fafafa}
1
+ #fs_connect{width:480px;-moz-box-shadow:0px 1px 2px rgba(0,0,0,0.3);-webkit-box-shadow:0px 1px 2px rgba(0,0,0,0.3);box-shadow:0px 1px 2px rgba(0,0,0,0.3);margin:20px 0}@media screen and (max-width: 479px){#fs_connect{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;width:auto;margin:0 0 0 -10px}}#fs_connect .fs-content{background:#fff;padding:15px 20px}#fs_connect .fs-content .fs-error{background:snow;color:#d3135a;border:1px solid #d3135a;-moz-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);text-align:center;padding:5px;margin-bottom:10px}#fs_connect .fs-content p{margin:0;padding:0;font-size:1.2em}#fs_connect .fs-license-key-container{position:relative;width:280px;margin:10px auto 0 auto}#fs_connect .fs-license-key-container input{width:100%}#fs_connect .fs-license-key-container .dashicons{position:absolute;top:5px;right:5px}#fs_connect .fs-actions{padding:10px 20px;background:#C0C7CA}#fs_connect .fs-actions .button{padding:0 10px 1px;line-height:35px;height:37px;font-size:16px;margin-bottom:0}#fs_connect .fs-actions .button .dashicons{font-size:37px;margin-left:-8px;margin-right:12px}#fs_connect .fs-actions .button.button-primary{padding-right:15px;padding-left:15px}#fs_connect .fs-actions .button.button-primary:after{content:' \279C'}#fs_connect .fs-actions .button.button-primary.fs-loading:after{content:''}#fs_connect .fs-actions .button.button-secondary{float:right}#fs_connect.fs-anonymous-disabled .fs-actions .button.button-primary{width:100%}#fs_connect .fs-permissions{padding:10px 20px;background:#FEFEFE;-moz-transition:background 0.5s ease;-o-transition:background 0.5s ease;-ms-transition:background 0.5s ease;-webkit-transition:background 0.5s ease;transition:background 0.5s ease}#fs_connect .fs-permissions .fs-license-sync-disclaimer{text-align:center;margin-top:0}#fs_connect .fs-permissions .fs-trigger{font-size:0.9em;text-decoration:none;text-align:center;display:block}#fs_connect .fs-permissions ul{height:0;overflow:hidden;margin:0}#fs_connect .fs-permissions ul li{margin-bottom:12px}#fs_connect .fs-permissions ul li:last-child{margin-bottom:0}#fs_connect .fs-permissions ul li i.dashicons{float:left;font-size:40px;width:40px;height:40px}#fs_connect .fs-permissions ul li div{margin-left:55px}#fs_connect .fs-permissions ul li div span{font-weight:bold;text-transform:uppercase;color:#23282d}#fs_connect .fs-permissions ul li div p{margin:2px 0 0 0}#fs_connect .fs-permissions.fs-open{background:#fff}#fs_connect .fs-permissions.fs-open ul{height:auto;margin:20px 20px 10px 20px}@media screen and (max-width: 479px){#fs_connect .fs-permissions{background:#fff}#fs_connect .fs-permissions .fs-trigger{display:none}#fs_connect .fs-permissions ul{height:auto;margin:20px}}#fs_connect .fs-freemium-licensing{padding:8px;background:#777;color:#fff}#fs_connect .fs-freemium-licensing p{text-align:center;display:block;margin:0;padding:0}#fs_connect .fs-freemium-licensing a{color:#C2EEFF;text-decoration:underline}#fs_connect .fs-visual{padding:12px;line-height:0;background:#fafafa;height:80px;position:relative}#fs_connect .fs-visual .fs-site-icon{position:absolute;left:20px;top:10px}#fs_connect .fs-visual .fs-connect-logo{position:absolute;right:20px;top:10px}#fs_connect .fs-visual .fs-plugin-icon{position:absolute;top:10px;left:50%;margin-left:-40px}#fs_connect .fs-visual .fs-plugin-icon,#fs_connect .fs-visual .fs-site-icon,#fs_connect .fs-visual img,#fs_connect .fs-visual object{width:80px;height:80px}#fs_connect .fs-visual .dashicons-wordpress{font-size:64px;background:#01749a;color:#fff;width:64px;height:64px;padding:8px}#fs_connect .fs-visual .dashicons-plus{position:absolute;top:50%;font-size:30px;margin-top:-10px;color:#bbb}#fs_connect .fs-visual .dashicons-plus.fs-first{left:28%}#fs_connect .fs-visual .dashicons-plus.fs-second{left:65%}#fs_connect .fs-visual .fs-plugin-icon,#fs_connect .fs-visual .fs-connect-logo,#fs_connect .fs-visual .fs-site-icon{border:1px solid #ccc;padding:1px;background:#fff}#fs_connect .fs-terms{text-align:center;font-size:0.85em;padding:5px;background:rgba(0,0,0,0.05)}#fs_connect .fs-terms,#fs_connect .fs-terms a{color:#999}#fs_connect .fs-terms a{text-decoration:none}.rtl #fs_connect .fs-actions{padding:10px 20px;background:#C0C7CA}.rtl #fs_connect .fs-actions .button .dashicons{font-size:37px;margin-left:-8px;margin-right:12px}.rtl #fs_connect .fs-actions .button.button-primary:after{content:' \000bb'}.rtl #fs_connect .fs-actions .button.button-primary.fs-loading:after{content:''}.rtl #fs_connect .fs-actions .button.button-secondary{float:left}.rtl #fs_connect .fs-permissions ul li div{margin-right:55px;margin-left:0}.rtl #fs_connect .fs-permissions ul li i.dashicons{float:right}.rtl #fs_connect .fs-visual .fs-site-icon{right:20px;left:auto}.rtl #fs_connect .fs-visual .fs-connect-logo{right:auto;left:20px}#fs_theme_connect_wrapper{position:fixed;top:0;height:100%;width:100%;z-index:99990;background:rgba(0,0,0,0.75);text-align:center;overflow-y:auto}#fs_theme_connect_wrapper:before{content:"";display:inline-block;vertical-align:middle;height:100%}#fs_theme_connect_wrapper>button.close{color:white;cursor:pointer;height:40px;width:40px;position:absolute;right:0;border:0;background-color:transparent;top:32px}#fs_theme_connect_wrapper #fs_connect{top:0;text-align:left;display:inline-block;vertical-align:middle;margin-top:52px;margin-bottom:20px}#fs_theme_connect_wrapper #fs_connect .fs-terms{background:rgba(140,140,140,0.64)}#fs_theme_connect_wrapper #fs_connect .fs-terms,#fs_theme_connect_wrapper #fs_connect .fs-terms a{color:#c5c5c5}.wp-pointer-content #fs_connect{margin:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.fs-opt-in-pointer .wp-pointer-content{padding:0}.fs-opt-in-pointer.wp-pointer-top .wp-pointer-arrow{border-bottom-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-top .wp-pointer-arrow-inner{border-bottom-color:#fafafa}.fs-opt-in-pointer.wp-pointer-bottom .wp-pointer-arrow{border-top-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-bottom .wp-pointer-arrow-inner{border-top-color:#fafafa}.fs-opt-in-pointer.wp-pointer-left .wp-pointer-arrow{border-right-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-left .wp-pointer-arrow-inner{border-right-color:#fafafa}.fs-opt-in-pointer.wp-pointer-right .wp-pointer-arrow{border-left-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-right .wp-pointer-arrow-inner{border-left-color:#fafafa}
freemius/assets/css/admin/deactivation-feedback.css CHANGED
@@ -1 +1 @@
1
- .fs-modal{position:fixed;overflow:auto;height:100%;width:100%;top:0;z-index:100000;display:none;background:rgba(0,0,0,0.6)}.fs-modal .fs-modal-dialog{background:transparent;position:absolute;left:50%;margin-left:-298px;padding-bottom:30px;top:-100%;z-index:100001;width:596px}@media (max-width: 650px){.fs-modal .fs-modal-dialog{margin-left:-50%;box-sizing:border-box;padding-left:10px;padding-right:10px;width:100%}.fs-modal .fs-modal-dialog .fs-modal-panel>h3>strong{font-size:1.3em}.fs-modal .fs-modal-dialog li.reason{margin-bottom:10px}.fs-modal .fs-modal-dialog li.reason .reason-input,.fs-modal .fs-modal-dialog li.reason .internal-message{margin-left:29px}.fs-modal .fs-modal-dialog li.reason label{display:table}.fs-modal .fs-modal-dialog li.reason label>span{display:table-cell;font-size:1.3em}}.fs-modal.active{display:block}.fs-modal.active:before{display:block}.fs-modal.active .fs-modal-dialog{top:10%}.fs-modal .fs-modal-body,.fs-modal .fs-modal-footer{border:0;background:#fefefe;padding:20px}.fs-modal .fs-modal-body{border-bottom:0}.fs-modal .fs-modal-body h2{font-size:20px}.fs-modal .fs-modal-body>div{margin-top:10px}.fs-modal .fs-modal-body>div h2{font-weight:bold;font-size:20px;margin-top:0}.fs-modal .fs-modal-footer{border-top:#eeeeee solid 1px;text-align:right}.fs-modal .fs-modal-footer>.button{margin:0 7px}.fs-modal .fs-modal-footer>.button:first-child{margin:0}.fs-modal .fs-modal-panel:not(.active){display:none}.fs-modal .reason-input,.fs-modal .internal-message{margin:3px 0 3px 22px}.fs-modal .reason-input input,.fs-modal .reason-input textarea,.fs-modal .internal-message input,.fs-modal .internal-message textarea{width:100%}.fs-modal li.reason.has-internal-message .internal-message{border:1px solid #ccc;padding:7px;display:none}body.has-fs-modal{overflow:hidden}#the-list .deactivate>.fs-slug{display:none}
1
+ .fs-modal{position:fixed;overflow:auto;height:100%;width:100%;top:0;z-index:100000;display:none;background:rgba(0,0,0,0.6)}.fs-modal .fs-modal-dialog{background:transparent;position:absolute;left:50%;margin-left:-298px;padding-bottom:30px;top:-100%;z-index:100001;width:596px}@media (max-width: 650px){.fs-modal .fs-modal-dialog{margin-left:-50%;box-sizing:border-box;padding-left:10px;padding-right:10px;width:100%}.fs-modal .fs-modal-dialog .fs-modal-panel>h3>strong{font-size:1.3em}.fs-modal .fs-modal-dialog li.reason{margin-bottom:10px}.fs-modal .fs-modal-dialog li.reason .reason-input,.fs-modal .fs-modal-dialog li.reason .internal-message{margin-left:29px}.fs-modal .fs-modal-dialog li.reason label{display:table}.fs-modal .fs-modal-dialog li.reason label>span{display:table-cell;font-size:1.3em}}.fs-modal.active{display:block}.fs-modal.active:before{display:block}.fs-modal.active .fs-modal-dialog{top:10%}.fs-modal .fs-modal-body,.fs-modal .fs-modal-footer{border:0;background:#fefefe;padding:20px}.fs-modal .fs-modal-body{border-bottom:0}.fs-modal .fs-modal-body h2{font-size:20px}.fs-modal .fs-modal-body>div{margin-top:10px}.fs-modal .fs-modal-body>div h2{font-weight:bold;font-size:20px;margin-top:0}.fs-modal .fs-modal-footer{border-top:#eeeeee solid 1px;text-align:right}.fs-modal .fs-modal-footer>.button{margin:0 7px}.fs-modal .fs-modal-footer>.button:first-child{margin:0}.fs-modal .fs-modal-panel:not(.active){display:none}.fs-modal .reason-input,.fs-modal .internal-message{margin:3px 0 3px 22px}.fs-modal .reason-input input,.fs-modal .reason-input textarea,.fs-modal .internal-message input,.fs-modal .internal-message textarea{width:100%}.fs-modal li.reason.has-internal-message .internal-message{border:1px solid #ccc;padding:7px;display:none}body.has-fs-modal{overflow:hidden}#the-list .deactivate>.fs-slug{display:none}
freemius/assets/css/admin/debug.css CHANGED
@@ -1 +1 @@
1
- .switch{position:relative;display:inline-block;font-size:1.6em;font-weight:bold;color:#ccc;text-shadow:0px 1px 1px rgba(255,255,255,0.8);height:18px;padding:6px 6px 5px 6px;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);border-radius:4px;background:#ececec;box-shadow:0px 0px 4px rgba(0,0,0,0.1),inset 0px 1px 3px 0px rgba(0,0,0,0.1);cursor:pointer}.switch span{display:inline-block;width:35px;text-transform:uppercase}.switch span.on{color:#6bc406}.switch .toggle{position:absolute;top:1px;width:37px;height:25px;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.3);border-radius:4px;background:#fff;background:-moz-linear-gradient(top, #ececec 0%, #fff 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #ececec), color-stop(100%, #fff));background:-webkit-linear-gradient(top, #ececec 0%, #fff 100%);background:-o-linear-gradient(top, #ececec 0%, #fff 100%);background:-ms-linear-gradient(top, #ececec 0%, #fff 100%);background:linear-gradient(top, #ececec 0%, #fff 100%);box-shadow:inset 0px 1px 0px 0px rgba(255,255,255,0.5);z-index:999;-moz-transition:all 0.15s ease-in-out;-o-transition:all 0.15s ease-in-out;-ms-transition:all 0.15s ease-in-out;-webkit-transition:all 0.15s ease-in-out;transition:all 0.15s ease-in-out}.switch.on .toggle{left:2%}.switch.off .toggle{left:54%}.switch.round{padding:0px 20px;border-radius:40px}.switch.round .toggle{border-radius:40px;width:14px;height:14px}.switch.round.on .toggle{left:3%;background:#6bc406}.switch.round.off .toggle{left:58%}.switch-label{font-size:20px;line-height:31px;margin:0 5px}#fs_log_book table{font-family:Consolas,Monaco,monospace;font-size:12px}#fs_log_book table th{color:#ccc}#fs_log_book table tr{background:#232525}#fs_log_book table tr.alternate{background:#2b2b2b}#fs_log_book table tr td.fs-col--logger{color:#5a7435}#fs_log_book table tr td.fs-col--type{color:#ffc861}#fs_log_book table tr td.fs-col--function{color:#a7b7b1;font-weight:bold}#fs_log_book table tr td.fs-col--message,#fs_log_book table tr td.fs-col--message a{color:#9a73ac !important}#fs_log_book table tr td.fs-col--file{color:#d07922}#fs_log_book table tr td.fs-col--timestamp{color:#6596be}
1
+ .switch{position:relative;display:inline-block;font-size:1.6em;font-weight:bold;color:#ccc;text-shadow:0px 1px 1px rgba(255,255,255,0.8);height:18px;padding:6px 6px 5px 6px;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);border-radius:4px;background:#ececec;box-shadow:0px 0px 4px rgba(0,0,0,0.1),inset 0px 1px 3px 0px rgba(0,0,0,0.1);cursor:pointer}.switch span{display:inline-block;width:35px;text-transform:uppercase}.switch span.on{color:#6bc406}.switch .toggle{position:absolute;top:1px;width:37px;height:25px;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.3);border-radius:4px;background:#fff;background:-moz-linear-gradient(top, #ececec 0%, #fff 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #ececec), color-stop(100%, #fff));background:-webkit-linear-gradient(top, #ececec 0%, #fff 100%);background:-o-linear-gradient(top, #ececec 0%, #fff 100%);background:-ms-linear-gradient(top, #ececec 0%, #fff 100%);background:linear-gradient(top, #ececec 0%, #fff 100%);box-shadow:inset 0px 1px 0px 0px rgba(255,255,255,0.5);z-index:999;-moz-transition:all 0.15s ease-in-out;-o-transition:all 0.15s ease-in-out;-ms-transition:all 0.15s ease-in-out;-webkit-transition:all 0.15s ease-in-out;transition:all 0.15s ease-in-out}.switch.on .toggle{left:2%}.switch.off .toggle{left:54%}.switch.round{padding:0px 20px;border-radius:40px}.switch.round .toggle{border-radius:40px;width:14px;height:14px}.switch.round.on .toggle{left:3%;background:#6bc406}.switch.round.off .toggle{left:58%}.switch-label{font-size:20px;line-height:31px;margin:0 5px}#fs_log_book table{font-family:Consolas,Monaco,monospace;font-size:12px}#fs_log_book table th{color:#ccc}#fs_log_book table tr{background:#232525}#fs_log_book table tr.alternate{background:#2b2b2b}#fs_log_book table tr td.fs-col--logger{color:#5a7435}#fs_log_book table tr td.fs-col--type{color:#ffc861}#fs_log_book table tr td.fs-col--function{color:#a7b7b1;font-weight:bold}#fs_log_book table tr td.fs-col--message,#fs_log_book table tr td.fs-col--message a{color:#9a73ac !important}#fs_log_book table tr td.fs-col--file{color:#d07922}#fs_log_book table tr td.fs-col--timestamp{color:#6596be}
freemius/assets/css/admin/dialog-boxes.css CHANGED
@@ -1,2 +1,2 @@
1
- .fs-modal{position:fixed;overflow:auto;height:100%;width:100%;top:0;z-index:100000;display:none;background:rgba(0,0,0,0.6)}.fs-modal .fs-modal-dialog{background:transparent;position:absolute;left:50%;margin-left:-298px;padding-bottom:30px;top:-100%;z-index:100001;width:596px}@media (max-width: 650px){.fs-modal .fs-modal-dialog{margin-left:-50%;box-sizing:border-box;padding-left:10px;padding-right:10px;width:100%}.fs-modal .fs-modal-dialog .fs-modal-panel>h3>strong{font-size:1.3em}}.fs-modal.active{display:block}.fs-modal.active:before{display:block}.fs-modal.active .fs-modal-dialog{top:10%}.fs-modal.fs-success .fs-modal-header{border-bottom-color:#46b450}.fs-modal.fs-success .fs-modal-body{background-color:#f7fff7}.fs-modal.fs-warn .fs-modal-header{border-bottom-color:#ffb900}.fs-modal.fs-warn .fs-modal-body{background-color:#fff8e5}.fs-modal.fs-error .fs-modal-header{border-bottom-color:#dc3232}.fs-modal.fs-error .fs-modal-body{background-color:#ffeaea}.fs-modal .fs-modal-body,.fs-modal .fs-modal-footer{border:0;background:#fefefe;padding:20px}.fs-modal .fs-modal-header{border-bottom:#eeeeee solid 1px;background:#fbfbfb;padding:15px 20px;position:relative;margin-bottom:-10px}.fs-modal .fs-modal-header h4{margin:0;padding:0;text-transform:uppercase;font-size:1.2em;font-weight:bold;color:#cacaca;text-shadow:1px 1px 1px #fff;letter-spacing:0.6px;-webkit-font-smoothing:antialiased}.fs-modal .fs-modal-header .fs-close{position:absolute;right:10px;top:12px;cursor:pointer;color:#bbb;-moz-border-radius:20px;-webkit-border-radius:20px;border-radius:20px;padding:3px;-moz-transition:all 0.2s ease-in-out;-o-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.fs-modal .fs-modal-header .fs-close:hover{color:#fff;background:#aaa}.fs-modal .fs-modal-body{border-bottom:0}.fs-modal .fs-modal-body p{font-size:14px}.fs-modal .fs-modal-body h2{font-size:20px;line-height:1.5em}.fs-modal .fs-modal-body>div{margin-top:10px}.fs-modal .fs-modal-body>div h2{font-weight:bold;font-size:20px;margin-top:0}.fs-modal .fs-modal-footer{border-top:#eeeeee solid 1px;text-align:right}.fs-modal .fs-modal-footer>.button{margin:0 7px}.fs-modal .fs-modal-footer>.button:first-child{margin:0}.fs-modal .fs-modal-panel>.notice.inline{margin:0;display:none}.fs-modal .fs-modal-panel:not(.active){display:none}.rtl .fs-modal .fs-modal-header .fs-close{right:auto;left:20px}body.has-fs-modal{overflow:hidden}.fs-modal.fs-modal-deactivation-feedback .reason-input,.fs-modal.fs-modal-deactivation-feedback .internal-message{margin:3px 0 3px 22px}.fs-modal.fs-modal-deactivation-feedback .reason-input input,.fs-modal.fs-modal-deactivation-feedback .reason-input textarea,.fs-modal.fs-modal-deactivation-feedback .internal-message input,.fs-modal.fs-modal-deactivation-feedback .internal-message textarea{width:100%}.fs-modal.fs-modal-deactivation-feedback li.reason.has-internal-message .internal-message{border:1px solid #ccc;padding:7px;display:none}@media (max-width: 650px){.fs-modal.fs-modal-deactivation-feedback li.reason li.reason{margin-bottom:10px}.fs-modal.fs-modal-deactivation-feedback li.reason li.reason .reason-input,.fs-modal.fs-modal-deactivation-feedback li.reason li.reason .internal-message{margin-left:29px}.fs-modal.fs-modal-deactivation-feedback li.reason li.reason label{display:table}.fs-modal.fs-modal-deactivation-feedback li.reason li.reason label>span{display:table-cell;font-size:1.3em}}.fs-modal.fs-modal-deactivation-feedback .anonymous-feedback-label{float:left}.fs-modal.fs-modal-deactivation-feedback .fs-modal-panel{margin-top:0 !important}.fs-modal.fs-modal-deactivation-feedback .fs-modal-panel h3{margin-top:0;line-height:1.5em}#the-list .deactivate>.fs-slug{display:none}.fs-modal.fs-modal-license-activation .fs-modal-body input.license_key{width:100%}.fs-modal.fs-modal-license-key-resend .email-address-container{overflow:hidden;padding-right:2px}.fs-modal.fs-modal-license-key-resend.fs-freemium input.email-address{width:300px}.fs-modal.fs-modal-license-key-resend.fs-freemium label{display:block;margin-bottom:10px}.fs-modal.fs-modal-license-key-resend.fs-premium input.email-address{width:100%}.fs-modal.fs-modal-license-key-resend.fs-premium .button-container{float:right;margin-left:7px}@media (max-width: 650px){.fs-modal.fs-modal-license-key-resend.fs-premium .button-container{margin-top:2px}}
2
- .rtl .fs-modal.fs-modal-license-key-resend .fs-modal-body .input-container>.email-address-container{padding-left:2px;padding-right:0}.rtl .fs-modal.fs-modal-license-key-resend .fs-modal-body .button-container{float:left;margin-right:7px;margin-left:0}a.show-license-resend-modal{margin-top:4px;display:inline-block}.fs-ajax-loader{position:relative;width:170px;height:20px;margin:auto}.fs-ajax-loader .fs-ajax-loader-bar{position:absolute;top:0;background-color:#0074a3;width:20px;height:20px;-webkit-animation-name:bounce_ajaxLoader;-moz-animation-name:bounce_ajaxLoader;-ms-animation-name:bounce_ajaxLoader;-o-animation-name:bounce_ajaxLoader;animation-name:bounce_ajaxLoader;-webkit-animation-duration:1.5s;-moz-animation-duration:1.5s;-ms-animation-duration:1.5s;-o-animation-duration:1.5s;animation-duration:1.5s;animation-iteration-count:infinite;-o-animation-iteration-count:infinite;-ms-animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;-moz-animation-iteration-count:infinite;-webkit-animation-direction:normal;-moz-animation-direction:normal;-ms-animation-direction:normal;-o-animation-direction:normal;animation-direction:normal;-moz-transform:0.3;-o-transform:0.3;-ms-transform:0.3;-webkit-transform:0.3;transform:0.3}.fs-ajax-loader .fs-ajax-loader-bar-1{left:0px;animation-delay:0.6s;-o-animation-delay:0.6s;-ms-animation-delay:0.6s;-webkit-animation-delay:0.6s;-moz-animation-delay:0.6s}.fs-ajax-loader .fs-ajax-loader-bar-2{left:19px;animation-delay:0.75s;-o-animation-delay:0.75s;-ms-animation-delay:0.75s;-webkit-animation-delay:0.75s;-moz-animation-delay:0.75s}.fs-ajax-loader .fs-ajax-loader-bar-3{left:38px;animation-delay:0.9s;-o-animation-delay:0.9s;-ms-animation-delay:0.9s;-webkit-animation-delay:0.9s;-moz-animation-delay:0.9s}.fs-ajax-loader .fs-ajax-loader-bar-4{left:57px;animation-delay:1.05s;-o-animation-delay:1.05s;-ms-animation-delay:1.05s;-webkit-animation-delay:1.05s;-moz-animation-delay:1.05s}.fs-ajax-loader .fs-ajax-loader-bar-5{left:76px;animation-delay:1.2s;-o-animation-delay:1.2s;-ms-animation-delay:1.2s;-webkit-animation-delay:1.2s;-moz-animation-delay:1.2s}.fs-ajax-loader .fs-ajax-loader-bar-6{left:95px;animation-delay:1.35s;-o-animation-delay:1.35s;-ms-animation-delay:1.35s;-webkit-animation-delay:1.35s;-moz-animation-delay:1.35s}.fs-ajax-loader .fs-ajax-loader-bar-7{left:114px;animation-delay:1.5s;-o-animation-delay:1.5s;-ms-animation-delay:1.5s;-webkit-animation-delay:1.5s;-moz-animation-delay:1.5s}.fs-ajax-loader .fs-ajax-loader-bar-8{left:133px;animation-delay:1.65s;-o-animation-delay:1.65s;-ms-animation-delay:1.65s;-webkit-animation-delay:1.65s;-moz-animation-delay:1.65s}@-moz-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@-ms-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@-o-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@-webkit-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}.fs-modal-auto-install #request-filesystem-credentials-form h2,.fs-modal-auto-install #request-filesystem-credentials-form .request-filesystem-credentials-action-buttons{display:none}.fs-modal-auto-install #request-filesystem-credentials-form input[type=password],.fs-modal-auto-install #request-filesystem-credentials-form input[type=email],.fs-modal-auto-install #request-filesystem-credentials-form input[type=text]{-webkit-appearance:none;padding:10px 10px 5px 10px;width:300px;max-width:100%}.fs-modal-auto-install #request-filesystem-credentials-form>div,.fs-modal-auto-install #request-filesystem-credentials-form label,.fs-modal-auto-install #request-filesystem-credentials-form fieldset{width:300px;max-width:100%;margin:0 auto;display:block}
1
+ .fs-modal{position:fixed;overflow:auto;height:100%;width:100%;top:0;z-index:100000;display:none;background:rgba(0,0,0,0.6)}.fs-modal .fs-modal-dialog{background:transparent;position:absolute;left:50%;margin-left:-298px;padding-bottom:30px;top:-100%;z-index:100001;width:596px}@media (max-width: 650px){.fs-modal .fs-modal-dialog{margin-left:-50%;box-sizing:border-box;padding-left:10px;padding-right:10px;width:100%}.fs-modal .fs-modal-dialog .fs-modal-panel>h3>strong{font-size:1.3em}}.fs-modal.active{display:block}.fs-modal.active:before{display:block}.fs-modal.active .fs-modal-dialog{top:10%}.fs-modal.fs-success .fs-modal-header{border-bottom-color:#46b450}.fs-modal.fs-success .fs-modal-body{background-color:#f7fff7}.fs-modal.fs-warn .fs-modal-header{border-bottom-color:#ffb900}.fs-modal.fs-warn .fs-modal-body{background-color:#fff8e5}.fs-modal.fs-error .fs-modal-header{border-bottom-color:#dc3232}.fs-modal.fs-error .fs-modal-body{background-color:#ffeaea}.fs-modal .fs-modal-body,.fs-modal .fs-modal-footer{border:0;background:#fefefe;padding:20px}.fs-modal .fs-modal-header{border-bottom:#eeeeee solid 1px;background:#fbfbfb;padding:15px 20px;position:relative;margin-bottom:-10px}.fs-modal .fs-modal-header h4{margin:0;padding:0;text-transform:uppercase;font-size:1.2em;font-weight:bold;color:#cacaca;text-shadow:1px 1px 1px #fff;letter-spacing:0.6px;-webkit-font-smoothing:antialiased}.fs-modal .fs-modal-header .fs-close{position:absolute;right:10px;top:12px;cursor:pointer;color:#bbb;-moz-border-radius:20px;-webkit-border-radius:20px;border-radius:20px;padding:3px;-moz-transition:all 0.2s ease-in-out;-o-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.fs-modal .fs-modal-header .fs-close:hover{color:#fff;background:#aaa}.fs-modal .fs-modal-body{border-bottom:0}.fs-modal .fs-modal-body p{font-size:14px}.fs-modal .fs-modal-body h2{font-size:20px;line-height:1.5em}.fs-modal .fs-modal-body>div{margin-top:10px}.fs-modal .fs-modal-body>div h2{font-weight:bold;font-size:20px;margin-top:0}.fs-modal .fs-modal-footer{border-top:#eeeeee solid 1px;text-align:right}.fs-modal .fs-modal-footer>.button{margin:0 7px}.fs-modal .fs-modal-footer>.button:first-child{margin:0}.fs-modal .fs-modal-panel>.notice.inline{margin:0;display:none}.fs-modal .fs-modal-panel:not(.active){display:none}.rtl .fs-modal .fs-modal-header .fs-close{right:auto;left:20px}body.has-fs-modal{overflow:hidden}.fs-modal.fs-modal-deactivation-feedback .reason-input,.fs-modal.fs-modal-deactivation-feedback .internal-message{margin:3px 0 3px 22px}.fs-modal.fs-modal-deactivation-feedback .reason-input input,.fs-modal.fs-modal-deactivation-feedback .reason-input textarea,.fs-modal.fs-modal-deactivation-feedback .internal-message input,.fs-modal.fs-modal-deactivation-feedback .internal-message textarea{width:100%}.fs-modal.fs-modal-deactivation-feedback li.reason.has-internal-message .internal-message{border:1px solid #ccc;padding:7px;display:none}@media (max-width: 650px){.fs-modal.fs-modal-deactivation-feedback li.reason li.reason{margin-bottom:10px}.fs-modal.fs-modal-deactivation-feedback li.reason li.reason .reason-input,.fs-modal.fs-modal-deactivation-feedback li.reason li.reason .internal-message{margin-left:29px}.fs-modal.fs-modal-deactivation-feedback li.reason li.reason label{display:table}.fs-modal.fs-modal-deactivation-feedback li.reason li.reason label>span{display:table-cell;font-size:1.3em}}.fs-modal.fs-modal-deactivation-feedback .anonymous-feedback-label{float:left}.fs-modal.fs-modal-deactivation-feedback .fs-modal-panel{margin-top:0 !important}.fs-modal.fs-modal-deactivation-feedback .fs-modal-panel h3{margin-top:0;line-height:1.5em}#the-list .deactivate>.fs-slug{display:none}.fs-modal.fs-modal-license-activation .fs-modal-body input.license_key{width:100%}.fs-modal.fs-modal-license-key-resend .email-address-container{overflow:hidden;padding-right:2px}.fs-modal.fs-modal-license-key-resend.fs-freemium input.email-address{width:300px}.fs-modal.fs-modal-license-key-resend.fs-freemium label{display:block;margin-bottom:10px}.fs-modal.fs-modal-license-key-resend.fs-premium input.email-address{width:100%}.fs-modal.fs-modal-license-key-resend.fs-premium .button-container{float:right;margin-left:7px}@media (max-width: 650px){.fs-modal.fs-modal-license-key-resend.fs-premium .button-container{margin-top:2px}}
2
+ .rtl .fs-modal.fs-modal-license-key-resend .fs-modal-body .input-container>.email-address-container{padding-left:2px;padding-right:0}.rtl .fs-modal.fs-modal-license-key-resend .fs-modal-body .button-container{float:left;margin-right:7px;margin-left:0}a.show-license-resend-modal{margin-top:4px;display:inline-block}.fs-ajax-loader{position:relative;width:170px;height:20px;margin:auto}.fs-ajax-loader .fs-ajax-loader-bar{position:absolute;top:0;background-color:#0074a3;width:20px;height:20px;-webkit-animation-name:bounce_ajaxLoader;-moz-animation-name:bounce_ajaxLoader;-ms-animation-name:bounce_ajaxLoader;-o-animation-name:bounce_ajaxLoader;animation-name:bounce_ajaxLoader;-webkit-animation-duration:1.5s;-moz-animation-duration:1.5s;-ms-animation-duration:1.5s;-o-animation-duration:1.5s;animation-duration:1.5s;animation-iteration-count:infinite;-o-animation-iteration-count:infinite;-ms-animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;-moz-animation-iteration-count:infinite;-webkit-animation-direction:normal;-moz-animation-direction:normal;-ms-animation-direction:normal;-o-animation-direction:normal;animation-direction:normal;-moz-transform:0.3;-o-transform:0.3;-ms-transform:0.3;-webkit-transform:0.3;transform:0.3}.fs-ajax-loader .fs-ajax-loader-bar-1{left:0px;animation-delay:0.6s;-o-animation-delay:0.6s;-ms-animation-delay:0.6s;-webkit-animation-delay:0.6s;-moz-animation-delay:0.6s}.fs-ajax-loader .fs-ajax-loader-bar-2{left:19px;animation-delay:0.75s;-o-animation-delay:0.75s;-ms-animation-delay:0.75s;-webkit-animation-delay:0.75s;-moz-animation-delay:0.75s}.fs-ajax-loader .fs-ajax-loader-bar-3{left:38px;animation-delay:0.9s;-o-animation-delay:0.9s;-ms-animation-delay:0.9s;-webkit-animation-delay:0.9s;-moz-animation-delay:0.9s}.fs-ajax-loader .fs-ajax-loader-bar-4{left:57px;animation-delay:1.05s;-o-animation-delay:1.05s;-ms-animation-delay:1.05s;-webkit-animation-delay:1.05s;-moz-animation-delay:1.05s}.fs-ajax-loader .fs-ajax-loader-bar-5{left:76px;animation-delay:1.2s;-o-animation-delay:1.2s;-ms-animation-delay:1.2s;-webkit-animation-delay:1.2s;-moz-animation-delay:1.2s}.fs-ajax-loader .fs-ajax-loader-bar-6{left:95px;animation-delay:1.35s;-o-animation-delay:1.35s;-ms-animation-delay:1.35s;-webkit-animation-delay:1.35s;-moz-animation-delay:1.35s}.fs-ajax-loader .fs-ajax-loader-bar-7{left:114px;animation-delay:1.5s;-o-animation-delay:1.5s;-ms-animation-delay:1.5s;-webkit-animation-delay:1.5s;-moz-animation-delay:1.5s}.fs-ajax-loader .fs-ajax-loader-bar-8{left:133px;animation-delay:1.65s;-o-animation-delay:1.65s;-ms-animation-delay:1.65s;-webkit-animation-delay:1.65s;-moz-animation-delay:1.65s}@-moz-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@-ms-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@-o-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@-webkit-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}.fs-modal-auto-install #request-filesystem-credentials-form h2,.fs-modal-auto-install #request-filesystem-credentials-form .request-filesystem-credentials-action-buttons{display:none}.fs-modal-auto-install #request-filesystem-credentials-form input[type=password],.fs-modal-auto-install #request-filesystem-credentials-form input[type=email],.fs-modal-auto-install #request-filesystem-credentials-form input[type=text]{-webkit-appearance:none;padding:10px 10px 5px 10px;width:300px;max-width:100%}.fs-modal-auto-install #request-filesystem-credentials-form>div,.fs-modal-auto-install #request-filesystem-credentials-form label,.fs-modal-auto-install #request-filesystem-credentials-form fieldset{width:300px;max-width:100%;margin:0 auto;display:block}
freemius/assets/css/admin/license-activation.css CHANGED
@@ -1 +1 @@
1
- .fs-modal{position:fixed;overflow:auto;height:100%;width:100%;top:0;z-index:100000;display:none;background:rgba(0,0,0,0.6)}.fs-modal .fs-modal-dialog{background:transparent;position:absolute;left:50%;margin-left:-298px;padding-bottom:30px;top:-100%;z-index:100001;width:596px}@media (max-width: 650px){.fs-modal .fs-modal-dialog{margin-left:-50%;box-sizing:border-box;padding-left:10px;padding-right:10px;width:100%}.fs-modal .fs-modal-dialog .fs-modal-panel>h3>strong{font-size:1.3em}}.fs-modal.active{display:block}.fs-modal.active:before{display:block}.fs-modal.active .fs-modal-dialog{top:10%}.fs-modal .fs-modal-body,.fs-modal .fs-modal-footer{border:0;background:#fefefe;padding:20px}.fs-modal .fs-modal-body{border-bottom:0}.fs-modal .fs-modal-body .license-activation-message{margin:0;display:none}.fs-modal .fs-modal-body input.license_key{width:100%}.fs-modal .fs-modal-body p{font-size:14px}.fs-modal .fs-modal-body h2{font-size:20px}.fs-modal .fs-modal-body>div{margin-top:10px}.fs-modal .fs-modal-body>div h2{font-weight:bold;font-size:20px;margin-top:0}.fs-modal .fs-modal-footer{border-top:#eeeeee solid 1px;text-align:right}.fs-modal .fs-modal-footer>.button{margin:0 7px}.fs-modal .fs-modal-footer>.button:first-child{margin:0}.fs-modal .fs-modal-panel:not(.active){display:none}body.has-fs-modal{overflow:hidden}
1
+ .fs-modal{position:fixed;overflow:auto;height:100%;width:100%;top:0;z-index:100000;display:none;background:rgba(0,0,0,0.6)}.fs-modal .fs-modal-dialog{background:transparent;position:absolute;left:50%;margin-left:-298px;padding-bottom:30px;top:-100%;z-index:100001;width:596px}@media (max-width: 650px){.fs-modal .fs-modal-dialog{margin-left:-50%;box-sizing:border-box;padding-left:10px;padding-right:10px;width:100%}.fs-modal .fs-modal-dialog .fs-modal-panel>h3>strong{font-size:1.3em}}.fs-modal.active{display:block}.fs-modal.active:before{display:block}.fs-modal.active .fs-modal-dialog{top:10%}.fs-modal .fs-modal-body,.fs-modal .fs-modal-footer{border:0;background:#fefefe;padding:20px}.fs-modal .fs-modal-body{border-bottom:0}.fs-modal .fs-modal-body .license-activation-message{margin:0;display:none}.fs-modal .fs-modal-body input.license_key{width:100%}.fs-modal .fs-modal-body p{font-size:14px}.fs-modal .fs-modal-body h2{font-size:20px}.fs-modal .fs-modal-body>div{margin-top:10px}.fs-modal .fs-modal-body>div h2{font-weight:bold;font-size:20px;margin-top:0}.fs-modal .fs-modal-footer{border-top:#eeeeee solid 1px;text-align:right}.fs-modal .fs-modal-footer>.button{margin:0 7px}.fs-modal .fs-modal-footer>.button:first-child{margin:0}.fs-modal .fs-modal-panel:not(.active){display:none}body.has-fs-modal{overflow:hidden}
freemius/assets/css/customizer.css CHANGED
@@ -1 +1 @@
1
- #fs_customizer_upsell .fs-customizer-plan{padding:10px 20px 20px 20px;border-radius:3px;background:#fff}#fs_customizer_upsell .fs-customizer-plan h2{position:relative;margin:0;line-height:2em;text-transform:uppercase}#fs_customizer_upsell .fs-customizer-plan h2 .button-link{top:-2px}#fs_customizer_upsell .fs-feature{position:relative}#fs_customizer_upsell .dashicons-yes{color:#0085ba;font-size:2em;vertical-align:bottom;margin-left:-7px;margin-right:10px}.rtl #fs_customizer_upsell .dashicons-yes{margin-left:10px;margin-right:-7px}#fs_customizer_upsell .dashicons-editor-help{color:#bbb;cursor:help}#fs_customizer_upsell .dashicons-editor-help .fs-feature-desc{opacity:0;visibility:hidden;-moz-transition:opacity 0.3s ease-in-out;-o-transition:opacity 0.3s ease-in-out;-ms-transition:opacity 0.3s ease-in-out;-webkit-transition:opacity 0.3s ease-in-out;transition:opacity 0.3s ease-in-out;position:absolute;background:#000;color:#fff;font-family:'arial', serif;font-size:12px;padding:10px;z-index:999999;bottom:100%;margin-bottom:5px;left:0;right:0;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-moz-box-shadow:1px 1px 1px rgba(0,0,0,0.2);-webkit-box-shadow:1px 1px 1px rgba(0,0,0,0.2);box-shadow:1px 1px 1px rgba(0,0,0,0.2);line-height:1.3em;font-weight:bold;text-align:left}.rtl #fs_customizer_upsell .dashicons-editor-help .fs-feature-desc{text-align:right}#fs_customizer_upsell .dashicons-editor-help .fs-feature-desc::after{content:' ';display:block;width:0;height:0;border-style:solid;border-width:5px 5px 0 5px;border-color:#000 transparent transparent transparent;position:absolute;top:100%;left:21px}.rtl #fs_customizer_upsell .dashicons-editor-help .fs-feature-desc::after{right:21px;left:auto}#fs_customizer_upsell .dashicons-editor-help:hover .fs-feature-desc{visibility:visible;opacity:1}#fs_customizer_upsell .button-primary{display:block;text-align:center;margin-top:10px}#fs_customizer_support{display:block !important}#fs_customizer_support .button{float:right}#fs_customizer_support .button-group{width:100%;display:block;margin-top:10px}#fs_customizer_support .button-group .button{float:none;width:50%;text-align:center}
1
+ #fs_customizer_upsell .fs-customizer-plan{padding:10px 20px 20px 20px;border-radius:3px;background:#fff}#fs_customizer_upsell .fs-customizer-plan h2{position:relative;margin:0;line-height:2em;text-transform:uppercase}#fs_customizer_upsell .fs-customizer-plan h2 .button-link{top:-2px}#fs_customizer_upsell .fs-feature{position:relative}#fs_customizer_upsell .dashicons-yes{color:#0085ba;font-size:2em;vertical-align:bottom;margin-left:-7px;margin-right:10px}.rtl #fs_customizer_upsell .dashicons-yes{margin-left:10px;margin-right:-7px}#fs_customizer_upsell .dashicons-editor-help{color:#bbb;cursor:help}#fs_customizer_upsell .dashicons-editor-help .fs-feature-desc{opacity:0;visibility:hidden;-moz-transition:opacity 0.3s ease-in-out;-o-transition:opacity 0.3s ease-in-out;-ms-transition:opacity 0.3s ease-in-out;-webkit-transition:opacity 0.3s ease-in-out;transition:opacity 0.3s ease-in-out;position:absolute;background:#000;color:#fff;font-family:'arial', serif;font-size:12px;padding:10px;z-index:999999;bottom:100%;margin-bottom:5px;left:0;right:0;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-moz-box-shadow:1px 1px 1px rgba(0,0,0,0.2);-webkit-box-shadow:1px 1px 1px rgba(0,0,0,0.2);box-shadow:1px 1px 1px rgba(0,0,0,0.2);line-height:1.3em;font-weight:bold;text-align:left}.rtl #fs_customizer_upsell .dashicons-editor-help .fs-feature-desc{text-align:right}#fs_customizer_upsell .dashicons-editor-help .fs-feature-desc::after{content:' ';display:block;width:0;height:0;border-style:solid;border-width:5px 5px 0 5px;border-color:#000 transparent transparent transparent;position:absolute;top:100%;left:21px}.rtl #fs_customizer_upsell .dashicons-editor-help .fs-feature-desc::after{right:21px;left:auto}#fs_customizer_upsell .dashicons-editor-help:hover .fs-feature-desc{visibility:visible;opacity:1}#fs_customizer_upsell .button-primary{display:block;text-align:center;margin-top:10px}#fs_customizer_support{display:block !important}#fs_customizer_support .button{float:right}#fs_customizer_support .button-group{width:100%;display:block;margin-top:10px}#fs_customizer_support .button-group .button{float:none;width:50%;text-align:center}
freemius/assets/index.php CHANGED
@@ -1,3 +1,3 @@
1
- <?php
2
- // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
1
+ <?php
2
+ // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
freemius/assets/js/nojquery.ba-postmessage.js CHANGED
@@ -1,140 +1,140 @@
1
- /*!
2
- * jQuery postMessage - v0.5 - 9/11/2009
3
- * http://benalman.com/projects/jquery-postmessage-plugin/
4
- *
5
- * Copyright (c) 2009 "Cowboy" Ben Alman
6
- * Dual licensed under the MIT and GPL licenses.
7
- * http://benalman.com/about/license/
8
- *
9
- * Non-jQuery fork by Jeff Lee
10
- *
11
- * This fork consists of the following changes:
12
- * 1. Basic code cleanup and restructuring, for legibility.
13
- * 2. The `postMessage` and `receiveMessage` functions can be bound arbitrarily,
14
- * in terms of both function names and object scope. Scope is specified by
15
- * the the "this" context of NoJQueryPostMessageMixin();
16
- * 3. I've removed the check for Opera 9.64, which used `$.browser`. There were
17
- * at least three different GitHub users requesting the removal of this
18
- * "Opera sniff" on the original project's Issues page, so I figured this
19
- * would be a relatively safe change.
20
- * 4. `postMessage` no longer uses `$.param` to serialize messages that are not
21
- * strings. I actually prefer this structure anyway. `receiveMessage` does
22
- * not implement a corresponding deserialization step, and as such it seems
23
- * cleaner and more symmetric to leave both data serialization and
24
- * deserialization to the client.
25
- * 5. The use of `$.isFunction` is replaced by a functionally-identical check.
26
- * 6. The `$:nomunge` YUI option is no longer necessary.
27
- */
28
-
29
- function NoJQueryPostMessageMixin(postBinding, receiveBinding) {
30
-
31
- var setMessageCallback, unsetMessageCallback, currentMsgCallback,
32
- intervalId, lastHash, cacheBust = 1;
33
-
34
- if (window.postMessage) {
35
-
36
- if (window.addEventListener) {
37
- setMessageCallback = function(callback) {
38
- window.addEventListener('message', callback, false);
39
- }
40
-
41
- unsetMessageCallback = function(callback) {
42
- window.removeEventListener('message', callback, false);
43
- }
44
- } else {
45
- setMessageCallback = function(callback) {
46
- window.attachEvent('onmessage', callback);
47
- }
48
-
49
- unsetMessageCallback = function(callback) {
50
- window.detachEvent('onmessage', callback);
51
- }
52
- }
53
-
54
- this[postBinding] = function(message, targetUrl, target) {
55
- if (!targetUrl) {
56
- return;
57
- }
58
-
59
- // The browser supports window.postMessage, so call it with a targetOrigin
60
- // set appropriately, based on the targetUrl parameter.
61
- target.postMessage( message, targetUrl.replace( /([^:]+:\/\/[^\/]+).*/, '$1' ) );
62
- }
63
-
64
- // Since the browser supports window.postMessage, the callback will be
65
- // bound to the actual event associated with window.postMessage.
66
- this[receiveBinding] = function(callback, sourceOrigin, delay) {
67
- // Unbind an existing callback if it exists.
68
- if (currentMsgCallback) {
69
- unsetMessageCallback(currentMsgCallback);
70
- currentMsgCallback = null;
71
- }
72
-
73
- if (!callback) {
74
- return false;
75
- }
76
-
77
- // Bind the callback. A reference to the callback is stored for ease of
78
- // unbinding.
79
- currentMsgCallback = setMessageCallback(function(e) {
80
- switch(Object.prototype.toString.call(sourceOrigin)) {
81
- case '[object String]':
82
- if (sourceOrigin !== e.origin) {
83
- return false;
84
- }
85
- break;
86
- case '[object Function]':
87
- if (sourceOrigin(e.origin)) {
88
- return false;
89
- }
90
- break;
91
- }
92
-
93
- callback(e);
94
- });
95
- };
96
-
97
- } else {
98
-
99
- this[postBinding] = function(message, targetUrl, target) {
100
- if (!targetUrl) {
101
- return;
102
- }
103
-
104
- // The browser does not support window.postMessage, so set the location
105
- // of the target to targetUrl#message. A bit ugly, but it works! A cache
106
- // bust parameter is added to ensure that repeat messages trigger the
107
- // callback.
108
- target.location = targetUrl.replace( /#.*$/, '' ) + '#' + (+new Date) + (cacheBust++) + '&' + message;
109
- }
110
-
111
- // Since the browser sucks, a polling loop will be started, and the
112
- // callback will be called whenever the location.hash changes.
113
- this[receiveBinding] = function(callback, sourceOrigin, delay) {
114
- if (intervalId) {
115
- clearInterval(intervalId);
116
- intervalId = null;
117
- }
118
-
119
- if (callback) {
120
- delay = typeof sourceOrigin === 'number'
121
- ? sourceOrigin
122
- : typeof delay === 'number'
123
- ? delay
124
- : 100;
125
-
126
- intervalId = setInterval(function(){
127
- var hash = document.location.hash,
128
- re = /^#?\d+&/;
129
- if ( hash !== lastHash && re.test( hash ) ) {
130
- lastHash = hash;
131
- callback({ data: hash.replace( re, '' ) });
132
- }
133
- }, delay );
134
- }
135
- };
136
-
137
- }
138
-
139
- return this;
140
  }
1
+ /*!
2
+ * jQuery postMessage - v0.5 - 9/11/2009
3
+ * http://benalman.com/projects/jquery-postmessage-plugin/
4
+ *
5
+ * Copyright (c) 2009 "Cowboy" Ben Alman
6
+ * Dual licensed under the MIT and GPL licenses.
7
+ * http://benalman.com/about/license/
8
+ *
9
+ * Non-jQuery fork by Jeff Lee
10
+ *
11
+ * This fork consists of the following changes:
12
+ * 1. Basic code cleanup and restructuring, for legibility.
13
+ * 2. The `postMessage` and `receiveMessage` functions can be bound arbitrarily,
14
+ * in terms of both function names and object scope. Scope is specified by
15
+ * the the "this" context of NoJQueryPostMessageMixin();
16
+ * 3. I've removed the check for Opera 9.64, which used `$.browser`. There were
17
+ * at least three different GitHub users requesting the removal of this
18
+ * "Opera sniff" on the original project's Issues page, so I figured this
19
+ * would be a relatively safe change.
20
+ * 4. `postMessage` no longer uses `$.param` to serialize messages that are not
21
+ * strings. I actually prefer this structure anyway. `receiveMessage` does
22
+ * not implement a corresponding deserialization step, and as such it seems
23
+ * cleaner and more symmetric to leave both data serialization and
24
+ * deserialization to the client.
25
+ * 5. The use of `$.isFunction` is replaced by a functionally-identical check.
26
+ * 6. The `$:nomunge` YUI option is no longer necessary.
27
+ */
28
+
29
+ function NoJQueryPostMessageMixin(postBinding, receiveBinding) {
30
+
31
+ var setMessageCallback, unsetMessageCallback, currentMsgCallback,
32
+ intervalId, lastHash, cacheBust = 1;
33
+
34
+ if (window.postMessage) {
35
+
36
+ if (window.addEventListener) {
37
+ setMessageCallback = function(callback) {
38
+ window.addEventListener('message', callback, false);
39
+ }
40
+
41
+ unsetMessageCallback = function(callback) {
42
+ window.removeEventListener('message', callback, false);
43
+ }
44
+ } else {
45
+ setMessageCallback = function(callback) {
46
+ window.attachEvent('onmessage', callback);
47
+ }
48
+
49
+ unsetMessageCallback = function(callback) {
50
+ window.detachEvent('onmessage', callback);
51
+ }
52
+ }
53
+
54
+ this[postBinding] = function(message, targetUrl, target) {
55
+ if (!targetUrl) {
56
+ return;
57
+ }
58
+
59
+ // The browser supports window.postMessage, so call it with a targetOrigin
60
+ // set appropriately, based on the targetUrl parameter.
61
+ target.postMessage( message, targetUrl.replace( /([^:]+:\/\/[^\/]+).*/, '$1' ) );
62
+ }
63
+
64
+ // Since the browser supports window.postMessage, the callback will be
65
+ // bound to the actual event associated with window.postMessage.
66
+ this[receiveBinding] = function(callback, sourceOrigin, delay) {
67
+ // Unbind an existing callback if it exists.
68
+ if (currentMsgCallback) {
69
+ unsetMessageCallback(currentMsgCallback);
70
+ currentMsgCallback = null;
71
+ }
72
+
73
+ if (!callback) {
74
+ return false;
75
+ }
76
+
77
+ // Bind the callback. A reference to the callback is stored for ease of
78
+ // unbinding.
79
+ currentMsgCallback = setMessageCallback(function(e) {
80
+ switch(Object.prototype.toString.call(sourceOrigin)) {
81
+ case '[object String]':
82
+ if (sourceOrigin !== e.origin) {
83
+ return false;
84
+ }
85
+ break;
86
+ case '[object Function]':
87
+ if (sourceOrigin(e.origin)) {
88
+ return false;
89
+ }
90
+ break;
91
+ }
92
+
93
+ callback(e);
94
+ });
95
+ };
96
+
97
+ } else {
98
+
99
+ this[postBinding] = function(message, targetUrl, target) {
100
+ if (!targetUrl) {
101
+ return;
102
+ }
103
+
104
+ // The browser does not support window.postMessage, so set the location
105
+ // of the target to targetUrl#message. A bit ugly, but it works! A cache
106
+ // bust parameter is added to ensure that repeat messages trigger the
107
+ // callback.
108
+ target.location = targetUrl.replace( /#.*$/, '' ) + '#' + (+new Date) + (cacheBust++) + '&' + message;
109
+ }
110
+
111
+ // Since the browser sucks, a polling loop will be started, and the
112
+ // callback will be called whenever the location.hash changes.
113
+ this[receiveBinding] = function(callback, sourceOrigin, delay) {
114
+ if (intervalId) {
115
+ clearInterval(intervalId);
116
+ intervalId = null;
117
+ }
118
+
119
+ if (callback) {
120
+ delay = typeof sourceOrigin === 'number'
121
+ ? sourceOrigin
122
+ : typeof delay === 'number'
123
+ ? delay
124
+ : 100;
125
+
126
+ intervalId = setInterval(function(){
127
+ var hash = document.location.hash,
128
+ re = /^#?\d+&/;
129
+ if ( hash !== lastHash && re.test( hash ) ) {
130
+ lastHash = hash;
131
+ callback({ data: hash.replace( re, '' ) });
132
+ }
133
+ }, delay );
134
+ }
135
+ };
136
+
137
+ }
138
+
139
+ return this;
140
  }
freemius/assets/js/nojquery.ba-postmessage.min.js CHANGED
@@ -1,12 +1,12 @@
1
- /*
2
- * nojquery-postmessage by Jeff Lee
3
- * a non-jQuery fork of:
4
- *
5
- * jQuery postMessage - v0.5 - 9/11/2009
6
- * http://benalman.com/projects/jquery-postmessage-plugin/
7
- *
8
- * Copyright (c) 2009 "Cowboy" Ben Alman
9
- * Dual licensed under the MIT and GPL licenses.
10
- * http://benalman.com/about/license/
11
- */
12
  function NoJQueryPostMessageMixin(g,a){var b,h,e,d,f,c=1;if(window.postMessage){if(window.addEventListener){b=function(i){window.addEventListener("message",i,false)};h=function(i){window.removeEventListener("message",i,false)}}else{b=function(i){window.attachEvent("onmessage",i)};h=function(i){window.detachEvent("onmessage",i)}}this[g]=function(i,k,j){if(!k){return}j.postMessage(i,k.replace(/([^:]+:\/\/[^\/]+).*/,"$1"))};this[a]=function(k,j,i){if(e){h(e);e=null}if(!k){return false}e=b(function(l){switch(Object.prototype.toString.call(j)){case"[object String]":if(j!==l.origin){return false}break;case"[object Function]":if(j(l.origin)){return false}break}k(l)})}}else{this[g]=function(i,k,j){if(!k){return}j.location=k.replace(/#.*$/,"")+"#"+(+new Date)+(c++)+"&"+i};this[a]=function(k,j,i){if(d){clearInterval(d);d=null}if(k){i=typeof j==="number"?j:typeof i==="number"?i:100;d=setInterval(function(){var m=document.location.hash,l=/^#?\d+&/;if(m!==f&&l.test(m)){f=m;k({data:m.replace(l,"")})}},i)}}}return this};
1
+ /*
2
+ * nojquery-postmessage by Jeff Lee
3
+ * a non-jQuery fork of:
4
+ *
5
+ * jQuery postMessage - v0.5 - 9/11/2009
6
+ * http://benalman.com/projects/jquery-postmessage-plugin/
7
+ *
8
+ * Copyright (c) 2009 "Cowboy" Ben Alman
9
+ * Dual licensed under the MIT and GPL licenses.
10
+ * http://benalman.com/about/license/
11
+ */
12
  function NoJQueryPostMessageMixin(g,a){var b,h,e,d,f,c=1;if(window.postMessage){if(window.addEventListener){b=function(i){window.addEventListener("message",i,false)};h=function(i){window.removeEventListener("message",i,false)}}else{b=function(i){window.attachEvent("onmessage",i)};h=function(i){window.detachEvent("onmessage",i)}}this[g]=function(i,k,j){if(!k){return}j.postMessage(i,k.replace(/([^:]+:\/\/[^\/]+).*/,"$1"))};this[a]=function(k,j,i){if(e){h(e);e=null}if(!k){return false}e=b(function(l){switch(Object.prototype.toString.call(j)){case"[object String]":if(j!==l.origin){return false}break;case"[object Function]":if(j(l.origin)){return false}break}k(l)})}}else{this[g]=function(i,k,j){if(!k){return}j.location=k.replace(/#.*$/,"")+"#"+(+new Date)+(c++)+"&"+i};this[a]=function(k,j,i){if(d){clearInterval(d);d=null}if(k){i=typeof j==="number"?j:typeof i==="number"?i:100;d=setInterval(function(){var m=document.location.hash,l=/^#?\d+&/;if(m!==f&&l.test(m)){f=m;k({data:m.replace(l,"")})}},i)}}}return this};
freemius/assets/js/postmessage.js CHANGED
@@ -1,135 +1,135 @@
1
- (function ($, undef) {
2
- var global = this;
3
-
4
- // Namespace.
5
- global.FS = global.FS || {};
6
-
7
- global.FS.PostMessage = function ()
8
- {
9
- var
10
- _is_child = false,
11
- _postman = new NoJQueryPostMessageMixin('postMessage', 'receiveMessage'),
12
- _callbacks = {},
13
- _base_url,
14
- _parent_url = decodeURIComponent(document.location.hash.replace(/^#/, '')),
15
- _parent_subdomain = _parent_url.substring(0, _parent_url.indexOf('/', ('https://' === _parent_url.substring(0, ('https://').length)) ? 8 : 7)),
16
- _init = function () {
17
- _postman.receiveMessage(function (e) {
18
- var data = JSON.parse(e.data);
19
-
20
- if (_callbacks[data.type]) {
21
- for (var i = 0; i < _callbacks[data.type].length; i++) {
22
- // Execute type callbacks.
23
- _callbacks[data.type][i](data.data);
24
- }
25
- }
26
- }, _base_url);
27
- },
28
- _hasParent = ('' !== _parent_url),
29
- $window = $(window),
30
- $html = $('html');
31
-
32
- return {
33
- init : function (url, iframes)
34
- {
35
- _base_url = url;
36
- _init();
37
-
38
- // Automatically receive forward messages.
39
- FS.PostMessage.receiveOnce('forward', function (data){
40
- window.location = data.url;
41
- });
42
-
43
- iframes = iframes || [];
44
-
45
- if (iframes.length > 0) {
46
- $window.on('scroll', function () {
47
- for (var i = 0; i < iframes.length; i++) {
48
- FS.PostMessage.postScroll(iframes[i]);
49
- }
50
- });
51
- }
52
- },
53
- init_child : function ()
54
- {
55
- this.init(_parent_subdomain);
56
-
57
- _is_child = true;
58
-
59
- // Post height of a child right after window is loaded.
60
- $(window).bind('load', function () {
61
- FS.PostMessage.postHeight();
62
-
63
- // Post message that window was loaded.
64
- FS.PostMessage.post('loaded');
65
- });
66
- },
67
- hasParent : function ()
68
- {
69
- return _hasParent;
70
- },
71
- postHeight : function (diff, wrapper) {
72
- diff = diff || 0;
73
- wrapper = wrapper || '#wrap_section';
74
- this.post('height', {
75
- height: diff + $(wrapper).outerHeight(true)
76
- });
77
- },
78
- postScroll : function (iframe) {
79
- this.post('scroll', {
80
- top: $window.scrollTop(),
81
- height: ($window.height() - parseFloat($html.css('paddingTop')) - parseFloat($html.css('marginTop')))
82
- }, iframe);
83
- },
84
- post : function (type, data, iframe)
85
- {
86
- console.debug('PostMessage.post', type);
87
-
88
- if (iframe)
89
- {
90
- // Post to iframe.
91
- _postman.postMessage(JSON.stringify({
92
- type: type,
93
- data: data
94
- }), iframe.src, iframe.contentWindow);
95
- }
96
- else {
97
- // Post to parent.
98
- _postman.postMessage(JSON.stringify({
99
- type: type,
100
- data: data
101
- }), _parent_url, window.parent);
102
- }
103
- },
104
- receive: function (type, callback)
105
- {
106
- console.debug('PostMessage.receive', type);
107
-
108
- if (undef === _callbacks[type])
109
- _callbacks[type] = [];
110
-
111
- _callbacks[type].push(callback);
112
- },
113
- receiveOnce: function (type, callback)
114
- {
115
- if (this.is_set(type))
116
- return;
117
-
118
- this.receive(type, callback);
119
- },
120
- // Check if any callbacks assigned to a specified message type.
121
- is_set: function (type)
122
- {
123
- return (undef != _callbacks[type]);
124
- },
125
- parent_url: function ()
126
- {
127
- return _parent_url;
128
- },
129
- parent_subdomain: function ()
130
- {
131
- return _parent_subdomain;
132
- }
133
- };
134
- }();
135
  })(jQuery);
1
+ (function ($, undef) {
2
+ var global = this;
3
+
4
+ // Namespace.
5
+ global.FS = global.FS || {};
6
+
7
+ global.FS.PostMessage = function ()
8
+ {
9
+ var
10
+ _is_child = false,
11
+ _postman = new NoJQueryPostMessageMixin('postMessage', 'receiveMessage'),
12
+ _callbacks = {},
13
+ _base_url,
14
+ _parent_url = decodeURIComponent(document.location.hash.replace(/^#/, '')),
15
+ _parent_subdomain = _parent_url.substring(0, _parent_url.indexOf('/', ('https://' === _parent_url.substring(0, ('https://').length)) ? 8 : 7)),
16
+ _init = function () {
17
+ _postman.receiveMessage(function (e) {
18
+ var data = JSON.parse(e.data);
19
+
20
+ if (_callbacks[data.type]) {
21
+ for (var i = 0; i < _callbacks[data.type].length; i++) {
22
+ // Execute type callbacks.
23
+ _callbacks[data.type][i](data.data);
24
+ }
25
+ }
26
+ }, _base_url);
27
+ },
28
+ _hasParent = ('' !== _parent_url),
29
+ $window = $(window),
30
+ $html = $('html');
31
+
32
+ return {
33
+ init : function (url, iframes)
34
+ {
35
+ _base_url = url;
36
+ _init();
37
+
38
+ // Automatically receive forward messages.
39
+ FS.PostMessage.receiveOnce('forward', function (data){
40
+ window.location = data.url;
41
+ });
42
+
43
+ iframes = iframes || [];
44
+
45
+ if (iframes.length > 0) {
46
+ $window.on('scroll', function () {
47
+ for (var i = 0; i < iframes.length; i++) {
48
+ FS.PostMessage.postScroll(iframes[i]);
49
+ }
50
+ });
51
+ }
52
+ },
53
+ init_child : function ()
54
+ {
55
+ this.init(_parent_subdomain);
56
+
57
+ _is_child = true;
58
+
59
+ // Post height of a child right after window is loaded.
60
+ $(window).bind('load', function () {
61
+ FS.PostMessage.postHeight();
62
+
63
+ // Post message that window was loaded.
64
+ FS.PostMessage.post('loaded');
65
+ });
66
+ },
67
+ hasParent : function ()
68
+ {
69
+ return _hasParent;
70
+ },
71
+ postHeight : function (diff, wrapper) {
72
+ diff = diff || 0;
73
+ wrapper = wrapper || '#wrap_section';
74
+ this.post('height', {
75
+ height: diff + $(wrapper).outerHeight(true)
76
+ });
77
+ },
78
+ postScroll : function (iframe) {
79
+ this.post('scroll', {
80
+ top: $window.scrollTop(),
81
+ height: ($window.height() - parseFloat($html.css('paddingTop')) - parseFloat($html.css('marginTop')))
82
+ }, iframe);
83
+ },
84
+ post : function (type, data, iframe)
85
+ {
86
+ console.debug('PostMessage.post', type);
87
+
88
+ if (iframe)
89
+ {
90
+ // Post to iframe.
91
+ _postman.postMessage(JSON.stringify({
92
+ type: type,
93
+ data: data
94
+ }), iframe.src, iframe.contentWindow);
95
+ }
96
+ else {
97
+ // Post to parent.
98
+ _postman.postMessage(JSON.stringify({
99
+ type: type,
100
+ data: data
101
+ }), _parent_url, window.parent);
102
+ }
103
+ },
104
+ receive: function (type, callback)
105
+ {
106
+ console.debug('PostMessage.receive', type);
107
+
108
+ if (undef === _callbacks[type])
109
+ _callbacks[type] = [];
110
+
111
+ _callbacks[type].push(callback);
112
+ },
113
+ receiveOnce: function (type, callback)
114
+ {
115
+ if (this.is_set(type))
116
+ return;
117
+
118
+ this.receive(type, callback);
119
+ },
120
+ // Check if any callbacks assigned to a specified message type.
121
+ is_set: function (type)
122
+ {
123
+ return (undef != _callbacks[type]);
124
+ },
125
+ parent_url: function ()
126
+ {
127
+ return _parent_url;
128
+ },
129
+ parent_subdomain: function ()
130
+ {
131
+ return _parent_subdomain;
132
+ }
133
+ };
134
+ }();
135
  })(jQuery);
freemius/assets/scss/_colors.scss CHANGED
@@ -1,65 +1,65 @@
1
- $menu-hover-color: #333;
2
- $darkest-color: #000;
3
- $fms-live-color: #71ae00;
4
- $fms-test-color: #f7941d;
5
- $fms-link-color: #29abe1;
6
- $fms-link-hover-color: darken(#29abe1, 10%);
7
- $body-bkg: #111;
8
- $special-color: #d3135a;
9
- $body-color: #f1f1f1;
10
- $fms-white: #f1f1f1;
11
- $container-bkg: #222;
12
- $container-bkg-odd: #262626;
13
- $container-border-color: #333;
14
- $table-head-bkg: #333;
15
- $table-head-color: #999;
16
- $info-color: #999;
17
- $error-color: #ff0000;
18
-
19
- $fs-logo-blue-color: #29abe1;
20
- $fs-logo-green-color: #71ae00;
21
- $fs-logo-magenta-color: #d3135a;
22
-
23
- // WordPress colors.
24
- $page-header-bkg: #333;
25
- $page-header-color: $fms-white;
26
- $text-dark-color: #333;
27
- $text-light-color: #666;
28
- $text-lightest-color: #999;
29
-
30
- // Notices.
31
- $wp-notice-success-color: #f7fff7;
32
- $wp-notice-success-dark-color: #46b450;
33
- $wp-notice-error-color: #ffeaea;
34
- $wp-notice-error-dark-color: #dc3232;
35
- $wp-notice-warn-color: #fff8e5;
36
- $wp-notice-warn-dark-color: #ffb900;
37
- $fs-notice-promotion-border-color: #00a0d2;
38
- $fs-notice-promotion-bkg: #f2fcff;
39
-
40
- // WP Buttons.
41
- $button-primary-bkg: #6bc406;
42
- $button-primary-color: $fms-white;
43
- $button-secondary-bkg: #333;
44
- $button-secondary-color: $fms-white;
45
- $featured-color: #6bc406;
46
- $wp-selected-color: #0074a3;
47
-
48
- $wordpress_color: #01749A;
49
- $blogger_color: #ff8100;
50
- $wix_color: #fac102;
51
- $shopify_color: #80d100;
52
- $addthis_color: #fe6d4e;
53
- $tumblr_color: #34506b;
54
- $zepo_color: #00baf2;
55
- $jquery_color: #000919;
56
- $javascript_color: #00baf2;
57
- $squarespace_color: #000;
58
-
59
- $blog_color: #ff6600;
60
- $facebook_color: #3b5998;
61
- $twitter_color: #4099ff;
62
- $linkedin_color: #4875b4;
63
- $youtube_color: #ff3333;
64
- $gplus_color: #c63d2d;
65
-
1
+ $menu-hover-color: #333;
2
+ $darkest-color: #000;
3
+ $fms-live-color: #71ae00;
4
+ $fms-test-color: #f7941d;
5
+ $fms-link-color: #29abe1;
6
+ $fms-link-hover-color: darken(#29abe1, 10%);
7
+ $body-bkg: #111;
8
+ $special-color: #d3135a;
9
+ $body-color: #f1f1f1;
10
+ $fms-white: #f1f1f1;
11
+ $container-bkg: #222;
12
+ $container-bkg-odd: #262626;
13
+ $container-border-color: #333;
14
+ $table-head-bkg: #333;
15
+ $table-head-color: #999;
16
+ $info-color: #999;
17
+ $error-color: #ff0000;
18
+
19
+ $fs-logo-blue-color: #29abe1;
20
+ $fs-logo-green-color: #71ae00;
21
+ $fs-logo-magenta-color: #d3135a;
22
+
23
+ // WordPress colors.
24
+ $page-header-bkg: #333;
25
+ $page-header-color: $fms-white;
26
+ $text-dark-color: #333;
27
+ $text-light-color: #666;
28
+ $text-lightest-color: #999;
29
+
30
+ // Notices.
31
+ $wp-notice-success-color: #f7fff7;
32
+ $wp-notice-success-dark-color: #46b450;
33
+ $wp-notice-error-color: #ffeaea;
34
+ $wp-notice-error-dark-color: #dc3232;
35
+ $wp-notice-warn-color: #fff8e5;
36
+ $wp-notice-warn-dark-color: #ffb900;
37
+ $fs-notice-promotion-border-color: #00a0d2;
38
+ $fs-notice-promotion-bkg: #f2fcff;
39
+
40
+ // WP Buttons.
41
+ $button-primary-bkg: #6bc406;
42
+ $button-primary-color: $fms-white;
43
+ $button-secondary-bkg: #333;
44
+ $button-secondary-color: $fms-white;
45
+ $featured-color: #6bc406;
46
+ $wp-selected-color: #0074a3;
47
+
48
+ $wordpress_color: #01749A;
49
+ $blogger_color: #ff8100;
50
+ $wix_color: #fac102;
51
+ $shopify_color: #80d100;
52
+ $addthis_color: #fe6d4e;
53
+ $tumblr_color: #34506b;
54
+ $zepo_color: #00baf2;
55
+ $jquery_color: #000919;
56
+ $javascript_color: #00baf2;
57
+ $squarespace_color: #000;
58
+
59
+ $blog_color: #ff6600;
60
+ $facebook_color: #3b5998;
61
+ $twitter_color: #4099ff;
62
+ $linkedin_color: #4875b4;
63
+ $youtube_color: #ff3333;
64
+ $gplus_color: #c63d2d;
65
+
freemius/assets/scss/_mixins.scss CHANGED
@@ -1,283 +1,283 @@
1
- // ---- CSS3 SASS MIXINS ----
2
- // https://github.com/madr/css3-sass-mixins
3
- //
4
- // Copyright (C) 2011 by Anders Ytterström
5
- //
6
- // Permission is hereby granted, free of charge, to any person obtaining a copy
7
- // of this software and associated documentation files (the "Software"), to deal
8
- // in the Software without restriction, including without limitation the rights
9
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- // copies of the Software, and to permit persons to whom the Software is
11
- // furnished to do so, subject to the following conditions:
12
- //
13
- // The above copyright notice and this permission notice shall be included in
14
- // all copies or substantial portions of the Software.
15
- //
16
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
- // THE SOFTWARE.
23
- //
24
-
25
- // ---- LEGACY IE SUPPORT USING FILTERS ----
26
- // Should IE filters be used or not?
27
- // PROS: gradients, drop shadows etc will be handled by css.
28
- // CONS: will harm the site performance badly,
29
- // especially on sites with heavy rendering and scripting.
30
- $useIEFilters: 0;
31
- // might be 0 or 1. disabled by default.
32
- // ---- /LEGACY IE SUPPORT USING FILTERS ----
33
-
34
-
35
- @mixin background-size ($value) {
36
- -webkit-background-size: $value;
37
- background-size: $value;
38
- }
39
-
40
- @mixin border-image ($path, $offsets, $repeats) {
41
- -moz-border-image: $path $offsets $repeats;
42
- -o-border-image: $path $offsets $repeats;
43
- -webkit-border-image: $path $offsets $repeats;
44
- border-image: $path $offsets $repeats;
45
- }
46
-
47
- @mixin border-radius ($values...) {
48
- -moz-border-radius: $values;
49
- -webkit-border-radius: $values;
50
- border-radius: $values;
51
- /*-moz-background-clip: padding;
52
- -webkit-background-clip: padding-box;
53
- background-clip: padding-box;*/
54
- }
55
-
56
- @mixin box-shadow ($values...) {
57
- -moz-box-shadow: $values;
58
- -webkit-box-shadow: $values;
59
- box-shadow: $values;
60
- }
61
-
62
- //@mixin box-shadow ($x, $y, $offset, $hex, $ie: $useIEFilters, $inset: null, $spread:null) {
63
- // -moz-box-shadow: $x $y $offset $spread $hex $inset;
64
- // -webkit-box-shadow: $x $y $offset $spread $hex $inset;
65
- // box-shadow: $x $y $offset $spread $hex $inset;
66
- //
67
- // @if $ie == 1 {
68
- // $iecolor: '#' + red($hex) + green($hex) + blue($hex);
69
- // filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=#{$x}, OffY=#{$y}, Color='#{$iecolor}');
70
- // -ms-filter: quote(progid:DXImageTransform.Microsoft.dropshadow(OffX=#{$x}, OffY=#{$y}, Color='#{$iecolor}'));
71
- // }
72
- //}
73
-
74
- @mixin box-sizing($value) {
75
- -moz-box-sizing: $value;
76
- -webkit-box-sizing: $value;
77
- box-sizing: $value;
78
- }
79
-
80
- // requires sass 3.2
81
- @mixin keyframes($name){
82
- @-moz-keyframes #{$name} { @content; }
83
- @-ms-keyframes #{$name} { @content; }
84
- @-o-keyframes #{$name} { @content; }
85
- @-webkit-keyframes #{$name} { @content; }
86
- @keyframes #{$name} { @content; }
87
- }
88
-
89
- @mixin linear-gradient($from, $to, $ie: $useIEFilters) {
90
- @if $ie != 1 { background-color: $to; }
91
-
92
- background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, $from),color-stop(1, $to));
93
- background-image: -webkit-linear-gradient(top, $from, $to);
94
- background-image: -moz-linear-gradient(top, $from, $to);
95
- background-image: -ms-linear-gradient(top, $from, $to);
96
- background-image: -o-linear-gradient(top, $from, $to);
97
- background-image: linear-gradient(top, bottom, $from, $to);
98
-
99
- @if $ie == 1 {
100
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$from}', endColorstr='#{$to}');
101
- }
102
- }
103
-
104
- @mixin horizontal-gradient($startColor: #555, $endColor: #333, $ie: $useIEFilters) {
105
- @if $ie != 1 { background-color: $endColor; }
106
-
107
- background-color: $endColor;
108
- background-image: -webkit-gradient(linear, 0 0, 100% 0, from($startColor), to($endColor)); // Safari 4+, Chrome 2+
109
- background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
110
- background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+
111
- background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
112
- background-image: linear-gradient(to right, $startColor, $endColor); // Standard, IE10
113
- background-repeat: repeat-x;
114
- @if $ie == 1 {
115
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=1);
116
- }
117
- }
118
-
119
- @mixin radial-gradient($from, $to, $ie: $useIEFilters) {
120
- @if $ie != 1 { background-color: $to; }
121
-
122
- background: -moz-radial-gradient(center, circle cover, $from 0%, $to 100%);
123
- background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, $from), color-stop(100%, $to));
124
- background: -webkit-radial-gradient(center, circle cover, $from 0%, $to 100%);
125
- background: -o-radial-gradient(center, circle cover, $from 0%, $to 100%);
126
- background: -ms-radial-gradient(center, circle cover, $from 0%, $to 100%);
127
- background: radial-gradient(center, circle cover, $from 0%, $to 100%);
128
- background-color: $from;
129
-
130
- @if $ie == 1 {
131
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$from}', endColorstr='#{$to}', GradientType=1); /* IE6-9 fallback on horizontal gradient */
132
- }
133
- }
134
-
135
- /*@mixin rgba-bg ($hex, $alpha, $ie: $useIEFilters) {
136
- @if $ie == 1 {
137
- background-color: none;
138
- $hexopac: ie-hex-str(rgba($hex, $alpha));
139
- filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#{$hexopac}',EndColorStr='#{$hexopac}}');
140
- -ms-filter: quote(progid:DXImageTransform.Microsoft.gradient(startColorStr='#{$hexopac}',EndColorStr='#{$hexopac}'));
141
- }
142
- @else {
143
- background-color: $hex;
144
- background-color: rgba($hex, $alpha);
145
- }
146
- }*/
147
-
148
- @mixin perspective($perspective) {
149
- -moz-perspective: $perspective;
150
- -ms-perspective: $perspective;
151
- -webkit-perspective: $perspective;
152
- perspective: $perspective;
153
- -moz-transform-style: preserve-3d;
154
- -ms-transform-style: preserve-3d;
155
- -webkit-transform-style: preserve-3d;
156
- transform-style: preserve-3d;
157
- }
158
-
159
- @mixin transform ($transforms) {
160
- -moz-transform: $transforms;
161
- -o-transform: $transforms;
162
- -ms-transform: $transforms;
163
- -webkit-transform: $transforms;
164
- transform: $transforms;
165
- }
166
-
167
- @mixin matrix ($a, $b, $c, $d, $e, $f) {
168
- -moz-transform: matrix($a, $b, $c, $d, #{$e}px, #{$f}px);
169
- -o-transform: matrix($a, $b, $c, $d, $e, $f);
170
- -ms-transform: matrix($a, $b, $c, $d, $e, $f);
171
- -webkit-transform: matrix($a, $b, $c, $d, $e, $f);
172
- transform: matrix($a, $b, $c, $d, $e, $f);
173
- }
174
-
175
- @mixin rotate ($deg) {
176
- @include transform(rotate(#{$deg}deg));
177
- }
178
-
179
- @mixin scale ($size) {
180
- @include transform(scale(#{$size}));
181
- }
182
-
183
- @mixin translate ($x, $y) {
184
- @include transform(translate($x, $y));
185
- }
186
-
187
- @mixin transition ($value...) {
188
- -moz-transition: $value;
189
- -o-transition: $value;
190
- -ms-transition: $value;
191
- -webkit-transition: $value;
192
- transition: $value;
193
- }
194
-
195
- @mixin animation($str) {
196
- -webkit-animation: #{$str};
197
- -moz-animation: #{$str};
198
- -ms-animation: #{$str};
199
- -o-animation: #{$str};
200
- animation: #{$str};
201
- }
202
-
203
- @mixin animation-name($str) {
204
- -webkit-animation-name: #{$str};
205
- -moz-animation-name: #{$str};
206
- -ms-animation-name: #{$str};
207
- -o-animation-name: #{$str};
208
- animation-name: #{$str};
209
- }
210
-
211
- @mixin animation-duration($str) {
212
- -webkit-animation-duration: #{$str};
213
- -moz-animation-duration: #{$str};
214
- -ms-animation-duration: #{$str};
215
- -o-animation-duration: #{$str};
216
- animation-duration: #{$str};
217
- }
218
-
219
- @mixin animation-direction($str) {
220
- -webkit-animation-direction: #{$str};
221
- -moz-animation-direction: #{$str};
222
- -ms-animation-direction: #{$str};
223
- -o-animation-direction: #{$str};
224
- animation-direction: #{$str};
225
- }
226
-
227
- @mixin animation-delay($str) {
228
- animation-delay:#{$str};
229
- -o-animation-delay:#{$str};
230
- -ms-animation-delay:#{$str};
231
- -webkit-animation-delay:#{$str};
232
- -moz-animation-delay:#{$str};
233
- }
234
-
235
- @mixin animation-iteration-count($str) {
236
- animation-iteration-count:#{$str};
237
- -o-animation-iteration-count:#{$str};
238
- -ms-animation-iteration-count:#{$str};
239
- -webkit-animation-iteration-count:#{$str};
240
- -moz-animation-iteration-count:#{$str};
241
- }
242
-
243
- @mixin animation-timing-function($str) {
244
- -webkit-animation-timing-function: #{$str};
245
- -moz-animation-timing-function: #{$str};
246
- -ms-animation-timing-function: #{$str};
247
- -o-animation-timing-function: #{$str};
248
- animation-timing-function: #{$str};
249
- }
250
-
251
- // ==== /CSS3 SASS MIXINS ====
252
-
253
- @mixin opacity($opacity) {
254
- opacity: $opacity;
255
- $opacity-ie: $opacity * 100;
256
- filter: alpha(opacity=$opacity-ie); //IE8
257
- }
258
-
259
- @mixin size($width, $height: $width)
260
- {
261
- width: $width;
262
- height: $height;
263
- }
264
-
265
- @mixin clearfix
266
- {
267
- &:after {
268
- content: "";
269
- display: table;
270
- clear: both;
271
- }
272
- }
273
-
274
- // Placeholder text
275
- @mixin placeholder($color: $input-color-placeholder) {
276
- // Firefox
277
- &::-moz-placeholder {
278
- color: $color;
279
- opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526
280
- }
281
- &:-ms-input-placeholder { color: $color; } // Internet Explorer 10+
282
- &::-webkit-input-placeholder { color: $color; } // Safari and Chrome
283
  }
1
+ // ---- CSS3 SASS MIXINS ----
2
+ // https://github.com/madr/css3-sass-mixins
3
+ //
4
+ // Copyright (C) 2011 by Anders Ytterström
5
+ //
6
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ // of this software and associated documentation files (the "Software"), to deal
8
+ // in the Software without restriction, including without limitation the rights
9
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ // copies of the Software, and to permit persons to whom the Software is
11
+ // furnished to do so, subject to the following conditions:
12
+ //
13
+ // The above copyright notice and this permission notice shall be included in
14
+ // all copies or substantial portions of the Software.
15
+ //
16
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ // THE SOFTWARE.
23
+ //
24
+
25
+ // ---- LEGACY IE SUPPORT USING FILTERS ----
26
+ // Should IE filters be used or not?
27
+ // PROS: gradients, drop shadows etc will be handled by css.
28
+ // CONS: will harm the site performance badly,
29
+ // especially on sites with heavy rendering and scripting.
30
+ $useIEFilters: 0;
31
+ // might be 0 or 1. disabled by default.
32
+ // ---- /LEGACY IE SUPPORT USING FILTERS ----
33
+
34
+
35
+ @mixin background-size ($value) {
36
+ -webkit-background-size: $value;
37
+ background-size: $value;
38
+ }
39
+
40
+ @mixin border-image ($path, $offsets, $repeats) {
41
+ -moz-border-image: $path $offsets $repeats;
42
+ -o-border-image: $path $offsets $repeats;
43
+ -webkit-border-image: $path $offsets $repeats;
44
+ border-image: $path $offsets $repeats;
45
+ }
46
+
47
+ @mixin border-radius ($values...) {
48
+ -moz-border-radius: $values;
49
+ -webkit-border-radius: $values;
50
+ border-radius: $values;
51
+ /*-moz-background-clip: padding;
52
+ -webkit-background-clip: padding-box;
53
+ background-clip: padding-box;*/
54
+ }
55
+
56
+ @mixin box-shadow ($values...) {
57
+ -moz-box-shadow: $values;
58
+ -webkit-box-shadow: $values;
59
+ box-shadow: $values;
60
+ }
61
+
62
+ //@mixin box-shadow ($x, $y, $offset, $hex, $ie: $useIEFilters, $inset: null, $spread:null) {
63
+ // -moz-box-shadow: $x $y $offset $spread $hex $inset;
64
+ // -webkit-box-shadow: $x $y $offset $spread $hex $inset;
65
+ // box-shadow: $x $y $offset $spread $hex $inset;
66
+ //
67
+ // @if $ie == 1 {
68
+ // $iecolor: '#' + red($hex) + green($hex) + blue($hex);
69
+ // filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=#{$x}, OffY=#{$y}, Color='#{$iecolor}');
70
+ // -ms-filter: quote(progid:DXImageTransform.Microsoft.dropshadow(OffX=#{$x}, OffY=#{$y}, Color='#{$iecolor}'));
71
+ // }
72
+ //}
73
+
74
+ @mixin box-sizing($value) {
75
+ -moz-box-sizing: $value;
76
+ -webkit-box-sizing: $value;
77
+ box-sizing: $value;
78
+ }
79
+
80
+ // requires sass 3.2
81
+ @mixin keyframes($name){
82
+ @-moz-keyframes #{$name} { @content; }
83
+ @-ms-keyframes #{$name} { @content; }
84
+ @-o-keyframes #{$name} { @content; }
85
+ @-webkit-keyframes #{$name} { @content; }
86
+ @keyframes #{$name} { @content; }
87
+ }
88
+
89
+ @mixin linear-gradient($from, $to, $ie: $useIEFilters) {
90
+ @if $ie != 1 { background-color: $to; }
91
+
92
+ background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, $from),color-stop(1, $to));
93
+ background-image: -webkit-linear-gradient(top, $from, $to);
94
+ background-image: -moz-linear-gradient(top, $from, $to);
95
+ background-image: -ms-linear-gradient(top, $from, $to);
96
+ background-image: -o-linear-gradient(top, $from, $to);
97
+ background-image: linear-gradient(top, bottom, $from, $to);
98
+
99
+ @if $ie == 1 {
100
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$from}', endColorstr='#{$to}');
101
+ }
102
+ }
103
+
104
+ @mixin horizontal-gradient($startColor: #555, $endColor: #333, $ie: $useIEFilters) {
105
+ @if $ie != 1 { background-color: $endColor; }
106
+
107
+ background-color: $endColor;
108
+ background-image: -webkit-gradient(linear, 0 0, 100% 0, from($startColor), to($endColor)); // Safari 4+, Chrome 2+
109
+ background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
110
+ background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+
111
+ background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
112
+ background-image: linear-gradient(to right, $startColor, $endColor); // Standard, IE10
113
+ background-repeat: repeat-x;
114
+ @if $ie == 1 {
115
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=1);
116
+ }
117
+ }
118
+
119
+ @mixin radial-gradient($from, $to, $ie: $useIEFilters) {
120
+ @if $ie != 1 { background-color: $to; }
121
+
122
+ background: -moz-radial-gradient(center, circle cover, $from 0%, $to 100%);
123
+ background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, $from), color-stop(100%, $to));
124
+ background: -webkit-radial-gradient(center, circle cover, $from 0%, $to 100%);
125
+ background: -o-radial-gradient(center, circle cover, $from 0%, $to 100%);
126
+ background: -ms-radial-gradient(center, circle cover, $from 0%, $to 100%);
127
+ background: radial-gradient(center, circle cover, $from 0%, $to 100%);
128
+ background-color: $from;
129
+
130
+ @if $ie == 1 {
131
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$from}', endColorstr='#{$to}', GradientType=1); /* IE6-9 fallback on horizontal gradient */
132
+ }
133
+ }
134
+
135
+ /*@mixin rgba-bg ($hex, $alpha, $ie: $useIEFilters) {
136
+ @if $ie == 1 {
137
+ background-color: none;
138
+ $hexopac: ie-hex-str(rgba($hex, $alpha));
139
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#{$hexopac}',EndColorStr='#{$hexopac}}');
140
+ -ms-filter: quote(progid:DXImageTransform.Microsoft.gradient(startColorStr='#{$hexopac}',EndColorStr='#{$hexopac}'));
141
+ }
142
+ @else {
143
+ background-color: $hex;
144
+ background-color: rgba($hex, $alpha);
145
+ }
146
+ }*/
147
+
148
+ @mixin perspective($perspective) {
149
+ -moz-perspective: $perspective;
150
+ -ms-perspective: $perspective;
151
+ -webkit-perspective: $perspective;
152
+ perspective: $perspective;
153
+ -moz-transform-style: preserve-3d;
154
+ -ms-transform-style: preserve-3d;
155
+ -webkit-transform-style: preserve-3d;
156
+ transform-style: preserve-3d;
157
+ }
158
+
159
+ @mixin transform ($transforms) {
160
+ -moz-transform: $transforms;
161
+ -o-transform: $transforms;
162
+ -ms-transform: $transforms;
163
+ -webkit-transform: $transforms;
164
+ transform: $transforms;
165
+ }
166
+
167
+ @mixin matrix ($a, $b, $c, $d, $e, $f) {
168
+ -moz-transform: matrix($a, $b, $c, $d, #{$e}px, #{$f}px);
169
+ -o-transform: matrix($a, $b, $c, $d, $e, $f);
170
+ -ms-transform: matrix($a, $b, $c, $d, $e, $f);
171
+ -webkit-transform: matrix($a, $b, $c, $d, $e, $f);
172
+ transform: matrix($a, $b, $c, $d, $e, $f);
173
+ }
174
+
175
+ @mixin rotate ($deg) {
176
+ @include transform(rotate(#{$deg}deg));
177
+ }
178
+
179
+ @mixin scale ($size) {
180
+ @include transform(scale(#{$size}));
181
+ }
182
+
183
+ @mixin translate ($x, $y) {
184
+ @include transform(translate($x, $y));
185
+ }
186
+
187
+ @mixin transition ($value...) {
188
+ -moz-transition: $value;
189
+ -o-transition: $value;
190
+ -ms-transition: $value;
191
+ -webkit-transition: $value;
192
+ transition: $value;
193
+ }
194
+
195
+ @mixin animation($str) {
196
+ -webkit-animation: #{$str};
197
+ -moz-animation: #{$str};
198
+ -ms-animation: #{$str};
199
+ -o-animation: #{$str};
200
+ animation: #{$str};
201
+ }
202
+
203
+ @mixin animation-name($str) {
204
+ -webkit-animation-name: #{$str};
205
+ -moz-animation-name: #{$str};
206
+ -ms-animation-name: #{$str};
207
+ -o-animation-name: #{$str};
208
+ animation-name: #{$str};
209
+ }
210
+
211
+ @mixin animation-duration($str) {
212
+ -webkit-animation-duration: #{$str};
213
+ -moz-animation-duration: #{$str};
214
+ -ms-animation-duration: #{$str};
215
+ -o-animation-duration: #{$str};
216
+ animation-duration: #{$str};
217
+ }
218
+
219
+ @mixin animation-direction($str) {
220
+ -webkit-animation-direction: #{$str};
221
+ -moz-animation-direction: #{$str};
222
+ -ms-animation-direction: #{$str};
223
+ -o-animation-direction: #{$str};
224
+ animation-direction: #{$str};
225
+ }
226
+
227
+ @mixin animation-delay($str) {
228
+ animation-delay:#{$str};
229
+ -o-animation-delay:#{$str};
230
+ -ms-animation-delay:#{$str};
231
+ -webkit-animation-delay:#{$str};
232
+ -moz-animation-delay:#{$str};
233
+ }
234
+
235
+ @mixin animation-iteration-count($str) {
236
+ animation-iteration-count:#{$str};
237
+ -o-animation-iteration-count:#{$str};
238
+ -ms-animation-iteration-count:#{$str};
239
+ -webkit-animation-iteration-count:#{$str};
240
+ -moz-animation-iteration-count:#{$str};
241
+ }
242
+
243
+ @mixin animation-timing-function($str) {
244
+ -webkit-animation-timing-function: #{$str};
245
+ -moz-animation-timing-function: #{$str};
246
+ -ms-animation-timing-function: #{$str};
247
+ -o-animation-timing-function: #{$str};
248
+ animation-timing-function: #{$str};
249
+ }
250
+
251
+ // ==== /CSS3 SASS MIXINS ====
252
+
253
+ @mixin opacity($opacity) {
254
+ opacity: $opacity;
255
+ $opacity-ie: $opacity * 100;
256
+ filter: alpha(opacity=$opacity-ie); //IE8
257
+ }
258
+
259
+ @mixin size($width, $height: $width)
260
+ {
261
+ width: $width;
262
+ height: $height;
263
+ }
264
+
265
+ @mixin clearfix
266
+ {
267
+ &:after {
268
+ content: "";
269
+ display: table;
270
+ clear: both;
271
+ }
272
+ }
273
+
274
+ // Placeholder text
275
+ @mixin placeholder($color: $input-color-placeholder) {
276
+ // Firefox
277
+ &::-moz-placeholder {
278
+ color: $color;
279
+ opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526
280
+ }
281
+ &:-ms-input-placeholder { color: $color; } // Internet Explorer 10+
282
+ &::-webkit-input-placeholder { color: $color; } // Safari and Chrome
283
  }
freemius/assets/scss/admin/_ajax-loader.scss CHANGED
@@ -1,49 +1,49 @@
1
- $color: $wp-selected-color;
2
- $bkg-color: #fff;
3
- $size: 20;
4
-
5
- .fs-ajax-loader
6
- {
7
- position: relative;
8
- width: #{8*$size + 10}px;
9
- height: #{$size}px;
10
- margin: auto;
11
-
12
- .fs-ajax-loader-bar
13
- {
14
- position: absolute;
15
- top: 0;
16
- background-color: $color;
17
- width: #{$size}px;
18
- height: #{$size}px;
19
- @include animation-name(bounce_ajaxLoader);
20
- @include animation-duration(1.5s);
21
- @include animation-iteration-count(infinite);
22
- @include animation-direction(normal);
23
- @include transform(.3);
24
- }
25
-
26
- @for $i from 0 through 7
27
- {
28
- .fs-ajax-loader-bar-#{$i + 1}
29
- {
30
- left: #{$i*($size - 1)}px;
31
- @include animation-delay(#{0.6 + $i*0.15}s);
32
- }
33
- }
34
- }
35
-
36
- @include keyframes(bounce_ajaxLoader)
37
- {
38
- 0%
39
- {
40
- @include transform(scale(1));
41
- background-color: $color;
42
- }
43
-
44
- 100%
45
- {
46
- @include transform(scale(.3));
47
- background-color: $bkg-color;
48
- }
49
  }
1
+ $color: $wp-selected-color;
2
+ $bkg-color: #fff;
3
+ $size: 20;
4
+
5
+ .fs-ajax-loader
6
+ {
7
+ position: relative;
8
+ width: #{8*$size + 10}px;
9
+ height: #{$size}px;
10
+ margin: auto;
11
+
12
+ .fs-ajax-loader-bar
13
+ {
14
+ position: absolute;
15
+ top: 0;
16
+ background-color: $color;
17
+ width: #{$size}px;
18
+ height: #{$size}px;
19
+ @include animation-name(bounce_ajaxLoader);
20
+ @include animation-duration(1.5s);
21
+ @include animation-iteration-count(infinite);
22
+ @include animation-direction(normal);
23
+ @include transform(.3);
24
+ }
25
+
26
+ @for $i from 0 through 7
27
+ {
28
+ .fs-ajax-loader-bar-#{$i + 1}
29
+ {
30
+ left: #{$i*($size - 1)}px;
31
+ @include animation-delay(#{0.6 + $i*0.15}s);
32
+ }
33
+ }
34
+ }
35
+
36
+ @include keyframes(bounce_ajaxLoader)
37
+ {
38
+ 0%
39
+ {
40
+ @include transform(scale(1));
41
+ background-color: $color;
42
+ }
43
+
44
+ 100%
45
+ {
46
+ @include transform(scale(.3));
47
+ background-color: $bkg-color;
48
+ }
49
  }
freemius/assets/scss/admin/_auto-install.scss CHANGED
@@ -1,33 +1,33 @@
1
- .fs-modal-auto-install
2
- {
3
- $max-width: 300px;
4
-
5
- #request-filesystem-credentials-form
6
- {
7
- h2,
8
- .request-filesystem-credentials-action-buttons
9
- {
10
- display: none;
11
- }
12
-
13
- input[type=password],
14
- input[type=email],
15
- input[type=text]
16
- {
17
- -webkit-appearance: none;
18
- padding: 10px 10px 5px 10px;
19
- width: $max-width;
20
- max-width: 100%;
21
- }
22
-
23
- > div,
24
- label,
25
- fieldset
26
- {
27
- width: $max-width;
28
- max-width: 100%;
29
- margin: 0 auto;
30
- display: block;
31
- }
32
- }
33
  }
1
+ .fs-modal-auto-install
2
+ {
3
+ $max-width: 300px;
4
+
5
+ #request-filesystem-credentials-form
6
+ {
7
+ h2,
8
+ .request-filesystem-credentials-action-buttons
9
+ {
10
+ display: none;
11
+ }
12
+
13
+ input[type=password],
14
+ input[type=email],
15
+ input[type=text]
16
+ {
17
+ -webkit-appearance: none;
18
+ padding: 10px 10px 5px 10px;
19
+ width: $max-width;
20
+ max-width: 100%;
21
+ }
22
+
23
+ > div,
24
+ label,
25
+ fieldset
26
+ {
27
+ width: $max-width;
28
+ max-width: 100%;
29
+ margin: 0 auto;
30
+ display: block;
31
+ }
32
+ }
33
  }
freemius/assets/scss/admin/_deactivation-feedback.scss CHANGED
@@ -1,55 +1,55 @@
1
- @import "../colors";
2
-
3
- .fs-modal.fs-modal-deactivation-feedback {
4
- .reason-input, .internal-message {
5
- margin: 3px 0 3px 22px;
6
-
7
- input, textarea {
8
- width: 100%;
9
- }
10
- }
11
-
12
- li.reason {
13
- &.has-internal-message .internal-message {
14
- border: 1px solid lighten($darkest-color, 80%);
15
- padding: 7px;
16
- display: none;
17
- }
18
-
19
- @media (max-width: 650px) {
20
- li.reason {
21
- margin-bottom: 10px;
22
-
23
- .reason-input, .internal-message {
24
- margin-left: 29px;
25
- }
26
-
27
- label {
28
- display: table;
29
-
30
- > span {
31
- display: table-cell;
32
- font-size: 1.3em;
33
- }
34
- }
35
- }
36
- }
37
- }
38
-
39
- .anonymous-feedback-label {
40
- float: left;
41
- }
42
-
43
- .fs-modal-panel {
44
- margin-top: 0 !important;
45
-
46
- h3 {
47
- margin-top: 0;
48
- line-height: 1.5em;
49
- }
50
- }
51
- }
52
-
53
- #the-list .deactivate > .fs-slug {
54
- display: none;
55
  }
1
+ @import "../colors";
2
+
3
+ .fs-modal.fs-modal-deactivation-feedback {
4
+ .reason-input, .internal-message {
5
+ margin: 3px 0 3px 22px;
6
+
7
+ input, textarea {
8
+ width: 100%;
9
+ }
10
+ }
11
+
12
+ li.reason {
13
+ &.has-internal-message .internal-message {
14
+ border: 1px solid lighten($darkest-color, 80%);
15
+ padding: 7px;
16
+ display: none;
17
+ }
18
+
19
+ @media (max-width: 650px) {
20
+ li.reason {
21
+ margin-bottom: 10px;
22
+
23
+ .reason-input, .internal-message {
24
+ margin-left: 29px;
25
+ }
26
+
27
+ label {
28
+ display: table;
29
+
30
+ > span {
31
+ display: table-cell;
32
+ font-size: 1.3em;
33
+ }
34
+ }
35
+ }
36
+ }
37
+ }
38
+
39
+ .anonymous-feedback-label {
40
+ float: left;
41
+ }
42
+
43
+ .fs-modal-panel {
44
+ margin-top: 0 !important;
45
+
46
+ h3 {
47
+ margin-top: 0;
48
+ line-height: 1.5em;
49
+ }
50
+ }
51
+ }
52
+
53
+ #the-list .deactivate > .fs-slug {
54
+ display: none;
55
  }
freemius/assets/scss/admin/_license-activation.scss CHANGED
@@ -1,7 +1,7 @@
1
- .fs-modal.fs-modal-license-activation {
2
- .fs-modal-body {
3
- input.license_key {
4
- width: 100%;
5
- }
6
- }
7
  }
1
+ .fs-modal.fs-modal-license-activation {
2
+ .fs-modal-body {
3
+ input.license_key {
4
+ width: 100%;
5
+ }
6
+ }
7
  }
freemius/assets/scss/admin/_license-key-resend.scss CHANGED
@@ -1,68 +1,68 @@
1
- .fs-modal.fs-modal-license-key-resend
2
- {
3
- .email-address-container
4
- {
5
- overflow: hidden;
6
- padding-right: 2px;
7
- }
8
-
9
- &.fs-freemium
10
- {
11
- input.email-address
12
- {
13
- width: 300px;
14
- }
15
-
16
- label
17
- {
18
- display: block;
19
- margin-bottom: 10px;
20
- }
21
- }
22
-
23
- &.fs-premium
24
- {
25
- input.email-address
26
- {
27
- width: 100%;
28
- }
29
-
30
- .button-container
31
- {
32
- float: right;
33
- margin-left: 7px;
34
-
35
- @media (max-width: 650px) {
36
- margin-top: 2px;
37
- }
38
- }
39
- }
40
- }
41
-
42
- .rtl
43
- {
44
- .fs-modal.fs-modal-license-key-resend
45
- {
46
- .fs-modal-body
47
- {
48
- .input-container > .email-address-container
49
- {
50
- padding-left: 2px;
51
- padding-right: 0;
52
- }
53
-
54
- .button-container
55
- {
56
- float: left;
57
- margin-right: 7px;
58
- margin-left: 0;
59
- }
60
- }
61
- }
62
- }
63
-
64
- a.show-license-resend-modal
65
- {
66
- margin-top: 4px;
67
- display: inline-block;
68
- }
1
+ .fs-modal.fs-modal-license-key-resend
2
+ {
3
+ .email-address-container
4
+ {
5
+ overflow: hidden;
6
+ padding-right: 2px;
7
+ }
8
+
9
+ &.fs-freemium
10
+ {
11
+ input.email-address
12
+ {
13
+ width: 300px;
14
+ }
15
+
16
+ label
17
+ {
18
+ display: block;
19
+ margin-bottom: 10px;
20
+ }
21
+ }
22
+
23
+ &.fs-premium
24
+ {
25
+ input.email-address
26
+ {
27
+ width: 100%;
28
+ }
29
+
30
+ .button-container
31
+ {
32
+ float: right;
33
+ margin-left: 7px;
34
+
35
+ @media (max-width: 650px) {
36
+ margin-top: 2px;
37
+ }
38
+ }
39
+ }
40
+ }
41
+
42
+ .rtl
43
+ {
44
+ .fs-modal.fs-modal-license-key-resend
45
+ {
46
+ .fs-modal-body
47
+ {
48
+ .input-container > .email-address-container
49
+ {
50
+ padding-left: 2px;
51
+ padding-right: 0;
52
+ }
53
+
54
+ .button-container
55
+ {
56
+ float: left;
57
+ margin-right: 7px;
58
+ margin-left: 0;
59
+ }
60
+ }
61
+ }
62
+ }
63
+
64
+ a.show-license-resend-modal
65
+ {
66
+ margin-top: 4px;
67
+ display: inline-block;
68
+ }
freemius/assets/scss/admin/_modal-common.scss CHANGED
@@ -1,186 +1,186 @@
1
- @import "../colors";
2
- @import "../mixins";
3
-
4
- .fs-modal {
5
- position: fixed;
6
- overflow: auto;
7
- height: 100%;
8
- width: 100%;
9
- top: 0;
10
- z-index: 100000;
11
- display: none;
12
- background: rgba(0, 0, 0, 0.6);
13
-
14
- .fs-modal-dialog {
15
- background: transparent;
16
- position: absolute;
17
- left: 50%;
18
- margin-left: -298px;
19
- padding-bottom: 30px;
20
- top: -100%;
21
- z-index: 100001;
22
- width: 596px;
23
-
24
- @media (max-width: 650px) {
25
- margin-left: -50%;
26
- box-sizing: border-box;
27
- padding-left: 10px;
28
- padding-right: 10px;
29
- width: 100%;
30
-
31
- .fs-modal-panel > h3 > strong {
32
- font-size: 1.3em;
33
- }
34
- }
35
- }
36
-
37
- &.active {
38
- display: block;
39
-
40
- &:before {
41
- display: block;
42
- }
43
-
44
- .fs-modal-dialog {
45
- top: 10%;
46
- }
47
- }
48
-
49
- &.fs-success {
50
- .fs-modal-header {
51
- border-bottom-color: $wp-notice-success-dark-color;
52
- }
53
-
54
- .fs-modal-body {
55
- background-color: $wp-notice-success-color;
56
- }
57
- }
58
-
59
- &.fs-warn {
60
- .fs-modal-header {
61
- border-bottom-color: $wp-notice-warn-dark-color;
62
- }
63
-
64
- .fs-modal-body {
65
- background-color: $wp-notice-warn-color;
66
- }
67
- }
68
-
69
- &.fs-error {
70
- .fs-modal-header {
71
- border-bottom-color: $wp-notice-error-dark-color;
72
- }
73
-
74
- .fs-modal-body {
75
- background-color: $wp-notice-error-color;
76
- }
77
- }
78
-
79
-
80
- .fs-modal-body,
81
- .fs-modal-footer {
82
- border: 0;
83
- background: #fefefe;
84
- padding: 20px;
85
- }
86
-
87
- .fs-modal-header {
88
- border-bottom: #eeeeee solid 1px;
89
- background: #fbfbfb;
90
- padding: 15px 20px;
91
- position: relative;
92
- margin-bottom: -10px;
93
- // z-index: 2;
94
-
95
- h4 {
96
- margin: 0;
97
- padding: 0;
98
- text-transform: uppercase;
99
- font-size: 1.2em;
100
- font-weight: bold;
101
- color: #cacaca;
102
- text-shadow: 1px 1px 1px #fff;
103
- letter-spacing: 0.6px;
104
- -webkit-font-smoothing: antialiased;
105
- }
106
-
107
- .fs-close {
108
- position: absolute;
109
- right: 10px;
110
- top: 12px;
111
- cursor: pointer;
112
- color: #bbb;
113
- @include border-radius(20px);
114
- padding: 3px;
115
- @include transition(all 0.2s ease-in-out);
116
-
117
- &:hover {
118
- color: #fff;
119
- background: #aaa;
120
- }
121
- }
122
- }
123
-
124
- .fs-modal-body {
125
- border-bottom: 0;
126
-
127
- p {
128
- font-size: 14px;
129
- }
130
-
131
- h2 {
132
- font-size: 20px;
133
- line-height: 1.5em;
134
- }
135
-
136
- > div {
137
- margin-top: 10px;
138
-
139
- h2 {
140
- font-weight: bold;
141
- font-size: 20px;
142
- margin-top: 0;
143
- }
144
- }
145
- }
146
-
147
- .fs-modal-footer {
148
- border-top: #eeeeee solid 1px;
149
- text-align: right;
150
-
151
- > .button {
152
- margin: 0 7px;
153
-
154
- &:first-child {
155
- margin: 0;
156
- }
157
- }
158
- }
159
-
160
- .fs-modal-panel {
161
- > .notice.inline {
162
- margin: 0;
163
- display: none;
164
- }
165
-
166
- &:not(.active) {
167
- display: none;
168
- }
169
- }
170
- }
171
-
172
- .rtl
173
- {
174
- .fs-modal {
175
- .fs-modal-header {
176
- .fs-close {
177
- right: auto;
178
- left: 20px;
179
- }
180
- }
181
- }
182
- }
183
-
184
- body.has-fs-modal {
185
- overflow: hidden;
186
  }
1
+ @import "../colors";
2
+ @import "../mixins";
3
+
4
+ .fs-modal {
5
+ position: fixed;
6
+ overflow: auto;
7
+ height: 100%;
8
+ width: 100%;
9
+ top: 0;
10
+ z-index: 100000;
11
+ display: none;
12
+ background: rgba(0, 0, 0, 0.6);
13
+
14
+ .fs-modal-dialog {
15
+ background: transparent;
16
+ position: absolute;
17
+ left: 50%;
18
+ margin-left: -298px;
19
+ padding-bottom: 30px;
20
+ top: -100%;
21
+ z-index: 100001;
22
+ width: 596px;
23
+
24
+ @media (max-width: 650px) {
25
+ margin-left: -50%;
26
+ box-sizing: border-box;
27
+ padding-left: 10px;
28
+ padding-right: 10px;
29
+ width: 100%;
30
+
31
+ .fs-modal-panel > h3 > strong {
32
+ font-size: 1.3em;
33
+ }
34
+ }
35
+ }
36
+
37
+ &.active {
38
+ display: block;
39
+
40
+ &:before {
41
+ display: block;
42
+ }
43
+
44
+ .fs-modal-dialog {
45
+ top: 10%;
46
+ }
47
+ }
48
+
49
+ &.fs-success {
50
+ .fs-modal-header {
51
+ border-bottom-color: $wp-notice-success-dark-color;
52
+ }
53
+
54
+ .fs-modal-body {
55
+ background-color: $wp-notice-success-color;
56
+ }
57
+ }
58
+
59
+ &.fs-warn {
60
+ .fs-modal-header {
61
+ border-bottom-color: $wp-notice-warn-dark-color;
62
+ }
63
+
64
+ .fs-modal-body {
65
+ background-color: $wp-notice-warn-color;
66
+ }
67
+ }
68
+
69
+ &.fs-error {
70
+ .fs-modal-header {
71
+ border-bottom-color: $wp-notice-error-dark-color;
72
+ }
73
+
74
+ .fs-modal-body {
75
+ background-color: $wp-notice-error-color;
76
+ }
77
+ }
78
+
79
+
80
+ .fs-modal-body,
81
+ .fs-modal-footer {
82
+ border: 0;
83
+ background: #fefefe;
84
+ padding: 20px;
85
+ }
86
+
87
+ .fs-modal-header {
88
+ border-bottom: #eeeeee solid 1px;
89
+ background: #fbfbfb;
90
+ padding: 15px 20px;
91
+ position: relative;
92
+ margin-bottom: -10px;
93
+ // z-index: 2;
94
+
95
+ h4 {
96
+ margin: 0;
97
+ padding: 0;
98
+ text-transform: uppercase;
99
+ font-size: 1.2em;
100
+ font-weight: bold;
101
+ color: #cacaca;
102
+ text-shadow: 1px 1px 1px #fff;
103
+ letter-spacing: 0.6px;
104
+ -webkit-font-smoothing: antialiased;
105
+ }
106
+
107
+ .fs-close {
108
+ position: absolute;
109
+ right: 10px;
110
+ top: 12px;
111
+ cursor: pointer;
112
+ color: #bbb;
113
+ @include border-radius(20px);
114
+ padding: 3px;
115
+ @include transition(all 0.2s ease-in-out);
116
+
117
+ &:hover {
118
+ color: #fff;
119
+ background: #aaa;
120
+ }
121
+ }
122
+ }
123
+
124
+ .fs-modal-body {
125
+ border-bottom: 0;
126
+
127
+ p {
128
+ font-size: 14px;
129
+ }
130
+
131
+ h2 {
132
+ font-size: 20px;
133
+ line-height: 1.5em;
134
+ }
135
+
136
+ > div {
137
+ margin-top: 10px;
138
+
139
+ h2 {
140
+ font-weight: bold;
141
+ font-size: 20px;
142
+ margin-top: 0;
143
+ }
144
+ }
145
+ }
146
+
147
+ .fs-modal-footer {
148
+ border-top: #eeeeee solid 1px;
149
+ text-align: right;
150
+
151
+ > .button {
152
+ margin: 0 7px;
153
+
154
+ &:first-child {
155
+ margin: 0;
156
+ }
157
+ }
158
+ }
159
+
160
+ .fs-modal-panel {
161
+ > .notice.inline {
162
+ margin: 0;
163
+ display: none;
164
+ }
165
+
166
+ &:not(.active) {
167
+ display: none;
168
+ }
169
+ }
170
+ }
171
+
172
+ .rtl
173
+ {
174
+ .fs-modal {
175
+ .fs-modal-header {
176
+ .fs-close {
177
+ right: auto;
178
+ left: 20px;
179
+ }
180
+ }
181
+ }
182
+ }
183
+
184
+ body.has-fs-modal {
185
+ overflow: hidden;
186
  }
freemius/assets/scss/admin/_themes.scss CHANGED
@@ -1,21 +1,21 @@
1
- .theme-browser
2
- {
3
- .theme
4
- {
5
- .fs-premium-theme-badge
6
- {
7
- position: absolute;
8
- top: 10px;
9
- right: 0;
10
- background: $fs-logo-green-color;
11
- color: #fff;
12
- text-transform: uppercase;
13
- padding: 5px 10px;
14
- @include border-radius(3px 0 0 3px);
15
- font-weight: bold;
16
- border-right: 0;
17
- @include box-shadow(0 2px 1px -1px rgba(0, 0, 0, .3));
18
- font-size: 1.1em;
19
- }
20
- }
21
  }
1
+ .theme-browser
2
+ {
3
+ .theme
4
+ {
5
+ .fs-premium-theme-badge
6
+ {
7
+ position: absolute;
8
+ top: 10px;
9
+ right: 0;
10
+ background: $fs-logo-green-color;
11
+ color: #fff;
12
+ text-transform: uppercase;
13
+ padding: 5px 10px;
14
+ @include border-radius(3px 0 0 3px);
15
+ font-weight: bold;
16
+ border-right: 0;
17
+ @include box-shadow(0 2px 1px -1px rgba(0, 0, 0, .3));
18
+ font-size: 1.1em;
19
+ }
20
+ }
21
  }
freemius/assets/scss/admin/account.scss CHANGED
@@ -1,256 +1,256 @@
1
- @import "../start";
2
-
3
- #fs_account
4
- {
5
- .postbox,
6
- .widefat
7
- {
8
- max-width: 700px;
9
- }
10
-
11
- h3
12
- {
13
- font-size: 1.3em;
14
- padding: 12px 15px;
15
- margin: 0 0 12px 0;
16
- line-height: 1.4;
17
- border-bottom: 1px solid #F1F1F1;
18
-
19
- .dashicons {
20
- width: 26px;
21
- height: 26px;
22
- font-size: 1.3em;
23
- }
24
- }
25
-
26
- i.dashicons
27
- {
28
- font-size: 1.2em;
29
- height: 1.2em;
30
- width: 1.2em;
31
- }
32
-
33
- .button
34
- {
35
- i.dashicons
36
- {
37
- vertical-align: middle;
38
- }
39
- }
40
-
41
- .fs-header-actions
42
- {
43
- position: absolute;
44
- top: 17px;
45
- right: 15px;
46
- font-size: 0.9em;
47
-
48
- ul
49
- {
50
- margin: 0;
51
- }
52
-
53
- li
54
- {
55
- form
56
- {
57
- display: inline-block;
58
- }
59
-
60
- float: left;
61
- a
62
- {
63
- text-decoration: none;
64
- }
65
- }
66
- }
67
- }
68
-
69
- #fs_account_details .button-group {
70
- float: right;
71
- }
72
-
73
- .rtl #fs_account .fs-header-actions
74
- {
75
- left: 15px;
76
- right: auto;
77
- }
78
-
79
- .fs-key-value-table
80
- {
81
- width: 100%;
82
-
83
- form
84
- {
85
- display: inline-block;
86
- }
87
-
88
- tr
89
- {
90
- td:first-child
91
- {
92
- nobr
93
- {
94
- font-weight: bold;
95
- }
96
-
97
- text-align: right;
98
-
99
- form
100
- {
101
- display: block;
102
- }
103
- }
104
-
105
- td.fs-right
106
- {
107
- text-align: right;
108
- }
109
-
110
- &.fs-odd
111
- {
112
- background: #ebebeb;
113
- }
114
- }
115
-
116
- td, th
117
- {
118
- padding: 10px;
119
- }
120
-
121
- code {
122
- line-height: 28px;
123
- }
124
-
125
- var, code, input[type="text"]
126
- {
127
- color: #0073AA;
128
- font-size: 16px;
129
- background: none;
130
- }
131
-
132
- input[type="text"] {
133
- width: 100%;
134
- font-weight: bold;
135
- }
136
- }
137
-
138
- label.fs-tag
139
- {
140
- background: #ffba00;
141
- color: #fff;
142
- display: inline-block;
143
- border-radius: 3px;
144
- padding: 5px;
145
- font-size: 11px;
146
- line-height: 11px;
147
- vertical-align: baseline;
148
-
149
- &.fs-warn
150
- {
151
- background: #ffba00;
152
- }
153
- &.fs-success
154
- {
155
- background: #46b450;
156
- }
157
- &.fs-error
158
- {
159
- background: #dc3232;
160
- }
161
- }
162
-
163
- #fs_addons
164
- {
165
- h3
166
- {
167
- border: none;
168
- margin-bottom: 0;
169
- padding: 4px 5px;
170
- }
171
-
172
- td
173
- {
174
- vertical-align: middle;
175
- }
176
-
177
- thead {
178
- white-space: nowrap;
179
- }
180
-
181
- td:first-child,
182
- th:first-child
183
- {
184
- text-align: left;
185
- font-weight: bold;
186
- }
187
- td:last-child,
188
- th:last-child
189
- {
190
- text-align: right;
191
- }
192
- th
193
- {
194
- font-weight: bold;
195
- }
196
- }
197
-
198
- #fs_billing_address {
199
- width: 100%;
200
-
201
- tr {
202
- td {
203
- width: 50%;
204
- padding: 5px;
205
- }
206
-
207
- &:first-of-type {
208
- td {
209
- padding-top: 0;
210
- }
211
- }
212
- }
213
-
214
- @mixin read-mode {
215
- border-color: transparent;
216
- color: #777;
217
- border-bottom: 1px dashed #ccc;
218
- padding-left: 0;
219
- background: none;
220
- }
221
-
222
- span {
223
- font-weight: bold;
224
- }
225
-
226
- input, select {
227
- @include placeholder(transparent);
228
-
229
- display: block;
230
- width: 100%;
231
- margin-top: 5px;
232
-
233
- &.fs-read-mode {
234
- @include read-mode();
235
- }
236
- }
237
-
238
-
239
- &.fs-read-mode {
240
- td span {
241
- display: none;
242
- }
243
-
244
- input, select
245
- {
246
- @include read-mode();
247
- @include placeholder(#ccc);
248
- }
249
- }
250
-
251
-
252
- button {
253
- display: block;
254
- width: 100%;
255
- }
256
  }
1
+ @import "../start";
2
+
3
+ #fs_account
4
+ {
5
+ .postbox,
6
+ .widefat
7
+ {
8
+ max-width: 700px;
9
+ }
10
+
11
+ h3
12
+ {
13
+ font-size: 1.3em;
14
+ padding: 12px 15px;
15
+ margin: 0 0 12px 0;
16
+ line-height: 1.4;
17
+ border-bottom: 1px solid #F1F1F1;
18
+
19
+ .dashicons {
20
+ width: 26px;
21
+ height: 26px;
22
+ font-size: 1.3em;
23
+ }
24
+ }
25
+
26
+ i.dashicons
27
+ {
28
+ font-size: 1.2em;
29
+ height: 1.2em;
30
+ width: 1.2em;
31
+ }
32
+
33
+ .button
34
+ {
35
+ i.dashicons
36
+ {
37
+ vertical-align: middle;
38
+ }
39
+ }
40
+
41
+ .fs-header-actions
42
+ {
43
+ position: absolute;
44
+ top: 17px;
45
+ right: 15px;
46
+ font-size: 0.9em;
47
+
48
+ ul
49
+ {
50
+ margin: 0;
51
+ }
52
+
53
+ li
54
+ {
55
+ form
56
+ {
57
+ display: inline-block;
58
+ }
59
+
60
+ float: left;
61
+ a
62
+ {
63
+ text-decoration: none;
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ #fs_account_details .button-group {
70
+ float: right;
71
+ }
72
+
73
+ .rtl #fs_account .fs-header-actions
74
+ {
75
+ left: 15px;
76
+ right: auto;
77
+ }
78
+
79
+ .fs-key-value-table
80
+ {
81
+ width: 100%;
82
+
83
+ form
84
+ {
85
+ display: inline-block;
86
+ }
87
+
88
+ tr
89
+ {
90
+ td:first-child
91
+ {
92
+ nobr
93
+ {
94
+ font-weight: bold;
95
+ }
96
+
97
+ text-align: right;
98
+
99
+ form
100
+ {
101
+ display: block;
102
+ }
103
+ }
104
+
105
+ td.fs-right
106
+ {
107
+ text-align: right;
108
+ }
109
+
110
+ &.fs-odd
111
+ {
112
+ background: #ebebeb;
113
+ }
114
+ }
115
+
116
+ td, th
117
+ {
118
+ padding: 10px;
119
+ }
120
+
121
+ code {
122
+ line-height: 28px;
123
+ }
124
+
125
+ var, code, input[type="text"]
126
+ {
127
+ color: #0073AA;
128
+ font-size: 16px;
129
+ background: none;
130
+ }
131
+
132
+ input[type="text"] {
133
+ width: 100%;
134
+ font-weight: bold;
135
+ }
136
+ }
137
+
138
+ label.fs-tag
139
+ {
140
+ background: #ffba00;
141
+ color: #fff;
142
+ display: inline-block;
143
+ border-radius: 3px;
144
+ padding: 5px;
145
+ font-size: 11px;
146
+ line-height: 11px;
147
+ vertical-align: baseline;
148
+
149
+ &.fs-warn
150
+ {
151
+ background: #ffba00;
152
+ }
153
+ &.fs-success
154
+ {
155
+ background: #46b450;
156
+ }
157
+ &.fs-error
158
+ {
159
+ background: #dc3232;
160
+ }
161
+ }
162
+
163
+ #fs_addons
164
+ {
165
+ h3
166
+ {
167
+ border: none;
168
+ margin-bottom: 0;
169
+ padding: 4px 5px;
170
+ }
171
+
172
+ td
173
+ {
174
+ vertical-align: middle;
175
+ }
176
+
177
+ thead {
178
+ white-space: nowrap;
179
+ }
180
+
181
+ td:first-child,
182
+ th:first-child
183
+ {
184
+ text-align: left;
185
+ font-weight: bold;
186
+ }
187
+ td:last-child,
188
+ th:last-child
189
+ {
190
+ text-align: right;
191
+ }
192
+ th
193
+ {
194
+ font-weight: bold;
195
+ }
196
+ }
197
+
198
+ #fs_billing_address {
199
+ width: 100%;
200
+
201
+ tr {
202
+ td {
203
+ width: 50%;
204
+ padding: 5px;
205
+ }
206
+
207
+ &:first-of-type {
208
+ td {
209
+ padding-top: 0;
210
+ }
211
+ }
212
+ }
213
+
214
+ @mixin read-mode {
215
+ border-color: transparent;
216
+ color: #777;
217
+ border-bottom: 1px dashed #ccc;
218
+ padding-left: 0;
219
+ background: none;
220
+ }
221
+
222
+ span {
223
+ font-weight: bold;
224
+ }
225
+
226
+ input, select {
227
+ @include placeholder(transparent);
228
+
229
+ display: block;
230
+ width: 100%;
231
+ margin-top: 5px;
232
+
233
+ &.fs-read-mode {
234
+ @include read-mode();
235
+ }
236
+ }
237
+
238
+
239
+ &.fs-read-mode {
240
+ td span {
241
+ display: none;
242
+ }
243
+
244
+ input, select
245
+ {
246
+ @include read-mode();
247
+ @include placeholder(#ccc);
248
+ }
249
+ }
250
+
251
+
252
+ button {
253
+ display: block;
254
+ width: 100%;
255
+ }
256
  }
freemius/assets/scss/admin/add-ons.scss CHANGED
@@ -1,449 +1,449 @@
1
- @import "../start";
2
-
3
- #fs_addons
4
- {
5
- .fs-cards-list
6
- {
7
- list-style: none;
8
-
9
- .fs-card
10
- {
11
- float: left;
12
- // height: 185px; // With reviews/ratings
13
- height: 152px;
14
- width: 310px;
15
- padding: 0;
16
- margin: 0 0 30px 30px;
17
- font-size: 14px;
18
- list-style: none;
19
- border: 1px solid #ddd;
20
- cursor: pointer;
21
- position: relative;
22
-
23
- .fs-overlay
24
- {
25
- position: absolute;
26
- left: 0;
27
- right: 0;
28
- bottom: 0;
29
- top: 0;
30
- z-index: 9;
31
- }
32
-
33
- .fs-inner
34
- {
35
- background-color: #fff;
36
- overflow: hidden;
37
- height: 100%;
38
- position: relative;
39
-
40
- ul
41
- {
42
- @include transition(all, 0.15s);
43
- left: 0;
44
- right: 0;
45
- top: 0;
46
- position: absolute;
47
- }
48
-
49
- li
50
- {
51
- list-style: none;
52
- line-height: 18px;
53
- padding: 0 15px;
54
- width: 100%;
55
- display: block;
56
- @include box-sizing(border-box);
57
- }
58
-
59
- .fs-card-banner
60
- {
61
- padding: 0;
62
- margin: 0;
63
- line-height: 0;
64
- display: block;
65
- height: 100px;
66
- background-repeat: repeat-x;
67
- background-size: 100% 100%;
68
- @include transition(all, 0.15s);
69
- }
70
-
71
- .fs-title
72
- {
73
- margin: 10px 0 0 0;
74
- height: 18px;
75
- overflow: hidden;
76
- color: #000;
77
- white-space: nowrap;
78
- text-overflow: ellipsis;
79
- font-weight: bold;
80
- }
81
-
82
- .fs-offer
83
- {
84
- font-size: 0.9em;
85
- }
86
-
87
- .fs-description
88
- {
89
- background-color: #f9f9f9;
90
- padding: 10px 15px 100px 15px;
91
- border-top: 1px solid #eee;
92
- margin: 0 0 10px 0;
93
- color: #777;
94
- }
95
-
96
- .fs-tag
97
- {
98
- position: absolute;
99
- top: 10px;
100
- right: 0px;
101
- background: greenyellow;
102
- display: block;
103
- padding: 2px 10px;
104
- @include box-shadow(1px 1px 1px rgba(0,0,0,0.3));
105
- text-transform: uppercase;
106
- font-size: 0.9em;
107
- font-weight: bold;
108
- }
109
-
110
- .fs-cta
111
- {
112
- .button
113
- {
114
- position: absolute;
115
- top: 112px;
116
- right: 10px;
117
- }
118
- }
119
- }
120
-
121
- @media screen and (min-width: 960px) {
122
- &:hover
123
- {
124
- .fs-overlay
125
- {
126
- border: 2px solid $fms-link-color;
127
- margin-left: -1px;
128
- margin-top: -1px;
129
- }
130
-
131
- .fs-inner
132
- {
133
- ul
134
- {
135
- top: -100px;
136
- }
137
-
138
- .fs-card-banner
139
- {
140
- // background-position: 50% -100px;
141
- }
142
-
143
- .fs-title,
144
- .fs-offer
145
- {
146
- color: $fms-link-color;
147
- }
148
- }
149
- }
150
- }
151
- }
152
- }
153
- }
154
-
155
- #TB_window
156
- {
157
- &, iframe
158
- {
159
- width: 772px !important;
160
- }
161
- }
162
-
163
- #plugin-information
164
- {
165
- #section-description
166
- {
167
- h2, h3, p, b, i, blockquote, li, ul, ol
168
- {
169
- clear: none;
170
- }
171
-
172
- .fs-selling-points
173
- {
174
- padding-bottom: 10px;
175
- border-bottom: 1px solid #ddd;
176
-
177
- ul
178
- {
179
- margin: 0;
180
-
181
- li
182
- {
183
- padding: 0;
184
- list-style: none outside none;
185
-
186
- i.dashicons
187
- {
188
- color: $fs-logo-green-color;
189
- font-size: 3em;
190
- vertical-align: middle;
191
- line-height: 30px;
192
- float: left;
193
- margin: 0 0 0 -15px;
194
- }
195
-
196
- h3
197
- {
198
- margin: 1em 30px !important;
199
- }
200
- }
201
- }
202
- }
203
-
204
- .fs-screenshots
205
- {
206
- @include clearfix();
207
- ul
208
- {
209
- list-style: none;
210
- margin: 0;
211
-
212
- li
213
- {
214
- width: 225px;
215
- height: 225px;
216
- float: left;
217
- margin-bottom: 20px;
218
- @include box-sizing(content-box);
219
-
220
- a
221
- {
222
- display: block;
223
- width: 100%;
224
- height: 100%;
225
- border: 1px solid;
226
- @include box-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
227
- background-size: cover;
228
- }
229
-
230
- &.odd
231
- {
232
- margin-right: 20px;
233
- }
234
- }
235
- }
236
- }
237
- }
238
-
239
- .plugin-information-pricing
240
- {
241
- $pricing_color: #FFFEEC;
242
- $borders_color: #DDD;
243
- margin: -16px;
244
- // padding: 20px;
245
- border-bottom: 1px solid $borders_color;
246
-
247
- .fs-plan
248
- {
249
-
250
- h3
251
- {
252
- margin-top: 0;
253
- padding: 20px;
254
- font-size: 16px;
255
- }
256
-
257
- .nav-tab-wrapper
258
- {
259
- border-bottom: 1px solid $borders_color;
260
-
261
- .nav-tab
262
- {
263
- cursor: pointer;
264
- position: relative;
265
- padding: 0 10px;
266
- font-size: 0.9em;
267
-
268
- label
269
- {
270
- text-transform: uppercase;
271
- color: green;
272
- background: greenyellow;
273
- position: absolute;
274
- left: -1px;
275
- right: -1px;
276
- bottom: 100%;
277
- border: 1px solid darkgreen;
278
- padding: 2px;
279
- text-align: center;
280
- font-size: 0.9em;
281
- line-height: 1em;
282
- }
283
-
284
- &.nav-tab-active
285
- {
286
- cursor: default;
287
- background: $pricing_color;
288
- border-bottom-color: $pricing_color;
289
- }
290
- }
291
- }
292
-
293
- &.fs-single-cycle
294
- {
295
- h3
296
- {
297
- background: $pricing_color;
298
- margin: 0;
299
- padding-bottom: 0;
300
- color: #0073aa;
301
- }
302
-
303
- .nav-tab-wrapper,
304
- .fs-billing-frequency
305
- {
306
- display: none;
307
- }
308
- }
309
-
310
- .fs-pricing-body
311
- {
312
- background: $pricing_color;
313
- padding: 20px;
314
- }
315
-
316
- .button
317
- {
318
- width: 100%;
319
- text-align: center;
320
- font-weight: bold;
321
- text-transform: uppercase;
322
- font-size: 1.1em;
323
- }
324
-
325
- label
326
- {
327
- white-space: nowrap;
328
- }
329
-
330
- var {
331
- font-style: normal;
332
- }
333
-
334
- .fs-billing-frequency,
335
- .fs-annual-discount
336
- {
337
- text-align: center;
338
- display: block;
339
- font-weight: bold;
340
- margin-bottom: 10px;
341
- text-transform: uppercase;
342
- background: #F3F3F3;
343
- padding: 2px;
344
- border: 1px solid #ccc;
345
- }
346
-
347
- .fs-annual-discount
348
- {
349
- text-transform: none;
350
- color: green;
351
- background: greenyellow;
352
- }
353
-
354
- ul.fs-trial-terms
355
- {
356
- font-size: 0.9em;
357
-
358
- i
359
- {
360
- float: left;
361
- margin: 0 0 0 -15px;
362
- }
363
-
364
- li
365
- {
366
- margin: 10px 0 0 0;
367
- }
368
- }
369
- }
370
- }
371
-
372
- #section-features
373
- {
374
- .fs-features
375
- {
376
- margin: -20px -26px;
377
- }
378
-
379
- table
380
- {
381
- width: 100%;
382
- border-spacing: 0;
383
- border-collapse: separate;
384
-
385
- thead
386
- {
387
- th
388
- {
389
- padding: 10px 0;
390
- }
391
-
392
- .fs-price
393
- {
394
- color: $fs-logo-green-color;
395
- font-weight: normal;
396
- display: block;
397
- text-align: center;
398
- }
399
- }
400
-
401
- tbody
402
- {
403
- td
404
- {
405
- border-top: 1px solid #ccc;
406
- padding: 10px 0;
407
- text-align: center;
408
- width: 100px;
409
- color: $fs-logo-green-color;
410
-
411
- &:first-child
412
- {
413
- text-align: left;
414
- width: auto;
415
- color: inherit;
416
- padding-left: 26px;
417
- }
418
- }
419
- tr.fs-odd
420
- {
421
- td
422
- {
423
- background: #fefefe;
424
- }
425
- }
426
- }
427
- }
428
-
429
- .dashicons-yes
430
- {
431
- width: 30px;
432
- height: 30px;
433
- font-size: 30px;
434
- }
435
- }
436
- }
437
-
438
- @media screen and (max-width: 961px) {
439
- #fs_addons
440
- {
441
- .fs-cards-list
442
- {
443
- .fs-card
444
- {
445
- height: 265px;
446
- }
447
- }
448
- }
449
  }
1
+ @import "../start";
2
+
3
+ #fs_addons
4
+ {
5
+ .fs-cards-list
6
+ {
7
+ list-style: none;
8
+
9
+ .fs-card
10
+ {
11
+ float: left;
12
+ // height: 185px; // With reviews/ratings
13
+ height: 152px;
14
+ width: 310px;
15
+ padding: 0;
16
+ margin: 0 0 30px 30px;
17
+ font-size: 14px;
18
+ list-style: none;
19
+ border: 1px solid #ddd;
20
+ cursor: pointer;
21
+ position: relative;
22
+
23
+ .fs-overlay
24
+ {
25
+ position: absolute;
26
+ left: 0;
27
+ right: 0;
28
+ bottom: 0;
29
+ top: 0;
30
+ z-index: 9;
31
+ }
32
+
33
+ .fs-inner
34
+ {
35
+ background-color: #fff;
36
+ overflow: hidden;
37
+ height: 100%;
38
+ position: relative;
39
+
40
+ ul
41
+ {
42
+ @include transition(all, 0.15s);
43
+ left: 0;
44
+ right: 0;
45
+ top: 0;
46
+ position: absolute;
47
+ }
48
+
49
+ li
50
+ {
51
+ list-style: none;
52
+ line-height: 18px;
53
+ padding: 0 15px;
54
+ width: 100%;
55
+ display: block;
56
+ @include box-sizing(border-box);
57
+ }
58
+
59
+ .fs-card-banner
60
+ {
61
+ padding: 0;
62
+ margin: 0;
63
+ line-height: 0;
64
+ display: block;
65
+ height: 100px;
66
+ background-repeat: repeat-x;
67
+ background-size: 100% 100%;
68
+ @include transition(all, 0.15s);
69
+ }
70
+
71
+ .fs-title
72
+ {
73
+ margin: 10px 0 0 0;
74
+ height: 18px;
75
+ overflow: hidden;
76
+ color: #000;
77
+ white-space: nowrap;
78
+ text-overflow: ellipsis;
79
+ font-weight: bold;
80
+ }
81
+
82
+ .fs-offer
83
+ {
84
+ font-size: 0.9em;
85
+ }
86
+
87
+ .fs-description
88
+ {
89
+ background-color: #f9f9f9;
90
+ padding: 10px 15px 100px 15px;
91
+ border-top: 1px solid #eee;
92
+ margin: 0 0 10px 0;
93
+ color: #777;
94
+ }
95
+
96
+ .fs-tag
97
+ {
98
+ position: absolute;
99
+ top: 10px;
100
+ right: 0px;
101
+ background: greenyellow;
102
+ display: block;
103
+ padding: 2px 10px;
104
+ @include box-shadow(1px 1px 1px rgba(0,0,0,0.3));
105
+ text-transform: uppercase;
106
+ font-size: 0.9em;
107
+ font-weight: bold;
108
+ }
109
+
110
+ .fs-cta
111
+ {
112
+ .button
113
+ {
114
+ position: absolute;
115
+ top: 112px;
116
+ right: 10px;
117
+ }
118
+ }
119
+ }
120
+
121
+ @media screen and (min-width: 960px) {
122
+ &:hover
123
+ {
124
+ .fs-overlay
125
+ {
126
+ border: 2px solid $fms-link-color;
127
+ margin-left: -1px;
128
+ margin-top: -1px;
129
+ }
130
+
131
+ .fs-inner
132
+ {
133
+ ul
134
+ {
135
+ top: -100px;
136
+ }
137
+
138
+ .fs-card-banner
139
+ {
140
+ // background-position: 50% -100px;
141
+ }
142
+
143
+ .fs-title,
144
+ .fs-offer
145
+ {
146
+ color: $fms-link-color;
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }
152
+ }
153
+ }
154
+
155
+ #TB_window
156
+ {
157
+ &, iframe
158
+ {
159
+ width: 772px !important;
160
+ }
161
+ }
162
+
163
+ #plugin-information
164
+ {
165
+ #section-description
166
+ {
167
+ h2, h3, p, b, i, blockquote, li, ul, ol
168
+ {
169
+ clear: none;
170
+ }
171
+
172
+ .fs-selling-points
173
+ {
174
+ padding-bottom: 10px;
175
+ border-bottom: 1px solid #ddd;
176
+
177
+ ul
178
+ {
179
+ margin: 0;
180
+
181
+ li
182
+ {
183
+ padding: 0;
184
+ list-style: none outside none;
185
+
186
+ i.dashicons
187
+ {
188
+ color: $fs-logo-green-color;
189
+ font-size: 3em;
190
+ vertical-align: middle;
191
+ line-height: 30px;
192
+ float: left;
193
+ margin: 0 0 0 -15px;
194
+ }
195
+
196
+ h3
197
+ {
198
+ margin: 1em 30px !important;
199
+ }
200
+ }
201
+ }
202
+ }
203
+
204
+ .fs-screenshots
205
+ {
206
+ @include clearfix();
207
+ ul
208
+ {
209
+ list-style: none;
210
+ margin: 0;
211
+
212
+ li
213
+ {
214
+ width: 225px;
215
+ height: 225px;
216
+ float: left;
217
+ margin-bottom: 20px;
218
+ @include box-sizing(content-box);
219
+
220
+ a
221
+ {
222
+ display: block;
223
+ width: 100%;
224
+ height: 100%;
225
+ border: 1px solid;
226
+ @include box-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
227
+ background-size: cover;
228
+ }
229
+
230
+ &.odd
231
+ {
232
+ margin-right: 20px;
233
+ }
234
+ }
235
+ }
236
+ }
237
+ }
238
+
239
+ .plugin-information-pricing
240
+ {
241
+ $pricing_color: #FFFEEC;
242
+ $borders_color: #DDD;
243
+ margin: -16px;
244
+ // padding: 20px;
245
+ border-bottom: 1px solid $borders_color;
246
+
247
+ .fs-plan
248
+ {
249
+
250
+ h3
251
+ {
252
+ margin-top: 0;
253
+ padding: 20px;
254
+ font-size: 16px;
255
+ }
256
+
257
+ .nav-tab-wrapper
258
+ {
259
+ border-bottom: 1px solid $borders_color;
260
+
261
+ .nav-tab
262
+ {
263
+ cursor: pointer;
264
+ position: relative;
265
+ padding: 0 10px;
266
+ font-size: 0.9em;
267
+
268
+ label
269
+ {
270
+ text-transform: uppercase;
271
+ color: green;
272
+ background: greenyellow;
273
+ position: absolute;
274
+ left: -1px;
275
+ right: -1px;
276
+ bottom: 100%;
277
+ border: 1px solid darkgreen;
278
+ padding: 2px;
279
+ text-align: center;
280
+ font-size: 0.9em;
281
+ line-height: 1em;
282
+ }
283
+
284
+ &.nav-tab-active
285
+ {
286
+ cursor: default;
287
+ background: $pricing_color;
288
+ border-bottom-color: $pricing_color;
289
+ }
290
+ }
291
+ }
292
+
293
+ &.fs-single-cycle
294
+ {
295
+ h3
296
+ {
297
+ background: $pricing_color;
298
+ margin: 0;
299
+ padding-bottom: 0;
300
+ color: #0073aa;
301
+ }
302
+
303
+ .nav-tab-wrapper,
304
+ .fs-billing-frequency
305
+ {
306
+ display: none;
307
+ }
308
+ }
309
+
310
+ .fs-pricing-body
311
+ {
312
+ background: $pricing_color;
313
+ padding: 20px;
314
+ }
315
+
316
+ .button
317
+ {
318
+ width: 100%;
319
+ text-align: center;
320
+ font-weight: bold;
321
+ text-transform: uppercase;
322
+ font-size: 1.1em;
323
+ }
324
+
325
+ label
326
+ {
327
+ white-space: nowrap;
328
+ }
329
+
330
+ var {
331
+ font-style: normal;
332
+ }
333
+
334
+ .fs-billing-frequency,
335
+ .fs-annual-discount
336
+ {
337
+ text-align: center;
338
+ display: block;
339
+ font-weight: bold;
340
+ margin-bottom: 10px;
341
+ text-transform: uppercase;
342
+ background: #F3F3F3;
343
+ padding: 2px;
344
+ border: 1px solid #ccc;
345
+ }
346
+
347
+ .fs-annual-discount
348
+ {
349
+ text-transform: none;
350
+ color: green;
351
+ background: greenyellow;
352
+ }
353
+
354
+ ul.fs-trial-terms
355
+ {
356
+ font-size: 0.9em;
357
+
358
+ i
359
+ {
360
+ float: left;
361
+ margin: 0 0 0 -15px;
362
+ }
363
+
364
+ li
365
+ {
366
+ margin: 10px 0 0 0;
367
+ }
368
+ }
369
+ }
370
+ }
371
+
372
+ #section-features
373
+ {
374
+ .fs-features
375
+ {
376
+ margin: -20px -26px;
377
+ }
378
+
379
+ table
380
+ {
381
+ width: 100%;
382
+ border-spacing: 0;
383
+ border-collapse: separate;
384
+
385
+ thead
386
+ {
387
+ th
388
+ {
389
+ padding: 10px 0;
390
+ }
391
+
392
+ .fs-price
393
+ {
394
+ color: $fs-logo-green-color;
395
+ font-weight: normal;
396
+ display: block;
397
+ text-align: center;
398
+ }
399
+ }
400
+
401
+ tbody
402
+ {
403
+ td
404
+ {
405
+ border-top: 1px solid #ccc;
406
+ padding: 10px 0;
407
+ text-align: center;
408
+ width: 100px;
409
+ color: $fs-logo-green-color;
410
+
411
+ &:first-child
412
+ {
413
+ text-align: left;
414
+ width: auto;
415
+ color: inherit;
416
+ padding-left: 26px;
417
+ }
418
+ }
419
+ tr.fs-odd
420
+ {
421
+ td
422
+ {
423
+ background: #fefefe;
424
+ }
425
+ }
426
+ }
427
+ }
428
+
429
+ .dashicons-yes
430
+ {
431
+ width: 30px;
432
+ height: 30px;
433
+ font-size: 30px;
434
+ }
435
+ }
436
+ }
437
+
438
+ @media screen and (max-width: 961px) {
439
+ #fs_addons
440
+ {
441
+ .fs-cards-list
442
+ {
443
+ .fs-card
444
+ {
445
+ height: 265px;
446
+ }
447
+ }
448
+ }
449
  }
freemius/assets/scss/admin/checkout.scss CHANGED
@@ -1,5 +1,5 @@
1
- @media screen and (max-width: 782px) {
2
- #wpbody-content {
3
- padding-bottom: 0 !important;
4
- }
5
  }
1
+ @media screen and (max-width: 782px) {
2
+ #wpbody-content {
3
+ padding-bottom: 0 !important;
4
+ }
5
  }
freemius/assets/scss/admin/debug.scss CHANGED
@@ -1,135 +1,135 @@
1
- @import "../start";
2
-
3
- .switch
4
- {
5
- position: relative;
6
- display: inline-block;
7
- font-size: 1.6em;
8
- font-weight: bold;
9
- color: #ccc;
10
- text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.8);
11
- height: 18px;
12
- padding: 6px 6px 5px 6px;
13
- border: 1px solid #ccc;
14
- border: 1px solid rgba(0, 0, 0, 0.2);
15
- border-radius: 4px;
16
- background: #ececec;
17
- box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1), inset 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
18
- cursor: pointer;
19
-
20
- span
21
- {
22
- display: inline-block; width: 35px;
23
- text-transform: uppercase;
24
-
25
- &.on
26
- {
27
- color: $button-primary-bkg;
28
- }
29
- }
30
-
31
- .toggle
32
- {
33
- position: absolute;
34
- top: 1px;
35
- width: 37px;
36
- height: 25px;
37
- border: 1px solid #ccc;
38
- border: 1px solid rgba(0, 0, 0, 0.3);
39
- border-radius: 4px;
40
- background: #fff;
41
- background: -moz-linear-gradient(top, #ececec 0%, #fff 100%);
42
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ececec), color-stop(100%, #fff));
43
- background: -webkit-linear-gradient(top, #ececec 0%, #fff 100%);
44
- background: -o-linear-gradient(top, #ececec 0%, #fff 100%);
45
- background: -ms-linear-gradient(top, #ececec 0%, #fff 100%);
46
- background: linear-gradient(top, #ececec 0%, #fff 100%);
47
- box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.5);
48
- z-index: 999;
49
- @include transition(all 0.15s ease-in-out);
50
- }
51
-
52
- &.on .toggle
53
- {
54
- left: 2%;
55
- }
56
- &.off .toggle
57
- {
58
- left: 54%;
59
- }
60
-
61
- /* Round switch */
62
- &.round
63
- {
64
- padding: 0px 20px;
65
- border-radius: 40px;
66
-
67
- .toggle
68
- {
69
- border-radius: 40px;
70
- width: 14px;
71
- height: 14px;
72
- }
73
-
74
- &.on .toggle
75
- {
76
- left: 3%;
77
- background: $button-primary-bkg;
78
- }
79
- &.off .toggle
80
- {
81
- left: 58%;
82
- }
83
- }
84
- }
85
-
86
- .switch-label
87
- {
88
- font-size: 20px;
89
- line-height: 31px;
90
- margin: 0 5px;
91
- }
92
-
93
- #fs_log_book {
94
- table {
95
- font-family: Consolas,Monaco,monospace;
96
- font-size: 12px;
97
-
98
- th {
99
- color: #ccc;
100
- }
101
-
102
- tr {
103
- background: #232525;
104
-
105
- &.alternate {
106
- background: #2b2b2b;
107
- }
108
-
109
- td {
110
- &.fs-col--logger {
111
- color: #5a7435;
112
- }
113
- &.fs-col--type {
114
- color: #ffc861;
115
- }
116
- &.fs-col--function {
117
- color: #a7b7b1;
118
- font-weight: bold;
119
- }
120
- &.fs-col--message {
121
- &, a
122
- {
123
- color: #9a73ac !important;
124
- }
125
- }
126
- &.fs-col--file {
127
- color: #d07922;
128
- }
129
- &.fs-col--timestamp {
130
- color: #6596be;
131
- }
132
- }
133
- }
134
- }
135
  }
1
+ @import "../start";
2
+
3
+ .switch
4
+ {
5
+ position: relative;
6
+ display: inline-block;
7
+ font-size: 1.6em;
8
+ font-weight: bold;
9
+ color: #ccc;
10
+ text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.8);
11
+ height: 18px;
12
+ padding: 6px 6px 5px 6px;
13
+ border: 1px solid #ccc;
14
+ border: 1px solid rgba(0, 0, 0, 0.2);
15
+ border-radius: 4px;
16
+ background: #ececec;
17
+ box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1), inset 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
18
+ cursor: pointer;
19
+
20
+ span
21
+ {
22
+ display: inline-block; width: 35px;
23
+ text-transform: uppercase;
24
+
25
+ &.on
26
+ {
27
+ color: $button-primary-bkg;
28
+ }
29
+ }
30
+
31
+ .toggle
32
+ {
33
+ position: absolute;
34
+ top: 1px;
35
+ width: 37px;
36
+ height: 25px;
37
+ border: 1px solid #ccc;
38
+ border: 1px solid rgba(0, 0, 0, 0.3);
39
+ border-radius: 4px;
40
+ background: #fff;
41
+ background: -moz-linear-gradient(top, #ececec 0%, #fff 100%);
42
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ececec), color-stop(100%, #fff));
43
+ background: -webkit-linear-gradient(top, #ececec 0%, #fff 100%);
44
+ background: -o-linear-gradient(top, #ececec 0%, #fff 100%);
45
+ background: -ms-linear-gradient(top, #ececec 0%, #fff 100%);
46
+ background: linear-gradient(top, #ececec 0%, #fff 100%);
47
+ box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.5);
48
+ z-index: 999;
49
+ @include transition(all 0.15s ease-in-out);
50
+ }
51
+
52
+ &.on .toggle
53
+ {
54
+ left: 2%;
55
+ }
56
+ &.off .toggle
57
+ {
58
+ left: 54%;
59
+ }
60
+
61
+ /* Round switch */
62
+ &.round
63
+ {
64
+ padding: 0px 20px;
65
+ border-radius: 40px;
66
+
67
+ .toggle
68
+ {
69
+ border-radius: 40px;
70
+ width: 14px;
71
+ height: 14px;
72
+ }
73
+
74
+ &.on .toggle
75
+ {
76
+ left: 3%;
77
+ background: $button-primary-bkg;
78
+ }
79
+ &.off .toggle
80
+ {
81
+ left: 58%;
82
+ }
83
+ }
84
+ }
85
+
86
+ .switch-label
87
+ {
88
+ font-size: 20px;
89
+ line-height: 31px;
90
+ margin: 0 5px;
91
+ }
92
+
93
+ #fs_log_book {
94
+ table {
95
+ font-family: Consolas,Monaco,monospace;
96
+ font-size: 12px;
97
+
98
+ th {
99
+ color: #ccc;
100
+ }
101
+
102
+ tr {
103
+ background: #232525;
104
+
105
+ &.alternate {
106
+ background: #2b2b2b;
107
+ }
108
+
109
+ td {
110
+ &.fs-col--logger {
111
+ color: #5a7435;
112
+ }
113
+ &.fs-col--type {
114
+ color: #ffc861;
115
+ }
116
+ &.fs-col--function {
117
+ color: #a7b7b1;
118
+ font-weight: bold;
119
+ }
120
+ &.fs-col--message {
121
+ &, a
122
+ {
123
+ color: #9a73ac !important;
124
+ }
125
+ }
126
+ &.fs-col--file {
127
+ color: #d07922;
128
+ }
129
+ &.fs-col--timestamp {
130
+ color: #6596be;
131
+ }
132
+ }
133
+ }
134
+ }
135
  }
freemius/assets/scss/admin/dialog-boxes.scss CHANGED
@@ -1,7 +1,7 @@
1
- @import "../start";
2
- @import "modal-common";
3
- @import "deactivation-feedback";
4
- @import "license-activation";
5
- @import "license-key-resend";
6
- @import "ajax-loader";
7
  @import "auto-install";
1
+ @import "../start";
2
+ @import "modal-common";
3
+ @import "deactivation-feedback";
4
+ @import "license-activation";
5
+ @import "license-key-resend";
6
+ @import "ajax-loader";
7
  @import "auto-install";
freemius/assets/scss/customizer.scss CHANGED
@@ -1,125 +1,125 @@
1
- @import "start";
2
-
3
- #fs_customizer_upsell {
4
- .fs-customizer-plan {
5
- padding: 10px 20px 20px 20px;
6
- border-radius: 3px;
7
- background: #fff;
8
-
9
- h2 {
10
- position: relative;
11
- margin: 0;
12
- line-height: 2em;
13
- text-transform: uppercase;
14
-
15
- .button-link {
16
- top: -2px;
17
- }
18
- }
19
- }
20
-
21
- .fs-feature {
22
- position: relative;
23
- }
24
-
25
- .dashicons-yes {
26
- color: #0085ba;
27
- font-size: 2em;
28
- vertical-align: bottom;
29
- margin-left: -7px;
30
- margin-right: 10px;
31
-
32
- .rtl & {
33
- margin-left: 10px;
34
- margin-right: -7px;
35
- }
36
- }
37
-
38
- .dashicons-editor-help
39
- {
40
- color: #bbb;
41
- cursor: help;
42
-
43
- $tooltip-color: #000;
44
-
45
- .fs-feature-desc {
46
- opacity: 0;
47
- visibility: hidden;
48
- @include transition(opacity 0.3s ease-in-out);
49
-
50
- position: absolute;
51
- background: $tooltip-color;
52
- color: #fff;
53
- font-family: 'arial', serif;
54
- font-size: 12px;
55
- padding: 10px;
56
- z-index: 999999;
57
- bottom: 100%;
58
- margin-bottom: 5px;
59
- left: 0;
60
- right: 0;
61
- @include border-radius(5px);
62
- @include box-shadow(1px 1px 1px rgba(0,0,0,0.2));
63
- line-height: 1.3em;
64
- font-weight: bold;
65
- text-align: left;
66
-
67
- .rtl &
68
- {
69
- text-align: right;
70
- }
71
-
72
- &::after {
73
- content: ' ';
74
- display: block;
75
- width: 0;
76
- height: 0;
77
- border-style: solid;
78
- border-width: 5px 5px 0 5px;
79
- border-color: $tooltip-color transparent transparent transparent;
80
- position: absolute;
81
- top: 100%;
82
- left: 21px;
83
-
84
- .rtl & {
85
- right: 21px;
86
- left: auto;
87
- }
88
- }
89
- }
90
-
91
- &:hover {
92
- .fs-feature-desc {
93
- visibility: visible;
94
- opacity: 1;
95
- }
96
- }
97
- }
98
-
99
- .button-primary {
100
- display: block;
101
- text-align: center;
102
- margin-top: 10px;
103
- }
104
- }
105
-
106
- #fs_customizer_support
107
- {
108
- display: block !important;
109
-
110
- .button {
111
- float: right;
112
- }
113
-
114
- .button-group {
115
- width: 100%;
116
- display: block;
117
- margin-top: 10px;
118
-
119
- .button {
120
- float: none;
121
- width: 50%;
122
- text-align: center;
123
- }
124
- }
125
  }
1
+ @import "start";
2
+
3
+ #fs_customizer_upsell {
4
+ .fs-customizer-plan {
5
+ padding: 10px 20px 20px 20px;
6
+ border-radius: 3px;
7
+ background: #fff;
8
+
9
+ h2 {
10
+ position: relative;
11
+ margin: 0;
12
+ line-height: 2em;
13
+ text-transform: uppercase;
14
+
15
+ .button-link {
16
+ top: -2px;
17
+ }
18
+ }
19
+ }
20
+
21
+ .fs-feature {
22
+ position: relative;
23
+ }
24
+
25
+ .dashicons-yes {
26
+ color: #0085ba;
27
+ font-size: 2em;
28
+ vertical-align: bottom;
29
+ margin-left: -7px;
30
+ margin-right: 10px;
31
+
32
+ .rtl & {
33
+ margin-left: 10px;
34
+ margin-right: -7px;
35
+ }
36
+ }
37
+
38
+ .dashicons-editor-help
39
+ {
40
+ color: #bbb;
41
+ cursor: help;
42
+
43
+ $tooltip-color: #000;
44
+
45
+ .fs-feature-desc {
46
+ opacity: 0;
47
+ visibility: hidden;
48
+ @include transition(opacity 0.3s ease-in-out);
49
+
50
+ position: absolute;
51
+ background: $tooltip-color;
52
+ color: #fff;
53
+ font-family: 'arial', serif;
54
+ font-size: 12px;
55
+ padding: 10px;
56
+ z-index: 999999;
57
+ bottom: 100%;
58
+ margin-bottom: 5px;
59
+ left: 0;
60
+ right: 0;
61
+ @include border-radius(5px);
62
+ @include box-shadow(1px 1px 1px rgba(0,0,0,0.2));
63
+ line-height: 1.3em;
64
+ font-weight: bold;
65
+ text-align: left;
66
+
67
+ .rtl &
68
+ {
69
+ text-align: right;
70
+ }
71
+
72
+ &::after {
73
+ content: ' ';
74
+ display: block;
75
+ width: 0;
76
+ height: 0;
77
+ border-style: solid;
78
+ border-width: 5px 5px 0 5px;
79
+ border-color: $tooltip-color transparent transparent transparent;
80
+ position: absolute;
81
+ top: 100%;
82
+ left: 21px;
83
+
84
+ .rtl & {
85
+ right: 21px;
86
+ left: auto;
87
+ }
88
+ }
89
+ }
90
+
91
+ &:hover {
92
+ .fs-feature-desc {
93
+ visibility: visible;
94
+ opacity: 1;
95
+ }
96
+ }
97
+ }
98
+
99
+ .button-primary {
100
+ display: block;
101
+ text-align: center;
102
+ margin-top: 10px;
103
+ }
104
+ }
105
+
106
+ #fs_customizer_support
107
+ {
108
+ display: block !important;
109
+
110
+ .button {
111
+ float: right;
112
+ }
113
+
114
+ .button-group {
115
+ width: 100%;
116
+ display: block;
117
+ margin-top: 10px;
118
+
119
+ .button {
120
+ float: none;
121
+ width: 50%;
122
+ text-align: center;
123
+ }
124
+ }
125
  }
freemius/config.php CHANGED
@@ -1,328 +1,328 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.4
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- if ( ! defined( 'WP_FS__SLUG' ) ) {
14
- define( 'WP_FS__SLUG', 'freemius' );
15
- }
16
- if ( ! defined( 'WP_FS__DEV_MODE' ) ) {
17
- define( 'WP_FS__DEV_MODE', false );
18
- }
19
-
20
- #--------------------------------------------------------------------------------
21
- #region API Connectivity Issues Simulation
22
- #--------------------------------------------------------------------------------
23
-
24
- if ( ! defined( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY' ) ) {
25
- define( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY', false );
26
- }
27
- if ( ! defined( 'WP_FS__SIMULATE_NO_CURL' ) ) {
28
- define( 'WP_FS__SIMULATE_NO_CURL', false );
29
- }
30
- if ( ! defined( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE' ) ) {
31
- define( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE', false );
32
- }
33
- if ( ! defined( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL' ) ) {
34
- define( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL', false );
35
- }
36
- if ( WP_FS__SIMULATE_NO_CURL ) {
37
- define( 'FS_SDK__SIMULATE_NO_CURL', true );
38
- }
39
- if ( WP_FS__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE ) {
40
- define( 'FS_SDK__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE', true );
41
- }
42
- if ( WP_FS__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL ) {
43
- define( 'FS_SDK__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL', true );
44
- }
45
-
46
- #endregion
47
-
48
- if ( ! defined( 'WP_FS__SIMULATE_FREEMIUS_OFF' ) ) {
49
- define( 'WP_FS__SIMULATE_FREEMIUS_OFF', false );
50
- }
51
-
52
- if ( ! defined( 'WP_FS__PING_API_ON_IP_OR_HOST_CHANGES' ) ) {
53
- /**
54
- * @since 1.1.7.3
55
- * @author Vova Feldman (@svovaf)
56
- *
57
- * I'm not sure if shared servers periodically change IP, or the subdomain of the
58
- * admin dashboard. Also, I've seen sites that have strange loop of switching
59
- * between domains on a daily basis. Therefore, to eliminate the risk of
60
- * multiple unwanted connectivity test pings, temporary ignore domain or
61
- * server IP changes.
62
- */
63
- define( 'WP_FS__PING_API_ON_IP_OR_HOST_CHANGES', false );
64
- }
65
-
66
- /**
67
- * If your dev environment supports custom public network IP setup
68
- * like VVV, please update WP_FS__LOCALHOST_IP with your public IP
69
- * and uncomment it during dev.
70
- */
71
- if ( ! defined( 'WP_FS__LOCALHOST_IP' ) ) {
72
- // VVV default public network IP.
73
- define( 'WP_FS__VVV_DEFAULT_PUBLIC_IP', '192.168.50.4' );
74
-
75
- // define( 'WP_FS__LOCALHOST_IP', WP_FS__VVV_DEFAULT_PUBLIC_IP );
76
- }
77
-
78
- /**
79
- * If true and running with secret key, the opt-in process
80
- * will skip the email activation process which is invoked
81
- * when the email of the context user already exist in Freemius
82
- * database (as a security precaution, to prevent sharing user
83
- * secret with unauthorized entity).
84
- *
85
- * IMPORTANT:
86
- * AS A SECURITY PRECAUTION, WE VALIDATE THE TIMESTAMP OF THE OPT-IN REQUEST.
87
- * THEREFORE, MAKE SURE THAT WHEN USING THIS PARAMETER,YOUR TESTING ENVIRONMENT'S
88
- * CLOCK IS SYNCED.
89
- */
90
- if ( ! defined( 'WP_FS__SKIP_EMAIL_ACTIVATION' ) ) {
91
- define( 'WP_FS__SKIP_EMAIL_ACTIVATION', false );
92
- }
93
-
94
-
95
- #--------------------------------------------------------------------------------
96
- #region Directories
97
- #--------------------------------------------------------------------------------
98
-
99
- if ( ! defined( 'WP_FS__DIR' ) ) {
100
- define( 'WP_FS__DIR', dirname( __FILE__ ) );
101
- }
102
- if ( ! defined( 'WP_FS__DIR_INCLUDES' ) ) {
103
- define( 'WP_FS__DIR_INCLUDES', WP_FS__DIR . '/includes' );
104
- }
105
- if ( ! defined( 'WP_FS__DIR_TEMPLATES' ) ) {
106
- define( 'WP_FS__DIR_TEMPLATES', WP_FS__DIR . '/templates' );
107
- }
108
- if ( ! defined( 'WP_FS__DIR_ASSETS' ) ) {
109
- define( 'WP_FS__DIR_ASSETS', WP_FS__DIR . '/assets' );
110
- }
111
- if ( ! defined( 'WP_FS__DIR_CSS' ) ) {
112
- define( 'WP_FS__DIR_CSS', WP_FS__DIR_ASSETS . '/css' );
113
- }
114
- if ( ! defined( 'WP_FS__DIR_JS' ) ) {
115
- define( 'WP_FS__DIR_JS', WP_FS__DIR_ASSETS . '/js' );
116
- }
117
- if ( ! defined( 'WP_FS__DIR_IMG' ) ) {
118
- define( 'WP_FS__DIR_IMG', WP_FS__DIR_ASSETS . '/img' );
119
- }
120
- if ( ! defined( 'WP_FS__DIR_SDK' ) ) {
121
- define( 'WP_FS__DIR_SDK', WP_FS__DIR_INCLUDES . '/sdk' );
122
- }
123
-
124
- #endregion
125
-
126
- /**
127
- * Domain / URL / Address
128
- */
129
- define( 'WP_FS__ROOT_DOMAIN_PRODUCTION', 'freemius.com' );
130
- define( 'WP_FS__DOMAIN_PRODUCTION', 'wp.freemius.com' );
131
- define( 'WP_FS__ADDRESS_PRODUCTION', 'https://' . WP_FS__DOMAIN_PRODUCTION );
132
-
133
- if ( ! defined( 'WP_FS__DOMAIN_LOCALHOST' ) ) {
134
- define( 'WP_FS__DOMAIN_LOCALHOST', 'wp.freemius' );
135
- }
136
- if ( ! defined( 'WP_FS__ADDRESS_LOCALHOST' ) ) {
137
- define( 'WP_FS__ADDRESS_LOCALHOST', 'http://' . WP_FS__DOMAIN_LOCALHOST . ':8080' );
138
- }
139
-
140
- if ( ! defined( 'WP_FS__TESTING_DOMAIN' ) ) {
141
- define( 'WP_FS__TESTING_DOMAIN', 'fswp' );
142
- }
143
-
144
- #--------------------------------------------------------------------------------
145
- #region HTTP
146
- #--------------------------------------------------------------------------------
147
-
148
- if ( ! defined( 'WP_FS__IS_HTTP_REQUEST' ) ) {
149
- define( 'WP_FS__IS_HTTP_REQUEST', isset( $_SERVER['HTTP_HOST'] ) );
150
- }
151
-
152
- if ( ! defined( 'WP_FS__IS_HTTPS' ) ) {
153
- define( 'WP_FS__IS_HTTPS', ( WP_FS__IS_HTTP_REQUEST &&
154
- // Checks if CloudFlare's HTTPS (Flexible SSL support).
155
- isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) &&
156
- 'https' === strtolower( $_SERVER['HTTP_X_FORWARDED_PROTO'] )
157
- ) ||
158
- // Check if HTTPS request.
159
- ( isset( $_SERVER['HTTPS'] ) && 'on' == $_SERVER['HTTPS'] ) ||
160
- ( isset( $_SERVER['SERVER_PORT'] ) && 443 == $_SERVER['SERVER_PORT'] )
161
- );
162
- }
163
-
164
- if ( ! defined( 'WP_FS__IS_POST_REQUEST' ) ) {
165
- define( 'WP_FS__IS_POST_REQUEST', ( WP_FS__IS_HTTP_REQUEST &&
166
- strtoupper( $_SERVER['REQUEST_METHOD'] ) == 'POST' ) );
167
- }
168
-
169
- if ( ! defined( 'WP_FS__REMOTE_ADDR' ) ) {
170
- define( 'WP_FS__REMOTE_ADDR', fs_get_ip() );
171
- }
172
-
173
- if ( ! defined( 'WP_FS__IS_LOCALHOST' ) ) {
174
- if ( defined( 'WP_FS__LOCALHOST_IP' ) ) {
175
- define( 'WP_FS__IS_LOCALHOST', ( WP_FS__LOCALHOST_IP === WP_FS__REMOTE_ADDR ) );
176
- } else {
177
- define( 'WP_FS__IS_LOCALHOST', WP_FS__IS_HTTP_REQUEST &&
178
- is_string( WP_FS__REMOTE_ADDR ) &&
179
- ( substr( WP_FS__REMOTE_ADDR, 0, 4 ) === '127.' ||
180
- WP_FS__REMOTE_ADDR === '::1' )
181
- );
182
- }
183
- }
184
-
185
- if ( ! defined( 'WP_FS__IS_LOCALHOST_FOR_SERVER' ) ) {
186
- define( 'WP_FS__IS_LOCALHOST_FOR_SERVER', ( ! WP_FS__IS_HTTP_REQUEST ||
187
- false !== strpos( $_SERVER['HTTP_HOST'], 'localhost' ) ) );
188
- }
189
-
190
- #endregion
191
-
192
- if ( ! defined( 'WP_FS__IS_PRODUCTION_MODE' ) ) {
193
- // By default, run with Freemius production servers.
194
- define( 'WP_FS__IS_PRODUCTION_MODE', true );
195
- }
196
-
197
- if ( ! defined( 'WP_FS__ADDRESS' ) ) {
198
- define( 'WP_FS__ADDRESS', ( WP_FS__IS_PRODUCTION_MODE ? WP_FS__ADDRESS_PRODUCTION : WP_FS__ADDRESS_LOCALHOST ) );
199
- }
200
-
201
-
202
- #--------------------------------------------------------------------------------
203
- #region API
204
- #--------------------------------------------------------------------------------
205
-
206
- if ( ! defined( 'WP_FS__API_ADDRESS_LOCALHOST' ) ) {
207
- define( 'WP_FS__API_ADDRESS_LOCALHOST', 'http://api.freemius:8080' );
208
- }
209
- if ( ! defined( 'WP_FS__API_SANDBOX_ADDRESS_LOCALHOST' ) ) {
210
- define( 'WP_FS__API_SANDBOX_ADDRESS_LOCALHOST', 'http://sandbox-api.freemius:8080' );
211
- }
212
-
213
- // Set API address for local testing.
214
- if ( ! WP_FS__IS_PRODUCTION_MODE ) {
215
- if ( ! defined( 'FS_API__ADDRESS' ) ) {
216
- define( 'FS_API__ADDRESS', WP_FS__API_ADDRESS_LOCALHOST );
217
- }
218
- if ( ! defined( 'FS_API__SANDBOX_ADDRESS' ) ) {
219
- define( 'FS_API__SANDBOX_ADDRESS', WP_FS__API_SANDBOX_ADDRESS_LOCALHOST );
220
- }
221
- }
222
-
223
- #endregion
224
-
225
- #--------------------------------------------------------------------------------
226
- #region Checkout
227
- #--------------------------------------------------------------------------------
228
-
229
- if ( ! defined( 'FS_CHECKOUT__ADDRESS_PRODUCTION' ) ) {
230
- define( 'FS_CHECKOUT__ADDRESS_PRODUCTION', 'https://checkout.freemius.com' );
231
- }
232
-
233
- if ( ! defined( 'FS_CHECKOUT__ADDRESS_LOCALHOST' ) ) {
234
- define( 'FS_CHECKOUT__ADDRESS_LOCALHOST', 'http://checkout.freemius:8080' );
235
- }
236
-
237
- if ( ! defined( 'FS_CHECKOUT__ADDRESS' ) ) {
238
- define( 'FS_CHECKOUT__ADDRESS', ( WP_FS__IS_PRODUCTION_MODE ? FS_CHECKOUT__ADDRESS_PRODUCTION : FS_CHECKOUT__ADDRESS_LOCALHOST ) );
239
- }
240
-
241
- #endregion
242
-
243
- define( 'WP_FS___OPTION_PREFIX', 'fs' . ( WP_FS__IS_PRODUCTION_MODE ? '' : '_dbg' ) . '_' );
244
-
245
- if ( ! defined( 'WP_FS__ACCOUNTS_OPTION_NAME' ) ) {
246
- define( 'WP_FS__ACCOUNTS_OPTION_NAME', WP_FS___OPTION_PREFIX . 'accounts' );
247
- }
248
- if ( ! defined( 'WP_FS__API_CACHE_OPTION_NAME' ) ) {
249
- define( 'WP_FS__API_CACHE_OPTION_NAME', WP_FS___OPTION_PREFIX . 'api_cache' );
250
- }
251
- define( 'WP_FS__OPTIONS_OPTION_NAME', WP_FS___OPTION_PREFIX . 'options' );
252
-
253
- /**
254
- * Module types
255
- *
256
- * @since 1.2.2
257
- */
258
- define( 'WP_FS__MODULE_TYPE_PLUGIN', 'plugin' );
259
- define( 'WP_FS__MODULE_TYPE_THEME', 'theme' );
260
-
261
- /**
262
- * Billing Frequencies
263
- */
264
- define( 'WP_FS__PERIOD_ANNUALLY', 'annual' );
265
- define( 'WP_FS__PERIOD_MONTHLY', 'monthly' );
266
- define( 'WP_FS__PERIOD_LIFETIME', 'lifetime' );
267
-
268
- /**
269
- * Plans
270
- */
271
- define( 'WP_FS__PLAN_DEFAULT_PAID', false );
272
- define( 'WP_FS__PLAN_FREE', 'free' );
273
- define( 'WP_FS__PLAN_TRIAL', 'trial' );
274
-
275
- /**
276
- * Times in seconds
277
- */
278
- if ( ! defined( 'WP_FS__TIME_5_MIN_IN_SEC' ) ) {
279
- define( 'WP_FS__TIME_5_MIN_IN_SEC', 300 );
280
- }
281
- if ( ! defined( 'WP_FS__TIME_10_MIN_IN_SEC' ) ) {
282
- define( 'WP_FS__TIME_10_MIN_IN_SEC', 600 );
283
- }
284
- // define( 'WP_FS__TIME_15_MIN_IN_SEC', 900 );
285
- if ( ! defined( 'WP_FS__TIME_24_HOURS_IN_SEC' ) ) {
286
- define( 'WP_FS__TIME_24_HOURS_IN_SEC', 86400 );
287
- }
288
-
289
- #--------------------------------------------------------------------------------
290
- #region Debugging
291
- #--------------------------------------------------------------------------------
292
-
293
- if ( ! defined( 'WP_FS__DEBUG_SDK' ) ) {
294
- $debug_mode = get_option( 'fs_debug_mode', null );
295
-
296
- if ( $debug_mode === null ) {
297
- $debug_mode = false;
298
- add_option( 'fs_debug_mode', $debug_mode );
299
- }
300
-
301
- define( 'WP_FS__DEBUG_SDK', is_numeric( $debug_mode ) ? ( 0 < $debug_mode ) : WP_FS__DEV_MODE );
302
- }
303
-
304
- if ( ! defined( 'WP_FS__ECHO_DEBUG_SDK' ) ) {
305
- define( 'WP_FS__ECHO_DEBUG_SDK', WP_FS__DEV_MODE && ! empty( $_GET['fs_dbg_echo'] ) );
306
- }
307
- if ( ! defined( 'WP_FS__LOG_DATETIME_FORMAT' ) ) {
308
- define( 'WP_FS__LOG_DATETIME_FORMAT', 'Y-m-d H:i:s' );
309
- }
310
- if ( ! defined( 'FS_API__LOGGER_ON' ) ) {
311
- define( 'FS_API__LOGGER_ON', WP_FS__DEBUG_SDK );
312
- }
313
-
314
- if ( WP_FS__ECHO_DEBUG_SDK ) {
315
- error_reporting( E_ALL );
316
- }
317
-
318
- #endregion
319
-
320
- if ( ! defined( 'WP_FS__SCRIPT_START_TIME' ) ) {
321
- define( 'WP_FS__SCRIPT_START_TIME', time() );
322
- }
323
- if ( ! defined( 'WP_FS__DEFAULT_PRIORITY' ) ) {
324
- define( 'WP_FS__DEFAULT_PRIORITY', 10 );
325
- }
326
- if ( ! defined( 'WP_FS__LOWEST_PRIORITY' ) ) {
327
- define( 'WP_FS__LOWEST_PRIORITY', 999999999 );
328
- }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.4
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ if ( ! defined( 'WP_FS__SLUG' ) ) {
14
+ define( 'WP_FS__SLUG', 'freemius' );
15
+ }
16
+ if ( ! defined( 'WP_FS__DEV_MODE' ) ) {
17
+ define( 'WP_FS__DEV_MODE', false );
18
+ }
19
+
20
+ #--------------------------------------------------------------------------------
21
+ #region API Connectivity Issues Simulation
22
+ #--------------------------------------------------------------------------------
23
+
24
+ if ( ! defined( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY' ) ) {
25
+ define( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY', false );
26
+ }
27
+ if ( ! defined( 'WP_FS__SIMULATE_NO_CURL' ) ) {
28
+ define( 'WP_FS__SIMULATE_NO_CURL', false );
29
+ }
30
+ if ( ! defined( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE' ) ) {
31
+ define( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE', false );
32
+ }
33
+ if ( ! defined( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL' ) ) {
34
+ define( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL', false );
35
+ }
36
+ if ( WP_FS__SIMULATE_NO_CURL ) {
37
+ define( 'FS_SDK__SIMULATE_NO_CURL', true );
38
+ }
39
+ if ( WP_FS__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE ) {
40
+ define( 'FS_SDK__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE', true );
41
+ }
42
+ if ( WP_FS__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL ) {
43
+ define( 'FS_SDK__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL', true );
44
+ }
45
+
46
+ #endregion
47
+
48
+ if ( ! defined( 'WP_FS__SIMULATE_FREEMIUS_OFF' ) ) {
49
+ define( 'WP_FS__SIMULATE_FREEMIUS_OFF', false );
50
+ }
51
+
52
+ if ( ! defined( 'WP_FS__PING_API_ON_IP_OR_HOST_CHANGES' ) ) {
53
+ /**
54
+ * @since 1.1.7.3
55
+ * @author Vova Feldman (@svovaf)
56
+ *
57
+ * I'm not sure if shared servers periodically change IP, or the subdomain of the
58
+ * admin dashboard. Also, I've seen sites that have strange loop of switching
59
+ * between domains on a daily basis. Therefore, to eliminate the risk of
60
+ * multiple unwanted connectivity test pings, temporary ignore domain or
61
+ * server IP changes.
62
+ */
63
+ define( 'WP_FS__PING_API_ON_IP_OR_HOST_CHANGES', false );
64
+ }
65
+
66
+ /**
67
+ * If your dev environment supports custom public network IP setup
68
+ * like VVV, please update WP_FS__LOCALHOST_IP with your public IP
69
+ * and uncomment it during dev.
70
+ */
71
+ if ( ! defined( 'WP_FS__LOCALHOST_IP' ) ) {
72
+ // VVV default public network IP.
73
+ define( 'WP_FS__VVV_DEFAULT_PUBLIC_IP', '192.168.50.4' );
74
+
75
+ // define( 'WP_FS__LOCALHOST_IP', WP_FS__VVV_DEFAULT_PUBLIC_IP );
76
+ }
77
+
78
+ /**
79
+ * If true and running with secret key, the opt-in process
80
+ * will skip the email activation process which is invoked
81
+ * when the email of the context user already exist in Freemius
82
+ * database (as a security precaution, to prevent sharing user
83
+ * secret with unauthorized entity).
84
+ *
85
+ * IMPORTANT:
86
+ * AS A SECURITY PRECAUTION, WE VALIDATE THE TIMESTAMP OF THE OPT-IN REQUEST.
87
+ * THEREFORE, MAKE SURE THAT WHEN USING THIS PARAMETER,YOUR TESTING ENVIRONMENT'S
88
+ * CLOCK IS SYNCED.
89
+ */
90
+ if ( ! defined( 'WP_FS__SKIP_EMAIL_ACTIVATION' ) ) {
91
+ define( 'WP_FS__SKIP_EMAIL_ACTIVATION', false );
92
+ }
93
+
94
+
95
+ #--------------------------------------------------------------------------------
96
+ #region Directories
97
+ #--------------------------------------------------------------------------------
98
+
99
+ if ( ! defined( 'WP_FS__DIR' ) ) {
100
+ define( 'WP_FS__DIR', dirname( __FILE__ ) );
101
+ }
102
+ if ( ! defined( 'WP_FS__DIR_INCLUDES' ) ) {
103
+ define( 'WP_FS__DIR_INCLUDES', WP_FS__DIR . '/includes' );
104
+ }
105
+ if ( ! defined( 'WP_FS__DIR_TEMPLATES' ) ) {
106
+ define( 'WP_FS__DIR_TEMPLATES', WP_FS__DIR . '/templates' );
107
+ }
108
+ if ( ! defined( 'WP_FS__DIR_ASSETS' ) ) {
109
+ define( 'WP_FS__DIR_ASSETS', WP_FS__DIR . '/assets' );
110
+ }
111
+ if ( ! defined( 'WP_FS__DIR_CSS' ) ) {
112
+ define( 'WP_FS__DIR_CSS', WP_FS__DIR_ASSETS . '/css' );
113
+ }
114
+ if ( ! defined( 'WP_FS__DIR_JS' ) ) {
115
+ define( 'WP_FS__DIR_JS', WP_FS__DIR_ASSETS . '/js' );
116
+ }
117
+ if ( ! defined( 'WP_FS__DIR_IMG' ) ) {
118
+ define( 'WP_FS__DIR_IMG', WP_FS__DIR_ASSETS . '/img' );
119
+ }
120
+ if ( ! defined( 'WP_FS__DIR_SDK' ) ) {
121
+ define( 'WP_FS__DIR_SDK', WP_FS__DIR_INCLUDES . '/sdk' );
122
+ }
123
+
124
+ #endregion
125
+
126
+ /**
127
+ * Domain / URL / Address
128
+ */
129
+ define( 'WP_FS__ROOT_DOMAIN_PRODUCTION', 'freemius.com' );
130
+ define( 'WP_FS__DOMAIN_PRODUCTION', 'wp.freemius.com' );
131
+ define( 'WP_FS__ADDRESS_PRODUCTION', 'https://' . WP_FS__DOMAIN_PRODUCTION );
132
+
133
+ if ( ! defined( 'WP_FS__DOMAIN_LOCALHOST' ) ) {
134
+ define( 'WP_FS__DOMAIN_LOCALHOST', 'wp.freemius' );
135
+ }
136
+ if ( ! defined( 'WP_FS__ADDRESS_LOCALHOST' ) ) {
137
+ define( 'WP_FS__ADDRESS_LOCALHOST', 'http://' . WP_FS__DOMAIN_LOCALHOST . ':8080' );
138
+ }
139
+
140
+ if ( ! defined( 'WP_FS__TESTING_DOMAIN' ) ) {
141
+ define( 'WP_FS__TESTING_DOMAIN', 'fswp' );
142
+ }
143
+
144
+ #--------------------------------------------------------------------------------
145
+ #region HTTP
146
+ #--------------------------------------------------------------------------------
147
+
148
+ if ( ! defined( 'WP_FS__IS_HTTP_REQUEST' ) ) {
149
+ define( 'WP_FS__IS_HTTP_REQUEST', isset( $_SERVER['HTTP_HOST'] ) );
150
+ }
151
+
152
+ if ( ! defined( 'WP_FS__IS_HTTPS' ) ) {
153
+ define( 'WP_FS__IS_HTTPS', ( WP_FS__IS_HTTP_REQUEST &&
154
+ // Checks if CloudFlare's HTTPS (Flexible SSL support).
155
+ isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) &&
156
+ 'https' === strtolower( $_SERVER['HTTP_X_FORWARDED_PROTO'] )
157
+ ) ||
158
+ // Check if HTTPS request.
159
+ ( isset( $_SERVER['HTTPS'] ) && 'on' == $_SERVER['HTTPS'] ) ||
160
+ ( isset( $_SERVER['SERVER_PORT'] ) && 443 == $_SERVER['SERVER_PORT'] )
161
+ );
162
+ }
163
+
164
+ if ( ! defined( 'WP_FS__IS_POST_REQUEST' ) ) {
165
+ define( 'WP_FS__IS_POST_REQUEST', ( WP_FS__IS_HTTP_REQUEST &&
166
+ strtoupper( $_SERVER['REQUEST_METHOD'] ) == 'POST' ) );
167
+ }
168
+
169
+ if ( ! defined( 'WP_FS__REMOTE_ADDR' ) ) {
170
+ define( 'WP_FS__REMOTE_ADDR', fs_get_ip() );
171
+ }
172
+
173
+ if ( ! defined( 'WP_FS__IS_LOCALHOST' ) ) {
174
+ if ( defined( 'WP_FS__LOCALHOST_IP' ) ) {
175
+ define( 'WP_FS__IS_LOCALHOST', ( WP_FS__LOCALHOST_IP === WP_FS__REMOTE_ADDR ) );
176
+ } else {
177
+ define( 'WP_FS__IS_LOCALHOST', WP_FS__IS_HTTP_REQUEST &&
178
+ is_string( WP_FS__REMOTE_ADDR ) &&
179
+ ( substr( WP_FS__REMOTE_ADDR, 0, 4 ) === '127.' ||
180
+ WP_FS__REMOTE_ADDR === '::1' )
181
+ );
182
+ }
183
+ }
184
+
185
+ if ( ! defined( 'WP_FS__IS_LOCALHOST_FOR_SERVER' ) ) {
186
+ define( 'WP_FS__IS_LOCALHOST_FOR_SERVER', ( ! WP_FS__IS_HTTP_REQUEST ||
187
+ false !== strpos( $_SERVER['HTTP_HOST'], 'localhost' ) ) );
188
+ }
189
+
190
+ #endregion
191
+
192
+ if ( ! defined( 'WP_FS__IS_PRODUCTION_MODE' ) ) {
193
+ // By default, run with Freemius production servers.
194
+ define( 'WP_FS__IS_PRODUCTION_MODE', true );
195
+ }
196
+
197
+ if ( ! defined( 'WP_FS__ADDRESS' ) ) {
198
+ define( 'WP_FS__ADDRESS', ( WP_FS__IS_PRODUCTION_MODE ? WP_FS__ADDRESS_PRODUCTION : WP_FS__ADDRESS_LOCALHOST ) );
199
+ }
200
+
201
+
202
+ #--------------------------------------------------------------------------------
203
+ #region API
204
+ #--------------------------------------------------------------------------------
205
+
206
+ if ( ! defined( 'WP_FS__API_ADDRESS_LOCALHOST' ) ) {
207
+ define( 'WP_FS__API_ADDRESS_LOCALHOST', 'http://api.freemius:8080' );
208
+ }
209
+ if ( ! defined( 'WP_FS__API_SANDBOX_ADDRESS_LOCALHOST' ) ) {
210
+ define( 'WP_FS__API_SANDBOX_ADDRESS_LOCALHOST', 'http://sandbox-api.freemius:8080' );
211
+ }
212
+
213
+ // Set API address for local testing.
214
+ if ( ! WP_FS__IS_PRODUCTION_MODE ) {
215
+ if ( ! defined( 'FS_API__ADDRESS' ) ) {
216
+ define( 'FS_API__ADDRESS', WP_FS__API_ADDRESS_LOCALHOST );
217
+ }
218
+ if ( ! defined( 'FS_API__SANDBOX_ADDRESS' ) ) {
219
+ define( 'FS_API__SANDBOX_ADDRESS', WP_FS__API_SANDBOX_ADDRESS_LOCALHOST );
220
+ }
221
+ }
222
+
223
+ #endregion
224
+
225
+ #--------------------------------------------------------------------------------
226
+ #region Checkout
227
+ #--------------------------------------------------------------------------------
228
+
229
+ if ( ! defined( 'FS_CHECKOUT__ADDRESS_PRODUCTION' ) ) {
230
+ define( 'FS_CHECKOUT__ADDRESS_PRODUCTION', 'https://checkout.freemius.com' );
231
+ }
232
+
233
+ if ( ! defined( 'FS_CHECKOUT__ADDRESS_LOCALHOST' ) ) {
234
+ define( 'FS_CHECKOUT__ADDRESS_LOCALHOST', 'http://checkout.freemius:8080' );
235
+ }
236
+
237
+ if ( ! defined( 'FS_CHECKOUT__ADDRESS' ) ) {
238
+ define( 'FS_CHECKOUT__ADDRESS', ( WP_FS__IS_PRODUCTION_MODE ? FS_CHECKOUT__ADDRESS_PRODUCTION : FS_CHECKOUT__ADDRESS_LOCALHOST ) );
239
+ }
240
+
241
+ #endregion
242
+
243
+ define( 'WP_FS___OPTION_PREFIX', 'fs' . ( WP_FS__IS_PRODUCTION_MODE ? '' : '_dbg' ) . '_' );
244
+
245
+ if ( ! defined( 'WP_FS__ACCOUNTS_OPTION_NAME' ) ) {
246
+ define( 'WP_FS__ACCOUNTS_OPTION_NAME', WP_FS___OPTION_PREFIX . 'accounts' );
247
+ }
248
+ if ( ! defined( 'WP_FS__API_CACHE_OPTION_NAME' ) ) {
249
+ define( 'WP_FS__API_CACHE_OPTION_NAME', WP_FS___OPTION_PREFIX . 'api_cache' );
250
+ }
251
+ define( 'WP_FS__OPTIONS_OPTION_NAME', WP_FS___OPTION_PREFIX . 'options' );
252
+
253
+ /**
254
+ * Module types
255
+ *
256
+ * @since 1.2.2
257
+ */
258
+ define( 'WP_FS__MODULE_TYPE_PLUGIN', 'plugin' );
259
+ define( 'WP_FS__MODULE_TYPE_THEME', 'theme' );
260
+
261
+ /**
262
+ * Billing Frequencies
263
+ */
264
+ define( 'WP_FS__PERIOD_ANNUALLY', 'annual' );
265
+ define( 'WP_FS__PERIOD_MONTHLY', 'monthly' );
266
+ define( 'WP_FS__PERIOD_LIFETIME', 'lifetime' );
267
+
268
+ /**
269
+ * Plans
270
+ */
271
+ define( 'WP_FS__PLAN_DEFAULT_PAID', false );
272
+ define( 'WP_FS__PLAN_FREE', 'free' );
273
+ define( 'WP_FS__PLAN_TRIAL', 'trial' );
274
+
275
+ /**
276
+ * Times in seconds
277
+ */
278
+ if ( ! defined( 'WP_FS__TIME_5_MIN_IN_SEC' ) ) {
279
+ define( 'WP_FS__TIME_5_MIN_IN_SEC', 300 );
280
+ }
281
+ if ( ! defined( 'WP_FS__TIME_10_MIN_IN_SEC' ) ) {
282
+ define( 'WP_FS__TIME_10_MIN_IN_SEC', 600 );
283
+ }
284
+ // define( 'WP_FS__TIME_15_MIN_IN_SEC', 900 );
285
+ if ( ! defined( 'WP_FS__TIME_24_HOURS_IN_SEC' ) ) {
286
+ define( 'WP_FS__TIME_24_HOURS_IN_SEC', 86400 );
287
+ }
288
+
289
+ #--------------------------------------------------------------------------------
290
+ #region Debugging
291
+ #--------------------------------------------------------------------------------
292
+
293
+ if ( ! defined( 'WP_FS__DEBUG_SDK' ) ) {
294
+ $debug_mode = get_option( 'fs_debug_mode', null );
295
+
296
+ if ( $debug_mode === null ) {
297
+ $debug_mode = false;
298
+ add_option( 'fs_debug_mode', $debug_mode );
299
+ }
300
+
301
+ define( 'WP_FS__DEBUG_SDK', is_numeric( $debug_mode ) ? ( 0 < $debug_mode ) : WP_FS__DEV_MODE );
302
+ }
303
+
304
+ if ( ! defined( 'WP_FS__ECHO_DEBUG_SDK' ) ) {
305
+ define( 'WP_FS__ECHO_DEBUG_SDK', WP_FS__DEV_MODE && ! empty( $_GET['fs_dbg_echo'] ) );
306
+ }
307
+ if ( ! defined( 'WP_FS__LOG_DATETIME_FORMAT' ) ) {
308
+ define( 'WP_FS__LOG_DATETIME_FORMAT', 'Y-m-d H:i:s' );
309
+ }
310
+ if ( ! defined( 'FS_API__LOGGER_ON' ) ) {
311
+ define( 'FS_API__LOGGER_ON', WP_FS__DEBUG_SDK );
312
+ }
313
+
314
+ if ( WP_FS__ECHO_DEBUG_SDK ) {
315
+ error_reporting( E_ALL );
316
+ }
317
+
318
+ #endregion
319
+
320
+ if ( ! defined( 'WP_FS__SCRIPT_START_TIME' ) ) {
321
+ define( 'WP_FS__SCRIPT_START_TIME', time() );
322
+ }
323
+ if ( ! defined( 'WP_FS__DEFAULT_PRIORITY' ) ) {
324
+ define( 'WP_FS__DEFAULT_PRIORITY', 10 );
325
+ }
326
+ if ( ! defined( 'WP_FS__LOWEST_PRIORITY' ) ) {
327
+ define( 'WP_FS__LOWEST_PRIORITY', 999999999 );
328
+ }
freemius/includes/class-freemius-abstract.php CHANGED
@@ -1,597 +1,597 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.7
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
-
14
- /**
15
- * - Each instance of Freemius class represents a single plugin
16
- * install by a single user (the installer of the plugin).
17
- *
18
- * - Each website can only have one install of the same plugin.
19
- *
20
- * - Install entity is only created after a user connects his account with Freemius.
21
- *
22
- * Class Freemius_Abstract
23
- */
24
- abstract class Freemius_Abstract {
25
-
26
- #----------------------------------------------------------------------------------
27
- #region Identity
28
- #----------------------------------------------------------------------------------
29
-
30
- /**
31
- * Check if user has connected his account (opted-in).
32
- *
33
- * Note:
34
- * If the user opted-in and opted-out on a later stage,
35
- * this will still return true. If you want to check if the
36
- * user is currently opted-in, use:
37
- * `$fs->is_registered() && $fs->is_tracking_allowed()`
38
- *
39
- * @since 1.0.1
40
- * @return bool
41
- */
42
- abstract function is_registered();
43
-
44
- /**
45
- * Check if the user skipped connecting the account with Freemius.
46
- *
47
- * @since 1.0.7
48
- *
49
- * @return bool
50
- */
51
- abstract function is_anonymous();
52
-
53
- /**
54
- * Check if the user currently in activation mode.
55
- *
56
- * @since 1.0.7
57
- *
58
- * @return bool
59
- */
60
- abstract function is_activation_mode();
61
-
62
- #endregion
63
-
64
- #----------------------------------------------------------------------------------
65
- #region Usage Tracking
66
- #----------------------------------------------------------------------------------
67
-
68
- /**
69
- * Returns TRUE if the user opted-in and didn't disconnect (opt-out).
70
- *
71
- * @author Leo Fajardo (@leorw)
72
- * @since 1.2.1.5
73
- *
74
- * @return bool
75
- */
76
- abstract function is_tracking_allowed();
77
-
78
- /**
79
- * Returns TRUE if the user never opted-in or manually opted-out.
80
- *
81
- * @author Vova Feldman (@svovaf)
82
- * @since 1.2.1.5
83
- *
84
- * @return bool
85
- */
86
- function is_tracking_prohibited() {
87
- return ! $this->is_registered() || ! $this->is_tracking_allowed();
88
- }
89
-
90
- /**
91
- * Opt-out from usage tracking.
92
- *
93
- * Note: This will not delete the account information but will stop all tracking.
94
- *
95
- * Returns:
96
- * 1. FALSE - If the user never opted-in.
97
- * 2. TRUE - If successfully opted-out.
98
- * 3. object - API Result on failure.
99
- *
100
- * @author Leo Fajardo (@leorw)
101
- * @since 1.2.1.5
102
- *
103
- * @return bool|object
104
- */
105
- abstract function stop_tracking();
106
-
107
- /**
108
- * Opt-in back into usage tracking.
109
- *
110
- * Note: This will only work if the user opted-in previously.
111
- *
112
- * Returns:
113
- * 1. FALSE - If the user never opted-in.
114
- * 2. TRUE - If successfully opted-in back to usage tracking.
115
- * 3. object - API result on failure.
116
- *
117
- * @author Leo Fajardo (@leorw)
118
- * @since 1.2.1.5
119
- *
120
- * @return bool|object
121
- */
122
- abstract function allow_tracking();
123
-
124
- #endregion
125
-
126
- #----------------------------------------------------------------------------------
127
- #region Module Type
128
- #----------------------------------------------------------------------------------
129
-
130
- /**
131
- * Checks if the plugin's type is "plugin". The other type is "theme".
132
- *
133
- * @author Leo Fajardo (@leorw)
134
- * @since 1.2.2
135
- *
136
- * @return bool
137
- */
138
- abstract function is_plugin();
139
-
140
- /**
141
- * Checks if the module type is "theme". The other type is "plugin".
142
- *
143
- * @author Leo Fajardo (@leorw)
144
- * @since 1.2.2
145
- *
146
- * @return bool
147
- */
148
- function is_theme() {
149
- return ( ! $this->is_plugin() );
150
- }
151
-
152
- #endregion
153
-
154
- #----------------------------------------------------------------------------------
155
- #region Permissions
156
- #----------------------------------------------------------------------------------
157
-
158
- /**
159
- * Check if plugin must be WordPress.org compliant.
160
- *
161
- * @since 1.0.7
162
- *
163
- * @return bool
164
- */
165
- abstract function is_org_repo_compliant();
166
-
167
- /**
168
- * Check if plugin is allowed to install executable files.
169
- *
170
- * @author Vova Feldman (@svovaf)
171
- * @since 1.0.5
172
- *
173
- * @return bool
174
- */
175
- function is_allowed_to_install() {
176
- return ( $this->is_premium() || ! $this->is_org_repo_compliant() );
177
- }
178
-
179
- #endregion
180
-
181
- /**
182
- * Check if user in trial or in free plan (not paying).
183
- *
184
- * @author Vova Feldman (@svovaf)
185
- * @since 1.0.4
186
- *
187
- * @return bool
188
- */
189
- function is_not_paying() {
190
- return ( $this->is_trial() || $this->is_free_plan() );
191
- }
192
-
193
- /**
194
- * Check if the user has an activated and valid paid license on current plugin's install.
195
- *
196
- * @since 1.0.9
197
- *
198
- * @return bool
199
- */
200
- abstract function is_paying();
201
-
202
- /**
203
- * Check if the user is paying or in trial.
204
- *
205
- * @since 1.0.9
206
- *
207
- * @return bool
208
- */
209
- function is_paying_or_trial() {
210
- return ( $this->is_paying() || $this->is_trial() );
211
- }
212
-
213
- /**
214
- * Check if user in a trial or have feature enabled license.
215
- *
216
- * @author Vova Feldman (@svovaf)
217
- * @since 1.1.7
218
- *
219
- * @return bool
220
- */
221
- abstract function can_use_premium_code();
222
-
223
- #----------------------------------------------------------------------------------
224
- #region Premium Only
225
- #----------------------------------------------------------------------------------
226
-
227
- /**
228
- * All logic wrapped in methods with "__premium_only()" suffix will be only
229
- * included in the premium code.
230
- *
231
- * Example:
232
- * if ( freemius()->is__premium_only() ) {
233
- * ...
234
- * }
235
- */
236
-
237
- /**
238
- * Returns true when running premium plugin code.
239
- *
240
- * @since 1.0.9
241
- *
242
- * @return bool
243
- */
244
- function is__premium_only() {
245
- return $this->is_premium();
246
- }
247
-
248
- /**
249
- * Check if the user has an activated and valid paid license on current plugin's install.
250
- *
251
- * @since 1.0.9
252
- *
253
- * @return bool
254
- *
255
- */
256
- function is_paying__premium_only() {
257
- return ( $this->is__premium_only() && $this->is_paying() );
258
- }
259
-
260
- /**
261
- * All code wrapped in this statement will be only included in the premium code.
262
- *
263
- * @since 1.0.9
264
- *
265
- * @param string $plan Plan name.
266
- * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
267
- *
268
- * @return bool
269
- */
270
- function is_plan__premium_only( $plan, $exact = false ) {
271
- return ( $this->is_premium() && $this->is_plan( $plan, $exact ) );
272
- }
273
-
274
- /**
275
- * Check if plan matches active license' plan or active trial license' plan.
276
- *
277
- * All code wrapped in this statement will be only included in the premium code.
278
- *
279
- * @since 1.0.9
280
- *
281
- * @param string $plan Plan name.
282
- * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
283
- *
284
- * @return bool
285
- */
286
- function is_plan_or_trial__premium_only( $plan, $exact = false ) {
287
- return ( $this->is_premium() && $this->is_plan_or_trial( $plan, $exact ) );
288
- }
289
-
290
- /**
291
- * Check if the user is paying or in trial.
292
- *
293
- * All code wrapped in this statement will be only included in the premium code.
294
- *
295
- * @since 1.0.9
296
- *
297
- * @return bool
298
- */
299
- function is_paying_or_trial__premium_only() {
300
- return $this->is_premium() && $this->is_paying_or_trial();
301
- }
302
-
303
- /**
304
- * Check if the user has an activated and valid paid license on current plugin's install.
305
- *
306
- * @since 1.0.4
307
- *
308
- * @return bool
309
- *
310
- * @deprecated Method name is confusing since it's not clear from the name the code will be removed.
311
- * @using Alias to is_paying__premium_only()
312
- */
313
- function is_paying__fs__() {
314
- return $this->is_paying__premium_only();
315
- }
316
-
317
- /**
318
- * Check if user in a trial or have feature enabled license.
319
- *
320
- * All code wrapped in this statement will be only included in the premium code.
321
- *
322
- * @author Vova Feldman (@svovaf)
323
- * @since 1.1.9
324
- *
325
- * @return bool
326
- */
327
- function can_use_premium_code__premium_only() {
328
- return $this->is_premium() && $this->can_use_premium_code();
329
- }
330
-
331
- #endregion
332
-
333
- #----------------------------------------------------------------------------------
334
- #region Trial
335
- #----------------------------------------------------------------------------------
336
-
337
- /**
338
- * Check if the user in a trial.
339
- *
340
- * @since 1.0.3
341
- *
342
- * @return bool
343
- */
344
- abstract function is_trial();
345
-
346
- /**
347
- * Check if trial already utilized.
348
- *
349
- * @since 1.0.9
350
- *
351
- * @return bool
352
- */
353
- abstract function is_trial_utilized();
354
-
355
- #endregion
356
-
357
- #----------------------------------------------------------------------------------
358
- #region Plans
359
- #----------------------------------------------------------------------------------
360
-
361
- /**
362
- * Check if plugin using the free plan.
363
- *
364
- * @since 1.0.4
365
- *
366
- * @return bool
367
- */
368
- abstract function is_free_plan();
369
-
370
- /**
371
- * @since 1.0.2
372
- *
373
- * @param string $plan Plan name.
374
- * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
375
- *
376
- * @return bool
377
- */
378
- abstract function is_plan( $plan, $exact = false );
379
-
380
- /**
381
- * Check if plan based on trial. If not in trial mode, should return false.
382
- *
383
- * @since 1.0.9
384
- *
385
- * @param string $plan Plan name.
386
- * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
387
- *
388
- * @return bool
389
- */
390
- abstract function is_trial_plan( $plan, $exact = false );
391
-
392
- /**
393
- * Check if plan matches active license' plan or active trial license' plan.
394
- *
395
- * @since 1.0.9
396
- *
397
- * @param string $plan Plan name.
398
- * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
399
- *
400
- * @return bool
401
- */
402
- function is_plan_or_trial( $plan, $exact = false ) {
403
- return $this->is_plan( $plan, $exact ) ||
404
- $this->is_trial_plan( $plan, $exact );
405
- }
406
-
407
- /**
408
- * Check if plugin has any paid plans.
409
- *
410
- * @author Vova Feldman (@svovaf)
411
- * @since 1.0.7
412
- *
413
- * @return bool
414
- */
415
- abstract function has_paid_plan();
416
-
417
- /**
418
- * Check if plugin has any free plan, or is it premium only.
419
- *
420
- * Note: If no plans configured, assume plugin is free.
421
- *
422
- * @author Vova Feldman (@svovaf)
423
- * @since 1.0.7
424
- *
425
- * @return bool
426
- */
427
- abstract function has_free_plan();
428
-
429
- /**
430
- * Check if plugin is premium only (no free plans).
431
- *
432
- * NOTE: is__premium_only() is very different method, don't get confused.
433
- *
434
- * @author Vova Feldman (@svovaf)
435
- * @since 1.1.9
436
- *
437
- * @return bool
438
- */
439
- abstract function is_only_premium();
440
-
441
- /**
442
- * Check if module has a premium code version.
443
- *
444
- * Serviceware module might be freemium without any
445
- * premium code version, where the paid features
446
- * are all part of the service.
447
- *
448
- * @author Vova Feldman (@svovaf)
449
- * @since 1.2.1.6
450
- *
451
- * @return bool
452
- */
453
- abstract function has_premium_version();
454
-
455
- /**
456
- * Check if module has any release on Freemius,
457
- * or all plugin's code is on WordPress.org (Serviceware).
458
- *
459
- * @return bool
460
- */
461
- function has_release_on_freemius() {
462
- return ! $this->is_org_repo_compliant() ||
463
- $this->has_premium_version();
464
- }
465
-
466
- /**
467
- * Checks if it's a freemium plugin.
468
- *
469
- * @author Vova Feldman (@svovaf)
470
- * @since 1.1.9
471
- *
472
- * @return bool
473
- */
474
- function is_freemium() {
475
- return $this->has_paid_plan() &&
476
- $this->has_free_plan();
477
- }
478
-
479
- /**
480
- * Check if module has only one plan.
481
- *
482
- * @author Vova Feldman (@svovaf)
483
- * @since 1.2.1.7
484
- *
485
- * @return bool
486
- */
487
- abstract function is_single_plan();
488
-
489
- #endregion
490
-
491
- /**
492
- * Check if running payments in sandbox mode.
493
- *
494
- * @since 1.0.4
495
- *
496
- * @return bool
497
- */
498
- abstract function is_payments_sandbox();
499
-
500
- /**
501
- * Check if running test vs. live plugin.
502
- *
503
- * @since 1.0.5
504
- *
505
- * @return bool
506
- */
507
- abstract function is_live();
508
-
509
- /**
510
- * Check if running premium plugin code.
511
- *
512
- * @since 1.0.5
513
- *
514
- * @return bool
515
- */
516
- abstract function is_premium();
517
-
518
- /**
519
- * Get upgrade URL.
520
- *
521
- * @author Vova Feldman (@svovaf)
522
- * @since 1.0.2
523
- *
524
- * @param string $period Billing cycle.
525
- *
526
- * @return string
527
- */
528
- abstract function get_upgrade_url( $period = WP_FS__PERIOD_ANNUALLY );
529
-
530
- /**
531
- * Check if Freemius was first added in a plugin update.
532
- *
533
- * @author Vova Feldman (@svovaf)
534
- * @since 1.1.5
535
- *
536
- * @return bool
537
- */
538
- function is_plugin_update() {
539
- return ! $this->is_plugin_new_install();
540
- }
541
-
542
- /**
543
- * Check if Freemius was part of the plugin when the user installed it first.
544
- *
545
- * @author Vova Feldman (@svovaf)
546
- * @since 1.1.5
547
- *
548
- * @return bool
549
- */
550
- abstract function is_plugin_new_install();
551
-
552
- #----------------------------------------------------------------------------------
553
- #region Marketing
554
- #----------------------------------------------------------------------------------
555
-
556
- /**
557
- * Check if current user purchased any other plugins before.
558
- *
559
- * @author Vova Feldman (@svovaf)
560
- * @since 1.0.9
561
- *
562
- * @return bool
563
- */
564
- abstract function has_purchased_before();
565
-
566
- /**
567
- * Check if current user classified as an agency.
568
- *
569
- * @author Vova Feldman (@svovaf)
570
- * @since 1.0.9
571
- *
572
- * @return bool
573
- */
574
- abstract function is_agency();
575
-
576
- /**
577
- * Check if current user classified as a developer.
578
- *
579
- * @author Vova Feldman (@svovaf)
580
- * @since 1.0.9
581
- *
582
- * @return bool
583
- */
584
- abstract function is_developer();
585
-
586
- /**
587
- * Check if current user classified as a business.
588
- *
589
- * @author Vova Feldman (@svovaf)
590
- * @since 1.0.9
591
- *
592
- * @return bool
593
- */
594
- abstract function is_business();
595
-
596
- #endregion
597
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.7
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+
14
+ /**
15
+ * - Each instance of Freemius class represents a single plugin
16
+ * install by a single user (the installer of the plugin).
17
+ *
18
+ * - Each website can only have one install of the same plugin.
19
+ *
20
+ * - Install entity is only created after a user connects his account with Freemius.
21
+ *
22
+ * Class Freemius_Abstract
23
+ */
24
+ abstract class Freemius_Abstract {
25
+
26
+ #----------------------------------------------------------------------------------
27
+ #region Identity
28
+ #----------------------------------------------------------------------------------
29
+
30
+ /**
31
+ * Check if user has connected his account (opted-in).
32
+ *
33
+ * Note:
34
+ * If the user opted-in and opted-out on a later stage,
35
+ * this will still return true. If you want to check if the
36
+ * user is currently opted-in, use:
37
+ * `$fs->is_registered() && $fs->is_tracking_allowed()`
38
+ *
39
+ * @since 1.0.1
40
+ * @return bool
41
+ */
42
+ abstract function is_registered();
43
+
44
+ /**
45
+ * Check if the user skipped connecting the account with Freemius.
46
+ *
47
+ * @since 1.0.7
48
+ *
49
+ * @return bool
50
+ */
51
+ abstract function is_anonymous();
52
+
53
+ /**
54
+ * Check if the user currently in activation mode.
55
+ *
56
+ * @since 1.0.7
57
+ *
58
+ * @return bool
59
+ */
60
+ abstract function is_activation_mode();
61
+
62
+ #endregion
63
+
64
+ #----------------------------------------------------------------------------------
65
+ #region Usage Tracking
66
+ #----------------------------------------------------------------------------------
67
+
68
+ /**
69
+ * Returns TRUE if the user opted-in and didn't disconnect (opt-out).
70
+ *
71
+ * @author Leo Fajardo (@leorw)
72
+ * @since 1.2.1.5
73
+ *
74
+ * @return bool
75
+ */
76
+ abstract function is_tracking_allowed();
77
+
78
+ /**
79
+ * Returns TRUE if the user never opted-in or manually opted-out.
80
+ *
81
+ * @author Vova Feldman (@svovaf)
82
+ * @since 1.2.1.5
83
+ *
84
+ * @return bool
85
+ */
86
+ function is_tracking_prohibited() {
87
+ return ! $this->is_registered() || ! $this->is_tracking_allowed();
88
+ }
89
+
90
+ /**
91
+ * Opt-out from usage tracking.
92
+ *
93
+ * Note: This will not delete the account information but will stop all tracking.
94
+ *
95
+ * Returns:
96
+ * 1. FALSE - If the user never opted-in.
97
+ * 2. TRUE - If successfully opted-out.
98
+ * 3. object - API Result on failure.
99
+ *
100
+ * @author Leo Fajardo (@leorw)
101
+ * @since 1.2.1.5
102
+ *
103
+ * @return bool|object
104
+ */
105
+ abstract function stop_tracking();
106
+
107
+ /**
108
+ * Opt-in back into usage tracking.
109
+ *
110
+ * Note: This will only work if the user opted-in previously.
111
+ *
112
+ * Returns:
113
+ * 1. FALSE - If the user never opted-in.
114
+ * 2. TRUE - If successfully opted-in back to usage tracking.
115
+ * 3. object - API result on failure.
116
+ *
117
+ * @author Leo Fajardo (@leorw)
118
+ * @since 1.2.1.5
119
+ *
120
+ * @return bool|object
121
+ */
122
+ abstract function allow_tracking();
123
+
124
+ #endregion
125
+
126
+ #----------------------------------------------------------------------------------
127
+ #region Module Type
128
+ #----------------------------------------------------------------------------------
129
+
130
+ /**
131
+ * Checks if the plugin's type is "plugin". The other type is "theme".
132
+ *
133
+ * @author Leo Fajardo (@leorw)
134
+ * @since 1.2.2
135
+ *
136
+ * @return bool
137
+ */
138
+ abstract function is_plugin();
139
+
140
+ /**
141
+ * Checks if the module type is "theme". The other type is "plugin".
142
+ *
143
+ * @author Leo Fajardo (@leorw)
144
+ * @since 1.2.2
145
+ *
146
+ * @return bool
147
+ */
148
+ function is_theme() {
149
+ return ( ! $this->is_plugin() );
150
+ }
151
+
152
+ #endregion
153
+
154
+ #----------------------------------------------------------------------------------
155
+ #region Permissions
156
+ #----------------------------------------------------------------------------------
157
+
158
+ /**
159
+ * Check if plugin must be WordPress.org compliant.
160
+ *
161
+ * @since 1.0.7
162
+ *
163
+ * @return bool
164
+ */
165
+ abstract function is_org_repo_compliant();
166
+
167
+ /**
168
+ * Check if plugin is allowed to install executable files.
169
+ *
170
+ * @author Vova Feldman (@svovaf)
171
+ * @since 1.0.5
172
+ *
173
+ * @return bool
174
+ */
175
+ function is_allowed_to_install() {
176
+ return ( $this->is_premium() || ! $this->is_org_repo_compliant() );
177
+ }
178
+
179
+ #endregion
180
+
181
+ /**
182
+ * Check if user in trial or in free plan (not paying).
183
+ *
184
+ * @author Vova Feldman (@svovaf)
185
+ * @since 1.0.4
186
+ *
187
+ * @return bool
188
+ */
189
+ function is_not_paying() {
190
+ return ( $this->is_trial() || $this->is_free_plan() );
191
+ }
192
+
193
+ /**
194
+ * Check if the user has an activated and valid paid license on current plugin's install.
195
+ *
196
+ * @since 1.0.9
197
+ *
198
+ * @return bool
199
+ */
200
+ abstract function is_paying();
201
+
202
+ /**
203
+ * Check if the user is paying or in trial.
204
+ *
205
+ * @since 1.0.9
206
+ *
207
+ * @return bool
208
+ */
209
+ function is_paying_or_trial() {
210
+ return ( $this->is_paying() || $this->is_trial() );
211
+ }
212
+
213
+ /**
214
+ * Check if user in a trial or have feature enabled license.
215
+ *
216
+ * @author Vova Feldman (@svovaf)
217
+ * @since 1.1.7
218
+ *
219
+ * @return bool
220
+ */
221
+ abstract function can_use_premium_code();
222
+
223
+ #----------------------------------------------------------------------------------
224
+ #region Premium Only
225
+ #----------------------------------------------------------------------------------
226
+
227
+ /**
228
+ * All logic wrapped in methods with "__premium_only()" suffix will be only
229
+ * included in the premium code.
230
+ *
231
+ * Example:
232
+ * if ( freemius()->is__premium_only() ) {
233
+ * ...
234
+ * }
235
+ */
236
+
237
+ /**
238
+ * Returns true when running premium plugin code.
239
+ *
240
+ * @since 1.0.9
241
+ *
242
+ * @return bool
243
+ */
244
+ function is__premium_only() {
245
+ return $this->is_premium();
246
+ }
247
+
248
+ /**
249
+ * Check if the user has an activated and valid paid license on current plugin's install.
250
+ *
251
+ * @since 1.0.9
252
+ *
253
+ * @return bool
254
+ *
255
+ */
256
+ function is_paying__premium_only() {
257
+ return ( $this->is__premium_only() && $this->is_paying() );
258
+ }
259
+
260
+ /**
261
+ * All code wrapped in this statement will be only included in the premium code.
262
+ *
263
+ * @since 1.0.9
264
+ *
265
+ * @param string $plan Plan name.
266
+ * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
267
+ *
268
+ * @return bool
269
+ */
270
+ function is_plan__premium_only( $plan, $exact = false ) {
271
+ return ( $this->is_premium() && $this->is_plan( $plan, $exact ) );
272
+ }
273
+
274
+ /**
275
+ * Check if plan matches active license' plan or active trial license' plan.
276
+ *
277
+ * All code wrapped in this statement will be only included in the premium code.
278
+ *
279
+ * @since 1.0.9
280
+ *
281
+ * @param string $plan Plan name.
282
+ * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
283
+ *
284
+ * @return bool
285
+ */
286
+ function is_plan_or_trial__premium_only( $plan, $exact = false ) {
287
+ return ( $this->is_premium() && $this->is_plan_or_trial( $plan, $exact ) );
288
+ }
289
+
290
+ /**
291
+ * Check if the user is paying or in trial.
292
+ *
293
+ * All code wrapped in this statement will be only included in the premium code.
294
+ *
295
+ * @since 1.0.9
296
+ *
297
+ * @return bool
298
+ */
299
+ function is_paying_or_trial__premium_only() {
300
+ return $this->is_premium() && $this->is_paying_or_trial();
301
+ }
302
+
303
+ /**
304
+ * Check if the user has an activated and valid paid license on current plugin's install.
305
+ *
306
+ * @since 1.0.4
307
+ *
308
+ * @return bool
309
+ *
310
+ * @deprecated Method name is confusing since it's not clear from the name the code will be removed.
311
+ * @using Alias to is_paying__premium_only()
312
+ */
313
+ function is_paying__fs__() {
314
+ return $this->is_paying__premium_only();
315
+ }
316
+
317
+ /**
318
+ * Check if user in a trial or have feature enabled license.
319
+ *
320
+ * All code wrapped in this statement will be only included in the premium code.
321
+ *
322
+ * @author Vova Feldman (@svovaf)
323
+ * @since 1.1.9
324
+ *
325
+ * @return bool
326
+ */
327
+ function can_use_premium_code__premium_only() {
328
+ return $this->is_premium() && $this->can_use_premium_code();
329
+ }
330
+
331
+ #endregion
332
+
333
+ #----------------------------------------------------------------------------------
334
+ #region Trial
335
+ #----------------------------------------------------------------------------------
336
+
337
+ /**
338
+ * Check if the user in a trial.
339
+ *
340
+ * @since 1.0.3
341
+ *
342
+ * @return bool
343
+ */
344
+ abstract function is_trial();
345
+
346
+ /**
347
+ * Check if trial already utilized.
348
+ *
349
+ * @since 1.0.9
350
+ *
351
+ * @return bool
352
+ */
353
+ abstract function is_trial_utilized();
354
+
355
+ #endregion
356
+
357
+ #----------------------------------------------------------------------------------
358
+ #region Plans
359
+ #----------------------------------------------------------------------------------
360
+
361
+ /**
362
+ * Check if plugin using the free plan.
363
+ *
364
+ * @since 1.0.4
365
+ *
366
+ * @return bool
367
+ */
368
+ abstract function is_free_plan();
369
+
370
+ /**
371
+ * @since 1.0.2
372
+ *
373
+ * @param string $plan Plan name.
374
+ * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
375
+ *
376
+ * @return bool
377
+ */
378
+ abstract function is_plan( $plan, $exact = false );
379
+
380
+ /**
381
+ * Check if plan based on trial. If not in trial mode, should return false.
382
+ *
383
+ * @since 1.0.9
384
+ *
385
+ * @param string $plan Plan name.
386
+ * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
387
+ *
388
+ * @return bool
389
+ */
390
+ abstract function is_trial_plan( $plan, $exact = false );
391
+
392
+ /**
393
+ * Check if plan matches active license' plan or active trial license' plan.
394
+ *
395
+ * @since 1.0.9
396
+ *
397
+ * @param string $plan Plan name.
398
+ * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
399
+ *
400
+ * @return bool
401
+ */
402
+ function is_plan_or_trial( $plan, $exact = false ) {
403
+ return $this->is_plan( $plan, $exact ) ||
404
+ $this->is_trial_plan( $plan, $exact );
405
+ }
406
+
407
+ /**
408
+ * Check if plugin has any paid plans.
409
+ *
410
+ * @author Vova Feldman (@svovaf)
411
+ * @since 1.0.7
412
+ *
413
+ * @return bool
414
+ */
415
+ abstract function has_paid_plan();
416
+
417
+ /**
418
+ * Check if plugin has any free plan, or is it premium only.
419
+ *
420
+ * Note: If no plans configured, assume plugin is free.
421
+ *
422
+ * @author Vova Feldman (@svovaf)
423
+ * @since 1.0.7
424
+ *
425
+ * @return bool
426
+ */
427
+ abstract function has_free_plan();
428
+
429
+ /**
430
+ * Check if plugin is premium only (no free plans).
431
+ *
432
+ * NOTE: is__premium_only() is very different method, don't get confused.
433
+ *
434
+ * @author Vova Feldman (@svovaf)
435
+ * @since 1.1.9
436
+ *
437
+ * @return bool
438
+ */
439
+ abstract function is_only_premium();
440
+
441
+ /**
442
+ * Check if module has a premium code version.
443
+ *
444
+ * Serviceware module might be freemium without any
445
+ * premium code version, where the paid features
446
+ * are all part of the service.
447
+ *
448
+ * @author Vova Feldman (@svovaf)
449
+ * @since 1.2.1.6
450
+ *
451
+ * @return bool
452
+ */
453
+ abstract function has_premium_version();
454
+
455
+ /**
456
+ * Check if module has any release on Freemius,
457
+ * or all plugin's code is on WordPress.org (Serviceware).
458
+ *
459
+ * @return bool
460
+ */
461
+ function has_release_on_freemius() {
462
+ return ! $this->is_org_repo_compliant() ||
463
+ $this->has_premium_version();
464
+ }
465
+
466
+ /**
467
+ * Checks if it's a freemium plugin.
468
+ *
469
+ * @author Vova Feldman (@svovaf)
470
+ * @since 1.1.9
471
+ *
472
+ * @return bool
473
+ */
474
+ function is_freemium() {
475
+ return $this->has_paid_plan() &&
476
+ $this->has_free_plan();
477
+ }
478
+
479
+ /**
480
+ * Check if module has only one plan.
481
+ *
482
+ * @author Vova Feldman (@svovaf)
483
+ * @since 1.2.1.7
484
+ *
485
+ * @return bool
486
+ */
487
+ abstract function is_single_plan();
488
+
489
+ #endregion
490
+
491
+ /**
492
+ * Check if running payments in sandbox mode.
493
+ *
494
+ * @since 1.0.4
495
+ *
496
+ * @return bool
497
+ */
498
+ abstract function is_payments_sandbox();
499
+
500
+ /**
501
+ * Check if running test vs. live plugin.
502
+ *
503
+ * @since 1.0.5
504
+ *
505
+ * @return bool
506
+ */
507
+ abstract function is_live();
508
+
509
+ /**
510
+ * Check if running premium plugin code.
511
+ *
512
+ * @since 1.0.5
513
+ *
514
+ * @return bool
515
+ */
516
+ abstract function is_premium();
517
+
518
+ /**
519
+ * Get upgrade URL.
520
+ *
521
+ * @author Vova Feldman (@svovaf)
522
+ * @since 1.0.2
523
+ *
524
+ * @param string $period Billing cycle.
525
+ *
526
+ * @return string
527
+ */
528
+ abstract function get_upgrade_url( $period = WP_FS__PERIOD_ANNUALLY );
529
+
530
+ /**
531
+ * Check if Freemius was first added in a plugin update.
532
+ *
533
+ * @author Vova Feldman (@svovaf)
534
+ * @since 1.1.5
535
+ *
536
+ * @return bool
537
+ */
538
+ function is_plugin_update() {
539
+ return ! $this->is_plugin_new_install();
540
+ }
541
+
542
+ /**
543
+ * Check if Freemius was part of the plugin when the user installed it first.
544
+ *
545
+ * @author Vova Feldman (@svovaf)
546
+ * @since 1.1.5
547
+ *
548
+ * @return bool
549
+ */
550
+ abstract function is_plugin_new_install();
551
+
552
+ #----------------------------------------------------------------------------------
553
+ #region Marketing
554
+ #----------------------------------------------------------------------------------
555
+
556
+ /**
557
+ * Check if current user purchased any other plugins before.
558
+ *
559
+ * @author Vova Feldman (@svovaf)
560
+ * @since 1.0.9
561
+ *
562
+ * @return bool
563
+ */
564
+ abstract function has_purchased_before();
565
+
566
+ /**
567
+ * Check if current user classified as an agency.
568
+ *
569
+ * @author Vova Feldman (@svovaf)
570
+ * @since 1.0.9
571
+ *
572
+ * @return bool
573
+ */
574
+ abstract function is_agency();
575
+
576
+ /**
577
+ * Check if current user classified as a developer.
578
+ *
579
+ * @author Vova Feldman (@svovaf)
580
+ * @since 1.0.9
581
+ *
582
+ * @return bool
583
+ */
584
+ abstract function is_developer();
585
+
586
+ /**
587
+ * Check if current user classified as a business.
588
+ *
589
+ * @author Vova Feldman (@svovaf)
590
+ * @since 1.0.9
591
+ *
592
+ * @return bool
593
+ */
594
+ abstract function is_business();
595
+
596
+ #endregion
597
  }
freemius/includes/class-fs-logger.php CHANGED
@@ -1,688 +1,688 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.3
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_Logger {
14
- private $_id;
15
- private $_on = false;
16
- private $_echo = false;
17
- private $_file_start = 0;
18
- /**
19
- * @var int PHP Process ID.
20
- */
21
- private static $_processID;
22
- /**
23
- * @var string PHP Script user name.
24
- */
25
- private static $_ownerName;
26
- /**
27
- * @var bool Is storage logging turned on.
28
- */
29
- private static $_isStorageLoggingOn;
30
- /**
31
- * @var int ABSPATH length.
32
- */
33
- private static $_abspathLength;
34
-
35
- private static $LOGGERS = array();
36
- private static $LOG = array();
37
- private static $CNT = 0;
38
- private static $_HOOKED_FOOTER = false;
39
-
40
- private function __construct( $id, $on = false, $echo = false ) {
41
- $this->_id = $id;
42
-
43
- $bt = debug_backtrace();
44
- $caller = $bt[2];
45
-
46
- if ( false !== strpos( $caller['file'], 'plugins' ) ) {
47
- $this->_file_start = strpos( $caller['file'], 'plugins' ) + strlen( 'plugins/' );
48
- } else {
49
- $this->_file_start = strpos( $caller['file'], 'themes' ) + strlen( 'themes/' );
50
- }
51
-
52
- if ( $on ) {
53
- $this->on();
54
- }
55
- if ( $echo ) {
56
- $this->echo_on();
57
- }
58
- }
59
-
60
- /**
61
- * @param string $id
62
- * @param bool $on
63
- * @param bool $echo
64
- *
65
- * @return FS_Logger
66
- */
67
- public static function get_logger( $id, $on = false, $echo = false ) {
68
- $id = strtolower( $id );
69
-
70
- if ( ! isset( self::$_processID ) ) {
71
- self::init();
72
- }
73
-
74
- if ( ! isset( self::$LOGGERS[ $id ] ) ) {
75
- self::$LOGGERS[ $id ] = new FS_Logger( $id, $on, $echo );
76
- }
77
-
78
- return self::$LOGGERS[ $id ];
79
- }
80
-
81
- /**
82
- * Initialize logging global info.
83
- *
84
- * @author Vova Feldman (@svovaf)
85
- * @since 1.2.1.6
86
- */
87
- private static function init() {
88
- self::$_ownerName = function_exists( 'get_current_user' ) ?
89
- get_current_user() :
90
- 'unknown';
91
- self::$_isStorageLoggingOn = ( 1 == get_option( 'fs_storage_logger', 0 ) );
92
- self::$_abspathLength = strlen( ABSPATH );
93
- self::$_processID = mt_rand( 0, 32000 );
94
-
95
- // Process ID may be `false` on errors.
96
- if ( ! is_numeric( self::$_processID ) ) {
97
- self::$_processID = 0;
98
- }
99
- }
100
-
101
- private static function hook_footer() {
102
- if ( self::$_HOOKED_FOOTER ) {
103
- return;
104
- }
105
-
106
- if ( is_admin() ) {
107
- add_action( 'admin_footer', 'FS_Logger::dump', 100 );
108
- } else {
109
- add_action( 'wp_footer', 'FS_Logger::dump', 100 );
110
- }
111
- }
112
-
113
- function is_on() {
114
- return $this->_on;
115
- }
116
-
117
- function on() {
118
- $this->_on = true;
119
-
120
- if ( ! function_exists( 'dbDelta' ) ) {
121
- require_once ABSPATH . 'wp-admin/includes/upgrade.php';
122
- }
123
-
124
- self::hook_footer();
125
- }
126
-
127
- function echo_on() {
128
- $this->on();
129
-
130
- $this->_echo = true;
131
- }
132
-
133
- function is_echo_on() {
134
- return $this->_echo;
135
- }
136
-
137
- function get_id() {
138
- return $this->_id;
139
- }
140
-
141
- function get_file() {
142
- return $this->_file_start;
143
- }
144
-
145
- private function _log( &$message, $type = 'log', $wrapper ) {
146
- if ( ! $this->is_on() ) {
147
- return;
148
- }
149
-
150
- $bt = debug_backtrace();
151
- $depth = $wrapper ? 3 : 2;
152
- while ( $depth < count( $bt ) - 1 && 'eval' === $bt[ $depth ]['function'] ) {
153
- $depth ++;
154
- }
155
-
156
- $caller = $bt[ $depth ];
157
-
158
- /**
159
- * Retrieve the correct call file & line number from backtrace
160
- * when logging from a wrapper method.
161
- *
162
- * @author Vova Feldman
163
- * @since 1.2.1.6
164
- */
165
- if ( empty( $caller['line'] ) ) {
166
- $depth --;
167
-
168
- while ( $depth >= 0 ) {
169
- if ( ! empty( $bt[ $depth ]['line'] ) ) {
170
- $caller['line'] = $bt[ $depth ]['line'];
171
- $caller['file'] = $bt[ $depth ]['file'];
172
- break;
173
- }
174
- }
175
- }
176
-
177
- $log = array_merge( $caller, array(
178
- 'cnt' => self::$CNT ++,
179
- 'logger' => $this,
180
- 'timestamp' => microtime( true ),
181
- 'log_type' => $type,
182
- 'msg' => $message,
183
- ) );
184
-
185
- if ( self::$_isStorageLoggingOn ) {
186
- $this->db_log( $type, $message, self::$CNT, $caller );
187
- }
188
-
189
- self::$LOG[] = $log;
190
-
191
- if ( $this->is_echo_on() && ! Freemius::is_ajax() ) {
192
- echo self::format_html( $log ) . "\n";
193
- }
194
- }
195
-
196
- function log( $message, $wrapper = false ) {
197
- $this->_log( $message, 'log', $wrapper );
198
- }
199
-
200
- function info( $message, $wrapper = false ) {
201
- $this->_log( $message, 'info', $wrapper );
202
- }
203
-
204
- function warn( $message, $wrapper = false ) {
205
- $this->_log( $message, 'warn', $wrapper );
206
- }
207
-
208
- function error( $message, $wrapper = false ) {
209
- $this->_log( $message, 'error', $wrapper );
210
- }
211
-
212
- /**
213
- * Log API error.
214
- *
215
- * @author Vova Feldman (@svovaf)
216
- * @since 1.2.1.5
217
- *
218
- * @param mixed $api_result
219
- * @param bool $wrapper
220
- */
221
- function api_error( $api_result, $wrapper = false ) {
222
- $message = '';
223
- if ( is_object( $api_result ) && isset( $api_result->error ) ) {
224
- $message = $api_result->error->message;
225
- } else if ( is_object( $api_result ) ) {
226
- $message = var_export( $api_result, true );
227
- } else if ( is_string( $api_result ) ) {
228
- $message = $api_result;
229
- } else if ( empty( $api_result ) ) {
230
- $message = 'Empty API result.';
231
- }
232
-
233
- $message = 'API Error: ' . $message;
234
-
235
- $this->_log( $message, 'error', $wrapper );
236
- }
237
-
238
- function entrance( $message = '', $wrapper = false ) {
239
- $msg = 'Entrance' . ( empty( $message ) ? '' : ' > ' ) . $message;
240
-
241
- $this->_log( $msg, 'log', $wrapper );
242
- }
243
-
244
- function departure( $message = '', $wrapper = false ) {
245
- $msg = 'Departure' . ( empty( $message ) ? '' : ' > ' ) . $message;
246
-
247
- $this->_log( $msg, 'log', $wrapper );
248
- }
249
-
250
- #--------------------------------------------------------------------------------
251
- #region Log Formatting
252
- #--------------------------------------------------------------------------------
253
-
254
- private static function format( $log, $show_type = true ) {
255
- return '[' . str_pad( $log['cnt'], strlen( self::$CNT ), '0', STR_PAD_LEFT ) . '] [' . $log['logger']->_id . '] ' . ( $show_type ? '[' . $log['log_type'] . ']' : '' ) . ( ! empty( $log['class'] ) ? $log['class'] . $log['type'] : '' ) . $log['function'] . ' >> ' . $log['msg'] . ( isset( $log['file'] ) ? ' (' . substr( $log['file'], $log['logger']->_file_start ) . ' ' . $log['line'] . ') ' : '' ) . ' [' . $log['timestamp'] . ']';
256
- }
257
-
258
- private static function format_html( $log ) {
259
- return '<div style="font-size: 13px; font-family: monospace; color: #7da767; padding: 8px 3px; background: #000; border-bottom: 1px solid #555;">[' . $log['cnt'] . '] [' . $log['logger']->_id . '] [' . $log['log_type'] . '] <b><code style="color: #c4b1e0;">' . ( ! empty( $log['class'] ) ? $log['class'] . $log['type'] : '' ) . $log['function'] . '</code> >> <b style="color: #f59330;">' . esc_html( $log['msg'] ) . '</b></b>' . ( isset( $log['file'] ) ? ' (' . substr( $log['file'], $log['logger']->_file_start ) . ' ' . $log['line'] . ')' : '' ) . ' [' . $log['timestamp'] . ']</div>';
260
- }
261
-
262
- #endregion
263
-
264
- static function dump() {
265
- ?>
266
- <!-- BEGIN: Freemius PHP Console Log -->
267
- <script type="text/javascript">
268
- <?php
269
- foreach ( self::$LOG as $log ) {
270
- echo 'console.' . $log['log_type'] . '(' . json_encode( self::format( $log, false ) ) . ')' . "\n";
271
- }
272
- ?>
273
- </script>
274
- <!-- END: Freemius PHP Console Log -->
275
- <?php
276
- }
277
-
278
- static function get_log() {
279
- return self::$LOG;
280
- }
281
-
282
- #--------------------------------------------------------------------------------
283
- #region Database Logging
284
- #--------------------------------------------------------------------------------
285
-
286
- /**
287
- * @author Vova Feldman (@svovaf)
288
- * @since 1.2.1.6
289
- *
290
- * @return bool
291
- */
292
- public static function is_storage_logging_on() {
293
- if ( ! isset( self::$_isStorageLoggingOn ) ) {
294
- self::$_isStorageLoggingOn = ( 1 == get_option( 'fs_storage_logger', 0 ) );
295
- }
296
-
297
- return self::$_isStorageLoggingOn;
298
- }
299
-
300
- /**
301
- * Turns on/off database persistent debugging to capture
302
- * multi-session logs to debug complex flows like
303
- * plugin auto-deactivate on premium version activation.
304
- *
305
- * @todo Check if Theme Check has issues with DB tables for themes.
306
- *
307
- * @author Vova Feldman (@svovaf)
308
- * @since 1.2.1.6
309
- *
310
- * @param bool $is_on
311
- *
312
- * @return bool
313
- */
314
- public static function _set_storage_logging( $is_on = true ) {
315
- global $wpdb;
316
-
317
- $table = "{$wpdb->prefix}fs_logger";
318
-
319
- if ( $is_on ) {
320
- /**
321
- * Create logging table.
322
- *
323
- * NOTE:
324
- * dbDelta must use KEY and not INDEX for indexes.
325
- *
326
- * @link https://core.trac.wordpress.org/ticket/2695
327
- */
328
- $result = $wpdb->query( "CREATE TABLE {$table} (
329
- `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
330
- `process_id` INT UNSIGNED NOT NULL,
331
- `user_name` VARCHAR(64) NOT NULL,
332
- `logger` VARCHAR(128) NOT NULL,
333
- `log_order` INT UNSIGNED NOT NULL,
334
- `type` ENUM('log','info','warn','error') NOT NULL DEFAULT 'log',
335
- `message` TEXT NOT NULL,
336
- `file` VARCHAR(256) NOT NULL,
337
- `line` INT UNSIGNED NOT NULL,
338
- `function` VARCHAR(256) NOT NULL,
339
- `request_type` ENUM('call','ajax','cron') NOT NULL DEFAULT 'call',
340
- `request_url` VARCHAR(1024) NOT NULL,
341
- `created` DECIMAL(16, 6) NOT NULL,
342
- PRIMARY KEY (`id`),
343
- KEY `process_id` (`process_id` ASC),
344
- KEY `process_logger` (`process_id` ASC, `logger` ASC),
345
- KEY `function` (`function` ASC),
346
- KEY `type` (`type` ASC))" );
347
- } else {
348
- /**
349
- * Drop logging table.
350
- */
351
- $result = $wpdb->query( "DROP TABLE IF EXISTS $table;" );
352
- }
353
-
354
- if ( false !== $result ) {
355
- update_option( 'fs_storage_logger', ( $is_on ? 1 : 0 ) );
356
- }
357
-
358
- return ( false !== $result );
359
- }
360
-
361
- /**
362
- * @author Vova Feldman (@svovaf)
363
- * @since 1.2.1.6
364
- *
365
- * @param string $type
366
- * @param string $message
367
- * @param int $log_order
368
- * @param array $caller
369
- *
370
- * @return false|int
371
- */
372
- private function db_log(
373
- &$type,
374
- &$message,
375
- &$log_order,
376
- &$caller
377
- ) {
378
- global $wpdb;
379
-
380
- $request_type = 'call';
381
- if ( defined( 'DOING_CRON' ) && DOING_CRON ) {
382
- $request_type = 'cron';
383
- } else if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
384
- $request_type = 'ajax';
385
- }
386
-
387
- $request_url = WP_FS__IS_HTTP_REQUEST ?
388
- $_SERVER['REQUEST_URI'] :
389
- '';
390
-
391
- return $wpdb->insert(
392
- "{$wpdb->prefix}fs_logger",
393
- array(
394
- 'process_id' => self::$_processID,
395
- 'user_name' => self::$_ownerName,
396
- 'logger' => $this->_id,
397
- 'log_order' => $log_order,
398
- 'type' => $type,
399
- 'request_type' => $request_type,
400
- 'request_url' => $request_url,
401
- 'message' => $message,
402
- 'file' => isset( $caller['file'] ) ?
403
- substr( $caller['file'], self::$_abspathLength ) :
404
- '',
405
- 'line' => $caller['line'],
406
- 'function' => ( ! empty( $caller['class'] ) ? $caller['class'] . $caller['type'] : '' ) . $caller['function'],
407
- 'created' => microtime( true ),
408
- )
409
- );
410
- }
411
-
412
- /**
413
- * Persistent DB logger columns.
414
- *
415
- * @var array
416
- */
417
- private static $_log_columns = array(
418
- 'id',
419
- 'process_id',
420
- 'user_name',
421
- 'logger',
422
- 'log_order',
423
- 'type',
424
- 'message',
425
- 'file',
426
- 'line',
427
- 'function',
428
- 'request_type',
429
- 'request_url',
430
- 'created',
431
- );
432
-
433
- /**
434
- * Create DB logs query.
435
- *
436
- * @author Vova Feldman (@svovaf)
437
- * @since 1.2.1.6
438
- *
439
- * @param bool $filters
440
- * @param int $limit
441
- * @param int $offset
442
- * @param bool $order
443
- * @param bool $escape_eol
444
- *
445
- * @return string
446
- */
447
- private static function build_db_logs_query(
448
- $filters = false,
449
- $limit = 200,
450
- $offset = 0,
451
- $order = false,
452
- $escape_eol = false
453
- ) {
454
- global $wpdb;
455
-
456
- $select = '*';
457
-
458
- if ( $escape_eol ) {
459
- $select = '';
460
- for ( $i = 0, $len = count( self::$_log_columns ); $i < $len; $i ++ ) {
461
- if ( $i > 0 ) {
462
- $select .= ', ';
463
- }
464
-
465
- if ( 'message' !== self::$_log_columns[ $i ] ) {
466
- $select .= self::$_log_columns[ $i ];
467
- } else {
468
- $select .= 'REPLACE(message , \'\n\', \' \') AS message';
469
- }
470
- }
471
- }
472
-
473
- $query = "SELECT {$select} FROM {$wpdb->prefix}fs_logger";
474
- if ( is_array( $filters ) ) {
475
- $criteria = array();
476
-
477
- if ( ! empty( $filters['type'] ) && 'all' !== $filters['type'] ) {
478
- $filters['type'] = strtolower( $filters['type'] );
479
-
480
- switch ( $filters['type'] ) {
481
- case 'warn_error':
482
- $criteria[] = array( 'col' => 'type', 'val' => array( 'warn', 'error' ) );
483
- break;
484
- case 'error':
485
- case 'warn':
486
- $criteria[] = array( 'col' => 'type', 'val' => $filters['type'] );
487
- break;
488
- case 'info':
489
- default:
490
- $criteria[] = array( 'col' => 'type', 'val' => array( 'info', 'log' ) );
491
- break;
492
- }
493
- }
494
-
495
- if ( ! empty( $filters['request_type'] ) ) {
496
- $filters['request_type'] = strtolower( $filters['request_type'] );
497
-
498
- if ( in_array( $filters['request_type'], array( 'call', 'ajax', 'cron' ) ) ) {
499
- $criteria[] = array( 'col' => 'request_type', 'val' => $filters['request_type'] );
500
- }
501
- }
502
-
503
- if ( ! empty( $filters['file'] ) ) {
504
- $criteria[] = array(
505
- 'col' => 'file',
506
- 'op' => 'LIKE',
507
- 'val' => '%' . esc_sql( $filters['file'] ),
508
- );
509
- }
510
-
511
- if ( ! empty( $filters['function'] ) ) {
512
- $criteria[] = array(
513
- 'col' => 'function',
514
- 'op' => 'LIKE',
515
- 'val' => '%' . esc_sql( $filters['function'] ),
516
- );
517
- }
518
-
519
- if ( ! empty( $filters['process_id'] ) && is_numeric( $filters['process_id'] ) ) {
520
- $criteria[] = array( 'col' => 'process_id', 'val' => $filters['process_id'] );
521
- }
522
-
523
- if ( ! empty( $filters['logger'] ) ) {
524
- $criteria[] = array(
525
- 'col' => 'logger',
526
- 'op' => 'LIKE',
527
- 'val' => '%' . esc_sql( $filters['logger'] ) . '%',
528
- );
529
- }
530
-
531
- if ( ! empty( $filters['message'] ) ) {
532
- $criteria[] = array(
533
- 'col' => 'message',
534
- 'op' => 'LIKE',
535
- 'val' => '%' . esc_sql( $filters['message'] ) . '%',
536
- );
537
- }
538
-
539
- if ( 0 < count( $criteria ) ) {
540
- $query .= "\nWHERE\n";
541
-
542
- $first = true;
543
- foreach ( $criteria as $c ) {
544
- if ( ! $first ) {
545
- $query .= "AND\n";
546
- }
547
-
548
- if ( is_array( $c['val'] ) ) {
549
- $operator = 'IN';
550
-
551
- for ( $i = 0, $len = count( $c['val'] ); $i < $len; $i ++ ) {
552
- $c['val'][ $i ] = "'" . esc_sql( $c['val'][ $i ] ) . "'";
553
- }
554
-
555
- $val = '(' . implode( ',', $c['val'] ) . ')';
556
- } else {
557
- $operator = ! empty( $c['op'] ) ? $c['op'] : '=';
558
- $val = "'" . esc_sql( $c['val'] ) . "'";
559
- }
560
-
561
- $query .= "`{$c['col']}` {$operator} {$val}\n";
562
-
563
- $first = false;
564
- }
565
- }
566
- }
567
-
568
- if ( ! is_array( $order ) ) {
569
- $order = array(
570
- 'col' => 'id',
571
- 'order' => 'desc'
572
- );
573
- }
574
-
575
- $query .= " ORDER BY {$order['col']} {$order['order']} LIMIT {$offset},{$limit}";
576
-
577
- return $query;
578
- }
579
-
580
- /**
581
- * Load logs from DB.
582
- *
583
- * @author Vova Feldman (@svovaf)
584
- * @since 1.2.1.6
585
- *
586
- * @param bool $filters
587
- * @param int $limit
588
- * @param int $offset
589
- * @param bool $order
590
- *
591
- * @return object[]|null
592
- */
593
- public static function load_db_logs(
594
- $filters = false,
595
- $limit = 200,
596
- $offset = 0,
597
- $order = false
598
- ) {
599
- global $wpdb;
600
-
601
- $query = self::build_db_logs_query(
602
- $filters,
603
- $limit,
604
- $offset,
605
- $order
606
- );
607
-
608
- return $wpdb->get_results( $query );
609
- }
610
-
611
- /**
612
- * Load logs from DB.
613
- *
614
- * @author Vova Feldman (@svovaf)
615
- * @since 1.2.1.6
616
- *
617
- * @param bool $filters
618
- * @param string $filename
619
- * @param int $limit
620
- * @param int $offset
621
- * @param bool $order
622
- *
623
- * @return false|string File download URL or false on failure.
624
- */
625
- public static function download_db_logs(
626
- $filters = false,
627
- $filename = '',
628
- $limit = 10000,
629
- $offset = 0,
630
- $order = false
631
- ) {
632
- global $wpdb;
633
-
634
- $query = self::build_db_logs_query(
635
- $filters,
636
- $limit,
637
- $offset,
638
- $order,
639
- true
640
- );
641
-
642
- $upload_dir = wp_upload_dir();
643
- if ( empty( $filename ) ) {
644
- $filename = 'fs-logs-' . date( 'Y-m-d_H-i-s', WP_FS__SCRIPT_START_TIME ) . '.csv';
645
- }
646
- $filepath = rtrim( $upload_dir['path'], '/' ) . "/{$filename}";
647
-
648
- $query .= " INTO OUTFILE '{$filepath}' FIELDS TERMINATED BY '\t' ESCAPED BY '\\\\' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\\n'";
649
-
650
- $columns = '';
651
- for ( $i = 0, $len = count( self::$_log_columns ); $i < $len; $i ++ ) {
652
- if ( $i > 0 ) {
653
- $columns .= ', ';
654
- }
655
-
656
- $columns .= "'" . self::$_log_columns[ $i ] . "'";
657
- }
658
-
659
- $query = "SELECT {$columns} UNION ALL " . $query;
660
-
661
- $result = $wpdb->query( $query );
662
-
663
- if ( false === $result ) {
664
- return false;
665
- }
666
-
667
- return rtrim( $upload_dir['url'], '/' ) . '/' . $filename;
668
- }
669
-
670
- /**
671
- * @author Vova Feldman (@svovaf)
672
- * @since 1.2.1.6
673
- *
674
- * @param string $filename
675
- *
676
- * @return string
677
- */
678
- public static function get_logs_download_url( $filename = '' ) {
679
- $upload_dir = wp_upload_dir();
680
- if ( empty( $filename ) ) {
681
- $filename = 'fs-logs-' . date( 'Y-m-d_H-i-s', WP_FS__SCRIPT_START_TIME ) . '.csv';
682
- }
683
-
684
- return rtrim( $upload_dir['url'], '/' ) . $filename;
685
- }
686
-
687
- #endregion
688
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.3
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_Logger {
14
+ private $_id;
15
+ private $_on = false;
16
+ private $_echo = false;
17
+ private $_file_start = 0;
18
+ /**
19
+ * @var int PHP Process ID.
20
+ */
21
+ private static $_processID;
22
+ /**
23
+ * @var string PHP Script user name.
24
+ */
25
+ private static $_ownerName;
26
+ /**
27
+ * @var bool Is storage logging turned on.
28
+ */
29
+ private static $_isStorageLoggingOn;
30
+ /**
31
+ * @var int ABSPATH length.
32
+ */
33
+ private static $_abspathLength;
34
+
35
+ private static $LOGGERS = array();
36
+ private static $LOG = array();
37
+ private static $CNT = 0;
38
+ private static $_HOOKED_FOOTER = false;
39
+
40
+ private function __construct( $id, $on = false, $echo = false ) {
41
+ $this->_id = $id;
42
+
43
+ $bt = debug_backtrace();
44
+ $caller = $bt[2];
45
+
46
+ if ( false !== strpos( $caller['file'], 'plugins' ) ) {
47
+ $this->_file_start = strpos( $caller['file'], 'plugins' ) + strlen( 'plugins/' );
48
+ } else {
49
+ $this->_file_start = strpos( $caller['file'], 'themes' ) + strlen( 'themes/' );
50
+ }
51
+
52
+ if ( $on ) {
53
+ $this->on();
54
+ }
55
+ if ( $echo ) {
56
+ $this->echo_on();
57
+ }
58
+ }
59
+
60
+ /**
61
+ * @param string $id
62
+ * @param bool $on
63
+ * @param bool $echo
64
+ *
65
+ * @return FS_Logger
66
+ */
67
+ public static function get_logger( $id, $on = false, $echo = false ) {
68
+ $id = strtolower( $id );
69
+
70
+ if ( ! isset( self::$_processID ) ) {
71
+ self::init();
72
+ }
73
+
74
+ if ( ! isset( self::$LOGGERS[ $id ] ) ) {
75
+ self::$LOGGERS[ $id ] = new FS_Logger( $id, $on, $echo );
76
+ }
77
+
78
+ return self::$LOGGERS[ $id ];
79
+ }
80
+
81
+ /**
82
+ * Initialize logging global info.
83
+ *
84
+ * @author Vova Feldman (@svovaf)
85
+ * @since 1.2.1.6
86
+ */
87
+ private static function init() {
88
+ self::$_ownerName = function_exists( 'get_current_user' ) ?
89
+ get_current_user() :
90
+ 'unknown';
91
+ self::$_isStorageLoggingOn = ( 1 == get_option( 'fs_storage_logger', 0 ) );
92
+ self::$_abspathLength = strlen( ABSPATH );
93
+ self::$_processID = mt_rand( 0, 32000 );
94
+
95
+ // Process ID may be `false` on errors.
96
+ if ( ! is_numeric( self::$_processID ) ) {
97
+ self::$_processID = 0;
98
+ }
99
+ }
100
+
101
+ private static function hook_footer() {
102
+ if ( self::$_HOOKED_FOOTER ) {
103
+ return;
104
+ }
105
+
106
+ if ( is_admin() ) {
107
+ add_action( 'admin_footer', 'FS_Logger::dump', 100 );
108
+ } else {
109
+ add_action( 'wp_footer', 'FS_Logger::dump', 100 );
110
+ }
111
+ }
112
+
113
+ function is_on() {
114
+ return $this->_on;
115
+ }
116
+
117
+ function on() {
118
+ $this->_on = true;
119
+
120
+ if ( ! function_exists( 'dbDelta' ) ) {
121
+ require_once ABSPATH . 'wp-admin/includes/upgrade.php';
122
+ }
123
+
124
+ self::hook_footer();
125
+ }
126
+
127
+ function echo_on() {
128
+ $this->on();
129
+
130
+ $this->_echo = true;
131
+ }
132
+
133
+ function is_echo_on() {
134
+ return $this->_echo;
135
+ }
136
+
137
+ function get_id() {
138
+ return $this->_id;
139
+ }
140
+
141
+ function get_file() {
142
+ return $this->_file_start;
143
+ }
144
+
145
+ private function _log( &$message, $type = 'log', $wrapper ) {
146
+ if ( ! $this->is_on() ) {
147
+ return;
148
+ }
149
+
150
+ $bt = debug_backtrace();
151
+ $depth = $wrapper ? 3 : 2;
152
+ while ( $depth < count( $bt ) - 1 && 'eval' === $bt[ $depth ]['function'] ) {
153
+ $depth ++;
154
+ }
155
+
156
+ $caller = $bt[ $depth ];
157
+
158
+ /**
159
+ * Retrieve the correct call file & line number from backtrace
160
+ * when logging from a wrapper method.
161
+ *
162
+ * @author Vova Feldman
163
+ * @since 1.2.1.6
164
+ */
165
+ if ( empty( $caller['line'] ) ) {
166
+ $depth --;
167
+
168
+ while ( $depth >= 0 ) {
169
+ if ( ! empty( $bt[ $depth ]['line'] ) ) {
170
+ $caller['line'] = $bt[ $depth ]['line'];
171
+ $caller['file'] = $bt[ $depth ]['file'];
172
+ break;
173
+ }
174
+ }
175
+ }
176
+
177
+ $log = array_merge( $caller, array(
178
+ 'cnt' => self::$CNT ++,
179
+ 'logger' => $this,
180
+ 'timestamp' => microtime( true ),
181
+ 'log_type' => $type,
182
+ 'msg' => $message,
183
+ ) );
184
+
185
+ if ( self::$_isStorageLoggingOn ) {
186
+ $this->db_log( $type, $message, self::$CNT, $caller );
187
+ }
188
+
189
+ self::$LOG[] = $log;
190
+
191
+ if ( $this->is_echo_on() && ! Freemius::is_ajax() ) {
192
+ echo self::format_html( $log ) . "\n";
193
+ }
194
+ }
195
+
196
+ function log( $message, $wrapper = false ) {
197
+ $this->_log( $message, 'log', $wrapper );
198
+ }
199
+
200
+ function info( $message, $wrapper = false ) {
201
+ $this->_log( $message, 'info', $wrapper );
202
+ }
203
+
204
+ function warn( $message, $wrapper = false ) {
205
+ $this->_log( $message, 'warn', $wrapper );
206
+ }
207
+
208
+ function error( $message, $wrapper = false ) {
209
+ $this->_log( $message, 'error', $wrapper );
210
+ }
211
+
212
+ /**
213
+ * Log API error.
214
+ *
215
+ * @author Vova Feldman (@svovaf)
216
+ * @since 1.2.1.5
217
+ *
218
+ * @param mixed $api_result
219
+ * @param bool $wrapper
220
+ */
221
+ function api_error( $api_result, $wrapper = false ) {
222
+ $message = '';
223
+ if ( is_object( $api_result ) && isset( $api_result->error ) ) {
224
+ $message = $api_result->error->message;
225
+ } else if ( is_object( $api_result ) ) {
226
+ $message = var_export( $api_result, true );
227
+ } else if ( is_string( $api_result ) ) {
228
+ $message = $api_result;
229
+ } else if ( empty( $api_result ) ) {
230
+ $message = 'Empty API result.';
231
+ }
232
+
233
+ $message = 'API Error: ' . $message;
234
+
235
+ $this->_log( $message, 'error', $wrapper );
236
+ }
237
+
238
+ function entrance( $message = '', $wrapper = false ) {
239
+ $msg = 'Entrance' . ( empty( $message ) ? '' : ' > ' ) . $message;
240
+
241
+ $this->_log( $msg, 'log', $wrapper );
242
+ }
243
+
244
+ function departure( $message = '', $wrapper = false ) {
245
+ $msg = 'Departure' . ( empty( $message ) ? '' : ' > ' ) . $message;
246
+
247
+ $this->_log( $msg, 'log', $wrapper );
248
+ }
249
+
250
+ #--------------------------------------------------------------------------------
251
+ #region Log Formatting
252
+ #--------------------------------------------------------------------------------
253
+
254
+ private static function format( $log, $show_type = true ) {
255
+ return '[' . str_pad( $log['cnt'], strlen( self::$CNT ), '0', STR_PAD_LEFT ) . '] [' . $log['logger']->_id . '] ' . ( $show_type ? '[' . $log['log_type'] . ']' : '' ) . ( ! empty( $log['class'] ) ? $log['class'] . $log['type'] : '' ) . $log['function'] . ' >> ' . $log['msg'] . ( isset( $log['file'] ) ? ' (' . substr( $log['file'], $log['logger']->_file_start ) . ' ' . $log['line'] . ') ' : '' ) . ' [' . $log['timestamp'] . ']';
256
+ }
257
+
258
+ private static function format_html( $log ) {
259
+ return '<div style="font-size: 13px; font-family: monospace; color: #7da767; padding: 8px 3px; background: #000; border-bottom: 1px solid #555;">[' . $log['cnt'] . '] [' . $log['logger']->_id . '] [' . $log['log_type'] . '] <b><code style="color: #c4b1e0;">' . ( ! empty( $log['class'] ) ? $log['class'] . $log['type'] : '' ) . $log['function'] . '</code> >> <b style="color: #f59330;">' . esc_html( $log['msg'] ) . '</b></b>' . ( isset( $log['file'] ) ? ' (' . substr( $log['file'], $log['logger']->_file_start ) . ' ' . $log['line'] . ')' : '' ) . ' [' . $log['timestamp'] . ']</div>';
260
+ }
261
+
262
+ #endregion
263
+
264
+ static function dump() {
265
+ ?>
266
+ <!-- BEGIN: Freemius PHP Console Log -->
267
+ <script type="text/javascript">
268
+ <?php
269
+ foreach ( self::$LOG as $log ) {
270
+ echo 'console.' . $log['log_type'] . '(' . json_encode( self::format( $log, false ) ) . ')' . "\n";
271
+ }
272
+ ?>
273
+ </script>
274
+ <!-- END: Freemius PHP Console Log -->
275
+ <?php
276
+ }
277
+
278
+ static function get_log() {
279
+ return self::$LOG;
280
+ }
281
+
282
+ #--------------------------------------------------------------------------------
283
+ #region Database Logging
284
+ #--------------------------------------------------------------------------------
285
+
286
+ /**
287
+ * @author Vova Feldman (@svovaf)
288
+ * @since 1.2.1.6
289
+ *
290
+ * @return bool
291
+ */
292
+ public static function is_storage_logging_on() {
293
+ if ( ! isset( self::$_isStorageLoggingOn ) ) {
294
+ self::$_isStorageLoggingOn = ( 1 == get_option( 'fs_storage_logger', 0 ) );
295
+ }
296
+
297
+ return self::$_isStorageLoggingOn;
298
+ }
299
+
300
+ /**
301
+ * Turns on/off database persistent debugging to capture
302
+ * multi-session logs to debug complex flows like
303
+ * plugin auto-deactivate on premium version activation.
304
+ *
305
+ * @todo Check if Theme Check has issues with DB tables for themes.
306
+ *
307
+ * @author Vova Feldman (@svovaf)
308
+ * @since 1.2.1.6
309
+ *
310
+ * @param bool $is_on
311
+ *
312
+ * @return bool
313
+ */
314
+ public static function _set_storage_logging( $is_on = true ) {
315
+ global $wpdb;
316
+
317
+ $table = "{$wpdb->prefix}fs_logger";
318
+
319
+ if ( $is_on ) {
320
+ /**
321
+ * Create logging table.
322
+ *
323
+ * NOTE:
324
+ * dbDelta must use KEY and not INDEX for indexes.
325
+ *
326
+ * @link https://core.trac.wordpress.org/ticket/2695
327
+ */
328
+ $result = $wpdb->query( "CREATE TABLE {$table} (
329
+ `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
330
+ `process_id` INT UNSIGNED NOT NULL,
331
+ `user_name` VARCHAR(64) NOT NULL,
332
+ `logger` VARCHAR(128) NOT NULL,
333
+ `log_order` INT UNSIGNED NOT NULL,
334
+ `type` ENUM('log','info','warn','error') NOT NULL DEFAULT 'log',
335
+ `message` TEXT NOT NULL,
336
+ `file` VARCHAR(256) NOT NULL,
337
+ `line` INT UNSIGNED NOT NULL,
338
+ `function` VARCHAR(256) NOT NULL,
339
+ `request_type` ENUM('call','ajax','cron') NOT NULL DEFAULT 'call',
340
+ `request_url` VARCHAR(1024) NOT NULL,
341
+ `created` DECIMAL(16, 6) NOT NULL,
342
+ PRIMARY KEY (`id`),
343
+ KEY `process_id` (`process_id` ASC),
344
+ KEY `process_logger` (`process_id` ASC, `logger` ASC),
345
+ KEY `function` (`function` ASC),
346
+ KEY `type` (`type` ASC))" );
347
+ } else {
348
+ /**
349
+ * Drop logging table.
350
+ */
351
+ $result = $wpdb->query( "DROP TABLE IF EXISTS $table;" );
352
+ }
353
+
354
+ if ( false !== $result ) {
355
+ update_option( 'fs_storage_logger', ( $is_on ? 1 : 0 ) );
356
+ }
357
+
358
+ return ( false !== $result );
359
+ }
360
+
361
+ /**
362
+ * @author Vova Feldman (@svovaf)
363
+ * @since 1.2.1.6
364
+ *
365
+ * @param string $type
366
+ * @param string $message
367
+ * @param int $log_order
368
+ * @param array $caller
369
+ *
370
+ * @return false|int
371
+ */
372
+ private function db_log(
373
+ &$type,
374
+ &$message,
375
+ &$log_order,
376
+ &$caller
377
+ ) {
378
+ global $wpdb;
379
+
380
+ $request_type = 'call';
381
+ if ( defined( 'DOING_CRON' ) && DOING_CRON ) {
382
+ $request_type = 'cron';
383
+ } else if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
384
+ $request_type = 'ajax';
385
+ }
386
+
387
+ $request_url = WP_FS__IS_HTTP_REQUEST ?
388
+ $_SERVER['REQUEST_URI'] :
389
+ '';
390
+
391
+ return $wpdb->insert(
392
+ "{$wpdb->prefix}fs_logger",
393
+ array(
394
+ 'process_id' => self::$_processID,
395
+ 'user_name' => self::$_ownerName,
396
+ 'logger' => $this->_id,
397
+ 'log_order' => $log_order,
398
+ 'type' => $type,
399
+ 'request_type' => $request_type,
400
+ 'request_url' => $request_url,
401
+ 'message' => $message,
402
+ 'file' => isset( $caller['file'] ) ?
403
+ substr( $caller['file'], self::$_abspathLength ) :
404
+ '',
405
+ 'line' => $caller['line'],
406
+ 'function' => ( ! empty( $caller['class'] ) ? $caller['class'] . $caller['type'] : '' ) . $caller['function'],
407
+ 'created' => microtime( true ),
408
+ )
409
+ );
410
+ }
411
+
412
+ /**
413
+ * Persistent DB logger columns.
414
+ *
415
+ * @var array
416
+ */
417
+ private static $_log_columns = array(
418
+ 'id',
419
+ 'process_id',
420
+ 'user_name',
421
+ 'logger',
422
+ 'log_order',
423
+ 'type',
424
+ 'message',
425
+ 'file',
426
+ 'line',
427
+ 'function',
428
+ 'request_type',
429
+ 'request_url',
430
+ 'created',
431
+ );
432
+
433
+ /**
434
+ * Create DB logs query.
435
+ *
436
+ * @author Vova Feldman (@svovaf)
437
+ * @since 1.2.1.6
438
+ *
439
+ * @param bool $filters
440
+ * @param int $limit
441
+ * @param int $offset
442
+ * @param bool $order
443
+ * @param bool $escape_eol
444
+ *
445
+ * @return string
446
+ */
447
+ private static function build_db_logs_query(
448
+ $filters = false,
449
+ $limit = 200,
450
+ $offset = 0,
451
+ $order = false,
452
+ $escape_eol = false
453
+ ) {
454
+ global $wpdb;
455
+
456
+ $select = '*';
457
+
458
+ if ( $escape_eol ) {
459
+ $select = '';
460
+ for ( $i = 0, $len = count( self::$_log_columns ); $i < $len; $i ++ ) {
461
+ if ( $i > 0 ) {
462
+ $select .= ', ';
463
+ }
464
+
465
+ if ( 'message' !== self::$_log_columns[ $i ] ) {
466
+ $select .= self::$_log_columns[ $i ];
467
+ } else {
468
+ $select .= 'REPLACE(message , \'\n\', \' \') AS message';
469
+ }
470
+ }
471
+ }
472
+
473
+ $query = "SELECT {$select} FROM {$wpdb->prefix}fs_logger";
474
+ if ( is_array( $filters ) ) {
475
+ $criteria = array();
476
+
477
+ if ( ! empty( $filters['type'] ) && 'all' !== $filters['type'] ) {
478
+ $filters['type'] = strtolower( $filters['type'] );
479
+
480
+ switch ( $filters['type'] ) {
481
+ case 'warn_error':
482
+ $criteria[] = array( 'col' => 'type', 'val' => array( 'warn', 'error' ) );
483
+ break;
484
+ case 'error':
485
+ case 'warn':
486
+ $criteria[] = array( 'col' => 'type', 'val' => $filters['type'] );
487
+ break;
488
+ case 'info':
489
+ default:
490
+ $criteria[] = array( 'col' => 'type', 'val' => array( 'info', 'log' ) );
491
+ break;
492
+ }
493
+ }
494
+
495
+ if ( ! empty( $filters['request_type'] ) ) {
496
+ $filters['request_type'] = strtolower( $filters['request_type'] );
497
+
498
+ if ( in_array( $filters['request_type'], array( 'call', 'ajax', 'cron' ) ) ) {
499
+ $criteria[] = array( 'col' => 'request_type', 'val' => $filters['request_type'] );
500
+ }
501
+ }
502
+
503
+ if ( ! empty( $filters['file'] ) ) {
504
+ $criteria[] = array(
505
+ 'col' => 'file',
506
+ 'op' => 'LIKE',
507
+ 'val' => '%' . esc_sql( $filters['file'] ),
508
+ );
509
+ }
510
+
511
+ if ( ! empty( $filters['function'] ) ) {
512
+ $criteria[] = array(
513
+ 'col' => 'function',
514
+ 'op' => 'LIKE',
515
+ 'val' => '%' . esc_sql( $filters['function'] ),
516
+ );
517
+ }
518
+
519
+ if ( ! empty( $filters['process_id'] ) && is_numeric( $filters['process_id'] ) ) {
520
+ $criteria[] = array( 'col' => 'process_id', 'val' => $filters['process_id'] );
521
+ }
522
+
523
+ if ( ! empty( $filters['logger'] ) ) {
524
+ $criteria[] = array(
525
+ 'col' => 'logger',
526
+ 'op' => 'LIKE',
527
+ 'val' => '%' . esc_sql( $filters['logger'] ) . '%',
528
+ );
529
+ }
530
+
531
+ if ( ! empty( $filters['message'] ) ) {
532
+ $criteria[] = array(
533
+ 'col' => 'message',
534
+ 'op' => 'LIKE',
535
+ 'val' => '%' . esc_sql( $filters['message'] ) . '%',
536
+ );
537
+ }
538
+
539
+ if ( 0 < count( $criteria ) ) {
540
+ $query .= "\nWHERE\n";
541
+
542
+ $first = true;
543
+ foreach ( $criteria as $c ) {
544
+ if ( ! $first ) {
545
+ $query .= "AND\n";
546
+ }
547
+
548
+ if ( is_array( $c['val'] ) ) {
549
+ $operator = 'IN';
550
+
551
+ for ( $i = 0, $len = count( $c['val'] ); $i < $len; $i ++ ) {
552
+ $c['val'][ $i ] = "'" . esc_sql( $c['val'][ $i ] ) . "'";
553
+ }
554
+
555
+ $val = '(' . implode( ',', $c['val'] ) . ')';
556
+ } else {
557
+ $operator = ! empty( $c['op'] ) ? $c['op'] : '=';
558
+ $val = "'" . esc_sql( $c['val'] ) . "'";
559
+ }
560
+
561
+ $query .= "`{$c['col']}` {$operator} {$val}\n";
562
+
563
+ $first = false;
564
+ }
565
+ }
566
+ }
567
+
568
+ if ( ! is_array( $order ) ) {
569
+ $order = array(
570
+ 'col' => 'id',
571
+ 'order' => 'desc'
572
+ );
573
+ }
574
+
575
+ $query .= " ORDER BY {$order['col']} {$order['order']} LIMIT {$offset},{$limit}";
576
+
577
+ return $query;
578
+ }
579
+
580
+ /**
581
+ * Load logs from DB.
582
+ *
583
+ * @author Vova Feldman (@svovaf)
584
+ * @since 1.2.1.6
585
+ *
586
+ * @param bool $filters
587
+ * @param int $limit
588
+ * @param int $offset
589
+ * @param bool $order
590
+ *
591
+ * @return object[]|null
592
+ */
593
+ public static function load_db_logs(
594
+ $filters = false,
595
+ $limit = 200,
596
+ $offset = 0,
597
+ $order = false
598
+ ) {
599
+ global $wpdb;
600
+
601
+ $query = self::build_db_logs_query(
602
+ $filters,
603
+ $limit,
604
+ $offset,
605
+ $order
606
+ );
607
+
608
+ return $wpdb->get_results( $query );
609
+ }
610
+
611
+ /**
612
+ * Load logs from DB.
613
+ *
614
+ * @author Vova Feldman (@svovaf)
615
+ * @since 1.2.1.6
616
+ *
617
+ * @param bool $filters
618
+ * @param string $filename
619
+ * @param int $limit
620
+ * @param int $offset
621
+ * @param bool $order
622
+ *
623
+ * @return false|string File download URL or false on failure.
624
+ */
625
+ public static function download_db_logs(
626
+ $filters = false,
627
+ $filename = '',
628
+ $limit = 10000,
629
+ $offset = 0,
630
+ $order = false
631
+ ) {
632
+ global $wpdb;
633
+
634
+ $query = self::build_db_logs_query(
635
+ $filters,
636
+ $limit,
637
+ $offset,
638
+ $order,
639
+ true
640
+ );
641
+
642
+ $upload_dir = wp_upload_dir();
643
+ if ( empty( $filename ) ) {
644
+ $filename = 'fs-logs-' . date( 'Y-m-d_H-i-s', WP_FS__SCRIPT_START_TIME ) . '.csv';
645
+ }
646
+ $filepath = rtrim( $upload_dir['path'], '/' ) . "/{$filename}";
647
+
648
+ $query .= " INTO OUTFILE '{$filepath}' FIELDS TERMINATED BY '\t' ESCAPED BY '\\\\' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\\n'";
649
+
650
+ $columns = '';
651
+ for ( $i = 0, $len = count( self::$_log_columns ); $i < $len; $i ++ ) {
652
+ if ( $i > 0 ) {
653
+ $columns .= ', ';
654
+ }
655
+
656
+ $columns .= "'" . self::$_log_columns[ $i ] . "'";
657
+ }
658
+
659
+ $query = "SELECT {$columns} UNION ALL " . $query;
660
+
661
+ $result = $wpdb->query( $query );
662
+
663
+ if ( false === $result ) {
664
+ return false;
665
+ }
666
+
667
+ return rtrim( $upload_dir['url'], '/' ) . '/' . $filename;
668
+ }
669
+
670
+ /**
671
+ * @author Vova Feldman (@svovaf)
672
+ * @since 1.2.1.6
673
+ *
674
+ * @param string $filename
675
+ *
676
+ * @return string
677
+ */
678
+ public static function get_logs_download_url( $filename = '' ) {
679
+ $upload_dir = wp_upload_dir();
680
+ if ( empty( $filename ) ) {
681
+ $filename = 'fs-logs-' . date( 'Y-m-d_H-i-s', WP_FS__SCRIPT_START_TIME ) . '.csv';
682
+ }
683
+
684
+ return rtrim( $upload_dir['url'], '/' ) . $filename;
685
+ }
686
+
687
+ #endregion
688
  }
freemius/includes/class-fs-security.php CHANGED
@@ -1,85 +1,85 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.3
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- define( 'WP_FS__SECURITY_PARAMS_PREFIX', 's_' );
14
-
15
- /**
16
- * Class FS_Security
17
- */
18
- class FS_Security {
19
- /**
20
- * @var FS_Security
21
- * @since 1.0.3
22
- */
23
- private static $_instance;
24
- /**
25
- * @var FS_Logger
26
- * @since 1.0.3
27
- */
28
- private static $_logger;
29
-
30
- /**
31
- * @return \FS_Security
32
- */
33
- public static function instance() {
34
- if ( ! isset( self::$_instance ) ) {
35
- self::$_instance = new FS_Security();
36
- self::$_logger = FS_Logger::get_logger(
37
- WP_FS__SLUG,
38
- WP_FS__DEBUG_SDK,
39
- WP_FS__ECHO_DEBUG_SDK
40
- );
41
- }
42
-
43
- return self::$_instance;
44
- }
45
-
46
- private function __construct() {
47
- }
48
-
49
- /**
50
- * @param \FS_Scope_Entity $entity
51
- * @param int $timestamp
52
- * @param string $action
53
- *
54
- * @return string
55
- */
56
- function get_secure_token( FS_Scope_Entity $entity, $timestamp, $action = '' ) {
57
- return md5(
58
- $timestamp .
59
- $entity->id .
60
- $entity->secret_key .
61
- $entity->public_key .
62
- $action
63
- );
64
- }
65
-
66
- /**
67
- * @param \FS_Scope_Entity $entity
68
- * @param int|bool $timestamp
69
- * @param string $action
70
- *
71
- * @return array
72
- */
73
- function get_context_params( FS_Scope_Entity $entity, $timestamp = false, $action = '' ) {
74
- if ( false === $timestamp ) {
75
- $timestamp = time();
76
- }
77
-
78
- return array(
79
- 's_ctx_type' => $entity->get_type(),
80
- 's_ctx_id' => $entity->id,
81
- 's_ctx_ts' => $timestamp,
82
- 's_ctx_secure' => $this->get_secure_token( $entity, $timestamp, $action ),
83
- );
84
- }
85
- }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.3
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ define( 'WP_FS__SECURITY_PARAMS_PREFIX', 's_' );
14
+
15
+ /**
16
+ * Class FS_Security
17
+ */
18
+ class FS_Security {
19
+ /**
20
+ * @var FS_Security
21
+ * @since 1.0.3
22
+ */
23
+ private static $_instance;
24
+ /**
25
+ * @var FS_Logger
26
+ * @since 1.0.3
27
+ */
28
+ private static $_logger;
29
+
30
+ /**
31
+ * @return \FS_Security
32
+ */
33
+ public static function instance() {
34
+ if ( ! isset( self::$_instance ) ) {
35
+ self::$_instance = new FS_Security();
36
+ self::$_logger = FS_Logger::get_logger(
37
+ WP_FS__SLUG,
38
+ WP_FS__DEBUG_SDK,
39
+ WP_FS__ECHO_DEBUG_SDK
40
+ );
41
+ }
42
+
43
+ return self::$_instance;
44
+ }
45
+
46
+ private function __construct() {
47
+ }
48
+
49
+ /**
50
+ * @param \FS_Scope_Entity $entity
51
+ * @param int $timestamp
52
+ * @param string $action
53
+ *
54
+ * @return string
55
+ */
56
+ function get_secure_token( FS_Scope_Entity $entity, $timestamp, $action = '' ) {
57
+ return md5(
58
+ $timestamp .
59
+ $entity->id .
60
+ $entity->secret_key .
61
+ $entity->public_key .
62
+ $action
63
+ );
64
+ }
65
+
66
+ /**
67
+ * @param \FS_Scope_Entity $entity
68
+ * @param int|bool $timestamp
69
+ * @param string $action
70
+ *
71
+ * @return array
72
+ */
73
+ function get_context_params( FS_Scope_Entity $entity, $timestamp = false, $action = '' ) {
74
+ if ( false === $timestamp ) {
75
+ $timestamp = time();
76
+ }
77
+
78
+ return array(
79
+ 's_ctx_type' => $entity->get_type(),
80
+ 's_ctx_id' => $entity->id,
81
+ 's_ctx_ts' => $timestamp,
82
+ 's_ctx_secure' => $this->get_secure_token( $entity, $timestamp, $action ),
83
+ );
84
+ }
85
+ }
freemius/includes/customizer/class-fs-customizer-support-section.php CHANGED
@@ -1,102 +1,102 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.2.2.7
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- /**
14
- * Class Zerif_Customizer_Theme_Info_Main
15
- *
16
- * @since 1.0.0
17
- * @access public
18
- */
19
- class FS_Customizer_Support_Section extends WP_Customize_Section {
20
-
21
- function __construct( $manager, $id, $args = array() ) {
22
- $manager->register_section_type( 'FS_Customizer_Support_Section' );
23
-
24
- parent::__construct( $manager, $id, $args );
25
- }
26
-
27
- /**
28
- * The type of customize section being rendered.
29
- *
30
- * @since 1.0.0
31
- * @access public
32
- * @var string
33
- */
34
- public $type = 'freemius-support-section';
35
-
36
- /**
37
- * @var Freemius
38
- */
39
- public $fs = null;
40
-
41
- /**
42
- * Add custom parameters to pass to the JS via JSON.
43
- *
44
- * @since 1.0.0
45
- */
46
- public function json() {
47
- $json = parent::json();
48
-
49
- $is_contact_visible = $this->fs->is_page_visible( 'contact' );
50
- $is_support_visible = $this->fs->is_page_visible( 'support' );
51
-
52
- $json['theme_title'] = $this->fs->get_plugin_name();
53
-
54
- if ( $is_contact_visible && $is_support_visible ) {
55
- $json['theme_title'] .= ' ' . $this->fs->get_text( 'support' );
56
- }
57
-
58
- if ( $is_contact_visible ) {
59
- $json['contact'] = array(
60
- 'label' => $this->fs->get_text( 'contact-us' ),
61
- 'url' => $this->fs->contact_url(),
62
- );
63
- }
64
-
65
- if ( $is_support_visible ) {
66
- $json['support'] = array(
67
- 'label' => $this->fs->get_text( 'support-forum' ),
68
- 'url' => $this->fs->get_support_forum_url()
69
- );
70
- }
71
-
72
- return $json;
73
- }
74
-
75
- /**
76
- * Outputs the Underscore.js template.
77
- *
78
- * @since 1.0.0
79
- */
80
- protected function render_template() {
81
- ?>
82
- <li id="fs_customizer_support"
83
- class="accordion-section control-section control-section-{{ data.type }} cannot-expand">
84
- <h3 class="accordion-section-title">
85
- <span>{{ data.theme_title }}</span>
86
- <# if ( data.contact && data.support ) { #>
87
- <div class="button-group">
88
- <# } #>
89
- <# if ( data.contact ) { #>
90
- <a class="button" href="{{ data.contact.url }}" target="_blank">{{ data.contact.label }} </a>
91
- <# } #>
92
- <# if ( data.support ) { #>
93
- <a class="button" href="{{ data.support.url }}" target="_blank">{{ data.support.label }} </a>
94
- <# } #>
95
- <# if ( data.contact && data.support ) { #>
96
- </div>
97
- <# } #>
98
- </h3>
99
- </li>
100
- <?php
101
- }
102
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.2.2.7
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ /**
14
+ * Class Zerif_Customizer_Theme_Info_Main
15
+ *
16
+ * @since 1.0.0
17
+ * @access public
18
+ */
19
+ class FS_Customizer_Support_Section extends WP_Customize_Section {
20
+
21
+ function __construct( $manager, $id, $args = array() ) {
22
+ $manager->register_section_type( 'FS_Customizer_Support_Section' );
23
+
24
+ parent::__construct( $manager, $id, $args );
25
+ }
26
+
27
+ /**
28
+ * The type of customize section being rendered.
29
+ *
30
+ * @since 1.0.0
31
+ * @access public
32
+ * @var string
33
+ */
34
+ public $type = 'freemius-support-section';
35
+
36
+ /**
37
+ * @var Freemius
38
+ */
39
+ public $fs = null;
40
+
41
+ /**
42
+ * Add custom parameters to pass to the JS via JSON.
43
+ *
44
+ * @since 1.0.0
45
+ */
46
+ public function json() {
47
+ $json = parent::json();
48
+
49
+ $is_contact_visible = $this->fs->is_page_visible( 'contact' );
50
+ $is_support_visible = $this->fs->is_page_visible( 'support' );
51
+
52
+ $json['theme_title'] = $this->fs->get_plugin_name();
53
+
54
+ if ( $is_contact_visible && $is_support_visible ) {
55
+ $json['theme_title'] .= ' ' . $this->fs->get_text( 'support' );
56
+ }
57
+
58
+ if ( $is_contact_visible ) {
59
+ $json['contact'] = array(
60
+ 'label' => $this->fs->get_text( 'contact-us' ),
61
+ 'url' => $this->fs->contact_url(),
62
+ );
63
+ }
64
+
65
+ if ( $is_support_visible ) {
66
+ $json['support'] = array(
67
+ 'label' => $this->fs->get_text( 'support-forum' ),
68
+ 'url' => $this->fs->get_support_forum_url()
69
+ );
70
+ }
71
+
72
+ return $json;
73
+ }
74
+
75
+ /**
76
+ * Outputs the Underscore.js template.
77
+ *
78
+ * @since 1.0.0
79
+ */
80
+ protected function render_template() {
81
+ ?>
82
+ <li id="fs_customizer_support"
83
+ class="accordion-section control-section control-section-{{ data.type }} cannot-expand">
84
+ <h3 class="accordion-section-title">
85
+ <span>{{ data.theme_title }}</span>
86
+ <# if ( data.contact && data.support ) { #>
87
+ <div class="button-group">
88
+ <# } #>
89
+ <# if ( data.contact ) { #>
90
+ <a class="button" href="{{ data.contact.url }}" target="_blank">{{ data.contact.label }} </a>
91
+ <# } #>
92
+ <# if ( data.support ) { #>
93
+ <a class="button" href="{{ data.support.url }}" target="_blank">{{ data.support.label }} </a>
94
+ <# } #>
95
+ <# if ( data.contact && data.support ) { #>
96
+ </div>
97
+ <# } #>
98
+ </h3>
99
+ </li>
100
+ <?php
101
+ }
102
  }
freemius/includes/customizer/class-fs-customizer-upsell-control.php CHANGED
@@ -1,157 +1,157 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.2.2.7
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- /**
14
- * Class FS_Customizer_Upsell_Control
15
- */
16
- class FS_Customizer_Upsell_Control extends WP_Customize_Control {
17
-
18
- /**
19
- * Control type
20
- *
21
- * @var string control type
22
- */
23
- public $type = 'freemius-upsell-control';
24
-
25
- /**
26
- * @var Freemius
27
- */
28
- public $fs = null;
29
-
30
- /**
31
- * @param WP_Customize_Manager $manager the customize manager class.
32
- * @param string $id id.
33
- * @param array $args customizer manager parameters.
34
- */
35
- public function __construct( WP_Customize_Manager $manager, $id, array $args ) {
36
- $manager->register_control_type( 'FS_Customizer_Upsell_Control' );
37
-
38
- parent::__construct( $manager, $id, $args );
39
- }
40
-
41
- /**
42
- * Enqueue resources for the control.
43
- */
44
- public function enqueue() {
45
- fs_enqueue_local_style( 'fs_customizer', 'customizer.css' );
46
- }
47
-
48
- /**
49
- * Json conversion
50
- */
51
- public function to_json() {
52
- $pricing_cta = esc_html( $this->fs->get_text( $this->fs->get_pricing_cta_label() ) ) . '&nbsp;&nbsp;' . ( is_rtl() ? '&#x2190;' : '&#x27a4;' );
53
-
54
- parent::to_json();
55
-
56
- $this->json['button_text'] = $pricing_cta;
57
- $this->json['button_url'] = $this->fs->is_in_trial_promotion() ?
58
- $this->fs->get_trial_url() :
59
- $this->fs->get_upgrade_url();
60
-
61
- // Load features.
62
- $pricing = $this->fs->get_api_plugin_scope()->get( 'pricing.json' );
63
-
64
- if ( $this->fs->is_api_result_object( $pricing, 'plans' ) ) {
65
- // Add support features.
66
- if ( is_array( $pricing->plans ) && 0 < count( $pricing->plans ) ) {
67
- $support_features = array(
68
- 'kb' => 'Help Center',
69
- 'forum' => 'Support Forum',
70
- 'email' => 'Priority Email Support',
71
- 'phone' => 'Phone Support',
72
- 'skype' => 'Skype Support',
73
- 'is_success_manager' => 'Personal Success Manager',
74
- );
75
-
76
- for ( $i = 0, $len = count( $pricing->plans ); $i < $len; $i ++ ) {
77
- if ( 'free' == $pricing->plans[$i]->name ) {
78
- continue;
79
- }
80
-
81
- if ( ! isset( $pricing->plans[ $i ]->features ) ||
82
- ! is_array( $pricing->plans[ $i ]->features ) ) {
83
- $pricing->plans[$i]->features = array();
84
- }
85
-
86
- foreach ( $support_features as $key => $label ) {
87
- $key = ( 'is_success_manager' !== $key ) ?
88
- "support_{$key}" :
89
- $key;
90
-
91
- if ( ! empty( $pricing->plans[ $i ]->{$key} ) ) {
92
-
93
- $support_feature = new stdClass();
94
- $support_feature->title = $label;
95
-
96
- $pricing->plans[ $i ]->features[] = $support_feature;
97
- }
98
- }
99
- }
100
- }
101
- }
102
-
103
- $this->json['plans'] = $pricing->plans;
104
-
105
- $this->json['strings'] = array(
106
- 'plan' => $this->fs->get_text( 'plan' ),
107
- );
108
- }
109
-
110
- /**
111
- * Control content
112
- */
113
- public function content_template() {
114
- ?>
115
- <div id="fs_customizer_upsell">
116
- <# if ( data.plans ) { #>
117
- <ul class="fs-customizer-plans">
118
- <# for (i in data.plans) { #>
119
- <# if ( 'free' != data.plans[i].name && (null != data.plans[i].features && 0 < data.plans[i].features.length) ) { #>
120
- <li class="fs-customizer-plan">
121
- <div class="fs-accordion-section-open">
122
- <h2 class="fs-accordion-section-title menu-item">
123
- <span>{{ data.plans[i].title }}</span>
124
- <button type="button" class="button-link item-edit" aria-expanded="true">
125
- <span class="screen-reader-text">Toggle section: {{ data.plans[i].title }} {{ data.strings.plan }}</span>
126
- <span class="toggle-indicator" aria-hidden="true"></span>
127
- </button>
128
- </h2>
129
- <div class="fs-accordion-section-content">
130
- <# if ( data.plans[i].description ) { #>
131
- <h3>{{ data.plans[i].description }}</h3>
132
- <# } #>
133
- <# if ( data.plans[i].features ) { #>
134
- <ul>
135
- <# for ( j in data.plans[i].features ) { #>
136
- <li><div class="fs-feature">
137
- <span class="dashicons dashicons-yes"></span><span><# if ( data.plans[i].features[j].value ) { #>{{ data.plans[i].features[j].value }} <# } #>{{ data.plans[i].features[j].title }}</span>
138
- <# if ( data.plans[i].features[j].description ) { #>
139
- <span class="dashicons dashicons-editor-help"><span class="fs-feature-desc">{{ data.plans[i].features[j].description }}</span></span>
140
- <# } #>
141
- </div></li>
142
- <# } #>
143
- </ul>
144
- <# } #>
145
- <# if ( 'free' != data.plans[i].name ) { #>
146
- <a href="{{ data.button_url }}" class="button button-primary" target="_blank">{{{ data.button_text }}}</a>
147
- <# } #>
148
- </div>
149
- </div>
150
- </li>
151
- <# } #>
152
- <# } #>
153
- </ul>
154
- <# } #>
155
- </div>
156
- <?php }
157
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.2.2.7
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ /**
14
+ * Class FS_Customizer_Upsell_Control
15
+ */
16
+ class FS_Customizer_Upsell_Control extends WP_Customize_Control {
17
+
18
+ /**
19
+ * Control type
20
+ *
21
+ * @var string control type
22
+ */
23
+ public $type = 'freemius-upsell-control';
24
+
25
+ /**
26
+ * @var Freemius
27
+ */
28
+ public $fs = null;
29
+
30
+ /**
31
+ * @param WP_Customize_Manager $manager the customize manager class.
32
+ * @param string $id id.
33
+ * @param array $args customizer manager parameters.
34
+ */
35
+ public function __construct( WP_Customize_Manager $manager, $id, array $args ) {
36
+ $manager->register_control_type( 'FS_Customizer_Upsell_Control' );
37
+
38
+ parent::__construct( $manager, $id, $args );
39
+ }
40
+
41
+ /**
42
+ * Enqueue resources for the control.
43
+ */
44
+ public function enqueue() {
45
+ fs_enqueue_local_style( 'fs_customizer', 'customizer.css' );
46
+ }
47
+
48
+ /**
49
+ * Json conversion
50
+ */
51
+ public function to_json() {
52
+ $pricing_cta = esc_html( $this->fs->get_text( $this->fs->get_pricing_cta_label() ) ) . '&nbsp;&nbsp;' . ( is_rtl() ? '&#x2190;' : '&#x27a4;' );
53
+
54
+ parent::to_json();
55
+
56
+ $this->json['button_text'] = $pricing_cta;
57
+ $this->json['button_url'] = $this->fs->is_in_trial_promotion() ?
58
+ $this->fs->get_trial_url() :
59
+ $this->fs->get_upgrade_url();
60
+
61
+ // Load features.
62
+ $pricing = $this->fs->get_api_plugin_scope()->get( 'pricing.json' );
63
+
64
+ if ( $this->fs->is_api_result_object( $pricing, 'plans' ) ) {
65
+ // Add support features.
66
+ if ( is_array( $pricing->plans ) && 0 < count( $pricing->plans ) ) {
67
+ $support_features = array(
68
+ 'kb' => 'Help Center',
69
+ 'forum' => 'Support Forum',
70
+ 'email' => 'Priority Email Support',
71
+ 'phone' => 'Phone Support',
72
+ 'skype' => 'Skype Support',
73
+ 'is_success_manager' => 'Personal Success Manager',
74
+ );
75
+
76
+ for ( $i = 0, $len = count( $pricing->plans ); $i < $len; $i ++ ) {
77
+ if ( 'free' == $pricing->plans[$i]->name ) {
78
+ continue;
79
+ }
80
+
81
+ if ( ! isset( $pricing->plans[ $i ]->features ) ||
82
+ ! is_array( $pricing->plans[ $i ]->features ) ) {
83
+ $pricing->plans[$i]->features = array();
84
+ }
85
+
86
+ foreach ( $support_features as $key => $label ) {
87
+ $key = ( 'is_success_manager' !== $key ) ?
88
+ "support_{$key}" :
89
+ $key;
90
+
91
+ if ( ! empty( $pricing->plans[ $i ]->{$key} ) ) {
92
+
93
+ $support_feature = new stdClass();
94
+ $support_feature->title = $label;
95
+
96
+ $pricing->plans[ $i ]->features[] = $support_feature;
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+
103
+ $this->json['plans'] = $pricing->plans;
104
+
105
+ $this->json['strings'] = array(
106
+ 'plan' => $this->fs->get_text( 'plan' ),
107
+ );
108
+ }
109
+
110
+ /**
111
+ * Control content
112
+ */
113
+ public function content_template() {
114
+ ?>
115
+ <div id="fs_customizer_upsell">
116
+ <# if ( data.plans ) { #>
117
+ <ul class="fs-customizer-plans">
118
+ <# for (i in data.plans) { #>
119
+ <# if ( 'free' != data.plans[i].name && (null != data.plans[i].features && 0 < data.plans[i].features.length) ) { #>
120
+ <li class="fs-customizer-plan">
121
+ <div class="fs-accordion-section-open">
122
+ <h2 class="fs-accordion-section-title menu-item">
123
+ <span>{{ data.plans[i].title }}</span>
124
+ <button type="button" class="button-link item-edit" aria-expanded="true">
125
+ <span class="screen-reader-text">Toggle section: {{ data.plans[i].title }} {{ data.strings.plan }}</span>
126
+ <span class="toggle-indicator" aria-hidden="true"></span>
127
+ </button>
128
+ </h2>
129
+ <div class="fs-accordion-section-content">
130
+ <# if ( data.plans[i].description ) { #>
131
+ <h3>{{ data.plans[i].description }}</h3>
132
+ <# } #>
133
+ <# if ( data.plans[i].features ) { #>
134
+ <ul>
135
+ <# for ( j in data.plans[i].features ) { #>
136
+ <li><div class="fs-feature">
137
+ <span class="dashicons dashicons-yes"></span><span><# if ( data.plans[i].features[j].value ) { #>{{ data.plans[i].features[j].value }} <# } #>{{ data.plans[i].features[j].title }}</span>
138
+ <# if ( data.plans[i].features[j].description ) { #>
139
+ <span class="dashicons dashicons-editor-help"><span class="fs-feature-desc">{{ data.plans[i].features[j].description }}</span></span>
140
+ <# } #>
141
+ </div></li>
142
+ <# } #>
143
+ </ul>
144
+ <# } #>
145
+ <# if ( 'free' != data.plans[i].name ) { #>
146
+ <a href="{{ data.button_url }}" class="button button-primary" target="_blank">{{{ data.button_text }}}</a>
147
+ <# } #>
148
+ </div>
149
+ </div>
150
+ </li>
151
+ <# } #>
152
+ <# } #>
153
+ </ul>
154
+ <# } #>
155
+ </div>
156
+ <?php }
157
  }
freemius/includes/debug/class-fs-debug-bar-panel.php CHANGED
@@ -1,64 +1,64 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.1.7.3
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- /**
14
- * Extends Debug Bar plugin by adding a panel to show all Freemius API requests.
15
- *
16
- * @author Vova Feldman (@svovaf)
17
- * @since 1.1.7.3
18
- *
19
- * Class Freemius_Debug_Bar_Panel
20
- */
21
- class Freemius_Debug_Bar_Panel extends Debug_Bar_Panel {
22
- function init() {
23
- $this->title( 'Freemius' );
24
- }
25
-
26
- static function requests_count() {
27
- if ( class_exists( 'Freemius_Api_WordPress' ) ) {
28
- $logger = Freemius_Api_WordPress::GetLogger();
29
- } else {
30
- $logger = array();
31
- }
32
-
33
- return number_format( count( $logger ) );
34
- }
35
-
36
- static function total_time() {
37
- if ( class_exists( 'Freemius_Api_WordPress' ) ) {
38
- $logger = Freemius_Api_WordPress::GetLogger();
39
- } else {
40
- $logger = array();
41
- }
42
-
43
- $total_time = .0;
44
- foreach ( $logger as $l ) {
45
- $total_time += $l['total'];
46
- }
47
-
48
- return number_format( 100 * $total_time, 2 ) . ' ' . fs_text( 'ms' );
49
- }
50
-
51
- function render() {
52
- ?>
53
- <div id='debug-bar-php'>
54
- <?php fs_require_template( '/debug/api-calls.php' ) ?>
55
- <br>
56
- <?php fs_require_template( '/debug/scheduled-crons.php' ) ?>
57
- <br>
58
- <?php fs_require_template( '/debug/plugins-themes-sync.php' ) ?>
59
- <br>
60
- <?php fs_require_template( '/debug/logger.php' ) ?>
61
- </div>
62
- <?php
63
- }
64
- }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.1.7.3
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ /**
14
+ * Extends Debug Bar plugin by adding a panel to show all Freemius API requests.
15
+ *
16
+ * @author Vova Feldman (@svovaf)
17
+ * @since 1.1.7.3
18
+ *
19
+ * Class Freemius_Debug_Bar_Panel
20
+ */
21
+ class Freemius_Debug_Bar_Panel extends Debug_Bar_Panel {
22
+ function init() {
23
+ $this->title( 'Freemius' );
24
+ }
25
+
26
+ static function requests_count() {
27
+ if ( class_exists( 'Freemius_Api_WordPress' ) ) {
28
+ $logger = Freemius_Api_WordPress::GetLogger();
29
+ } else {
30
+ $logger = array();
31
+ }
32
+
33
+ return number_format( count( $logger ) );
34
+ }
35
+
36
+ static function total_time() {
37
+ if ( class_exists( 'Freemius_Api_WordPress' ) ) {
38
+ $logger = Freemius_Api_WordPress::GetLogger();
39
+ } else {
40
+ $logger = array();
41
+ }
42
+
43
+ $total_time = .0;
44
+ foreach ( $logger as $l ) {
45
+ $total_time += $l['total'];
46
+ }
47
+
48
+ return number_format( 100 * $total_time, 2 ) . ' ' . fs_text( 'ms' );
49
+ }
50
+
51
+ function render() {
52
+ ?>
53
+ <div id='debug-bar-php'>
54
+ <?php fs_require_template( '/debug/api-calls.php' ) ?>
55
+ <br>
56
+ <?php fs_require_template( '/debug/scheduled-crons.php' ) ?>
57
+ <br>
58
+ <?php fs_require_template( '/debug/plugins-themes-sync.php' ) ?>
59
+ <br>
60
+ <?php fs_require_template( '/debug/logger.php' ) ?>
61
+ </div>
62
+ <?php
63
+ }
64
+ }
freemius/includes/debug/debug-bar-start.php CHANGED
@@ -1,52 +1,52 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.1.7.3
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- if ( ! WP_FS__DEBUG_SDK ) {
14
- return;
15
- }
16
-
17
- /**
18
- * Initialize Freemius custom debug panels.
19
- *
20
- * @param array $panels Debug bar panels objects
21
- *
22
- * @return array Debug bar panels with your custom panels
23
- */
24
- function fs_custom_panels_init( $panels ) {
25
- if ( class_exists( 'Debug_Bar_Panel' ) ) {
26
- if ( FS_API__LOGGER_ON ) {
27
- require_once dirname( __FILE__ ) . '/class-fs-debug-bar-panel.php';
28
- $panels[] = new Freemius_Debug_Bar_Panel();
29
- }
30
- }
31
-
32
- return $panels;
33
- }
34
-
35
- function fs_custom_status_init( $statuses ) {
36
- if ( class_exists( 'Debug_Bar_Panel' ) ) {
37
- if ( FS_API__LOGGER_ON ) {
38
- require_once dirname( __FILE__ ) . '/class-fs-debug-bar-panel.php';
39
- $statuses[] = array(
40
- 'fs_api_requests',
41
- fs_text( 'Freemius API' ),
42
- Freemius_Debug_Bar_Panel::requests_count() . ' ' . fs_text( 'Requests' ) .
43
- ' (' . Freemius_Debug_Bar_Panel::total_time() . ')'
44
- );
45
- }
46
- }
47
-
48
- return $statuses;
49
- }
50
-
51
- add_filter( 'debug_bar_panels', 'fs_custom_panels_init' );
52
  add_filter( 'debug_bar_statuses', 'fs_custom_status_init' );
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.1.7.3
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ if ( ! WP_FS__DEBUG_SDK ) {
14
+ return;
15
+ }
16
+
17
+ /**
18
+ * Initialize Freemius custom debug panels.
19
+ *
20
+ * @param array $panels Debug bar panels objects
21
+ *
22
+ * @return array Debug bar panels with your custom panels
23
+ */
24
+ function fs_custom_panels_init( $panels ) {
25
+ if ( class_exists( 'Debug_Bar_Panel' ) ) {
26
+ if ( FS_API__LOGGER_ON ) {
27
+ require_once dirname( __FILE__ ) . '/class-fs-debug-bar-panel.php';
28
+ $panels[] = new Freemius_Debug_Bar_Panel();
29
+ }
30
+ }
31
+
32
+ return $panels;
33
+ }
34
+
35
+ function fs_custom_status_init( $statuses ) {
36
+ if ( class_exists( 'Debug_Bar_Panel' ) ) {
37
+ if ( FS_API__LOGGER_ON ) {
38
+ require_once dirname( __FILE__ ) . '/class-fs-debug-bar-panel.php';
39
+ $statuses[] = array(
40
+ 'fs_api_requests',
41
+ fs_text( 'Freemius API' ),
42
+ Freemius_Debug_Bar_Panel::requests_count() . ' ' . fs_text( 'Requests' ) .
43
+ ' (' . Freemius_Debug_Bar_Panel::total_time() . ')'
44
+ );
45
+ }
46
+ }
47
+
48
+ return $statuses;
49
+ }
50
+
51
+ add_filter( 'debug_bar_panels', 'fs_custom_panels_init' );
52
  add_filter( 'debug_bar_statuses', 'fs_custom_status_init' );
freemius/includes/debug/index.php CHANGED
@@ -1,3 +1,3 @@
1
- <?php
2
- // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
1
+ <?php
2
+ // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
freemius/includes/entities/class-fs-billing.php CHANGED
@@ -1,95 +1,95 @@
1
- <?php
2
- /**
3
- * @package Freemius for EDD Add-On
4
- * @copyright Copyright (c) 2016, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.0
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_Billing extends FS_Entity {
14
-
15
- #region Properties
16
-
17
- /**
18
- * @var int
19
- */
20
- public $entity_id;
21
- /**
22
- * @var string (Enum) Linked entity type. One of: developer, plugin, user, install
23
- */
24
- public $entity_type;
25
- /**
26
- * @var string
27
- */
28
- public $business_name;
29
- /**
30
- * @var string
31
- */
32
- public $first;
33
- /**
34
- * @var string
35
- */
36
- public $last;
37
- /**
38
- * @var string
39
- */
40
- public $email;
41
- /**
42
- * @var string
43
- */
44
- public $phone;
45
- /**
46
- * @var string
47
- */
48
- public $website;
49
- /**
50
- * @var string Tax or VAT ID.
51
- */
52
- public $tax_id;
53
- /**
54
- * @var string
55
- */
56
- public $address_street;
57
- /**
58
- * @var string
59
- */
60
- public $address_apt;
61
- /**
62
- * @var string
63
- */
64
- public $address_city;
65
- /**
66
- * @var string
67
- */
68
- public $address_country;
69
- /**
70
- * @var string Two chars country code.
71
- */
72
- public $address_country_code;
73
- /**
74
- * @var string
75
- */
76
- public $address_state;
77
- /**
78
- * @var number Numeric ZIP code (cab be with leading zeros).
79
- */
80
- public $address_zip;
81
-
82
- #endregion Properties
83
-
84
-
85
- /**
86
- * @param object|bool $event
87
- */
88
- function __construct( $event = false ) {
89
- parent::__construct( $event );
90
- }
91
-
92
- static function get_type() {
93
- return 'billing';
94
- }
95
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius for EDD Add-On
4
+ * @copyright Copyright (c) 2016, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.0
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_Billing extends FS_Entity {
14
+
15
+ #region Properties
16
+
17
+ /**
18
+ * @var int
19
+ */
20
+ public $entity_id;
21
+ /**
22
+ * @var string (Enum) Linked entity type. One of: developer, plugin, user, install
23
+ */
24
+ public $entity_type;
25
+ /**
26
+ * @var string
27
+ */
28
+ public $business_name;
29
+ /**
30
+ * @var string
31
+ */
32
+ public $first;
33
+ /**
34
+ * @var string
35
+ */
36
+ public $last;
37
+ /**
38
+ * @var string
39
+ */
40
+ public $email;
41
+ /**
42
+ * @var string
43
+ */
44
+ public $phone;
45
+ /**
46
+ * @var string
47
+ */
48
+ public $website;
49
+ /**
50
+ * @var string Tax or VAT ID.
51
+ */
52
+ public $tax_id;
53
+ /**
54
+ * @var string
55
+ */
56
+ public $address_street;
57
+ /**
58
+ * @var string
59
+ */
60
+ public $address_apt;
61
+ /**
62
+ * @var string
63
+ */
64
+ public $address_city;
65
+ /**
66
+ * @var string
67
+ */
68
+ public $address_country;
69
+ /**
70
+ * @var string Two chars country code.
71
+ */
72
+ public $address_country_code;
73
+ /**
74
+ * @var string
75
+ */
76
+ public $address_state;
77
+ /**
78
+ * @var number Numeric ZIP code (cab be with leading zeros).
79
+ */
80
+ public $address_zip;
81
+
82
+ #endregion Properties
83
+
84
+
85
+ /**
86
+ * @param object|bool $event
87
+ */
88
+ function __construct( $event = false ) {
89
+ parent::__construct( $event );
90
+ }
91
+
92
+ static function get_type() {
93
+ return 'billing';
94
+ }
95
  }
freemius/includes/entities/class-fs-entity.php CHANGED
@@ -1,149 +1,149 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.3
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- /**
14
- * Get object's public variables.
15
- *
16
- * @author Vova Feldman (@svovaf)
17
- * @since 1.0.0
18
- *
19
- * @param object $object
20
- *
21
- * @return array
22
- */
23
- function fs_get_object_public_vars( $object ) {
24
- return get_object_vars( $object );
25
- }
26
-
27
- class FS_Entity {
28
- /**
29
- * @var number
30
- */
31
- public $id;
32
- /**
33
- * @var string Datetime value in 'YYYY-MM-DD HH:MM:SS' format.
34
- */
35
- public $updated;
36
- /**
37
- * @var string Datetime value in 'YYYY-MM-DD HH:MM:SS' format.
38
- */
39
- public $created;
40
-
41
- /**
42
- * @param bool|object $entity
43
- */
44
- function __construct( $entity = false ) {
45
- if ( ! ( $entity instanceof stdClass ) ) {
46
- return;
47
- }
48
-
49
- $props = fs_get_object_public_vars( $this );
50
-
51
- foreach ( $props as $key => $def_value ) {
52
- $this->{$key} = isset( $entity->{$key} ) ?
53
- $entity->{$key} :
54
- $def_value;
55
- }
56
- }
57
-
58
- static function get_type() {
59
- return 'type';
60
- }
61
-
62
- /**
63
- * @author Vova Feldman (@svovaf)
64
- * @since 1.0.6
65
- *
66
- * @param FS_Entity $entity1
67
- * @param FS_Entity $entity2
68
- *
69
- * @return bool
70
- */
71
- static function equals( $entity1, $entity2 ) {
72
- if ( is_null( $entity1 ) && is_null( $entity2 ) ) {
73
- return true;
74
- } else if ( is_object( $entity1 ) && is_object( $entity2 ) ) {
75
- return ( $entity1->id == $entity2->id );
76
- } else if ( is_object( $entity1 ) ) {
77
- return is_null( $entity1->id );
78
- } else {
79
- return is_null( $entity2->id );
80
- }
81
- }
82
-
83
- private $_is_updated = false;
84
-
85
- /**
86
- * Update object property.
87
- *
88
- * @author Vova Feldman (@svovaf)
89
- * @since 1.0.9
90
- *
91
- * @param string|array[string]mixed $key
92
- * @param string|bool $val
93
- *
94
- * @return bool
95
- */
96
- function update( $key, $val = false ) {
97
- if ( ! is_array( $key ) ) {
98
- $key = array( $key => $val );
99
- }
100
-
101
- $is_updated = false;
102
-
103
- foreach ( $key as $k => $v ) {
104
- if ( $this->{$k} === $v ) {
105
- continue;
106
- }
107
-
108
- if ( ( is_string( $this->{$k} ) && is_numeric( $v ) ||
109
- ( is_numeric( $this->{$k} ) && is_string( $v ) ) ) &&
110
- $this->{$k} == $v
111
- ) {
112
- continue;
113
- }
114
-
115
- // Update value.
116
- $this->{$k} = $v;
117
-
118
- $is_updated = true;
119
- }
120
-
121
- $this->_is_updated = $is_updated;
122
-
123
- return $is_updated;
124
- }
125
-
126
- /**
127
- * Checks if entity was updated.
128
- *
129
- * @author Vova Feldman (@svovaf)
130
- * @since 1.0.9
131
- *
132
- * @return bool
133
- */
134
- function is_updated() {
135
- return $this->_is_updated;
136
- }
137
-
138
- /**
139
- * @param $id
140
- *
141
- * @author Vova Feldman (@svovaf)
142
- * @since 1.1.2
143
- *
144
- * @return bool
145
- */
146
- static function is_valid_id($id){
147
- return is_numeric($id);
148
- }
149
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.3
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ /**
14
+ * Get object's public variables.
15
+ *
16
+ * @author Vova Feldman (@svovaf)
17
+ * @since 1.0.0
18
+ *
19
+ * @param object $object
20
+ *
21
+ * @return array
22
+ */
23
+ function fs_get_object_public_vars( $object ) {
24
+ return get_object_vars( $object );
25
+ }
26
+
27
+ class FS_Entity {
28
+ /**
29
+ * @var number
30
+ */
31
+ public $id;
32
+ /**
33
+ * @var string Datetime value in 'YYYY-MM-DD HH:MM:SS' format.
34
+ */
35
+ public $updated;
36
+ /**
37
+ * @var string Datetime value in 'YYYY-MM-DD HH:MM:SS' format.
38
+ */
39
+ public $created;
40
+
41
+ /**
42
+ * @param bool|object $entity
43
+ */
44
+ function __construct( $entity = false ) {
45
+ if ( ! ( $entity instanceof stdClass ) ) {
46
+ return;
47
+ }
48
+
49
+ $props = fs_get_object_public_vars( $this );
50
+
51
+ foreach ( $props as $key => $def_value ) {
52
+ $this->{$key} = isset( $entity->{$key} ) ?
53
+ $entity->{$key} :
54
+ $def_value;
55
+ }
56
+ }
57
+
58
+ static function get_type() {
59
+ return 'type';
60
+ }
61
+
62
+ /**
63
+ * @author Vova Feldman (@svovaf)
64
+ * @since 1.0.6
65
+ *
66
+ * @param FS_Entity $entity1
67
+ * @param FS_Entity $entity2
68
+ *
69
+ * @return bool
70
+ */
71
+ static function equals( $entity1, $entity2 ) {
72
+ if ( is_null( $entity1 ) && is_null( $entity2 ) ) {
73
+ return true;
74
+ } else if ( is_object( $entity1 ) && is_object( $entity2 ) ) {
75
+ return ( $entity1->id == $entity2->id );
76
+ } else if ( is_object( $entity1 ) ) {
77
+ return is_null( $entity1->id );
78
+ } else {
79
+ return is_null( $entity2->id );
80
+ }
81
+ }
82
+
83
+ private $_is_updated = false;
84
+
85
+ /**
86
+ * Update object property.
87
+ *
88
+ * @author Vova Feldman (@svovaf)
89
+ * @since 1.0.9
90
+ *
91
+ * @param string|array[string]mixed $key
92
+ * @param string|bool $val
93
+ *
94
+ * @return bool
95
+ */
96
+ function update( $key, $val = false ) {
97
+ if ( ! is_array( $key ) ) {
98
+ $key = array( $key => $val );
99
+ }
100
+
101
+ $is_updated = false;
102
+
103
+ foreach ( $key as $k => $v ) {
104
+ if ( $this->{$k} === $v ) {
105
+ continue;
106
+ }
107
+
108
+ if ( ( is_string( $this->{$k} ) && is_numeric( $v ) ||
109
+ ( is_numeric( $this->{$k} ) && is_string( $v ) ) ) &&
110
+ $this->{$k} == $v
111
+ ) {
112
+ continue;
113
+ }
114
+
115
+ // Update value.
116
+ $this->{$k} = $v;
117
+
118
+ $is_updated = true;
119
+ }
120
+
121
+ $this->_is_updated = $is_updated;
122
+
123
+ return $is_updated;
124
+ }
125
+
126
+ /**
127
+ * Checks if entity was updated.
128
+ *
129
+ * @author Vova Feldman (@svovaf)
130
+ * @since 1.0.9
131
+ *
132
+ * @return bool
133
+ */
134
+ function is_updated() {
135
+ return $this->_is_updated;
136
+ }
137
+
138
+ /**
139
+ * @param $id
140
+ *
141
+ * @author Vova Feldman (@svovaf)
142
+ * @since 1.1.2
143
+ *
144
+ * @return bool
145
+ */
146
+ static function is_valid_id($id){
147
+ return is_numeric($id);
148
+ }
149
  }
freemius/includes/entities/class-fs-payment.php CHANGED
@@ -1,94 +1,94 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2016, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.0
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_Payment extends FS_Entity {
14
-
15
- #region Properties
16
-
17
- /**
18
- * @var number
19
- */
20
- public $plugin_id;
21
- /**
22
- * @var number
23
- */
24
- public $user_id;
25
- /**
26
- * @var number
27
- */
28
- public $install_id;
29
- /**
30
- * @var number
31
- */
32
- public $subscription_id;
33
- /**
34
- * @var number
35
- */
36
- public $plan_id;
37
- /**
38
- * @var number
39
- */
40
- public $license_id;
41
- /**
42
- * @var float
43
- */
44
- public $gross;
45
- /**
46
- * @var number
47
- */
48
- public $bound_payment_id;
49
- /**
50
- * @var string
51
- */
52
- public $external_id;
53
- /**
54
- * @var string
55
- */
56
- public $gateway;
57
- /**
58
- * @var string ISO 3166-1 alpha-2 - two-letter country code.
59
- *
60
- * @link http://www.wikiwand.com/en/ISO_3166-1_alpha-2
61
- */
62
- public $country_code;
63
- /**
64
- * @var string
65
- */
66
- public $vat_id;
67
- /**
68
- * @var float Actual Tax / VAT in $$$
69
- */
70
- public $vat;
71
-
72
- #endregion Properties
73
-
74
- /**
75
- * @param object|bool $payment
76
- */
77
- function __construct( $payment = false ) {
78
- parent::__construct( $payment );
79
- }
80
-
81
- static function get_type() {
82
- return 'payment';
83
- }
84
-
85
- /**
86
- * @author Vova Feldman (@svovaf)
87
- * @since 1.0.0
88
- *
89
- * @return bool
90
- */
91
- function is_refund() {
92
- return ( parent::is_valid_id( $this->bound_payment_id ) && 0 > $this->gross );
93
- }
94
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2016, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.0
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_Payment extends FS_Entity {
14
+
15
+ #region Properties
16
+
17
+ /**
18
+ * @var number
19
+ */
20
+ public $plugin_id;
21
+ /**
22
+ * @var number
23
+ */
24
+ public $user_id;
25
+ /**
26
+ * @var number
27
+ */
28
+ public $install_id;
29
+ /**
30
+ * @var number
31
+ */
32
+ public $subscription_id;
33
+ /**
34
+ * @var number
35
+ */
36
+ public $plan_id;
37
+ /**
38
+ * @var number
39
+ */
40
+ public $license_id;
41
+ /**
42
+ * @var float
43
+ */
44
+ public $gross;
45
+ /**
46
+ * @var number
47
+ */
48
+ public $bound_payment_id;
49
+ /**
50
+ * @var string
51
+ */
52
+ public $external_id;
53
+ /**
54
+ * @var string
55
+ */
56
+ public $gateway;
57
+ /**
58
+ * @var string ISO 3166-1 alpha-2 - two-letter country code.
59
+ *
60
+ * @link http://www.wikiwand.com/en/ISO_3166-1_alpha-2
61
+ */
62
+ public $country_code;
63
+ /**
64
+ * @var string
65
+ */
66
+ public $vat_id;
67
+ /**
68
+ * @var float Actual Tax / VAT in $$$
69
+ */
70
+ public $vat;
71
+
72
+ #endregion Properties
73
+
74
+ /**
75
+ * @param object|bool $payment
76
+ */
77
+ function __construct( $payment = false ) {
78
+ parent::__construct( $payment );
79
+ }
80
+
81
+ static function get_type() {
82
+ return 'payment';
83
+ }
84
+
85
+ /**
86
+ * @author Vova Feldman (@svovaf)
87
+ * @since 1.0.0
88
+ *
89
+ * @return bool
90
+ */
91
+ function is_refund() {
92
+ return ( parent::is_valid_id( $this->bound_payment_id ) && 0 > $this->gross );
93
+ }
94
  }
freemius/includes/entities/class-fs-plugin-info.php CHANGED
@@ -1,34 +1,34 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.3
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_Plugin_Info extends FS_Entity {
14
- public $plugin_id;
15
- public $description;
16
- public $short_description;
17
- public $banner_url;
18
- public $card_banner_url;
19
- public $selling_point_0;
20
- public $selling_point_1;
21
- public $selling_point_2;
22
- public $screenshots;
23
-
24
- /**
25
- * @param stdClass|bool $plugin_info
26
- */
27
- function __construct( $plugin_info = false ) {
28
- parent::__construct( $plugin_info );
29
- }
30
-
31
- static function get_type() {
32
- return 'plugin';
33
- }
34
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.3
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_Plugin_Info extends FS_Entity {
14
+ public $plugin_id;
15
+ public $description;
16
+ public $short_description;
17
+ public $banner_url;
18
+ public $card_banner_url;
19
+ public $selling_point_0;
20
+ public $selling_point_1;
21
+ public $selling_point_2;
22
+ public $screenshots;
23
+
24
+ /**
25
+ * @param stdClass|bool $plugin_info
26
+ */
27
+ function __construct( $plugin_info = false ) {
28
+ parent::__construct( $plugin_info );
29
+ }
30
+
31
+ static function get_type() {
32
+ return 'plugin';
33
+ }
34
  }
freemius/includes/entities/class-fs-plugin-license.php CHANGED
@@ -1,224 +1,224 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.5
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- /**
14
- * Class FS_Plugin_License
15
- */
16
- class FS_Plugin_License extends FS_Entity {
17
-
18
- #region Properties
19
-
20
- /**
21
- * @var number
22
- */
23
- public $plugin_id;
24
- /**
25
- * @var number
26
- */
27
- public $user_id;
28
- /**
29
- * @var number
30
- */
31
- public $plan_id;
32
- /**
33
- * @var number
34
- */
35
- public $pricing_id;
36
- /**
37
- * @var int|null
38
- */
39
- public $quota;
40
- /**
41
- * @var int
42
- */
43
- public $activated;
44
- /**
45
- * @var int
46
- */
47
- public $activated_local;
48
- /**
49
- * @var string
50
- */
51
- public $expiration;
52
- /**
53
- * @var string
54
- */
55
- public $secret_key;
56
- /**
57
- * @var bool $is_free_localhost Defaults to true. If true, allow unlimited localhost installs with the same
58
- * license.
59
- */
60
- public $is_free_localhost;
61
- /**
62
- * @var bool $is_block_features Defaults to true. If false, don't block features after license expiry - only
63
- * block updates and support.
64
- */
65
- public $is_block_features;
66
- /**
67
- * @var bool
68
- */
69
- public $is_cancelled;
70
-
71
- #endregion Properties
72
-
73
- /**
74
- * @param stdClass|bool $license
75
- */
76
- function __construct( $license = false ) {
77
- parent::__construct( $license );
78
- }
79
-
80
- /**
81
- * Get entity type.
82
- *
83
- * @return string
84
- */
85
- static function get_type() {
86
- return 'license';
87
- }
88
-
89
- /**
90
- * Check how many site activations left.
91
- *
92
- * @author Vova Feldman (@svovaf)
93
- * @since 1.0.5
94
- *
95
- * @return int
96
- */
97
- function left() {
98
- if ( ! $this->is_active() || $this->is_expired() ) {
99
- return 0;
100
- }
101
-
102
- if ( $this->is_unlimited() ) {
103
- return 999;
104
- }
105
-
106
- return ( $this->quota - $this->activated - ( $this->is_free_localhost ? 0 : $this->activated_local ) );
107
- }
108
-
109
- /**
110
- * Check if single site license.
111
- *
112
- * @author Vova Feldman (@svovaf)
113
- * @since 1.1.8.1
114
- *
115
- * @return bool
116
- */
117
- function is_single_site() {
118
- return ( is_numeric( $this->quota ) && 1 == $this->quota );
119
- }
120
-
121
- /**
122
- * @author Vova Feldman (@svovaf)
123
- * @since 1.0.5
124
- *
125
- * @return bool
126
- */
127
- function is_expired() {
128
- return ! $this->is_lifetime() && ( strtotime( $this->expiration ) < WP_FS__SCRIPT_START_TIME );
129
- }
130
-
131
- /**
132
- * Check if license is not expired.
133
- *
134
- * @author Vova Feldman (@svovaf)
135
- * @since 1.2.1
136
- *
137
- * @return bool
138
- */
139
- function is_valid() {
140
- return ! $this->is_expired();
141
- }
142
-
143
- /**
144
- * @author Vova Feldman (@svovaf)
145
- * @since 1.0.6
146
- *
147
- * @return bool
148
- */
149
- function is_lifetime() {
150
- return is_null( $this->expiration );
151
- }
152
-
153
- /**
154
- * @author Vova Feldman (@svovaf)
155
- * @since 1.2.0
156
- *
157
- * @return bool
158
- */
159
- function is_unlimited() {
160
- return is_null( $this->quota );
161
- }
162
-
163
- /**
164
- * Check if license is fully utilized.
165
- *
166
- * @author Vova Feldman (@svovaf)
167
- * @since 1.0.6
168
- *
169
- * @param bool $is_localhost
170
- *
171
- * @return bool
172
- */
173
- function is_utilized( $is_localhost = null ) {
174
- if ( is_null( $is_localhost ) ) {
175
- $is_localhost = WP_FS__IS_LOCALHOST_FOR_SERVER;
176
- }
177
-
178
- if ( $this->is_unlimited() ) {
179
- return false;
180
- }
181
-
182
- return ! ( $this->is_free_localhost && $is_localhost ) &&
183
- ( $this->quota <= $this->activated + ( $this->is_free_localhost ? 0 : $this->activated_local ) );
184
- }
185
-
186
- /**
187
- * @author Vova Feldman (@svovaf)
188
- * @since 1.2.1
189
- *
190
- * @return bool
191
- */
192
- function is_active() {
193
- return ( ! $this->is_cancelled );
194
- }
195
-
196
- /**
197
- * Check if license's plan features are enabled.
198
- *
199
- * - Either if plan not expired
200
- * - If expired, based on the configuration to block features or not.
201
- *
202
- * @author Vova Feldman (@svovaf)
203
- * @since 1.0.6
204
- *
205
- * @return bool
206
- */
207
- function is_features_enabled() {
208
- return $this->is_active() && ( ! $this->is_block_features || ! $this->is_expired() );
209
- }
210
-
211
- /**
212
- * Subscription considered to be new without any payments
213
- * if the license expires in less than 24 hours
214
- * from the license creation.
215
- *
216
- * @author Vova Feldman (@svovaf)
217
- * @since 1.0.9
218
- *
219
- * @return bool
220
- */
221
- function is_first_payment_pending() {
222
- return ( WP_FS__TIME_24_HOURS_IN_SEC >= strtotime( $this->expiration ) - strtotime( $this->created ) );
223
- }
224
- }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.5
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ /**
14
+ * Class FS_Plugin_License
15
+ */
16
+ class FS_Plugin_License extends FS_Entity {
17
+
18
+ #region Properties
19
+
20
+ /**
21
+ * @var number
22
+ */
23
+ public $plugin_id;
24
+ /**
25
+ * @var number
26
+ */
27
+ public $user_id;
28
+ /**
29
+ * @var number
30
+ */
31
+ public $plan_id;
32
+ /**
33
+ * @var number
34
+ */
35
+ public $pricing_id;
36
+ /**
37
+ * @var int|null
38
+ */
39
+ public $quota;
40
+ /**
41
+ * @var int
42
+ */
43
+ public $activated;
44
+ /**
45
+ * @var int
46
+ */
47
+ public $activated_local;
48
+ /**
49
+ * @var string
50
+ */
51
+ public $expiration;
52
+ /**
53
+ * @var string
54
+ */
55
+ public $secret_key;
56
+ /**
57
+ * @var bool $is_free_localhost Defaults to true. If true, allow unlimited localhost installs with the same
58
+ * license.
59
+ */
60
+ public $is_free_localhost;
61
+ /**
62
+ * @var bool $is_block_features Defaults to true. If false, don't block features after license expiry - only
63
+ * block updates and support.
64
+ */
65
+ public $is_block_features;
66
+ /**
67
+ * @var bool
68
+ */
69
+ public $is_cancelled;
70
+
71
+ #endregion Properties
72
+
73
+ /**
74
+ * @param stdClass|bool $license
75
+ */
76
+ function __construct( $license = false ) {
77
+ parent::__construct( $license );
78
+ }
79
+
80
+ /**
81
+ * Get entity type.
82
+ *
83
+ * @return string
84
+ */
85
+ static function get_type() {
86
+ return 'license';
87
+ }
88
+
89
+ /**
90
+ * Check how many site activations left.
91
+ *
92
+ * @author Vova Feldman (@svovaf)
93
+ * @since 1.0.5
94
+ *
95
+ * @return int
96
+ */
97
+ function left() {
98
+ if ( ! $this->is_active() || $this->is_expired() ) {
99
+ return 0;
100
+ }
101
+
102
+ if ( $this->is_unlimited() ) {
103
+ return 999;
104
+ }
105
+
106
+ return ( $this->quota - $this->activated - ( $this->is_free_localhost ? 0 : $this->activated_local ) );
107
+ }
108
+
109
+ /**
110
+ * Check if single site license.
111
+ *
112
+ * @author Vova Feldman (@svovaf)
113
+ * @since 1.1.8.1
114
+ *
115
+ * @return bool
116
+ */
117
+ function is_single_site() {
118
+ return ( is_numeric( $this->quota ) && 1 == $this->quota );
119
+ }
120
+
121
+ /**
122
+ * @author Vova Feldman (@svovaf)
123
+ * @since 1.0.5
124
+ *
125
+ * @return bool
126
+ */
127
+ function is_expired() {
128
+ return ! $this->is_lifetime() && ( strtotime( $this->expiration ) < WP_FS__SCRIPT_START_TIME );
129
+ }
130
+
131
+ /**
132
+ * Check if license is not expired.
133
+ *
134
+ * @author Vova Feldman (@svovaf)
135
+ * @since 1.2.1
136
+ *
137
+ * @return bool
138
+ */
139
+ function is_valid() {
140
+ return ! $this->is_expired();
141
+ }
142
+
143
+ /**
144
+ * @author Vova Feldman (@svovaf)
145
+ * @since 1.0.6
146
+ *
147
+ * @return bool
148
+ */
149
+ function is_lifetime() {
150
+ return is_null( $this->expiration );
151
+ }
152
+
153
+ /**
154
+ * @author Vova Feldman (@svovaf)
155
+ * @since 1.2.0
156
+ *
157
+ * @return bool
158
+ */
159
+ function is_unlimited() {
160
+ return is_null( $this->quota );
161
+ }
162
+
163
+ /**
164
+ * Check if license is fully utilized.
165
+ *
166
+ * @author Vova Feldman (@svovaf)
167
+ * @since 1.0.6
168
+ *
169
+ * @param bool $is_localhost
170
+ *
171
+ * @return bool
172
+ */
173
+ function is_utilized( $is_localhost = null ) {
174
+ if ( is_null( $is_localhost ) ) {
175
+ $is_localhost = WP_FS__IS_LOCALHOST_FOR_SERVER;
176
+ }
177
+
178
+ if ( $this->is_unlimited() ) {
179
+ return false;
180
+ }
181
+
182
+ return ! ( $this->is_free_localhost && $is_localhost ) &&
183
+ ( $this->quota <= $this->activated + ( $this->is_free_localhost ? 0 : $this->activated_local ) );
184
+ }
185
+
186
+ /**
187
+ * @author Vova Feldman (@svovaf)
188
+ * @since 1.2.1
189
+ *
190
+ * @return bool
191
+ */
192
+ function is_active() {
193
+ return ( ! $this->is_cancelled );
194
+ }
195
+
196
+ /**
197
+ * Check if license's plan features are enabled.
198
+ *
199
+ * - Either if plan not expired
200
+ * - If expired, based on the configuration to block features or not.
201
+ *
202
+ * @author Vova Feldman (@svovaf)
203
+ * @since 1.0.6
204
+ *
205
+ * @return bool
206
+ */
207
+ function is_features_enabled() {
208
+ return $this->is_active() && ( ! $this->is_block_features || ! $this->is_expired() );
209
+ }
210
+
211
+ /**
212
+ * Subscription considered to be new without any payments
213
+ * if the license expires in less than 24 hours
214
+ * from the license creation.
215
+ *
216
+ * @author Vova Feldman (@svovaf)
217
+ * @since 1.0.9
218
+ *
219
+ * @return bool
220
+ */
221
+ function is_first_payment_pending() {
222
+ return ( WP_FS__TIME_24_HOURS_IN_SEC >= strtotime( $this->expiration ) - strtotime( $this->created ) );
223
+ }
224
+ }
freemius/includes/entities/class-fs-plugin-plan.php CHANGED
@@ -1,145 +1,145 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.5
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- /**
14
- * Class FS_Plugin_Plan
15
- *
16
- * @property FS_Pricing[] $pricing
17
- */
18
- class FS_Plugin_Plan extends FS_Entity {
19
-
20
- #region Properties
21
-
22
- /**
23
- * @var number
24
- */
25
- public $plugin_id;
26
- /**
27
- * @var string
28
- */
29
- public $name;
30
- /**
31
- * @var string
32
- */
33
- public $title;
34
- /**
35
- * @var string
36
- */
37
- public $description;
38
- /**
39
- * @var bool Defaults to true. If true, allow unlimited localhost installs with the same license.
40
- */
41
- public $is_free_localhost;
42
- /**
43
- * @var bool Defaults to true. If false, don't block features after license expiry - only block updates and
44
- * support.
45
- */
46
- public $is_block_features;
47
- /**
48
- * @var int
49
- */
50
- public $license_type;
51
- /**
52
- * @var bool
53
- */
54
- public $is_https_support;
55
- /**
56
- * @var int Trial days.
57
- */
58
- public $trial_period;
59
- /**
60
- * @var string If true, require payment for trial.
61
- */
62
- public $is_require_subscription;
63
- /**
64
- * @var string Knowledge Base URL.
65
- */
66
- public $support_kb;
67
- /**
68
- * @var string Support Forum URL.
69
- */
70
- public $support_forum;
71
- /**
72
- * @var string Support email address.
73
- */
74
- public $support_email;
75
- /**
76
- * @var string Support phone.
77
- */
78
- public $support_phone;
79
- /**
80
- * @var string Support skype username.
81
- */
82
- public $support_skype;
83
- /**
84
- * @var bool Is personal success manager supported with the plan.
85
- */
86
- public $is_success_manager;
87
- /**
88
- * @var bool Is featured plan.
89
- */
90
- public $is_featured;
91
-
92
- #endregion Properties
93
-
94
- /**
95
- * @param object|bool $plan
96
- */
97
- function __construct( $plan = false ) {
98
- parent::__construct( $plan );
99
-
100
- if ( is_object( $plan ) ) {
101
- $this->name = strtolower( $plan->name );
102
- }
103
- }
104
-
105
- static function get_type() {
106
- return 'plan';
107
- }
108
-
109
- /**
110
- * @author Vova Feldman (@svovaf)
111
- * @since 1.0.9
112
- *
113
- * @return bool
114
- */
115
- function is_free() {
116
- return ( 'free' === $this->name );
117
- }
118
-
119
- /**
120
- * Checks if this plan supports "Technical Support".
121
- *
122
- * @author Leo Fajardo (leorw)
123
- * @since 1.2.0
124
- *
125
- * @return bool
126
- */
127
- function has_technical_support() {
128
- return ( ! empty( $this->support_email ) ||
129
- ! empty( $this->support_skype ) ||
130
- ! empty( $this->support_phone ) ||
131
- ! empty( $this->is_success_manager )
132
- );
133
- }
134
-
135
- /**
136
- * @author Vova Feldman (@svovaf)
137
- * @since 1.0.9
138
- *
139
- * @return bool
140
- */
141
- function has_trial() {
142
- return ! $this->is_free() &&
143
- is_numeric( $this->trial_period ) && ( $this->trial_period > 0 );
144
- }
145
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.5
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ /**
14
+ * Class FS_Plugin_Plan
15
+ *
16
+ * @property FS_Pricing[] $pricing
17
+ */
18
+ class FS_Plugin_Plan extends FS_Entity {
19
+
20
+ #region Properties
21
+
22
+ /**
23
+ * @var number
24
+ */
25
+ public $plugin_id;
26
+ /**
27
+ * @var string
28
+ */
29
+ public $name;
30
+ /**
31
+ * @var string
32
+ */
33
+ public $title;
34
+ /**
35
+ * @var string
36
+ */
37
+ public $description;
38
+ /**
39
+ * @var bool Defaults to true. If true, allow unlimited localhost installs with the same license.
40
+ */
41
+ public $is_free_localhost;
42
+ /**
43
+ * @var bool Defaults to true. If false, don't block features after license expiry - only block updates and
44
+ * support.
45
+ */
46
+ public $is_block_features;
47
+ /**
48
+ * @var int
49
+ */
50
+ public $license_type;
51
+ /**
52
+ * @var bool
53
+ */
54
+ public $is_https_support;
55
+ /**
56
+ * @var int Trial days.
57
+ */
58
+ public $trial_period;
59
+ /**
60
+ * @var string If true, require payment for trial.
61
+ */
62
+ public $is_require_subscription;
63
+ /**
64
+ * @var string Knowledge Base URL.
65
+ */
66
+ public $support_kb;
67
+ /**
68
+ * @var string Support Forum URL.
69
+ */
70
+ public $support_forum;
71
+ /**
72
+ * @var string Support email address.
73
+ */
74
+ public $support_email;
75
+ /**
76
+ * @var string Support phone.
77
+ */
78
+ public $support_phone;
79
+ /**
80
+ * @var string Support skype username.
81
+ */
82
+ public $support_skype;
83
+ /**
84
+ * @var bool Is personal success manager supported with the plan.
85
+ */
86
+ public $is_success_manager;
87
+ /**
88
+ * @var bool Is featured plan.
89
+ */
90
+ public $is_featured;
91
+
92
+ #endregion Properties
93
+
94
+ /**
95
+ * @param object|bool $plan
96
+ */
97
+ function __construct( $plan = false ) {
98
+ parent::__construct( $plan );
99
+
100
+ if ( is_object( $plan ) ) {
101
+ $this->name = strtolower( $plan->name );
102
+ }
103
+ }
104
+
105
+ static function get_type() {
106
+ return 'plan';
107
+ }
108
+
109
+ /**
110
+ * @author Vova Feldman (@svovaf)
111
+ * @since 1.0.9
112
+ *
113
+ * @return bool
114
+ */
115
+ function is_free() {
116
+ return ( 'free' === $this->name );
117
+ }
118
+
119
+ /**
120
+ * Checks if this plan supports "Technical Support".
121
+ *
122
+ * @author Leo Fajardo (leorw)
123
+ * @since 1.2.0
124
+ *
125
+ * @return bool
126
+ */
127
+ function has_technical_support() {
128
+ return ( ! empty( $this->support_email ) ||
129
+ ! empty( $this->support_skype ) ||
130
+ ! empty( $this->support_phone ) ||
131
+ ! empty( $this->is_success_manager )
132
+ );
133
+ }
134
+
135
+ /**
136
+ * @author Vova Feldman (@svovaf)
137
+ * @since 1.0.9
138
+ *
139
+ * @return bool
140
+ */
141
+ function has_trial() {
142
+ return ! $this->is_free() &&
143
+ is_numeric( $this->trial_period ) && ( $this->trial_period > 0 );
144
+ }
145
  }
freemius/includes/entities/class-fs-plugin-tag.php CHANGED
@@ -1,24 +1,24 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.4
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_Plugin_Tag extends FS_Entity {
14
- public $version;
15
- public $url;
16
-
17
- function __construct( $tag = false ) {
18
- parent::__construct( $tag );
19
- }
20
-
21
- static function get_type() {
22
- return 'tag';
23
- }
24
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.4
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_Plugin_Tag extends FS_Entity {
14
+ public $version;
15
+ public $url;
16
+
17
+ function __construct( $tag = false ) {
18
+ parent::__construct( $tag );
19
+ }
20
+
21
+ static function get_type() {
22
+ return 'tag';
23
+ }
24
  }
freemius/includes/entities/class-fs-plugin.php CHANGED
@@ -1,96 +1,96 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.3
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_Plugin extends FS_Scope_Entity {
14
- /**
15
- * @since 1.0.6
16
- * @var null|number
17
- */
18
- public $parent_plugin_id;
19
- /**
20
- * @var string
21
- */
22
- public $title;
23
- /**
24
- * @var string
25
- */
26
- public $slug;
27
- /**
28
- * @since 1.2.2
29
- *
30
- * @var string 'plugin' or 'theme'
31
- */
32
- public $type;
33
-
34
- #region Install Specific Properties
35
-
36
- /**
37
- * @var string
38
- */
39
- public $file;
40
- /**
41
- * @var string
42
- */
43
- public $version;
44
- /**
45
- * @var bool
46
- */
47
- public $auto_update;
48
- /**
49
- * @var FS_Plugin_Info
50
- */
51
- public $info;
52
- /**
53
- * @since 1.0.9
54
- *
55
- * @var bool
56
- */
57
- public $is_premium;
58
- /**
59
- * @since 1.0.9
60
- *
61
- * @var bool
62
- */
63
- public $is_live;
64
-
65
- #endregion Install Specific Properties
66
-
67
- /**
68
- * @param stdClass|bool $plugin
69
- */
70
- function __construct( $plugin = false ) {
71
- parent::__construct( $plugin );
72
-
73
- $this->is_premium = false;
74
- $this->is_live = true;
75
-
76
- if ( isset( $plugin->info ) && is_object( $plugin->info ) ) {
77
- $this->info = new FS_Plugin_Info( $plugin->info );
78
- }
79
- }
80
-
81
- /**
82
- * Check if plugin is an add-on (has parent).
83
- *
84
- * @author Vova Feldman (@svovaf)
85
- * @since 1.0.6
86
- *
87
- * @return bool
88
- */
89
- function is_addon() {
90
- return isset( $this->parent_plugin_id ) && is_numeric( $this->parent_plugin_id );
91
- }
92
-
93
- static function get_type() {
94
- return 'plugin';
95
- }
96
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.3
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_Plugin extends FS_Scope_Entity {
14
+ /**
15
+ * @since 1.0.6
16
+ * @var null|number
17
+ */
18
+ public $parent_plugin_id;
19
+ /**
20
+ * @var string
21
+ */
22
+ public $title;
23
+ /**
24
+ * @var string
25
+ */
26
+ public $slug;
27
+ /**
28
+ * @since 1.2.2
29
+ *
30
+ * @var string 'plugin' or 'theme'
31
+ */
32
+ public $type;
33
+
34
+ #region Install Specific Properties
35
+
36
+ /**
37
+ * @var string
38
+ */
39
+ public $file;
40
+ /**
41
+ * @var string
42
+ */
43
+ public $version;
44
+ /**
45
+ * @var bool
46
+ */
47
+ public $auto_update;
48
+ /**
49
+ * @var FS_Plugin_Info
50
+ */
51
+ public $info;
52
+ /**
53
+ * @since 1.0.9
54
+ *
55
+ * @var bool
56
+ */
57
+ public $is_premium;
58
+ /**
59
+ * @since 1.0.9
60
+ *
61
+ * @var bool
62
+ */
63
+ public $is_live;
64
+
65
+ #endregion Install Specific Properties
66
+
67
+ /**
68
+ * @param stdClass|bool $plugin
69
+ */
70
+ function __construct( $plugin = false ) {
71
+ parent::__construct( $plugin );
72
+
73
+ $this->is_premium = false;
74
+ $this->is_live = true;
75
+
76
+ if ( isset( $plugin->info ) && is_object( $plugin->info ) ) {
77
+ $this->info = new FS_Plugin_Info( $plugin->info );
78
+ }
79
+ }
80
+
81
+ /**
82
+ * Check if plugin is an add-on (has parent).
83
+ *
84
+ * @author Vova Feldman (@svovaf)
85
+ * @since 1.0.6
86
+ *
87
+ * @return bool
88
+ */
89
+ function is_addon() {
90
+ return isset( $this->parent_plugin_id ) && is_numeric( $this->parent_plugin_id );
91
+ }
92
+
93
+ static function get_type() {
94
+ return 'plugin';
95
+ }
96
  }
freemius/includes/entities/class-fs-pricing.php CHANGED
@@ -1,141 +1,141 @@
1
- <?php
2
- /**
3
- * @package Freemius for EDD Add-On
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.0
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_Pricing extends FS_Entity {
14
-
15
- #region Properties
16
-
17
- /**
18
- * @var number
19
- */
20
- public $plan_id;
21
- /**
22
- * @var int
23
- */
24
- public $licenses;
25
- /**
26
- * @var null|float
27
- */
28
- public $monthly_price;
29
- /**
30
- * @var null|float
31
- */
32
- public $annual_price;
33
- /**
34
- * @var null|float
35
- */
36
- public $lifetime_price;
37
-
38
- #endregion Properties
39
-
40
- /**
41
- * @param object|bool $pricing
42
- */
43
- function __construct( $pricing = false ) {
44
- parent::__construct( $pricing );
45
- }
46
-
47
- static function get_type() {
48
- return 'pricing';
49
- }
50
-
51
- /**
52
- * @author Vova Feldman (@svovaf)
53
- * @since 1.1.8
54
- *
55
- * @return bool
56
- */
57
- function has_monthly() {
58
- return ( is_numeric( $this->monthly_price ) && $this->monthly_price > 0 );
59
- }
60
-
61
- /**
62
- * @author Vova Feldman (@svovaf)
63
- * @since 1.1.8
64
- *
65
- * @return bool
66
- */
67
- function has_annual() {
68
- return ( is_numeric( $this->annual_price ) && $this->annual_price > 0 );
69
- }
70
-
71
- /**
72
- * @author Vova Feldman (@svovaf)
73
- * @since 1.1.8
74
- *
75
- * @return bool
76
- */
77
- function has_lifetime() {
78
- return ( is_numeric( $this->lifetime_price ) && $this->lifetime_price > 0 );
79
- }
80
-
81
- /**
82
- * Check if unlimited licenses pricing.
83
- *
84
- * @author Vova Feldman (@svovaf)
85
- * @since 1.1.8
86
- *
87
- * @return bool
88
- */
89
- function is_unlimited() {
90
- return is_null( $this->licenses );
91
- }
92
-
93
-
94
- /**
95
- * Check if pricing has more than one billing cycle.
96
- *
97
- * @author Vova Feldman (@svovaf)
98
- * @since 1.1.8
99
- *
100
- * @return bool
101
- */
102
- function is_multi_cycle() {
103
- $cycles = 0;
104
- if ( $this->has_monthly() ) {
105
- $cycles ++;
106
- }
107
- if ( $this->has_annual() ) {
108
- $cycles ++;
109
- }
110
- if ( $this->has_lifetime() ) {
111
- $cycles ++;
112
- }
113
-
114
- return $cycles > 1;
115
- }
116
-
117
- /**
118
- * Get annual over monthly discount.
119
- *
120
- * @author Vova Feldman (@svovaf)
121
- * @since 1.1.8
122
- *
123
- * @return int
124
- */
125
- function annual_discount_percentage() {
126
- return floor( $this->annual_savings() / ( $this->monthly_price * 12 * ( $this->is_unlimited() ? 1 : $this->licenses ) ) * 100 );
127
- }
128
-
129
- /**
130
- * Get annual over monthly savings.
131
- *
132
- * @author Vova Feldman (@svovaf)
133
- * @since 1.1.8
134
- *
135
- * @return float
136
- */
137
- function annual_savings() {
138
- return ( $this->monthly_price * 12 - $this->annual_price ) * ( $this->is_unlimited() ? 1 : $this->licenses );
139
- }
140
-
141
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius for EDD Add-On
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.0
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_Pricing extends FS_Entity {
14
+
15
+ #region Properties
16
+
17
+ /**
18
+ * @var number
19
+ */
20
+ public $plan_id;
21
+ /**
22
+ * @var int
23
+ */
24
+ public $licenses;
25
+ /**
26
+ * @var null|float
27
+ */
28
+ public $monthly_price;
29
+ /**
30
+ * @var null|float
31
+ */
32
+ public $annual_price;
33
+ /**
34
+ * @var null|float
35
+ */
36
+ public $lifetime_price;
37
+
38
+ #endregion Properties
39
+
40
+ /**
41
+ * @param object|bool $pricing
42
+ */
43
+ function __construct( $pricing = false ) {
44
+ parent::__construct( $pricing );
45
+ }
46
+
47
+ static function get_type() {
48
+ return 'pricing';
49
+ }
50
+
51
+ /**
52
+ * @author Vova Feldman (@svovaf)
53
+ * @since 1.1.8
54
+ *
55
+ * @return bool
56
+ */
57
+ function has_monthly() {
58
+ return ( is_numeric( $this->monthly_price ) && $this->monthly_price > 0 );
59
+ }
60
+
61
+ /**
62
+ * @author Vova Feldman (@svovaf)
63
+ * @since 1.1.8
64
+ *
65
+ * @return bool
66
+ */
67
+ function has_annual() {
68
+ return ( is_numeric( $this->annual_price ) && $this->annual_price > 0 );
69
+ }
70
+
71
+ /**
72
+ * @author Vova Feldman (@svovaf)
73
+ * @since 1.1.8
74
+ *
75
+ * @return bool
76
+ */
77
+ function has_lifetime() {
78
+ return ( is_numeric( $this->lifetime_price ) && $this->lifetime_price > 0 );
79
+ }
80
+
81
+ /**
82
+ * Check if unlimited licenses pricing.
83
+ *
84
+ * @author Vova Feldman (@svovaf)
85
+ * @since 1.1.8
86
+ *
87
+ * @return bool
88
+ */
89
+ function is_unlimited() {
90
+ return is_null( $this->licenses );
91
+ }
92
+
93
+
94
+ /**
95
+ * Check if pricing has more than one billing cycle.
96
+ *
97
+ * @author Vova Feldman (@svovaf)
98
+ * @since 1.1.8
99
+ *
100
+ * @return bool
101
+ */
102
+ function is_multi_cycle() {
103
+ $cycles = 0;
104
+ if ( $this->has_monthly() ) {
105
+ $cycles ++;
106
+ }
107
+ if ( $this->has_annual() ) {
108
+ $cycles ++;
109
+ }
110
+ if ( $this->has_lifetime() ) {
111
+ $cycles ++;
112
+ }
113
+
114
+ return $cycles > 1;
115
+ }
116
+
117
+ /**
118
+ * Get annual over monthly discount.
119
+ *
120
+ * @author Vova Feldman (@svovaf)
121
+ * @since 1.1.8
122
+ *
123
+ * @return int
124
+ */
125
+ function annual_discount_percentage() {
126
+ return floor( $this->annual_savings() / ( $this->monthly_price * 12 * ( $this->is_unlimited() ? 1 : $this->licenses ) ) * 100 );
127
+ }
128
+
129
+ /**
130
+ * Get annual over monthly savings.
131
+ *
132
+ * @author Vova Feldman (@svovaf)
133
+ * @since 1.1.8
134
+ *
135
+ * @return float
136
+ */
137
+ function annual_savings() {
138
+ return ( $this->monthly_price * 12 - $this->annual_price ) * ( $this->is_unlimited() ? 1 : $this->licenses );
139
+ }
140
+
141
  }
freemius/includes/entities/class-fs-scope-entity.php CHANGED
@@ -1,29 +1,29 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.4
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_Scope_Entity extends FS_Entity {
14
- /**
15
- * @var string
16
- */
17
- public $public_key;
18
- /**
19
- * @var string
20
- */
21
- public $secret_key;
22
-
23
- /**
24
- * @param bool|stdClass $scope_entity
25
- */
26
- function __construct( $scope_entity = false ) {
27
- parent::__construct( $scope_entity );
28
- }
29
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.4
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_Scope_Entity extends FS_Entity {
14
+ /**
15
+ * @var string
16
+ */
17
+ public $public_key;
18
+ /**
19
+ * @var string
20
+ */
21
+ public $secret_key;
22
+
23
+ /**
24
+ * @param bool|stdClass $scope_entity
25
+ */
26
+ function __construct( $scope_entity = false ) {
27
+ parent::__construct( $scope_entity );
28
+ }
29
  }
freemius/includes/entities/class-fs-site.php CHANGED
@@ -1,148 +1,148 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.3
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_Site extends FS_Scope_Entity {
14
- /**
15
- * @var string
16
- */
17
- public $slug;
18
- /**
19
- * @var number
20
- */
21
- public $site_id;
22
- /**
23
- * @var number
24
- */
25
- public $plugin_id;
26
- /**
27
- * @var number
28
- */
29
- public $user_id;
30
- /**
31
- * @var string
32
- */
33
- public $title;
34
- /**
35
- * @var string
36
- */
37
- public $url;
38
- /**
39
- * @var string
40
- */
41
- public $version;
42
- /**
43
- * @var string E.g. en-GB
44
- */
45
- public $language;
46
- /**
47
- * @var string E.g. UTF-8
48
- */
49
- public $charset;
50
- /**
51
- * @var string Platform version (e.g WordPress version).
52
- */
53
- public $platform_version;
54
- /**
55
- * Freemius SDK version
56
- *
57
- * @author Leo Fajardo (@leorw)
58
- * @since 1.2.2
59
- *
60
- * @var string SDK version (e.g.: 1.2.2)
61
- */
62
- public $sdk_version;
63
- /**
64
- * @var string Programming language version (e.g PHP version).
65
- */
66
- public $programming_language_version;
67
- /**
68
- * @var FS_Plugin_Plan $plan
69
- */
70
- public $plan;
71
- /**
72
- * @var number|null
73
- */
74
- public $license_id;
75
- /**
76
- * @var number|null
77
- */
78
- public $trial_plan_id;
79
- /**
80
- * @var string|null
81
- */
82
- public $trial_ends;
83
- /**
84
- * @since 1.0.9
85
- *
86
- * @var bool
87
- */
88
- public $is_premium = false;
89
- /**
90
- * @author Leo Fajardo (@leorw)
91
- *
92
- * @since 1.2.1.5
93
- *
94
- * @var bool
95
- */
96
- public $is_disconnected = false;
97
-
98
- /**
99
- * @param stdClass|bool $site
100
- */
101
- function __construct( $site = false ) {
102
- $this->plan = new FS_Plugin_Plan();
103
-
104
- parent::__construct( $site );
105
-
106
- if ( is_object( $site ) ) {
107
- $this->plan->id = $site->plan_id;
108
- }
109
-
110
- if ( ! is_bool( $this->is_disconnected ) ) {
111
- $this->is_disconnected = false;
112
- }
113
- }
114
-
115
- static function get_type() {
116
- return 'install';
117
- }
118
-
119
- function is_localhost() {
120
- // The server has no way to verify if localhost unless localhost appears in domain.
121
- return WP_FS__IS_LOCALHOST_FOR_SERVER;
122
- // return (substr($_SERVER['REMOTE_ADDR'], 0, 4) == '127.' || $_SERVER['REMOTE_ADDR'] == '::1');
123
- }
124
-
125
- /**
126
- * Check if site in trial.
127
- *
128
- * @author Vova Feldman (@svovaf)
129
- * @since 1.0.9
130
- *
131
- * @return bool
132
- */
133
- function is_trial() {
134
- return is_numeric( $this->trial_plan_id ) && ( strtotime( $this->trial_ends ) > WP_FS__SCRIPT_START_TIME );
135
- }
136
-
137
- /**
138
- * Check if user already utilized the trial with the current install.
139
- *
140
- * @author Vova Feldman (@svovaf)
141
- * @since 1.0.9
142
- *
143
- * @return bool
144
- */
145
- function is_trial_utilized() {
146
- return is_numeric( $this->trial_plan_id );
147
- }
148
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.3
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_Site extends FS_Scope_Entity {
14
+ /**
15
+ * @var string
16
+ */
17
+ public $slug;
18
+ /**
19
+ * @var number
20
+ */
21
+ public $site_id;
22
+ /**
23
+ * @var number
24
+ */
25
+ public $plugin_id;
26
+ /**
27
+ * @var number
28
+ */
29
+ public $user_id;
30
+ /**
31
+ * @var string
32
+ */
33
+ public $title;
34
+ /**
35
+ * @var string
36
+ */
37
+ public $url;
38
+ /**
39
+ * @var string
40
+ */
41
+ public $version;
42
+ /**
43
+ * @var string E.g. en-GB
44
+ */
45
+ public $language;
46
+ /**
47
+ * @var string E.g. UTF-8
48
+ */
49
+ public $charset;
50
+ /**
51
+ * @var string Platform version (e.g WordPress version).
52
+ */
53
+ public $platform_version;
54
+ /**
55
+ * Freemius SDK version
56
+ *
57
+ * @author Leo Fajardo (@leorw)
58
+ * @since 1.2.2
59
+ *
60
+ * @var string SDK version (e.g.: 1.2.2)
61
+ */
62
+ public $sdk_version;
63
+ /**
64
+ * @var string Programming language version (e.g PHP version).
65
+ */
66
+ public $programming_language_version;
67
+ /**
68
+ * @var FS_Plugin_Plan $plan
69
+ */
70
+ public $plan;
71
+ /**
72
+ * @var number|null
73
+ */
74
+ public $license_id;
75
+ /**
76
+ * @var number|null
77
+ */
78
+ public $trial_plan_id;
79
+ /**
80
+ * @var string|null
81
+ */
82
+ public $trial_ends;
83
+ /**
84
+ * @since 1.0.9
85
+ *
86
+ * @var bool
87
+ */
88
+ public $is_premium = false;
89
+ /**
90
+ * @author Leo Fajardo (@leorw)
91
+ *
92
+ * @since 1.2.1.5
93
+ *
94
+ * @var bool
95
+ */
96
+ public $is_disconnected = false;
97
+
98
+ /**
99
+ * @param stdClass|bool $site
100
+ */
101
+ function __construct( $site = false ) {
102
+ $this->plan = new FS_Plugin_Plan();
103
+
104
+ parent::__construct( $site );
105
+
106
+ if ( is_object( $site ) ) {
107
+ $this->plan->id = $site->plan_id;
108
+ }
109
+
110
+ if ( ! is_bool( $this->is_disconnected ) ) {
111
+ $this->is_disconnected = false;
112
+ }
113
+ }
114
+
115
+ static function get_type() {
116
+ return 'install';
117
+ }
118
+
119
+ function is_localhost() {
120
+ // The server has no way to verify if localhost unless localhost appears in domain.
121
+ return WP_FS__IS_LOCALHOST_FOR_SERVER;
122
+ // return (substr($_SERVER['REMOTE_ADDR'], 0, 4) == '127.' || $_SERVER['REMOTE_ADDR'] == '::1');
123
+ }
124
+
125
+ /**
126
+ * Check if site in trial.
127
+ *
128
+ * @author Vova Feldman (@svovaf)
129
+ * @since 1.0.9
130
+ *
131
+ * @return bool
132
+ */
133
+ function is_trial() {
134
+ return is_numeric( $this->trial_plan_id ) && ( strtotime( $this->trial_ends ) > WP_FS__SCRIPT_START_TIME );
135
+ }
136
+
137
+ /**
138
+ * Check if user already utilized the trial with the current install.
139
+ *
140
+ * @author Vova Feldman (@svovaf)
141
+ * @since 1.0.9
142
+ *
143
+ * @return bool
144
+ */
145
+ function is_trial_utilized() {
146
+ return is_numeric( $this->trial_plan_id );
147
+ }
148
  }
freemius/includes/entities/class-fs-subscription.php CHANGED
@@ -1,125 +1,125 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.9
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_Subscription extends FS_Entity {
14
-
15
- #region Properties
16
-
17
- /**
18
- * @var number
19
- */
20
- public $user_id;
21
- /**
22
- * @var number
23
- */
24
- public $install_id;
25
- /**
26
- * @var number
27
- */
28
- public $plan_id;
29
- /**
30
- * @var number
31
- */
32
- public $license_id;
33
- /**
34
- * @var float
35
- */
36
- public $total_gross;
37
- /**
38
- * @var float
39
- */
40
- public $amount_per_cycle;
41
- /**
42
- * @var int # of months
43
- */
44
- public $billing_cycle;
45
- /**
46
- * @var float
47
- */
48
- public $outstanding_balance;
49
- /**
50
- * @var int
51
- */
52
- public $failed_payments;
53
- /**
54
- * @var string
55
- */
56
- public $gateway;
57
- /**
58
- * @var string
59
- */
60
- public $external_id;
61
- /**
62
- * @var string|null
63
- */
64
- public $trial_ends;
65
- /**
66
- * @var string|null Datetime of the next payment, or null if cancelled
67
- */
68
- public $next_payment;
69
- /**
70
- * @var string|null
71
- */
72
- public $vat_id;
73
- /**
74
- * @var string Two characters country code
75
- */
76
- public $country_code;
77
-
78
- #endregion Properties
79
-
80
- /**
81
- * @param object|bool $subscription
82
- */
83
- function __construct( $subscription = false ) {
84
- parent::__construct( $subscription );
85
- }
86
-
87
- static function get_type() {
88
- return 'subscription';
89
- }
90
-
91
- /**
92
- * Check if subscription is active.
93
- *
94
- * @author Vova Feldman (@svovaf)
95
- * @since 1.0.9
96
- *
97
- * @return bool
98
- */
99
- function is_active() {
100
- return ! empty( $this->next_payment ) &&
101
- ( strtotime( $this->next_payment ) > WP_FS__SCRIPT_START_TIME );
102
- }
103
-
104
- /**
105
- * Subscription considered to be new without any payments
106
- * if the next payment should be made within less than 24 hours
107
- * from the subscription creation.
108
- *
109
- * @author Vova Feldman (@svovaf)
110
- * @since 1.0.9
111
- *
112
- * @return bool
113
- */
114
- function is_first_payment_pending() {
115
- return ( WP_FS__TIME_24_HOURS_IN_SEC >= strtotime( $this->next_payment ) - strtotime( $this->created ) );
116
- }
117
-
118
- /**
119
- * @author Vova Feldman (@svovaf)
120
- * @since 1.1.7
121
- */
122
- function has_trial() {
123
- return ! is_null( $this->trial_ends );
124
- }
125
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.9
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_Subscription extends FS_Entity {
14
+
15
+ #region Properties
16
+
17
+ /**
18
+ * @var number
19
+ */
20
+ public $user_id;
21
+ /**
22
+ * @var number
23
+ */
24
+ public $install_id;
25
+ /**
26
+ * @var number
27
+ */
28
+ public $plan_id;
29
+ /**
30
+ * @var number
31
+ */
32
+ public $license_id;
33
+ /**
34
+ * @var float
35
+ */
36
+ public $total_gross;
37
+ /**
38
+ * @var float
39
+ */
40
+ public $amount_per_cycle;
41
+ /**
42
+ * @var int # of months
43
+ */
44
+ public $billing_cycle;
45
+ /**
46
+ * @var float
47
+ */
48
+ public $outstanding_balance;
49
+ /**
50
+ * @var int
51
+ */
52
+ public $failed_payments;
53
+ /**
54
+ * @var string
55
+ */
56
+ public $gateway;
57
+ /**
58
+ * @var string
59
+ */
60
+ public $external_id;
61
+ /**
62
+ * @var string|null
63
+ */
64
+ public $trial_ends;
65
+ /**
66
+ * @var string|null Datetime of the next payment, or null if cancelled
67
+ */
68
+ public $next_payment;
69
+ /**
70
+ * @var string|null
71
+ */
72
+ public $vat_id;
73
+ /**
74
+ * @var string Two characters country code
75
+ */
76
+ public $country_code;
77
+
78
+ #endregion Properties
79
+
80
+ /**
81
+ * @param object|bool $subscription
82
+ */
83
+ function __construct( $subscription = false ) {
84
+ parent::__construct( $subscription );
85
+ }
86
+
87
+ static function get_type() {
88
+ return 'subscription';
89
+ }
90
+
91
+ /**
92
+ * Check if subscription is active.
93
+ *
94
+ * @author Vova Feldman (@svovaf)
95
+ * @since 1.0.9
96
+ *
97
+ * @return bool
98
+ */
99
+ function is_active() {
100
+ return ! empty( $this->next_payment ) &&
101
+ ( strtotime( $this->next_payment ) > WP_FS__SCRIPT_START_TIME );
102
+ }
103
+
104
+ /**
105
+ * Subscription considered to be new without any payments
106
+ * if the next payment should be made within less than 24 hours
107
+ * from the subscription creation.
108
+ *
109
+ * @author Vova Feldman (@svovaf)
110
+ * @since 1.0.9
111
+ *
112
+ * @return bool
113
+ */
114
+ function is_first_payment_pending() {
115
+ return ( WP_FS__TIME_24_HOURS_IN_SEC >= strtotime( $this->next_payment ) - strtotime( $this->created ) );
116
+ }
117
+
118
+ /**
119
+ * @author Vova Feldman (@svovaf)
120
+ * @since 1.1.7
121
+ */
122
+ function has_trial() {
123
+ return ! is_null( $this->trial_ends );
124
+ }
125
  }
freemius/includes/entities/class-fs-user.php CHANGED
@@ -1,62 +1,62 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.3
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_User extends FS_Scope_Entity {
14
-
15
- #region Properties
16
-
17
- /**
18
- * @var string
19
- */
20
- public $email;
21
- /**
22
- * @var string
23
- */
24
- public $first;
25
- /**
26
- * @var string
27
- */
28
- public $last;
29
- /**
30
- * @var bool
31
- */
32
- public $is_verified;
33
- /**
34
- * @var string|null
35
- */
36
- public $customer_id;
37
- /**
38
- * @var float
39
- */
40
- public $gross;
41
-
42
- #endregion Properties
43
-
44
- /**
45
- * @param object|bool $user
46
- */
47
- function __construct( $user = false ) {
48
- parent::__construct( $user );
49
- }
50
-
51
- function get_name() {
52
- return trim( ucfirst( trim( is_string( $this->first ) ? $this->first : '' ) ) . ' ' . ucfirst( trim( is_string( $this->last ) ? $this->last : '' ) ) );
53
- }
54
-
55
- function is_verified() {
56
- return ( isset( $this->is_verified ) && true === $this->is_verified );
57
- }
58
-
59
- static function get_type() {
60
- return 'user';
61
- }
62
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.3
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_User extends FS_Scope_Entity {
14
+
15
+ #region Properties
16
+
17
+ /**
18
+ * @var string
19
+ */
20
+ public $email;
21
+ /**
22
+ * @var string
23
+ */
24
+ public $first;
25
+ /**
26
+ * @var string
27
+ */
28
+ public $last;
29
+ /**
30
+ * @var bool
31
+ */
32
+ public $is_verified;
33
+ /**
34
+ * @var string|null
35
+ */
36
+ public $customer_id;
37
+ /**
38
+ * @var float
39
+ */
40
+ public $gross;
41
+
42
+ #endregion Properties
43
+
44
+ /**
45
+ * @param object|bool $user
46
+ */
47
+ function __construct( $user = false ) {
48
+ parent::__construct( $user );
49
+ }
50
+
51
+ function get_name() {
52
+ return trim( ucfirst( trim( is_string( $this->first ) ? $this->first : '' ) ) . ' ' . ucfirst( trim( is_string( $this->last ) ? $this->last : '' ) ) );
53
+ }
54
+
55
+ function is_verified() {
56
+ return ( isset( $this->is_verified ) && true === $this->is_verified );
57
+ }
58
+
59
+ static function get_type() {
60
+ return 'user';
61
+ }
62
  }
freemius/includes/entities/index.php CHANGED
@@ -1,3 +1,3 @@
1
- <?php
2
- // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
1
+ <?php
2
+ // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
freemius/includes/fs-core-functions.php CHANGED
@@ -1,674 +1,674 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.3
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- if ( ! function_exists( 'fs_dummy' ) ) {
14
- function fs_dummy() {
15
- }
16
- }
17
-
18
- /* Url.
19
- --------------------------------------------------------------------------------------------*/
20
- function fs_get_url_daily_cache_killer() {
21
- return date( '\YY\Mm\Dd' );
22
- }
23
-
24
- /* Templates / Views.
25
- --------------------------------------------------------------------------------------------*/
26
- if ( ! function_exists( 'fs_get_template_path' ) ) {
27
- function fs_get_template_path( $path ) {
28
- return WP_FS__DIR_TEMPLATES . '/' . trim( $path, '/' );
29
- }
30
-
31
- function fs_include_template( $path, &$params = null ) {
32
- $VARS = &$params;
33
- include fs_get_template_path( $path );
34
- }
35
-
36
- function fs_include_once_template( $path, &$params = null ) {
37
- $VARS = &$params;
38
- include_once fs_get_template_path( $path );
39
- }
40
-
41
- function fs_require_template( $path, &$params = null ) {
42
- $VARS = &$params;
43
- require fs_get_template_path( $path );
44
- }
45
-
46
- function fs_require_once_template( $path, &$params = null ) {
47
- $VARS = &$params;
48
- require_once fs_get_template_path( $path );
49
- }
50
-
51
- function fs_get_template( $path, &$params = null ) {
52
- ob_start();
53
-
54
- $VARS = &$params;
55
- require fs_get_template_path( $path );
56
-
57
- return ob_get_clean();
58
- }
59
- }
60
-
61
- /* Scripts and styles including.
62
- --------------------------------------------------------------------------------------------*/
63
-
64
- /**
65
- * Generates an absolute URL to the given path. This function ensures that the URL will be correct whether the asset
66
- * is inside a plugin's folder or a theme's folder.
67
- *
68
- * Examples:
69
- * 1. "themes" folder
70
- * Path: C:/xampp/htdocs/fswp/wp-content/themes/twentytwelve/freemius/assets/css/admin/common.css
71
- * URL: http://fswp:8080/wp-content/themes/twentytwelve/freemius/assets/css/admin/common.css
72
- *
73
- * 2. "plugins" folder
74
- * Path: C:/xampp/htdocs/fswp/wp-content/plugins/rating-widget-premium/freemius/assets/css/admin/common.css
75
- * URL: http://fswp:8080/wp-content/plugins/rating-widget-premium/freemius/assets/css/admin/common.css
76
- *
77
- * @author Leo Fajardo (@leorw)
78
- * @since 1.2.2
79
- *
80
- * @param string $asset_abs_path Asset's absolute path.
81
- *
82
- * @return string Asset's URL.
83
- */
84
- function fs_asset_url( $asset_abs_path ) {
85
- $wp_content_dir = fs_normalize_path( WP_CONTENT_DIR );
86
- $asset_abs_path = fs_normalize_path( $asset_abs_path );
87
- $asset_rel_path = str_replace( $wp_content_dir, '', $asset_abs_path );
88
-
89
- $asset_url = content_url( fs_normalize_path( $asset_rel_path ) );
90
-
91
- return $asset_url;
92
- }
93
-
94
- function fs_enqueue_local_style( $handle, $path, $deps = array(), $ver = false, $media = 'all' ) {
95
- wp_enqueue_style( $handle, fs_asset_url( WP_FS__DIR_CSS . '/' . trim( $path, '/' ) ), $deps, $ver, $media );
96
- }
97
-
98
- function fs_enqueue_local_script( $handle, $path, $deps = array(), $ver = false, $in_footer = 'all' ) {
99
- wp_enqueue_script( $handle, fs_asset_url( WP_FS__DIR_JS . '/' . trim( $path, '/' ) ), $deps, $ver, $in_footer );
100
- }
101
-
102
- function fs_img_url( $path, $img_dir = WP_FS__DIR_IMG ) {
103
- return ( fs_asset_url( $img_dir . '/' . trim( $path, '/' ) ) );
104
- }
105
-
106
- /* Request handlers.
107
- --------------------------------------------------------------------------------------------*/
108
- /**
109
- * @param string $key
110
- * @param mixed $def
111
- * @param string|bool $type Since 1.2.1.7 - when set to 'get' will look for the value passed via querystring, when
112
- * set to 'post' will look for the value passed via the POST request's body, otherwise,
113
- * will check if the parameter was passed in any of the two.
114
- *
115
- * @return mixed
116
- */
117
- function fs_request_get( $key, $def = false, $type = false ) {
118
- if ( is_string( $type ) ) {
119
- $type = strtolower( $type );
120
- }
121
-
122
- switch ( $type ) {
123
- case 'post':
124
- $value = isset( $_POST[ $key ] ) ? $_POST[ $key ] : $def;
125
- break;
126
- case 'get':
127
- $value = isset( $_GET[ $key ] ) ? $_GET[ $key ] : $def;
128
- break;
129
- default:
130
- $value = isset( $_REQUEST[ $key ] ) ? $_REQUEST[ $key ] : $def;
131
- break;
132
- }
133
-
134
- return $value;
135
- }
136
-
137
- function fs_request_has( $key ) {
138
- return isset( $_REQUEST[ $key ] );
139
- }
140
-
141
- function fs_request_get_bool( $key, $def = false ) {
142
- if ( ! isset( $_REQUEST[ $key ] ) ) {
143
- return $def;
144
- }
145
-
146
- if ( 1 == $_REQUEST[ $key ] || 'true' === strtolower( $_REQUEST[ $key ] ) ) {
147
- return true;
148
- }
149
-
150
- if ( 0 == $_REQUEST[ $key ] || 'false' === strtolower( $_REQUEST[ $key ] ) ) {
151
- return false;
152
- }
153
-
154
- return $def;
155
- }
156
-
157
- function fs_request_is_post() {
158
- return ( 'post' === strtolower( $_SERVER['REQUEST_METHOD'] ) );
159
- }
160
-
161
- function fs_request_is_get() {
162
- return ( 'get' === strtolower( $_SERVER['REQUEST_METHOD'] ) );
163
- }
164
-
165
- function fs_get_action( $action_key = 'action' ) {
166
- if ( ! empty( $_REQUEST[ $action_key ] ) ) {
167
- return strtolower( $_REQUEST[ $action_key ] );
168
- }
169
-
170
- if ( 'action' == $action_key ) {
171
- $action_key = 'fs_action';
172
-
173
- if ( ! empty( $_REQUEST[ $action_key ] ) ) {
174
- return strtolower( $_REQUEST[ $action_key ] );
175
- }
176
- }
177
-
178
- return false;
179
- }
180
-
181
- function fs_request_is_action( $action, $action_key = 'action' ) {
182
- return ( strtolower( $action ) === fs_get_action( $action_key ) );
183
- }
184
-
185
- /**
186
- * @author Vova Feldman (@svovaf)
187
- * @since 1.0.0
188
- *
189
- * @since 1.2.1.5 Allow nonce verification.
190
- *
191
- * @param string $action
192
- * @param string $action_key
193
- * @param string $nonce_key
194
- *
195
- * @return bool
196
- */
197
- function fs_request_is_action_secure(
198
- $action,
199
- $action_key = 'action',
200
- $nonce_key = 'nonce'
201
- ) {
202
- if ( strtolower( $action ) !== fs_get_action( $action_key ) ) {
203
- return false;
204
- }
205
-
206
- $nonce = ! empty( $_REQUEST[ $nonce_key ] ) ?
207
- $_REQUEST[ $nonce_key ] :
208
- '';
209
-
210
- if ( empty( $nonce ) ||
211
- ( false === wp_verify_nonce( $nonce, $action ) )
212
- ) {
213
- return false;
214
- }
215
-
216
- return true;
217
- }
218
-
219
- function fs_is_plugin_page( $page_slug ) {
220
- return ( is_admin() && $page_slug === fs_request_get( 'page' ) );
221
- }
222
-
223
- /* Core UI.
224
- --------------------------------------------------------------------------------------------*/
225
- /**
226
- * @param number $module_id
227
- * @param string $page
228
- * @param string $action
229
- * @param string $title
230
- * @param array $params
231
- * @param bool $is_primary
232
- * @param string|bool $icon_class Optional class for an icon (since 1.1.7).
233
- * @param string|bool $confirmation Optional confirmation message before submit (since 1.1.7).
234
- * @param string $method Since 1.1.7
235
- *
236
- * @uses fs_ui_get_action_button()
237
- */
238
- function fs_ui_action_button(
239
- $module_id,
240
- $page,
241
- $action,
242
- $title,
243
- $params = array(),
244
- $is_primary = true,
245
- $icon_class = false,
246
- $confirmation = false,
247
- $method = 'GET'
248
- ) {
249
- echo fs_ui_get_action_button(
250
- $module_id,
251
- $page,
252
- $action,
253
- $title,
254
- $params,
255
- $is_primary,
256
- $icon_class,
257
- $confirmation,
258
- $method
259
- );
260
- }
261
-
262
- /**
263
- * @author Vova Feldman (@svovaf)
264
- * @since 1.1.7
265
- *
266
- * @param number $module_id
267
- * @param string $page
268
- * @param string $action
269
- * @param string $title
270
- * @param array $params
271
- * @param bool $is_primary
272
- * @param string|bool $icon_class Optional class for an icon.
273
- * @param string|bool $confirmation Optional confirmation message before submit.
274
- * @param string $method
275
- *
276
- * @return string
277
- */
278
- function fs_ui_get_action_button(
279
- $module_id,
280
- $page,
281
- $action,
282
- $title,
283
- $params = array(),
284
- $is_primary = true,
285
- $icon_class = false,
286
- $confirmation = false,
287
- $method = 'GET'
288
- ) {
289
- // Prepend icon (if set).
290
- $title = ( is_string( $icon_class ) ? '<i class="' . $icon_class . '"></i> ' : '' ) . $title;
291
-
292
- if ( is_string( $confirmation ) ) {
293
- return sprintf( '<form action="%s" method="%s"><input type="hidden" name="fs_action" value="%s">%s<a href="#" class="%s" onclick="if (confirm(\'%s\')) this.parentNode.submit(); return false;">%s</a></form>',
294
- freemius( $module_id )->_get_admin_page_url( $page, $params ),
295
- $method,
296
- $action,
297
- wp_nonce_field( $action, '_wpnonce', true, false ),
298
- 'button' . ( $is_primary ? ' button-primary' : '' ),
299
- $confirmation,
300
- $title
301
- );
302
- } else if ( 'GET' !== strtoupper( $method ) ) {
303
- return sprintf( '<form action="%s" method="%s"><input type="hidden" name="fs_action" value="%s">%s<a href="#" class="%s" onclick="this.parentNode.submit(); return false;">%s</a></form>',
304
- freemius( $module_id )->_get_admin_page_url( $page, $params ),
305
- $method,
306
- $action,
307
- wp_nonce_field( $action, '_wpnonce', true, false ),
308
- 'button' . ( $is_primary ? ' button-primary' : '' ),
309
- $title
310
- );
311
- } else {
312
- return sprintf( '<a href="%s" class="%s">%s</a></form>',
313
- wp_nonce_url( freemius( $module_id )->_get_admin_page_url( $page, array_merge( $params, array( 'fs_action' => $action ) ) ), $action ),
314
- 'button' . ( $is_primary ? ' button-primary' : '' ),
315
- $title
316
- );
317
- }
318
- }
319
-
320
- function fs_ui_action_link( $module_id, $page, $action, $title, $params = array() ) {
321
- ?><a class=""
322
- href="<?php echo wp_nonce_url( freemius( $module_id )->_get_admin_page_url( $page, array_merge( $params, array( 'fs_action' => $action ) ) ), $action ) ?>"><?php echo $title ?></a><?php
323
- }
324
-
325
- /*function fs_error_handler($errno, $errstr, $errfile, $errline)
326
- {
327
- if (false === strpos($errfile, 'freemius/'))
328
- {
329
- // @todo Dump Freemius errors to local log.
330
- }
331
-
332
- // switch ($errno) {
333
- // case E_USER_ERROR:
334
- // break;
335
- // case E_WARNING:
336
- // case E_USER_WARNING:
337
- // break;
338
- // case E_NOTICE:
339
- // case E_USER_NOTICE:
340
- // break;
341
- // default:
342
- // break;
343
- // }
344
- }
345
-
346
- set_error_handler('fs_error_handler');*/
347
-
348
- if ( ! function_exists( 'fs_nonce_url' ) ) {
349
- /**
350
- * Retrieve URL with nonce added to URL query.
351
- *
352
- * Originally was using `wp_nonce_url()` but the new version
353
- * changed the return value to escaped URL, that's not the expected
354
- * behaviour.
355
- *
356
- * @author Vova Feldman (@svovaf)
357
- * @since ~1.1.3
358
- *
359
- * @param string $actionurl URL to add nonce action.
360
- * @param int|string $action Optional. Nonce action name. Default -1.
361
- * @param string $name Optional. Nonce name. Default '_wpnonce'.
362
- *
363
- * @return string Escaped URL with nonce action added.
364
- */
365
- function fs_nonce_url( $actionurl, $action = - 1, $name = '_wpnonce' ) {
366
- return add_query_arg( $name, wp_create_nonce( $action ), $actionurl );
367
- }
368
- }
369
-
370
- if ( ! function_exists( 'fs_starts_with' ) ) {
371
- /**
372
- * Check if string starts with.
373
- *
374
- * @author Vova Feldman (@svovaf)
375
- * @since 1.1.3
376
- *
377
- * @param string $haystack
378
- * @param string $needle
379
- *
380
- * @return bool
381
- */
382
- function fs_starts_with( $haystack, $needle ) {
383
- $length = strlen( $needle );
384
-
385
- return ( substr( $haystack, 0, $length ) === $needle );
386
- }
387
- }
388
-
389
- #region Url Canonization ------------------------------------------------------------------
390
-
391
- if ( ! function_exists( 'fs_canonize_url' ) ) {
392
- /**
393
- * @author Vova Feldman (@svovaf)
394
- * @since 1.1.3
395
- *
396
- * @param string $url
397
- * @param bool $omit_host
398
- * @param array $ignore_params
399
- *
400
- * @return string
401
- */
402
- function fs_canonize_url( $url, $omit_host = false, $ignore_params = array() ) {
403
- $parsed_url = parse_url( strtolower( $url ) );
404
-
405
- // if ( ! isset( $parsed_url['host'] ) ) {
406
- // return $url;
407
- // }
408
-
409
- $canonical = ( ( $omit_host || ! isset( $parsed_url['host'] ) ) ? '' : $parsed_url['host'] ) . $parsed_url['path'];
410
-
411
- if ( isset( $parsed_url['query'] ) ) {
412
- parse_str( $parsed_url['query'], $queryString );
413
- $canonical .= '?' . fs_canonize_query_string( $queryString, $ignore_params );
414
- }
415
-
416
- return $canonical;
417
- }
418
- }
419
-
420
- if ( ! function_exists( 'fs_canonize_query_string' ) ) {
421
- /**
422
- * @author Vova Feldman (@svovaf)
423
- * @since 1.1.3
424
- *
425
- * @param array $params
426
- * @param array $ignore_params
427
- * @param bool $params_prefix
428
- *
429
- * @return string
430
- */
431
- function fs_canonize_query_string( array $params, array &$ignore_params, $params_prefix = false ) {
432
- if ( ! is_array( $params ) || 0 === count( $params ) ) {
433
- return '';
434
- }
435
-
436
- // Url encode both keys and values
437
- $keys = fs_urlencode_rfc3986( array_keys( $params ) );
438
- $values = fs_urlencode_rfc3986( array_values( $params ) );
439
- $params = array_combine( $keys, $values );
440
-
441
- // Parameters are sorted by name, using lexicographical byte value ordering.
442
- // Ref: Spec: 9.1.1 (1)
443
- uksort( $params, 'strcmp' );
444
-
445
- $pairs = array();
446
- foreach ( $params as $parameter => $value ) {
447
- $lower_param = strtolower( $parameter );
448
-
449
- // Skip ignore params.
450
- if ( in_array( $lower_param, $ignore_params ) ||
451
- ( false !== $params_prefix && fs_starts_with( $lower_param, $params_prefix ) )
452
- ) {
453
- continue;
454
- }
455
-
456
- if ( is_array( $value ) ) {
457
- // If two or more parameters share the same name, they are sorted by their value
458
- // Ref: Spec: 9.1.1 (1)
459
- natsort( $value );
460
- foreach ( $value as $duplicate_value ) {
461
- $pairs[] = $lower_param . '=' . $duplicate_value;
462
- }
463
- } else {
464
- $pairs[] = $lower_param . '=' . $value;
465
- }
466
- }
467
-
468
- if ( 0 === count( $pairs ) ) {
469
- return '';
470
- }
471
-
472
- return implode( "&", $pairs );
473
- }
474
- }
475
-
476
- if ( ! function_exists( 'fs_urlencode_rfc3986' ) ) {
477
- /**
478
- * @author Vova Feldman (@svovaf)
479
- * @since 1.1.3
480
- *
481
- * @param string|string[] $input
482
- *
483
- * @return array|mixed|string
484
- */
485
- function fs_urlencode_rfc3986( $input ) {
486
- if ( is_array( $input ) ) {
487
- return array_map( 'fs_urlencode_rfc3986', $input );
488
- } else if ( is_scalar( $input ) ) {
489
- return str_replace( '+', ' ', str_replace( '%7E', '~', rawurlencode( $input ) ) );
490
- }
491
-
492
- return '';
493
- }
494
- }
495
-
496
- #endregion Url Canonization ------------------------------------------------------------------
497
-
498
- /**
499
- * @author Vova Feldman (@svovaf)
500
- *
501
- * @since 1.2.2 Changed to usage of WP_Filesystem_Direct.
502
- *
503
- * @param string $from URL
504
- * @param string $to File path.
505
- */
506
- function fs_download_image( $from, $to ) {
507
- $dir = dirname( $to );
508
-
509
- if ( 'direct' !== get_filesystem_method( array(), $dir ) ) {
510
- return;
511
- }
512
-
513
- if ( ! class_exists( 'WP_Filesystem_Direct' ) ) {
514
- require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php';
515
- require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-direct.php';
516
- }
517
-
518
- $fs = new WP_Filesystem_Direct( '' );
519
- $tmpfile = download_url( $from );
520
- $fs->copy( $tmpfile, $to );
521
- $fs->delete( $tmpfile );
522
- }
523
-
524
- /* General Utilities
525
- --------------------------------------------------------------------------------------------*/
526
-
527
- /**
528
- * Sorts an array by the value of the priority key.
529
- *
530
- * @author Daniel Iser (@danieliser)
531
- * @since 1.1.7
532
- *
533
- * @param $a
534
- * @param $b
535
- *
536
- * @return int
537
- */
538
- function fs_sort_by_priority( $a, $b ) {
539
-
540
- // If b has a priority and a does not, b wins.
541
- if ( ! isset( $a['priority'] ) && isset( $b['priority'] ) ) {
542
- return 1;
543
- } // If b has a priority and a does not, b wins.
544
- elseif ( isset( $a['priority'] ) && ! isset( $b['priority'] ) ) {
545
- return - 1;
546
- } // If neither has a priority or both priorities are equal its a tie.
547
- elseif ( ( ! isset( $a['priority'] ) && ! isset( $b['priority'] ) ) || $a['priority'] === $b['priority'] ) {
548
- return 0;
549
- }
550
-
551
- // If both have priority return the winner.
552
- return ( $a['priority'] < $b['priority'] ) ? - 1 : 1;
553
- }
554
-
555
- #--------------------------------------------------------------------------------
556
- #region Localization
557
- #--------------------------------------------------------------------------------
558
-
559
- if ( ! function_exists( 'fs_text' ) ) {
560
- /**
561
- * Retrieve a translated text by key.
562
- *
563
- * @author Vova Feldman (@svovaf)
564
- * @since 1.2.1.7
565
- *
566
- * @param string $key
567
- * @param string $slug
568
- *
569
- * @return string
570
- *
571
- * @global $fs_text, $fs_text_overrides
572
- */
573
- function fs_text( $key, $slug = 'freemius' ) {
574
- return __fs( $key, $slug );
575
- }
576
-
577
- /**
578
- * Output a translated text by key.
579
- *
580
- * @author Vova Feldman (@svovaf)
581
- * @since 1.2.1.7
582
- *
583
- * @param string $key
584
- * @param string $slug
585
- */
586
- function fs_echo( $key, $slug = 'freemius' ) {
587
- echo fs_text( $key, $slug );
588
- }
589
- }
590
-
591
- /**
592
- * @author Vova Feldman
593
- * @since 1.2.1.6
594
- *
595
- * @param string $key
596
- * @param string $slug
597
- *
598
- * @return string
599
- */
600
- function fs_esc_attr( $key, $slug ) {
601
- return esc_attr( fs_text( $key, $slug ) );
602
- }
603
-
604
- /**
605
- * @author Vova Feldman
606
- * @since 1.2.1.6
607
- *
608
- * @param string $key
609
- * @param string $slug
610
- */
611
- function fs_esc_attr_echo( $key, $slug ) {
612
- echo esc_attr( fs_text( $key, $slug ) );
613
- }
614
-
615
- /**
616
- * @author Vova Feldman
617
- * @since 1.2.1.6
618
- *
619
- * @param string $key
620
- * @param string $slug
621
- *
622
- * @return string
623
- */
624
- function fs_esc_js( $key, $slug ) {
625
- return esc_js( fs_text( $key, $slug ) );
626
- }
627
-
628
- /**
629
- * @author Vova Feldman
630
- * @since 1.2.1.6
631
- *
632
- * @param string $key
633
- * @param string $slug
634
- */
635
- function fs_esc_js_echo( $key, $slug ) {
636
- echo esc_js( fs_text( $key, $slug ) );
637
- }
638
-
639
- /**
640
- * @author Vova Feldman
641
- * @since 1.2.1.6
642
- *
643
- * @param string $key
644
- * @param string $slug
645
- */
646
- function fs_json_encode_echo( $key, $slug ) {
647
- echo json_encode( fs_text( $key, $slug ) );
648
- }
649
-
650
- /**
651
- * @author Vova Feldman
652
- * @since 1.2.1.6
653
- *
654
- * @param string $key
655
- * @param string $slug
656
- *
657
- * @return string
658
- */
659
- function fs_esc_html( $key, $slug ) {
660
- return esc_html( fs_text( $key, $slug ) );
661
- }
662
-
663
- /**
664
- * @author Vova Feldman
665
- * @since 1.2.1.6
666
- *
667
- * @param string $key
668
- * @param string $slug
669
- */
670
- function fs_esc_html_echo( $key, $slug ) {
671
- echo esc_html( fs_text( $key, $slug ) );
672
- }
673
-
674
- #endregion
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.3
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ if ( ! function_exists( 'fs_dummy' ) ) {
14
+ function fs_dummy() {
15
+ }
16
+ }
17
+
18
+ /* Url.
19
+ --------------------------------------------------------------------------------------------*/
20
+ function fs_get_url_daily_cache_killer() {
21
+ return date( '\YY\Mm\Dd' );
22
+ }
23
+
24
+ /* Templates / Views.
25
+ --------------------------------------------------------------------------------------------*/
26
+ if ( ! function_exists( 'fs_get_template_path' ) ) {
27
+ function fs_get_template_path( $path ) {
28
+ return WP_FS__DIR_TEMPLATES . '/' . trim( $path, '/' );
29
+ }
30
+
31
+ function fs_include_template( $path, &$params = null ) {
32
+ $VARS = &$params;
33
+ include fs_get_template_path( $path );
34
+ }
35
+
36
+ function fs_include_once_template( $path, &$params = null ) {
37
+ $VARS = &$params;
38
+ include_once fs_get_template_path( $path );
39
+ }
40
+
41
+ function fs_require_template( $path, &$params = null ) {
42
+ $VARS = &$params;
43
+ require fs_get_template_path( $path );
44
+ }
45
+
46
+ function fs_require_once_template( $path, &$params = null ) {
47
+ $VARS = &$params;
48
+ require_once fs_get_template_path( $path );
49
+ }
50
+
51
+ function fs_get_template( $path, &$params = null ) {
52
+ ob_start();
53
+
54
+ $VARS = &$params;
55
+ require fs_get_template_path( $path );
56
+
57
+ return ob_get_clean();
58
+ }
59
+ }
60
+
61
+ /* Scripts and styles including.
62
+ --------------------------------------------------------------------------------------------*/
63
+
64
+ /**
65
+ * Generates an absolute URL to the given path. This function ensures that the URL will be correct whether the asset
66
+ * is inside a plugin's folder or a theme's folder.
67
+ *
68
+ * Examples:
69
+ * 1. "themes" folder
70
+ * Path: C:/xampp/htdocs/fswp/wp-content/themes/twentytwelve/freemius/assets/css/admin/common.css
71
+ * URL: http://fswp:8080/wp-content/themes/twentytwelve/freemius/assets/css/admin/common.css
72
+ *
73
+ * 2. "plugins" folder
74
+ * Path: C:/xampp/htdocs/fswp/wp-content/plugins/rating-widget-premium/freemius/assets/css/admin/common.css
75
+ * URL: http://fswp:8080/wp-content/plugins/rating-widget-premium/freemius/assets/css/admin/common.css
76
+ *
77
+ * @author Leo Fajardo (@leorw)
78
+ * @since 1.2.2
79
+ *
80
+ * @param string $asset_abs_path Asset's absolute path.
81
+ *
82
+ * @return string Asset's URL.
83
+ */
84
+ function fs_asset_url( $asset_abs_path ) {
85
+ $wp_content_dir = fs_normalize_path( WP_CONTENT_DIR );
86
+ $asset_abs_path = fs_normalize_path( $asset_abs_path );
87
+ $asset_rel_path = str_replace( $wp_content_dir, '', $asset_abs_path );
88
+
89
+ $asset_url = content_url( fs_normalize_path( $asset_rel_path ) );
90
+
91
+ return $asset_url;
92
+ }
93
+
94
+ function fs_enqueue_local_style( $handle, $path, $deps = array(), $ver = false, $media = 'all' ) {
95
+ wp_enqueue_style( $handle, fs_asset_url( WP_FS__DIR_CSS . '/' . trim( $path, '/' ) ), $deps, $ver, $media );
96
+ }
97
+
98
+ function fs_enqueue_local_script( $handle, $path, $deps = array(), $ver = false, $in_footer = 'all' ) {
99
+ wp_enqueue_script( $handle, fs_asset_url( WP_FS__DIR_JS . '/' . trim( $path, '/' ) ), $deps, $ver, $in_footer );
100
+ }
101
+
102
+ function fs_img_url( $path, $img_dir = WP_FS__DIR_IMG ) {
103
+ return ( fs_asset_url( $img_dir . '/' . trim( $path, '/' ) ) );
104
+ }
105
+
106
+ /* Request handlers.
107
+ --------------------------------------------------------------------------------------------*/
108
+ /**
109
+ * @param string $key
110
+ * @param mixed $def
111
+ * @param string|bool $type Since 1.2.1.7 - when set to 'get' will look for the value passed via querystring, when
112
+ * set to 'post' will look for the value passed via the POST request's body, otherwise,
113
+ * will check if the parameter was passed in any of the two.
114
+ *
115
+ * @return mixed
116
+ */
117
+ function fs_request_get( $key, $def = false, $type = false ) {
118
+ if ( is_string( $type ) ) {
119
+ $type = strtolower( $type );
120
+ }
121
+
122
+ switch ( $type ) {
123
+ case 'post':
124
+ $value = isset( $_POST[ $key ] ) ? $_POST[ $key ] : $def;
125
+ break;
126
+ case 'get':
127
+ $value = isset( $_GET[ $key ] ) ? $_GET[ $key ] : $def;
128
+ break;
129
+ default:
130
+ $value = isset( $_REQUEST[ $key ] ) ? $_REQUEST[ $key ] : $def;
131
+ break;
132
+ }
133
+
134
+ return $value;
135
+ }
136
+
137
+ function fs_request_has( $key ) {
138
+ return isset( $_REQUEST[ $key ] );
139
+ }
140
+
141
+ function fs_request_get_bool( $key, $def = false ) {
142
+ if ( ! isset( $_REQUEST[ $key ] ) ) {
143
+ return $def;
144
+ }
145
+
146
+ if ( 1 == $_REQUEST[ $key ] || 'true' === strtolower( $_REQUEST[ $key ] ) ) {
147
+ return true;
148
+ }
149
+
150
+ if ( 0 == $_REQUEST[ $key ] || 'false' === strtolower( $_REQUEST[ $key ] ) ) {
151
+ return false;
152
+ }
153
+
154
+ return $def;
155
+ }
156
+
157
+ function fs_request_is_post() {
158
+ return ( 'post' === strtolower( $_SERVER['REQUEST_METHOD'] ) );
159
+ }
160
+
161
+ function fs_request_is_get() {
162
+ return ( 'get' === strtolower( $_SERVER['REQUEST_METHOD'] ) );
163
+ }
164
+
165
+ function fs_get_action( $action_key = 'action' ) {
166
+ if ( ! empty( $_REQUEST[ $action_key ] ) ) {
167
+ return strtolower( $_REQUEST[ $action_key ] );
168
+ }
169
+
170
+ if ( 'action' == $action_key ) {
171
+ $action_key = 'fs_action';
172
+
173
+ if ( ! empty( $_REQUEST[ $action_key ] ) ) {
174
+ return strtolower( $_REQUEST[ $action_key ] );
175
+ }
176
+ }
177
+
178
+ return false;
179
+ }
180
+
181
+ function fs_request_is_action( $action, $action_key = 'action' ) {
182
+ return ( strtolower( $action ) === fs_get_action( $action_key ) );
183
+ }
184
+
185
+ /**
186
+ * @author Vova Feldman (@svovaf)
187
+ * @since 1.0.0
188
+ *
189
+ * @since 1.2.1.5 Allow nonce verification.
190
+ *
191
+ * @param string $action
192
+ * @param string $action_key
193
+ * @param string $nonce_key
194
+ *
195
+ * @return bool
196
+ */
197
+ function fs_request_is_action_secure(
198
+ $action,
199
+ $action_key = 'action',
200
+ $nonce_key = 'nonce'
201
+ ) {
202
+ if ( strtolower( $action ) !== fs_get_action( $action_key ) ) {
203
+ return false;
204
+ }
205
+
206
+ $nonce = ! empty( $_REQUEST[ $nonce_key ] ) ?
207
+ $_REQUEST[ $nonce_key ] :
208
+ '';
209
+
210
+ if ( empty( $nonce ) ||
211
+ ( false === wp_verify_nonce( $nonce, $action ) )
212
+ ) {
213
+ return false;
214
+ }
215
+
216
+ return true;
217
+ }
218
+
219
+ function fs_is_plugin_page( $page_slug ) {
220
+ return ( is_admin() && $page_slug === fs_request_get( 'page' ) );
221
+ }
222
+
223
+ /* Core UI.
224
+ --------------------------------------------------------------------------------------------*/
225
+ /**
226
+ * @param number $module_id
227
+ * @param string $page
228
+ * @param string $action
229
+ * @param string $title
230
+ * @param array $params
231
+ * @param bool $is_primary
232
+ * @param string|bool $icon_class Optional class for an icon (since 1.1.7).
233
+ * @param string|bool $confirmation Optional confirmation message before submit (since 1.1.7).
234
+ * @param string $method Since 1.1.7
235
+ *
236
+ * @uses fs_ui_get_action_button()
237
+ */
238
+ function fs_ui_action_button(
239
+ $module_id,
240
+ $page,
241
+ $action,
242
+ $title,
243
+ $params = array(),
244
+ $is_primary = true,
245
+ $icon_class = false,
246
+ $confirmation = false,
247
+ $method = 'GET'
248
+ ) {
249
+ echo fs_ui_get_action_button(
250
+ $module_id,
251
+ $page,
252
+ $action,
253
+ $title,
254
+ $params,
255
+ $is_primary,
256
+ $icon_class,
257
+ $confirmation,
258
+ $method
259
+ );
260
+ }
261
+
262
+ /**
263
+ * @author Vova Feldman (@svovaf)
264
+ * @since 1.1.7
265
+ *
266
+ * @param number $module_id
267
+ * @param string $page
268
+ * @param string $action
269
+ * @param string $title
270
+ * @param array $params
271
+ * @param bool $is_primary
272
+ * @param string|bool $icon_class Optional class for an icon.
273
+ * @param string|bool $confirmation Optional confirmation message before submit.
274
+ * @param string $method
275
+ *
276
+ * @return string
277
+ */
278
+ function fs_ui_get_action_button(
279
+ $module_id,
280
+ $page,
281
+ $action,
282
+ $title,
283
+ $params = array(),
284
+ $is_primary = true,
285
+ $icon_class = false,
286
+ $confirmation = false,
287
+ $method = 'GET'
288
+ ) {
289
+ // Prepend icon (if set).
290
+ $title = ( is_string( $icon_class ) ? '<i class="' . $icon_class . '"></i> ' : '' ) . $title;
291
+
292
+ if ( is_string( $confirmation ) ) {
293
+ return sprintf( '<form action="%s" method="%s"><input type="hidden" name="fs_action" value="%s">%s<a href="#" class="%s" onclick="if (confirm(\'%s\')) this.parentNode.submit(); return false;">%s</a></form>',
294
+ freemius( $module_id )->_get_admin_page_url( $page, $params ),
295
+ $method,
296
+ $action,
297
+ wp_nonce_field( $action, '_wpnonce', true, false ),
298
+ 'button' . ( $is_primary ? ' button-primary' : '' ),
299
+ $confirmation,
300
+ $title
301
+ );
302
+ } else if ( 'GET' !== strtoupper( $method ) ) {
303
+ return sprintf( '<form action="%s" method="%s"><input type="hidden" name="fs_action" value="%s">%s<a href="#" class="%s" onclick="this.parentNode.submit(); return false;">%s</a></form>',
304
+ freemius( $module_id )->_get_admin_page_url( $page, $params ),
305
+ $method,
306
+ $action,
307
+ wp_nonce_field( $action, '_wpnonce', true, false ),
308
+ 'button' . ( $is_primary ? ' button-primary' : '' ),
309
+ $title
310
+ );
311
+ } else {
312
+ return sprintf( '<a href="%s" class="%s">%s</a></form>',
313
+ wp_nonce_url( freemius( $module_id )->_get_admin_page_url( $page, array_merge( $params, array( 'fs_action' => $action ) ) ), $action ),
314
+ 'button' . ( $is_primary ? ' button-primary' : '' ),
315
+ $title
316
+ );
317
+ }
318
+ }
319
+
320
+ function fs_ui_action_link( $module_id, $page, $action, $title, $params = array() ) {
321
+ ?><a class=""
322
+ href="<?php echo wp_nonce_url( freemius( $module_id )->_get_admin_page_url( $page, array_merge( $params, array( 'fs_action' => $action ) ) ), $action ) ?>"><?php echo $title ?></a><?php
323
+ }
324
+
325
+ /*function fs_error_handler($errno, $errstr, $errfile, $errline)
326
+ {
327
+ if (false === strpos($errfile, 'freemius/'))
328
+ {
329
+ // @todo Dump Freemius errors to local log.
330
+ }
331
+
332
+ // switch ($errno) {
333
+ // case E_USER_ERROR:
334
+ // break;
335
+ // case E_WARNING:
336
+ // case E_USER_WARNING:
337
+ // break;
338
+ // case E_NOTICE:
339
+ // case E_USER_NOTICE:
340
+ // break;
341
+ // default:
342
+ // break;
343
+ // }
344
+ }
345
+
346
+ set_error_handler('fs_error_handler');*/
347
+
348
+ if ( ! function_exists( 'fs_nonce_url' ) ) {
349
+ /**
350
+ * Retrieve URL with nonce added to URL query.
351
+ *
352
+ * Originally was using `wp_nonce_url()` but the new version
353
+ * changed the return value to escaped URL, that's not the expected
354
+ * behaviour.
355
+ *
356
+ * @author Vova Feldman (@svovaf)
357
+ * @since ~1.1.3
358
+ *
359
+ * @param string $actionurl URL to add nonce action.
360
+ * @param int|string $action Optional. Nonce action name. Default -1.
361
+ * @param string $name Optional. Nonce name. Default '_wpnonce'.
362
+ *
363
+ * @return string Escaped URL with nonce action added.
364
+ */
365
+ function fs_nonce_url( $actionurl, $action = - 1, $name = '_wpnonce' ) {
366
+ return add_query_arg( $name, wp_create_nonce( $action ), $actionurl );
367
+ }
368
+ }
369
+
370
+ if ( ! function_exists( 'fs_starts_with' ) ) {
371
+ /**
372
+ * Check if string starts with.
373
+ *
374
+ * @author Vova Feldman (@svovaf)
375
+ * @since 1.1.3
376
+ *
377
+ * @param string $haystack
378
+ * @param string $needle
379
+ *
380
+ * @return bool
381
+ */
382
+ function fs_starts_with( $haystack, $needle ) {
383
+ $length = strlen( $needle );
384
+
385
+ return ( substr( $haystack, 0, $length ) === $needle );
386
+ }
387
+ }
388
+
389
+ #region Url Canonization ------------------------------------------------------------------
390
+
391
+ if ( ! function_exists( 'fs_canonize_url' ) ) {
392
+ /**
393
+ * @author Vova Feldman (@svovaf)
394
+ * @since 1.1.3
395
+ *
396
+ * @param string $url
397
+ * @param bool $omit_host
398
+ * @param array $ignore_params
399
+ *
400
+ * @return string
401
+ */
402
+ function fs_canonize_url( $url, $omit_host = false, $ignore_params = array() ) {
403
+ $parsed_url = parse_url( strtolower( $url ) );
404
+
405
+ // if ( ! isset( $parsed_url['host'] ) ) {
406
+ // return $url;
407
+ // }
408
+
409
+ $canonical = ( ( $omit_host || ! isset( $parsed_url['host'] ) ) ? '' : $parsed_url['host'] ) . $parsed_url['path'];
410
+
411
+ if ( isset( $parsed_url['query'] ) ) {
412
+ parse_str( $parsed_url['query'], $queryString );
413
+ $canonical .= '?' . fs_canonize_query_string( $queryString, $ignore_params );
414
+ }
415
+
416
+ return $canonical;
417
+ }
418
+ }
419
+
420
+ if ( ! function_exists( 'fs_canonize_query_string' ) ) {
421
+ /**
422
+ * @author Vova Feldman (@svovaf)
423
+ * @since 1.1.3
424
+ *
425
+ * @param array $params
426
+ * @param array $ignore_params
427
+ * @param bool $params_prefix
428
+ *
429
+ * @return string
430
+ */
431
+ function fs_canonize_query_string( array $params, array &$ignore_params, $params_prefix = false ) {
432
+ if ( ! is_array( $params ) || 0 === count( $params ) ) {
433
+ return '';
434
+ }
435
+
436
+ // Url encode both keys and values
437
+ $keys = fs_urlencode_rfc3986( array_keys( $params ) );
438
+ $values = fs_urlencode_rfc3986( array_values( $params ) );
439
+ $params = array_combine( $keys, $values );
440
+
441
+ // Parameters are sorted by name, using lexicographical byte value ordering.
442
+ // Ref: Spec: 9.1.1 (1)
443
+ uksort( $params, 'strcmp' );
444
+
445
+ $pairs = array();
446
+ foreach ( $params as $parameter => $value ) {
447
+ $lower_param = strtolower( $parameter );
448
+
449
+ // Skip ignore params.
450
+ if ( in_array( $lower_param, $ignore_params ) ||
451
+ ( false !== $params_prefix && fs_starts_with( $lower_param, $params_prefix ) )
452
+ ) {
453
+ continue;
454
+ }
455
+
456
+ if ( is_array( $value ) ) {
457
+ // If two or more parameters share the same name, they are sorted by their value
458
+ // Ref: Spec: 9.1.1 (1)
459
+ natsort( $value );
460
+ foreach ( $value as $duplicate_value ) {
461
+ $pairs[] = $lower_param . '=' . $duplicate_value;
462
+ }
463
+ } else {
464
+ $pairs[] = $lower_param . '=' . $value;
465
+ }
466
+ }
467
+
468
+ if ( 0 === count( $pairs ) ) {
469
+ return '';
470
+ }
471
+
472
+ return implode( "&", $pairs );
473
+ }
474
+ }
475
+
476
+ if ( ! function_exists( 'fs_urlencode_rfc3986' ) ) {
477
+ /**
478
+ * @author Vova Feldman (@svovaf)
479
+ * @since 1.1.3
480
+ *
481
+ * @param string|string[] $input
482
+ *
483
+ * @return array|mixed|string
484
+ */
485
+ function fs_urlencode_rfc3986( $input ) {
486
+ if ( is_array( $input ) ) {
487
+ return array_map( 'fs_urlencode_rfc3986', $input );
488
+ } else if ( is_scalar( $input ) ) {
489
+ return str_replace( '+', ' ', str_replace( '%7E', '~', rawurlencode( $input ) ) );
490
+ }
491
+
492
+ return '';
493
+ }
494
+ }
495
+
496
+ #endregion Url Canonization ------------------------------------------------------------------
497
+
498
+ /**
499
+ * @author Vova Feldman (@svovaf)
500
+ *
501
+ * @since 1.2.2 Changed to usage of WP_Filesystem_Direct.
502
+ *
503
+ * @param string $from URL
504
+ * @param string $to File path.
505
+ */
506
+ function fs_download_image( $from, $to ) {
507
+ $dir = dirname( $to );
508
+
509
+ if ( 'direct' !== get_filesystem_method( array(), $dir ) ) {
510
+ return;
511
+ }
512
+
513
+ if ( ! class_exists( 'WP_Filesystem_Direct' ) ) {
514
+ require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php';
515
+ require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-direct.php';
516
+ }
517
+
518
+ $fs = new WP_Filesystem_Direct( '' );
519
+ $tmpfile = download_url( $from );
520
+ $fs->copy( $tmpfile, $to );
521
+ $fs->delete( $tmpfile );
522
+ }
523
+
524
+ /* General Utilities
525
+ --------------------------------------------------------------------------------------------*/
526
+
527
+ /**
528
+ * Sorts an array by the value of the priority key.
529
+ *
530
+ * @author Daniel Iser (@danieliser)
531
+ * @since 1.1.7
532
+ *
533
+ * @param $a
534
+ * @param $b
535
+ *
536
+ * @return int
537
+ */
538
+ function fs_sort_by_priority( $a, $b ) {
539
+
540
+ // If b has a priority and a does not, b wins.
541
+ if ( ! isset( $a['priority'] ) && isset( $b['priority'] ) ) {
542
+ return 1;
543
+ } // If b has a priority and a does not, b wins.
544
+ elseif ( isset( $a['priority'] ) && ! isset( $b['priority'] ) ) {
545
+ return - 1;
546
+ } // If neither has a priority or both priorities are equal its a tie.
547
+ elseif ( ( ! isset( $a['priority'] ) && ! isset( $b['priority'] ) ) || $a['priority'] === $b['priority'] ) {
548
+ return 0;
549
+ }
550
+
551
+ // If both have priority return the winner.
552
+ return ( $a['priority'] < $b['priority'] ) ? - 1 : 1;
553
+ }
554
+
555
+ #--------------------------------------------------------------------------------
556
+ #region Localization
557
+ #--------------------------------------------------------------------------------
558
+
559
+ if ( ! function_exists( 'fs_text' ) ) {
560
+ /**
561
+ * Retrieve a translated text by key.
562
+ *
563
+ * @author Vova Feldman (@svovaf)
564
+ * @since 1.2.1.7
565
+ *
566
+ * @param string $key
567
+ * @param string $slug
568
+ *
569
+ * @return string
570
+ *
571
+ * @global $fs_text, $fs_text_overrides
572
+ */
573
+ function fs_text( $key, $slug = 'freemius' ) {
574
+ return __fs( $key, $slug );
575
+ }
576
+
577
+ /**
578
+ * Output a translated text by key.
579
+ *
580
+ * @author Vova Feldman (@svovaf)
581
+ * @since 1.2.1.7
582
+ *
583
+ * @param string $key
584
+ * @param string $slug
585
+ */
586
+ function fs_echo( $key, $slug = 'freemius' ) {
587
+ echo fs_text( $key, $slug );
588
+ }
589
+ }
590
+
591
+ /**
592
+ * @author Vova Feldman
593
+ * @since 1.2.1.6
594
+ *
595
+ * @param string $key
596
+ * @param string $slug
597
+ *
598
+ * @return string
599
+ */
600
+ function fs_esc_attr( $key, $slug ) {
601
+ return esc_attr( fs_text( $key, $slug ) );
602
+ }
603
+
604
+ /**
605
+ * @author Vova Feldman
606
+ * @since 1.2.1.6
607
+ *
608
+ * @param string $key
609
+ * @param string $slug
610
+ */
611
+ function fs_esc_attr_echo( $key, $slug ) {
612
+ echo esc_attr( fs_text( $key, $slug ) );
613
+ }
614
+
615
+ /**
616
+ * @author Vova Feldman
617
+ * @since 1.2.1.6
618
+ *
619
+ * @param string $key
620
+ * @param string $slug
621
+ *
622
+ * @return string
623
+ */
624
+ function fs_esc_js( $key, $slug ) {
625
+ return esc_js( fs_text( $key, $slug ) );
626
+ }
627
+
628
+ /**
629
+ * @author Vova Feldman
630
+ * @since 1.2.1.6
631
+ *
632
+ * @param string $key
633
+ * @param string $slug
634
+ */
635
+ function fs_esc_js_echo( $key, $slug ) {
636
+ echo esc_js( fs_text( $key, $slug ) );
637
+ }
638
+
639
+ /**
640
+ * @author Vova Feldman
641
+ * @since 1.2.1.6
642
+ *
643
+ * @param string $key
644
+ * @param string $slug
645
+ */
646
+ function fs_json_encode_echo( $key, $slug ) {
647
+ echo json_encode( fs_text( $key, $slug ) );
648
+ }
649
+
650
+ /**
651
+ * @author Vova Feldman
652
+ * @since 1.2.1.6
653
+ *
654
+ * @param string $key
655
+ * @param string $slug
656
+ *
657
+ * @return string
658
+ */
659
+ function fs_esc_html( $key, $slug ) {
660
+ return esc_html( fs_text( $key, $slug ) );
661
+ }
662
+
663
+ /**
664
+ * @author Vova Feldman
665
+ * @since 1.2.1.6
666
+ *
667
+ * @param string $key
668
+ * @param string $slug
669
+ */
670
+ function fs_esc_html_echo( $key, $slug ) {
671
+ echo esc_html( fs_text( $key, $slug ) );
672
+ }
673
+
674
+ #endregion
freemius/includes/fs-essential-functions.php CHANGED
@@ -1,494 +1,494 @@
1
- <?php
2
- /**
3
- * IMPORTANT:
4
- * This file will be loaded based on the order of the plugins/themes load.
5
- * If there's a theme and a plugin using Freemius, the plugin's essential
6
- * file will always load first.
7
- *
8
- * @package Freemius
9
- * @copyright Copyright (c) 2015, Freemius, Inc.
10
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
11
- * @since 1.1.5
12
- */
13
-
14
- if ( ! function_exists( 'fs_normalize_path' ) ) {
15
- if ( function_exists( 'wp_normalize_path' ) ) {
16
- /**
17
- * Normalize a filesystem path.
18
- *
19
- * Replaces backslashes with forward slashes for Windows systems, and ensures
20
- * no duplicate slashes exist.
21
- *
22
- * @param string $path Path to normalize.
23
- *
24
- * @return string Normalized path.
25
- */
26
- function fs_normalize_path( $path ) {
27
- return wp_normalize_path( $path );
28
- }
29
- } else {
30
- function fs_normalize_path( $path ) {
31
- $path = str_replace( '\\', '/', $path );
32
- $path = preg_replace( '|/+|', '/', $path );
33
-
34
- return $path;
35
- }
36
- }
37
- }
38
-
39
- #region Core Redirect (copied from BuddyPress) -----------------------------------------
40
-
41
- if ( ! function_exists( 'fs_redirect' ) ) {
42
- /**
43
- * Redirects to another page, with a workaround for the IIS Set-Cookie bug.
44
- *
45
- * @link http://support.microsoft.com/kb/q176113/
46
- * @since 1.5.1
47
- * @uses apply_filters() Calls 'wp_redirect' hook on $location and $status.
48
- *
49
- * @param string $location The path to redirect to.
50
- * @param bool $exit If true, exit after redirect (Since 1.2.1.5).
51
- * @param int $status Status code to use.
52
- *
53
- * @return bool False if $location is not set
54
- */
55
- function fs_redirect( $location, $exit = true, $status = 302 ) {
56
- global $is_IIS;
57
-
58
- $file = '';
59
- $line = '';
60
- if ( headers_sent($file, $line) ) {
61
- if ( WP_FS__DEBUG_SDK && class_exists( 'FS_Admin_Notice_Manager' ) ) {
62
- $notices = FS_Admin_Notice_Manager::instance( 'global' );
63
-
64
- $notices->add( "Freemius failed to redirect the page because the headers have been already sent from line <b><code>{$line}</code></b> in file <b><code>{$file}</code></b>. If it's unexpected, it usually happens due to invalid space and/or EOL character(s).", 'Oops...', 'error' );
65
- }
66
-
67
- return false;
68
- }
69
-
70
- if ( defined( 'DOING_AJAX' ) ) {
71
- // Don't redirect on AJAX calls.
72
- return false;
73
- }
74
-
75
- if ( ! $location ) // allows the wp_redirect filter to cancel a redirect
76
- {
77
- return false;
78
- }
79
-
80
- $location = fs_sanitize_redirect( $location );
81
-
82
- if ( $is_IIS ) {
83
- header( "Refresh: 0;url=$location" );
84
- } else {
85
- if ( php_sapi_name() != 'cgi-fcgi' ) {
86
- status_header( $status );
87
- } // This causes problems on IIS and some FastCGI setups
88
- header( "Location: $location" );
89
- }
90
-
91
- if ( $exit ) {
92
- exit();
93
- }
94
-
95
- return true;
96
- }
97
-
98
- if ( ! function_exists( 'fs_sanitize_redirect' ) ) {
99
- /**
100
- * Sanitizes a URL for use in a redirect.
101
- *
102
- * @since 2.3
103
- *
104
- * @param string $location
105
- *
106
- * @return string redirect-sanitized URL
107
- */
108
- function fs_sanitize_redirect( $location ) {
109
- $location = preg_replace( '|[^a-z0-9-~+_.?#=&;,/:%!]|i', '', $location );
110
- $location = fs_kses_no_null( $location );
111
-
112
- // remove %0d and %0a from location
113
- $strip = array( '%0d', '%0a' );
114
- $found = true;
115
- while ( $found ) {
116
- $found = false;
117
- foreach ( (array) $strip as $val ) {
118
- while ( strpos( $location, $val ) !== false ) {
119
- $found = true;
120
- $location = str_replace( $val, '', $location );
121
- }
122
- }
123
- }
124
-
125
- return $location;
126
- }
127
- }
128
-
129
- if ( ! function_exists( 'fs_kses_no_null' ) ) {
130
- /**
131
- * Removes any NULL characters in $string.
132
- *
133
- * @since 1.0.0
134
- *
135
- * @param string $string
136
- *
137
- * @return string
138
- */
139
- function fs_kses_no_null( $string ) {
140
- $string = preg_replace( '/\0+/', '', $string );
141
- $string = preg_replace( '/(\\\\0)+/', '', $string );
142
-
143
- return $string;
144
- }
145
- }
146
- }
147
-
148
- #endregion Core Redirect (copied from BuddyPress) -----------------------------------------
149
-
150
- if ( ! function_exists( '__fs' ) ) {
151
- global $fs_text_overrides;
152
-
153
- if ( ! isset( $fs_text_overrides ) ) {
154
- $fs_text_overrides = array();
155
- }
156
-
157
- /**
158
- * Retrieve a translated text by key.
159
- *
160
- * @deprecated Use `fs_text()` instead since methods starting with `__` trigger warnings in Php 7.
161
- *
162
- * @author Vova Feldman (@svovaf)
163
- * @since 1.1.4
164
- *
165
- * @param string $key
166
- * @param string $slug
167
- *
168
- * @return string
169
- *
170
- * @global $fs_text, $fs_text_overrides
171
- */
172
- function __fs( $key, $slug = 'freemius' ) {
173
- global $fs_text,
174
- $fs_module_info_text,
175
- $fs_text_overrides;
176
-
177
- if ( isset( $fs_text_overrides[ $slug ] ) ) {
178
- if ( isset( $fs_text_overrides[ $slug ][ $key ] ) ) {
179
- return $fs_text_overrides[ $slug ][ $key ];
180
- }
181
-
182
- $lower_key = strtolower( $key );
183
- if ( isset( $fs_text_overrides[ $slug ][ $lower_key ] ) ) {
184
- return $fs_text_overrides[ $slug ][ $lower_key ];
185
- }
186
- }
187
-
188
- if ( ! isset( $fs_text ) ) {
189
- $dir = defined( 'WP_FS__DIR_INCLUDES' ) ?
190
- WP_FS__DIR_INCLUDES :
191
- dirname( __FILE__ );
192
-
193
- require_once $dir . '/i18n.php';
194
- }
195
-
196
- if ( isset( $fs_text[ $key ] ) ) {
197
- return $fs_text[ $key ];
198
- }
199
-
200
- if ( isset( $fs_module_info_text[ $key ] ) ) {
201
- return $fs_module_info_text[ $key ];
202
- }
203
-
204
- return $key;
205
- }
206
-
207
- /**
208
- * Output a translated text by key.
209
- *
210
- * @deprecated Use `fs_echo()` instead for consistency with `fs_text()`.
211
- *
212
- * @author Vova Feldman (@svovaf)
213
- * @since 1.1.4
214
- *
215
- * @param string $key
216
- * @param string $slug
217
- */
218
- function _efs( $key, $slug = 'freemius' ) {
219
- fs_echo( $key, $slug );
220
- }
221
- }
222
-
223
- if ( ! function_exists( 'fs_override_i18n' ) ) {
224
- /**
225
- * Override default i18n text phrases.
226
- *
227
- * @author Vova Feldman (@svovaf)
228
- * @since 1.1.6
229
- *
230
- * @param string[] $key_value
231
- * @param string $slug
232
- *
233
- * @global $fs_text_overrides
234
- */
235
- function fs_override_i18n( array $key_value, $slug = 'freemius' ) {
236
- global $fs_text_overrides;
237
-
238
- if ( ! isset( $fs_text_overrides[ $slug ] ) ) {
239
- $fs_text_overrides[ $slug ] = array();
240
- }
241
-
242
- foreach ( $key_value as $key => $value ) {
243
- $fs_text_overrides[ $slug ][ $key ] = $value;
244
- }
245
- }
246
- }
247
-
248
- if ( ! function_exists( 'fs_get_ip' ) ) {
249
- /**
250
- * Get client IP.
251
- *
252
- * @author Vova Feldman (@svovaf)
253
- * @since 1.1.2
254
- *
255
- * @return string|null
256
- */
257
- function fs_get_ip() {
258
- $fields = array(
259
- 'HTTP_CF_CONNECTING_IP',
260
- 'HTTP_CLIENT_IP',
261
- 'HTTP_X_FORWARDED_FOR',
262
- 'HTTP_X_FORWARDED',
263
- 'HTTP_FORWARDED_FOR',
264
- 'HTTP_FORWARDED',
265
- 'REMOTE_ADDR',
266
- );
267
-
268
- foreach ( $fields as $ip_field ) {
269
- if ( ! empty( $_SERVER[ $ip_field ] ) ) {
270
- return $_SERVER[ $ip_field ];
271
- }
272
- }
273
-
274
- return null;
275
- }
276
- }
277
-
278
- /**
279
- * Leverage backtrace to find caller plugin main file path.
280
- *
281
- * @author Vova Feldman (@svovaf)
282
- * @since 1.0.6
283
- *
284
- * @return string
285
- */
286
- function fs_find_caller_plugin_file() {
287
- /**
288
- * All the code below will be executed once on activation.
289
- * If the user changes the main plugin's file name, the file_exists()
290
- * will catch it.
291
- */
292
- if ( ! function_exists( 'get_plugins' ) ) {
293
- require_once ABSPATH . 'wp-admin/includes/plugin.php';
294
- }
295
-
296
- $all_plugins = get_plugins();
297
- $all_plugins_paths = array();
298
-
299
- // Get active plugin's main files real full names (might be symlinks).
300
- foreach ( $all_plugins as $relative_path => &$data ) {
301
- $all_plugins_paths[] = fs_normalize_path( realpath( WP_PLUGIN_DIR . '/' . $relative_path ) );
302
- }
303
-
304
- $plugin_file = null;
305
- for ( $i = 1, $bt = debug_backtrace(), $len = count( $bt ); $i < $len; $i ++ ) {
306
- if ( empty( $bt[ $i ]['file'] ) ) {
307
- continue;
308
- }
309
-
310
- if ( in_array( fs_normalize_path( $bt[ $i ]['file'] ), $all_plugins_paths ) ) {
311
- $plugin_file = $bt[ $i ]['file'];
312
- break;
313
- }
314
- }
315
-
316
- if ( is_null( $plugin_file ) ) {
317
- // Throw an error to the developer in case of some edge case dev environment.
318
- wp_die(
319
- 'Freemius SDK couldn\'t find the plugin\'s main file. Please contact sdk@freemius.com with the current error.',
320
- 'Error',
321
- array( 'back_link' => true )
322
- );
323
- }
324
-
325
- return $plugin_file;
326
- }
327
-
328
- require_once dirname( __FILE__ ) . '/supplements/fs-essential-functions-1.1.7.1.php';
329
-
330
- /**
331
- * Update SDK newest version reference.
332
- *
333
- * @author Vova Feldman (@svovaf)
334
- * @since 1.1.6
335
- *
336
- * @param string $sdk_relative_path
337
- * @param string|bool $plugin_file
338
- *
339
- * @global $fs_active_plugins
340
- */
341
- function fs_update_sdk_newest_version( $sdk_relative_path, $plugin_file = false ) {
342
- /**
343
- * If there is a plugin running an older version of FS (1.2.1 or below), the `fs_update_sdk_newest_version()`
344
- * function in the older version will be used instead of this one. But since the older version is using
345
- * the `is_plugin_active` function to check if a plugin is active, passing the theme's `plugin_path` to the
346
- * `is_plugin_active` function will return false since the path is not a plugin path, so `in_activation` will be
347
- * `true` for theme modules and the upgrading of the SDK version to 1.2.2 or newer version will work fine.
348
- *
349
- * Future versions that will call this function will use the proper logic here instead of just relying on the
350
- * `is_plugin_active` function to fail for themes.
351
- *
352
- * @author Leo Fajardo (@leorw)
353
- * @since 1.2.2
354
- */
355
-
356
- global $fs_active_plugins;
357
-
358
- $newest_sdk = $fs_active_plugins->plugins[ $sdk_relative_path ];
359
-
360
- if ( ! is_string( $plugin_file ) ) {
361
- $plugin_file = plugin_basename( fs_find_caller_plugin_file() );
362
- }
363
-
364
- if ( ! isset( $newest_sdk->type ) || 'theme' !== $newest_sdk->type ) {
365
- $in_activation = ( ! is_plugin_active( $plugin_file ) );
366
- } else {
367
- $theme = wp_get_theme();
368
- $in_activation = ( $newest_sdk->plugin_path == $theme->stylesheet );
369
- }
370
-
371
- $fs_active_plugins->newest = (object) array(
372
- 'plugin_path' => $plugin_file,
373
- 'sdk_path' => $sdk_relative_path,
374
- 'version' => $newest_sdk->version,
375
- 'in_activation' => $in_activation,
376
- 'timestamp' => time(),
377
- );
378
-
379
- // Update DB with latest SDK version and path.
380
- update_option( 'fs_active_plugins', $fs_active_plugins );
381
- }
382
-
383
- /**
384
- * Reorder the plugins load order so the plugin with the newest Freemius SDK is loaded first.
385
- *
386
- * @author Vova Feldman (@svovaf)
387
- * @since 1.1.6
388
- *
389
- * @return bool Was plugin order changed. Return false if plugin was loaded first anyways.
390
- *
391
- * @global $fs_active_plugins
392
- */
393
- function fs_newest_sdk_plugin_first() {
394
- global $fs_active_plugins;
395
-
396
- /**
397
- * @todo Multi-site network activated plugin are always loaded prior to site plugins so if there's a a plugin activated in the network mode that has an older version of the SDK of another plugin which is site activated that has new SDK version, the fs-essential-functions.php will be loaded from the older SDK. Same thing about MU plugins (loaded even before network activated plugins).
398
- *
399
- * @link https://github.com/Freemius/wordpress-sdk/issues/26
400
- */
401
- // $active_sitewide_plugins = get_site_option( 'active_sitewide_plugins' );
402
-
403
- $active_plugins = get_option( 'active_plugins' );
404
- $newest_sdk_plugin_key = array_search( $fs_active_plugins->newest->plugin_path, $active_plugins );
405
- if ( 0 == $newest_sdk_plugin_key ) {
406
- // if it's 0 it's the first plugin already, no need to continue
407
- return false;
408
- }
409
-
410
- array_splice( $active_plugins, $newest_sdk_plugin_key, 1 );
411
- array_unshift( $active_plugins, $fs_active_plugins->newest->plugin_path );
412
- update_option( 'active_plugins', $active_plugins );
413
-
414
- return true;
415
- }
416
-
417
- /**
418
- * Go over all Freemius SDKs in the system and find and "remember"
419
- * the newest SDK which is associated with an active plugin.
420
- *
421
- * @author Vova Feldman (@svovaf)
422
- * @since 1.1.6
423
- *
424
- * @global $fs_active_plugins
425
- */
426
- function fs_fallback_to_newest_active_sdk() {
427
- global $fs_active_plugins;
428
-
429
- /**
430
- * @var object $newest_sdk_data
431
- */
432
- $newest_sdk_data = null;
433
- $newest_sdk_path = null;
434
-
435
- foreach ( $fs_active_plugins->plugins as $sdk_relative_path => $data ) {
436
- if ( is_null( $newest_sdk_data ) || version_compare( $data->version, $newest_sdk_data->version, '>' )
437
- ) {
438
- // If plugin inactive or SDK starter file doesn't exist, remove SDK reference.
439
- if ( 'plugin' === $data->type ) {
440
- $is_module_active = is_plugin_active( $data->plugin_path );
441
- } else {
442
- $active_theme = wp_get_theme();
443
- $is_module_active = ( $data->plugin_path === $active_theme->get_template() );
444
- }
445
-
446
- $is_sdk_exists = file_exists( fs_normalize_path( WP_PLUGIN_DIR . '/' . $sdk_relative_path . '/start.php' ) );
447
-
448
- if ( ! $is_module_active || ! $is_sdk_exists ) {
449
- unset( $fs_active_plugins->plugins[ $sdk_relative_path ] );
450
-
451
- // No need to store the data since it will be stored in fs_update_sdk_newest_version()
452
- // or explicitly with update_option().
453
- } else {
454
- $newest_sdk_data = $data;
455
- $newest_sdk_path = $sdk_relative_path;
456
- }
457
- }
458
- }
459
-
460
- if ( is_null( $newest_sdk_data ) ) {
461
- // Couldn't find any SDK reference.
462
- $fs_active_plugins = new stdClass();
463
- update_option( 'fs_active_plugins', $fs_active_plugins );
464
- } else {
465
- fs_update_sdk_newest_version( $newest_sdk_path, $newest_sdk_data->plugin_path );
466
- }
467
- }
468
-
469
- #region Actions / Filters -----------------------------------------
470
-
471
- /**
472
- * Apply filter for specific plugin.
473
- *
474
- * @author Vova Feldman (@svovaf)
475
- * @since 1.0.9
476
- *
477
- * @param string $module_unique_affix Module's unique affix.
478
- * @param string $tag The name of the filter hook.
479
- * @param mixed $value The value on which the filters hooked to `$tag` are applied on.
480
- *
481
- * @return mixed The filtered value after all hooked functions are applied to it.
482
- *
483
- * @uses apply_filters()
484
- */
485
- function fs_apply_filter( $module_unique_affix, $tag, $value ) {
486
- $args = func_get_args();
487
-
488
- return call_user_func_array( 'apply_filters', array_merge(
489
- array( "fs_{$tag}_{$module_unique_affix}" ),
490
- array_slice( $args, 2 ) )
491
- );
492
- }
493
-
494
  #endregion Actions / Filters -----------------------------------------
1
+ <?php
2
+ /**
3
+ * IMPORTANT:
4
+ * This file will be loaded based on the order of the plugins/themes load.
5
+ * If there's a theme and a plugin using Freemius, the plugin's essential
6
+ * file will always load first.
7
+ *
8
+ * @package Freemius
9
+ * @copyright Copyright (c) 2015, Freemius, Inc.
10
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
11
+ * @since 1.1.5
12
+ */
13
+
14
+ if ( ! function_exists( 'fs_normalize_path' ) ) {
15
+ if ( function_exists( 'wp_normalize_path' ) ) {
16
+ /**
17
+ * Normalize a filesystem path.
18
+ *
19
+ * Replaces backslashes with forward slashes for Windows systems, and ensures
20
+ * no duplicate slashes exist.
21
+ *
22
+ * @param string $path Path to normalize.
23
+ *
24
+ * @return string Normalized path.
25
+ */
26
+ function fs_normalize_path( $path ) {
27
+ return wp_normalize_path( $path );
28
+ }
29
+ } else {
30
+ function fs_normalize_path( $path ) {
31
+ $path = str_replace( '\\', '/', $path );
32
+ $path = preg_replace( '|/+|', '/', $path );
33
+
34
+ return $path;
35
+ }
36
+ }
37
+ }
38
+
39
+ #region Core Redirect (copied from BuddyPress) -----------------------------------------
40
+
41
+ if ( ! function_exists( 'fs_redirect' ) ) {
42
+ /**
43
+ * Redirects to another page, with a workaround for the IIS Set-Cookie bug.
44
+ *
45
+ * @link http://support.microsoft.com/kb/q176113/
46
+ * @since 1.5.1
47
+ * @uses apply_filters() Calls 'wp_redirect' hook on $location and $status.
48
+ *
49
+ * @param string $location The path to redirect to.
50
+ * @param bool $exit If true, exit after redirect (Since 1.2.1.5).
51
+ * @param int $status Status code to use.
52
+ *
53
+ * @return bool False if $location is not set
54
+ */
55
+ function fs_redirect( $location, $exit = true, $status = 302 ) {
56
+ global $is_IIS;
57
+
58
+ $file = '';
59
+ $line = '';
60
+ if ( headers_sent($file, $line) ) {
61
+ if ( WP_FS__DEBUG_SDK && class_exists( 'FS_Admin_Notice_Manager' ) ) {
62
+ $notices = FS_Admin_Notice_Manager::instance( 'global' );
63
+
64
+ $notices->add( "Freemius failed to redirect the page because the headers have been already sent from line <b><code>{$line}</code></b> in file <b><code>{$file}</code></b>. If it's unexpected, it usually happens due to invalid space and/or EOL character(s).", 'Oops...', 'error' );
65
+ }
66
+
67
+ return false;
68
+ }
69
+
70
+ if ( defined( 'DOING_AJAX' ) ) {
71
+ // Don't redirect on AJAX calls.
72
+ return false;
73
+ }
74
+
75
+ if ( ! $location ) // allows the wp_redirect filter to cancel a redirect
76
+ {
77
+ return false;
78
+ }
79
+
80
+ $location = fs_sanitize_redirect( $location );
81
+
82
+ if ( $is_IIS ) {
83
+ header( "Refresh: 0;url=$location" );
84
+ } else {
85
+ if ( php_sapi_name() != 'cgi-fcgi' ) {
86
+ status_header( $status );
87
+ } // This causes problems on IIS and some FastCGI setups
88
+ header( "Location: $location" );
89
+ }
90
+
91
+ if ( $exit ) {
92
+ exit();
93
+ }
94
+
95
+ return true;
96
+ }
97
+
98
+ if ( ! function_exists( 'fs_sanitize_redirect' ) ) {
99
+ /**
100
+ * Sanitizes a URL for use in a redirect.
101
+ *
102
+ * @since 2.3
103
+ *
104
+ * @param string $location
105
+ *
106
+ * @return string redirect-sanitized URL
107
+ */
108
+ function fs_sanitize_redirect( $location ) {
109
+ $location = preg_replace( '|[^a-z0-9-~+_.?#=&;,/:%!]|i', '', $location );
110
+ $location = fs_kses_no_null( $location );
111
+
112
+ // remove %0d and %0a from location
113
+ $strip = array( '%0d', '%0a' );
114
+ $found = true;
115
+ while ( $found ) {
116
+ $found = false;
117
+ foreach ( (array) $strip as $val ) {
118
+ while ( strpos( $location, $val ) !== false ) {
119
+ $found = true;
120
+ $location = str_replace( $val, '', $location );
121
+ }
122
+ }
123
+ }
124
+
125
+ return $location;
126
+ }
127
+ }
128
+
129
+ if ( ! function_exists( 'fs_kses_no_null' ) ) {
130
+ /**
131
+ * Removes any NULL characters in $string.
132
+ *
133
+ * @since 1.0.0
134
+ *
135
+ * @param string $string
136
+ *
137
+ * @return string
138
+ */
139
+ function fs_kses_no_null( $string ) {
140
+ $string = preg_replace( '/\0+/', '', $string );
141
+ $string = preg_replace( '/(\\\\0)+/', '', $string );
142
+
143
+ return $string;
144
+ }
145
+ }
146
+ }
147
+
148
+ #endregion Core Redirect (copied from BuddyPress) -----------------------------------------
149
+
150
+ if ( ! function_exists( '__fs' ) ) {
151
+ global $fs_text_overrides;
152
+
153
+ if ( ! isset( $fs_text_overrides ) ) {
154
+ $fs_text_overrides = array();
155
+ }
156
+
157
+ /**
158
+ * Retrieve a translated text by key.
159
+ *
160
+ * @deprecated Use `fs_text()` instead since methods starting with `__` trigger warnings in Php 7.
161
+ *
162
+ * @author Vova Feldman (@svovaf)
163
+ * @since 1.1.4
164
+ *
165
+ * @param string $key
166
+ * @param string $slug
167
+ *
168
+ * @return string
169
+ *
170
+ * @global $fs_text, $fs_text_overrides
171
+ */
172
+ function __fs( $key, $slug = 'freemius' ) {
173
+ global $fs_text,
174
+ $fs_module_info_text,
175
+ $fs_text_overrides;
176
+
177
+ if ( isset( $fs_text_overrides[ $slug ] ) ) {
178
+ if ( isset( $fs_text_overrides[ $slug ][ $key ] ) ) {
179
+ return $fs_text_overrides[ $slug ][ $key ];
180
+ }
181
+
182
+ $lower_key = strtolower( $key );
183
+ if ( isset( $fs_text_overrides[ $slug ][ $lower_key ] ) ) {
184
+ return $fs_text_overrides[ $slug ][ $lower_key ];
185
+ }
186
+ }
187
+
188
+ if ( ! isset( $fs_text ) ) {
189
+ $dir = defined( 'WP_FS__DIR_INCLUDES' ) ?
190
+ WP_FS__DIR_INCLUDES :
191
+ dirname( __FILE__ );
192
+
193
+ require_once $dir . '/i18n.php';
194
+ }
195
+
196
+ if ( isset( $fs_text[ $key ] ) ) {
197
+ return $fs_text[ $key ];
198
+ }
199
+
200
+ if ( isset( $fs_module_info_text[ $key ] ) ) {
201
+ return $fs_module_info_text[ $key ];
202
+ }
203
+
204
+ return $key;
205
+ }
206
+
207
+ /**
208
+ * Output a translated text by key.
209
+ *
210
+ * @deprecated Use `fs_echo()` instead for consistency with `fs_text()`.
211
+ *
212
+ * @author Vova Feldman (@svovaf)
213
+ * @since 1.1.4
214
+ *
215
+ * @param string $key
216
+ * @param string $slug
217
+ */
218
+ function _efs( $key, $slug = 'freemius' ) {
219
+ fs_echo( $key, $slug );
220
+ }
221
+ }
222
+
223
+ if ( ! function_exists( 'fs_override_i18n' ) ) {
224
+ /**
225
+ * Override default i18n text phrases.
226
+ *
227
+ * @author Vova Feldman (@svovaf)
228
+ * @since 1.1.6
229
+ *
230
+ * @param string[] $key_value
231
+ * @param string $slug
232
+ *
233
+ * @global $fs_text_overrides
234
+ */
235
+ function fs_override_i18n( array $key_value, $slug = 'freemius' ) {
236
+ global $fs_text_overrides;
237
+
238
+ if ( ! isset( $fs_text_overrides[ $slug ] ) ) {
239
+ $fs_text_overrides[ $slug ] = array();
240
+ }
241
+
242
+ foreach ( $key_value as $key => $value ) {
243
+ $fs_text_overrides[ $slug ][ $key ] = $value;
244
+ }
245
+ }
246
+ }
247
+
248
+ if ( ! function_exists( 'fs_get_ip' ) ) {
249
+ /**
250
+ * Get client IP.
251
+ *
252
+ * @author Vova Feldman (@svovaf)
253
+ * @since 1.1.2
254
+ *
255
+ * @return string|null
256
+ */
257
+ function fs_get_ip() {
258
+ $fields = array(
259
+ 'HTTP_CF_CONNECTING_IP',
260
+ 'HTTP_CLIENT_IP',
261
+ 'HTTP_X_FORWARDED_FOR',
262
+ 'HTTP_X_FORWARDED',
263
+ 'HTTP_FORWARDED_FOR',
264
+ 'HTTP_FORWARDED',
265
+ 'REMOTE_ADDR',
266
+ );
267
+
268
+ foreach ( $fields as $ip_field ) {
269
+ if ( ! empty( $_SERVER[ $ip_field ] ) ) {
270
+ return $_SERVER[ $ip_field ];
271
+ }
272
+ }
273
+
274
+ return null;
275
+ }
276
+ }
277
+
278
+ /**
279
+ * Leverage backtrace to find caller plugin main file path.
280
+ *
281
+ * @author Vova Feldman (@svovaf)
282
+ * @since 1.0.6
283
+ *
284
+ * @return string
285
+ */
286
+ function fs_find_caller_plugin_file() {
287
+ /**
288
+ * All the code below will be executed once on activation.
289
+ * If the user changes the main plugin's file name, the file_exists()
290
+ * will catch it.
291
+ */
292
+ if ( ! function_exists( 'get_plugins' ) ) {
293
+ require_once ABSPATH . 'wp-admin/includes/plugin.php';
294
+ }
295
+
296
+ $all_plugins = get_plugins();
297
+ $all_plugins_paths = array();
298
+
299
+ // Get active plugin's main files real full names (might be symlinks).
300
+ foreach ( $all_plugins as $relative_path => &$data ) {
301
+ $all_plugins_paths[] = fs_normalize_path( realpath( WP_PLUGIN_DIR . '/' . $relative_path ) );
302
+ }
303
+
304
+ $plugin_file = null;
305
+ for ( $i = 1, $bt = debug_backtrace(), $len = count( $bt ); $i < $len; $i ++ ) {
306
+ if ( empty( $bt[ $i ]['file'] ) ) {
307
+ continue;
308
+ }
309
+
310
+ if ( in_array( fs_normalize_path( $bt[ $i ]['file'] ), $all_plugins_paths ) ) {
311
+ $plugin_file = $bt[ $i ]['file'];
312
+ break;
313
+ }
314
+ }
315
+
316
+ if ( is_null( $plugin_file ) ) {
317
+ // Throw an error to the developer in case of some edge case dev environment.
318
+ wp_die(
319
+ 'Freemius SDK couldn\'t find the plugin\'s main file. Please contact sdk@freemius.com with the current error.',
320
+ 'Error',
321
+ array( 'back_link' => true )
322
+ );
323
+ }
324
+
325
+ return $plugin_file;
326
+ }
327
+
328
+ require_once dirname( __FILE__ ) . '/supplements/fs-essential-functions-1.1.7.1.php';
329
+
330
+ /**
331
+ * Update SDK newest version reference.
332
+ *
333
+ * @author Vova Feldman (@svovaf)
334
+ * @since 1.1.6
335
+ *
336
+ * @param string $sdk_relative_path
337
+ * @param string|bool $plugin_file
338
+ *
339
+ * @global $fs_active_plugins
340
+ */
341
+ function fs_update_sdk_newest_version( $sdk_relative_path, $plugin_file = false ) {
342
+ /**
343
+ * If there is a plugin running an older version of FS (1.2.1 or below), the `fs_update_sdk_newest_version()`
344
+ * function in the older version will be used instead of this one. But since the older version is using
345
+ * the `is_plugin_active` function to check if a plugin is active, passing the theme's `plugin_path` to the
346
+ * `is_plugin_active` function will return false since the path is not a plugin path, so `in_activation` will be
347
+ * `true` for theme modules and the upgrading of the SDK version to 1.2.2 or newer version will work fine.
348
+ *
349
+ * Future versions that will call this function will use the proper logic here instead of just relying on the
350
+ * `is_plugin_active` function to fail for themes.
351
+ *
352
+ * @author Leo Fajardo (@leorw)
353
+ * @since 1.2.2
354
+ */
355
+
356
+ global $fs_active_plugins;
357
+
358
+ $newest_sdk = $fs_active_plugins->plugins[ $sdk_relative_path ];
359
+
360
+ if ( ! is_string( $plugin_file ) ) {
361
+ $plugin_file = plugin_basename( fs_find_caller_plugin_file() );
362
+ }
363
+
364
+ if ( ! isset( $newest_sdk->type ) || 'theme' !== $newest_sdk->type ) {
365
+ $in_activation = ( ! is_plugin_active( $plugin_file ) );
366
+ } else {
367
+ $theme = wp_get_theme();
368
+ $in_activation = ( $newest_sdk->plugin_path == $theme->stylesheet );
369
+ }
370
+
371
+ $fs_active_plugins->newest = (object) array(
372
+ 'plugin_path' => $plugin_file,
373
+ 'sdk_path' => $sdk_relative_path,
374
+ 'version' => $newest_sdk->version,
375
+ 'in_activation' => $in_activation,
376
+ 'timestamp' => time(),
377
+ );
378
+
379
+ // Update DB with latest SDK version and path.
380
+ update_option( 'fs_active_plugins', $fs_active_plugins );
381
+ }
382
+
383
+ /**
384
+ * Reorder the plugins load order so the plugin with the newest Freemius SDK is loaded first.
385
+ *
386
+ * @author Vova Feldman (@svovaf)
387
+ * @since 1.1.6
388
+ *
389
+ * @return bool Was plugin order changed. Return false if plugin was loaded first anyways.
390
+ *
391
+ * @global $fs_active_plugins
392
+ */
393
+ function fs_newest_sdk_plugin_first() {
394
+ global $fs_active_plugins;
395
+
396
+ /**
397
+ * @todo Multi-site network activated plugin are always loaded prior to site plugins so if there's a a plugin activated in the network mode that has an older version of the SDK of another plugin which is site activated that has new SDK version, the fs-essential-functions.php will be loaded from the older SDK. Same thing about MU plugins (loaded even before network activated plugins).
398
+ *
399
+ * @link https://github.com/Freemius/wordpress-sdk/issues/26
400
+ */
401
+ // $active_sitewide_plugins = get_site_option( 'active_sitewide_plugins' );
402
+
403
+ $active_plugins = get_option( 'active_plugins' );
404
+ $newest_sdk_plugin_key = array_search( $fs_active_plugins->newest->plugin_path, $active_plugins );
405
+ if ( 0 == $newest_sdk_plugin_key ) {
406
+ // if it's 0 it's the first plugin already, no need to continue
407
+ return false;
408
+ }
409
+
410
+ array_splice( $active_plugins, $newest_sdk_plugin_key, 1 );
411
+ array_unshift( $active_plugins, $fs_active_plugins->newest->plugin_path );
412
+ update_option( 'active_plugins', $active_plugins );
413
+
414
+ return true;
415
+ }
416
+
417
+ /**
418
+ * Go over all Freemius SDKs in the system and find and "remember"
419
+ * the newest SDK which is associated with an active plugin.
420
+ *
421
+ * @author Vova Feldman (@svovaf)
422
+ * @since 1.1.6
423
+ *
424
+ * @global $fs_active_plugins
425
+ */
426
+ function fs_fallback_to_newest_active_sdk() {
427
+ global $fs_active_plugins;
428
+
429
+ /**
430
+ * @var object $newest_sdk_data
431
+ */
432
+ $newest_sdk_data = null;
433
+ $newest_sdk_path = null;
434
+
435
+ foreach ( $fs_active_plugins->plugins as $sdk_relative_path => $data ) {
436
+ if ( is_null( $newest_sdk_data ) || version_compare( $data->version, $newest_sdk_data->version, '>' )
437
+ ) {
438
+ // If plugin inactive or SDK starter file doesn't exist, remove SDK reference.
439
+ if ( 'plugin' === $data->type ) {
440
+ $is_module_active = is_plugin_active( $data->plugin_path );
441
+ } else {
442
+ $active_theme = wp_get_theme();
443
+ $is_module_active = ( $data->plugin_path === $active_theme->get_template() );
444
+ }
445
+
446
+ $is_sdk_exists = file_exists( fs_normalize_path( WP_PLUGIN_DIR . '/' . $sdk_relative_path . '/start.php' ) );
447
+
448
+ if ( ! $is_module_active || ! $is_sdk_exists ) {
449
+ unset( $fs_active_plugins->plugins[ $sdk_relative_path ] );
450
+
451
+ // No need to store the data since it will be stored in fs_update_sdk_newest_version()
452
+ // or explicitly with update_option().
453
+ } else {
454
+ $newest_sdk_data = $data;
455
+ $newest_sdk_path = $sdk_relative_path;
456
+ }
457
+ }
458
+ }
459
+
460
+ if ( is_null( $newest_sdk_data ) ) {
461
+ // Couldn't find any SDK reference.
462
+ $fs_active_plugins = new stdClass();
463
+ update_option( 'fs_active_plugins', $fs_active_plugins );
464
+ } else {
465
+ fs_update_sdk_newest_version( $newest_sdk_path, $newest_sdk_data->plugin_path );
466
+ }
467
+ }
468
+
469
+ #region Actions / Filters -----------------------------------------
470
+
471
+ /**
472
+ * Apply filter for specific plugin.
473
+ *
474
+ * @author Vova Feldman (@svovaf)
475
+ * @since 1.0.9
476
+ *
477
+ * @param string $module_unique_affix Module's unique affix.
478
+ * @param string $tag The name of the filter hook.
479
+ * @param mixed $value The value on which the filters hooked to `$tag` are applied on.
480
+ *
481
+ * @return mixed The filtered value after all hooked functions are applied to it.
482
+ *
483
+ * @uses apply_filters()
484
+ */
485
+ function fs_apply_filter( $module_unique_affix, $tag, $value ) {
486
+ $args = func_get_args();
487
+
488
+ return call_user_func_array( 'apply_filters', array_merge(
489
+ array( "fs_{$tag}_{$module_unique_affix}" ),
490
+ array_slice( $args, 2 ) )
491
+ );
492
+ }
493
+
494
  #endregion Actions / Filters -----------------------------------------
freemius/includes/index.php CHANGED
@@ -1,3 +1,3 @@
1
- <?php
2
- // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
1
+ <?php
2
+ // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
freemius/includes/l10n.php CHANGED
@@ -1,268 +1,268 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.2.1.6
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- /**
14
- * Retrieve the translation of $text.
15
- *
16
- * @since 1.2.1.6
17
- *
18
- * @param string $text
19
- *
20
- * @return string
21
- */
22
- function _fs_text( $text ) {
23
- // Avoid misleading Theme Check warning.
24
- $fn = 'translate';
25
- return $fn( $text, 'freemius' );
26
- }
27
-
28
- /**
29
- * Retrieve the translation of $text and escapes it for safe use in an attribute.
30
- *
31
- * @since 1.2.1.6
32
- *
33
- * @param string $text
34
- *
35
- * @return string
36
- */
37
- function _fs_esc_attr( $text ) {
38
- // Avoid misleading Theme Check warning.
39
- $fn = 'translate';
40
- return esc_attr( $fn( $text, 'freemius' ) );
41
- }
42
-
43
- /**
44
- * Retrieve the translation of $text and escapes it for safe use in HTML output.
45
- *
46
- * @since 1.2.1.6
47
- *
48
- * @param string $text
49
- *
50
- * @return string
51
- */
52
- function _fs_esc_html( $text ) {
53
- // Avoid misleading Theme Check warning.
54
- $fn = 'translate';
55
- return esc_html( $fn( $text, 'freemius' ) );
56
- }
57
-
58
- /**
59
- * Display translated text.
60
- *
61
- * @since 1.2.0
62
- *
63
- * @param string $text
64
- */
65
- function _fs_echo( $text ) {
66
- // Avoid misleading Theme Check warning.
67
- $fn = 'translate';
68
- echo $fn( $text, 'freemius' );
69
- }
70
-
71
- /**
72
- * Display translated text that has been escaped for safe use in an attribute.
73
- *
74
- * @since 1.2.1.6
75
- *
76
- * @param string $text
77
- */
78
- function _fs_esc_attr_echo( $text ) {
79
- // Avoid misleading Theme Check warning.
80
- $fn = 'translate';
81
- echo esc_attr( $fn( $text, 'freemius' ) );
82
- }
83
-
84
- /**
85
- * Display translated text that has been escaped for safe use in HTML output.
86
- *
87
- * @since 1.2.1.6
88
- *
89
- * @param string $text
90
- */
91
- function _fs_esc_html_echo( $text ) {
92
- // Avoid misleading Theme Check warning.
93
- $fn = 'translate';
94
- echo esc_html( $fn( $text, 'freemius' ) );
95
- }
96
-
97
- /**
98
- * Retrieve translated string with gettext context.
99
- *
100
- * Quite a few times, there will be collisions with similar translatable text
101
- * found in more than two places, but with different translated context.
102
- *
103
- * By including the context in the pot file, translators can translate the two
104
- * strings differently.
105
- *
106
- * @since 1.2.1.6
107
- *
108
- * @param string $text
109
- * @param string $context
110
- *
111
- * @return string
112
- */
113
- function _fs_x( $text, $context ) {
114
- // Avoid misleading Theme Check warning.
115
- $fn = 'translate_with_gettext_context';
116
- return $fn( $text, $context, 'freemius' );
117
- }
118
-
119
- /**
120
- * Display translated string with gettext context.
121
- *
122
- * @since 1.2.1.6
123
- *
124
- * @param string $text
125
- * @param string $context
126
- */
127
- function _fs_ex( $text, $context ) {
128
- // Avoid misleading Theme Check warning.
129
- $fn = '_x';
130
- echo $fn( $text, $context, 'freemius' );
131
- }
132
-
133
- /**
134
- * Translate string with gettext context, and escapes it for safe use in an attribute.
135
- *
136
- * @since 1.2.1.6
137
- *
138
- * @param string $text
139
- * @param string $context
140
- *
141
- * @return string
142
- */
143
- function _fs_esc_attr_x( $text, $context ) {
144
- // Avoid misleading Theme Check warning.
145
- $fn = 'translate_with_gettext_context';
146
- return esc_attr( $fn( $text, $context, 'freemius' ) );
147
- }
148
-
149
- /**
150
- * Translate string with gettext context, and escapes it for safe use in HTML output.
151
- *
152
- * @since 2.9.0
153
- *
154
- * @param string $text
155
- * @param string $context
156
- *
157
- * @return string
158
- */
159
- function _fs_esc_html_x( $text, $context ) {
160
- // Avoid misleading Theme Check warning.
161
- $fn = 'translate_with_gettext_context';
162
- return esc_html( $fn( $text, $context, 'freemius' ) );
163
- }
164
-
165
- /**
166
- * Translates and retrieves the singular or plural form based on the supplied number.
167
- *
168
- * @since 1.2.1.6
169
- *
170
- * @param string $single
171
- * @param string $plural
172
- * @param int $number
173
- *
174
- * @return string
175
- */
176
- function _fs_n( $single, $plural, $number ) {
177
- $translations = get_translations_for_domain( 'freemius' );
178
- $translation = $translations->translate_plural( $single, $plural, $number );
179
-
180
- /**
181
- * Filters the singular or plural form of a string.
182
- *
183
- * @since WP 2.2.0
184
- *
185
- * @param string $translation
186
- * @param string $single
187
- * @param string $plural
188
- * @param string $number
189
- * @param string $domain
190
- */
191
- return apply_filters( 'ngettext', $translation, $single, $plural, $number, 'freemius' );
192
- }
193
-
194
- /**
195
- * Translates and retrieves the singular or plural form based on the supplied number, with gettext context.
196
- *
197
- * @since 1.2.1.6
198
- *
199
- * @param string $single
200
- * @param string $plural
201
- * @param int $number
202
- * @param string $context
203
- *
204
- * @return string
205
- */
206
- function _fs_nx($single, $plural, $number, $context ) {
207
- $translations = get_translations_for_domain( 'freemius' );
208
- $translation = $translations->translate_plural( $single, $plural, $number, $context );
209
-
210
- /**
211
- * Filters the singular or plural form of a string with gettext context.
212
- *
213
- * @since WP 3.0
214
- *
215
- * @param string $translation
216
- * @param string $single
217
- * @param string $plural
218
- * @param string $number
219
- * @param string $context
220
- * @param string $domain
221
- */
222
- return apply_filters( 'ngettext_with_context', $translation, $single, $plural, $number, $context, 'freemius' );
223
- }
224
-
225
- /**
226
- * Registers plural strings in POT file, but does not translate them.
227
- *
228
- * Used when you want to keep structures with translatable plural
229
- * strings and use them later when the number is known.
230
- *
231
- * @since 1.2.1.6
232
- *
233
- * @param string $singular
234
- * @param string $plural
235
- *
236
- * @return array
237
- */
238
- function _fs_n_noop( $singular, $plural ) {
239
- return array(
240
- 'singular' => $singular,
241
- 'plural' => $plural,
242
- 'context' => null,
243
- 'domain' => 'freemius'
244
- );
245
- }
246
-
247
- /**
248
- * Registers plural strings with gettext context in POT file, but does not translate them.
249
- *
250
- * Used when you want to keep structures with translatable plural
251
- * strings and use them later when the number is known.
252
- *
253
- * @since 1.2.1.6
254
- *
255
- * @param string $singular
256
- * @param string $plural
257
- * @param string $context
258
- *
259
- * @return array
260
- */
261
- function _fs_nx_noop( $singular, $plural, $context ) {
262
- return array(
263
- 'singular' => $singular,
264
- 'plural' => $plural,
265
- 'context' => $context,
266
- 'domain' => 'freemius'
267
- );
268
- }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.2.1.6
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ /**
14
+ * Retrieve the translation of $text.
15
+ *
16
+ * @since 1.2.1.6
17
+ *
18
+ * @param string $text
19
+ *
20
+ * @return string
21
+ */
22
+ function _fs_text( $text ) {
23
+ // Avoid misleading Theme Check warning.
24
+ $fn = 'translate';
25
+ return $fn( $text, 'freemius' );
26
+ }
27
+
28
+ /**
29
+ * Retrieve the translation of $text and escapes it for safe use in an attribute.
30
+ *
31
+ * @since 1.2.1.6
32
+ *
33
+ * @param string $text
34
+ *
35
+ * @return string
36
+ */
37
+ function _fs_esc_attr( $text ) {
38
+ // Avoid misleading Theme Check warning.
39
+ $fn = 'translate';
40
+ return esc_attr( $fn( $text, 'freemius' ) );
41
+ }
42
+
43
+ /**
44
+ * Retrieve the translation of $text and escapes it for safe use in HTML output.
45
+ *
46
+ * @since 1.2.1.6
47
+ *
48
+ * @param string $text
49
+ *
50
+ * @return string
51
+ */
52
+ function _fs_esc_html( $text ) {
53
+ // Avoid misleading Theme Check warning.
54
+ $fn = 'translate';
55
+ return esc_html( $fn( $text, 'freemius' ) );
56
+ }
57
+
58
+ /**
59
+ * Display translated text.
60
+ *
61
+ * @since 1.2.0
62
+ *
63
+ * @param string $text
64
+ */
65
+ function _fs_echo( $text ) {
66
+ // Avoid misleading Theme Check warning.
67
+ $fn = 'translate';
68
+ echo $fn( $text, 'freemius' );
69
+ }
70
+
71
+ /**
72
+ * Display translated text that has been escaped for safe use in an attribute.
73
+ *
74
+ * @since 1.2.1.6
75
+ *
76
+ * @param string $text
77
+ */
78
+ function _fs_esc_attr_echo( $text ) {
79
+ // Avoid misleading Theme Check warning.
80
+ $fn = 'translate';
81
+ echo esc_attr( $fn( $text, 'freemius' ) );
82
+ }
83
+
84
+ /**
85
+ * Display translated text that has been escaped for safe use in HTML output.
86
+ *
87
+ * @since 1.2.1.6
88
+ *
89
+ * @param string $text
90
+ */
91
+ function _fs_esc_html_echo( $text ) {
92
+ // Avoid misleading Theme Check warning.
93
+ $fn = 'translate';
94
+ echo esc_html( $fn( $text, 'freemius' ) );
95
+ }
96
+
97
+ /**
98
+ * Retrieve translated string with gettext context.
99
+ *
100
+ * Quite a few times, there will be collisions with similar translatable text
101
+ * found in more than two places, but with different translated context.
102
+ *
103
+ * By including the context in the pot file, translators can translate the two
104
+ * strings differently.
105
+ *
106
+ * @since 1.2.1.6
107
+ *
108
+ * @param string $text
109
+ * @param string $context
110
+ *
111
+ * @return string
112
+ */
113
+ function _fs_x( $text, $context ) {
114
+ // Avoid misleading Theme Check warning.
115
+ $fn = 'translate_with_gettext_context';
116
+ return $fn( $text, $context, 'freemius' );
117
+ }
118
+
119
+ /**
120
+ * Display translated string with gettext context.
121
+ *
122
+ * @since 1.2.1.6
123
+ *
124
+ * @param string $text
125
+ * @param string $context
126
+ */
127
+ function _fs_ex( $text, $context ) {
128
+ // Avoid misleading Theme Check warning.
129
+ $fn = '_x';
130
+ echo $fn( $text, $context, 'freemius' );
131
+ }
132
+
133
+ /**
134
+ * Translate string with gettext context, and escapes it for safe use in an attribute.
135
+ *
136
+ * @since 1.2.1.6
137
+ *
138
+ * @param string $text
139
+ * @param string $context
140
+ *
141
+ * @return string
142
+ */
143
+ function _fs_esc_attr_x( $text, $context ) {
144
+ // Avoid misleading Theme Check warning.
145
+ $fn = 'translate_with_gettext_context';
146
+ return esc_attr( $fn( $text, $context, 'freemius' ) );
147
+ }
148
+
149
+ /**
150
+ * Translate string with gettext context, and escapes it for safe use in HTML output.
151
+ *
152
+ * @since 2.9.0
153
+ *
154
+ * @param string $text
155
+ * @param string $context
156
+ *
157
+ * @return string
158
+ */
159
+ function _fs_esc_html_x( $text, $context ) {
160
+ // Avoid misleading Theme Check warning.
161
+ $fn = 'translate_with_gettext_context';
162
+ return esc_html( $fn( $text, $context, 'freemius' ) );
163
+ }
164
+
165
+ /**
166
+ * Translates and retrieves the singular or plural form based on the supplied number.
167
+ *
168
+ * @since 1.2.1.6
169
+ *
170
+ * @param string $single
171
+ * @param string $plural
172
+ * @param int $number
173
+ *
174
+ * @return string
175
+ */
176
+ function _fs_n( $single, $plural, $number ) {
177
+ $translations = get_translations_for_domain( 'freemius' );
178
+ $translation = $translations->translate_plural( $single, $plural, $number );
179
+
180
+ /**
181
+ * Filters the singular or plural form of a string.
182
+ *
183
+ * @since WP 2.2.0
184
+ *
185
+ * @param string $translation
186
+ * @param string $single
187
+ * @param string $plural
188
+ * @param string $number
189
+ * @param string $domain
190
+ */
191
+ return apply_filters( 'ngettext', $translation, $single, $plural, $number, 'freemius' );
192
+ }
193
+
194
+ /**
195
+ * Translates and retrieves the singular or plural form based on the supplied number, with gettext context.
196
+ *
197
+ * @since 1.2.1.6
198
+ *
199
+ * @param string $single
200
+ * @param string $plural
201
+ * @param int $number
202
+ * @param string $context
203
+ *
204
+ * @return string
205
+ */
206
+ function _fs_nx($single, $plural, $number, $context ) {
207
+ $translations = get_translations_for_domain( 'freemius' );
208
+ $translation = $translations->translate_plural( $single, $plural, $number, $context );
209
+
210
+ /**
211
+ * Filters the singular or plural form of a string with gettext context.
212
+ *
213
+ * @since WP 3.0
214
+ *
215
+ * @param string $translation
216
+ * @param string $single
217
+ * @param string $plural
218
+ * @param string $number
219
+ * @param string $context
220
+ * @param string $domain
221
+ */
222
+ return apply_filters( 'ngettext_with_context', $translation, $single, $plural, $number, $context, 'freemius' );
223
+ }
224
+
225
+ /**
226
+ * Registers plural strings in POT file, but does not translate them.
227
+ *
228
+ * Used when you want to keep structures with translatable plural
229
+ * strings and use them later when the number is known.
230
+ *
231
+ * @since 1.2.1.6
232
+ *
233
+ * @param string $singular
234
+ * @param string $plural
235
+ *
236
+ * @return array
237
+ */
238
+ function _fs_n_noop( $singular, $plural ) {
239
+ return array(
240
+ 'singular' => $singular,
241
+ 'plural' => $plural,
242
+ 'context' => null,
243
+ 'domain' => 'freemius'
244
+ );
245
+ }
246
+
247
+ /**
248
+ * Registers plural strings with gettext context in POT file, but does not translate them.
249
+ *
250
+ * Used when you want to keep structures with translatable plural
251
+ * strings and use them later when the number is known.
252
+ *
253
+ * @since 1.2.1.6
254
+ *
255
+ * @param string $singular
256
+ * @param string $plural
257
+ * @param string $context
258
+ *
259
+ * @return array
260
+ */
261
+ function _fs_nx_noop( $singular, $plural, $context ) {
262
+ return array(
263
+ 'singular' => $singular,
264
+ 'plural' => $plural,
265
+ 'context' => $context,
266
+ 'domain' => 'freemius'
267
+ );
268
+ }
freemius/includes/managers/class-fs-admin-menu-manager.php CHANGED
@@ -1,849 +1,849 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.1.3
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_Admin_Menu_Manager {
14
-
15
- #region Properties
16
-
17
- /**
18
- * @since 1.2.2
19
- *
20
- * @var string
21
- */
22
- protected $_module_unique_affix;
23
-
24
- /**
25
- * @since 1.2.2
26
- *
27
- * @var number
28
- */
29
- protected $_module_id;
30
-
31
- /**
32
- * @since 1.2.2
33
- *
34
- * @var string
35
- */
36
- protected $_module_type;
37
-
38
- /**
39
- * @since 1.0.6
40
- *
41
- * @var string
42
- */
43
- private $_menu_slug;
44
- /**
45
- * @since 1.1.3
46
- *
47
- * @var string
48
- */
49
- private $_parent_slug;
50
- /**
51
- * @since 1.1.3
52
- *
53
- * @var string
54
- */
55
- private $_parent_type;
56
- /**
57
- * @since 1.1.3
58
- *
59
- * @var string
60
- */
61
- private $_type;
62
- /**
63
- * @since 1.1.3
64
- *
65
- * @var bool
66
- */
67
- private $_is_top_level;
68
- /**
69
- * @since 1.1.3
70
- *
71
- * @var bool
72
- */
73
- private $_is_override_exact;
74
- /**
75
- * @since 1.1.3
76
- *
77
- * @var array<string,bool>
78
- */
79
- private $_default_submenu_items;
80
- /**
81
- * @since 1.1.3
82
- *
83
- * @var string
84
- */
85
- private $_first_time_path;
86
- /**
87
- * @since 1.2.2
88
- *
89
- * @var bool
90
- */
91
- private $_menu_exists;
92
-
93
- #endregion Properties
94
-
95
- /**
96
- * @var FS_Logger
97
- */
98
- protected $_logger;
99
-
100
- #region Singleton
101
-
102
- /**
103
- * @var FS_Admin_Menu_Manager[]
104
- */
105
- private static $_instances = array();
106
-
107
- /**
108
- * @param number $module_id
109
- * @param string $module_type
110
- * @param string $module_unique_affix
111
- *
112
- * @return FS_Admin_Menu_Manager
113
- */
114
- static function instance( $module_id, $module_type, $module_unique_affix ) {
115
- $key = 'm_' . $module_id;
116
-
117
- if ( ! isset( self::$_instances[ $key ] ) ) {
118
- self::$_instances[ $key ] = new FS_Admin_Menu_Manager( $module_id, $module_type, $module_unique_affix );
119
- }
120
-
121
- return self::$_instances[ $key ];
122
- }
123
-
124
- protected function __construct( $module_id, $module_type, $module_unique_affix ) {
125
- $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $module_id . '_admin_menu', WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
126
-
127
- $this->_module_id = $module_id;
128
- $this->_module_type = $module_type;
129
- $this->_module_unique_affix = $module_unique_affix;
130
- }
131
-
132
- #endregion Singleton
133
-
134
- #region Helpers
135
-
136
- private function get_option( &$options, $key, $default = false ) {
137
- return ! empty( $options[ $key ] ) ? $options[ $key ] : $default;
138
- }
139
-
140
- private function get_bool_option( &$options, $key, $default = false ) {
141
- return isset( $options[ $key ] ) && is_bool( $options[ $key ] ) ? $options[ $key ] : $default;
142
- }
143
-
144
- #endregion Helpers
145
-
146
- /**
147
- * @param array $menu
148
- * @param bool $is_addon
149
- */
150
- function init( $menu, $is_addon = false ) {
151
- $this->_menu_exists = ( isset( $menu['slug'] ) && ! empty( $menu['slug'] ) );
152
-
153
- $this->_menu_slug = ( $this->_menu_exists ? $menu['slug'] : $this->_module_unique_affix );
154
-
155
- $this->_default_submenu_items = array();
156
- // @deprecated
157
- $this->_type = 'page';
158
- $this->_is_top_level = true;
159
- $this->_is_override_exact = false;
160
- $this->_parent_slug = false;
161
- // @deprecated
162
- $this->_parent_type = 'page';
163
-
164
- if ( ! $is_addon && isset( $menu ) ) {
165
- $this->_default_submenu_items = array(
166
- 'contact' => $this->get_bool_option( $menu, 'contact', true ),
167
- 'support' => $this->get_bool_option( $menu, 'support', true ),
168
- 'account' => $this->get_bool_option( $menu, 'account', true ),
169
- 'pricing' => $this->get_bool_option( $menu, 'pricing', true ),
170
- 'addons' => $this->get_bool_option( $menu, 'addons', true ),
171
- );
172
-
173
- // @deprecated
174
- $this->_type = $this->get_option( $menu, 'type', 'page' );
175
- $this->_is_override_exact = $this->get_bool_option( $menu, 'override_exact' );
176
-
177
- if ( isset( $menu['parent'] ) ) {
178
- $this->_parent_slug = $this->get_option( $menu['parent'], 'slug' );
179
- // @deprecated
180
- $this->_parent_type = $this->get_option( $menu['parent'], 'type', 'page' );
181
-
182
- // If parent's slug is different, then it's NOT a top level menu item.
183
- $this->_is_top_level = ( $this->_parent_slug === $this->_menu_slug );
184
- } else {
185
- /**
186
- * If no parent then top level if:
187
- * - Has custom admin menu ('page')
188
- * - CPT menu type ('cpt')
189
- */
190
- // $this->_is_top_level = in_array( $this->_type, array(
191
- // 'cpt',
192
- // 'page'
193
- // ) );
194
- }
195
-
196
- $this->_first_time_path = $this->get_option( $menu, 'first-path', false );
197
- if ( ! empty( $this->_first_time_path ) && is_string( $this->_first_time_path ) ) {
198
- $this->_first_time_path = admin_url( $this->_first_time_path, 'admin' );
199
- }
200
- }
201
- }
202
-
203
- /**
204
- * Check if top level menu.
205
- *
206
- * @author Vova Feldman (@svovaf)
207
- * @since 1.1.3
208
- *
209
- * @return bool False if submenu item.
210
- */
211
- function is_top_level() {
212
- return $this->_is_top_level;
213
- }
214
-
215
- /**
216
- * Check if the page should be override on exact URL match.
217
- *
218
- * @author Vova Feldman (@svovaf)
219
- * @since 1.1.3
220
- *
221
- * @return bool False if submenu item.
222
- */
223
- function is_override_exact() {
224
- return $this->_is_override_exact;
225
- }
226
-
227
-
228
- /**
229
- * Get the path of the page the user should be forwarded to after first activation.
230
- *
231
- * @author Vova Feldman (@svovaf)
232
- * @since 1.1.3
233
- *
234
- * @return string
235
- */
236
- function get_first_time_path() {
237
- return $this->_first_time_path;
238
- }
239
-
240
- /**
241
- * Check if plugin's menu item is part of a custom top level menu.
242
- *
243
- * @author Vova Feldman (@svovaf)
244
- * @since 1.1.3
245
- *
246
- * @return bool
247
- */
248
- function has_custom_parent() {
249
- return ! $this->_is_top_level && is_string( $this->_parent_slug );
250
- }
251
-
252
- /**
253
- * @author Leo Fajardo (@leorw)
254
- * @since 1.2.2
255
- *
256
- * @return bool
257
- */
258
- function has_menu() {
259
- return $this->_menu_exists;
260
- }
261
-
262
- /**
263
- * @author Vova Feldman (@svovaf)
264
- * @since 1.1.3
265
- *
266
- * @param string $id
267
- * @param bool $default
268
- * @param bool $ignore_menu_existence Since 1.2.2.7 If true, check if the submenu item visible even if there's no parent menu.
269
- *
270
- * @return bool
271
- */
272
- function is_submenu_item_visible( $id, $default = true, $ignore_menu_existence = false ) {
273
- if ( ! $ignore_menu_existence && ! $this->has_menu() ) {
274
- return false;
275
- }
276
-
277
- return fs_apply_filter(
278
- $this->_module_unique_affix,
279
- 'is_submenu_visible',
280
- $this->get_bool_option( $this->_default_submenu_items, $id, $default ),
281
- $id
282
- );
283
- }
284
-
285
- /**
286
- * Calculates admin settings menu slug.
287
- * If plugin's menu slug is a file (e.g. CPT), uses plugin's slug as the menu slug.
288
- *
289
- * @author Vova Feldman (@svovaf)
290
- * @since 1.1.3
291
- *
292
- * @param string $page
293
- *
294
- * @return string
295
- */
296
- function get_slug( $page = '' ) {
297
- return ( ( false === strpos( $this->_menu_slug, '.php?' ) ) ?
298
- $this->_menu_slug :
299
- $this->_module_unique_affix ) . ( empty( $page ) ? '' : ( '-' . $page ) );
300
- }
301
-
302
- /**
303
- * @author Vova Feldman (@svovaf)
304
- * @since 1.1.3
305
- *
306
- * @return string
307
- */
308
- function get_parent_slug() {
309
- return $this->_parent_slug;
310
- }
311
-
312
- /**
313
- * @author Vova Feldman (@svovaf)
314
- * @since 1.1.3
315
- *
316
- * @return string
317
- */
318
- function get_type() {
319
- return $this->_type;
320
- }
321
-
322
- /**
323
- * @author Vova Feldman (@svovaf)
324
- * @since 1.1.3
325
- *
326
- * @return bool
327
- */
328
- function is_cpt() {
329
- return ( 0 === strpos( $this->_menu_slug, 'edit.php?post_type=' ) ||
330
- // Back compatibility.
331
- 'cpt' === $this->_type
332
- );
333
- }
334
-
335
- /**
336
- * @author Vova Feldman (@svovaf)
337
- * @since 1.1.3
338
- *
339
- * @return string
340
- */
341
- function get_parent_type() {
342
- return $this->_parent_type;
343
- }
344
-
345
- /**
346
- * @author Vova Feldman (@svovaf)
347
- * @since 1.1.3
348
- *
349
- * @return string
350
- */
351
- function get_raw_slug() {
352
- return $this->_menu_slug;
353
- }
354
-
355
- /**
356
- * Get plugin's original menu slug.
357
- *
358
- * @author Vova Feldman (@svovaf)
359
- * @since 1.1.3
360
- *
361
- * @return string
362
- */
363
- function get_original_menu_slug() {
364
- if ( 'cpt' === $this->_type ) {
365
- return add_query_arg( array(
366
- 'post_type' => $this->_menu_slug
367
- ), 'edit.php' );
368
- }
369
-
370
- if ( false === strpos( $this->_menu_slug, '.php?' ) ) {
371
- return $this->_menu_slug;
372
- } else {
373
- return $this->_module_unique_affix;
374
- }
375
- }
376
-
377
- /**
378
- * @author Vova Feldman (@svovaf)
379
- * @since 1.1.3
380
- *
381
- * @return string
382
- */
383
- function get_top_level_menu_slug() {
384
- return $this->has_custom_parent() ?
385
- $this->get_parent_slug() :
386
- $this->get_raw_slug();
387
- }
388
-
389
- /**
390
- * Is user on plugin's admin activation page.
391
- *
392
- * @author Vova Feldman (@svovaf)
393
- * @since 1.0.8
394
- *
395
- * @return bool
396
- */
397
- function is_main_settings_page() {
398
- if ( $this->_menu_exists &&
399
- ( fs_is_plugin_page( $this->_menu_slug ) || fs_is_plugin_page( $this->_module_unique_affix ) )
400
- ) {
401
- /**
402
- * Module has a settings menu and the context page is the main settings page, so assume it's in
403
- * activation (doesn't really check if already opted-in/skipped or not).
404
- *
405
- * @since 1.2.2
406
- */
407
- return true;
408
- }
409
-
410
- global $pagenow;
411
- if ( ( WP_FS__MODULE_TYPE_THEME === $this->_module_type ) && Freemius::is_themes_page() ) {
412
- /**
413
- * In activation only when show_optin query string param is given.
414
- *
415
- * @since 1.2.2
416
- */
417
- return fs_request_get_bool( $this->_module_unique_affix . '_show_optin' );
418
- }
419
-
420
- return false;
421
- }
422
-
423
- #region Submenu Override
424
-
425
- /**
426
- * Override submenu's action.
427
- *
428
- * @author Vova Feldman (@svovaf)
429
- * @since 1.1.0
430
- *
431
- * @param string $parent_slug
432
- * @param string $menu_slug
433
- * @param callable $function
434
- *
435
- * @return false|string If submenu exist, will return the hook name.
436
- */
437
- function override_submenu_action( $parent_slug, $menu_slug, $function ) {
438
- global $submenu;
439
-
440
- $menu_slug = plugin_basename( $menu_slug );
441
- $parent_slug = plugin_basename( $parent_slug );
442
-
443
- if ( ! isset( $submenu[ $parent_slug ] ) ) {
444
- // Parent menu not exist.
445
- return false;
446
- }
447
-
448
- $found_submenu_item = false;
449
- foreach ( $submenu[ $parent_slug ] as $submenu_item ) {
450
- if ( $menu_slug === $submenu_item[2] ) {
451
- $found_submenu_item = $submenu_item;
452
- break;
453
- }
454
- }
455
-
456
- if ( false === $found_submenu_item ) {
457
- // Submenu item not found.
458
- return false;
459
- }
460
-
461
- // Remove current function.
462
- $hookname = get_plugin_page_hookname( $menu_slug, $parent_slug );
463
- remove_all_actions( $hookname );
464
-
465
- // Attach new action.
466
- add_action( $hookname, $function );
467
-
468
- return $hookname;
469
- }
470
-
471
- #endregion Submenu Override
472
-
473
- #region Top level menu Override
474
-
475
- /**
476
- * Find plugin's admin dashboard main menu item.
477
- *
478
- * @author Vova Feldman (@svovaf)
479
- * @since 1.0.2
480
- *
481
- * @return string[]|false
482
- */
483
- private function find_top_level_menu() {
484
- global $menu;
485
-
486
- $position = - 1;
487
- $found_menu = false;
488
-
489
- $menu_slug = $this->get_raw_slug();
490
-
491
- $hook_name = get_plugin_page_hookname( $menu_slug, '' );
492
- foreach ( $menu as $pos => $m ) {
493
- if ( $menu_slug === $m[2] ) {
494
- $position = $pos;
495
- $found_menu = $m;
496
- break;
497
- }
498
- }
499
-
500
- if ( false === $found_menu ) {
501
- return false;
502
- }
503
-
504
- return array(
505
- 'menu' => $found_menu,
506
- 'position' => $position,
507
- 'hook_name' => $hook_name
508
- );
509
- }
510
-
511
- /**
512
- * Find plugin's admin dashboard main submenu item.
513
- *
514
- * @author Vova Feldman (@svovaf)
515
- * @since 1.2.1.6
516
- *
517
- * @return array|false
518
- */
519
- private function find_main_submenu() {
520
- global $submenu;
521
-
522
- $top_level_menu_slug = $this->get_top_level_menu_slug();
523
-
524
- if ( ! isset( $submenu[ $top_level_menu_slug ] ) ) {
525
- return false;
526
- }
527
-
528
- $submenu_slug = $this->get_raw_slug();
529
-
530
- $position = - 1;
531
- $found_submenu = false;
532
-
533
- $hook_name = get_plugin_page_hookname( $submenu_slug, '' );
534
-
535
- foreach ( $submenu[ $top_level_menu_slug ] as $pos => $sub ) {
536
- if ( $submenu_slug === $sub[2] ) {
537
- $position = $pos;
538
- $found_submenu = $sub;
539
- }
540
- }
541
-
542
- if ( false === $found_submenu ) {
543
- return false;
544
- }
545
-
546
- return array(
547
- 'menu' => $found_submenu,
548
- 'parent_slug' => $top_level_menu_slug,
549
- 'position' => $position,
550
- 'hook_name' => $hook_name
551
- );
552
- }
553
-
554
- /**
555
- * Remove all sub-menu items.
556
- *
557
- * @author Vova Feldman (@svovaf)
558
- * @since 1.0.7
559
- *
560
- * @return bool If submenu with plugin's menu slug was found.
561
- */
562
- private function remove_all_submenu_items() {
563
- global $submenu;
564
-
565
- $menu_slug = $this->get_raw_slug();
566
-
567
- if ( ! isset( $submenu[ $menu_slug ] ) ) {
568
- return false;
569
- }
570
-
571
- /**
572
- * This method is NOT executed for WordPress.org themes.
573
- * Since we maintain only one version of the SDK we added this small
574
- * hack to avoid the error from Theme Check since it's a false-positive.
575
- *
576
- * @author Vova Feldman (@svovaf)
577
- * @since 1.2.2.7
578
- */
579
- $submenu_ref = &$submenu;
580
- $submenu_ref[ $menu_slug ] = array();
581
-
582
- return true;
583
- }
584
-
585
- /**
586
- *
587
- * @author Vova Feldman (@svovaf)
588
- * @since 1.0.9
589
- *
590
- * @return false|array[string]mixed
591
- */
592
- function remove_menu_item() {
593
- $this->_logger->entrance();
594
-
595
- // Find main menu item.
596
- $menu = $this->find_top_level_menu();
597
-
598
- if ( false === $menu ) {
599
- return false;
600
- }
601
-
602
- // Remove it with its actions.
603
- remove_all_actions( $menu['hook_name'] );
604
-
605
- // Remove all submenu items.
606
- $this->remove_all_submenu_items();
607
-
608
- return $menu;
609
- }
610
-
611
- /**
612
- * Get module's main admin setting page URL.
613
- *
614
- * @todo This method was only tested for wp.org compliant themes with a submenu item. Need to test for plugins with top level, submenu, and CPT top level, menu items.
615
- *
616
- * @author Vova Feldman (@svovaf)
617
- * @since 1.2.2.7
618
- *
619
- * @return string
620
- */
621
- function main_menu_url() {
622
- $this->_logger->entrance();
623
-
624
- if ( $this->_is_top_level ) {
625
- $menu = $this->find_top_level_menu();
626
- } else {
627
- $menu = $this->find_main_submenu();
628
- }
629
-
630
- $parent_slug = isset( $menu['parent_slug'] ) ?
631
- $menu['parent_slug'] :
632
- 'admin.php';
633
-
634
- return admin_url( $parent_slug . '?page=' . $menu['menu'][2] );
635
- }
636
-
637
- /**
638
- * @author Vova Feldman (@svovaf)
639
- * @since 1.1.4
640
- *
641
- * @param callable $function
642
- *
643
- * @return false|array[string]mixed
644
- */
645
- function override_menu_item( $function ) {
646
- $found_menu = $this->remove_menu_item();
647
-
648
- if ( false === $found_menu ) {
649
- return false;
650
- }
651
-
652
- if ( ! $this->is_top_level() || ! $this->is_cpt() ) {
653
- $menu_slug = plugin_basename( $this->get_slug() );
654
-
655
- $hookname = get_plugin_page_hookname( $menu_slug, '' );
656
-
657
- // Override menu action.
658
- add_action( $hookname, $function );
659
- } else {
660
- global $menu;
661
-
662
- // Remove original CPT menu.
663
- unset( $menu[ $found_menu['position'] ] );
664
-
665
- // Create new top-level menu action.
666
- $hookname = self::add_page(
667
- $found_menu['menu'][3],
668
- $found_menu['menu'][0],
669
- 'manage_options',
670
- $this->get_slug(),
671
- $function,
672
- $found_menu['menu'][6],
673
- $found_menu['position']
674
- );
675
- }
676
-
677
- return $hookname;
678
- }
679
-
680
- /**
681
- * Adds a counter to the module's top level menu item.
682
- *
683
- * @author Vova Feldman (@svovaf)
684
- * @since 1.2.1.5
685
- *
686
- * @param int $counter
687
- * @param string $class
688
- */
689
- function add_counter_to_menu_item( $counter = 1, $class = '' ) {
690
- global $menu, $submenu;
691
-
692
- $mask = '%s <span class="update-plugins %s count-%3$s" aria-hidden="true"><span>%3$s<span class="screen-reader-text">%3$s notifications</span></span></span>';
693
-
694
- /**
695
- * This method is NOT executed for WordPress.org themes.
696
- * Since we maintain only one version of the SDK we added this small
697
- * hack to avoid the error from Theme Check since it's a false-positive.
698
- *
699
- * @author Vova Feldman (@svovaf)
700
- * @since 1.2.2.7
701
- */
702
- $menu_ref = &$menu;
703
- $submenu_ref = &$submenu;
704
-
705
- if ( $this->_is_top_level ) {
706
- // Find main menu item.
707
- $found_menu = $this->find_top_level_menu();
708
-
709
- if ( false !== $found_menu ) {
710
- // Override menu label.
711
- $menu_ref[ $found_menu['position'] ][0] = sprintf(
712
- $mask,
713
- $found_menu['menu'][0],
714
- $class,
715
- $counter
716
- );
717
- }
718
- } else {
719
- $found_submenu = $this->find_main_submenu();
720
-
721
- if ( false !== $found_submenu ) {
722
- // Override menu label.
723
- $submenu_ref[ $found_submenu['parent_slug'] ][ $found_submenu['position'] ][0] = sprintf(
724
- $mask,
725
- $found_submenu['menu'][0],
726
- $class,
727
- $counter
728
- );
729
- }
730
- }
731
- }
732
-
733
- #endregion Top level menu Override
734
-
735
- /**
736
- * Add a top-level menu page.
737
- *
738
- * Note for WordPress.org Theme/Plugin reviewer:
739
- *
740
- * This is a replication of `add_menu_page()` to avoid Theme Check warning.
741
- *
742
- * Why?
743
- * ====
744
- * Freemius is an SDK for plugin and theme developers. Since the core
745
- * of the SDK is relevant both for plugins and themes, for obvious reasons,
746
- * we only develop and maintain one code base.
747
- *
748
- * This method will not run for wp.org themes (only plugins) since theme
749
- * admin settings/options are now only allowed in the customizer.
750
- *
751
- * If you have any questions or need clarifications, please don't hesitate
752
- * pinging me on slack, my username is @svovaf.
753
- *
754
- * @author Vova Feldman (@svovaf)
755
- * @since 1.2.2
756
- *
757
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is
758
- * selected.
759
- * @param string $menu_title The text to be used for the menu.
760
- * @param string $capability The capability required for this menu to be displayed to the user.
761
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
762
- * @param callable|string $function The function to be called to output the content for this page.
763
- * @param string $icon_url The URL to the icon to be used for this menu.
764
- * * Pass a base64-encoded SVG using a data URI, which will be colored to
765
- * match the color scheme. This should begin with
766
- * 'data:image/svg+xml;base64,'.
767
- * * Pass the name of a Dashicons helper class to use a font icon,
768
- * e.g. 'dashicons-chart-pie'.
769
- * * Pass 'none' to leave div.wp-menu-image empty so an icon can be added
770
- * via CSS.
771
- * @param int $position The position in the menu order this one should appear.
772
- *
773
- * @return string The resulting page's hook_suffix.
774
- */
775
- static function add_page(
776
- $page_title,
777
- $menu_title,
778
- $capability,
779
- $menu_slug,
780
- $function = '',
781
- $icon_url = '',
782
- $position = null
783
- ) {
784
- $fn = 'add_menu' . '_page';
785
-
786
- return $fn(
787
- $page_title,
788
- $menu_title,
789
- $capability,
790
- $menu_slug,
791
- $function,
792
- $icon_url,
793
- $position
794
- );
795
- }
796
-
797
- /**
798
- * Add a submenu page.
799
- *
800
- * Note for WordPress.org Theme/Plugin reviewer:
801
- *
802
- * This is a replication of `add_submenu_page()` to avoid Theme Check warning.
803
- *
804
- * Why?
805
- * ====
806
- * Freemius is an SDK for plugin and theme developers. Since the core
807
- * of the SDK is relevant both for plugins and themes, for obvious reasons,
808
- * we only develop and maintain one code base.
809
- *
810
- * This method will not run for wp.org themes (only plugins) since theme
811
- * admin settings/options are now only allowed in the customizer.
812
- *
813
- * If you have any questions or need clarifications, please don't hesitate
814
- * pinging me on slack, my username is @svovaf.
815
- *
816
- * @author Vova Feldman (@svovaf)
817
- * @since 1.2.2
818
- *
819
- * @param string $parent_slug The slug name for the parent menu (or the file name of a standard
820
- * WordPress admin page).
821
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is
822
- * selected.
823
- * @param string $menu_title The text to be used for the menu.
824
- * @param string $capability The capability required for this menu to be displayed to the user.
825
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
826
- * @param callable|string $function The function to be called to output the content for this page.
827
- *
828
- * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability
829
- * required.
830
- */
831
- static function add_subpage(
832
- $parent_slug,
833
- $page_title,
834
- $menu_title,
835
- $capability,
836
- $menu_slug,
837
- $function = ''
838
- ) {
839
- $fn = 'add_submenu' . '_page';
840
-
841
- return $fn( $parent_slug,
842
- $page_title,
843
- $menu_title,
844
- $capability,
845
- $menu_slug,
846
- $function
847
- );
848
- }
849
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.1.3
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_Admin_Menu_Manager {
14
+
15
+ #region Properties
16
+
17
+ /**
18
+ * @since 1.2.2
19
+ *
20
+ * @var string
21
+ */
22
+ protected $_module_unique_affix;
23
+
24
+ /**
25
+ * @since 1.2.2
26
+ *
27
+ * @var number
28
+ */
29
+ protected $_module_id;
30
+
31
+ /**
32
+ * @since 1.2.2
33
+ *
34
+ * @var string
35
+ */
36
+ protected $_module_type;
37
+
38
+ /**
39
+ * @since 1.0.6
40
+ *
41
+ * @var string
42
+ */
43
+ private $_menu_slug;
44
+ /**
45
+ * @since 1.1.3
46
+ *
47
+ * @var string
48
+ */
49
+ private $_parent_slug;
50
+ /**
51
+ * @since 1.1.3
52
+ *
53
+ * @var string
54
+ */
55
+ private $_parent_type;
56
+ /**
57
+ * @since 1.1.3
58
+ *
59
+ * @var string
60
+ */
61
+ private $_type;
62
+ /**
63
+ * @since 1.1.3
64
+ *
65
+ * @var bool
66
+ */
67
+ private $_is_top_level;
68
+ /**
69
+ * @since 1.1.3
70
+ *
71
+ * @var bool
72
+ */
73
+ private $_is_override_exact;
74
+ /**
75
+ * @since 1.1.3
76
+ *
77
+ * @var array<string,bool>
78
+ */
79
+ private $_default_submenu_items;
80
+ /**
81
+ * @since 1.1.3
82
+ *
83
+ * @var string
84
+ */
85
+ private $_first_time_path;
86
+ /**
87
+ * @since 1.2.2
88
+ *
89
+ * @var bool
90
+ */
91
+ private $_menu_exists;
92
+
93
+ #endregion Properties
94
+
95
+ /**
96
+ * @var FS_Logger
97
+ */
98
+ protected $_logger;
99
+
100
+ #region Singleton
101
+
102
+ /**
103
+ * @var FS_Admin_Menu_Manager[]
104
+ */
105
+ private static $_instances = array();
106
+
107
+ /**
108
+ * @param number $module_id
109
+ * @param string $module_type
110
+ * @param string $module_unique_affix
111
+ *
112
+ * @return FS_Admin_Menu_Manager
113
+ */
114
+ static function instance( $module_id, $module_type, $module_unique_affix ) {
115
+ $key = 'm_' . $module_id;
116
+
117
+ if ( ! isset( self::$_instances[ $key ] ) ) {
118
+ self::$_instances[ $key ] = new FS_Admin_Menu_Manager( $module_id, $module_type, $module_unique_affix );
119
+ }
120
+
121
+ return self::$_instances[ $key ];
122
+ }
123
+
124
+ protected function __construct( $module_id, $module_type, $module_unique_affix ) {
125
+ $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $module_id . '_admin_menu', WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
126
+
127
+ $this->_module_id = $module_id;
128
+ $this->_module_type = $module_type;
129
+ $this->_module_unique_affix = $module_unique_affix;
130
+ }
131
+
132
+ #endregion Singleton
133
+
134
+ #region Helpers
135
+
136
+ private function get_option( &$options, $key, $default = false ) {
137
+ return ! empty( $options[ $key ] ) ? $options[ $key ] : $default;
138
+ }
139
+
140
+ private function get_bool_option( &$options, $key, $default = false ) {
141
+ return isset( $options[ $key ] ) && is_bool( $options[ $key ] ) ? $options[ $key ] : $default;
142
+ }
143
+
144
+ #endregion Helpers
145
+
146
+ /**
147
+ * @param array $menu
148
+ * @param bool $is_addon
149
+ */
150
+ function init( $menu, $is_addon = false ) {
151
+ $this->_menu_exists = ( isset( $menu['slug'] ) && ! empty( $menu['slug'] ) );
152
+
153
+ $this->_menu_slug = ( $this->_menu_exists ? $menu['slug'] : $this->_module_unique_affix );
154
+
155
+ $this->_default_submenu_items = array();
156
+ // @deprecated
157
+ $this->_type = 'page';
158
+ $this->_is_top_level = true;
159
+ $this->_is_override_exact = false;
160
+ $this->_parent_slug = false;
161
+ // @deprecated
162
+ $this->_parent_type = 'page';
163
+
164
+ if ( ! $is_addon && isset( $menu ) ) {
165
+ $this->_default_submenu_items = array(
166
+ 'contact' => $this->get_bool_option( $menu, 'contact', true ),
167
+ 'support' => $this->get_bool_option( $menu, 'support', true ),
168
+ 'account' => $this->get_bool_option( $menu, 'account', true ),
169
+ 'pricing' => $this->get_bool_option( $menu, 'pricing', true ),
170
+ 'addons' => $this->get_bool_option( $menu, 'addons', true ),
171
+ );
172
+
173
+ // @deprecated
174
+ $this->_type = $this->get_option( $menu, 'type', 'page' );
175
+ $this->_is_override_exact = $this->get_bool_option( $menu, 'override_exact' );
176
+
177
+ if ( isset( $menu['parent'] ) ) {
178
+ $this->_parent_slug = $this->get_option( $menu['parent'], 'slug' );
179
+ // @deprecated
180
+ $this->_parent_type = $this->get_option( $menu['parent'], 'type', 'page' );
181
+
182
+ // If parent's slug is different, then it's NOT a top level menu item.
183
+ $this->_is_top_level = ( $this->_parent_slug === $this->_menu_slug );
184
+ } else {
185
+ /**
186
+ * If no parent then top level if:
187
+ * - Has custom admin menu ('page')
188
+ * - CPT menu type ('cpt')
189
+ */
190
+ // $this->_is_top_level = in_array( $this->_type, array(
191
+ // 'cpt',
192
+ // 'page'
193
+ // ) );
194
+ }
195
+
196
+ $this->_first_time_path = $this->get_option( $menu, 'first-path', false );
197
+ if ( ! empty( $this->_first_time_path ) && is_string( $this->_first_time_path ) ) {
198
+ $this->_first_time_path = admin_url( $this->_first_time_path, 'admin' );
199
+ }
200
+ }
201
+ }
202
+
203
+ /**
204
+ * Check if top level menu.
205
+ *
206
+ * @author Vova Feldman (@svovaf)
207
+ * @since 1.1.3
208
+ *
209
+ * @return bool False if submenu item.
210
+ */
211
+ function is_top_level() {
212
+ return $this->_is_top_level;
213
+ }
214
+
215
+ /**
216
+ * Check if the page should be override on exact URL match.
217
+ *
218
+ * @author Vova Feldman (@svovaf)
219
+ * @since 1.1.3
220
+ *
221
+ * @return bool False if submenu item.
222
+ */
223
+ function is_override_exact() {
224
+ return $this->_is_override_exact;
225
+ }
226
+
227
+
228
+ /**
229
+ * Get the path of the page the user should be forwarded to after first activation.
230
+ *
231
+ * @author Vova Feldman (@svovaf)
232
+ * @since 1.1.3
233
+ *
234
+ * @return string
235
+ */
236
+ function get_first_time_path() {
237
+ return $this->_first_time_path;
238
+ }
239
+
240
+ /**
241
+ * Check if plugin's menu item is part of a custom top level menu.
242
+ *
243
+ * @author Vova Feldman (@svovaf)
244
+ * @since 1.1.3
245
+ *
246
+ * @return bool
247
+ */
248
+ function has_custom_parent() {
249
+ return ! $this->_is_top_level && is_string( $this->_parent_slug );
250
+ }
251
+
252
+ /**
253
+ * @author Leo Fajardo (@leorw)
254
+ * @since 1.2.2
255
+ *
256
+ * @return bool
257
+ */
258
+ function has_menu() {
259
+ return $this->_menu_exists;
260
+ }
261
+
262
+ /**
263
+ * @author Vova Feldman (@svovaf)
264
+ * @since 1.1.3
265
+ *
266
+ * @param string $id
267
+ * @param bool $default
268
+ * @param bool $ignore_menu_existence Since 1.2.2.7 If true, check if the submenu item visible even if there's no parent menu.
269
+ *
270
+ * @return bool
271
+ */
272
+ function is_submenu_item_visible( $id, $default = true, $ignore_menu_existence = false ) {
273
+ if ( ! $ignore_menu_existence && ! $this->has_menu() ) {
274
+ return false;
275
+ }
276
+
277
+ return fs_apply_filter(
278
+ $this->_module_unique_affix,
279
+ 'is_submenu_visible',
280
+ $this->get_bool_option( $this->_default_submenu_items, $id, $default ),
281
+ $id
282
+ );
283
+ }
284
+
285
+ /**
286
+ * Calculates admin settings menu slug.
287
+ * If plugin's menu slug is a file (e.g. CPT), uses plugin's slug as the menu slug.
288
+ *
289
+ * @author Vova Feldman (@svovaf)
290
+ * @since 1.1.3
291
+ *
292
+ * @param string $page
293
+ *
294
+ * @return string
295
+ */
296
+ function get_slug( $page = '' ) {
297
+ return ( ( false === strpos( $this->_menu_slug, '.php?' ) ) ?
298
+ $this->_menu_slug :
299
+ $this->_module_unique_affix ) . ( empty( $page ) ? '' : ( '-' . $page ) );
300
+ }
301
+
302
+ /**
303
+ * @author Vova Feldman (@svovaf)
304
+ * @since 1.1.3
305
+ *
306
+ * @return string
307
+ */
308
+ function get_parent_slug() {
309
+ return $this->_parent_slug;
310
+ }
311
+
312
+ /**
313
+ * @author Vova Feldman (@svovaf)
314
+ * @since 1.1.3
315
+ *
316
+ * @return string
317
+ */
318
+ function get_type() {
319
+ return $this->_type;
320
+ }
321
+
322
+ /**
323
+ * @author Vova Feldman (@svovaf)
324
+ * @since 1.1.3
325
+ *
326
+ * @return bool
327
+ */
328
+ function is_cpt() {
329
+ return ( 0 === strpos( $this->_menu_slug, 'edit.php?post_type=' ) ||
330
+ // Back compatibility.
331
+ 'cpt' === $this->_type
332
+ );
333
+ }
334
+
335
+ /**
336
+ * @author Vova Feldman (@svovaf)
337
+ * @since 1.1.3
338
+ *
339
+ * @return string
340
+ */
341
+ function get_parent_type() {
342
+ return $this->_parent_type;
343
+ }
344
+
345
+ /**
346
+ * @author Vova Feldman (@svovaf)
347
+ * @since 1.1.3
348
+ *
349
+ * @return string
350
+ */
351
+ function get_raw_slug() {
352
+ return $this->_menu_slug;
353
+ }
354
+
355
+ /**
356
+ * Get plugin's original menu slug.
357
+ *
358
+ * @author Vova Feldman (@svovaf)
359
+ * @since 1.1.3
360
+ *
361
+ * @return string
362
+ */
363
+ function get_original_menu_slug() {
364
+ if ( 'cpt' === $this->_type ) {
365
+ return add_query_arg( array(
366
+ 'post_type' => $this->_menu_slug
367
+ ), 'edit.php' );
368
+ }
369
+
370
+ if ( false === strpos( $this->_menu_slug, '.php?' ) ) {
371
+ return $this->_menu_slug;
372
+ } else {
373
+ return $this->_module_unique_affix;
374
+ }
375
+ }
376
+
377
+ /**
378
+ * @author Vova Feldman (@svovaf)
379
+ * @since 1.1.3
380
+ *
381
+ * @return string
382
+ */
383
+ function get_top_level_menu_slug() {
384
+ return $this->has_custom_parent() ?
385
+ $this->get_parent_slug() :
386
+ $this->get_raw_slug();
387
+ }
388
+
389
+ /**
390
+ * Is user on plugin's admin activation page.
391
+ *
392
+ * @author Vova Feldman (@svovaf)
393
+ * @since 1.0.8
394
+ *
395
+ * @return bool
396
+ */
397
+ function is_main_settings_page() {
398
+ if ( $this->_menu_exists &&
399
+ ( fs_is_plugin_page( $this->_menu_slug ) || fs_is_plugin_page( $this->_module_unique_affix ) )
400
+ ) {
401
+ /**
402
+ * Module has a settings menu and the context page is the main settings page, so assume it's in
403
+ * activation (doesn't really check if already opted-in/skipped or not).
404
+ *
405
+ * @since 1.2.2
406
+ */
407
+ return true;
408
+ }
409
+
410
+ global $pagenow;
411
+ if ( ( WP_FS__MODULE_TYPE_THEME === $this->_module_type ) && Freemius::is_themes_page() ) {
412
+ /**
413
+ * In activation only when show_optin query string param is given.
414
+ *
415
+ * @since 1.2.2
416
+ */
417
+ return fs_request_get_bool( $this->_module_unique_affix . '_show_optin' );
418
+ }
419
+
420
+ return false;
421
+ }
422
+
423
+ #region Submenu Override
424
+
425
+ /**
426
+ * Override submenu's action.
427
+ *
428
+ * @author Vova Feldman (@svovaf)
429
+ * @since 1.1.0
430
+ *
431
+ * @param string $parent_slug
432
+ * @param string $menu_slug
433
+ * @param callable $function
434
+ *
435
+ * @return false|string If submenu exist, will return the hook name.
436
+ */
437
+ function override_submenu_action( $parent_slug, $menu_slug, $function ) {
438
+ global $submenu;
439
+
440
+ $menu_slug = plugin_basename( $menu_slug );
441
+ $parent_slug = plugin_basename( $parent_slug );
442
+
443
+ if ( ! isset( $submenu[ $parent_slug ] ) ) {
444
+ // Parent menu not exist.
445
+ return false;
446
+ }
447
+
448
+ $found_submenu_item = false;
449
+ foreach ( $submenu[ $parent_slug ] as $submenu_item ) {
450
+ if ( $menu_slug === $submenu_item[2] ) {
451
+ $found_submenu_item = $submenu_item;
452
+ break;
453
+ }
454
+ }
455
+
456
+ if ( false === $found_submenu_item ) {
457
+ // Submenu item not found.
458
+ return false;
459
+ }
460
+
461
+ // Remove current function.
462
+ $hookname = get_plugin_page_hookname( $menu_slug, $parent_slug );
463
+ remove_all_actions( $hookname );
464
+
465
+ // Attach new action.
466
+ add_action( $hookname, $function );
467
+
468
+ return $hookname;
469
+ }
470
+
471
+ #endregion Submenu Override
472
+
473
+ #region Top level menu Override
474
+
475
+ /**
476
+ * Find plugin's admin dashboard main menu item.
477
+ *
478
+ * @author Vova Feldman (@svovaf)
479
+ * @since 1.0.2
480
+ *
481
+ * @return string[]|false
482
+ */
483
+ private function find_top_level_menu() {
484
+ global $menu;
485
+
486
+ $position = - 1;
487
+ $found_menu = false;
488
+
489
+ $menu_slug = $this->get_raw_slug();
490
+
491
+ $hook_name = get_plugin_page_hookname( $menu_slug, '' );
492
+ foreach ( $menu as $pos => $m ) {
493
+ if ( $menu_slug === $m[2] ) {
494
+ $position = $pos;
495
+ $found_menu = $m;
496
+ break;
497
+ }
498
+ }
499
+
500
+ if ( false === $found_menu ) {
501
+ return false;
502
+ }
503
+
504
+ return array(
505
+ 'menu' => $found_menu,
506
+ 'position' => $position,
507
+ 'hook_name' => $hook_name
508
+ );
509
+ }
510
+
511
+ /**
512
+ * Find plugin's admin dashboard main submenu item.
513
+ *
514
+ * @author Vova Feldman (@svovaf)
515
+ * @since 1.2.1.6
516
+ *
517
+ * @return array|false
518
+ */
519
+ private function find_main_submenu() {
520
+ global $submenu;
521
+
522
+ $top_level_menu_slug = $this->get_top_level_menu_slug();
523
+
524
+ if ( ! isset( $submenu[ $top_level_menu_slug ] ) ) {
525
+ return false;
526
+ }
527
+
528
+ $submenu_slug = $this->get_raw_slug();
529
+
530
+ $position = - 1;
531
+ $found_submenu = false;
532
+
533
+ $hook_name = get_plugin_page_hookname( $submenu_slug, '' );
534
+
535
+ foreach ( $submenu[ $top_level_menu_slug ] as $pos => $sub ) {
536
+ if ( $submenu_slug === $sub[2] ) {
537
+ $position = $pos;
538
+ $found_submenu = $sub;
539
+ }
540
+ }
541
+
542
+ if ( false === $found_submenu ) {
543
+ return false;
544
+ }
545
+
546
+ return array(
547
+ 'menu' => $found_submenu,
548
+ 'parent_slug' => $top_level_menu_slug,
549
+ 'position' => $position,
550
+ 'hook_name' => $hook_name
551
+ );
552
+ }
553
+
554
+ /**
555
+ * Remove all sub-menu items.
556
+ *
557
+ * @author Vova Feldman (@svovaf)
558
+ * @since 1.0.7
559
+ *
560
+ * @return bool If submenu with plugin's menu slug was found.
561
+ */
562
+ private function remove_all_submenu_items() {
563
+ global $submenu;
564
+
565
+ $menu_slug = $this->get_raw_slug();
566
+
567
+ if ( ! isset( $submenu[ $menu_slug ] ) ) {
568
+ return false;
569
+ }
570
+
571
+ /**
572
+ * This method is NOT executed for WordPress.org themes.
573
+ * Since we maintain only one version of the SDK we added this small
574
+ * hack to avoid the error from Theme Check since it's a false-positive.
575
+ *
576
+ * @author Vova Feldman (@svovaf)
577
+ * @since 1.2.2.7
578
+ */
579
+ $submenu_ref = &$submenu;
580
+ $submenu_ref[ $menu_slug ] = array();
581
+
582
+ return true;
583
+ }
584
+
585
+ /**
586
+ *
587
+ * @author Vova Feldman (@svovaf)
588
+ * @since 1.0.9
589
+ *
590
+ * @return false|array[string]mixed
591
+ */
592
+ function remove_menu_item() {
593
+ $this->_logger->entrance();
594
+
595
+ // Find main menu item.
596
+ $menu = $this->find_top_level_menu();
597
+
598
+ if ( false === $menu ) {
599
+ return false;
600
+ }
601
+
602
+ // Remove it with its actions.
603
+ remove_all_actions( $menu['hook_name'] );
604
+
605
+ // Remove all submenu items.
606
+ $this->remove_all_submenu_items();
607
+
608
+ return $menu;
609
+ }
610
+
611
+ /**
612
+ * Get module's main admin setting page URL.
613
+ *
614
+ * @todo This method was only tested for wp.org compliant themes with a submenu item. Need to test for plugins with top level, submenu, and CPT top level, menu items.
615
+ *
616
+ * @author Vova Feldman (@svovaf)
617
+ * @since 1.2.2.7
618
+ *
619
+ * @return string
620
+ */
621
+ function main_menu_url() {
622
+ $this->_logger->entrance();
623
+
624
+ if ( $this->_is_top_level ) {
625
+ $menu = $this->find_top_level_menu();
626
+ } else {
627
+ $menu = $this->find_main_submenu();
628
+ }
629
+
630
+ $parent_slug = isset( $menu['parent_slug'] ) ?
631
+ $menu['parent_slug'] :
632
+ 'admin.php';
633
+
634
+ return admin_url( $parent_slug . '?page=' . $menu['menu'][2] );
635
+ }
636
+
637
+ /**
638
+ * @author Vova Feldman (@svovaf)
639
+ * @since 1.1.4
640
+ *
641
+ * @param callable $function
642
+ *
643
+ * @return false|array[string]mixed
644
+ */
645
+ function override_menu_item( $function ) {
646
+ $found_menu = $this->remove_menu_item();
647
+
648
+ if ( false === $found_menu ) {
649
+ return false;
650
+ }
651
+
652
+ if ( ! $this->is_top_level() || ! $this->is_cpt() ) {
653
+ $menu_slug = plugin_basename( $this->get_slug() );
654
+
655
+ $hookname = get_plugin_page_hookname( $menu_slug, '' );
656
+
657
+ // Override menu action.
658
+ add_action( $hookname, $function );
659
+ } else {
660
+ global $menu;
661
+
662
+ // Remove original CPT menu.
663
+ unset( $menu[ $found_menu['position'] ] );
664
+
665
+ // Create new top-level menu action.
666
+ $hookname = self::add_page(
667
+ $found_menu['menu'][3],
668
+ $found_menu['menu'][0],
669
+ 'manage_options',
670
+ $this->get_slug(),
671
+ $function,
672
+ $found_menu['menu'][6],
673
+ $found_menu['position']
674
+ );
675
+ }
676
+
677
+ return $hookname;
678
+ }
679
+
680
+ /**
681
+ * Adds a counter to the module's top level menu item.
682
+ *
683
+ * @author Vova Feldman (@svovaf)
684
+ * @since 1.2.1.5
685
+ *
686
+ * @param int $counter
687
+ * @param string $class
688
+ */
689
+ function add_counter_to_menu_item( $counter = 1, $class = '' ) {
690
+ global $menu, $submenu;
691
+
692
+ $mask = '%s <span class="update-plugins %s count-%3$s" aria-hidden="true"><span>%3$s<span class="screen-reader-text">%3$s notifications</span></span></span>';
693
+
694
+ /**
695
+ * This method is NOT executed for WordPress.org themes.
696
+ * Since we maintain only one version of the SDK we added this small
697
+ * hack to avoid the error from Theme Check since it's a false-positive.
698
+ *
699
+ * @author Vova Feldman (@svovaf)
700
+ * @since 1.2.2.7
701
+ */
702
+ $menu_ref = &$menu;
703
+ $submenu_ref = &$submenu;
704
+
705
+ if ( $this->_is_top_level ) {
706
+ // Find main menu item.
707
+ $found_menu = $this->find_top_level_menu();
708
+
709
+ if ( false !== $found_menu ) {
710
+ // Override menu label.
711
+ $menu_ref[ $found_menu['position'] ][0] = sprintf(
712
+ $mask,
713
+ $found_menu['menu'][0],
714
+ $class,
715
+ $counter
716
+ );
717
+ }
718
+ } else {
719
+ $found_submenu = $this->find_main_submenu();
720
+
721
+ if ( false !== $found_submenu ) {
722
+ // Override menu label.
723
+ $submenu_ref[ $found_submenu['parent_slug'] ][ $found_submenu['position'] ][0] = sprintf(
724
+ $mask,
725
+ $found_submenu['menu'][0],
726
+ $class,
727
+ $counter
728
+ );
729
+ }
730
+ }
731
+ }
732
+
733
+ #endregion Top level menu Override
734
+
735
+ /**
736
+ * Add a top-level menu page.
737
+ *
738
+ * Note for WordPress.org Theme/Plugin reviewer:
739
+ *
740
+ * This is a replication of `add_menu_page()` to avoid Theme Check warning.
741
+ *
742
+ * Why?
743
+ * ====
744
+ * Freemius is an SDK for plugin and theme developers. Since the core
745
+ * of the SDK is relevant both for plugins and themes, for obvious reasons,
746
+ * we only develop and maintain one code base.
747
+ *
748
+ * This method will not run for wp.org themes (only plugins) since theme
749
+ * admin settings/options are now only allowed in the customizer.
750
+ *
751
+ * If you have any questions or need clarifications, please don't hesitate
752
+ * pinging me on slack, my username is @svovaf.
753
+ *
754
+ * @author Vova Feldman (@svovaf)
755
+ * @since 1.2.2
756
+ *
757
+ * @param string $page_title The text to be displayed in the title tags of the page when the menu is
758
+ * selected.
759
+ * @param string $menu_title The text to be used for the menu.
760
+ * @param string $capability The capability required for this menu to be displayed to the user.
761
+ * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
762
+ * @param callable|string $function The function to be called to output the content for this page.
763
+ * @param string $icon_url The URL to the icon to be used for this menu.
764
+ * * Pass a base64-encoded SVG using a data URI, which will be colored to
765
+ * match the color scheme. This should begin with
766
+ * 'data:image/svg+xml;base64,'.
767
+ * * Pass the name of a Dashicons helper class to use a font icon,
768
+ * e.g. 'dashicons-chart-pie'.
769
+ * * Pass 'none' to leave div.wp-menu-image empty so an icon can be added
770
+ * via CSS.
771
+ * @param int $position The position in the menu order this one should appear.
772
+ *
773
+ * @return string The resulting page's hook_suffix.
774
+ */
775
+ static function add_page(
776
+ $page_title,
777
+ $menu_title,
778
+ $capability,
779
+ $menu_slug,
780
+ $function = '',
781
+ $icon_url = '',
782
+ $position = null
783
+ ) {
784
+ $fn = 'add_menu' . '_page';
785
+
786
+ return $fn(
787
+ $page_title,
788
+ $menu_title,
789
+ $capability,
790
+ $menu_slug,
791
+ $function,
792
+ $icon_url,
793
+ $position
794
+ );
795
+ }
796
+
797
+ /**
798
+ * Add a submenu page.
799
+ *
800
+ * Note for WordPress.org Theme/Plugin reviewer:
801
+ *
802
+ * This is a replication of `add_submenu_page()` to avoid Theme Check warning.
803
+ *
804
+ * Why?
805
+ * ====
806
+ * Freemius is an SDK for plugin and theme developers. Since the core
807
+ * of the SDK is relevant both for plugins and themes, for obvious reasons,
808
+ * we only develop and maintain one code base.
809
+ *
810
+ * This method will not run for wp.org themes (only plugins) since theme
811
+ * admin settings/options are now only allowed in the customizer.
812
+ *
813
+ * If you have any questions or need clarifications, please don't hesitate
814
+ * pinging me on slack, my username is @svovaf.
815
+ *
816
+ * @author Vova Feldman (@svovaf)
817
+ * @since 1.2.2
818
+ *
819
+ * @param string $parent_slug The slug name for the parent menu (or the file name of a standard
820
+ * WordPress admin page).
821
+ * @param string $page_title The text to be displayed in the title tags of the page when the menu is
822
+ * selected.
823
+ * @param string $menu_title The text to be used for the menu.
824
+ * @param string $capability The capability required for this menu to be displayed to the user.
825
+ * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
826
+ * @param callable|string $function The function to be called to output the content for this page.
827
+ *
828
+ * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability
829
+ * required.
830
+ */
831
+ static function add_subpage(
832
+ $parent_slug,
833
+ $page_title,
834
+ $menu_title,
835
+ $capability,
836
+ $menu_slug,
837
+ $function = ''
838
+ ) {
839
+ $fn = 'add_submenu' . '_page';
840
+
841
+ return $fn( $parent_slug,
842
+ $page_title,
843
+ $menu_title,
844
+ $capability,
845
+ $menu_slug,
846
+ $function
847
+ );
848
+ }
849
  }
freemius/includes/managers/class-fs-cache-manager.php CHANGED
@@ -1,280 +1,280 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.1.6
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_Cache_Manager {
14
- /**
15
- * @var FS_Option_Manager
16
- */
17
- private $_options;
18
- /**
19
- * @var FS_Logger
20
- */
21
- private $_logger;
22
-
23
- /**
24
- * @var FS_Cache_Manager[]
25
- */
26
- private static $_MANAGERS = array();
27
-
28
- /**
29
- * @author Vova Feldman (@svovaf)
30
- * @since 1.1.3
31
- *
32
- * @param string $id
33
- */
34
- private function __construct( $id ) {
35
- $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_cach_mngr_' . $id, WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
36
-
37
- $this->_logger->entrance();
38
- $this->_logger->log( 'id = ' . $id );
39
-
40
- $this->_options = FS_Option_Manager::get_manager( $id, true );
41
- }
42
-
43
- /**
44
- * @author Vova Feldman (@svovaf)
45
- * @since 1.1.6
46
- *
47
- * @param $id
48
- *
49
- * @return FS_Cache_Manager
50
- */
51
- static function get_manager( $id ) {
52
- $id = strtolower( $id );
53
-
54
- if ( ! isset( self::$_MANAGERS[ $id ] ) ) {
55
- self::$_MANAGERS[ $id ] = new FS_Cache_Manager( $id );
56
- }
57
-
58
- return self::$_MANAGERS[ $id ];
59
- }
60
-
61
- /**
62
- * @author Vova Feldman (@svovaf)
63
- * @since 1.1.6
64
- *
65
- * @return bool
66
- */
67
- function is_empty() {
68
- $this->_logger->entrance();
69
-
70
- return $this->_options->is_empty();
71
- }
72
-
73
- /**
74
- * @author Vova Feldman (@svovaf)
75
- * @since 1.1.6
76
- */
77
- function clear() {
78
- $this->_logger->entrance();
79
-
80
- $this->_options->clear( true );
81
- }
82
-
83
- /**
84
- * Delete cache manager from DB.
85
- *
86
- * @author Vova Feldman (@svovaf)
87
- * @since 1.0.9
88
- */
89
- function delete() {
90
- $this->_options->delete();
91
- }
92
-
93
- /**
94
- * Check if there's a cached item.
95
- *
96
- * @author Vova Feldman (@svovaf)
97
- * @since 1.1.6
98
- *
99
- * @param string $key
100
- *
101
- * @return bool
102
- */
103
- function has( $key ) {
104
- $cache_entry = $this->_options->get_option( $key, false );
105
-
106
- return ( is_object( $cache_entry ) &&
107
- isset( $cache_entry->timestamp ) &&
108
- is_numeric( $cache_entry->timestamp )
109
- );
110
- }
111
-
112
- /**
113
- * Check if there's a valid cached item.
114
- *
115
- * @author Vova Feldman (@svovaf)
116
- * @since 1.1.6
117
- *
118
- * @param string $key
119
- * @param null|int $expiration Since 1.2.2.7
120
- *
121
- * @return bool
122
- */
123
- function has_valid( $key, $expiration = null ) {
124
- $cache_entry = $this->_options->get_option( $key, false );
125
-
126
- $is_valid = ( is_object( $cache_entry ) &&
127
- isset( $cache_entry->timestamp ) &&
128
- is_numeric( $cache_entry->timestamp ) &&
129
- $cache_entry->timestamp > WP_FS__SCRIPT_START_TIME
130
- );
131
-
132
- if ( $is_valid &&
133
- is_numeric( $expiration ) &&
134
- isset( $cache_entry->created ) &&
135
- is_numeric( $cache_entry->created ) &&
136
- $cache_entry->created + $expiration < WP_FS__SCRIPT_START_TIME
137
- ) {
138
- /**
139
- * Even if the cache is still valid, since we are checking for validity
140
- * with an explicit expiration period, if the period has past, return
141
- * `false` as if the cache is invalid.
142
- *
143
- * @since 1.2.2.7
144
- */
145
- $is_valid = false;
146
- }
147
-
148
- return $is_valid;
149
- }
150
-
151
- /**
152
- * @author Vova Feldman (@svovaf)
153
- * @since 1.1.6
154
- *
155
- * @param string $key
156
- * @param mixed $default
157
- *
158
- * @return mixed
159
- */
160
- function get( $key, $default = null ) {
161
- $this->_logger->entrance( 'key = ' . $key );
162
-
163
- $cache_entry = $this->_options->get_option( $key, false );
164
-
165
- if ( is_object( $cache_entry ) &&
166
- isset( $cache_entry->timestamp ) &&
167
- is_numeric( $cache_entry->timestamp )
168
- ) {
169
- return $cache_entry->result;
170
- }
171
-
172
- return $default;
173
- }
174
-
175
- /**
176
- * @author Vova Feldman (@svovaf)
177
- * @since 1.1.6
178
- *
179
- * @param string $key
180
- * @param mixed $default
181
- *
182
- * @return mixed
183
- */
184
- function get_valid( $key, $default = null ) {
185
- $this->_logger->entrance( 'key = ' . $key );
186
-
187
- $cache_entry = $this->_options->get_option( $key, false );
188
-
189
- if ( is_object( $cache_entry ) &&
190
- isset( $cache_entry->timestamp ) &&
191
- is_numeric( $cache_entry->timestamp ) &&
192
- $cache_entry->timestamp > WP_FS__SCRIPT_START_TIME
193
- ) {
194
- return $cache_entry->result;
195
- }
196
-
197
- return $default;
198
- }
199
-
200
- /**
201
- * @author Vova Feldman (@svovaf)
202
- * @since 1.1.6
203
- *
204
- * @param string $key
205
- * @param mixed $value
206
- * @param int $expiration
207
- */
208
- function set( $key, $value, $expiration = WP_FS__TIME_24_HOURS_IN_SEC ) {
209
- $this->_logger->entrance( 'key = ' . $key );
210
-
211
- $cache_entry = new stdClass();
212
- $cache_entry->result = $value;
213
- $cache_entry->created = WP_FS__SCRIPT_START_TIME;
214
- $cache_entry->timestamp = WP_FS__SCRIPT_START_TIME + $expiration;
215
- $this->_options->set_option( $key, $cache_entry, true );
216
- }
217
-
218
- /**
219
- * Get cached record expiration, or false if not cached or expired.
220
- *
221
- * @author Vova Feldman (@svovaf)
222
- * @since 1.1.7.3
223
- *
224
- * @param string $key
225
- *
226
- * @return bool|int
227
- */
228
- function get_record_expiration( $key ) {
229
- $this->_logger->entrance( 'key = ' . $key );
230
-
231
- $cache_entry = $this->_options->get_option( $key, false );
232
-
233
- if ( is_object( $cache_entry ) &&
234
- isset( $cache_entry->timestamp ) &&
235
- is_numeric( $cache_entry->timestamp ) &&
236
- $cache_entry->timestamp > WP_FS__SCRIPT_START_TIME
237
- ) {
238
- return $cache_entry->timestamp;
239
- }
240
-
241
- return false;
242
- }
243
-
244
- /**
245
- * Purge cached item.
246
- *
247
- * @author Vova Feldman (@svovaf)
248
- * @since 1.1.6
249
- *
250
- * @param string $key
251
- */
252
- function purge( $key ) {
253
- $this->_logger->entrance( 'key = ' . $key );
254
-
255
- $this->_options->unset_option( $key, true );
256
- }
257
-
258
- /**
259
- * Set cached item as expired.
260
- *
261
- * @author Vova Feldman (@svovaf)
262
- * @since 1.2.2.7
263
- *
264
- * @param string $key
265
- */
266
- function expire( $key ) {
267
- $this->_logger->entrance( 'key = ' . $key );
268
-
269
- $cache_entry = $this->_options->get_option( $key, false );
270
-
271
- if ( is_object( $cache_entry ) &&
272
- isset( $cache_entry->timestamp ) &&
273
- is_numeric( $cache_entry->timestamp ))
274
- {
275
- // Set to expired.
276
- $cache_entry->timestamp = WP_FS__SCRIPT_START_TIME;
277
- $this->_options->set_option( $key, $cache_entry, true );
278
- }
279
- }
280
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.1.6
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_Cache_Manager {
14
+ /**
15
+ * @var FS_Option_Manager
16
+ */
17
+ private $_options;
18
+ /**
19
+ * @var FS_Logger
20
+ */
21
+ private $_logger;
22
+
23
+ /**
24
+ * @var FS_Cache_Manager[]
25
+ */
26
+ private static $_MANAGERS = array();
27
+
28
+ /**
29
+ * @author Vova Feldman (@svovaf)
30
+ * @since 1.1.3
31
+ *
32
+ * @param string $id
33
+ */
34
+ private function __construct( $id ) {
35
+ $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_cach_mngr_' . $id, WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
36
+
37
+ $this->_logger->entrance();
38
+ $this->_logger->log( 'id = ' . $id );
39
+
40
+ $this->_options = FS_Option_Manager::get_manager( $id, true );
41
+ }
42
+
43
+ /**
44
+ * @author Vova Feldman (@svovaf)
45
+ * @since 1.1.6
46
+ *
47
+ * @param $id
48
+ *
49
+ * @return FS_Cache_Manager
50
+ */
51
+ static function get_manager( $id ) {
52
+ $id = strtolower( $id );
53
+
54
+ if ( ! isset( self::$_MANAGERS[ $id ] ) ) {
55
+ self::$_MANAGERS[ $id ] = new FS_Cache_Manager( $id );
56
+ }
57
+
58
+ return self::$_MANAGERS[ $id ];
59
+ }
60
+
61
+ /**
62
+ * @author Vova Feldman (@svovaf)
63
+ * @since 1.1.6
64
+ *
65
+ * @return bool
66
+ */
67
+ function is_empty() {
68
+ $this->_logger->entrance();
69
+
70
+ return $this->_options->is_empty();
71
+ }
72
+
73
+ /**
74
+ * @author Vova Feldman (@svovaf)
75
+ * @since 1.1.6
76
+ */
77
+ function clear() {
78
+ $this->_logger->entrance();
79
+
80
+ $this->_options->clear( true );
81
+ }
82
+
83
+ /**
84
+ * Delete cache manager from DB.
85
+ *
86
+ * @author Vova Feldman (@svovaf)
87
+ * @since 1.0.9
88
+ */
89
+ function delete() {
90
+ $this->_options->delete();
91
+ }
92
+
93
+ /**
94
+ * Check if there's a cached item.
95
+ *
96
+ * @author Vova Feldman (@svovaf)
97
+ * @since 1.1.6
98
+ *
99
+ * @param string $key
100
+ *
101
+ * @return bool
102
+ */
103
+ function has( $key ) {
104
+ $cache_entry = $this->_options->get_option( $key, false );
105
+
106
+ return ( is_object( $cache_entry ) &&
107
+ isset( $cache_entry->timestamp ) &&
108
+ is_numeric( $cache_entry->timestamp )
109
+ );
110
+ }
111
+
112
+ /**
113
+ * Check if there's a valid cached item.
114
+ *
115
+ * @author Vova Feldman (@svovaf)
116
+ * @since 1.1.6
117
+ *
118
+ * @param string $key
119
+ * @param null|int $expiration Since 1.2.2.7
120
+ *
121
+ * @return bool
122
+ */
123
+ function has_valid( $key, $expiration = null ) {
124
+ $cache_entry = $this->_options->get_option( $key, false );
125
+
126
+ $is_valid = ( is_object( $cache_entry ) &&
127
+ isset( $cache_entry->timestamp ) &&
128
+ is_numeric( $cache_entry->timestamp ) &&
129
+ $cache_entry->timestamp > WP_FS__SCRIPT_START_TIME
130
+ );
131
+
132
+ if ( $is_valid &&
133
+ is_numeric( $expiration ) &&
134
+ isset( $cache_entry->created ) &&
135
+ is_numeric( $cache_entry->created ) &&
136
+ $cache_entry->created + $expiration < WP_FS__SCRIPT_START_TIME
137
+ ) {
138
+ /**
139
+ * Even if the cache is still valid, since we are checking for validity
140
+ * with an explicit expiration period, if the period has past, return
141
+ * `false` as if the cache is invalid.
142
+ *
143
+ * @since 1.2.2.7
144
+ */
145
+ $is_valid = false;
146
+ }
147
+
148
+ return $is_valid;
149
+ }
150
+
151
+ /**
152
+ * @author Vova Feldman (@svovaf)
153
+ * @since 1.1.6
154
+ *
155
+ * @param string $key
156
+ * @param mixed $default
157
+ *
158
+ * @return mixed
159
+ */
160
+ function get( $key, $default = null ) {
161
+ $this->_logger->entrance( 'key = ' . $key );
162
+
163
+ $cache_entry = $this->_options->get_option( $key, false );
164
+
165
+ if ( is_object( $cache_entry ) &&
166
+ isset( $cache_entry->timestamp ) &&
167
+ is_numeric( $cache_entry->timestamp )
168
+ ) {
169
+ return $cache_entry->result;
170
+ }
171
+
172
+ return $default;
173
+ }
174
+
175
+ /**
176
+ * @author Vova Feldman (@svovaf)
177
+ * @since 1.1.6
178
+ *
179
+ * @param string $key
180
+ * @param mixed $default
181
+ *
182
+ * @return mixed
183
+ */
184
+ function get_valid( $key, $default = null ) {
185
+ $this->_logger->entrance( 'key = ' . $key );
186
+
187
+ $cache_entry = $this->_options->get_option( $key, false );
188
+
189
+ if ( is_object( $cache_entry ) &&
190
+ isset( $cache_entry->timestamp ) &&
191
+ is_numeric( $cache_entry->timestamp ) &&
192
+ $cache_entry->timestamp > WP_FS__SCRIPT_START_TIME
193
+ ) {
194
+ return $cache_entry->result;
195
+ }
196
+
197
+ return $default;
198
+ }
199
+
200
+ /**
201
+ * @author Vova Feldman (@svovaf)
202
+ * @since 1.1.6
203
+ *
204
+ * @param string $key
205
+ * @param mixed $value
206
+ * @param int $expiration
207
+ */
208
+ function set( $key, $value, $expiration = WP_FS__TIME_24_HOURS_IN_SEC ) {
209
+ $this->_logger->entrance( 'key = ' . $key );
210
+
211
+ $cache_entry = new stdClass();
212
+ $cache_entry->result = $value;
213
+ $cache_entry->created = WP_FS__SCRIPT_START_TIME;
214
+ $cache_entry->timestamp = WP_FS__SCRIPT_START_TIME + $expiration;
215
+ $this->_options->set_option( $key, $cache_entry, true );
216
+ }
217
+
218
+ /**
219
+ * Get cached record expiration, or false if not cached or expired.
220
+ *
221
+ * @author Vova Feldman (@svovaf)
222
+ * @since 1.1.7.3
223
+ *
224
+ * @param string $key
225
+ *
226
+ * @return bool|int
227
+ */
228
+ function get_record_expiration( $key ) {
229
+ $this->_logger->entrance( 'key = ' . $key );
230
+
231
+ $cache_entry = $this->_options->get_option( $key, false );
232
+
233
+ if ( is_object( $cache_entry ) &&
234
+ isset( $cache_entry->timestamp ) &&
235
+ is_numeric( $cache_entry->timestamp ) &&
236
+ $cache_entry->timestamp > WP_FS__SCRIPT_START_TIME
237
+ ) {
238
+ return $cache_entry->timestamp;
239
+ }
240
+
241
+ return false;
242
+ }
243
+
244
+ /**
245
+ * Purge cached item.
246
+ *
247
+ * @author Vova Feldman (@svovaf)
248
+ * @since 1.1.6
249
+ *
250
+ * @param string $key
251
+ */
252
+ function purge( $key ) {
253
+ $this->_logger->entrance( 'key = ' . $key );
254
+
255
+ $this->_options->unset_option( $key, true );
256
+ }
257
+
258
+ /**
259
+ * Set cached item as expired.
260
+ *
261
+ * @author Vova Feldman (@svovaf)
262
+ * @since 1.2.2.7
263
+ *
264
+ * @param string $key
265
+ */
266
+ function expire( $key ) {
267
+ $this->_logger->entrance( 'key = ' . $key );
268
+
269
+ $cache_entry = $this->_options->get_option( $key, false );
270
+
271
+ if ( is_object( $cache_entry ) &&
272
+ isset( $cache_entry->timestamp ) &&
273
+ is_numeric( $cache_entry->timestamp ))
274
+ {
275
+ // Set to expired.
276
+ $cache_entry->timestamp = WP_FS__SCRIPT_START_TIME;
277
+ $this->_options->set_option( $key, $cache_entry, true );
278
+ }
279
+ }
280
  }
freemius/includes/managers/class-fs-key-value-storage.php CHANGED
@@ -1,328 +1,328 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.7
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- /**
14
- * Class FS_Key_Value_Storage
15
- *
16
- * @property int $install_timestamp
17
- * @property int $activation_timestamp
18
- * @property int $sync_timestamp
19
- * @property object $sync_cron
20
- * @property int $install_sync_timestamp
21
- * @property array $connectivity_test
22
- * @property array $is_on
23
- * @property object $trial_plan
24
- * @property bool $has_trial_plan
25
- * @property bool $trial_promotion_shown
26
- * @property string $sdk_version
27
- * @property string $sdk_last_version
28
- * @property bool $sdk_upgrade_mode
29
- * @property bool $sdk_downgrade_mode
30
- * @property bool $plugin_upgrade_mode
31
- * @property bool $plugin_downgrade_mode
32
- * @property string $plugin_version
33
- * @property string $plugin_last_version
34
- * @property bool $is_plugin_new_install
35
- * @property bool $was_plugin_loaded
36
- * @property object $plugin_main_file
37
- * @property bool $prev_is_premium
38
- * @property array $is_anonymous
39
- * @property bool $is_pending_activation
40
- * @property bool $sticky_optin_added
41
- * @property object $uninstall_reason
42
- * @property object $subscription
43
- */
44
- class FS_Key_Value_Storage implements ArrayAccess, Iterator, Countable {
45
- /**
46
- * @var string
47
- */
48
- protected $_id;
49
- /**
50
- * @since 1.2.2
51
- *
52
- * @var string
53
- */
54
- protected $_secondary_id;
55
- /**
56
- * @var array
57
- */
58
- protected $_data;
59
-
60
- /**
61
- * @var FS_Plugin_Manager[]
62
- */
63
- private static $_instances = array();
64
- /**
65
- * @var FS_Logger
66
- */
67
- protected $_logger;
68
-
69
- /**
70
- * @param string $id
71
- * @param string $secondary_id
72
- *
73
- * @return FS_Key_Value_Storage
74
- */
75
- static function instance( $id, $secondary_id ) {
76
- $key = $id . ':' . $secondary_id;
77
- if ( ! isset( self::$_instances[ $key ] ) ) {
78
- self::$_instances[ $key ] = new FS_Key_Value_Storage( $id, $secondary_id );
79
- }
80
-
81
- return self::$_instances[ $key ];
82
- }
83
-
84
- protected function __construct( $id, $secondary_id ) {
85
- $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $secondary_id . '_' . $id, WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
86
-
87
- $this->_secondary_id = $secondary_id;
88
- $this->_id = $id;
89
- $this->load();
90
- }
91
-
92
- protected function get_option_manager() {
93
- return FS_Option_Manager::get_manager( WP_FS__ACCOUNTS_OPTION_NAME, true );
94
- }
95
-
96
- protected function get_all_data() {
97
- return $this->get_option_manager()->get_option( $this->_id, array() );
98
- }
99
-
100
- /**
101
- * Load plugin data from local DB.
102
- *
103
- * @author Vova Feldman (@svovaf)
104
- * @since 1.0.7
105
- */
106
- function load() {
107
- $all_plugins_data = $this->get_all_data();
108
- $this->_data = isset( $all_plugins_data[ $this->_secondary_id ] ) ?
109
- $all_plugins_data[ $this->_secondary_id ] :
110
- array();
111
- }
112
-
113
- /**
114
- * @author Vova Feldman (@svovaf)
115
- * @since 1.0.7
116
- *
117
- * @param string $key
118
- * @param mixed $value
119
- * @param bool $flush
120
- */
121
- function store( $key, $value, $flush = true ) {
122
- if ( $this->_logger->is_on() ) {
123
- $this->_logger->entrance( $key . ' = ' . var_export( $value, true ) );
124
- }
125
-
126
- if ( array_key_exists( $key, $this->_data ) && $value === $this->_data[ $key ] ) {
127
- // No need to store data if the value wasn't changed.
128
- return;
129
- }
130
-
131
- $all_data = $this->get_all_data();
132
-
133
- $this->_data[ $key ] = $value;
134
-
135
- $all_data[ $this->_secondary_id ] = $this->_data;
136
-
137
- $options_manager = $this->get_option_manager();
138
- $options_manager->set_option( $this->_id, $all_data, $flush );
139
- }
140
-
141
- /**
142
- * @author Vova Feldman (@svovaf)
143
- * @since 1.0.7
144
- *
145
- * @param bool $store
146
- * @param string[] $exceptions Set of keys to keep and not clear.
147
- */
148
- function clear_all( $store = true, $exceptions = array() ) {
149
- $new_data = array();
150
- foreach ( $exceptions as $key ) {
151
- if ( isset( $this->_data[ $key ] ) ) {
152
- $new_data[ $key ] = $this->_data[ $key ];
153
- }
154
- }
155
-
156
- $this->_data = $new_data;
157
-
158
- if ( $store ) {
159
- $all_data = $this->get_all_data();
160
- $all_data[ $this->_secondary_id ] = $this->_data;
161
- $options_manager = $this->get_option_manager();
162
- $options_manager->set_option( $this->_id, $all_data, true );
163
- }
164
- }
165
-
166
- /**
167
- * Delete key-value storage.
168
- *
169
- * @author Vova Feldman (@svovaf)
170
- * @since 1.0.9
171
- */
172
- function delete() {
173
- $this->_data = array();
174
-
175
- $all_data = $this->get_all_data();
176
- unset( $all_data[ $this->_secondary_id ] );
177
- $options_manager = $this->get_option_manager();
178
- $options_manager->set_option( $this->_id, $all_data, true );
179
- }
180
-
181
- /**
182
- * @author Vova Feldman (@svovaf)
183
- * @since 1.0.7
184
- *
185
- * @param string $key
186
- * @param bool $store
187
- */
188
- function remove( $key, $store = true ) {
189
- if ( ! array_key_exists( $key, $this->_data ) ) {
190
- return;
191
- }
192
-
193
- unset( $this->_data[ $key ] );
194
-
195
- if ( $store ) {
196
- $all_data = $this->get_all_data();
197
- $all_data[ $this->_secondary_id ] = $this->_data;
198
- $options_manager = $this->get_option_manager();
199
- $options_manager->set_option( $this->_id, $all_data, true );
200
- }
201
- }
202
-
203
- /**
204
- * @author Vova Feldman (@svovaf)
205
- * @since 1.0.7
206
- *
207
- * @param string $key
208
- * @param mixed $default
209
- *
210
- * @return bool|\FS_Plugin
211
- */
212
- function get( $key, $default = false ) {
213
- return array_key_exists( $key, $this->_data ) ?
214
- $this->_data[ $key ] :
215
- $default;
216
- }
217
-
218
-
219
- /* ArrayAccess + Magic Access (better for refactoring)
220
- -----------------------------------------------------------------------------------*/
221
- function __set( $k, $v ) {
222
- $this->store( $k, $v );
223
- }
224
-
225
- function __isset( $k ) {
226
- return array_key_exists( $k, $this->_data );
227
- }
228
-
229
- function __unset( $k ) {
230
- $this->remove( $k );
231
- }
232
-
233
- function __get( $k ) {
234
- return $this->get( $k, null );
235
- }
236
-
237
- function offsetSet( $k, $v ) {
238
- if ( is_null( $k ) ) {
239
- throw new Exception( 'Can\'t append value to request params.' );
240
- } else {
241
- $this->{$k} = $v;
242
- }
243
- }
244
-
245
- function offsetExists( $k ) {
246
- return array_key_exists( $k, $this->_data );
247
- }
248
-
249
- function offsetUnset( $k ) {
250
- unset( $this->$k );
251
- }
252
-
253
- function offsetGet( $k ) {
254
- return $this->get( $k, null );
255
- }
256
-
257
- /**
258
- * (PHP 5 &gt;= 5.0.0)<br/>
259
- * Return the current element
260
- *
261
- * @link http://php.net/manual/en/iterator.current.php
262
- * @return mixed Can return any type.
263
- */
264
- public function current() {
265
- return current( $this->_data );
266
- }
267
-
268
- /**
269
- * (PHP 5 &gt;= 5.0.0)<br/>
270
- * Move forward to next element
271
- *
272
- * @link http://php.net/manual/en/iterator.next.php
273
- * @return void Any returned value is ignored.
274
- */
275
- public function next() {
276
- next( $this->_data );
277
- }
278
-
279
- /**
280
- * (PHP 5 &gt;= 5.0.0)<br/>
281
- * Return the key of the current element
282
- *
283
- * @link http://php.net/manual/en/iterator.key.php
284
- * @return mixed scalar on success, or null on failure.
285
- */
286
- public function key() {
287
- return key( $this->_data );
288
- }
289
-
290
- /**
291
- * (PHP 5 &gt;= 5.0.0)<br/>
292
- * Checks if current position is valid
293
- *
294
- * @link http://php.net/manual/en/iterator.valid.php
295
- * @return boolean The return value will be casted to boolean and then evaluated.
296
- * Returns true on success or false on failure.
297
- */
298
- public function valid() {
299
- $key = key( $this->_data );
300
-
301
- return ( $key !== null && $key !== false );
302
- }
303
-
304
- /**
305
- * (PHP 5 &gt;= 5.0.0)<br/>
306
- * Rewind the Iterator to the first element
307
- *
308
- * @link http://php.net/manual/en/iterator.rewind.php
309
- * @return void Any returned value is ignored.
310
- */
311
- public function rewind() {
312
- reset( $this->_data );
313
- }
314
-
315
- /**
316
- * (PHP 5 &gt;= 5.1.0)<br/>
317
- * Count elements of an object
318
- *
319
- * @link http://php.net/manual/en/countable.count.php
320
- * @return int The custom count as an integer.
321
- * </p>
322
- * <p>
323
- * The return value is cast to an integer.
324
- */
325
- public function count() {
326
- return count( $this->_data );
327
- }
328
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.7
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ /**
14
+ * Class FS_Key_Value_Storage
15
+ *
16
+ * @property int $install_timestamp
17
+ * @property int $activation_timestamp
18
+ * @property int $sync_timestamp
19
+ * @property object $sync_cron
20
+ * @property int $install_sync_timestamp
21
+ * @property array $connectivity_test
22
+ * @property array $is_on
23
+ * @property object $trial_plan
24
+ * @property bool $has_trial_plan
25
+ * @property bool $trial_promotion_shown
26
+ * @property string $sdk_version
27
+ * @property string $sdk_last_version
28
+ * @property bool $sdk_upgrade_mode
29
+ * @property bool $sdk_downgrade_mode
30
+ * @property bool $plugin_upgrade_mode
31
+ * @property bool $plugin_downgrade_mode
32
+ * @property string $plugin_version
33
+ * @property string $plugin_last_version
34
+ * @property bool $is_plugin_new_install
35
+ * @property bool $was_plugin_loaded
36
+ * @property object $plugin_main_file
37
+ * @property bool $prev_is_premium
38
+ * @property array $is_anonymous
39
+ * @property bool $is_pending_activation
40
+ * @property bool $sticky_optin_added
41
+ * @property object $uninstall_reason
42
+ * @property object $subscription
43
+ */
44
+ class FS_Key_Value_Storage implements ArrayAccess, Iterator, Countable {
45
+ /**
46
+ * @var string
47
+ */
48
+ protected $_id;
49
+ /**
50
+ * @since 1.2.2
51
+ *
52
+ * @var string
53
+ */
54
+ protected $_secondary_id;
55
+ /**
56
+ * @var array
57
+ */
58
+ protected $_data;
59
+
60
+ /**
61
+ * @var FS_Plugin_Manager[]
62
+ */
63
+ private static $_instances = array();
64
+ /**
65
+ * @var FS_Logger
66
+ */
67
+ protected $_logger;
68
+
69
+ /**
70
+ * @param string $id
71
+ * @param string $secondary_id
72
+ *
73
+ * @return FS_Key_Value_Storage
74
+ */
75
+ static function instance( $id, $secondary_id ) {
76
+ $key = $id . ':' . $secondary_id;
77
+ if ( ! isset( self::$_instances[ $key ] ) ) {
78
+ self::$_instances[ $key ] = new FS_Key_Value_Storage( $id, $secondary_id );
79
+ }
80
+
81
+ return self::$_instances[ $key ];
82
+ }
83
+
84
+ protected function __construct( $id, $secondary_id ) {
85
+ $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $secondary_id . '_' . $id, WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
86
+
87
+ $this->_secondary_id = $secondary_id;
88
+ $this->_id = $id;
89
+ $this->load();
90
+ }
91
+
92
+ protected function get_option_manager() {
93
+ return FS_Option_Manager::get_manager( WP_FS__ACCOUNTS_OPTION_NAME, true );
94
+ }
95
+
96
+ protected function get_all_data() {
97
+ return $this->get_option_manager()->get_option( $this->_id, array() );
98
+ }
99
+
100
+ /**
101
+ * Load plugin data from local DB.
102
+ *
103
+ * @author Vova Feldman (@svovaf)
104
+ * @since 1.0.7
105
+ */
106
+ function load() {
107
+ $all_plugins_data = $this->get_all_data();
108
+ $this->_data = isset( $all_plugins_data[ $this->_secondary_id ] ) ?
109
+ $all_plugins_data[ $this->_secondary_id ] :
110
+ array();
111
+ }
112
+
113
+ /**
114
+ * @author Vova Feldman (@svovaf)
115
+ * @since 1.0.7
116
+ *
117
+ * @param string $key
118
+ * @param mixed $value
119
+ * @param bool $flush
120
+ */
121
+ function store( $key, $value, $flush = true ) {
122
+ if ( $this->_logger->is_on() ) {
123
+ $this->_logger->entrance( $key . ' = ' . var_export( $value, true ) );
124
+ }
125
+
126
+ if ( array_key_exists( $key, $this->_data ) && $value === $this->_data[ $key ] ) {
127
+ // No need to store data if the value wasn't changed.
128
+ return;
129
+ }
130
+
131
+ $all_data = $this->get_all_data();
132
+
133
+ $this->_data[ $key ] = $value;
134
+
135
+ $all_data[ $this->_secondary_id ] = $this->_data;
136
+
137
+ $options_manager = $this->get_option_manager();
138
+ $options_manager->set_option( $this->_id, $all_data, $flush );
139
+ }
140
+
141
+ /**
142
+ * @author Vova Feldman (@svovaf)
143
+ * @since 1.0.7
144
+ *
145
+ * @param bool $store
146
+ * @param string[] $exceptions Set of keys to keep and not clear.
147
+ */
148
+ function clear_all( $store = true, $exceptions = array() ) {
149
+ $new_data = array();
150
+ foreach ( $exceptions as $key ) {
151
+ if ( isset( $this->_data[ $key ] ) ) {
152
+ $new_data[ $key ] = $this->_data[ $key ];
153
+ }
154
+ }
155
+
156
+ $this->_data = $new_data;
157
+
158
+ if ( $store ) {
159
+ $all_data = $this->get_all_data();
160
+ $all_data[ $this->_secondary_id ] = $this->_data;
161
+ $options_manager = $this->get_option_manager();
162
+ $options_manager->set_option( $this->_id, $all_data, true );
163
+ }
164
+ }
165
+
166
+ /**
167
+ * Delete key-value storage.
168
+ *
169
+ * @author Vova Feldman (@svovaf)
170
+ * @since 1.0.9
171
+ */
172
+ function delete() {
173
+ $this->_data = array();
174
+
175
+ $all_data = $this->get_all_data();
176
+ unset( $all_data[ $this->_secondary_id ] );
177
+ $options_manager = $this->get_option_manager();
178
+ $options_manager->set_option( $this->_id, $all_data, true );
179
+ }
180
+
181
+ /**
182
+ * @author Vova Feldman (@svovaf)
183
+ * @since 1.0.7
184
+ *
185
+ * @param string $key
186
+ * @param bool $store
187
+ */
188
+ function remove( $key, $store = true ) {
189
+ if ( ! array_key_exists( $key, $this->_data ) ) {
190
+ return;
191
+ }
192
+
193
+ unset( $this->_data[ $key ] );
194
+
195
+ if ( $store ) {
196
+ $all_data = $this->get_all_data();
197
+ $all_data[ $this->_secondary_id ] = $this->_data;
198
+ $options_manager = $this->get_option_manager();
199
+ $options_manager->set_option( $this->_id, $all_data, true );
200
+ }
201
+ }
202
+
203
+ /**
204
+ * @author Vova Feldman (@svovaf)
205
+ * @since 1.0.7
206
+ *
207
+ * @param string $key
208
+ * @param mixed $default
209
+ *
210
+ * @return bool|\FS_Plugin
211
+ */
212
+ function get( $key, $default = false ) {
213
+ return array_key_exists( $key, $this->_data ) ?
214
+ $this->_data[ $key ] :
215
+ $default;
216
+ }
217
+
218
+
219
+ /* ArrayAccess + Magic Access (better for refactoring)
220
+ -----------------------------------------------------------------------------------*/
221
+ function __set( $k, $v ) {
222
+ $this->store( $k, $v );
223
+ }
224
+
225
+ function __isset( $k ) {
226
+ return array_key_exists( $k, $this->_data );
227
+ }
228
+
229
+ function __unset( $k ) {
230
+ $this->remove( $k );
231
+ }
232
+
233
+ function __get( $k ) {
234
+ return $this->get( $k, null );
235
+ }
236
+
237
+ function offsetSet( $k, $v ) {
238
+ if ( is_null( $k ) ) {
239
+ throw new Exception( 'Can\'t append value to request params.' );
240
+ } else {
241
+ $this->{$k} = $v;
242
+ }
243
+ }
244
+
245
+ function offsetExists( $k ) {
246
+ return array_key_exists( $k, $this->_data );
247
+ }
248
+
249
+ function offsetUnset( $k ) {
250
+ unset( $this->$k );
251
+ }
252
+
253
+ function offsetGet( $k ) {
254
+ return $this->get( $k, null );
255
+ }
256
+
257
+ /**
258
+ * (PHP 5 &gt;= 5.0.0)<br/>
259
+ * Return the current element
260
+ *
261
+ * @link http://php.net/manual/en/iterator.current.php
262
+ * @return mixed Can return any type.
263
+ */
264
+ public function current() {
265
+ return current( $this->_data );
266
+ }
267
+
268
+ /**
269
+ * (PHP 5 &gt;= 5.0.0)<br/>
270
+ * Move forward to next element
271
+ *
272
+ * @link http://php.net/manual/en/iterator.next.php
273
+ * @return void Any returned value is ignored.
274
+ */
275
+ public function next() {
276
+ next( $this->_data );
277
+ }
278
+
279
+ /**
280
+ * (PHP 5 &gt;= 5.0.0)<br/>
281
+ * Return the key of the current element
282
+ *
283
+ * @link http://php.net/manual/en/iterator.key.php
284
+ * @return mixed scalar on success, or null on failure.
285
+ */
286
+ public function key() {
287
+ return key( $this->_data );
288
+ }
289
+
290
+ /**
291
+ * (PHP 5 &gt;= 5.0.0)<br/>
292
+ * Checks if current position is valid
293
+ *
294
+ * @link http://php.net/manual/en/iterator.valid.php
295
+ * @return boolean The return value will be casted to boolean and then evaluated.
296
+ * Returns true on success or false on failure.
297
+ */
298
+ public function valid() {
299
+ $key = key( $this->_data );
300
+
301
+ return ( $key !== null && $key !== false );
302
+ }
303
+
304
+ /**
305
+ * (PHP 5 &gt;= 5.0.0)<br/>
306
+ * Rewind the Iterator to the first element
307
+ *
308
+ * @link http://php.net/manual/en/iterator.rewind.php
309
+ * @return void Any returned value is ignored.
310
+ */
311
+ public function rewind() {
312
+ reset( $this->_data );
313
+ }
314
+
315
+ /**
316
+ * (PHP 5 &gt;= 5.1.0)<br/>
317
+ * Count elements of an object
318
+ *
319
+ * @link http://php.net/manual/en/countable.count.php
320
+ * @return int The custom count as an integer.
321
+ * </p>
322
+ * <p>
323
+ * The return value is cast to an integer.
324
+ */
325
+ public function count() {
326
+ return count( $this->_data );
327
+ }
328
  }
freemius/includes/managers/class-fs-license-manager.php CHANGED
@@ -1,104 +1,104 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.6
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_License_Manager /*extends FS_Abstract_Manager*/
14
- {
15
- //
16
- //
17
- // /**
18
- // * @var FS_License_Manager[]
19
- // */
20
- // private static $_instances = array();
21
- //
22
- // static function instance( Freemius $fs ) {
23
- // $slug = strtolower( $fs->get_slug() );
24
- //
25
- // if ( ! isset( self::$_instances[ $slug ] ) ) {
26
- // self::$_instances[ $slug ] = new FS_License_Manager( $slug, $fs );
27
- // }
28
- //
29
- // return self::$_instances[ $slug ];
30
- // }
31
- //
32
- //// private function __construct($slug) {
33
- //// parent::__construct($slug);
34
- //// }
35
- //
36
- // function entry_id() {
37
- // return 'licenses';
38
- // }
39
- //
40
- // function sync( $id ) {
41
- //
42
- // }
43
- //
44
- // /**
45
- // * @author Vova Feldman (@svovaf)
46
- // * @since 1.0.5
47
- // * @uses FS_Api
48
- // *
49
- // * @param number|bool $plugin_id
50
- // *
51
- // * @return FS_Plugin_License[]|stdClass Licenses or API error.
52
- // */
53
- // function api_get_user_plugin_licenses( $plugin_id = false ) {
54
- // $api = $this->_fs->get_api_user_scope();
55
- //
56
- // if ( ! is_numeric( $plugin_id ) ) {
57
- // $plugin_id = $this->_fs->get_id();
58
- // }
59
- //
60
- // $result = $api->call( "/plugins/{$plugin_id}/licenses.json" );
61
- //
62
- // if ( ! isset( $result->error ) ) {
63
- // for ( $i = 0, $len = count( $result->licenses ); $i < $len; $i ++ ) {
64
- // $result->licenses[ $i ] = new FS_Plugin_License( $result->licenses[ $i ] );
65
- // }
66
- //
67
- // $result = $result->licenses;
68
- // }
69
- //
70
- // return $result;
71
- // }
72
- //
73
- // function api_get_many() {
74
- //
75
- // }
76
- //
77
- // function api_activate( $id ) {
78
- //
79
- // }
80
- //
81
- // function api_deactivate( $id ) {
82
- //
83
- // }
84
-
85
- /**
86
- * @param FS_Plugin_License[] $licenses
87
- *
88
- * @return bool
89
- */
90
- static function has_premium_license( $licenses ) {
91
- if ( is_array( $licenses ) ) {
92
- foreach ( $licenses as $license ) {
93
- /**
94
- * @var FS_Plugin_License $license
95
- */
96
- if ( ! $license->is_utilized() && $license->is_features_enabled() ) {
97
- return true;
98
- }
99
- }
100
- }
101
-
102
- return false;
103
- }
104
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.6
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_License_Manager /*extends FS_Abstract_Manager*/
14
+ {
15
+ //
16
+ //
17
+ // /**
18
+ // * @var FS_License_Manager[]
19
+ // */
20
+ // private static $_instances = array();
21
+ //
22
+ // static function instance( Freemius $fs ) {
23
+ // $slug = strtolower( $fs->get_slug() );
24
+ //
25
+ // if ( ! isset( self::$_instances[ $slug ] ) ) {
26
+ // self::$_instances[ $slug ] = new FS_License_Manager( $slug, $fs );
27
+ // }
28
+ //
29
+ // return self::$_instances[ $slug ];
30
+ // }
31
+ //
32
+ //// private function __construct($slug) {
33
+ //// parent::__construct($slug);
34
+ //// }
35
+ //
36
+ // function entry_id() {
37
+ // return 'licenses';
38
+ // }
39
+ //
40
+ // function sync( $id ) {
41
+ //
42
+ // }
43
+ //
44
+ // /**
45
+ // * @author Vova Feldman (@svovaf)
46
+ // * @since 1.0.5
47
+ // * @uses FS_Api
48
+ // *
49
+ // * @param number|bool $plugin_id
50
+ // *
51
+ // * @return FS_Plugin_License[]|stdClass Licenses or API error.
52
+ // */
53
+ // function api_get_user_plugin_licenses( $plugin_id = false ) {
54
+ // $api = $this->_fs->get_api_user_scope();
55
+ //
56
+ // if ( ! is_numeric( $plugin_id ) ) {
57
+ // $plugin_id = $this->_fs->get_id();
58
+ // }
59
+ //
60
+ // $result = $api->call( "/plugins/{$plugin_id}/licenses.json" );
61
+ //
62
+ // if ( ! isset( $result->error ) ) {
63
+ // for ( $i = 0, $len = count( $result->licenses ); $i < $len; $i ++ ) {
64
+ // $result->licenses[ $i ] = new FS_Plugin_License( $result->licenses[ $i ] );
65
+ // }
66
+ //
67
+ // $result = $result->licenses;
68
+ // }
69
+ //
70
+ // return $result;
71
+ // }
72
+ //
73
+ // function api_get_many() {
74
+ //
75
+ // }
76
+ //
77
+ // function api_activate( $id ) {
78
+ //
79
+ // }
80
+ //
81
+ // function api_deactivate( $id ) {
82
+ //
83
+ // }
84
+
85
+ /**
86
+ * @param FS_Plugin_License[] $licenses
87
+ *
88
+ * @return bool
89
+ */
90
+ static function has_premium_license( $licenses ) {
91
+ if ( is_array( $licenses ) ) {
92
+ foreach ( $licenses as $license ) {
93
+ /**
94
+ * @var FS_Plugin_License $license
95
+ */
96
+ if ( ! $license->is_utilized() && $license->is_features_enabled() ) {
97
+ return true;
98
+ }
99
+ }
100
+ }
101
+
102
+ return false;
103
+ }
104
  }
freemius/includes/managers/class-fs-option-manager.php CHANGED
@@ -1,302 +1,302 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.3
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- /**
14
- * 3-layer lazy options manager.
15
- * layer 3: Memory
16
- * layer 2: Cache (if there's any caching plugin and if WP_FS__DEBUG_SDK is FALSE)
17
- * layer 1: Database (options table). All options stored as one option record in the DB to reduce number of DB
18
- * queries.
19
- *
20
- * If load() is not explicitly called, starts as empty manager. Same thing about saving the data - you have to
21
- * explicitly call store().
22
- *
23
- * Class Freemius_Option_Manager
24
- */
25
- class FS_Option_Manager {
26
- /**
27
- * @var string
28
- */
29
- private $_id;
30
- /**
31
- * @var array
32
- */
33
- private $_options;
34
- /**
35
- * @var FS_Logger
36
- */
37
- private $_logger;
38
-
39
- /**
40
- * @var FS_Option_Manager[]
41
- */
42
- private static $_MANAGERS = array();
43
-
44
- /**
45
- * @author Vova Feldman (@svovaf)
46
- * @since 1.0.3
47
- *
48
- * @param string $id
49
- * @param bool $load
50
- */
51
- private function __construct( $id, $load = false ) {
52
- $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_opt_mngr_' . $id, WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
53
-
54
- $this->_logger->entrance();
55
- $this->_logger->log( 'id = ' . $id );
56
-
57
- $this->_id = $id;
58
-
59
- if ( $load ) {
60
- $this->load();
61
- }
62
- }
63
-
64
- /**
65
- * @author Vova Feldman (@svovaf)
66
- * @since 1.0.3
67
- *
68
- * @param $id
69
- * @param $load
70
- *
71
- * @return FS_Option_Manager
72
- */
73
- static function get_manager( $id, $load = false ) {
74
- $id = strtolower( $id );
75
-
76
- if ( ! isset( self::$_MANAGERS[ $id ] ) ) {
77
- self::$_MANAGERS[ $id ] = new FS_Option_Manager( $id, $load );
78
- } // If load required but not yet loaded, load.
79
- else if ( $load && ! self::$_MANAGERS[ $id ]->is_loaded() ) {
80
- self::$_MANAGERS[ $id ]->load();
81
- }
82
-
83
- return self::$_MANAGERS[ $id ];
84
- }
85
-
86
- private function _get_option_manager_name() {
87
- // return WP_FS__SLUG . '_' . $this->_id;
88
- return $this->_id;
89
- }
90
-
91
- /**
92
- * @author Vova Feldman (@svovaf)
93
- * @since 1.0.3
94
- *
95
- * @param bool $flush
96
- */
97
- function load( $flush = false ) {
98
- $this->_logger->entrance();
99
-
100
- $option_name = $this->_get_option_manager_name();
101
-
102
- if ( $flush || ! isset( $this->_options ) ) {
103
- if ( isset( $this->_options ) ) {
104
- // Clear prev options.
105
- $this->clear();
106
- }
107
-
108
- if ( ! WP_FS__DEBUG_SDK ) {
109
- $this->_options = wp_cache_get( $option_name, WP_FS__SLUG );
110
- }
111
-
112
- // $this->_logger->info('wp_cache_get = ' . var_export($this->_options, true));
113
-
114
- // if ( is_array( $this->_options ) ) {
115
- // $this->clear();
116
- // }
117
-
118
- $cached = true;
119
-
120
- if ( empty( $this->_options ) ) {
121
- $this->_options = get_option( $option_name );
122
-
123
- if ( is_string( $this->_options ) ) {
124
- $this->_options = json_decode( $this->_options );
125
- }
126
-
127
- // $this->_logger->info('get_option = ' . var_export($this->_options, true));
128
-
129
- if ( false === $this->_options ) {
130
- $this->clear();
131
- }
132
-
133
- $cached = false;
134
- }
135
-
136
- if ( ! WP_FS__DEBUG_SDK && ! $cached ) // Set non encoded cache.
137
- {
138
- wp_cache_set( $option_name, $this->_options, WP_FS__SLUG );
139
- }
140
- }
141
- }
142
-
143
- /**
144
- * @author Vova Feldman (@svovaf)
145
- * @since 1.0.3
146
- *
147
- * @return bool
148
- */
149
- function is_loaded() {
150
- return isset( $this->_options );
151
- }
152
-
153
- /**
154
- * @author Vova Feldman (@svovaf)
155
- * @since 1.0.3
156
- *
157
- * @return bool
158
- */
159
- function is_empty() {
160
- return ( $this->is_loaded() && false === $this->_options );
161
- }
162
-
163
- /**
164
- * @author Vova Feldman (@svovaf)
165
- * @since 1.0.6
166
- *
167
- * @param bool $flush
168
- */
169
- function clear( $flush = false ) {
170
- $this->_logger->entrance();
171
-
172
- $this->_options = array();
173
-
174
- if ( $flush ) {
175
- $this->store();
176
- }
177
- }
178
-
179
- /**
180
- * Delete options manager from DB.
181
- *
182
- * @author Vova Feldman (@svovaf)
183
- * @since 1.0.9
184
- */
185
- function delete() {
186
- delete_option( $this->_get_option_manager_name() );
187
- }
188
-
189
- /**
190
- * @author Vova Feldman (@svovaf)
191
- * @since 1.0.6
192
- *
193
- * @param string $option
194
- *
195
- * @return bool
196
- */
197
- function has_option( $option ) {
198
- return array_key_exists( $option, $this->_options );
199
- }
200
-
201
- /**
202
- * @author Vova Feldman (@svovaf)
203
- * @since 1.0.3
204
- *
205
- * @param string $option
206
- * @param mixed $default
207
- *
208
- * @return mixed
209
- */
210
- function get_option( $option, $default = null ) {
211
- $this->_logger->entrance( 'option = ' . $option );
212
-
213
- if ( is_array( $this->_options ) ) {
214
- return isset( $this->_options[ $option ] ) ? $this->_options[ $option ] : $default;
215
- } else if ( is_object( $this->_options ) ) {
216
- return isset( $this->_options->{$option} ) ? $this->_options->{$option} : $default;
217
- }
218
-
219
- return $default;
220
- }
221
-
222
- /**
223
- * @author Vova Feldman (@svovaf)
224
- * @since 1.0.3
225
- *
226
- * @param string $option
227
- * @param mixed $value
228
- * @param bool $flush
229
- */
230
- function set_option( $option, $value, $flush = false ) {
231
- $this->_logger->entrance( 'option = ' . $option );
232
-
233
- if ( ! $this->is_loaded() ) {
234
- $this->clear();
235
- }
236
-
237
- if ( is_array( $this->_options ) ) {
238
- $this->_options[ $option ] = $value;
239
- } else if ( is_object( $this->_options ) ) {
240
- $this->_options->{$option} = $value;
241
- }
242
-
243
- if ( $flush ) {
244
- $this->store();
245
- }
246
- }
247
-
248
- /**
249
- * Unset option.
250
- *
251
- * @author Vova Feldman (@svovaf)
252
- * @since 1.0.3
253
- *
254
- * @param string $option
255
- * @param bool $flush
256
- */
257
- function unset_option( $option, $flush = false ) {
258
- $this->_logger->entrance( 'option = ' . $option );
259
-
260
- if ( is_array( $this->_options ) ) {
261
- if ( ! isset( $this->_options[ $option ] ) ) {
262
- return;
263
- }
264
-
265
- unset( $this->_options[ $option ] );
266
-
267
- } else if ( is_object( $this->_options ) ) {
268
- if ( ! isset( $this->_options->{$option} ) ) {
269
- return;
270
- }
271
-
272
- unset( $this->_options->{$option} );
273
- }
274
-
275
- if ( $flush ) {
276
- $this->store();
277
- }
278
- }
279
-
280
- /**
281
- * Dump options to database.
282
- *
283
- * @author Vova Feldman (@svovaf)
284
- * @since 1.0.3
285
- */
286
- function store() {
287
- $this->_logger->entrance();
288
-
289
- $option_name = $this->_get_option_manager_name();
290
-
291
- if ( $this->_logger->is_on() ) {
292
- $this->_logger->info( $option_name . ' = ' . var_export( $this->_options, true ) );
293
- }
294
-
295
- // Update DB.
296
- update_option( $option_name, $this->_options );
297
-
298
- if ( ! WP_FS__DEBUG_SDK ) {
299
- wp_cache_set( $option_name, $this->_options, WP_FS__SLUG );
300
- }
301
- }
302
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.3
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ /**
14
+ * 3-layer lazy options manager.
15
+ * layer 3: Memory
16
+ * layer 2: Cache (if there's any caching plugin and if WP_FS__DEBUG_SDK is FALSE)
17
+ * layer 1: Database (options table). All options stored as one option record in the DB to reduce number of DB
18
+ * queries.
19
+ *
20
+ * If load() is not explicitly called, starts as empty manager. Same thing about saving the data - you have to
21
+ * explicitly call store().
22
+ *
23
+ * Class Freemius_Option_Manager
24
+ */
25
+ class FS_Option_Manager {
26
+ /**
27
+ * @var string
28
+ */
29
+ private $_id;
30
+ /**
31
+ * @var array
32
+ */
33
+ private $_options;
34
+ /**
35
+ * @var FS_Logger
36
+ */
37
+ private $_logger;
38
+
39
+ /**
40
+ * @var FS_Option_Manager[]
41
+ */
42
+ private static $_MANAGERS = array();
43
+
44
+ /**
45
+ * @author Vova Feldman (@svovaf)
46
+ * @since 1.0.3
47
+ *
48
+ * @param string $id
49
+ * @param bool $load
50
+ */
51
+ private function __construct( $id, $load = false ) {
52
+ $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_opt_mngr_' . $id, WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
53
+
54
+ $this->_logger->entrance();
55
+ $this->_logger->log( 'id = ' . $id );
56
+
57
+ $this->_id = $id;
58
+
59
+ if ( $load ) {
60
+ $this->load();
61
+ }
62
+ }
63
+
64
+ /**
65
+ * @author Vova Feldman (@svovaf)
66
+ * @since 1.0.3
67
+ *
68
+ * @param $id
69
+ * @param $load
70
+ *
71
+ * @return FS_Option_Manager
72
+ */
73
+ static function get_manager( $id, $load = false ) {
74
+ $id = strtolower( $id );
75
+
76
+ if ( ! isset( self::$_MANAGERS[ $id ] ) ) {
77
+ self::$_MANAGERS[ $id ] = new FS_Option_Manager( $id, $load );
78
+ } // If load required but not yet loaded, load.
79
+ else if ( $load && ! self::$_MANAGERS[ $id ]->is_loaded() ) {
80
+ self::$_MANAGERS[ $id ]->load();
81
+ }
82
+
83
+ return self::$_MANAGERS[ $id ];
84
+ }
85
+
86
+ private function _get_option_manager_name() {
87
+ // return WP_FS__SLUG . '_' . $this->_id;
88
+ return $this->_id;
89
+ }
90
+
91
+ /**
92
+ * @author Vova Feldman (@svovaf)
93
+ * @since 1.0.3
94
+ *
95
+ * @param bool $flush
96
+ */
97
+ function load( $flush = false ) {
98
+ $this->_logger->entrance();
99
+
100
+ $option_name = $this->_get_option_manager_name();
101
+
102
+ if ( $flush || ! isset( $this->_options ) ) {
103
+ if ( isset( $this->_options ) ) {
104
+ // Clear prev options.
105
+ $this->clear();
106
+ }
107
+
108
+ if ( ! WP_FS__DEBUG_SDK ) {
109
+ $this->_options = wp_cache_get( $option_name, WP_FS__SLUG );
110
+ }
111
+
112
+ // $this->_logger->info('wp_cache_get = ' . var_export($this->_options, true));
113
+
114
+ // if ( is_array( $this->_options ) ) {
115
+ // $this->clear();
116
+ // }
117
+
118
+ $cached = true;
119
+
120
+ if ( empty( $this->_options ) ) {
121
+ $this->_options = get_option( $option_name );
122
+
123
+ if ( is_string( $this->_options ) ) {
124
+ $this->_options = json_decode( $this->_options );
125
+ }
126
+
127
+ // $this->_logger->info('get_option = ' . var_export($this->_options, true));
128
+
129
+ if ( false === $this->_options ) {
130
+ $this->clear();
131
+ }
132
+
133
+ $cached = false;
134
+ }
135
+
136
+ if ( ! WP_FS__DEBUG_SDK && ! $cached ) // Set non encoded cache.
137
+ {
138
+ wp_cache_set( $option_name, $this->_options, WP_FS__SLUG );
139
+ }
140
+ }
141
+ }
142
+
143
+ /**
144
+ * @author Vova Feldman (@svovaf)
145
+ * @since 1.0.3
146
+ *
147
+ * @return bool
148
+ */
149
+ function is_loaded() {
150
+ return isset( $this->_options );
151
+ }
152
+
153
+ /**
154
+ * @author Vova Feldman (@svovaf)
155
+ * @since 1.0.3
156
+ *
157
+ * @return bool
158
+ */
159
+ function is_empty() {
160
+ return ( $this->is_loaded() && false === $this->_options );
161
+ }
162
+
163
+ /**
164
+ * @author Vova Feldman (@svovaf)
165
+ * @since 1.0.6
166
+ *
167
+ * @param bool $flush
168
+ */
169
+ function clear( $flush = false ) {
170
+ $this->_logger->entrance();
171
+
172
+ $this->_options = array();
173
+
174
+ if ( $flush ) {
175
+ $this->store();
176
+ }
177
+ }
178
+
179
+ /**
180
+ * Delete options manager from DB.
181
+ *
182
+ * @author Vova Feldman (@svovaf)
183
+ * @since 1.0.9
184
+ */
185
+ function delete() {
186
+ delete_option( $this->_get_option_manager_name() );
187
+ }
188
+
189
+ /**
190
+ * @author Vova Feldman (@svovaf)
191
+ * @since 1.0.6
192
+ *
193
+ * @param string $option
194
+ *
195
+ * @return bool
196
+ */
197
+ function has_option( $option ) {
198
+ return array_key_exists( $option, $this->_options );
199
+ }
200
+
201
+ /**
202
+ * @author Vova Feldman (@svovaf)
203
+ * @since 1.0.3
204
+ *
205
+ * @param string $option
206
+ * @param mixed $default
207
+ *
208
+ * @return mixed
209
+ */
210
+ function get_option( $option, $default = null ) {
211
+ $this->_logger->entrance( 'option = ' . $option );
212
+
213
+ if ( is_array( $this->_options ) ) {
214
+ return isset( $this->_options[ $option ] ) ? $this->_options[ $option ] : $default;
215
+ } else if ( is_object( $this->_options ) ) {
216
+ return isset( $this->_options->{$option} ) ? $this->_options->{$option} : $default;
217
+ }
218
+
219
+ return $default;
220
+ }
221
+
222
+ /**
223
+ * @author Vova Feldman (@svovaf)
224
+ * @since 1.0.3
225
+ *
226
+ * @param string $option
227
+ * @param mixed $value
228
+ * @param bool $flush
229
+ */
230
+ function set_option( $option, $value, $flush = false ) {
231
+ $this->_logger->entrance( 'option = ' . $option );
232
+
233
+ if ( ! $this->is_loaded() ) {
234
+ $this->clear();
235
+ }
236
+
237
+ if ( is_array( $this->_options ) ) {
238
+ $this->_options[ $option ] = $value;
239
+ } else if ( is_object( $this->_options ) ) {
240
+ $this->_options->{$option} = $value;
241
+ }
242
+
243
+ if ( $flush ) {
244
+ $this->store();
245
+ }
246
+ }
247
+
248
+ /**
249
+ * Unset option.
250
+ *
251
+ * @author Vova Feldman (@svovaf)
252
+ * @since 1.0.3
253
+ *
254
+ * @param string $option
255
+ * @param bool $flush
256
+ */
257
+ function unset_option( $option, $flush = false ) {
258
+ $this->_logger->entrance( 'option = ' . $option );
259
+
260
+ if ( is_array( $this->_options ) ) {
261
+ if ( ! isset( $this->_options[ $option ] ) ) {
262
+ return;
263
+ }
264
+
265
+ unset( $this->_options[ $option ] );
266
+
267
+ } else if ( is_object( $this->_options ) ) {
268
+ if ( ! isset( $this->_options->{$option} ) ) {
269
+ return;
270
+ }
271
+
272
+ unset( $this->_options->{$option} );
273
+ }
274
+
275
+ if ( $flush ) {
276
+ $this->store();
277
+ }
278
+ }
279
+
280
+ /**
281
+ * Dump options to database.
282
+ *
283
+ * @author Vova Feldman (@svovaf)
284
+ * @since 1.0.3
285
+ */
286
+ function store() {
287
+ $this->_logger->entrance();
288
+
289
+ $option_name = $this->_get_option_manager_name();
290
+
291
+ if ( $this->_logger->is_on() ) {
292
+ $this->_logger->info( $option_name . ' = ' . var_export( $this->_options, true ) );
293
+ }
294
+
295
+ // Update DB.
296
+ update_option( $option_name, $this->_options );
297
+
298
+ if ( ! WP_FS__DEBUG_SDK ) {
299
+ wp_cache_set( $option_name, $this->_options, WP_FS__SLUG );
300
+ }
301
+ }
302
  }
freemius/includes/managers/class-fs-plan-manager.php CHANGED
@@ -1,162 +1,162 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.6
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_Plan_Manager {
14
- /**
15
- * @var FS_Plan_Manager
16
- */
17
- private static $_instance;
18
-
19
- /**
20
- * @return FS_Plan_Manager
21
- */
22
- static function instance() {
23
- if ( ! isset( self::$_instance ) ) {
24
- self::$_instance = new FS_Plan_Manager();
25
- }
26
-
27
- return self::$_instance;
28
- }
29
-
30
- private function __construct() {
31
- }
32
-
33
- /**
34
- * @param FS_Plugin_License[] $licenses
35
- *
36
- * @return bool
37
- */
38
- function has_premium_license( $licenses ) {
39
- if ( is_array( $licenses ) ) {
40
- /**
41
- * @var FS_Plugin_License[] $licenses
42
- */
43
- foreach ( $licenses as $license ) {
44
- if ( ! $license->is_utilized() && $license->is_features_enabled() ) {
45
- return true;
46
- }
47
- }
48
- }
49
-
50
- return false;
51
- }
52
-
53
- /**
54
- * Check if plugin has any paid plans.
55
- *
56
- * @author Vova Feldman (@svovaf)
57
- * @since 1.0.7
58
- *
59
- * @param FS_Plugin_Plan[] $plans
60
- *
61
- * @return bool
62
- */
63
- function has_paid_plan( $plans ) {
64
- if ( ! is_array( $plans ) || 0 === count( $plans ) ) {
65
- return false;
66
- }
67
-
68
- /**
69
- * @var FS_Plugin_Plan[] $plans
70
- */
71
- for ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {
72
- if ( ! $plans[ $i ]->is_free() ) {
73
- return true;
74
- }
75
- }
76
-
77
- return false;
78
- }
79
-
80
- /**
81
- * Check if plugin has any free plan, or is it premium only.
82
- *
83
- * Note: If no plans configured, assume plugin is free.
84
- *
85
- * @author Vova Feldman (@svovaf)
86
- * @since 1.0.7
87
- *
88
- * @param FS_Plugin_Plan[] $plans
89
- *
90
- * @return bool
91
- */
92
- function has_free_plan( $plans ) {
93
- if ( ! is_array( $plans ) || 0 === count( $plans ) ) {
94
- return true;
95
- }
96
-
97
- /**
98
- * @var FS_Plugin_Plan[] $plans
99
- */
100
- for ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {
101
- if ( $plans[ $i ]->is_free() ) {
102
- return true;
103
- }
104
- }
105
-
106
- return false;
107
- }
108
-
109
- /**
110
- * Find all plans that have trial.
111
- *
112
- * @author Vova Feldman (@svovaf)
113
- * @since 1.0.9
114
- *
115
- * @param FS_Plugin_Plan[] $plans
116
- *
117
- * @return FS_Plugin_Plan[]
118
- */
119
- function get_trial_plans( $plans ) {
120
- $trial_plans = array();
121
-
122
- if ( is_array( $plans ) && 0 < count( $plans ) ) {
123
- /**
124
- * @var FS_Plugin_Plan[] $plans
125
- */
126
- for ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {
127
- if ( $plans[ $i ]->has_trial() ) {
128
- $trial_plans[] = $plans[ $i ];
129
- }
130
- }
131
- }
132
-
133
- return $trial_plans;
134
- }
135
-
136
- /**
137
- * Check if plugin has any trial plan.
138
- *
139
- * @author Vova Feldman (@svovaf)
140
- * @since 1.0.9
141
- *
142
- * @param FS_Plugin_Plan[] $plans
143
- *
144
- * @return bool
145
- */
146
- function has_trial_plan( $plans ) {
147
- if ( ! is_array( $plans ) || 0 === count( $plans ) ) {
148
- return true;
149
- }
150
-
151
- /**
152
- * @var FS_Plugin_Plan[] $plans
153
- */
154
- for ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {
155
- if ( $plans[ $i ]->has_trial() ) {
156
- return true;
157
- }
158
- }
159
-
160
- return false;
161
- }
162
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.6
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_Plan_Manager {
14
+ /**
15
+ * @var FS_Plan_Manager
16
+ */
17
+ private static $_instance;
18
+
19
+ /**
20
+ * @return FS_Plan_Manager
21
+ */
22
+ static function instance() {
23
+ if ( ! isset( self::$_instance ) ) {
24
+ self::$_instance = new FS_Plan_Manager();
25
+ }
26
+
27
+ return self::$_instance;
28
+ }
29
+
30
+ private function __construct() {
31
+ }
32
+
33
+ /**
34
+ * @param FS_Plugin_License[] $licenses
35
+ *
36
+ * @return bool
37
+ */
38
+ function has_premium_license( $licenses ) {
39
+ if ( is_array( $licenses ) ) {
40
+ /**
41
+ * @var FS_Plugin_License[] $licenses
42
+ */
43
+ foreach ( $licenses as $license ) {
44
+ if ( ! $license->is_utilized() && $license->is_features_enabled() ) {
45
+ return true;
46
+ }
47
+ }
48
+ }
49
+
50
+ return false;
51
+ }
52
+
53
+ /**
54
+ * Check if plugin has any paid plans.
55
+ *
56
+ * @author Vova Feldman (@svovaf)
57
+ * @since 1.0.7
58
+ *
59
+ * @param FS_Plugin_Plan[] $plans
60
+ *
61
+ * @return bool
62
+ */
63
+ function has_paid_plan( $plans ) {
64
+ if ( ! is_array( $plans ) || 0 === count( $plans ) ) {
65
+ return false;
66
+ }
67
+
68
+ /**
69
+ * @var FS_Plugin_Plan[] $plans
70
+ */
71
+ for ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {
72
+ if ( ! $plans[ $i ]->is_free() ) {
73
+ return true;
74
+ }
75
+ }
76
+
77
+ return false;
78
+ }
79
+
80
+ /**
81
+ * Check if plugin has any free plan, or is it premium only.
82
+ *
83
+ * Note: If no plans configured, assume plugin is free.
84
+ *
85
+ * @author Vova Feldman (@svovaf)
86
+ * @since 1.0.7
87
+ *
88
+ * @param FS_Plugin_Plan[] $plans
89
+ *
90
+ * @return bool
91
+ */
92
+ function has_free_plan( $plans ) {
93
+ if ( ! is_array( $plans ) || 0 === count( $plans ) ) {
94
+ return true;
95
+ }
96
+
97
+ /**
98
+ * @var FS_Plugin_Plan[] $plans
99
+ */
100
+ for ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {
101
+ if ( $plans[ $i ]->is_free() ) {
102
+ return true;
103
+ }
104
+ }
105
+
106
+ return false;
107
+ }
108
+
109
+ /**
110
+ * Find all plans that have trial.
111
+ *
112
+ * @author Vova Feldman (@svovaf)
113
+ * @since 1.0.9
114
+ *
115
+ * @param FS_Plugin_Plan[] $plans
116
+ *
117
+ * @return FS_Plugin_Plan[]
118
+ */
119
+ function get_trial_plans( $plans ) {
120
+ $trial_plans = array();
121
+
122
+ if ( is_array( $plans ) && 0 < count( $plans ) ) {
123
+ /**
124
+ * @var FS_Plugin_Plan[] $plans
125
+ */
126
+ for ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {
127
+ if ( $plans[ $i ]->has_trial() ) {
128
+ $trial_plans[] = $plans[ $i ];
129
+ }
130
+ }
131
+ }
132
+
133
+ return $trial_plans;
134
+ }
135
+
136
+ /**
137
+ * Check if plugin has any trial plan.
138
+ *
139
+ * @author Vova Feldman (@svovaf)
140
+ * @since 1.0.9
141
+ *
142
+ * @param FS_Plugin_Plan[] $plans
143
+ *
144
+ * @return bool
145
+ */
146
+ function has_trial_plan( $plans ) {
147
+ if ( ! is_array( $plans ) || 0 === count( $plans ) ) {
148
+ return true;
149
+ }
150
+
151
+ /**
152
+ * @var FS_Plugin_Plan[] $plans
153
+ */
154
+ for ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {
155
+ if ( $plans[ $i ]->has_trial() ) {
156
+ return true;
157
+ }
158
+ }
159
+
160
+ return false;
161
+ }
162
  }
freemius/includes/managers/class-fs-plugin-manager.php CHANGED
@@ -1,220 +1,220 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.6
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- class FS_Plugin_Manager {
14
- /**
15
- * @since 1.2.2
16
- *
17
- * @var string|number
18
- */
19
- protected $_module_id;
20
- /**
21
- * @since 1.2.2
22
- *
23
- * @var FS_Plugin
24
- */
25
- protected $_module;
26
-
27
- /**
28
- * @var FS_Plugin_Manager[]
29
- */
30
- private static $_instances = array();
31
- /**
32
- * @var FS_Logger
33
- */
34
- protected $_logger;
35
-
36
- /**
37
- * Option names
38
- *
39
- * @author Leo Fajardo (@leorw)
40
- * @since 1.2.2
41
- */
42
- const OPTION_NAME_PLUGINS = 'plugins';
43
- const OPTION_NAME_THEMES = 'themes';
44
-
45
- /**
46
- * @param string|number $module_id
47
- *
48
- * @return FS_Plugin_Manager
49
- */
50
- static function instance( $module_id ) {
51
- $key = 'm_' . $module_id;
52
-
53
- if ( ! isset( self::$_instances[ $key ] ) ) {
54
- self::$_instances[ $key ] = new FS_Plugin_Manager( $module_id );
55
- }
56
-
57
- return self::$_instances[ $key ];
58
- }
59
-
60
- /**
61
- * @param string|number $module_id
62
- */
63
- protected function __construct( $module_id ) {
64
- $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $module_id . '_' . 'plugins', WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
65
- $this->_module_id = $module_id;
66
-
67
- $this->load();
68
- }
69
-
70
- protected function get_option_manager() {
71
- return FS_Option_Manager::get_manager( WP_FS__ACCOUNTS_OPTION_NAME, true );
72
- }
73
-
74
- /**
75
- * @author Leo Fajardo (@leorw)
76
- * @since 1.2.2
77
- *
78
- * @param string|false $module_type "plugin", "theme", or "false" for all modules.
79
- *
80
- * @return array
81
- */
82
- protected function get_all_modules( $module_type = false ) {
83
- $option_manager = $this->get_option_manager();
84
-
85
- if ( false !== $module_type ) {
86
- return $option_manager->get_option( $module_type . 's', array() );
87
- }
88
-
89
- return array(
90
- self::OPTION_NAME_PLUGINS => $option_manager->get_option( self::OPTION_NAME_PLUGINS, array() ),
91
- self::OPTION_NAME_THEMES => $option_manager->get_option( self::OPTION_NAME_THEMES, array() ),
92
- );
93
- }
94
-
95
- /**
96
- * Load plugin data from local DB.
97
- *
98
- * @author Vova Feldman (@svovaf)
99
- * @since 1.0.6
100
- */
101
- function load() {
102
- $all_modules = $this->get_all_modules();
103
-
104
- if ( ! is_numeric( $this->_module_id ) ) {
105
- unset( $all_modules[ self::OPTION_NAME_THEMES ] );
106
- }
107
-
108
- foreach ( $all_modules as $modules ) {
109
- /**
110
- * @since 1.2.2
111
- *
112
- * @var $modules FS_Plugin[]
113
- */
114
- foreach ( $modules as $module ) {
115
- $found_module = false;
116
-
117
- /**
118
- * If module ID is not numeric, it must be a plugin's slug.
119
- *
120
- * @author Leo Fajardo (@leorw)
121
- * @since 1.2.2
122
- */
123
- if ( ! is_numeric( $this->_module_id ) ) {
124
- if ( $this->_module_id === $module->slug ) {
125
- $this->_module_id = $module->id;
126
- $found_module = true;
127
- }
128
- } else if ( $this->_module_id == $module->id ) {
129
- $found_module = true;
130
- }
131
-
132
- if ( $found_module ) {
133
- $this->_module = $module;
134
- break;
135
- }
136
- }
137
- }
138
- }
139
-
140
- /**
141
- * Store plugin on local DB.
142
- *
143
- * @author Vova Feldman (@svovaf)
144
- * @since 1.0.6
145
- *
146
- * @param bool|FS_Plugin $module
147
- * @param bool $flush
148
- *
149
- * @return bool|\FS_Plugin
150
- */
151
- function store( $module = false, $flush = true ) {
152
- if ( false !== $module ) {
153
- $this->_module = $module;
154
- }
155
-
156
- $all_modules = $this->get_all_modules( $this->_module->type );
157
- $all_modules[ $this->_module->slug ] = $this->_module;
158
-
159
- $options_manager = $this->get_option_manager();
160
- $options_manager->set_option( $this->_module->type . 's', $all_modules, $flush );
161
-
162
- return $this->_module;
163
- }
164
-
165
- /**
166
- * Update local plugin data if different.
167
- *
168
- * @author Vova Feldman (@svovaf)
169
- * @since 1.0.6
170
- *
171
- * @param \FS_Plugin $plugin
172
- * @param bool $store
173
- *
174
- * @return bool True if plugin was updated.
175
- */
176
- function update( FS_Plugin $plugin, $store = true ) {
177
- if ( ! ($this->_module instanceof FS_Plugin ) ||
178
- $this->_module->slug != $plugin->slug ||
179
- $this->_module->public_key != $plugin->public_key ||
180
- $this->_module->secret_key != $plugin->secret_key ||
181
- $this->_module->parent_plugin_id != $plugin->parent_plugin_id ||
182
- $this->_module->title != $plugin->title
183
- ) {
184
- $this->store( $plugin, $store );
185
-
186
- return true;
187
- }
188
-
189
- return false;
190
- }
191
-
192
- /**
193
- * @author Vova Feldman (@svovaf)
194
- * @since 1.0.6
195
- *
196
- * @param FS_Plugin $plugin
197
- * @param bool $store
198
- */
199
- function set( FS_Plugin $plugin, $store = false ) {
200
- $this->_module = $plugin;
201
-
202
- if ( $store ) {
203
- $this->store();
204
- }
205
- }
206
-
207
- /**
208
- * @author Vova Feldman (@svovaf)
209
- * @since 1.0.6
210
- *
211
- * @return bool|\FS_Plugin
212
- */
213
- function get() {
214
- return isset( $this->_module ) ?
215
- $this->_module :
216
- false;
217
- }
218
-
219
-
220
  }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.6
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ class FS_Plugin_Manager {
14
+ /**
15
+ * @since 1.2.2
16
+ *
17
+ * @var string|number
18
+ */
19
+ protected $_module_id;
20
+ /**
21
+ * @since 1.2.2
22
+ *
23
+ * @var FS_Plugin
24
+ */
25
+ protected $_module;
26
+
27
+ /**
28
+ * @var FS_Plugin_Manager[]
29
+ */
30
+ private static $_instances = array();
31
+ /**
32
+ * @var FS_Logger
33
+ */
34
+ protected $_logger;
35
+
36
+ /**
37
+ * Option names
38
+ *
39
+ * @author Leo Fajardo (@leorw)
40
+ * @since 1.2.2
41
+ */
42
+ const OPTION_NAME_PLUGINS = 'plugins';
43
+ const OPTION_NAME_THEMES = 'themes';
44
+
45
+ /**
46
+ * @param string|number $module_id
47
+ *
48
+ * @return FS_Plugin_Manager
49
+ */
50
+ static function instance( $module_id ) {
51
+ $key = 'm_' . $module_id;
52
+
53
+ if ( ! isset( self::$_instances[ $key ] ) ) {
54
+ self::$_instances[ $key ] = new FS_Plugin_Manager( $module_id );
55
+ }
56
+
57
+ return self::$_instances[ $key ];
58
+ }
59
+
60
+ /**
61
+ * @param string|number $module_id
62
+ */
63
+ protected function __construct( $module_id ) {
64
+ $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $module_id . '_' . 'plugins', WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
65
+ $this->_module_id = $module_id;
66
+
67
+ $this->load();
68
+ }
69
+
70
+ protected function get_option_manager() {
71
+ return FS_Option_Manager::get_manager( WP_FS__ACCOUNTS_OPTION_NAME, true );
72
+ }
73
+
74
+ /**
75
+ * @author Leo Fajardo (@leorw)
76
+ * @since 1.2.2
77
+ *
78
+ * @param string|false $module_type "plugin", "theme", or "false" for all modules.
79
+ *
80
+ * @return array
81
+ */
82
+ protected function get_all_modules( $module_type = false ) {
83
+ $option_manager = $this->get_option_manager();
84
+
85
+ if ( false !== $module_type ) {
86
+ return $option_manager->get_option( $module_type . 's', array() );
87
+ }
88
+
89
+ return array(
90
+ self::OPTION_NAME_PLUGINS => $option_manager->get_option( self::OPTION_NAME_PLUGINS, array() ),
91
+ self::OPTION_NAME_THEMES => $option_manager->get_option( self::OPTION_NAME_THEMES, array() ),
92
+ );
93
+ }
94
+
95
+ /**
96
+ * Load plugin data from local DB.
97
+ *
98
+ * @author Vova Feldman (@svovaf)
99
+ * @since 1.0.6
100
+ */
101
+ function load() {
102
+ $all_modules = $this->get_all_modules();
103
+
104
+ if ( ! is_numeric( $this->_module_id ) ) {
105
+ unset( $all_modules[ self::OPTION_NAME_THEMES ] );
106
+ }
107
+
108
+ foreach ( $all_modules as $modules ) {
109
+ /**
110
+ * @since 1.2.2
111
+ *
112
+ * @var $modules FS_Plugin[]
113
+ */
114
+ foreach ( $modules as $module ) {
115
+ $found_module = false;
116
+
117
+ /**
118
+ * If module ID is not numeric, it must be a plugin's slug.
119
+ *
120
+ * @author Leo Fajardo (@leorw)
121
+ * @since 1.2.2
122
+ */
123
+ if ( ! is_numeric( $this->_module_id ) ) {
124
+ if ( $this->_module_id === $module->slug ) {
125
+ $this->_module_id = $module->id;
126
+ $found_module = true;
127
+ }
128
+ } else if ( $this->_module_id == $module->id ) {
129
+ $found_module = true;
130
+ }
131
+
132
+ if ( $found_module ) {
133
+ $this->_module = $module;
134
+ break;
135
+ }
136
+ }
137
+ }
138
+ }
139
+
140
+ /**
141
+ * Store plugin on local DB.
142
+ *
143
+ * @author Vova Feldman (@svovaf)
144
+ * @since 1.0.6
145
+ *
146
+ * @param bool|FS_Plugin $module
147
+ * @param bool $flush
148
+ *
149
+ * @return bool|\FS_Plugin
150
+ */
151
+ function store( $module = false, $flush = true ) {
152
+ if ( false !== $module ) {
153
+ $this->_module = $module;
154
+ }
155
+
156
+ $all_modules = $this->get_all_modules( $this->_module->type );
157
+ $all_modules[ $this->_module->slug ] = $this->_module;
158
+
159
+ $options_manager = $this->get_option_manager();
160
+ $options_manager->set_option( $this->_module->type . 's', $all_modules, $flush );
161
+
162
+ return $this->_module;
163
+ }
164
+
165
+ /**
166
+ * Update local plugin data if different.
167
+ *
168
+ * @author Vova Feldman (@svovaf)
169
+ * @since 1.0.6
170
+ *
171
+ * @param \FS_Plugin $plugin
172
+ * @param bool $store
173
+ *
174
+ * @return bool True if plugin was updated.
175
+ */
176
+ function update( FS_Plugin $plugin, $store = true ) {
177
+ if ( ! ($this->_module instanceof FS_Plugin ) ||
178
+ $this->_module->slug != $plugin->slug ||
179
+ $this->_module->public_key != $plugin->public_key ||
180
+ $this->_module->secret_key != $plugin->secret_key ||
181
+ $this->_module->parent_plugin_id != $plugin->parent_plugin_id ||
182
+ $this->_module->title != $plugin->title
183
+ ) {
184
+ $this->store( $plugin, $store );
185
+
186
+ return true;
187
+ }
188
+
189
+ return false;
190
+ }
191
+
192
+ /**
193
+ * @author Vova Feldman (@svovaf)
194
+ * @since 1.0.6
195
+ *
196
+ * @param FS_Plugin $plugin
197
+ * @param bool $store
198
+ */
199
+ function set( FS_Plugin $plugin, $store = false ) {
200
+ $this->_module = $plugin;
201
+
202
+ if ( $store ) {
203
+ $this->store();
204
+ }
205
+ }
206
+
207
+ /**
208
+ * @author Vova Feldman (@svovaf)
209
+ * @since 1.0.6
210
+ *
211
+ * @return bool|\FS_Plugin
212
+ */
213
+ function get() {
214
+ return isset( $this->_module ) ?
215
+ $this->_module :
216
+ false;
217
+ }
218
+
219
+
220
  }
freemius/includes/managers/index.php CHANGED
@@ -1,3 +1,3 @@
1
- <?php
2
- // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
1
+ <?php
2
+ // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
freemius/includes/sdk/Exceptions/index.php CHANGED
@@ -1,3 +1,3 @@
1
- <?php
2
- // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
1
+ <?php
2
+ // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
freemius/includes/sdk/LICENSE.txt CHANGED
@@ -1,340 +1,340 @@
1
- GNU GENERAL PUBLIC LICENSE
2
- Version 2, June 1991
3
-
4
- Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
5
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
- Everyone is permitted to copy and distribute verbatim copies
7
- of this license document, but changing it is not allowed.
8
-
9
- Preamble
10
-
11
- The licenses for most software are designed to take away your
12
- freedom to share and change it. By contrast, the GNU General Public
13
- License is intended to guarantee your freedom to share and change free
14
- software--to make sure the software is free for all its users. This
15
- General Public License applies to most of the Free Software
16
- Foundation's software and to any other program whose authors commit to
17
- using it. (Some other Free Software Foundation software is covered by
18
- the GNU Lesser General Public License instead.) You can apply it to
19
- your programs, too.
20
-
21
- When we speak of free software, we are referring to freedom, not
22
- price. Our General Public Licenses are designed to make sure that you
23
- have the freedom to distribute copies of free software (and charge for
24
- this service if you wish), that you receive source code or can get it
25
- if you want it, that you can change the software or use pieces of it
26
- in new free programs; and that you know you can do these things.
27
-
28
- To protect your rights, we need to make restrictions that forbid
29
- anyone to deny you these rights or to ask you to surrender the rights.
30
- These restrictions translate to certain responsibilities for you if you
31
- distribute copies of the software, or if you modify it.
32
-
33
- For example, if you distribute copies of such a program, whether
34
- gratis or for a fee, you must give the recipients all the rights that
35
- you have. You must make sure that they, too, receive or can get the
36
- source code. And you must show them these terms so they know their
37
- rights.
38
-
39
- We protect your rights with two steps: (1) copyright the software, and
40
- (2) offer you this license which gives you legal permission to copy,
41
- distribute and/or modify the software.
42
-
43
- Also, for each author's protection and ours, we want to make certain
44
- that everyone understands that there is no warranty for this free
45
- software. If the software is modified by someone else and passed on, we
46
- want its recipients to know that what they have is not the original, so
47
- that any problems introduced by others will not reflect on the original
48
- authors' reputations.
49
-
50
- Finally, any free program is threatened constantly by software
51
- patents. We wish to avoid the danger that redistributors of a free
52
- program will individually obtain patent licenses, in effect making the
53
- program proprietary. To prevent this, we have made it clear that any
54
- patent must be licensed for everyone's free use or not licensed at all.
55
-
56
- The precise terms and conditions for copying, distribution and
57
- modification follow.
58
-
59
- GNU GENERAL PUBLIC LICENSE
60
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
-
62
- 0. This License applies to any program or other work which contains
63
- a notice placed by the copyright holder saying it may be distributed
64
- under the terms of this General Public License. The "Program", below,
65
- refers to any such program or work, and a "work based on the Program"
66
- means either the Program or any derivative work under copyright law:
67
- that is to say, a work containing the Program or a portion of it,
68
- either verbatim or with modifications and/or translated into another
69
- language. (Hereinafter, translation is included without limitation in
70
- the term "modification".) Each licensee is addressed as "you".
71
-
72
- Activities other than copying, distribution and modification are not
73
- covered by this License; they are outside its scope. The act of
74
- running the Program is not restricted, and the output from the Program
75
- is covered only if its contents constitute a work based on the
76
- Program (independent of having been made by running the Program).
77
- Whether that is true depends on what the Program does.
78
-
79
- 1. You may copy and distribute verbatim copies of the Program's
80
- source code as you receive it, in any medium, provided that you
81
- conspicuously and appropriately publish on each copy an appropriate
82
- copyright notice and disclaimer of warranty; keep intact all the
83
- notices that refer to this License and to the absence of any warranty;
84
- and give any other recipients of the Program a copy of this License
85
- along with the Program.
86
-
87
- You may charge a fee for the physical act of transferring a copy, and
88
- you may at your option offer warranty protection in exchange for a fee.
89
-
90
- 2. You may modify your copy or copies of the Program or any portion
91
- of it, thus forming a work based on the Program, and copy and
92
- distribute such modifications or work under the terms of Section 1
93
- above, provided that you also meet all of these conditions:
94
-
95
- a) You must cause the modified files to carry prominent notices
96
- stating that you changed the files and the date of any change.
97
-
98
- b) You must cause any work that you distribute or publish, that in
99
- whole or in part contains or is derived from the Program or any
100
- part thereof, to be licensed as a whole at no charge to all third
101
- parties under the terms of this License.
102
-
103
- c) If the modified program normally reads commands interactively
104
- when run, you must cause it, when started running for such
105
- interactive use in the most ordinary way, to print or display an
106
- announcement including an appropriate copyright notice and a
107
- notice that there is no warranty (or else, saying that you provide
108
- a warranty) and that users may redistribute the program under
109
- these conditions, and telling the user how to view a copy of this
110
- License. (Exception: if the Program itself is interactive but
111
- does not normally print such an announcement, your work based on
112
- the Program is not required to print an announcement.)
113
-
114
- These requirements apply to the modified work as a whole. If
115
- identifiable sections of that work are not derived from the Program,
116
- and can be reasonably considered independent and separate works in
117
- themselves, then this License, and its terms, do not apply to those
118
- sections when you distribute them as separate works. But when you
119
- distribute the same sections as part of a whole which is a work based
120
- on the Program, the distribution of the whole must be on the terms of
121
- this License, whose permissions for other licensees extend to the
122
- entire whole, and thus to each and every part regardless of who wrote it.
123
-
124
- Thus, it is not the intent of this section to claim rights or contest
125
- your rights to work written entirely by you; rather, the intent is to
126
- exercise the right to control the distribution of derivative or
127
- collective works based on the Program.
128
-
129
- In addition, mere aggregation of another work not based on the Program
130
- with the Program (or with a work based on the Program) on a volume of
131
- a storage or distribution medium does not bring the other work under
132
- the scope of this License.
133
-
134
- 3. You may copy and distribute the Program (or a work based on it,
135
- under Section 2) in object code or executable form under the terms of
136
- Sections 1 and 2 above provided that you also do one of the following:
137
-
138
- a) Accompany it with the complete corresponding machine-readable
139
- source code, which must be distributed under the terms of Sections
140
- 1 and 2 above on a medium customarily used for software interchange; or,
141
-
142
- b) Accompany it with a written offer, valid for at least three
143
- years, to give any third party, for a charge no more than your
144
- cost of physically performing source distribution, a complete
145
- machine-readable copy of the corresponding source code, to be
146
- distributed under the terms of Sections 1 and 2 above on a medium
147
- customarily used for software interchange; or,
148
-
149
- c) Accompany it with the information you received as to the offer
150
- to distribute corresponding source code. (This alternative is
151
- allowed only for noncommercial distribution and only if you
152
- received the program in object code or executable form with such
153
- an offer, in accord with Subsection b above.)
154
-
155
- The source code for a work means the preferred form of the work for
156
- making modifications to it. For an executable work, complete source
157
- code means all the source code for all modules it contains, plus any
158
- associated interface definition files, plus the scripts used to
159
- control compilation and installation of the executable. However, as a
160
- special exception, the source code distributed need not include
161
- anything that is normally distributed (in either source or binary
162
- form) with the major components (compiler, kernel, and so on) of the
163
- operating system on which the executable runs, unless that component
164
- itself accompanies the executable.
165
-
166
- If distribution of executable or object code is made by offering
167
- access to copy from a designated place, then offering equivalent
168
- access to copy the source code from the same place counts as
169
- distribution of the source code, even though third parties are not
170
- compelled to copy the source along with the object code.
171
-
172
- 4. You may not copy, modify, sublicense, or distribute the Program
173
- except as expressly provided under this License. Any attempt
174
- otherwise to copy, modify, sublicense or distribute the Program is
175
- void, and will automatically terminate your rights under this License.
176
- However, parties who have received copies, or rights, from you under
177
- this License will not have their licenses terminated so long as such
178
- parties remain in full compliance.
179
-
180
- 5. You are not required to accept this License, since you have not
181
- signed it. However, nothing else grants you permission to modify or
182
- distribute the Program or its derivative works. These actions are
183
- prohibited by law if you do not accept this License. Therefore, by
184
- modifying or distributing the Program (or any work based on the
185
- Program), you indicate your acceptance of this License to do so, and
186
- all its terms and conditions for copying, distributing or modifying
187
- the Program or works based on it.
188
-
189
- 6. Each time you redistribute the Program (or any work based on the
190
- Program), the recipient automatically receives a license from the
191
- original licensor to copy, distribute or modify the Program subject to
192
- these terms and conditions. You may not impose any further
193
- restrictions on the recipients' exercise of the rights granted herein.
194
- You are not responsible for enforcing compliance by third parties to
195
- this License.
196
-
197
- 7. If, as a consequence of a court judgment or allegation of patent
198
- infringement or for any other reason (not limited to patent issues),
199
- conditions are imposed on you (whether by court order, agreement or
200
- otherwise) that contradict the conditions of this License, they do not
201
- excuse you from the conditions of this License. If you cannot
202
- distribute so as to satisfy simultaneously your obligations under this
203
- License and any other pertinent obligations, then as a consequence you
204
- may not distribute the Program at all. For example, if a patent
205
- license would not permit royalty-free redistribution of the Program by
206
- all those who receive copies directly or indirectly through you, then
207
- the only way you could satisfy both it and this License would be to
208
- refrain entirely from distribution of the Program.
209
-
210
- If any portion of this section is held invalid or unenforceable under
211
- any particular circumstance, the balance of the section is intended to
212
- apply and the section as a whole is intended to apply in other
213
- circumstances.
214
-
215
- It is not the purpose of this section to induce you to infringe any
216
- patents or other property right claims or to contest validity of any
217
- such claims; this section has the sole purpose of protecting the
218
- integrity of the free software distribution system, which is
219
- implemented by public license practices. Many people have made
220
- generous contributions to the wide range of software distributed
221
- through that system in reliance on consistent application of that
222
- system; it is up to the author/donor to decide if he or she is willing
223
- to distribute software through any other system and a licensee cannot
224
- impose that choice.
225
-
226
- This section is intended to make thoroughly clear what is believed to
227
- be a consequence of the rest of this License.
228
-
229
- 8. If the distribution and/or use of the Program is restricted in
230
- certain countries either by patents or by copyrighted interfaces, the
231
- original copyright holder who places the Program under this License
232
- may add an explicit geographical distribution limitation excluding
233
- those countries, so that distribution is permitted only in or among
234
- countries not thus excluded. In such case, this License incorporates
235
- the limitation as if written in the body of this License.
236
-
237
- 9. The Free Software Foundation may publish revised and/or new versions
238
- of the General Public License from time to time. Such new versions will
239
- be similar in spirit to the present version, but may differ in detail to
240
- address new problems or concerns.
241
-
242
- Each version is given a distinguishing version number. If the Program
243
- specifies a version number of this License which applies to it and "any
244
- later version", you have the option of following the terms and conditions
245
- either of that version or of any later version published by the Free
246
- Software Foundation. If the Program does not specify a version number of
247
- this License, you may choose any version ever published by the Free Software
248
- Foundation.
249
-
250
- 10. If you wish to incorporate parts of the Program into other free
251
- programs whose distribution conditions are different, write to the author
252
- to ask for permission. For software which is copyrighted by the Free
253
- Software Foundation, write to the Free Software Foundation; we sometimes
254
- make exceptions for this. Our decision will be guided by the two goals
255
- of preserving the free status of all derivatives of our free software and
256
- of promoting the sharing and reuse of software generally.
257
-
258
- NO WARRANTY
259
-
260
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
- FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
- OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
- PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
- OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
- TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
- PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
- REPAIR OR CORRECTION.
269
-
270
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
- WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
- REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
- INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
- OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
- TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
- YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
- PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
- POSSIBILITY OF SUCH DAMAGES.
279
-
280
- END OF TERMS AND CONDITIONS
281
-
282
- How to Apply These Terms to Your New Programs
283
-
284
- If you develop a new program, and you want it to be of the greatest
285
- possible use to the public, the best way to achieve this is to make it
286
- free software which everyone can redistribute and change under these terms.
287
-
288
- To do so, attach the following notices to the program. It is safest
289
- to attach them to the start of each source file to most effectively
290
- convey the exclusion of warranty; and each file should have at least
291
- the "copyright" line and a pointer to where the full notice is found.
292
-
293
- {description}
294
- Copyright (C) {year} {fullname}
295
-
296
- This program is free software; you can redistribute it and/or modify
297
- it under the terms of the GNU General Public License as published by
298
- the Free Software Foundation; either version 2 of the License, or
299
- (at your option) any later version.
300
-
301
- This program is distributed in the hope that it will be useful,
302
- but WITHOUT ANY WARRANTY; without even the implied warranty of
303
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
- GNU General Public License for more details.
305
-
306
- You should have received a copy of the GNU General Public License along
307
- with this program; if not, write to the Free Software Foundation, Inc.,
308
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309
-
310
- Also add information on how to contact you by electronic and paper mail.
311
-
312
- If the program is interactive, make it output a short notice like this
313
- when it starts in an interactive mode:
314
-
315
- Gnomovision version 69, Copyright (C) year name of author
316
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317
- This is free software, and you are welcome to redistribute it
318
- under certain conditions; type `show c' for details.
319
-
320
- The hypothetical commands `show w' and `show c' should show the appropriate
321
- parts of the General Public License. Of course, the commands you use may
322
- be called something other than `show w' and `show c'; they could even be
323
- mouse-clicks or menu items--whatever suits your program.
324
-
325
- You should also get your employer (if you work as a programmer) or your
326
- school, if any, to sign a "copyright disclaimer" for the program, if
327
- necessary. Here is a sample; alter the names:
328
-
329
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
-
332
- {signature of Ty Coon}, 1 April 1989
333
- Ty Coon, President of Vice
334
-
335
- This General Public License does not permit incorporating your program into
336
- proprietary programs. If your program is a subroutine library, you may
337
- consider it more useful to permit linking proprietary applications with the
338
- library. If this is what you want to do, use the GNU Lesser General
339
- Public License instead of this License.
340
-
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
5
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+ Preamble
10
+
11
+ The licenses for most software are designed to take away your
12
+ freedom to share and change it. By contrast, the GNU General Public
13
+ License is intended to guarantee your freedom to share and change free
14
+ software--to make sure the software is free for all its users. This
15
+ General Public License applies to most of the Free Software
16
+ Foundation's software and to any other program whose authors commit to
17
+ using it. (Some other Free Software Foundation software is covered by
18
+ the GNU Lesser General Public License instead.) You can apply it to
19
+ your programs, too.
20
+
21
+ When we speak of free software, we are referring to freedom, not
22
+ price. Our General Public Licenses are designed to make sure that you
23
+ have the freedom to distribute copies of free software (and charge for
24
+ this service if you wish), that you receive source code or can get it
25
+ if you want it, that you can change the software or use pieces of it
26
+ in new free programs; and that you know you can do these things.
27
+
28
+ To protect your rights, we need to make restrictions that forbid
29
+ anyone to deny you these rights or to ask you to surrender the rights.
30
+ These restrictions translate to certain responsibilities for you if you
31
+ distribute copies of the software, or if you modify it.
32
+
33
+ For example, if you distribute copies of such a program, whether
34
+ gratis or for a fee, you must give the recipients all the rights that
35
+ you have. You must make sure that they, too, receive or can get the
36
+ source code. And you must show them these terms so they know their
37
+ rights.
38
+
39
+ We protect your rights with two steps: (1) copyright the software, and
40
+ (2) offer you this license which gives you legal permission to copy,
41
+ distribute and/or modify the software.
42
+
43
+ Also, for each author's protection and ours, we want to make certain
44
+ that everyone understands that there is no warranty for this free
45
+ software. If the software is modified by someone else and passed on, we
46
+ want its recipients to know that what they have is not the original, so
47
+ that any problems introduced by others will not reflect on the original
48
+ authors' reputations.
49
+
50
+ Finally, any free program is threatened constantly by software
51
+ patents. We wish to avoid the danger that redistributors of a free
52
+ program will individually obtain patent licenses, in effect making the
53
+ program proprietary. To prevent this, we have made it clear that any
54
+ patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+ 0. This License applies to any program or other work which contains
63
+ a notice placed by the copyright holder saying it may be distributed
64
+ under the terms of this General Public License. The "Program", below,
65
+ refers to any such program or work, and a "work based on the Program"
66
+ means either the Program or any derivative work under copyright law:
67
+ that is to say, a work containing the Program or a portion of it,
68
+ either verbatim or with modifications and/or translated into another
69
+ language. (Hereinafter, translation is included without limitation in
70
+ the term "modification".) Each licensee is addressed as "you".
71
+
72
+ Activities other than copying, distribution and modification are not
73
+ covered by this License; they are outside its scope. The act of
74
+ running the Program is not restricted, and the output from the Program
75
+ is covered only if its contents constitute a work based on the
76
+ Program (independent of having been made by running the Program).
77
+ Whether that is true depends on what the Program does.
78
+
79
+ 1. You may copy and distribute verbatim copies of the Program's
80
+ source code as you receive it, in any medium, provided that you
81
+ conspicuously and appropriately publish on each copy an appropriate
82
+ copyright notice and disclaimer of warranty; keep intact all the
83
+ notices that refer to this License and to the absence of any warranty;
84
+ and give any other recipients of the Program a copy of this License
85
+ along with the Program.
86
+
87
+ You may charge a fee for the physical act of transferring a copy, and
88
+ you may at your option offer warranty protection in exchange for a fee.
89
+
90
+ 2. You may modify your copy or copies of the Program or any portion
91
+ of it, thus forming a work based on the Program, and copy and
92
+ distribute such modifications or work under the terms of Section 1
93
+ above, provided that you also meet all of these conditions:
94
+
95
+ a) You must cause the modified files to carry prominent notices
96
+ stating that you changed the files and the date of any change.
97
+
98
+ b) You must cause any work that you distribute or publish, that in
99
+ whole or in part contains or is derived from the Program or any
100
+ part thereof, to be licensed as a whole at no charge to all third
101
+ parties under the terms of this License.
102
+
103
+ c) If the modified program normally reads commands interactively
104
+ when run, you must cause it, when started running for such
105
+ interactive use in the most ordinary way, to print or display an
106
+ announcement including an appropriate copyright notice and a
107
+ notice that there is no warranty (or else, saying that you provide
108
+ a warranty) and that users may redistribute the program under
109
+ these conditions, and telling the user how to view a copy of this
110
+ License. (Exception: if the Program itself is interactive but
111
+ does not normally print such an announcement, your work based on
112
+ the Program is not required to print an announcement.)
113
+
114
+ These requirements apply to the modified work as a whole. If
115
+ identifiable sections of that work are not derived from the Program,
116
+ and can be reasonably considered independent and separate works in
117
+ themselves, then this License, and its terms, do not apply to those
118
+ sections when you distribute them as separate works. But when you
119
+ distribute the same sections as part of a whole which is a work based
120
+ on the Program, the distribution of the whole must be on the terms of
121
+ this License, whose permissions for other licensees extend to the
122
+ entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+ Thus, it is not the intent of this section to claim rights or contest
125
+ your rights to work written entirely by you; rather, the intent is to
126
+ exercise the right to control the distribution of derivative or
127
+ collective works based on the Program.
128
+
129
+ In addition, mere aggregation of another work not based on the Program
130
+ with the Program (or with a work based on the Program) on a volume of
131
+ a storage or distribution medium does not bring the other work under
132
+ the scope of this License.
133
+
134
+ 3. You may copy and distribute the Program (or a work based on it,
135
+ under Section 2) in object code or executable form under the terms of
136
+ Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+ a) Accompany it with the complete corresponding machine-readable
139
+ source code, which must be distributed under the terms of Sections
140
+ 1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+ b) Accompany it with a written offer, valid for at least three
143
+ years, to give any third party, for a charge no more than your
144
+ cost of physically performing source distribution, a complete
145
+ machine-readable copy of the corresponding source code, to be
146
+ distributed under the terms of Sections 1 and 2 above on a medium
147
+ customarily used for software interchange; or,
148
+
149
+ c) Accompany it with the information you received as to the offer
150
+ to distribute corresponding source code. (This alternative is
151
+ allowed only for noncommercial distribution and only if you
152
+ received the program in object code or executable form with such
153
+ an offer, in accord with Subsection b above.)
154
+
155
+ The source code for a work means the preferred form of the work for
156
+ making modifications to it. For an executable work, complete source
157
+ code means all the source code for all modules it contains, plus any
158
+ associated interface definition files, plus the scripts used to
159
+ control compilation and installation of the executable. However, as a
160
+ special exception, the source code distributed need not include
161
+ anything that is normally distributed (in either source or binary
162
+ form) with the major components (compiler, kernel, and so on) of the
163
+ operating system on which the executable runs, unless that component
164
+ itself accompanies the executable.
165
+
166
+ If distribution of executable or object code is made by offering
167
+ access to copy from a designated place, then offering equivalent
168
+ access to copy the source code from the same place counts as
169
+ distribution of the source code, even though third parties are not
170
+ compelled to copy the source along with the object code.
171
+
172
+ 4. You may not copy, modify, sublicense, or distribute the Program
173
+ except as expressly provided under this License. Any attempt
174
+ otherwise to copy, modify, sublicense or distribute the Program is
175
+ void, and will automatically terminate your rights under this License.
176
+ However, parties who have received copies, or rights, from you under
177
+ this License will not have their licenses terminated so long as such
178
+ parties remain in full compliance.
179
+
180
+ 5. You are not required to accept this License, since you have not
181
+ signed it. However, nothing else grants you permission to modify or
182
+ distribute the Program or its derivative works. These actions are
183
+ prohibited by law if you do not accept this License. Therefore, by
184
+ modifying or distributing the Program (or any work based on the
185
+ Program), you indicate your acceptance of this License to do so, and
186
+ all its terms and conditions for copying, distributing or modifying
187
+ the Program or works based on it.
188
+
189
+ 6. Each time you redistribute the Program (or any work based on the
190
+ Program), the recipient automatically receives a license from the
191
+ original licensor to copy, distribute or modify the Program subject to
192
+ these terms and conditions. You may not impose any further
193
+ restrictions on the recipients' exercise of the rights granted herein.
194
+ You are not responsible for enforcing compliance by third parties to
195
+ this License.
196
+
197
+ 7. If, as a consequence of a court judgment or allegation of patent
198
+ infringement or for any other reason (not limited to patent issues),
199
+ conditions are imposed on you (whether by court order, agreement or
200
+ otherwise) that contradict the conditions of this License, they do not
201
+ excuse you from the conditions of this License. If you cannot
202
+ distribute so as to satisfy simultaneously your obligations under this
203
+ License and any other pertinent obligations, then as a consequence you
204
+ may not distribute the Program at all. For example, if a patent
205
+ license would not permit royalty-free redistribution of the Program by
206
+ all those who receive copies directly or indirectly through you, then
207
+ the only way you could satisfy both it and this License would be to
208
+ refrain entirely from distribution of the Program.
209
+
210
+ If any portion of this section is held invalid or unenforceable under
211
+ any particular circumstance, the balance of the section is intended to
212
+ apply and the section as a whole is intended to apply in other
213
+ circumstances.
214
+
215
+ It is not the purpose of this section to induce you to infringe any
216
+ patents or other property right claims or to contest validity of any
217
+ such claims; this section has the sole purpose of protecting the
218
+ integrity of the free software distribution system, which is
219
+ implemented by public license practices. Many people have made
220
+ generous contributions to the wide range of software distributed
221
+ through that system in reliance on consistent application of that
222
+ system; it is up to the author/donor to decide if he or she is willing
223
+ to distribute software through any other system and a licensee cannot
224
+ impose that choice.
225
+
226
+ This section is intended to make thoroughly clear what is believed to
227
+ be a consequence of the rest of this License.
228
+
229
+ 8. If the distribution and/or use of the Program is restricted in
230
+ certain countries either by patents or by copyrighted interfaces, the
231
+ original copyright holder who places the Program under this License
232
+ may add an explicit geographical distribution limitation excluding
233
+ those countries, so that distribution is permitted only in or among
234
+ countries not thus excluded. In such case, this License incorporates
235
+ the limitation as if written in the body of this License.
236
+
237
+ 9. The Free Software Foundation may publish revised and/or new versions
238
+ of the General Public License from time to time. Such new versions will
239
+ be similar in spirit to the present version, but may differ in detail to
240
+ address new problems or concerns.
241
+
242
+ Each version is given a distinguishing version number. If the Program
243
+ specifies a version number of this License which applies to it and "any
244
+ later version", you have the option of following the terms and conditions
245
+ either of that version or of any later version published by the Free
246
+ Software Foundation. If the Program does not specify a version number of
247
+ this License, you may choose any version ever published by the Free Software
248
+ Foundation.
249
+
250
+ 10. If you wish to incorporate parts of the Program into other free
251
+ programs whose distribution conditions are different, write to the author
252
+ to ask for permission. For software which is copyrighted by the Free
253
+ Software Foundation, write to the Free Software Foundation; we sometimes
254
+ make exceptions for this. Our decision will be guided by the two goals
255
+ of preserving the free status of all derivatives of our free software and
256
+ of promoting the sharing and reuse of software generally.
257
+
258
+ NO WARRANTY
259
+
260
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+ REPAIR OR CORRECTION.
269
+
270
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+ POSSIBILITY OF SUCH DAMAGES.
279
+
280
+ END OF TERMS AND CONDITIONS
281
+
282
+ How to Apply These Terms to Your New Programs
283
+
284
+ If you develop a new program, and you want it to be of the greatest
285
+ possible use to the public, the best way to achieve this is to make it
286
+ free software which everyone can redistribute and change under these terms.
287
+
288
+ To do so, attach the following notices to the program. It is safest
289
+ to attach them to the start of each source file to most effectively
290
+ convey the exclusion of warranty; and each file should have at least
291
+ the "copyright" line and a pointer to where the full notice is found.
292
+
293
+ {description}
294
+ Copyright (C) {year} {fullname}
295
+
296
+ This program is free software; you can redistribute it and/or modify
297
+ it under the terms of the GNU General Public License as published by
298
+ the Free Software Foundation; either version 2 of the License, or
299
+ (at your option) any later version.
300
+
301
+ This program is distributed in the hope that it will be useful,
302
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
303
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
+ GNU General Public License for more details.
305
+
306
+ You should have received a copy of the GNU General Public License along
307
+ with this program; if not, write to the Free Software Foundation, Inc.,
308
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309
+
310
+ Also add information on how to contact you by electronic and paper mail.
311
+
312
+ If the program is interactive, make it output a short notice like this
313
+ when it starts in an interactive mode:
314
+
315
+ Gnomovision version 69, Copyright (C) year name of author
316
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317
+ This is free software, and you are welcome to redistribute it
318
+ under certain conditions; type `show c' for details.
319
+
320
+ The hypothetical commands `show w' and `show c' should show the appropriate
321
+ parts of the General Public License. Of course, the commands you use may
322
+ be called something other than `show w' and `show c'; they could even be
323
+ mouse-clicks or menu items--whatever suits your program.
324
+
325
+ You should also get your employer (if you work as a programmer) or your
326
+ school, if any, to sign a "copyright disclaimer" for the program, if
327
+ necessary. Here is a sample; alter the names:
328
+
329
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
+
332
+ {signature of Ty Coon}, 1 April 1989
333
+ Ty Coon, President of Vice
334
+
335
+ This General Public License does not permit incorporating your program into
336
+ proprietary programs. If your program is a subroutine library, you may
337
+ consider it more useful to permit linking proprietary applications with the
338
+ library. If this is what you want to do, use the GNU Lesser General
339
+ Public License instead of this License.
340
+
freemius/includes/sdk/index.php CHANGED
@@ -1,3 +1,3 @@
1
- <?php
2
- // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
1
+ <?php
2
+ // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
freemius/includes/supplements/fs-essential-functions-1.1.7.1.php CHANGED
@@ -1,47 +1,47 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.1.7
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- /**
14
- * Find the plugin main file path based on any give file inside the plugin's folder.
15
- *
16
- * @author Vova Feldman (@svovaf)
17
- * @since 1.1.7.1
18
- *
19
- * @param string $file Absolute path to a file inside a plugin's folder.
20
- *
21
- * @return string
22
- */
23
- function fs_find_direct_caller_plugin_file( $file ) {
24
- /**
25
- * All the code below will be executed once on activation.
26
- * If the user changes the main plugin's file name, the file_exists()
27
- * will catch it.
28
- */
29
- if ( ! function_exists( 'get_plugins' ) ) {
30
- require_once ABSPATH . 'wp-admin/includes/plugin.php';
31
- }
32
-
33
- $all_plugins = get_plugins();
34
-
35
- $file_real_path = fs_normalize_path( realpath( $file ) );
36
-
37
- // Get active plugin's main files real full names (might be symlinks).
38
- foreach ( $all_plugins as $relative_path => &$data ) {
39
- if ( 0 === strpos( $file_real_path, fs_normalize_path( dirname( realpath( WP_PLUGIN_DIR . '/' . $relative_path ) ) ) ) ) {
40
- if ( '.' !== dirname( trailingslashit( $relative_path ) ) ) {
41
- return $relative_path;
42
- }
43
- }
44
- }
45
-
46
- return null;
47
- }
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.1.7
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ /**
14
+ * Find the plugin main file path based on any give file inside the plugin's folder.
15
+ *
16
+ * @author Vova Feldman (@svovaf)
17
+ * @since 1.1.7.1
18
+ *
19
+ * @param string $file Absolute path to a file inside a plugin's folder.
20
+ *
21
+ * @return string
22
+ */
23
+ function fs_find_direct_caller_plugin_file( $file ) {
24
+ /**
25
+ * All the code below will be executed once on activation.
26
+ * If the user changes the main plugin's file name, the file_exists()
27
+ * will catch it.
28
+ */
29
+ if ( ! function_exists( 'get_plugins' ) ) {
30
+ require_once ABSPATH . 'wp-admin/includes/plugin.php';
31
+ }
32
+
33
+ $all_plugins = get_plugins();
34
+
35
+ $file_real_path = fs_normalize_path( realpath( $file ) );
36
+
37
+ // Get active plugin's main files real full names (might be symlinks).
38
+ foreach ( $all_plugins as $relative_path => &$data ) {
39
+ if ( 0 === strpos( $file_real_path, fs_normalize_path( dirname( realpath( WP_PLUGIN_DIR . '/' . $relative_path ) ) ) ) ) {
40
+ if ( '.' !== dirname( trailingslashit( $relative_path ) ) ) {
41
+ return $relative_path;
42
+ }
43
+ }
44
+ }
45
+
46
+ return null;
47
+ }
freemius/includes/supplements/index.php CHANGED
@@ -1,3 +1,3 @@
1
- <?php
2
- // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
1
+ <?php
2
+ // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
freemius/index.php CHANGED
@@ -1,3 +1,3 @@
1
- <?php
2
- // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
1
+ <?php
2
+ // Silence is golden.
3
  // Hide file structure from users on unprotected servers.
freemius/languages/freemius-da_DK.po CHANGED
@@ -1,1826 +1,1826 @@
1
- # Copyright (C) 2017 freemius
2
- # This file is distributed under the same license as the freemius package.
3
- # Translators:
4
- # Joachim Jensen <jv@intox.dk>, 2016-2017
5
- msgid ""
6
- msgstr ""
7
- "Project-Id-Version: WordPress SDK\n"
8
- "Report-Msgid-Bugs-To: https://github.com/Freemius/wordpress-sdk/issues\n"
9
- "POT-Creation-Date: \n"
10
- "PO-Revision-Date: 2017-08-24 12:32+0000\n"
11
- "Last-Translator: Vova Feldman <vova@freemius.com>\n"
12
- "Language: da_DK\n"
13
- "Language-Team: Danish (Denmark) (http://www.transifex.com/freemius/wordpress-sdk/language/da_DK/)\n"
14
- "Content-Type: text/plain; charset=UTF-8\n"
15
- "Content-Transfer-Encoding: 8bit\n"
16
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
- "MIME-Version: 1.0\n"
18
- "X-Poedit-Basepath: ..\n"
19
- "X-Poedit-KeywordsList: _fs_text;_fs_echo;_fs_esc_attr;_fs_esc_attr_echo;_fs_esc_html;_fs_esc_html_echo;_fs_x:1,2c;_fs_ex:1,2c;_fs_esc_attr_x:1,2c;_fs_esc_html_x:1,2c;_fs_n:1,2;_fs_n_noop:1,2;_fs_nx:1,2,4c;_fs_nx_noop:1,2,3c\n"
20
- "X-Poedit-SearchPath-0: .\n"
21
- "X-Poedit-SearchPathExcluded-0: *.js\n"
22
- "X-Poedit-SourceCharset: UTF-8\n"
23
-
24
- #: includes/i18n.php:37
25
- msgid "Account"
26
- msgstr "Konto"
27
-
28
- #: includes/i18n.php:38
29
- msgid "Add-On"
30
- msgstr "Add-On"
31
-
32
- #: includes/i18n.php:39
33
- msgid "Contact Us"
34
- msgstr "Kontakt os"
35
-
36
- #: includes/i18n.php:40
37
- msgid "Contact Support"
38
- msgstr "Kontakt support"
39
-
40
- #: includes/i18n.php:41
41
- msgid "Change Ownership"
42
- msgstr "Skift ejerskab"
43
-
44
- #: includes/i18n.php:42
45
- msgid "Support"
46
- msgstr "Support"
47
-
48
- #: includes/i18n.php:43
49
- msgid "Support Forum"
50
- msgstr "Supportforum"
51
-
52
- #: includes/i18n.php:44
53
- msgid "Add-Ons"
54
- msgstr "Add-Ons"
55
-
56
- #: includes/i18n.php:45
57
- msgctxt "verb"
58
- msgid "Upgrade"
59
- msgstr "Opgrader"
60
-
61
- #: includes/i18n.php:46
62
- msgid "Awesome"
63
- msgstr "Sejt"
64
-
65
- #: includes/i18n.php:47
66
- msgctxt "noun"
67
- msgid "Pricing"
68
- msgstr "Priser"
69
-
70
- #: includes/i18n.php:48
71
- msgctxt "noun"
72
- msgid "Price"
73
- msgstr "Pris"
74
-
75
- #: includes/i18n.php:49
76
- msgid "Unlimited Updates"
77
- msgstr "Ubegrænsede opdateringer"
78
-
79
- #: includes/i18n.php:50
80
- msgctxt "verb"
81
- msgid "Downgrade"
82
- msgstr "Nedgrader"
83
-
84
- #: includes/i18n.php:51
85
- msgctxt "verb"
86
- msgid "Cancel Subscription"
87
- msgstr "Annuller abonnement"
88
-
89
- #: includes/i18n.php:52
90
- msgid "Cancel Trial"
91
- msgstr "Annuller prøveperiode"
92
-
93
- #: includes/i18n.php:53
94
- msgid "Free Trial"
95
- msgstr "Gratis prøveperiode"
96
-
97
- #: includes/i18n.php:54
98
- msgid "Start my free %s"
99
- msgstr "Start min gratis %s"
100
-
101
- #: includes/i18n.php:55
102
- msgid "No commitment for %s - cancel anytime"
103
- msgstr "Ingen bindinger ved %s - annuller når som helst"
104
-
105
- #: includes/i18n.php:56
106
- msgid "After your free %s, pay as little as %s"
107
- msgstr "Efter din gratis %s er prisen kun %s"
108
-
109
- #: includes/i18n.php:57
110
- msgid "Details"
111
- msgstr "Detaljer"
112
-
113
- #: includes/i18n.php:58
114
- msgid "Account Details"
115
- msgstr "Kontodetaljer"
116
-
117
- #: includes/i18n.php:59
118
- msgctxt "verb"
119
- msgid "Delete"
120
- msgstr "Slet"
121
-
122
- #: includes/i18n.php:60
123
- msgctxt "verb"
124
- msgid "Show"
125
- msgstr "Vis"
126
-
127
- #: includes/i18n.php:61
128
- msgctxt "verb"
129
- msgid "Hide"
130
- msgstr "Skjul"
131
-
132
- #: includes/i18n.php:62
133
- msgctxt "verb"
134
- msgid "Edit"
135
- msgstr "Rediger"
136
-
137
- #: includes/i18n.php:63
138
- msgctxt "verb"
139
- msgid "Update"
140
- msgstr "Opdater"
141
-
142
- #: includes/i18n.php:64
143
- msgid "Date"
144
- msgstr "Dato"
145
-
146
- #: includes/i18n.php:65
147
- msgid "Amount"
148
- msgstr "Beløb"
149
-
150
- #: includes/i18n.php:66
151
- msgid "Invoice"
152
- msgstr "Faktura"
153
-
154
- #: includes/i18n.php:67
155
- msgid "Billing"
156
- msgstr "Betaling"
157
-
158
- #: includes/i18n.php:68
159
- msgid "Payments"
160
- msgstr "Betalinger"
161
-
162
- #: includes/i18n.php:69
163
- msgid "Delete Account"
164
- msgstr "Slet konto"
165
-
166
- #: includes/i18n.php:70
167
- msgctxt "as close a window"
168
- msgid "Dismiss"
169
- msgstr "Fjern"
170
-
171
- #: includes/i18n.php:71
172
- msgctxt "as product pricing plan"
173
- msgid "Plan"
174
- msgstr "Plan"
175
-
176
- #: includes/i18n.php:72
177
- msgid "Change Plan"
178
- msgstr "Skift plan"
179
-
180
- #: includes/i18n.php:73
181
- msgctxt "as download professional version"
182
- msgid "Download %s Version"
183
- msgstr "Download %s Version"
184
-
185
- #: includes/i18n.php:74
186
- msgctxt "as download professional version now"
187
- msgid "Download %s version now"
188
- msgstr "Download %s version now"
189
-
190
- #: includes/i18n.php:75
191
- msgctxt "as download latest version"
192
- msgid "Download Latest"
193
- msgstr "Download seneste"
194
-
195
- #: includes/i18n.php:76
196
- msgctxt "E.g. you have a professional license."
197
- msgid "You have a %s license."
198
- msgstr "Du har en %s licens."
199
-
200
- #: includes/i18n.php:77
201
- msgid "New"
202
- msgstr "Ny"
203
-
204
- #: includes/i18n.php:78
205
- msgid "Free"
206
- msgstr "Gratis"
207
-
208
- #: includes/i18n.php:79
209
- msgctxt "as trial plan"
210
- msgid "Trial"
211
- msgstr "Prøveperiode"
212
-
213
- #: includes/i18n.php:80
214
- msgctxt "as starting a trial plan"
215
- msgid "Start Trial"
216
- msgstr "Start prøveperiode"
217
-
218
- #: includes/i18n.php:81
219
- msgctxt "verb"
220
- msgid "Purchase"
221
- msgstr "Køb"
222
-
223
- #: includes/i18n.php:82
224
- msgid "Purchase License"
225
- msgstr "Køb licens"
226
-
227
- #: includes/i18n.php:83
228
- msgctxt "verb"
229
- msgid "Buy"
230
- msgstr "Køb"
231
-
232
- #: includes/i18n.php:84
233
- msgid "Buy License"
234
- msgstr "Køb licens"
235
-
236
- #: includes/i18n.php:85
237
- msgid "Single Site License"
238
- msgstr "Single Site License"
239
-
240
- #: includes/i18n.php:86
241
- msgid "Unlimited Licenses"
242
- msgstr "Ubegrænsede licenser"
243
-
244
- #: includes/i18n.php:87
245
- msgid "Up to %s Sites"
246
- msgstr "Op til %s websteder"
247
-
248
- #: includes/i18n.php:88
249
- msgid "%sRenew your license now%s to access version %s features and support."
250
- msgstr "%sRenew your license now%s to access version %s features and support."
251
-
252
- #: includes/i18n.php:89
253
- msgid "Enter the email address you've used for the upgrade below and we will resend you the license key."
254
- msgstr "Enter the email address you've used for the upgrade below and we will resend you the license key."
255
-
256
- #: includes/i18n.php:90
257
- msgctxt "e.g. Professional Plan"
258
- msgid "%s Plan"
259
- msgstr "%s Plan"
260
-
261
- #: includes/i18n.php:91
262
- msgid "You are just one step away - %s"
263
- msgstr "Du mangler kun ét skridt - %s"
264
-
265
- #: includes/i18n.php:92
266
- msgctxt "%s - plugin name. As complete \"Jetpack\" activation now"
267
- msgid "Complete \"%s\" Activation Now"
268
- msgstr "Færdiggør aktivering af \"%s\" nu"
269
-
270
- #: includes/i18n.php:94
271
- msgid "We made a few tweaks to the %s, %s"
272
- msgstr "We made a few tweaks to the %s, %s"
273
-
274
- #: includes/i18n.php:95
275
- msgid "Opt-in to make \"%s\" Better!"
276
- msgstr "Tilmeld for at gøre \"%s\" bedre!"
277
-
278
- #: includes/i18n.php:96
279
- msgid "Error"
280
- msgstr "Fejl"
281
-
282
- #: includes/i18n.php:97
283
- msgid "Freemius SDK couldn't find the plugin's main file. Please contact sdk@freemius.com with the current error."
284
- msgstr "Freemius SDK couldn't find the plugin's main file. Please contact sdk@freemius.com with the current error."
285
-
286
- #: includes/i18n.php:100
287
- msgctxt "as expiration date"
288
- msgid "Expiration"
289
- msgstr "Expiration"
290
-
291
- #: includes/i18n.php:101
292
- msgctxt "as software license"
293
- msgid "License"
294
- msgstr "Licens"
295
-
296
- #: includes/i18n.php:102
297
- msgid "not verified"
298
- msgstr "ikke verificeret"
299
-
300
- #: includes/i18n.php:103
301
- msgid "Verify Email"
302
- msgstr "Verificer e-mail"
303
-
304
- #: includes/i18n.php:104
305
- msgctxt "e.g. expires in 2 months"
306
- msgid "Expires in %s"
307
- msgstr "Udløber om %s"
308
-
309
- #: includes/i18n.php:105
310
- msgctxt "e.g. auto renews in 2 months"
311
- msgid "Auto renews in %s"
312
- msgstr "Auto-fornyer om %s"
313
-
314
- #: includes/i18n.php:106
315
- msgid "No expiration"
316
- msgstr "Udløber ikke"
317
-
318
- #: includes/i18n.php:107
319
- msgid "Expired"
320
- msgstr "Udløbet"
321
-
322
- #: includes/i18n.php:108
323
- msgid "Cancelled"
324
- msgstr "Annulleret"
325
-
326
- #: includes/i18n.php:109
327
- msgctxt "e.g. In 2 hours"
328
- msgid "In %s"
329
- msgstr "Om %s"
330
-
331
- #: includes/i18n.php:110
332
- msgctxt "e.g. 2 min ago"
333
- msgid "%s ago"
334
- msgstr "%s siden"
335
-
336
- #: includes/i18n.php:112
337
- msgid "%s or higher"
338
- msgstr "%s eller højere"
339
-
340
- #: includes/i18n.php:113
341
- msgctxt "as plugin version"
342
- msgid "Version"
343
- msgstr "Version"
344
-
345
- #: includes/i18n.php:114
346
- msgid "Name"
347
- msgstr "Navn"
348
-
349
- #: includes/i18n.php:115
350
- msgid "Email"
351
- msgstr "E-mail"
352
-
353
- #: includes/i18n.php:116
354
- msgid "Email address"
355
- msgstr "E-mailadresse"
356
-
357
- #: includes/i18n.php:117
358
- msgid "Verified"
359
- msgstr "Verificeret"
360
-
361
- #: includes/i18n.php:118
362
- msgid "Module"
363
- msgstr "Modul"
364
-
365
- #: includes/i18n.php:119
366
- msgid "Module Type"
367
- msgstr "Modultype"
368
-
369
- #: includes/i18n.php:120
370
- msgid "Plugin"
371
- msgstr "Plugin"
372
-
373
- #: includes/i18n.php:121
374
- msgid "Plugins"
375
- msgstr "Plugins"
376
-
377
- #: includes/i18n.php:122
378
- msgid "Theme"
379
- msgstr "Tema"
380
-
381
- #: includes/i18n.php:123
382
- msgid "Themes"
383
- msgstr "Temaer"
384
-
385
- #: includes/i18n.php:124
386
- msgctxt "as file/folder path"
387
- msgid "Path"
388
- msgstr "Sti"
389
-
390
- #: includes/i18n.php:125
391
- msgid "Title"
392
- msgstr "Titel"
393
-
394
- #: includes/i18n.php:126
395
- msgid "Free version"
396
- msgstr "Gratis version"
397
-
398
- #: includes/i18n.php:127
399
- msgid "Premium version"
400
- msgstr "Premium version"
401
-
402
- #: includes/i18n.php:128
403
- msgctxt "as WP plugin slug"
404
- msgid "Slug"
405
- msgstr "Kortnavn"
406
-
407
- #: includes/i18n.php:129
408
- msgid "ID"
409
- msgstr "ID"
410
-
411
- #: includes/i18n.php:130
412
- msgid "Users"
413
- msgstr "Brugere"
414
-
415
- #: includes/i18n.php:131
416
- msgid "%s Installs"
417
- msgstr "%s installeringer"
418
-
419
- #: includes/i18n.php:132
420
- msgctxt "like websites"
421
- msgid "Sites"
422
- msgstr "Websteder"
423
-
424
- #: includes/i18n.php:133
425
- msgid "User ID"
426
- msgstr "Bruger-ID"
427
-
428
- #: includes/i18n.php:134
429
- msgid "Site ID"
430
- msgstr "Websteds-ID"
431
-
432
- #: includes/i18n.php:135
433
- msgid "Public Key"
434
- msgstr "Offentlig nøgle"
435
-
436
- #: includes/i18n.php:136
437
- msgid "Secret Key"
438
- msgstr "Privat nøgle"
439
-
440
- #: includes/i18n.php:137
441
- msgctxt "as secret encryption key missing"
442
- msgid "No Secret"
443
- msgstr "Ingen privat nøgle"
444
-
445
- #: includes/i18n.php:138
446
- msgid "No ID"
447
- msgstr "Intet ID"
448
-
449
- #: includes/i18n.php:139
450
- msgctxt "as synchronize license"
451
- msgid "Sync License"
452
- msgstr "Synkroniser licens"
453
-
454
- #: includes/i18n.php:140
455
- msgctxt "as synchronize"
456
- msgid "Sync"
457
- msgstr "Synkroniser"
458
-
459
- #: includes/i18n.php:141
460
- msgid "Activate License"
461
- msgstr "Aktiver licens"
462
-
463
- #: includes/i18n.php:142
464
- msgid "Activate Free Version"
465
- msgstr "Aktiver gratis version"
466
-
467
- #: includes/i18n.php:143
468
- msgid "Please enter the license key that you received in the email right after the purchase:"
469
- msgstr "Please enter the license key that you received in the email right after the purchase:"
470
-
471
- #: includes/i18n.php:144
472
- msgid "Activating license..."
473
- msgstr "Aktiverer licens..."
474
-
475
- #: includes/i18n.php:145
476
- msgid "Change License"
477
- msgstr "Skift licens"
478
-
479
- #: includes/i18n.php:146
480
- msgid "Update License"
481
- msgstr "Opdater licens"
482
-
483
- #: includes/i18n.php:147
484
- msgid "Deactivate License"
485
- msgstr "Deaktiver licens"
486
-
487
- #: includes/i18n.php:148
488
- msgid "Activate"
489
- msgstr "Aktiver"
490
-
491
- #: includes/i18n.php:149
492
- msgid "Deactivate"
493
- msgstr "Deaktiver"
494
-
495
- #: includes/i18n.php:150
496
- msgid "Skip & Deactivate"
497
- msgstr "Spring over & deaktiver"
498
-
499
- #: includes/i18n.php:151
500
- msgid "Skip & %s"
501
- msgstr "Spring over & %s"
502
-
503
- #: includes/i18n.php:152
504
- msgid "No - just deactivate"
505
- msgstr "Nej - bare deaktiver"
506
-
507
- #: includes/i18n.php:153
508
- msgid "Yes - do your thing"
509
- msgstr "Yes - do your thing"
510
-
511
- #: includes/i18n.php:154
512
- msgctxt "active mode"
513
- msgid "Active"
514
- msgstr "Aktiv"
515
-
516
- #: includes/i18n.php:155
517
- msgctxt "is active mode?"
518
- msgid "Is Active"
519
- msgstr "Er aktiv"
520
-
521
- #: includes/i18n.php:156
522
- msgid "Install Now"
523
- msgstr "Installer nu"
524
-
525
- #: includes/i18n.php:157
526
- msgid "Install Update Now"
527
- msgstr "Installer opdatering nu"
528
-
529
- #: includes/i18n.php:158
530
- msgid "More information about %s"
531
- msgstr "Mere information om %s"
532
-
533
- #: includes/i18n.php:159
534
- msgid "Localhost"
535
- msgstr "Localhost"
536
-
537
- #: includes/i18n.php:160
538
- msgctxt "as activate Professional plan"
539
- msgid "Activate %s Plan"
540
- msgstr "Aktiver %s plan"
541
-
542
- #: includes/i18n.php:161
543
- msgctxt "as 5 licenses left"
544
- msgid "%s left"
545
- msgstr "%s tilbage"
546
-
547
- #: includes/i18n.php:162
548
- msgid "Last license"
549
- msgstr "Seneste license"
550
-
551
- #: includes/i18n.php:163
552
- msgid "What is your %s?"
553
- msgstr "What is your %s?"
554
-
555
- #: includes/i18n.php:164
556
- msgid "Activate this add-on"
557
- msgstr "Aktiver denne tilføjelse"
558
-
559
- #: includes/i18n.php:165
560
- msgid "Deactivating your license will block all premium features, but will enable you to activate the license on another site. Are you sure you want to proceed?"
561
- msgstr "Deactivating your license will block all premium features, but will enable you to activate the license on another site. Are you sure you want to proceed?"
562
-
563
- #: includes/i18n.php:166
564
- msgid "Deleting the account will automatically deactivate your %s plan license so you can use it on other sites. If you want to terminate the recurring payments as well, click the \"Cancel\" button, and first \"Downgrade\" your account. Are you sure you would like to continue with the deletion?"
565
- msgstr "Deleting the account will automatically deactivate your %s plan license so you can use it on other sites. If you want to terminate the recurring payments as well, click the \"Cancel\" button, and first \"Downgrade\" your account. Are you sure you would like to continue with the deletion?"
566
-
567
- #: includes/i18n.php:167
568
- msgid "Deletion is not temporary. Only delete if you no longer want to use this %s anymore. Are you sure you would like to continue with the deletion?"
569
- msgstr "Deletion is not temporary. Only delete if you no longer want to use this %s anymore. Are you sure you would like to continue with the deletion?"
570
-
571
- #: includes/i18n.php:168
572
- msgid "Downgrading your plan will immediately stop all future recurring payments and your %s plan license will expire in %s."
573
- msgstr "Downgrading your plan will immediately stop all future recurring payments and your %s plan license will expire in %s."
574
-
575
- #: includes/i18n.php:169
576
- msgid "Cancelling the trial will immediately block access to all premium features. Are you sure?"
577
- msgstr "Cancelling the trial will immediately block access to all premium features. Are you sure?"
578
-
579
- #: includes/i18n.php:170
580
- msgid "You can still enjoy all %s features but you will not have access to %s updates and support."
581
- msgstr "You can still enjoy all %s features but you will not have access to %s updates and support."
582
-
583
- #: includes/i18n.php:171
584
- msgid "Once your license expires you can still use the Free version but you will NOT have access to the %s features."
585
- msgstr "Once your license expires you can still use the Free version but you will NOT have access to the %s features."
586
-
587
- #: includes/i18n.php:172
588
- msgid "Are you sure you want to proceed?"
589
- msgstr "Er du sikker på, du vil fortsætte?"
590
-
591
- #: includes/i18n.php:175
592
- msgid "Add Ons for %s"
593
- msgstr "Tilføjelser til %s"
594
-
595
- #: includes/i18n.php:176
596
- msgid "We could'nt load the add-ons list. It's probably an issue on our side, please try to come back in few minutes."
597
- msgstr "We could'nt load the add-ons list. It's probably an issue on our side, please try to come back in few minutes."
598
-
599
- #: includes/i18n.php:178
600
- msgid "Anonymous feedback"
601
- msgstr "Anonym feedback"
602
-
603
- #: includes/i18n.php:179
604
- msgid "Quick feedback"
605
- msgstr "Hurtig feedback"
606
-
607
- #: includes/i18n.php:180
608
- msgid "If you have a moment, please let us know why you are %s"
609
- msgstr "If you have a moment, please let us know why you are %s"
610
-
611
- #: includes/i18n.php:181
612
- msgid "deactivating"
613
- msgstr "deactivating"
614
-
615
- #: includes/i18n.php:182
616
- msgid "Deactivation"
617
- msgstr "Deactivation"
618
-
619
- #: includes/i18n.php:183
620
- msgid "Theme Switch"
621
- msgstr "Theme Switch"
622
-
623
- #: includes/i18n.php:184
624
- msgid "switching"
625
- msgstr "switching"
626
-
627
- #: includes/i18n.php:185
628
- msgid "Switch"
629
- msgstr "Switch"
630
-
631
- #: includes/i18n.php:186
632
- msgid "Activate %s"
633
- msgstr "Activate %s"
634
-
635
- #: includes/i18n.php:187
636
- msgid "Yes - %s"
637
- msgstr "Yes - %s"
638
-
639
- #: includes/i18n.php:188
640
- msgid "Submit & %s"
641
- msgstr "Submit & %s"
642
-
643
- #: includes/i18n.php:189
644
- msgid "Cancel"
645
- msgstr "Annuller"
646
-
647
- #: includes/i18n.php:190
648
- msgid "I no longer need the %s"
649
- msgstr "I no longer need the %s"
650
-
651
- #: includes/i18n.php:191
652
- msgid "I found a better %s"
653
- msgstr "I found a better %s"
654
-
655
- #: includes/i18n.php:192
656
- msgid "I only needed the %s for a short period"
657
- msgstr "I only needed the %s for a short period"
658
-
659
- #: includes/i18n.php:193
660
- msgid "The %s broke my site"
661
- msgstr "The %s broke my site"
662
-
663
- #: includes/i18n.php:194
664
- msgid "The %s suddenly stopped working"
665
- msgstr "The %s suddenly stopped working"
666
-
667
- #: includes/i18n.php:195
668
- msgid "I can't pay for it anymore"
669
- msgstr "Jeg kan ikke længere betale for det"
670
-
671
- #: includes/i18n.php:196
672
- msgid "It's a temporary deactivation. I'm just debugging an issue."
673
- msgstr "Det er en midlertidig deaktivering. Jeg prøver at fejlfinde et problem."
674
-
675
- #: includes/i18n.php:197
676
- msgid "It's a temporary %s. I'm just debugging an issue."
677
- msgstr "It's a temporary %s. I'm just debugging an issue."
678
-
679
- #: includes/i18n.php:198
680
- msgctxt ""
681
- msgid "Other"
682
- msgstr "Other"
683
-
684
- #: includes/i18n.php:200
685
- msgid "Kindly tell us the reason so we can improve."
686
- msgstr "Fortæl os venligst årsagen, så vi kan forbedre det."
687
-
688
- #: includes/i18n.php:201
689
- msgid "What's the %s's name?"
690
- msgstr "What's the %s's name?"
691
-
692
- #: includes/i18n.php:202
693
- msgid "What price would you feel comfortable paying?"
694
- msgstr "What price would you feel comfortable paying?"
695
-
696
- #: includes/i18n.php:203
697
- msgid "I couldn't understand how to make it work"
698
- msgstr "Jeg forstod ikke, hvordan jeg skulle få det til at fungere."
699
-
700
- #: includes/i18n.php:204
701
- msgid "The %s is great, but I need specific feature that you don't support"
702
- msgstr "The %s is great, but I need specific feature that you don't support"
703
-
704
- #: includes/i18n.php:205
705
- msgid "The %s is not working"
706
- msgstr "The %s is not working"
707
-
708
- #: includes/i18n.php:206
709
- msgid "It's not what I was looking for"
710
- msgstr "Det er ikke, hvad jeg søgte"
711
-
712
- #: includes/i18n.php:207
713
- msgid "The %s didn't work as expected"
714
- msgstr "The %s didn't work as expected"
715
-
716
- #: includes/i18n.php:208
717
- msgid "What feature?"
718
- msgstr "Hvilken feature?"
719
-
720
- #: includes/i18n.php:209
721
- msgid "Kindly share what didn't work so we can fix it for future users..."
722
- msgstr "Kindly share what didn't work so we can fix it for future users..."
723
-
724
- #: includes/i18n.php:210
725
- msgid "What you've been looking for?"
726
- msgstr "What you've been looking for?"
727
-
728
- #: includes/i18n.php:211
729
- msgid "What did you expect?"
730
- msgstr "Hvad forventede du?"
731
-
732
- #: includes/i18n.php:212
733
- msgid "The %s didn't work"
734
- msgstr "The %s didn't work"
735
-
736
- #: includes/i18n.php:213
737
- msgid "I don't like to share my information with you"
738
- msgstr "I don't like to share my information with you"
739
-
740
- #: includes/i18n.php:214
741
- msgid "You might have missed it, but you don't have to share any data and can just %s the opt-in."
742
- msgstr "You might have missed it, but you don't have to share any data and can just %s the opt-in."
743
-
744
- #: includes/i18n.php:218
745
- msgctxt "greeting"
746
- msgid "Hey %s,"
747
- msgstr "Hey %s,"
748
-
749
- #: includes/i18n.php:219
750
- msgctxt "a greeting. E.g. Thanks John!"
751
- msgid "Thanks %s!"
752
- msgstr "Tak %s!"
753
-
754
- #: includes/i18n.php:220
755
- msgid "Never miss an important update - opt-in to our security and feature updates notifications, and non-sensitive diagnostic tracking with %4$s."
756
- msgstr "Never miss an important update - opt-in to our security and feature updates notifications, and non-sensitive diagnostic tracking with %4$s."
757
-
758
- #: includes/i18n.php:221
759
- msgid "Please help us improve %1$s! If you opt-in, some data about your usage of %1$s will be sent to %4$s. If you skip this, that's okay! %1$s will still work just fine."
760
- msgstr "Please help us improve %1$s! If you opt-in, some data about your usage of %1$s will be sent to %4$s. If you skip this, that's okay! %1$s will still work just fine."
761
-
762
- #: includes/i18n.php:222
763
- msgid "You should receive an activation email for %s to your mailbox at %s. Please make sure you click the activation button in that email to %s."
764
- msgstr "You should receive an activation email for %s to your mailbox at %s. Please make sure you click the activation button in that email to %s."
765
-
766
- #: includes/i18n.php:223
767
- msgid "complete the install"
768
- msgstr "færdiggør installeringen"
769
-
770
- #: includes/i18n.php:224
771
- msgid "start the trial"
772
- msgstr "start prøveperioden"
773
-
774
- #: includes/i18n.php:225
775
- msgid "Thanks for purchasing %s! To get started, please enter your license key:"
776
- msgstr "Thanks for purchasing %s! To get started, please enter your license key:"
777
-
778
- #: includes/i18n.php:226
779
- msgid "The %1$s will be periodically sending data to %2$s to check for security and feature updates, and verify the validity of your license."
780
- msgstr "The %1$s will be periodically sending data to %2$s to check for security and feature updates, and verify the validity of your license."
781
-
782
- #: includes/i18n.php:227
783
- msgid "What permissions are being granted?"
784
- msgstr "Hvilke tilladelser bliver givet?"
785
-
786
- #: includes/i18n.php:228
787
- msgid "Your Profile Overview"
788
- msgstr "Overblik af din profil"
789
-
790
- #: includes/i18n.php:229
791
- msgid "Name and email address"
792
- msgstr "Navn og e-mailadresse"
793
-
794
- #: includes/i18n.php:230
795
- msgid "Your Site Overview"
796
- msgstr "Overblik af dit websted"
797
-
798
- #: includes/i18n.php:231
799
- msgid "Site URL, WP version, PHP info, plugins & themes"
800
- msgstr "Websteds-URL, WP version, PHP info, plugins og temaer"
801
-
802
- #: includes/i18n.php:232
803
- msgid "Current %s Events"
804
- msgstr "Current %s Events"
805
-
806
- #: includes/i18n.php:233
807
- msgid "Activation, deactivation and uninstall"
808
- msgstr "Aktivering, deaktivering og afinstallering"
809
-
810
- #: includes/i18n.php:234
811
- msgid "Plugins & Themes"
812
- msgstr "Plugins & Temaer"
813
-
814
- #: includes/i18n.php:235
815
- msgid "Titles, versions and state."
816
- msgstr "Titler, versioner og tilstand."
817
-
818
- #: includes/i18n.php:236
819
- msgid "Admin Notices"
820
- msgstr "Admin Notices"
821
-
822
- #: includes/i18n.php:237
823
- msgid "Newsletter"
824
- msgstr "Nyhedsbrev"
825
-
826
- #: includes/i18n.php:238
827
- msgid "Updates, announcements, marketing, no spam"
828
- msgstr "Updates, announcements, marketing, no spam"
829
-
830
- #: includes/i18n.php:239
831
- msgid "Privacy Policy"
832
- msgstr "Privatlivspolitik"
833
-
834
- #: includes/i18n.php:240
835
- msgid "Terms of Service"
836
- msgstr "Servicevilkår"
837
-
838
- #: includes/i18n.php:241
839
- msgctxt "as activating plugin"
840
- msgid "Activating"
841
- msgstr "Aktiverer"
842
-
843
- #: includes/i18n.php:242
844
- msgctxt "as in the process of sending an email"
845
- msgid "Sending email"
846
- msgstr "Sender e-mail"
847
-
848
- #: includes/i18n.php:243
849
- msgctxt "button label"
850
- msgid "Allow & Continue"
851
- msgstr "Tillad & Fortsæt"
852
-
853
- #: includes/i18n.php:244
854
- msgctxt "button label"
855
- msgid "Agree & Activate License"
856
- msgstr "Accepter & aktiver licens"
857
-
858
- #: includes/i18n.php:245
859
- msgctxt "verb"
860
- msgid "Skip"
861
- msgstr "Spring over"
862
-
863
- #: includes/i18n.php:246
864
- msgid "Click here to use the plugin anonymously"
865
- msgstr "Klik her for at benytte pluginnet anonymt"
866
-
867
- #: includes/i18n.php:247
868
- msgid "Re-send activation email"
869
- msgstr "Gensend e-mail om aktivering"
870
-
871
- #: includes/i18n.php:248
872
- msgid "License key"
873
- msgstr "Licensnøgle"
874
-
875
- #: includes/i18n.php:249
876
- msgid "Send License Key"
877
- msgstr "Send licensnøgle"
878
-
879
- #: includes/i18n.php:250
880
- msgid "Sending license key"
881
- msgstr "Sender licensnøgle"
882
-
883
- #: includes/i18n.php:251
884
- msgid "Have a license key?"
885
- msgstr "Har du en licensnøgle?"
886
-
887
- #: includes/i18n.php:252
888
- msgid "Don't have a license key?"
889
- msgstr "Har du ikke en licensnøgle?"
890
-
891
- #: includes/i18n.php:253
892
- msgid "Can't find your license key?"
893
- msgstr "Kan du ikke finde din licensnøgle?"
894
-
895
- #: includes/i18n.php:254
896
- msgid "We couldn't find your email address in the system, are you sure it's the right address?"
897
- msgstr "We couldn't find your email address in the system, are you sure it's the right address?"
898
-
899
- #: includes/i18n.php:255
900
- msgid "We can't see any active licenses associated with that email address, are you sure it's the right address?"
901
- msgstr "We can't see any active licenses associated with that email address, are you sure it's the right address?"
902
-
903
- #: includes/i18n.php:256
904
- msgid "Opt In"
905
- msgstr "Tilmeld"
906
-
907
- #: includes/i18n.php:257
908
- msgid "Opt Out"
909
- msgstr "Frameld"
910
-
911
- #: includes/i18n.php:258
912
- msgid "On second thought - I want to continue helping"
913
- msgstr "Ved nærmere eftertanke - Jeg vil fortsætte med at hjælpe"
914
-
915
- #: includes/i18n.php:259
916
- msgid "Opting out..."
917
- msgstr "Framelder..."
918
-
919
- #: includes/i18n.php:260
920
- msgid "Opting in..."
921
- msgstr "Tilmelder..."
922
-
923
- #: includes/i18n.php:261
924
- msgid "We appreciate your help in making the %s better by letting us track some usage data."
925
- msgstr "We appreciate your help in making the %s better by letting us track some usage data."
926
-
927
- #: includes/i18n.php:262
928
- msgid "Usage tracking is done in the name of making %s better. Making a better user experience, prioritizing new features, and more good things. We'd really appreciate if you'll reconsider letting us continue with the tracking."
929
- msgstr "Usage tracking is done in the name of making %s better. Making a better user experience, prioritizing new features, and more good things. We'd really appreciate if you'll reconsider letting us continue with the tracking."
930
-
931
- #: includes/i18n.php:263
932
- msgid "By clicking \"Opt Out\", we will no longer be sending any data from %s to %s."
933
- msgstr "Ved at klikke \"Frameld\" vil vi ikke længere sende data fra %s til %s."
934
-
935
- #: includes/i18n.php:267
936
- msgid "Screenshots"
937
- msgstr "Skærmbilleder"
938
-
939
- #: includes/i18n.php:268
940
- msgid "Click to view full-size screenshot %d"
941
- msgstr "Click to view full-size screenshot %d"
942
-
943
- #: includes/i18n.php:272
944
- msgid "Freemius Debug"
945
- msgstr "Freemius Debug"
946
-
947
- #: includes/i18n.php:273
948
- msgctxt "as turned on"
949
- msgid "On"
950
- msgstr "Til"
951
-
952
- #: includes/i18n.php:274
953
- msgctxt "as turned off"
954
- msgid "Off"
955
- msgstr "Fra"
956
-
957
- #: includes/i18n.php:275
958
- msgctxt "as code debugging"
959
- msgid "Debugging"
960
- msgstr "Fejlfinding"
961
-
962
- #: includes/i18n.php:276
963
- msgid "Freemius State"
964
- msgstr "Freemius tilstand"
965
-
966
- #: includes/i18n.php:277
967
- msgctxt "as connection was successful"
968
- msgid "Connected"
969
- msgstr "Forbundet"
970
-
971
- #: includes/i18n.php:278
972
- msgctxt "as connection blocked"
973
- msgid "Blocked"
974
- msgstr "Blokeret"
975
-
976
- #: includes/i18n.php:279
977
- msgctxt "as application program interface"
978
- msgid "API"
979
- msgstr "API"
980
-
981
- #: includes/i18n.php:280
982
- msgctxt "as software development kit versions"
983
- msgid "SDK"
984
- msgstr "SDK"
985
-
986
- #: includes/i18n.php:281
987
- msgctxt "as software development kit versions"
988
- msgid "SDK Versions"
989
- msgstr "SDK-versioner"
990
-
991
- #: includes/i18n.php:282
992
- msgctxt "as plugin folder path"
993
- msgid "Plugin Path"
994
- msgstr "Plugin-sti"
995
-
996
- #: includes/i18n.php:283
997
- msgctxt "as sdk path"
998
- msgid "SDK Path"
999
- msgstr "SDK-sti"
1000
-
1001
- #: includes/i18n.php:284
1002
- msgid "Add Ons of Plugin %s"
1003
- msgstr "Tilføjelser til plugin %s"
1004
-
1005
- #: includes/i18n.php:285
1006
- msgid "Are you sure you want to delete all Freemius data?"
1007
- msgstr "Er du sikker på, du vil slette al Freemius data?"
1008
-
1009
- #: includes/i18n.php:286
1010
- msgid "Actions"
1011
- msgstr "Handlinger"
1012
-
1013
- #: includes/i18n.php:287
1014
- msgid "Delete All Accounts"
1015
- msgstr "Slet alle konti"
1016
-
1017
- #: includes/i18n.php:288
1018
- msgid "Start Fresh"
1019
- msgstr "Start forfra"
1020
-
1021
- #: includes/i18n.php:289
1022
- msgid "Clear API Cache"
1023
- msgstr "Ryd API-cache"
1024
-
1025
- #: includes/i18n.php:290
1026
- msgid "Sync Data From Server"
1027
- msgstr "Synkroniser data fra server"
1028
-
1029
- #: includes/i18n.php:291
1030
- msgid "Scheduled Crons"
1031
- msgstr "Planlagte cron jobs"
1032
-
1033
- #: includes/i18n.php:292
1034
- msgid "Cron Type"
1035
- msgstr "Cron Type"
1036
-
1037
- #: includes/i18n.php:293
1038
- msgid "Plugins & Themes Sync"
1039
- msgstr "Synkronisering af plugins og temaer"
1040
-
1041
- #: includes/i18n.php:294
1042
- msgid "%s Licenses"
1043
- msgstr "%s Licenses"
1044
-
1045
- #: includes/i18n.php:295
1046
- msgid "Debug Log"
1047
- msgstr "Fejlfindingslog"
1048
-
1049
- #: includes/i18n.php:296
1050
- msgid "All"
1051
- msgstr "Alle"
1052
-
1053
- #: includes/i18n.php:297
1054
- msgid "File"
1055
- msgstr "Fil"
1056
-
1057
- #: includes/i18n.php:298
1058
- msgid "Function"
1059
- msgstr "Funktion"
1060
-
1061
- #: includes/i18n.php:299
1062
- msgid "Process ID"
1063
- msgstr "Proces-ID"
1064
-
1065
- #: includes/i18n.php:300
1066
- msgid "Logger"
1067
- msgstr "Logger"
1068
-
1069
- #: includes/i18n.php:301
1070
- msgid "Message"
1071
- msgstr "Besked"
1072
-
1073
- #: includes/i18n.php:302
1074
- msgid "Download"
1075
- msgstr "Download"
1076
-
1077
- #: includes/i18n.php:303
1078
- msgid "Filter"
1079
- msgstr "Filter"
1080
-
1081
- #: includes/i18n.php:304
1082
- msgid "Type"
1083
- msgstr "Type"
1084
-
1085
- #: includes/i18n.php:305
1086
- msgid "All Types"
1087
- msgstr "Alle typer"
1088
-
1089
- #: includes/i18n.php:306
1090
- msgid "All Requests"
1091
- msgstr "Alle forespørgsler"
1092
-
1093
- #: includes/i18n.php:310
1094
- msgctxt "as congratulations"
1095
- msgid "Congrats"
1096
- msgstr "Tillykke"
1097
-
1098
- #: includes/i18n.php:311
1099
- msgctxt "exclamation"
1100
- msgid "Oops"
1101
- msgstr "Ups"
1102
-
1103
- #: includes/i18n.php:312
1104
- msgctxt "interjection expressing joy or exuberance"
1105
- msgid "Yee-haw"
1106
- msgstr "Yee-haw"
1107
-
1108
- #: includes/i18n.php:313
1109
- msgctxt ""
1110
- msgid "W00t"
1111
- msgstr "W00t"
1112
-
1113
- #: includes/i18n.php:315
1114
- msgctxt "a positive response"
1115
- msgid "Right on"
1116
- msgstr "Sådan"
1117
-
1118
- #: includes/i18n.php:316
1119
- msgctxt ""
1120
- msgid "Hmm"
1121
- msgstr "Hmm"
1122
-
1123
- #: includes/i18n.php:318
1124
- msgid "O.K"
1125
- msgstr "O.K"
1126
-
1127
- #: includes/i18n.php:319
1128
- msgctxt "exclamation"
1129
- msgid "Hey"
1130
- msgstr "Hey"
1131
-
1132
- #: includes/i18n.php:320
1133
- msgctxt "advance notice of something that will need attention."
1134
- msgid "Heads up"
1135
- msgstr "Se her"
1136
-
1137
- #: includes/i18n.php:325
1138
- msgid "Seems like you got the latest release."
1139
- msgstr "Det ser ud til, at du har den seneste udgivelse."
1140
-
1141
- #: includes/i18n.php:326
1142
- msgid "You are all good!"
1143
- msgstr "Det var det!"
1144
-
1145
- #: includes/i18n.php:327
1146
- msgid "Sorry, we could not complete the email update. Another user with the same email is already registered."
1147
- msgstr "Sorry, we could not complete the email update. Another user with the same email is already registered."
1148
-
1149
- #: includes/i18n.php:328
1150
- msgid "If you would like to give up the ownership of the %s's account to %s click the Change Ownership button."
1151
- msgstr "If you would like to give up the ownership of the %s's account to %s click the Change Ownership button."
1152
-
1153
- #: includes/i18n.php:329
1154
- msgid "Your email was successfully updated. You should receive an email with confirmation instructions in few moments."
1155
- msgstr "Your email was successfully updated. You should receive an email with confirmation instructions in few moments."
1156
-
1157
- #: includes/i18n.php:330
1158
- msgid "Your name was successfully updated."
1159
- msgstr "Dit navn er blevet opdateret."
1160
-
1161
- #: includes/i18n.php:331
1162
- msgid "You have successfully updated your %s."
1163
- msgstr "Opdatering af %s blev gennemført."
1164
-
1165
- #: includes/i18n.php:332
1166
- msgid "Please provide your full name."
1167
- msgstr "Indtast venligst dit fulde navn."
1168
-
1169
- #: includes/i18n.php:333
1170
- msgid "Verification mail was just sent to %s. If you can't find it after 5 min, please check your spam box."
1171
- msgstr "Verification mail was just sent to %s. If you can't find it after 5 min, please check your spam box."
1172
-
1173
- #: includes/i18n.php:334
1174
- msgid "Just letting you know that the add-ons information of %s is being pulled from an external server."
1175
- msgstr "Just letting you know that the add-ons information of %s is being pulled from an external server."
1176
-
1177
- #: includes/i18n.php:335
1178
- msgid "No credit card required"
1179
- msgstr "Betalingskort ikke påkrævet"
1180
-
1181
- #: includes/i18n.php:336
1182
- msgid "Premium %s version was successfully activated."
1183
- msgstr "Premium %s version was successfully activated."
1184
-
1185
- #: includes/i18n.php:337
1186
- msgid "The upgrade of %s was successfully completed."
1187
- msgstr "Opgraderingen af %s blev fuldendt."
1188
-
1189
- #: includes/i18n.php:338
1190
- msgid "Your account was successfully activated with the %s plan."
1191
- msgstr "Din konto blev aktiveret med planen %s."
1192
-
1193
- #: includes/i18n.php:339
1194
- msgid "Download the latest %s version now"
1195
- msgstr "Download den seneste version af %s nu"
1196
-
1197
- #: includes/i18n.php:340
1198
- msgid "Please follow these steps to complete the upgrade"
1199
- msgstr "Følg venligst disse trin for at færdiggøre opgraderingen"
1200
-
1201
- #: includes/i18n.php:341
1202
- msgid "Download the latest %s version"
1203
- msgstr "Download den seneste version af %s"
1204
-
1205
- #: includes/i18n.php:342
1206
- msgid "Download the latest version"
1207
- msgstr "Download den seneste version"
1208
-
1209
- #: includes/i18n.php:343
1210
- msgid "Deactivate the free version"
1211
- msgstr "Deaktiver den gratis version"
1212
-
1213
- #: includes/i18n.php:344
1214
- msgid "Upload and activate the downloaded version"
1215
- msgstr "Upload og aktiver den downloadede version"
1216
-
1217
- #: includes/i18n.php:345
1218
- msgid "How to upload and activate?"
1219
- msgstr "Upload og aktivering, hvordan?"
1220
-
1221
- #: includes/i18n.php:346
1222
- msgctxt "%s - product name, e.g. Facebook add-on was successfully..."
1223
- msgid "%s Add-on was successfully purchased."
1224
- msgstr "Betalingen for tilføjelsen %s blev gennemført."
1225
-
1226
- #: includes/i18n.php:348
1227
- msgid "Your %s Add-on plan was successfully upgraded."
1228
- msgstr "Your %s Add-on plan was successfully upgraded."
1229
-
1230
- #: includes/i18n.php:349
1231
- msgid "Your email has been successfully verified - you are AWESOME!"
1232
- msgstr "Your email has been successfully verified - you are AWESOME!"
1233
-
1234
- #: includes/i18n.php:350
1235
- msgid "Your plan was successfully upgraded."
1236
- msgstr "Din plan er blevet opgraderet."
1237
-
1238
- #: includes/i18n.php:351
1239
- msgid "Your plan was successfully changed to %s."
1240
- msgstr "Din plan er blevet ændret til %s."
1241
-
1242
- #: includes/i18n.php:352
1243
- msgid "Your license has expired. You can still continue using the free %s forever."
1244
- msgstr "Your license has expired. You can still continue using the free %s forever."
1245
-
1246
- #: includes/i18n.php:353
1247
- msgid "Your license has been cancelled. If you think it's a mistake, please contact support."
1248
- msgstr "Din licens er blevet annulleret. Hvis du mener, dette er en fejl, så kontakt venligst support."
1249
-
1250
- #: includes/i18n.php:354
1251
- msgid "Your trial has been successfully started."
1252
- msgstr "Din prøveperiode er begyndt."
1253
-
1254
- #: includes/i18n.php:355
1255
- msgid "Your license was successfully activated."
1256
- msgstr "Din licens er blevet aktiveret."
1257
-
1258
- #: includes/i18n.php:356
1259
- msgid "It looks like your site currently doesn't have an active license."
1260
- msgstr "Det ser ud til, at dit websted endnu ikke har en aktiv licens."
1261
-
1262
- #: includes/i18n.php:357
1263
- msgid "Your license was successfully deactivated, you are back to the %s plan."
1264
- msgstr "Din licens blev deaktiveret, du er tilbage på planen %s."
1265
-
1266
- #: includes/i18n.php:358
1267
- msgid "It looks like the license deactivation failed."
1268
- msgstr "Det ser ud til, at licens-deaktiveringen mislykkedes."
1269
-
1270
- #: includes/i18n.php:359
1271
- msgid "It looks like the license could not be activated."
1272
- msgstr "Det ser ud til, at licensen ikke kunne aktiveres."
1273
-
1274
- #: includes/i18n.php:360
1275
- msgid "Error received from the server:"
1276
- msgstr "Fejl modtager fra serveren:"
1277
-
1278
- #: includes/i18n.php:361
1279
- msgid "Your trial has expired. You can still continue using all our free features."
1280
- msgstr "Din prøveperiode er udløbet. Du kan fortsat bruge alle vores gratis funktioner."
1281
-
1282
- #: includes/i18n.php:362
1283
- msgid "Your plan was successfully downgraded. Your %s plan license will expire in %s."
1284
- msgstr "Din plan blev nedgraderet. Licensen til din %s plan vil udløbe om %s."
1285
-
1286
- #: includes/i18n.php:363
1287
- msgid "Seems like we are having some temporary issue with your plan downgrade. Please try again in few minutes."
1288
- msgstr "Seems like we are having some temporary issue with your plan downgrade. Please try again in few minutes."
1289
-
1290
- #: includes/i18n.php:364
1291
- msgid "It looks like you are not in trial mode anymore so there's nothing to cancel :)"
1292
- msgstr "It looks like you are not in trial mode anymore so there's nothing to cancel :)"
1293
-
1294
- #: includes/i18n.php:365
1295
- msgid "Your %s free trial was successfully cancelled."
1296
- msgstr "Din gratis prøveperiode for %s er blevet annulleret."
1297
-
1298
- #: includes/i18n.php:366
1299
- msgctxt "%s - numeric version number"
1300
- msgid "Version %s was released."
1301
- msgstr "Version %s er blevet udgivet."
1302
-
1303
- #: includes/i18n.php:367
1304
- msgid "Please download %s."
1305
- msgstr "Download venligst %s."
1306
-
1307
- #: includes/i18n.php:368
1308
- msgctxt "%s - plan name, as the latest professional version here"
1309
- msgid "the latest %s version here"
1310
- msgstr "den seneste version af %s her"
1311
-
1312
- #: includes/i18n.php:370
1313
- msgid "How do you like %s so far? Test all our %s premium features with a %d-day free trial."
1314
- msgstr "How do you like %s so far? Test all our %s premium features with a %d-day free trial."
1315
-
1316
- #: includes/i18n.php:371
1317
- msgctxt "call to action"
1318
- msgid "Start free trial"
1319
- msgstr "Start gratis prøveperiode"
1320
-
1321
- #: includes/i18n.php:372
1322
- msgid "Starting trial"
1323
- msgstr "Starter prøveperiode"
1324
-
1325
- #: includes/i18n.php:373
1326
- msgid "Please wait"
1327
- msgstr "Vent venligst"
1328
-
1329
- #: includes/i18n.php:374
1330
- msgid "Seems like we are having some temporary issue with your trial cancellation. Please try again in few minutes."
1331
- msgstr "Seems like we are having some temporary issue with your trial cancellation. Please try again in few minutes."
1332
-
1333
- #: includes/i18n.php:375
1334
- msgid "You already utilized a trial before."
1335
- msgstr "Du har allerede brugt din prøveperiode."
1336
-
1337
- #: includes/i18n.php:376
1338
- msgid "You are already running the %s in a trial mode."
1339
- msgstr "You are already running the %s in a trial mode."
1340
-
1341
- #: includes/i18n.php:377
1342
- msgid "Plan %s do not exist, therefore, can't start a trial."
1343
- msgstr "Plan %s eksisterer ikke og kan derfor ikke starte prøveperiode."
1344
-
1345
- #: includes/i18n.php:378
1346
- msgid "Plan %s does not support a trial period."
1347
- msgstr "Plan %s understøtter ikke en prøveperiode."
1348
-
1349
- #: includes/i18n.php:379
1350
- msgid "None of the %s's plans supports a trial period."
1351
- msgstr "None of the %s's plans supports a trial period."
1352
-
1353
- #: includes/i18n.php:380
1354
- msgid "Unexpected API error. Please contact the %s's author with the following error."
1355
- msgstr "Unexpected API error. Please contact the %s's author with the following error."
1356
-
1357
- #: includes/i18n.php:381
1358
- msgid "No commitment for %s days - cancel anytime!"
1359
- msgstr "Ingen bindinger i %s dage - annuller når som helst!"
1360
-
1361
- #: includes/i18n.php:382
1362
- msgid "Your license has expired. You can still continue using all the %s features, but you'll need to renew your license to continue getting updates and support."
1363
- msgstr "Din licens er udløbet. Du kan stadig benytte alle funktionerne i %s, men du bliver nødt til at fornye din licens for at få opdateringer og support."
1364
-
1365
- #: includes/i18n.php:383
1366
- msgid "Couldn't activate %s."
1367
- msgstr "Kunne ikke aktivere %s."
1368
-
1369
- #: includes/i18n.php:384
1370
- msgid "Please contact us with the following message:"
1371
- msgstr "Kontakt os venligst med følgende besked:"
1372
-
1373
- #: includes/i18n.php:385
1374
- msgid "It looks like you are still on the %s plan. If you did upgrade or change your plan, it's probably an issue on our side - sorry."
1375
- msgstr "It looks like you are still on the %s plan. If you did upgrade or change your plan, it's probably an issue on our side - sorry."
1376
-
1377
- #: includes/i18n.php:386
1378
- msgid "Please contact us here"
1379
- msgstr "Kontakt os her"
1380
-
1381
- #: includes/i18n.php:387
1382
- msgid "I have upgraded my account but when I try to Sync the License, the plan remains %s."
1383
- msgstr "I have upgraded my account but when I try to Sync the License, the plan remains %s."
1384
-
1385
- #: includes/i18n.php:390
1386
- msgid "From unknown reason, the API connectivity test failed."
1387
- msgstr "From unknown reason, the API connectivity test failed."
1388
-
1389
- #: includes/i18n.php:391
1390
- msgid "It's probably a temporary issue on our end. Just to be sure, with your permission, would it be o.k to run another connectivity test?"
1391
- msgstr "It's probably a temporary issue on our end. Just to be sure, with your permission, would it be o.k to run another connectivity test?"
1392
-
1393
- #: includes/i18n.php:392
1394
- msgid "We use PHP cURL library for the API calls, which is a very common library and usually installed and activated out of the box. Unfortunately, cURL is not activated (or disabled) on your server."
1395
- msgstr "We use PHP cURL library for the API calls, which is a very common library and usually installed and activated out of the box. Unfortunately, cURL is not activated (or disabled) on your server."
1396
-
1397
- #: includes/i18n.php:393
1398
- msgid "Disabled method(s):"
1399
- msgstr "Disabled method(s):"
1400
-
1401
- #: includes/i18n.php:394
1402
- msgid "From unknown reason, CloudFlare, the firewall we use, blocks the connection."
1403
- msgstr "Af en ukendt årsag blokerer CloudFlare, vores firewall, forbindelsen."
1404
-
1405
- #: includes/i18n.php:395
1406
- msgctxt "as pluginX requires an access to our API"
1407
- msgid "%s requires an access to our API."
1408
- msgstr "%s påkræver adgang til vores API."
1409
-
1410
- #: includes/i18n.php:397
1411
- msgid "It looks like your server is using Squid ACL (access control lists), which blocks the connection."
1412
- msgstr "Det ser ud til, at din server benytter Squid ACL (access control lists), som blokerer forbindelsen."
1413
-
1414
- #: includes/i18n.php:398
1415
- msgid "I don't know what is Squid or ACL, help me!"
1416
- msgstr "Jeg ved ikke hvad Squid eller ACL er. Hjælp mig!"
1417
-
1418
- #: includes/i18n.php399, includes/i18n.php:403
1419
- msgid "We'll make sure to contact your hosting company and resolve the issue. You will get a follow-up email to %s once we have an update."
1420
- msgstr "Vi vil kontakte din udbyder og løse problemet. Når vi har opdatinger i sagen, vil vi følge op med en email til dig på %s."
1421
-
1422
- #: includes/i18n.php:400
1423
- msgid "I'm a system administrator"
1424
- msgstr "Jeg er en system-administrator"
1425
-
1426
- #: includes/i18n.php:401
1427
- msgid "Great, please whitelist the following domains: %s. Once you are done, deactivate the %s and activate it again."
1428
- msgstr "Great, please whitelist the following domains: %s. Once you are done, deactivate the %s and activate it again."
1429
-
1430
- #: includes/i18n.php:402
1431
- msgid "I don't know what is cURL or how to install it, help me!"
1432
- msgstr "Jeg ved ikke hvad cURL er, eller hvordan jeg installerer det. Hjælp mig!"
1433
-
1434
- #: includes/i18n.php:404
1435
- msgid "Great, please install cURL and enable it in your php.ini file. In addition, search for the 'disable_functions' directive in your php.ini file and remove any disabled methods starting with 'curl_'. To make sure it was successfully activated, use 'phpinfo()'. Once activated, deactivate the %s and reactivate it back again."
1436
- msgstr "Great, please install cURL and enable it in your php.ini file. In addition, search for the 'disable_functions' directive in your php.ini file and remove any disabled methods starting with 'curl_'. To make sure it was successfully activated, use 'phpinfo()'. Once activated, deactivate the %s and reactivate it back again."
1437
-
1438
- #: includes/i18n.php:405
1439
- msgid "We are sure it's an issue on our side and more than happy to resolve it for you ASAP if you give us a chance."
1440
- msgstr "We are sure it's an issue on our side and more than happy to resolve it for you ASAP if you give us a chance."
1441
-
1442
- #: includes/i18n.php:406
1443
- msgid "Sorry for the inconvenience and we are here to help if you give us a chance."
1444
- msgstr "Vi beklager ulejligheden, og vi er her for at hjælpe, hvis du giver os chancen."
1445
-
1446
- #: includes/i18n.php:407
1447
- msgid "Yes - I'm giving you a chance to fix it"
1448
- msgstr "Ja - jeg giver jer en chance for at rette det"
1449
-
1450
- #: includes/i18n.php:408
1451
- msgid "We will do our best to whitelist your server and resolve this issue ASAP. You will get a follow-up email to %s once we have an update."
1452
- msgstr "We will do our best to whitelist your server and resolve this issue ASAP. You will get a follow-up email to %s once we have an update."
1453
-
1454
- #: includes/i18n.php:409
1455
- msgid "Let's try your previous version"
1456
- msgstr "Lad os prøve din forrige version"
1457
-
1458
- #: includes/i18n.php:410
1459
- msgid "Uninstall this version and install the previous one."
1460
- msgstr "Afinstaller denne version og installer den forrige."
1461
-
1462
- #: includes/i18n.php:411
1463
- msgid "That's exhausting, please deactivate"
1464
- msgstr "Det er udmattende, deaktiver venligst"
1465
-
1466
- #: includes/i18n.php:412
1467
- msgid "We feel your frustration and sincerely apologize for the inconvenience. Hope to see you again in the future."
1468
- msgstr "We feel your frustration and sincerely apologize for the inconvenience. Hope to see you again in the future."
1469
-
1470
- #: includes/i18n.php:413
1471
- msgid "Thank for giving us the chance to fix it! A message was just sent to our technical staff. We will get back to you as soon as we have an update to %s. Appreciate your patience."
1472
- msgstr "Thank for giving us the chance to fix it! A message was just sent to our technical staff. We will get back to you as soon as we have an update to %s. Appreciate your patience."
1473
-
1474
- #: includes/i18n.php:414
1475
- msgctxt "%1s - plugin title, %2s - API domain"
1476
- msgid "Your server is blocking the access to Freemius' API, which is crucial for %1s synchronization. Please contact your host to whitelist %2s"
1477
- msgstr "Your server is blocking the access to Freemius' API, which is crucial for %1s synchronization. Please contact your host to whitelist %2s"
1478
-
1479
- #: includes/i18n.php:416
1480
- msgid "It seems like one of the authentication parameters is wrong. Update your Public Key, Secret Key & User ID, and try again."
1481
- msgstr "It seems like one of the authentication parameters is wrong. Update your Public Key, Secret Key & User ID, and try again."
1482
-
1483
- #: includes/i18n.php:419
1484
- msgid "Please check your mailbox, you should receive an email via %s to confirm the ownership change. From security reasons, you must confirm the change within the next 15 min. If you cannot find the email, please check your spam folder."
1485
- msgstr "Please check your mailbox, you should receive an email via %s to confirm the ownership change. From security reasons, you must confirm the change within the next 15 min. If you cannot find the email, please check your spam folder."
1486
-
1487
- #: includes/i18n.php:420
1488
- msgid "Thanks for confirming the ownership change. An email was just sent to %s for final approval."
1489
- msgstr "Thanks for confirming the ownership change. An email was just sent to %s for final approval."
1490
-
1491
- #: includes/i18n.php:421
1492
- msgid "%s is the new owner of the account."
1493
- msgstr "%s er den nye ejer af kontoen."
1494
-
1495
- #: includes/i18n.php:423
1496
- msgctxt "addonX cannot run without pluginY"
1497
- msgid "%s cannot run without %s."
1498
- msgstr "%s virker ikke uden %s."
1499
-
1500
- #: includes/i18n.php:425
1501
- msgctxt "addonX cannot run..."
1502
- msgid "%s cannot run without the plugin."
1503
- msgstr "%s virker ikke uden pluginnet."
1504
-
1505
- #: includes/i18n.php:426
1506
- msgctxt "pluginX activation was successfully..."
1507
- msgid "%s activation was successfully completed."
1508
- msgstr "Aktivering af %s blev gennemført."
1509
-
1510
- #: includes/i18n.php:428
1511
- msgctxt "Plugin installer section title"
1512
- msgid "Features & Pricing"
1513
- msgstr "Funktioner og priser"
1514
-
1515
- #: includes/i18n.php:429
1516
- msgid "Add-on must be deployed to WordPress.org or Freemius."
1517
- msgstr "Add-on must be deployed to WordPress.org or Freemius."
1518
-
1519
- #: includes/i18n.php:430
1520
- msgid "Paid add-on must be deployed to Freemius."
1521
- msgstr "Paid add-on must be deployed to Freemius."
1522
-
1523
- #: includes/i18n.php:434
1524
- msgid "%s is a premium only add-on. You have to purchase a license first before activating the plugin."
1525
- msgstr "%s is a premium only add-on. You have to purchase a license first before activating the plugin."
1526
-
1527
- #: includes/i18n.php:435
1528
- msgid "%s free trial was successfully cancelled. Since the add-on is premium only it was automatically deactivated. If you like to use it in the future, you'll have to purchase a license."
1529
- msgstr "%s free trial was successfully cancelled. Since the add-on is premium only it was automatically deactivated. If you like to use it in the future, you'll have to purchase a license."
1530
-
1531
- #: includes/i18n.php:440
1532
- msgctxt "as every month"
1533
- msgid "Monthly"
1534
- msgstr "Månedligt"
1535
-
1536
- #: includes/i18n.php:441
1537
- msgctxt "as monthly period"
1538
- msgid "mo"
1539
- msgstr "md"
1540
-
1541
- #: includes/i18n.php:442
1542
- msgctxt "as once a year"
1543
- msgid "Annual"
1544
- msgstr "Årligt"
1545
-
1546
- #: includes/i18n.php:443
1547
- msgctxt "as once a year"
1548
- msgid "Annually"
1549
- msgstr "Årligt"
1550
-
1551
- #: includes/i18n.php:444
1552
- msgctxt "as once a year"
1553
- msgid "Once"
1554
- msgstr "Engangsbeløb"
1555
-
1556
- #: includes/i18n.php:445
1557
- msgctxt "as annual period"
1558
- msgid "year"
1559
- msgstr "år"
1560
-
1561
- #: includes/i18n.php:446
1562
- msgid "Lifetime"
1563
- msgstr "Livstid"
1564
-
1565
- #: includes/i18n.php:447
1566
- msgctxt "e.g. the best product"
1567
- msgid "Best"
1568
- msgstr "Bedste"
1569
-
1570
- #: includes/i18n.php:448
1571
- msgctxt "e.g. billed monthly"
1572
- msgid "Billed %s"
1573
- msgstr "Faktureret %s"
1574
-
1575
- #: includes/i18n.php:449
1576
- msgctxt "as a discount of $5 or 10%"
1577
- msgid "Save %s"
1578
- msgstr "Spar %s"
1579
-
1580
- #: includes/i18n.php:451
1581
- msgid "View details"
1582
- msgstr "Vis detaljer"
1583
-
1584
- #: includes/i18n.php:455
1585
- msgctxt "button label"
1586
- msgid "Approve & Start Trial"
1587
- msgstr "Godkend & start prøveperiode"
1588
-
1589
- #: includes/i18n.php:457
1590
- msgid "You are 1-click away from starting your %1$s-day free trial of the %2$s plan."
1591
- msgstr "Du er 1 klik fra at begynde din %1$s dages gratis prøveperiode af planen %2$s."
1592
-
1593
- #: includes/i18n.php:459
1594
- msgid "For compliance with the WordPress.org guidelines, before we start the trial we ask that you opt-in with your user and non-sensitive site information, allowing the %s to periodically send data to %s to check for version updates and to validate your trial."
1595
- msgstr "For compliance with the WordPress.org guidelines, before we start the trial we ask that you opt-in with your user and non-sensitive site information, allowing the %s to periodically send data to %s to check for version updates and to validate your trial."
1596
-
1597
- #: includes/i18n.php:465
1598
- msgid "Business name"
1599
- msgstr "Firmanavn"
1600
-
1601
- #: includes/i18n.php:466
1602
- msgid "Tax / VAT ID"
1603
- msgstr "Moms / VAT ID"
1604
-
1605
- #: includes/i18n.php:467
1606
- msgid "Address Line %d"
1607
- msgstr "Adresselinje %d"
1608
-
1609
- #: includes/i18n.php:468
1610
- msgid "Country"
1611
- msgstr "Land"
1612
-
1613
- #: includes/i18n.php:469
1614
- msgid "Select Country"
1615
- msgstr "Vælg land"
1616
-
1617
- #: includes/i18n.php:470
1618
- msgid "City"
1619
- msgstr "By"
1620
-
1621
- #: includes/i18n.php:471
1622
- msgid "Town"
1623
- msgstr "By"
1624
-
1625
- #: includes/i18n.php:472
1626
- msgid "State"
1627
- msgstr "Stat"
1628
-
1629
- #: includes/i18n.php:473
1630
- msgid "Province"
1631
- msgstr "Provins"
1632
-
1633
- #: includes/i18n.php:474
1634
- msgid "ZIP / Postal Code"
1635
- msgstr "ZIP / Postnummer"
1636
-
1637
- #: includes/i18n.php:479
1638
- msgid "Installing plugin: %s"
1639
- msgstr "Installing plugin: %s"
1640
-
1641
- #: includes/i18n.php:480
1642
- msgid "Automatic Installation"
1643
- msgstr "Automatic Installation"
1644
-
1645
- #: includes/i18n.php:482
1646
- msgid "%s sec"
1647
- msgstr "%s sec"
1648
-
1649
- #: includes/i18n.php:483
1650
- msgid "An automated download and installation of %s (paid version) from %s will start in %s. If you would like to do it manually - click the cancellation button now."
1651
- msgstr "An automated download and installation of %s (paid version) from %s will start in %s. If you would like to do it manually - click the cancellation button now."
1652
-
1653
- #: includes/i18n.php:484
1654
- msgid "The installation process has started and may take a few minutes to complete. Please wait until it is done - do not refresh this page."
1655
- msgstr "The installation process has started and may take a few minutes to complete. Please wait until it is done - do not refresh this page."
1656
-
1657
- #: includes/i18n.php:485
1658
- msgid "Cancel Installation"
1659
- msgstr "Cancel Installation"
1660
-
1661
- #: includes/i18n.php:486
1662
- msgid "The remote plugin package does not contain a folder with the desired slug and renaming did not work."
1663
- msgstr "The remote plugin package does not contain a folder with the desired slug and renaming did not work."
1664
-
1665
- #: includes/i18n.php:487
1666
- msgid "Invalid module ID."
1667
- msgstr "Invalid module ID."
1668
-
1669
- #: includes/i18n.php:488
1670
- msgid "Auto installation only works for opted-in users."
1671
- msgstr "Auto installation only works for opted-in users."
1672
-
1673
- #: includes/i18n.php:489
1674
- msgid "Premium version already active."
1675
- msgstr "Premium version already active."
1676
-
1677
- #: includes/i18n.php:490
1678
- msgid "Premium add-on version already installed."
1679
- msgstr "Premium add-on version already installed."
1680
-
1681
- #: includes/i18n.php:491
1682
- msgid "You do not have a valid license to access the premium version."
1683
- msgstr "You do not have a valid license to access the premium version."
1684
-
1685
- #: includes/i18n.php:492
1686
- msgid "Plugin is a \"Serviceware\" which means it does not have a premium code version."
1687
- msgstr "Plugin is a \"Serviceware\" which means it does not have a premium code version."
1688
-
1689
- #: includes/i18n.php:496
1690
- msgid "Secure HTTPS %s page, running from an external domain"
1691
- msgstr "Secure HTTPS %s page, running from an external domain"
1692
-
1693
- #: includes/i18n.php:497
1694
- msgid "PCI compliant"
1695
- msgstr "PCI compliant"
1696
-
1697
- #: includes/i18n.php:498
1698
- msgid "View paid features"
1699
- msgstr "View paid features"
1700
-
1701
- #: includes/i18n.php:512
1702
- msgctxt "Plugin installer section title"
1703
- msgid "Description"
1704
- msgstr "Beskrivelse"
1705
-
1706
- #: includes/i18n.php:513
1707
- msgctxt "Plugin installer section title"
1708
- msgid "Installation"
1709
- msgstr "Installering"
1710
-
1711
- #: includes/i18n.php:514
1712
- msgctxt "Plugin installer section title"
1713
- msgid "FAQ"
1714
- msgstr "FAQ"
1715
-
1716
- #: includes/i18n.php:515
1717
- msgctxt "Plugin installer section title"
1718
- msgid "Changelog"
1719
- msgstr "Ændringslog"
1720
-
1721
- #: includes/i18n.php:516
1722
- msgctxt "Plugin installer section title"
1723
- msgid "Reviews"
1724
- msgstr "Anmeldelser"
1725
-
1726
- #: includes/i18n.php:517
1727
- msgctxt "Plugin installer section title"
1728
- msgid "Other Notes"
1729
- msgstr "Andre noter"
1730
-
1731
- #: includes/i18n.php:519
1732
- msgid "%s star"
1733
- msgstr "%s stjerne"
1734
-
1735
- #: includes/i18n.php:521
1736
- msgid "%s stars"
1737
- msgstr "%s stjerner"
1738
-
1739
- #: includes/i18n.php:523
1740
- msgid "%s rating"
1741
- msgstr "%s vurdering"
1742
-
1743
- #: includes/i18n.php:525
1744
- msgid "%s ratings"
1745
- msgstr "%s vurderinger"
1746
-
1747
- #: includes/i18n.php:527
1748
- msgid "%s time"
1749
- msgstr "%s gang"
1750
-
1751
- #: includes/i18n.php:529
1752
- msgid "%s times"
1753
- msgstr "%s gange"
1754
-
1755
- #: includes/i18n.php:531
1756
- msgid "Click to see reviews that provided a rating of %s"
1757
- msgstr "Click to see reviews that provided a rating of %s"
1758
-
1759
- #: includes/i18n.php:532
1760
- msgid "Last Updated"
1761
- msgstr "Senest opdateret"
1762
-
1763
- #: includes/i18n.php:533
1764
- msgid "Requires WordPress Version:"
1765
- msgstr "Kræver WordPress-version:"
1766
-
1767
- #: includes/i18n.php:534
1768
- msgctxt "as the plugin author"
1769
- msgid "Author:"
1770
- msgstr "Forfatter:"
1771
-
1772
- #: includes/i18n.php:535
1773
- msgid "Compatible up to:"
1774
- msgstr "Kompatibel op til:"
1775
-
1776
- #: includes/i18n.php:536
1777
- msgid "Downloaded:"
1778
- msgstr "Hentet:"
1779
-
1780
- #: includes/i18n.php:537
1781
- msgid "WordPress.org Plugin Page"
1782
- msgstr "WordPress.org Plugin-side"
1783
-
1784
- #: includes/i18n.php:538
1785
- msgid "Plugin Homepage"
1786
- msgstr "Plugin-websted"
1787
-
1788
- #: includes/i18n.php:539
1789
- msgid "Donate to this plugin"
1790
- msgstr "Donér til dette plugin"
1791
-
1792
- #: includes/i18n.php:540
1793
- msgid "Average Rating"
1794
- msgstr "Gennemsnitlig vurdering"
1795
-
1796
- #: includes/i18n.php:541
1797
- msgid "based on %s"
1798
- msgstr "baseret på %s"
1799
-
1800
- #: includes/i18n.php:542
1801
- msgid "Warning:"
1802
- msgstr "Advarsel:"
1803
-
1804
- #: includes/i18n.php:543
1805
- msgid "Contributors"
1806
- msgstr "Bidragsydere"
1807
-
1808
- #: includes/i18n.php:544
1809
- msgid "Plugin Install"
1810
- msgstr "Plugin Install"
1811
-
1812
- #: includes/i18n.php:545
1813
- msgid "This plugin has not been tested with your current version of WordPress."
1814
- msgstr "This plugin has not been tested with your current version of WordPress."
1815
-
1816
- #: includes/i18n.php:546
1817
- msgid "This plugin has not been marked as compatible with your version of WordPress."
1818
- msgstr "This plugin has not been marked as compatible with your version of WordPress."
1819
-
1820
- #: includes/i18n.php:547
1821
- msgid "Newer Version (%s) Installed"
1822
- msgstr "Nyere version (%s) installeret"
1823
-
1824
- #: includes/i18n.php:548
1825
- msgid "Latest Version Installed"
1826
- msgstr "Seneste version installeret"
1
+ # Copyright (C) 2017 freemius
2
+ # This file is distributed under the same license as the freemius package.
3
+ # Translators:
4
+ # Joachim Jensen <jv@intox.dk>, 2016-2017
5
+ msgid ""
6
+ msgstr ""
7
+ "Project-Id-Version: WordPress SDK\n"
8
+ "Report-Msgid-Bugs-To: https://github.com/Freemius/wordpress-sdk/issues\n"
9
+ "POT-Creation-Date: \n"
10
+ "PO-Revision-Date: 2017-08-24 12:32+0000\n"
11
+ "Last-Translator: Vova Feldman <vova@freemius.com>\n"
12
+ "Language: da_DK\n"
13
+ "Language-Team: Danish (Denmark) (http://www.transifex.com/freemius/wordpress-sdk/language/da_DK/)\n"
14
+ "Content-Type: text/plain; charset=UTF-8\n"
15
+ "Content-Transfer-Encoding: 8bit\n"
16
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "MIME-Version: 1.0\n"
18
+ "X-Poedit-Basepath: ..\n"
19
+ "X-Poedit-KeywordsList: _fs_text;_fs_echo;_fs_esc_attr;_fs_esc_attr_echo;_fs_esc_html;_fs_esc_html_echo;_fs_x:1,2c;_fs_ex:1,2c;_fs_esc_attr_x:1,2c;_fs_esc_html_x:1,2c;_fs_n:1,2;_fs_n_noop:1,2;_fs_nx:1,2,4c;_fs_nx_noop:1,2,3c\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Poedit-SearchPathExcluded-0: *.js\n"
22
+ "X-Poedit-SourceCharset: UTF-8\n"
23
+
24
+ #: includes/i18n.php:37
25
+ msgid "Account"
26
+ msgstr "Konto"
27
+
28
+ #: includes/i18n.php:38
29
+ msgid "Add-On"
30
+ msgstr "Add-On"
31
+
32
+ #: includes/i18n.php:39
33
+ msgid "Contact Us"
34
+ msgstr "Kontakt os"
35
+
36
+ #: includes/i18n.php:40
37
+ msgid "Contact Support"
38
+ msgstr "Kontakt support"
39
+
40
+ #: includes/i18n.php:41
41
+ msgid "Change Ownership"
42
+ msgstr "Skift ejerskab"
43
+
44
+ #: includes/i18n.php:42
45
+ msgid "Support"
46
+ msgstr "Support"
47
+
48
+ #: includes/i18n.php:43
49
+ msgid "Support Forum"
50
+ msgstr "Supportforum"
51
+
52
+ #: includes/i18n.php:44
53
+ msgid "Add-Ons"
54
+ msgstr "Add-Ons"
55
+
56
+ #: includes/i18n.php:45
57
+ msgctxt "verb"
58
+ msgid "Upgrade"
59
+ msgstr "Opgrader"
60
+
61
+ #: includes/i18n.php:46
62
+ msgid "Awesome"
63
+ msgstr "Sejt"
64
+
65
+ #: includes/i18n.php:47
66
+ msgctxt "noun"
67
+ msgid "Pricing"
68
+ msgstr "Priser"
69
+
70
+ #: includes/i18n.php:48
71
+ msgctxt "noun"
72
+ msgid "Price"
73
+ msgstr "Pris"
74
+
75
+ #: includes/i18n.php:49
76
+ msgid "Unlimited Updates"
77
+ msgstr "Ubegrænsede opdateringer"
78
+
79
+ #: includes/i18n.php:50
80
+ msgctxt "verb"
81
+ msgid "Downgrade"
82
+ msgstr "Nedgrader"
83
+
84
+ #: includes/i18n.php:51
85
+ msgctxt "verb"
86
+ msgid "Cancel Subscription"
87
+ msgstr "Annuller abonnement"
88
+
89
+ #: includes/i18n.php:52
90
+ msgid "Cancel Trial"
91
+ msgstr "Annuller prøveperiode"
92
+
93
+ #: includes/i18n.php:53
94
+ msgid "Free Trial"
95
+ msgstr "Gratis prøveperiode"
96
+
97
+ #: includes/i18n.php:54
98
+ msgid "Start my free %s"
99
+ msgstr "Start min gratis %s"
100
+
101
+ #: includes/i18n.php:55
102
+ msgid "No commitment for %s - cancel anytime"
103
+ msgstr "Ingen bindinger ved %s - annuller når som helst"
104
+
105
+ #: includes/i18n.php:56
106
+ msgid "After your free %s, pay as little as %s"
107
+ msgstr "Efter din gratis %s er prisen kun %s"
108
+
109
+ #: includes/i18n.php:57
110
+ msgid "Details"
111
+ msgstr "Detaljer"
112
+
113
+ #: includes/i18n.php:58
114
+ msgid "Account Details"
115
+ msgstr "Kontodetaljer"
116
+
117
+ #: includes/i18n.php:59
118
+ msgctxt "verb"
119
+ msgid "Delete"
120
+ msgstr "Slet"
121
+
122
+ #: includes/i18n.php:60
123
+ msgctxt "verb"
124
+ msgid "Show"
125
+ msgstr "Vis"
126
+
127
+ #: includes/i18n.php:61
128
+ msgctxt "verb"
129
+ msgid "Hide"
130
+ msgstr "Skjul"
131
+
132
+ #: includes/i18n.php:62
133
+ msgctxt "verb"
134
+ msgid "Edit"
135
+ msgstr "Rediger"
136
+
137
+ #: includes/i18n.php:63
138
+ msgctxt "verb"
139
+ msgid "Update"
140
+ msgstr "Opdater"
141
+
142
+ #: includes/i18n.php:64
143
+ msgid "Date"
144
+ msgstr "Dato"
145
+
146
+ #: includes/i18n.php:65
147
+ msgid "Amount"
148
+ msgstr "Beløb"
149
+
150
+ #: includes/i18n.php:66
151
+ msgid "Invoice"
152
+ msgstr "Faktura"
153
+
154
+ #: includes/i18n.php:67
155
+ msgid "Billing"
156
+ msgstr "Betaling"
157
+
158
+ #: includes/i18n.php:68
159
+ msgid "Payments"
160
+ msgstr "Betalinger"
161
+
162
+ #: includes/i18n.php:69
163
+ msgid "Delete Account"
164
+ msgstr "Slet konto"
165
+
166
+ #: includes/i18n.php:70
167
+ msgctxt "as close a window"
168
+ msgid "Dismiss"
169
+ msgstr "Fjern"
170
+
171
+ #: includes/i18n.php:71
172
+ msgctxt "as product pricing plan"
173
+ msgid "Plan"
174
+ msgstr "Plan"
175
+
176
+ #: includes/i18n.php:72
177
+ msgid "Change Plan"
178
+ msgstr "Skift plan"
179
+
180
+ #: includes/i18n.php:73
181
+ msgctxt "as download professional version"
182
+ msgid "Download %s Version"
183
+ msgstr "Download %s Version"
184
+
185
+ #: includes/i18n.php:74
186
+ msgctxt "as download professional version now"
187
+ msgid "Download %s version now"
188
+ msgstr "Download %s version now"
189
+
190
+ #: includes/i18n.php:75
191
+ msgctxt "as download latest version"
192
+ msgid "Download Latest"
193
+ msgstr "Download seneste"
194
+
195
+ #: includes/i18n.php:76
196
+ msgctxt "E.g. you have a professional license."
197
+ msgid "You have a %s license."
198
+ msgstr "Du har en %s licens."
199
+
200
+ #: includes/i18n.php:77
201
+ msgid "New"
202
+ msgstr "Ny"
203
+
204
+ #: includes/i18n.php:78
205
+ msgid "Free"
206
+ msgstr "Gratis"
207
+
208
+ #: includes/i18n.php:79
209
+ msgctxt "as trial plan"
210
+ msgid "Trial"
211
+ msgstr "Prøveperiode"
212
+
213
+ #: includes/i18n.php:80
214
+ msgctxt "as starting a trial plan"
215
+ msgid "Start Trial"
216
+ msgstr "Start prøveperiode"
217
+
218
+ #: includes/i18n.php:81
219
+ msgctxt "verb"
220
+ msgid "Purchase"
221
+ msgstr "Køb"
222
+
223
+ #: includes/i18n.php:82
224
+ msgid "Purchase License"
225
+ msgstr "Køb licens"
226
+
227
+ #: includes/i18n.php:83
228
+ msgctxt "verb"
229
+ msgid "Buy"
230
+ msgstr "Køb"
231
+
232
+ #: includes/i18n.php:84
233
+ msgid "Buy License"
234
+ msgstr "Køb licens"
235
+
236
+ #: includes/i18n.php:85
237
+ msgid "Single Site License"
238
+ msgstr "Single Site License"
239
+
240
+ #: includes/i18n.php:86
241
+ msgid "Unlimited Licenses"
242
+ msgstr "Ubegrænsede licenser"
243
+
244
+ #: includes/i18n.php:87
245
+ msgid "Up to %s Sites"
246
+ msgstr "Op til %s websteder"
247
+
248
+ #: includes/i18n.php:88
249
+ msgid "%sRenew your license now%s to access version %s features and support."
250
+ msgstr "%sRenew your license now%s to access version %s features and support."
251
+
252
+ #: includes/i18n.php:89
253
+ msgid "Enter the email address you've used for the upgrade below and we will resend you the license key."
254
+ msgstr "Enter the email address you've used for the upgrade below and we will resend you the license key."
255
+
256
+ #: includes/i18n.php:90
257
+ msgctxt "e.g. Professional Plan"
258
+ msgid "%s Plan"
259
+ msgstr "%s Plan"
260
+
261
+ #: includes/i18n.php:91
262
+ msgid "You are just one step away - %s"
263
+ msgstr "Du mangler kun ét skridt - %s"
264
+
265
+ #: includes/i18n.php:92
266
+ msgctxt "%s - plugin name. As complete \"Jetpack\" activation now"
267
+ msgid "Complete \"%s\" Activation Now"
268
+ msgstr "Færdiggør aktivering af \"%s\" nu"
269
+
270
+ #: includes/i18n.php:94
271
+ msgid "We made a few tweaks to the %s, %s"
272
+ msgstr "We made a few tweaks to the %s, %s"
273
+
274
+ #: includes/i18n.php:95
275
+ msgid "Opt-in to make \"%s\" Better!"
276
+ msgstr "Tilmeld for at gøre \"%s\" bedre!"
277
+
278
+ #: includes/i18n.php:96
279
+ msgid "Error"
280
+ msgstr "Fejl"
281
+
282
+ #: includes/i18n.php:97
283
+ msgid "Freemius SDK couldn't find the plugin's main file. Please contact sdk@freemius.com with the current error."
284
+ msgstr "Freemius SDK couldn't find the plugin's main file. Please contact sdk@freemius.com with the current error."
285
+
286
+ #: includes/i18n.php:100
287
+ msgctxt "as expiration date"
288
+ msgid "Expiration"
289
+ msgstr "Expiration"
290
+
291
+ #: includes/i18n.php:101
292
+ msgctxt "as software license"
293
+ msgid "License"
294
+ msgstr "Licens"
295
+
296
+ #: includes/i18n.php:102
297
+ msgid "not verified"
298
+ msgstr "ikke verificeret"
299
+
300
+ #: includes/i18n.php:103
301
+ msgid "Verify Email"
302
+ msgstr "Verificer e-mail"
303
+
304
+ #: includes/i18n.php:104
305
+ msgctxt "e.g. expires in 2 months"
306
+ msgid "Expires in %s"
307
+ msgstr "Udløber om %s"
308
+
309
+ #: includes/i18n.php:105
310
+ msgctxt "e.g. auto renews in 2 months"
311
+ msgid "Auto renews in %s"
312
+ msgstr "Auto-fornyer om %s"
313
+
314
+ #: includes/i18n.php:106
315
+ msgid "No expiration"
316
+ msgstr "Udløber ikke"
317
+
318
+ #: includes/i18n.php:107
319
+ msgid "Expired"
320
+ msgstr "Udløbet"
321
+
322
+ #: includes/i18n.php:108
323
+ msgid "Cancelled"
324
+ msgstr "Annulleret"
325
+
326
+ #: includes/i18n.php:109
327
+ msgctxt "e.g. In 2 hours"
328
+ msgid "In %s"
329
+ msgstr "Om %s"
330
+
331
+ #: includes/i18n.php:110
332
+ msgctxt "e.g. 2 min ago"
333
+ msgid "%s ago"
334
+ msgstr "%s siden"
335
+
336
+ #: includes/i18n.php:112
337
+ msgid "%s or higher"
338
+ msgstr "%s eller højere"
339
+
340
+ #: includes/i18n.php:113
341
+ msgctxt "as plugin version"
342
+ msgid "Version"
343
+ msgstr "Version"
344
+
345
+ #: includes/i18n.php:114
346
+ msgid "Name"
347
+ msgstr "Navn"
348
+
349
+ #: includes/i18n.php:115
350
+ msgid "Email"
351
+ msgstr "E-mail"
352
+
353
+ #: includes/i18n.php:116
354
+ msgid "Email address"
355
+ msgstr "E-mailadresse"
356
+
357
+ #: includes/i18n.php:117
358
+ msgid "Verified"
359
+ msgstr "Verificeret"
360
+
361
+ #: includes/i18n.php:118
362
+ msgid "Module"
363
+ msgstr "Modul"
364
+
365
+ #: includes/i18n.php:119
366
+ msgid "Module Type"
367
+ msgstr "Modultype"
368
+
369
+ #: includes/i18n.php:120
370
+ msgid "Plugin"
371
+ msgstr "Plugin"
372
+
373
+ #: includes/i18n.php:121
374
+ msgid "Plugins"
375
+ msgstr "Plugins"
376
+
377
+ #: includes/i18n.php:122
378
+ msgid "Theme"
379
+ msgstr "Tema"
380
+
381
+ #: includes/i18n.php:123
382
+ msgid "Themes"
383
+ msgstr "Temaer"
384
+
385
+ #: includes/i18n.php:124
386
+ msgctxt "as file/folder path"
387
+ msgid "Path"
388
+ msgstr "Sti"
389
+
390
+ #: includes/i18n.php:125
391
+ msgid "Title"
392
+ msgstr "Titel"
393
+
394
+ #: includes/i18n.php:126
395
+ msgid "Free version"
396
+ msgstr "Gratis version"
397
+
398
+ #: includes/i18n.php:127
399
+ msgid "Premium version"
400
+ msgstr "Premium version"
401
+
402
+ #: includes/i18n.php:128
403
+ msgctxt "as WP plugin slug"
404
+ msgid "Slug"
405
+ msgstr "Kortnavn"
406
+
407
+ #: includes/i18n.php:129
408
+ msgid "ID"
409
+ msgstr "ID"
410
+
411
+ #: includes/i18n.php:130
412
+ msgid "Users"
413
+ msgstr "Brugere"
414
+
415
+ #: includes/i18n.php:131
416
+ msgid "%s Installs"
417
+ msgstr "%s installeringer"
418
+
419
+ #: includes/i18n.php:132
420
+ msgctxt "like websites"
421
+ msgid "Sites"
422
+ msgstr "Websteder"
423
+
424
+ #: includes/i18n.php:133
425
+ msgid "User ID"
426
+ msgstr "Bruger-ID"
427
+
428
+ #: includes/i18n.php:134
429
+ msgid "Site ID"
430
+ msgstr "Websteds-ID"
431
+
432
+ #: includes/i18n.php:135
433
+ msgid "Public Key"
434
+ msgstr "Offentlig nøgle"
435
+
436
+ #: includes/i18n.php:136
437
+ msgid "Secret Key"
438
+ msgstr "Privat nøgle"
439
+
440
+ #: includes/i18n.php:137
441
+ msgctxt "as secret encryption key missing"
442
+ msgid "No Secret"
443
+ msgstr "Ingen privat nøgle"
444
+
445
+ #: includes/i18n.php:138
446
+ msgid "No ID"
447
+ msgstr "Intet ID"
448
+
449
+ #: includes/i18n.php:139
450
+ msgctxt "as synchronize license"
451
+ msgid "Sync License"
452
+ msgstr "Synkroniser licens"
453
+
454
+ #: includes/i18n.php:140
455
+ msgctxt "as synchronize"
456
+ msgid "Sync"
457
+ msgstr "Synkroniser"
458
+
459
+ #: includes/i18n.php:141
460
+ msgid "Activate License"
461
+ msgstr "Aktiver licens"
462
+
463
+ #: includes/i18n.php:142
464
+ msgid "Activate Free Version"
465
+ msgstr "Aktiver gratis version"
466
+
467
+ #: includes/i18n.php:143
468
+ msgid "Please enter the license key that you received in the email right after the purchase:"
469
+ msgstr "Please enter the license key that you received in the email right after the purchase:"
470
+
471
+ #: includes/i18n.php:144
472
+ msgid "Activating license..."
473
+ msgstr "Aktiverer licens..."
474
+
475
+ #: includes/i18n.php:145
476
+ msgid "Change License"
477
+ msgstr "Skift licens"
478
+
479
+ #: includes/i18n.php:146
480
+ msgid "Update License"
481
+ msgstr "Opdater licens"
482
+
483
+ #: includes/i18n.php:147
484
+ msgid "Deactivate License"
485
+ msgstr "Deaktiver licens"
486
+
487
+ #: includes/i18n.php:148
488
+ msgid "Activate"
489
+ msgstr "Aktiver"
490
+
491
+ #: includes/i18n.php:149
492
+ msgid "Deactivate"
493
+ msgstr "Deaktiver"
494
+
495
+ #: includes/i18n.php:150
496
+ msgid "Skip & Deactivate"
497
+ msgstr "Spring over & deaktiver"
498
+
499
+ #: includes/i18n.php:151
500
+ msgid "Skip & %s"
501
+ msgstr "Spring over & %s"
502
+
503
+ #: includes/i18n.php:152
504
+ msgid "No - just deactivate"
505
+ msgstr "Nej - bare deaktiver"
506
+
507
+ #: includes/i18n.php:153
508
+ msgid "Yes - do your thing"
509
+ msgstr "Yes - do your thing"
510
+
511
+ #: includes/i18n.php:154
512
+ msgctxt "active mode"
513
+ msgid "Active"
514
+ msgstr "Aktiv"
515
+
516
+ #: includes/i18n.php:155
517
+ msgctxt "is active mode?"
518
+ msgid "Is Active"
519
+ msgstr "Er aktiv"
520
+
521
+ #: includes/i18n.php:156
522
+ msgid "Install Now"
523
+ msgstr "Installer nu"
524
+
525
+ #: includes/i18n.php:157
526
+ msgid "Install Update Now"
527
+ msgstr "Installer opdatering nu"
528
+
529
+ #: includes/i18n.php:158
530
+ msgid "More information about %s"
531
+ msgstr "Mere information om %s"
532
+
533
+ #: includes/i18n.php:159
534
+ msgid "Localhost"
535
+ msgstr "Localhost"
536
+
537
+ #: includes/i18n.php:160
538
+ msgctxt "as activate Professional plan"
539
+ msgid "Activate %s Plan"
540
+ msgstr "Aktiver %s plan"
541
+
542
+ #: includes/i18n.php:161
543
+ msgctxt "as 5 licenses left"
544
+ msgid "%s left"
545
+ msgstr "%s tilbage"
546
+
547
+ #: includes/i18n.php:162
548
+ msgid "Last license"
549
+ msgstr "Seneste license"
550
+
551
+ #: includes/i18n.php:163
552
+ msgid "What is your %s?"
553
+ msgstr "What is your %s?"
554
+
555
+ #: includes/i18n.php:164
556
+ msgid "Activate this add-on"
557
+ msgstr "Aktiver denne tilføjelse"
558
+
559
+ #: includes/i18n.php:165
560
+ msgid "Deactivating your license will block all premium features, but will enable you to activate the license on another site. Are you sure you want to proceed?"
561
+ msgstr "Deactivating your license will block all premium features, but will enable you to activate the license on another site. Are you sure you want to proceed?"
562
+
563
+ #: includes/i18n.php:166
564
+ msgid "Deleting the account will automatically deactivate your %s plan license so you can use it on other sites. If you want to terminate the recurring payments as well, click the \"Cancel\" button, and first \"Downgrade\" your account. Are you sure you would like to continue with the deletion?"
565
+ msgstr "Deleting the account will automatically deactivate your %s plan license so you can use it on other sites. If you want to terminate the recurring payments as well, click the \"Cancel\" button, and first \"Downgrade\" your account. Are you sure you would like to continue with the deletion?"
566
+
567
+ #: includes/i18n.php:167
568
+ msgid "Deletion is not temporary. Only delete if you no longer want to use this %s anymore. Are you sure you would like to continue with the deletion?"
569
+ msgstr "Deletion is not temporary. Only delete if you no longer want to use this %s anymore. Are you sure you would like to continue with the deletion?"
570
+
571
+ #: includes/i18n.php:168
572
+ msgid "Downgrading your plan will immediately stop all future recurring payments and your %s plan license will expire in %s."
573
+ msgstr "Downgrading your plan will immediately stop all future recurring payments and your %s plan license will expire in %s."
574
+
575
+ #: includes/i18n.php:169
576
+ msgid "Cancelling the trial will immediately block access to all premium features. Are you sure?"
577
+ msgstr "Cancelling the trial will immediately block access to all premium features. Are you sure?"
578
+
579
+ #: includes/i18n.php:170
580
+ msgid "You can still enjoy all %s features but you will not have access to %s updates and support."
581
+ msgstr "You can still enjoy all %s features but you will not have access to %s updates and support."
582
+
583
+ #: includes/i18n.php:171
584
+ msgid "Once your license expires you can still use the Free version but you will NOT have access to the %s features."
585
+ msgstr "Once your license expires you can still use the Free version but you will NOT have access to the %s features."
586
+
587
+ #: includes/i18n.php:172
588
+ msgid "Are you sure you want to proceed?"
589
+ msgstr "Er du sikker på, du vil fortsætte?"
590
+
591
+ #: includes/i18n.php:175
592
+ msgid "Add Ons for %s"
593
+ msgstr "Tilføjelser til %s"
594
+
595
+ #: includes/i18n.php:176
596
+ msgid "We could'nt load the add-ons list. It's probably an issue on our side, please try to come back in few minutes."
597
+ msgstr "We could'nt load the add-ons list. It's probably an issue on our side, please try to come back in few minutes."
598
+
599
+ #: includes/i18n.php:178
600
+ msgid "Anonymous feedback"
601
+ msgstr "Anonym feedback"
602
+
603
+ #: includes/i18n.php:179
604
+ msgid "Quick feedback"
605
+ msgstr "Hurtig feedback"
606
+
607
+ #: includes/i18n.php:180
608
+ msgid "If you have a moment, please let us know why you are %s"
609
+ msgstr "If you have a moment, please let us know why you are %s"
610
+
611
+ #: includes/i18n.php:181
612
+ msgid "deactivating"
613
+ msgstr "deactivating"
614
+
615
+ #: includes/i18n.php:182
616
+ msgid "Deactivation"
617
+ msgstr "Deactivation"
618
+
619
+ #: includes/i18n.php:183
620
+ msgid "Theme Switch"
621
+ msgstr "Theme Switch"
622
+
623
+ #: includes/i18n.php:184
624
+ msgid "switching"
625
+ msgstr "switching"
626
+
627
+ #: includes/i18n.php:185
628
+ msgid "Switch"
629
+ msgstr "Switch"
630
+
631
+ #: includes/i18n.php:186
632
+ msgid "Activate %s"
633
+ msgstr "Activate %s"
634
+
635
+ #: includes/i18n.php:187
636
+ msgid "Yes - %s"
637
+ msgstr "Yes - %s"
638
+
639
+ #: includes/i18n.php:188
640
+ msgid "Submit & %s"
641
+ msgstr "Submit & %s"
642
+
643
+ #: includes/i18n.php:189
644
+ msgid "Cancel"
645
+ msgstr "Annuller"
646
+
647
+ #: includes/i18n.php:190
648
+ msgid "I no longer need the %s"
649
+ msgstr "I no longer need the %s"
650
+
651
+ #: includes/i18n.php:191
652
+ msgid "I found a better %s"
653
+ msgstr "I found a better %s"
654
+
655
+ #: includes/i18n.php:192
656
+ msgid "I only needed the %s for a short period"
657
+ msgstr "I only needed the %s for a short period"
658
+
659
+ #: includes/i18n.php:193
660
+ msgid "The %s broke my site"
661
+ msgstr "The %s broke my site"
662
+
663
+ #: includes/i18n.php:194
664
+ msgid "The %s suddenly stopped working"
665
+ msgstr "The %s suddenly stopped working"
666
+
667
+ #: includes/i18n.php:195
668
+ msgid "I can't pay for it anymore"
669
+ msgstr "Jeg kan ikke længere betale for det"
670
+
671
+ #: includes/i18n.php:196
672
+ msgid "It's a temporary deactivation. I'm just debugging an issue."
673
+ msgstr "Det er en midlertidig deaktivering. Jeg prøver at fejlfinde et problem."
674
+
675
+ #: includes/i18n.php:197
676
+ msgid "It's a temporary %s. I'm just debugging an issue."
677
+ msgstr "It's a temporary %s. I'm just debugging an issue."
678
+
679
+ #: includes/i18n.php:198
680
+ msgctxt ""
681
+ msgid "Other"
682
+ msgstr "Other"
683
+
684
+ #: includes/i18n.php:200
685
+ msgid "Kindly tell us the reason so we can improve."
686
+ msgstr "Fortæl os venligst årsagen, så vi kan forbedre det."
687
+
688
+ #: includes/i18n.php:201
689
+ msgid "What's the %s's name?"
690
+ msgstr "What's the %s's name?"
691
+
692
+ #: includes/i18n.php:202
693
+ msgid "What price would you feel comfortable paying?"
694
+ msgstr "What price would you feel comfortable paying?"
695
+
696
+ #: includes/i18n.php:203
697
+ msgid "I couldn't understand how to make it work"
698
+ msgstr "Jeg forstod ikke, hvordan jeg skulle få det til at fungere."
699
+
700
+ #: includes/i18n.php:204
701
+ msgid "The %s is great, but I need specific feature that you don't support"
702
+ msgstr "The %s is great, but I need specific feature that you don't support"
703
+
704
+ #: includes/i18n.php:205
705
+ msgid "The %s is not working"
706
+ msgstr "The %s is not working"
707
+
708
+ #: includes/i18n.php:206
709
+ msgid "It's not what I was looking for"
710
+ msgstr "Det er ikke, hvad jeg søgte"
711
+
712
+ #: includes/i18n.php:207
713
+ msgid "The %s didn't work as expected"
714
+ msgstr "The %s didn't work as expected"
715
+
716
+ #: includes/i18n.php:208
717
+ msgid "What feature?"
718
+ msgstr "Hvilken feature?"
719
+
720
+ #: includes/i18n.php:209
721
+ msgid "Kindly share what didn't work so we can fix it for future users..."
722
+ msgstr "Kindly share what didn't work so we can fix it for future users..."
723
+
724
+ #: includes/i18n.php:210
725
+ msgid "What you've been looking for?"
726
+ msgstr "What you've been looking for?"
727
+
728
+ #: includes/i18n.php:211
729
+ msgid "What did you expect?"
730
+ msgstr "Hvad forventede du?"
731
+
732
+ #: includes/i18n.php:212
733
+ msgid "The %s didn't work"
734
+ msgstr "The %s didn't work"
735
+
736
+ #: includes/i18n.php:213
737
+ msgid "I don't like to share my information with you"
738
+ msgstr "I don't like to share my information with you"
739
+
740
+ #: includes/i18n.php:214
741
+ msgid "You might have missed it, but you don't have to share any data and can just %s the opt-in."
742
+ msgstr "You might have missed it, but you don't have to share any data and can just %s the opt-in."
743
+
744
+ #: includes/i18n.php:218
745
+ msgctxt "greeting"
746
+ msgid "Hey %s,"
747
+ msgstr "Hey %s,"
748
+
749
+ #: includes/i18n.php:219
750
+ msgctxt "a greeting. E.g. Thanks John!"
751
+ msgid "Thanks %s!"
752
+ msgstr "Tak %s!"
753
+
754
+ #: includes/i18n.php:220
755
+ msgid "Never miss an important update - opt-in to our security and feature updates notifications, and non-sensitive diagnostic tracking with %4$s."
756
+ msgstr "Never miss an important update - opt-in to our security and feature updates notifications, and non-sensitive diagnostic tracking with %4$s."
757
+
758
+ #: includes/i18n.php:221
759
+ msgid "Please help us improve %1$s! If you opt-in, some data about your usage of %1$s will be sent to %4$s. If you skip this, that's okay! %1$s will still work just fine."
760
+ msgstr "Please help us improve %1$s! If you opt-in, some data about your usage of %1$s will be sent to %4$s. If you skip this, that's okay! %1$s will still work just fine."
761
+
762
+ #: includes/i18n.php:222
763
+ msgid "You should receive an activation email for %s to your mailbox at %s. Please make sure you click the activation button in that email to %s."
764
+ msgstr "You should receive an activation email for %s to your mailbox at %s. Please make sure you click the activation button in that email to %s."
765
+
766
+ #: includes/i18n.php:223
767
+ msgid "complete the install"
768
+ msgstr "færdiggør installeringen"
769
+
770
+ #: includes/i18n.php:224
771
+ msgid "start the trial"
772
+ msgstr "start prøveperioden"
773
+
774
+ #: includes/i18n.php:225
775
+ msgid "Thanks for purchasing %s! To get started, please enter your license key:"
776
+ msgstr "Thanks for purchasing %s! To get started, please enter your license key:"
777
+
778
+ #: includes/i18n.php:226
779
+ msgid "The %1$s will be periodically sending data to %2$s to check for security and feature updates, and verify the validity of your license."
780
+ msgstr "The %1$s will be periodically sending data to %2$s to check for security and feature updates, and verify the validity of your license."
781
+
782
+ #: includes/i18n.php:227
783
+ msgid "What permissions are being granted?"
784
+ msgstr "Hvilke tilladelser bliver givet?"
785
+
786
+ #: includes/i18n.php:228
787
+ msgid "Your Profile Overview"
788
+ msgstr "Overblik af din profil"
789
+
790
+ #: includes/i18n.php:229
791
+ msgid "Name and email address"
792
+ msgstr "Navn og e-mailadresse"
793
+
794
+ #: includes/i18n.php:230
795
+ msgid "Your Site Overview"
796
+ msgstr "Overblik af dit websted"
797
+
798
+ #: includes/i18n.php:231
799
+ msgid "Site URL, WP version, PHP info, plugins & themes"
800
+ msgstr "Websteds-URL, WP version, PHP info, plugins og temaer"
801
+
802
+ #: includes/i18n.php:232
803
+ msgid "Current %s Events"
804
+ msgstr "Current %s Events"
805
+
806
+ #: includes/i18n.php:233
807
+ msgid "Activation, deactivation and uninstall"
808
+ msgstr "Aktivering, deaktivering og afinstallering"
809
+
810
+ #: includes/i18n.php:234
811
+ msgid "Plugins & Themes"
812
+ msgstr "Plugins & Temaer"
813
+
814
+ #: includes/i18n.php:235
815
+ msgid "Titles, versions and state."
816
+ msgstr "Titler, versioner og tilstand."
817
+
818
+ #: includes/i18n.php:236
819
+ msgid "Admin Notices"
820
+ msgstr "Admin Notices"
821
+
822
+ #: includes/i18n.php:237
823
+ msgid "Newsletter"
824
+ msgstr "Nyhedsbrev"
825
+
826
+ #: includes/i18n.php:238
827
+ msgid "Updates, announcements, marketing, no spam"
828
+ msgstr "Updates, announcements, marketing, no spam"
829
+
830
+ #: includes/i18n.php:239
831
+ msgid "Privacy Policy"
832
+ msgstr "Privatlivspolitik"
833
+
834
+ #: includes/i18n.php:240
835
+ msgid "Terms of Service"
836
+ msgstr "Servicevilkår"
837
+
838
+ #: includes/i18n.php:241
839
+ msgctxt "as activating plugin"
840
+ msgid "Activating"
841
+ msgstr "Aktiverer"
842
+
843
+ #: includes/i18n.php:242
844
+ msgctxt "as in the process of sending an email"
845
+ msgid "Sending email"
846
+ msgstr "Sender e-mail"
847
+
848
+ #: includes/i18n.php:243
849
+ msgctxt "button label"
850
+ msgid "Allow & Continue"
851
+ msgstr "Tillad & Fortsæt"
852
+
853
+ #: includes/i18n.php:244
854
+ msgctxt "button label"
855
+ msgid "Agree & Activate License"
856
+ msgstr "Accepter & aktiver licens"
857
+
858
+ #: includes/i18n.php:245
859
+ msgctxt "verb"
860
+ msgid "Skip"
861
+ msgstr "Spring over"
862
+
863
+ #: includes/i18n.php:246
864
+ msgid "Click here to use the plugin anonymously"
865
+ msgstr "Klik her for at benytte pluginnet anonymt"
866
+
867
+ #: includes/i18n.php:247
868
+ msgid "Re-send activation email"
869
+ msgstr "Gensend e-mail om aktivering"
870
+
871
+ #: includes/i18n.php:248
872
+ msgid "License key"
873
+ msgstr "Licensnøgle"
874
+
875
+ #: includes/i18n.php:249
876
+ msgid "Send License Key"
877
+ msgstr "Send licensnøgle"
878
+
879
+ #: includes/i18n.php:250
880
+ msgid "Sending license key"
881
+ msgstr "Sender licensnøgle"
882
+
883
+ #: includes/i18n.php:251
884
+ msgid "Have a license key?"
885
+ msgstr "Har du en licensnøgle?"
886
+
887
+ #: includes/i18n.php:252
888
+ msgid "Don't have a license key?"
889
+ msgstr "Har du ikke en licensnøgle?"
890
+
891
+ #: includes/i18n.php:253
892
+ msgid "Can't find your license key?"
893
+ msgstr "Kan du ikke finde din licensnøgle?"
894
+
895
+ #: includes/i18n.php:254
896
+ msgid "We couldn't find your email address in the system, are you sure it's the right address?"
897
+ msgstr "We couldn't find your email address in the system, are you sure it's the right address?"
898
+
899
+ #: includes/i18n.php:255
900
+ msgid "We can't see any active licenses associated with that email address, are you sure it's the right address?"
901
+ msgstr "We can't see any active licenses associated with that email address, are you sure it's the right address?"
902
+
903
+ #: includes/i18n.php:256
904
+ msgid "Opt In"
905
+ msgstr "Tilmeld"
906
+
907
+ #: includes/i18n.php:257
908
+ msgid "Opt Out"
909
+ msgstr "Frameld"
910
+
911
+ #: includes/i18n.php:258
912
+ msgid "On second thought - I want to continue helping"
913
+ msgstr "Ved nærmere eftertanke - Jeg vil fortsætte med at hjælpe"
914
+
915
+ #: includes/i18n.php:259
916
+ msgid "Opting out..."
917
+ msgstr "Framelder..."
918
+
919
+ #: includes/i18n.php:260
920
+ msgid "Opting in..."
921
+ msgstr "Tilmelder..."
922
+
923
+ #: includes/i18n.php:261
924
+ msgid "We appreciate your help in making the %s better by letting us track some usage data."
925
+ msgstr "We appreciate your help in making the %s better by letting us track some usage data."
926
+
927
+ #: includes/i18n.php:262
928
+ msgid "Usage tracking is done in the name of making %s better. Making a better user experience, prioritizing new features, and more good things. We'd really appreciate if you'll reconsider letting us continue with the tracking."
929
+ msgstr "Usage tracking is done in the name of making %s better. Making a better user experience, prioritizing new features, and more good things. We'd really appreciate if you'll reconsider letting us continue with the tracking."
930
+
931
+ #: includes/i18n.php:263
932
+ msgid "By clicking \"Opt Out\", we will no longer be sending any data from %s to %s."
933
+ msgstr "Ved at klikke \"Frameld\" vil vi ikke længere sende data fra %s til %s."
934
+
935
+ #: includes/i18n.php:267
936
+ msgid "Screenshots"
937
+ msgstr "Skærmbilleder"
938
+
939
+ #: includes/i18n.php:268
940
+ msgid "Click to view full-size screenshot %d"
941
+ msgstr "Click to view full-size screenshot %d"
942
+
943
+ #: includes/i18n.php:272
944
+ msgid "Freemius Debug"
945
+ msgstr "Freemius Debug"
946
+
947
+ #: includes/i18n.php:273
948
+ msgctxt "as turned on"
949
+ msgid "On"
950
+ msgstr "Til"
951
+
952
+ #: includes/i18n.php:274
953
+ msgctxt "as turned off"
954
+ msgid "Off"
955
+ msgstr "Fra"
956
+
957
+ #: includes/i18n.php:275
958
+ msgctxt "as code debugging"
959
+ msgid "Debugging"
960
+ msgstr "Fejlfinding"
961
+
962
+ #: includes/i18n.php:276
963
+ msgid "Freemius State"
964
+ msgstr "Freemius tilstand"
965
+
966
+ #: includes/i18n.php:277
967
+ msgctxt "as connection was successful"
968
+ msgid "Connected"
969
+ msgstr "Forbundet"
970
+
971
+ #: includes/i18n.php:278
972
+ msgctxt "as connection blocked"
973
+ msgid "Blocked"
974
+ msgstr "Blokeret"
975
+
976
+ #: includes/i18n.php:279
977
+ msgctxt "as application program interface"
978
+ msgid "API"
979
+ msgstr "API"
980
+
981
+ #: includes/i18n.php:280
982
+ msgctxt "as software development kit versions"
983
+ msgid "SDK"
984
+ msgstr "SDK"
985
+
986
+ #: includes/i18n.php:281
987
+ msgctxt "as software development kit versions"
988
+ msgid "SDK Versions"
989
+ msgstr "SDK-versioner"
990
+
991
+ #: includes/i18n.php:282
992
+ msgctxt "as plugin folder path"
993
+ msgid "Plugin Path"
994
+ msgstr "Plugin-sti"
995
+
996
+ #: includes/i18n.php:283
997
+ msgctxt "as sdk path"
998
+ msgid "SDK Path"
999
+ msgstr "SDK-sti"
1000
+
1001
+ #: includes/i18n.php:284
1002
+ msgid "Add Ons of Plugin %s"
1003
+ msgstr "Tilføjelser til plugin %s"
1004
+
1005
+ #: includes/i18n.php:285
1006
+ msgid "Are you sure you want to delete all Freemius data?"
1007
+ msgstr "Er du sikker på, du vil slette al Freemius data?"
1008
+
1009
+ #: includes/i18n.php:286
1010
+ msgid "Actions"
1011
+ msgstr "Handlinger"
1012
+
1013
+ #: includes/i18n.php:287
1014
+ msgid "Delete All Accounts"
1015
+ msgstr "Slet alle konti"
1016
+
1017
+ #: includes/i18n.php:288
1018
+ msgid "Start Fresh"
1019
+ msgstr "Start forfra"
1020
+
1021
+ #: includes/i18n.php:289
1022
+ msgid "Clear API Cache"
1023
+ msgstr "Ryd API-cache"
1024
+
1025
+ #: includes/i18n.php:290
1026
+ msgid "Sync Data From Server"
1027
+ msgstr "Synkroniser data fra server"
1028
+
1029
+ #: includes/i18n.php:291
1030
+ msgid "Scheduled Crons"
1031
+ msgstr "Planlagte cron jobs"
1032
+
1033
+ #: includes/i18n.php:292
1034
+ msgid "Cron Type"
1035
+ msgstr "Cron Type"
1036
+
1037
+ #: includes/i18n.php:293
1038
+ msgid "Plugins & Themes Sync"
1039
+ msgstr "Synkronisering af plugins og temaer"
1040
+
1041
+ #: includes/i18n.php:294
1042
+ msgid "%s Licenses"
1043
+ msgstr "%s Licenses"
1044
+
1045
+ #: includes/i18n.php:295
1046
+ msgid "Debug Log"
1047
+ msgstr "Fejlfindingslog"
1048
+
1049
+ #: includes/i18n.php:296
1050
+ msgid "All"
1051
+ msgstr "Alle"
1052
+
1053
+ #: includes/i18n.php:297
1054
+ msgid "File"
1055
+ msgstr "Fil"
1056
+
1057
+ #: includes/i18n.php:298
1058
+ msgid "Function"
1059
+ msgstr "Funktion"
1060
+
1061
+ #: includes/i18n.php:299
1062
+ msgid "Process ID"
1063
+ msgstr "Proces-ID"
1064
+
1065
+ #: includes/i18n.php:300
1066
+ msgid "Logger"
1067
+ msgstr "Logger"
1068
+
1069
+ #: includes/i18n.php:301
1070
+ msgid "Message"
1071
+ msgstr "Besked"
1072
+
1073
+ #: includes/i18n.php:302
1074
+ msgid "Download"
1075
+ msgstr "Download"
1076
+
1077
+ #: includes/i18n.php:303
1078
+ msgid "Filter"
1079
+ msgstr "Filter"
1080
+
1081
+ #: includes/i18n.php:304
1082
+ msgid "Type"
1083
+ msgstr "Type"
1084
+
1085
+ #: includes/i18n.php:305
1086
+ msgid "All Types"
1087
+ msgstr "Alle typer"
1088
+
1089
+ #: includes/i18n.php:306
1090
+ msgid "All Requests"
1091
+ msgstr "Alle forespørgsler"
1092
+
1093
+ #: includes/i18n.php:310
1094
+ msgctxt "as congratulations"
1095
+ msgid "Congrats"
1096
+ msgstr "Tillykke"
1097
+
1098
+ #: includes/i18n.php:311
1099
+ msgctxt "exclamation"
1100
+ msgid "Oops"
1101
+ msgstr "Ups"
1102
+
1103
+ #: includes/i18n.php:312
1104
+ msgctxt "interjection expressing joy or exuberance"
1105
+ msgid "Yee-haw"
1106
+ msgstr "Yee-haw"
1107
+
1108
+ #: includes/i18n.php:313
1109
+ msgctxt ""
1110
+ msgid "W00t"
1111
+ msgstr "W00t"
1112
+
1113
+ #: includes/i18n.php:315
1114
+ msgctxt "a positive response"
1115
+ msgid "Right on"
1116
+ msgstr "Sådan"
1117
+
1118
+ #: includes/i18n.php:316
1119
+ msgctxt ""
1120
+ msgid "Hmm"
1121
+ msgstr "Hmm"
1122
+
1123
+ #: includes/i18n.php:318
1124
+ msgid "O.K"
1125
+ msgstr "O.K"
1126
+
1127
+ #: includes/i18n.php:319
1128
+ msgctxt "exclamation"
1129
+ msgid "Hey"
1130
+ msgstr "Hey"
1131
+
1132
+ #: includes/i18n.php:320
1133
+ msgctxt "advance notice of something that will need attention."
1134
+ msgid "Heads up"
1135
+ msgstr "Se her"
1136
+
1137
+ #: includes/i18n.php:325
1138
+ msgid "Seems like you got the latest release."
1139
+ msgstr "Det ser ud til, at du har den seneste udgivelse."
1140
+
1141
+ #: includes/i18n.php:326
1142
+ msgid "You are all good!"
1143
+ msgstr "Det var det!"
1144
+
1145
+ #: includes/i18n.php:327
1146
+ msgid "Sorry, we could not complete the email update. Another user with the same email is already registered."
1147
+ msgstr "Sorry, we could not complete the email update. Another user with the same email is already registered."
1148
+
1149
+ #: includes/i18n.php:328
1150
+ msgid "If you would like to give up the ownership of the %s's account to %s click the Change Ownership button."
1151
+ msgstr "If you would like to give up the ownership of the %s's account to %s click the Change Ownership button."
1152
+
1153
+ #: includes/i18n.php:329
1154
+ msgid "Your email was successfully updated. You should receive an email with confirmation instructions in few moments."
1155
+ msgstr "Your email was successfully updated. You should receive an email with confirmation instructions in few moments."
1156
+
1157
+ #: includes/i18n.php:330
1158
+ msgid "Your name was successfully updated."
1159
+ msgstr "Dit navn er blevet opdateret."
1160
+
1161
+ #: includes/i18n.php:331
1162
+ msgid "You have successfully updated your %s."
1163
+ msgstr "Opdatering af %s blev gennemført."
1164
+
1165
+ #: includes/i18n.php:332
1166
+ msgid "Please provide your full name."
1167
+ msgstr "Indtast venligst dit fulde navn."
1168
+
1169
+ #: includes/i18n.php:333
1170
+ msgid "Verification mail was just sent to %s. If you can't find it after 5 min, please check your spam box."
1171
+ msgstr "Verification mail was just sent to %s. If you can't find it after 5 min, please check your spam box."
1172
+
1173
+ #: includes/i18n.php:334
1174
+ msgid "Just letting you know that the add-ons information of %s is being pulled from an external server."
1175
+ msgstr "Just letting you know that the add-ons information of %s is being pulled from an external server."
1176
+
1177
+ #: includes/i18n.php:335
1178
+ msgid "No credit card required"
1179
+ msgstr "Betalingskort ikke påkrævet"
1180
+
1181
+ #: includes/i18n.php:336
1182
+ msgid "Premium %s version was successfully activated."
1183
+ msgstr "Premium %s version was successfully activated."
1184
+
1185
+ #: includes/i18n.php:337
1186
+ msgid "The upgrade of %s was successfully completed."
1187
+ msgstr "Opgraderingen af %s blev fuldendt."
1188
+
1189
+ #: includes/i18n.php:338
1190
+ msgid "Your account was successfully activated with the %s plan."
1191
+ msgstr "Din konto blev aktiveret med planen %s."
1192
+
1193
+ #: includes/i18n.php:339
1194
+ msgid "Download the latest %s version now"
1195
+ msgstr "Download den seneste version af %s nu"
1196
+
1197
+ #: includes/i18n.php:340
1198
+ msgid "Please follow these steps to complete the upgrade"
1199
+ msgstr "Følg venligst disse trin for at færdiggøre opgraderingen"
1200
+
1201
+ #: includes/i18n.php:341
1202
+ msgid "Download the latest %s version"
1203
+ msgstr "Download den seneste version af %s"
1204
+
1205
+ #: includes/i18n.php:342
1206
+ msgid "Download the latest version"
1207
+ msgstr "Download den seneste version"
1208
+
1209
+ #: includes/i18n.php:343
1210
+ msgid "Deactivate the free version"
1211
+ msgstr "Deaktiver den gratis version"
1212
+
1213
+ #: includes/i18n.php:344
1214
+ msgid "Upload and activate the downloaded version"
1215
+ msgstr "Upload og aktiver den downloadede version"
1216
+
1217
+ #: includes/i18n.php:345
1218
+ msgid "How to upload and activate?"
1219
+ msgstr "Upload og aktivering, hvordan?"
1220
+
1221
+ #: includes/i18n.php:346
1222
+ msgctxt "%s - product name, e.g. Facebook add-on was successfully..."
1223
+ msgid "%s Add-on was successfully purchased."
1224
+ msgstr "Betalingen for tilføjelsen %s blev gennemført."
1225
+
1226
+ #: includes/i18n.php:348
1227
+ msgid "Your %s Add-on plan was successfully upgraded."
1228
+ msgstr "Your %s Add-on plan was successfully upgraded."
1229
+
1230
+ #: includes/i18n.php:349
1231
+ msgid "Your email has been successfully verified - you are AWESOME!"
1232
+ msgstr "Your email has been successfully verified - you are AWESOME!"
1233
+
1234
+ #: includes/i18n.php:350
1235
+ msgid "Your plan was successfully upgraded."
1236
+ msgstr "Din plan er blevet opgraderet."
1237
+
1238
+ #: includes/i18n.php:351
1239
+ msgid "Your plan was successfully changed to %s."
1240
+ msgstr "Din plan er blevet ændret til %s."
1241
+
1242
+ #: includes/i18n.php:352
1243
+ msgid "Your license has expired. You can still continue using the free %s forever."
1244
+ msgstr "Your license has expired. You can still continue using the free %s forever."
1245
+
1246
+ #: includes/i18n.php:353
1247
+ msgid "Your license has been cancelled. If you think it's a mistake, please contact support."
1248
+ msgstr "Din licens er blevet annulleret. Hvis du mener, dette er en fejl, så kontakt venligst support."
1249
+
1250
+ #: includes/i18n.php:354
1251
+ msgid "Your trial has been successfully started."
1252
+ msgstr "Din prøveperiode er begyndt."
1253
+
1254
+ #: includes/i18n.php:355
1255
+ msgid "Your license was successfully activated."
1256
+ msgstr "Din licens er blevet aktiveret."
1257
+
1258
+ #: includes/i18n.php:356
1259
+ msgid "It looks like your site currently doesn't have an active license."
1260
+ msgstr "Det ser ud til, at dit websted endnu ikke har en aktiv licens."
1261
+
1262
+ #: includes/i18n.php:357
1263
+ msgid "Your license was successfully deactivated, you are back to the %s plan."
1264
+ msgstr "Din licens blev deaktiveret, du er tilbage på planen %s."
1265
+
1266
+ #: includes/i18n.php:358
1267
+ msgid "It looks like the license deactivation failed."
1268
+ msgstr "Det ser ud til, at licens-deaktiveringen mislykkedes."
1269
+
1270
+ #: includes/i18n.php:359
1271
+ msgid "It looks like the license could not be activated."
1272
+ msgstr "Det ser ud til, at licensen ikke kunne aktiveres."
1273
+
1274
+ #: includes/i18n.php:360
1275
+ msgid "Error received from the server:"
1276
+ msgstr "Fejl modtager fra serveren:"
1277
+
1278
+ #: includes/i18n.php:361
1279
+ msgid "Your trial has expired. You can still continue using all our free features."
1280
+ msgstr "Din prøveperiode er udløbet. Du kan fortsat bruge alle vores gratis funktioner."
1281
+
1282
+ #: includes/i18n.php:362
1283
+ msgid "Your plan was successfully downgraded. Your %s plan license will expire in %s."
1284
+ msgstr "Din plan blev nedgraderet. Licensen til din %s plan vil udløbe om %s."
1285
+
1286
+ #: includes/i18n.php:363
1287
+ msgid "Seems like we are having some temporary issue with your plan downgrade. Please try again in few minutes."
1288
+ msgstr "Seems like we are having some temporary issue with your plan downgrade. Please try again in few minutes."
1289
+
1290
+ #: includes/i18n.php:364
1291
+ msgid "It looks like you are not in trial mode anymore so there's nothing to cancel :)"
1292
+ msgstr "It looks like you are not in trial mode anymore so there's nothing to cancel :)"
1293
+
1294
+ #: includes/i18n.php:365
1295
+ msgid "Your %s free trial was successfully cancelled."
1296
+ msgstr "Din gratis prøveperiode for %s er blevet annulleret."
1297
+
1298
+ #: includes/i18n.php:366
1299
+ msgctxt "%s - numeric version number"
1300
+ msgid "Version %s was released."
1301
+ msgstr "Version %s er blevet udgivet."
1302
+
1303
+ #: includes/i18n.php:367
1304
+ msgid "Please download %s."
1305
+ msgstr "Download venligst %s."
1306
+
1307
+ #: includes/i18n.php:368
1308
+ msgctxt "%s - plan name, as the latest professional version here"
1309
+ msgid "the latest %s version here"
1310
+ msgstr "den seneste version af %s her"
1311
+
1312
+ #: includes/i18n.php:370
1313
+ msgid "How do you like %s so far? Test all our %s premium features with a %d-day free trial."
1314
+ msgstr "How do you like %s so far? Test all our %s premium features with a %d-day free trial."
1315
+
1316
+ #: includes/i18n.php:371
1317
+ msgctxt "call to action"
1318
+ msgid "Start free trial"
1319
+ msgstr "Start gratis prøveperiode"
1320
+
1321
+ #: includes/i18n.php:372
1322
+ msgid "Starting trial"
1323
+ msgstr "Starter prøveperiode"
1324
+
1325
+ #: includes/i18n.php:373
1326
+ msgid "Please wait"
1327
+ msgstr "Vent venligst"
1328
+
1329
+ #: includes/i18n.php:374
1330
+ msgid "Seems like we are having some temporary issue with your trial cancellation. Please try again in few minutes."
1331
+ msgstr "Seems like we are having some temporary issue with your trial cancellation. Please try again in few minutes."
1332
+
1333
+ #: includes/i18n.php:375
1334
+ msgid "You already utilized a trial before."
1335
+ msgstr "Du har allerede brugt din prøveperiode."
1336
+
1337
+ #: includes/i18n.php:376
1338
+ msgid "You are already running the %s in a trial mode."
1339
+ msgstr "You are already running the %s in a trial mode."
1340
+
1341
+ #: includes/i18n.php:377
1342
+ msgid "Plan %s do not exist, therefore, can't start a trial."
1343
+ msgstr "Plan %s eksisterer ikke og kan derfor ikke starte prøveperiode."
1344
+
1345
+ #: includes/i18n.php:378
1346
+ msgid "Plan %s does not support a trial period."
1347
+ msgstr "Plan %s understøtter ikke en prøveperiode."
1348
+
1349
+ #: includes/i18n.php:379
1350
+ msgid "None of the %s's plans supports a trial period."
1351
+ msgstr "None of the %s's plans supports a trial period."
1352
+
1353
+ #: includes/i18n.php:380
1354
+ msgid "Unexpected API error. Please contact the %s's author with the following error."
1355
+ msgstr "Unexpected API error. Please contact the %s's author with the following error."
1356
+
1357
+ #: includes/i18n.php:381
1358
+ msgid "No commitment for %s days - cancel anytime!"
1359
+ msgstr "Ingen bindinger i %s dage - annuller når som helst!"
1360
+
1361
+ #: includes/i18n.php:382
1362
+ msgid "Your license has expired. You can still continue using all the %s features, but you'll need to renew your license to continue getting updates and support."
1363
+ msgstr "Din licens er udløbet. Du kan stadig benytte alle funktionerne i %s, men du bliver nødt til at fornye din licens for at få opdateringer og support."
1364
+
1365
+ #: includes/i18n.php:383
1366
+ msgid "Couldn't activate %s."
1367
+ msgstr "Kunne ikke aktivere %s."
1368
+
1369
+ #: includes/i18n.php:384
1370
+ msgid "Please contact us with the following message:"
1371
+ msgstr "Kontakt os venligst med følgende besked:"
1372
+
1373
+ #: includes/i18n.php:385
1374
+ msgid "It looks like you are still on the %s plan. If you did upgrade or change your plan, it's probably an issue on our side - sorry."
1375
+ msgstr "It looks like you are still on the %s plan. If you did upgrade or change your plan, it's probably an issue on our side - sorry."
1376
+
1377
+ #: includes/i18n.php:386
1378
+ msgid "Please contact us here"
1379
+ msgstr "Kontakt os her"
1380
+
1381
+ #: includes/i18n.php:387
1382
+ msgid "I have upgraded my account but when I try to Sync the License, the plan remains %s."
1383
+ msgstr "I have upgraded my account but when I try to Sync the License, the plan remains %s."
1384
+
1385
+ #: includes/i18n.php:390
1386
+ msgid "From unknown reason, the API connectivity test failed."
1387
+ msgstr "From unknown reason, the API connectivity test failed."
1388
+
1389
+ #: includes/i18n.php:391
1390
+ msgid "It's probably a temporary issue on our end. Just to be sure, with your permission, would it be o.k to run another connectivity test?"
1391
+ msgstr "It's probably a temporary issue on our end. Just to be sure, with your permission, would it be o.k to run another connectivity test?"
1392
+
1393
+ #: includes/i18n.php:392
1394
+ msgid "We use PHP cURL library for the API calls, which is a very common library and usually installed and activated out of the box. Unfortunately, cURL is not activated (or disabled) on your server."
1395
+ msgstr "We use PHP cURL library for the API calls, which is a very common library and usually installed and activated out of the box. Unfortunately, cURL is not activated (or disabled) on your server."
1396
+
1397
+ #: includes/i18n.php:393
1398
+ msgid "Disabled method(s):"
1399
+ msgstr "Disabled method(s):"
1400
+
1401
+ #: includes/i18n.php:394
1402
+ msgid "From unknown reason, CloudFlare, the firewall we use, blocks the connection."
1403
+ msgstr "Af en ukendt årsag blokerer CloudFlare, vores firewall, forbindelsen."
1404
+
1405
+ #: includes/i18n.php:395
1406
+ msgctxt "as pluginX requires an access to our API"
1407
+ msgid "%s requires an access to our API."
1408
+ msgstr "%s påkræver adgang til vores API."
1409
+
1410
+ #: includes/i18n.php:397
1411
+ msgid "It looks like your server is using Squid ACL (access control lists), which blocks the connection."
1412
+ msgstr "Det ser ud til, at din server benytter Squid ACL (access control lists), som blokerer forbindelsen."
1413
+
1414
+ #: includes/i18n.php:398
1415
+ msgid "I don't know what is Squid or ACL, help me!"
1416
+ msgstr "Jeg ved ikke hvad Squid eller ACL er. Hjælp mig!"
1417
+
1418
+ #: includes/i18n.php399, includes/i18n.php:403
1419
+ msgid "We'll make sure to contact your hosting company and resolve the issue. You will get a follow-up email to %s once we have an update."
1420
+ msgstr "Vi vil kontakte din udbyder og løse problemet. Når vi har opdatinger i sagen, vil vi følge op med en email til dig på %s."
1421
+
1422
+ #: includes/i18n.php:400
1423
+ msgid "I'm a system administrator"
1424
+ msgstr "Jeg er en system-administrator"
1425
+
1426
+ #: includes/i18n.php:401
1427
+ msgid "Great, please whitelist the following domains: %s. Once you are done, deactivate the %s and activate it again."
1428
+ msgstr "Great, please whitelist the following domains: %s. Once you are done, deactivate the %s and activate it again."
1429
+
1430
+ #: includes/i18n.php:402
1431
+ msgid "I don't know what is cURL or how to install it, help me!"
1432
+ msgstr "Jeg ved ikke hvad cURL er, eller hvordan jeg installerer det. Hjælp mig!"
1433
+
1434
+ #: includes/i18n.php:404
1435
+ msgid "Great, please install cURL and enable it in your php.ini file. In addition, search for the 'disable_functions' directive in your php.ini file and remove any disabled methods starting with 'curl_'. To make sure it was successfully activated, use 'phpinfo()'. Once activated, deactivate the %s and reactivate it back again."
1436
+ msgstr "Great, please install cURL and enable it in your php.ini file. In addition, search for the 'disable_functions' directive in your php.ini file and remove any disabled methods starting with 'curl_'. To make sure it was successfully activated, use 'phpinfo()'. Once activated, deactivate the %s and reactivate it back again."
1437
+
1438
+ #: includes/i18n.php:405
1439
+ msgid "We are sure it's an issue on our side and more than happy to resolve it for you ASAP if you give us a chance."
1440
+ msgstr "We are sure it's an issue on our side and more than happy to resolve it for you ASAP if you give us a chance."
1441
+
1442
+ #: includes/i18n.php:406
1443
+ msgid "Sorry for the inconvenience and we are here to help if you give us a chance."
1444
+ msgstr "Vi beklager ulejligheden, og vi er her for at hjælpe, hvis du giver os chancen."
1445
+
1446
+ #: includes/i18n.php:407
1447
+ msgid "Yes - I'm giving you a chance to fix it"
1448
+ msgstr "Ja - jeg giver jer en chance for at rette det"
1449
+
1450
+ #: includes/i18n.php:408
1451
+ msgid "We will do our best to whitelist your server and resolve this issue ASAP. You will get a follow-up email to %s once we have an update."
1452
+ msgstr "We will do our best to whitelist your server and resolve this issue ASAP. You will get a follow-up email to %s once we have an update."
1453
+
1454
+ #: includes/i18n.php:409
1455
+ msgid "Let's try your previous version"
1456
+ msgstr "Lad os prøve din forrige version"
1457
+
1458
+ #: includes/i18n.php:410
1459
+ msgid "Uninstall this version and install the previous one."
1460
+ msgstr "Afinstaller denne version og installer den forrige."
1461
+
1462
+ #: includes/i18n.php:411
1463
+ msgid "That's exhausting, please deactivate"
1464
+ msgstr "Det er udmattende, deaktiver venligst"
1465
+
1466
+ #: includes/i18n.php:412
1467
+ msgid "We feel your frustration and sincerely apologize for the inconvenience. Hope to see you again in the future."
1468
+ msgstr "We feel your frustration and sincerely apologize for the inconvenience. Hope to see you again in the future."
1469
+
1470
+ #: includes/i18n.php:413
1471
+ msgid "Thank for giving us the chance to fix it! A message was just sent to our technical staff. We will get back to you as soon as we have an update to %s. Appreciate your patience."
1472
+ msgstr "Thank for giving us the chance to fix it! A message was just sent to our technical staff. We will get back to you as soon as we have an update to %s. Appreciate your patience."
1473
+
1474
+ #: includes/i18n.php:414
1475
+ msgctxt "%1s - plugin title, %2s - API domain"
1476
+ msgid "Your server is blocking the access to Freemius' API, which is crucial for %1s synchronization. Please contact your host to whitelist %2s"
1477
+ msgstr "Your server is blocking the access to Freemius' API, which is crucial for %1s synchronization. Please contact your host to whitelist %2s"
1478
+
1479
+ #: includes/i18n.php:416
1480
+ msgid "It seems like one of the authentication parameters is wrong. Update your Public Key, Secret Key & User ID, and try again."
1481
+ msgstr "It seems like one of the authentication parameters is wrong. Update your Public Key, Secret Key & User ID, and try again."
1482
+
1483
+ #: includes/i18n.php:419
1484
+ msgid "Please check your mailbox, you should receive an email via %s to confirm the ownership change. From security reasons, you must confirm the change within the next 15 min. If you cannot find the email, please check your spam folder."
1485
+ msgstr "Please check your mailbox, you should receive an email via %s to confirm the ownership change. From security reasons, you must confirm the change within the next 15 min. If you cannot find the email, please check your spam folder."
1486
+
1487
+ #: includes/i18n.php:420
1488
+ msgid "Thanks for confirming the ownership change. An email was just sent to %s for final approval."
1489
+ msgstr "Thanks for confirming the ownership change. An email was just sent to %s for final approval."
1490
+
1491
+ #: includes/i18n.php:421
1492
+ msgid "%s is the new owner of the account."
1493
+ msgstr "%s er den nye ejer af kontoen."
1494
+
1495
+ #: includes/i18n.php:423
1496
+ msgctxt "addonX cannot run without pluginY"
1497
+ msgid "%s cannot run without %s."
1498
+ msgstr "%s virker ikke uden %s."
1499
+
1500
+ #: includes/i18n.php:425
1501
+ msgctxt "addonX cannot run..."
1502
+ msgid "%s cannot run without the plugin."
1503
+ msgstr "%s virker ikke uden pluginnet."
1504
+
1505
+ #: includes/i18n.php:426
1506
+ msgctxt "pluginX activation was successfully..."
1507
+ msgid "%s activation was successfully completed."
1508
+ msgstr "Aktivering af %s blev gennemført."
1509
+
1510
+ #: includes/i18n.php:428
1511
+ msgctxt "Plugin installer section title"
1512
+ msgid "Features & Pricing"
1513
+ msgstr "Funktioner og priser"
1514
+
1515
+ #: includes/i18n.php:429
1516
+ msgid "Add-on must be deployed to WordPress.org or Freemius."
1517
+ msgstr "Add-on must be deployed to WordPress.org or Freemius."
1518
+
1519
+ #: includes/i18n.php:430
1520
+ msgid "Paid add-on must be deployed to Freemius."
1521
+ msgstr "Paid add-on must be deployed to Freemius."
1522
+
1523
+ #: includes/i18n.php:434
1524
+ msgid "%s is a premium only add-on. You have to purchase a license first before activating the plugin."
1525
+ msgstr "%s is a premium only add-on. You have to purchase a license first before activating the plugin."
1526
+
1527
+ #: includes/i18n.php:435
1528
+ msgid "%s free trial was successfully cancelled. Since the add-on is premium only it was automatically deactivated. If you like to use it in the future, you'll have to purchase a license."
1529
+ msgstr "%s free trial was successfully cancelled. Since the add-on is premium only it was automatically deactivated. If you like to use it in the future, you'll have to purchase a license."
1530
+
1531
+ #: includes/i18n.php:440
1532
+ msgctxt "as every month"
1533
+ msgid "Monthly"
1534
+ msgstr "Månedligt"
1535
+
1536
+ #: includes/i18n.php:441
1537
+ msgctxt "as monthly period"
1538
+ msgid "mo"
1539
+ msgstr "md"
1540
+
1541
+ #: includes/i18n.php:442
1542
+ msgctxt "as once a year"
1543
+ msgid "Annual"
1544
+ msgstr "Årligt"
1545
+
1546
+ #: includes/i18n.php:443
1547
+ msgctxt "as once a year"
1548
+ msgid "Annually"
1549
+ msgstr "Årligt"
1550
+
1551
+ #: includes/i18n.php:444
1552
+ msgctxt "as once a year"
1553
+ msgid "Once"
1554
+ msgstr "Engangsbeløb"
1555
+
1556
+ #: includes/i18n.php:445
1557
+ msgctxt "as annual period"
1558
+ msgid "year"
1559
+ msgstr "år"
1560
+
1561
+ #: includes/i18n.php:446
1562
+ msgid "Lifetime"
1563
+ msgstr "Livstid"
1564
+
1565
+ #: includes/i18n.php:447
1566
+ msgctxt "e.g. the best product"
1567
+ msgid "Best"
1568
+ msgstr "Bedste"
1569
+
1570
+ #: includes/i18n.php:448
1571
+ msgctxt "e.g. billed monthly"
1572
+ msgid "Billed %s"
1573
+ msgstr "Faktureret %s"
1574
+
1575
+ #: includes/i18n.php:449
1576
+ msgctxt "as a discount of $5 or 10%"
1577
+ msgid "Save %s"
1578
+ msgstr "Spar %s"
1579
+
1580
+ #: includes/i18n.php:451
1581
+ msgid "View details"
1582
+ msgstr "Vis detaljer"
1583
+
1584
+ #: includes/i18n.php:455
1585
+ msgctxt "button label"
1586
+ msgid "Approve & Start Trial"
1587
+ msgstr "Godkend & start prøveperiode"
1588
+
1589
+ #: includes/i18n.php:457
1590
+ msgid "You are 1-click away from starting your %1$s-day free trial of the %2$s plan."
1591
+ msgstr "Du er 1 klik fra at begynde din %1$s dages gratis prøveperiode af planen %2$s."
1592
+
1593
+ #: includes/i18n.php:459
1594
+ msgid "For compliance with the WordPress.org guidelines, before we start the trial we ask that you opt-in with your user and non-sensitive site information, allowing the %s to periodically send data to %s to check for version updates and to validate your trial."
1595
+ msgstr "For compliance with the WordPress.org guidelines, before we start the trial we ask that you opt-in with your user and non-sensitive site information, allowing the %s to periodically send data to %s to check for version updates and to validate your trial."
1596
+
1597
+ #: includes/i18n.php:465
1598
+ msgid "Business name"
1599
+ msgstr "Firmanavn"
1600
+
1601
+ #: includes/i18n.php:466
1602
+ msgid "Tax / VAT ID"
1603
+ msgstr "Moms / VAT ID"
1604
+
1605
+ #: includes/i18n.php:467
1606
+ msgid "Address Line %d"
1607
+ msgstr "Adresselinje %d"
1608
+
1609
+ #: includes/i18n.php:468
1610
+ msgid "Country"
1611
+ msgstr "Land"
1612
+
1613
+ #: includes/i18n.php:469
1614
+ msgid "Select Country"
1615
+ msgstr "Vælg land"
1616
+
1617
+ #: includes/i18n.php:470
1618
+ msgid "City"
1619
+ msgstr "By"
1620
+
1621
+ #: includes/i18n.php:471
1622
+ msgid "Town"
1623
+ msgstr "By"
1624
+
1625
+ #: includes/i18n.php:472
1626
+ msgid "State"
1627
+ msgstr "Stat"
1628
+
1629
+ #: includes/i18n.php:473
1630
+ msgid "Province"
1631
+ msgstr "Provins"
1632
+
1633
+ #: includes/i18n.php:474
1634
+ msgid "ZIP / Postal Code"
1635
+ msgstr "ZIP / Postnummer"
1636
+
1637
+ #: includes/i18n.php:479
1638
+ msgid "Installing plugin: %s"
1639
+ msgstr "Installing plugin: %s"
1640
+
1641
+ #: includes/i18n.php:480
1642
+ msgid "Automatic Installation"
1643
+ msgstr "Automatic Installation"
1644
+
1645
+ #: includes/i18n.php:482
1646
+ msgid "%s sec"
1647
+ msgstr "%s sec"
1648
+
1649
+ #: includes/i18n.php:483
1650
+ msgid "An automated download and installation of %s (paid version) from %s will start in %s. If you would like to do it manually - click the cancellation button now."
1651
+ msgstr "An automated download and installation of %s (paid version) from %s will start in %s. If you would like to do it manually - click the cancellation button now."
1652
+
1653
+ #: includes/i18n.php:484
1654
+ msgid "The installation process has started and may take a few minutes to complete. Please wait until it is done - do not refresh this page."
1655
+ msgstr "The installation process has started and may take a few minutes to complete. Please wait until it is done - do not refresh this page."
1656
+
1657
+ #: includes/i18n.php:485
1658
+ msgid "Cancel Installation"
1659
+ msgstr "Cancel Installation"
1660
+
1661
+ #: includes/i18n.php:486
1662
+ msgid "The remote plugin package does not contain a folder with the desired slug and renaming did not work."
1663
+ msgstr "The remote plugin package does not contain a folder with the desired slug and renaming did not work."
1664
+
1665
+ #: includes/i18n.php:487
1666
+ msgid "Invalid module ID."
1667
+ msgstr "Invalid module ID."
1668
+
1669
+ #: includes/i18n.php:488
1670
+ msgid "Auto installation only works for opted-in users."
1671
+ msgstr "Auto installation only works for opted-in users."
1672
+
1673
+ #: includes/i18n.php:489
1674
+ msgid "Premium version already active."
1675
+ msgstr "Premium version already active."
1676
+
1677
+ #: includes/i18n.php:490
1678
+ msgid "Premium add-on version already installed."
1679
+ msgstr "Premium add-on version already installed."
1680
+
1681
+ #: includes/i18n.php:491
1682
+ msgid "You do not have a valid license to access the premium version."
1683
+ msgstr "You do not have a valid license to access the premium version."
1684
+
1685
+ #: includes/i18n.php:492
1686
+ msgid "Plugin is a \"Serviceware\" which means it does not have a premium code version."
1687
+ msgstr "Plugin is a \"Serviceware\" which means it does not have a premium code version."
1688
+
1689
+ #: includes/i18n.php:496
1690
+ msgid "Secure HTTPS %s page, running from an external domain"
1691
+ msgstr "Secure HTTPS %s page, running from an external domain"
1692
+
1693
+ #: includes/i18n.php:497
1694
+ msgid "PCI compliant"
1695
+ msgstr "PCI compliant"
1696
+
1697
+ #: includes/i18n.php:498
1698
+ msgid "View paid features"
1699
+ msgstr "View paid features"
1700
+
1701
+ #: includes/i18n.php:512
1702
+ msgctxt "Plugin installer section title"
1703
+ msgid "Description"
1704
+ msgstr "Beskrivelse"
1705
+
1706
+ #: includes/i18n.php:513
1707
+ msgctxt "Plugin installer section title"
1708
+ msgid "Installation"
1709
+ msgstr "Installering"
1710
+
1711
+ #: includes/i18n.php:514
1712
+ msgctxt "Plugin installer section title"
1713
+ msgid "FAQ"
1714
+ msgstr "FAQ"
1715
+
1716
+ #: includes/i18n.php:515
1717
+ msgctxt "Plugin installer section title"
1718
+ msgid "Changelog"
1719
+ msgstr "Ændringslog"
1720
+
1721
+ #: includes/i18n.php:516
1722
+ msgctxt "Plugin installer section title"
1723
+ msgid "Reviews"
1724
+ msgstr "Anmeldelser"
1725
+
1726
+ #: includes/i18n.php:517
1727
+ msgctxt "Plugin installer section title"
1728
+ msgid "Other Notes"
1729
+ msgstr "Andre noter"
1730
+
1731
+ #: includes/i18n.php:519
1732
+ msgid "%s star"
1733
+ msgstr "%s stjerne"
1734
+
1735
+ #: includes/i18n.php:521
1736
+ msgid "%s stars"
1737
+ msgstr "%s stjerner"
1738
+
1739
+ #: includes/i18n.php:523
1740
+ msgid "%s rating"
1741
+ msgstr "%s vurdering"
1742
+
1743
+ #: includes/i18n.php:525
1744
+ msgid "%s ratings"
1745
+ msgstr "%s vurderinger"
1746
+
1747
+ #: includes/i18n.php:527
1748
+ msgid "%s time"
1749
+ msgstr "%s gang"
1750
+
1751
+ #: includes/i18n.php:529
1752
+ msgid "%s times"
1753
+ msgstr "%s gange"
1754
+
1755
+ #: includes/i18n.php:531
1756
+ msgid "Click to see reviews that provided a rating of %s"
1757
+ msgstr "Click to see reviews that provided a rating of %s"
1758
+
1759
+ #: includes/i18n.php:532
1760
+ msgid "Last Updated"
1761
+ msgstr "Senest opdateret"
1762
+
1763
+ #: includes/i18n.php:533
1764
+ msgid "Requires WordPress Version:"
1765
+ msgstr "Kræver WordPress-version:"
1766
+
1767
+ #: includes/i18n.php:534
1768
+ msgctxt "as the plugin author"
1769
+ msgid "Author:"
1770
+ msgstr "Forfatter:"
1771
+
1772
+ #: includes/i18n.php:535
1773
+ msgid "Compatible up to:"
1774
+ msgstr "Kompatibel op til:"
1775
+
1776
+ #: includes/i18n.php:536
1777
+ msgid "Downloaded:"
1778
+ msgstr "Hentet:"
1779
+
1780
+ #: includes/i18n.php:537
1781
+ msgid "WordPress.org Plugin Page"
1782
+ msgstr "WordPress.org Plugin-side"
1783
+
1784
+ #: includes/i18n.php:538
1785
+ msgid "Plugin Homepage"
1786
+ msgstr "Plugin-websted"
1787
+
1788
+ #: includes/i18n.php:539
1789
+ msgid "Donate to this plugin"
1790
+ msgstr "Donér til dette plugin"
1791
+
1792
+ #: includes/i18n.php:540
1793
+ msgid "Average Rating"
1794
+ msgstr "Gennemsnitlig vurdering"
1795
+
1796
+ #: includes/i18n.php:541
1797
+ msgid "based on %s"
1798
+ msgstr "baseret på %s"
1799
+
1800
+ #: includes/i18n.php:542
1801
+ msgid "Warning:"
1802
+ msgstr "Advarsel:"
1803
+
1804
+ #: includes/i18n.php:543
1805
+ msgid "Contributors"
1806
+ msgstr "Bidragsydere"
1807
+
1808
+ #: includes/i18n.php:544
1809
+ msgid "Plugin Install"
1810
+ msgstr "Plugin Install"
1811
+
1812
+ #: includes/i18n.php:545
1813
+ msgid "This plugin has not been tested with your current version of WordPress."
1814
+ msgstr "This plugin has not been tested with your current version of WordPress."
1815
+
1816
+ #: includes/i18n.php:546
1817
+ msgid "This plugin has not been marked as compatible with your version of WordPress."
1818
+ msgstr "This plugin has not been marked as compatible with your version of WordPress."
1819
+
1820
+ #: includes/i18n.php:547
1821
+ msgid "Newer Version (%s) Installed"
1822
+ msgstr "Nyere version (%s) installeret"
1823
+
1824
+ #: includes/i18n.php:548
1825
+ msgid "Latest Version Installed"
1826
+ msgstr "Seneste version installeret"
freemius/languages/freemius-en.po CHANGED
@@ -1,1824 +1,1824 @@
1
- # Copyright (C) 2017 freemius
2
- # This file is distributed under the same license as the freemius package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: freemius\n"
6
- "Report-Msgid-Bugs-To: https://github.com/Freemius/wordpress-sdk/issues\n"
7
- "POT-Creation-Date: \n"
8
- "PO-Revision-Date: \n"
9
- "Last-Translator: Vova Feldman <vova@freemius.com>\n"
10
- "Language: \n"
11
- "Language-Team: Freemius Team <admin@freemius.com>\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
- "Content-Transfer-Encoding: 8bit\n"
14
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "MIME-Version: 1.0\n"
16
- "X-Poedit-Basepath: ..\n"
17
- "X-Poedit-KeywordsList: _fs_text;_fs_echo;_fs_esc_attr;_fs_esc_attr_echo;_fs_esc_html;_fs_esc_html_echo;_fs_x:1,2c;_fs_ex:1,2c;_fs_esc_attr_x:1,2c;_fs_esc_html_x:1,2c;_fs_n:1,2;_fs_n_noop:1,2;_fs_nx:1,2,4c;_fs_nx_noop:1,2,3c\n"
18
- "X-Poedit-SearchPath-0: .\n"
19
- "X-Poedit-SearchPathExcluded-0: *.js\n"
20
- "X-Poedit-SourceCharset: UTF-8\n"
21
-
22
- #: includes/i18n.php:37
23
- msgid "Account"
24
- msgstr "Account"
25
-
26
- #: includes/i18n.php:38
27
- msgid "Add-On"
28
- msgstr "Add-On"
29
-
30
- #: includes/i18n.php:39
31
- msgid "Contact Us"
32
- msgstr "Contact Us"
33
-
34
- #: includes/i18n.php:40
35
- msgid "Contact Support"
36
- msgstr "Contact Support"
37
-
38
- #: includes/i18n.php:41
39
- msgid "Change Ownership"
40
- msgstr "Change Ownership"
41
-
42
- #: includes/i18n.php:42
43
- msgid "Support"
44
- msgstr "Support"
45
-
46
- #: includes/i18n.php:43
47
- msgid "Support Forum"
48
- msgstr "Support Forum"
49
-
50
- #: includes/i18n.php:44
51
- msgid "Add-Ons"
52
- msgstr "Add-Ons"
53
-
54
- #: includes/i18n.php:45
55
- msgctxt "verb"
56
- msgid "Upgrade"
57
- msgstr "Upgrade"
58
-
59
- #: includes/i18n.php:46
60
- msgid "Awesome"
61
- msgstr "Awesome"
62
-
63
- #: includes/i18n.php:47
64
- msgctxt "noun"
65
- msgid "Pricing"
66
- msgstr "Pricing"
67
-
68
- #: includes/i18n.php:48
69
- msgctxt "noun"
70
- msgid "Price"
71
- msgstr "Price"
72
-
73
- #: includes/i18n.php:49
74
- msgid "Unlimited Updates"
75
- msgstr "Unlimited Updates"
76
-
77
- #: includes/i18n.php:50
78
- msgctxt "verb"
79
- msgid "Downgrade"
80
- msgstr "Downgrade"
81
-
82
- #: includes/i18n.php:51
83
- msgctxt "verb"
84
- msgid "Cancel Subscription"
85
- msgstr "Cancel Subscription"
86
-
87
- #: includes/i18n.php:52
88
- msgid "Cancel Trial"
89
- msgstr "Cancel Trial"
90
-
91
- #: includes/i18n.php:53
92
- msgid "Free Trial"
93
- msgstr "Free Trial"
94
-
95
- #: includes/i18n.php:54
96
- msgid "Start my free %s"
97
- msgstr "Start my free %s"
98
-
99
- #: includes/i18n.php:55
100
- msgid "No commitment for %s - cancel anytime"
101
- msgstr "No commitment for %s - cancel anytime"
102
-
103
- #: includes/i18n.php:56
104
- msgid "After your free %s, pay as little as %s"
105
- msgstr "After your free %s, pay as little as %s"
106
-
107
- #: includes/i18n.php:57
108
- msgid "Details"
109
- msgstr "Details"
110
-
111
- #: includes/i18n.php:58
112
- msgid "Account Details"
113
- msgstr "Account Details"
114
-
115
- #: includes/i18n.php:59
116
- msgctxt "verb"
117
- msgid "Delete"
118
- msgstr "Delete"
119
-
120
- #: includes/i18n.php:60
121
- msgctxt "verb"
122
- msgid "Show"
123
- msgstr "Show"
124
-
125
- #: includes/i18n.php:61
126
- msgctxt "verb"
127
- msgid "Hide"
128
- msgstr "Hide"
129
-
130
- #: includes/i18n.php:62
131
- msgctxt "verb"
132
- msgid "Edit"
133
- msgstr "Edit"
134
-
135
- #: includes/i18n.php:63
136
- msgctxt "verb"
137
- msgid "Update"
138
- msgstr "Update"
139
-
140
- #: includes/i18n.php:64
141
- msgid "Date"
142
- msgstr "Date"
143
-
144
- #: includes/i18n.php:65
145
- msgid "Amount"
146
- msgstr "Amount"
147
-
148
- #: includes/i18n.php:66
149
- msgid "Invoice"
150
- msgstr "Invoice"
151
-
152
- #: includes/i18n.php:67
153
- msgid "Billing"
154
- msgstr "Billing"
155
-
156
- #: includes/i18n.php:68
157
- msgid "Payments"
158
- msgstr "Payments"
159
-
160
- #: includes/i18n.php:69
161
- msgid "Delete Account"
162
- msgstr "Delete Account"
163
-
164
- #: includes/i18n.php:70
165
- msgctxt "as close a window"
166
- msgid "Dismiss"
167
- msgstr "Dismiss"
168
-
169
- #: includes/i18n.php:71
170
- msgctxt "as product pricing plan"
171
- msgid "Plan"
172
- msgstr "Plan"
173
-
174
- #: includes/i18n.php:72
175
- msgid "Change Plan"
176
- msgstr "Change Plan"
177
-
178
- #: includes/i18n.php:73
179
- msgctxt "as download professional version"
180
- msgid "Download %s Version"
181
- msgstr "Download %s Version"
182
-
183
- #: includes/i18n.php:74
184
- msgctxt "as download professional version now"
185
- msgid "Download %s version now"
186
- msgstr "Download %s version now"
187
-
188
- #: includes/i18n.php:75
189
- msgctxt "as download latest version"
190
- msgid "Download Latest"
191
- msgstr "Download Latest"
192
-
193
- #: includes/i18n.php:76
194
- msgctxt "E.g. you have a professional license."
195
- msgid "You have a %s license."
196
- msgstr "You have a %s license."
197
-
198
- #: includes/i18n.php:77
199
- msgid "New"
200
- msgstr "New"
201
-
202
- #: includes/i18n.php:78
203
- msgid "Free"
204
- msgstr "Free"
205
-
206
- #: includes/i18n.php:79
207
- msgctxt "as trial plan"
208
- msgid "Trial"
209
- msgstr "Trial"
210
-
211
- #: includes/i18n.php:80
212
- msgctxt "as starting a trial plan"
213
- msgid "Start Trial"
214
- msgstr "Start Trial"
215
-
216
- #: includes/i18n.php:81
217
- msgctxt "verb"
218
- msgid "Purchase"
219
- msgstr "Purchase"
220
-
221
- #: includes/i18n.php:82
222
- msgid "Purchase License"
223
- msgstr "Purchase License"
224
-
225
- #: includes/i18n.php:83
226
- msgctxt "verb"
227
- msgid "Buy"
228
- msgstr "Buy"
229
-
230
- #: includes/i18n.php:84
231
- msgid "Buy License"
232
- msgstr "Buy License"
233
-
234
- #: includes/i18n.php:85
235
- msgid "Single Site License"
236
- msgstr "Single Site License"
237
-
238
- #: includes/i18n.php:86
239
- msgid "Unlimited Licenses"
240
- msgstr "Unlimited Licenses"
241
-
242
- #: includes/i18n.php:87
243
- msgid "Up to %s Sites"
244
- msgstr "Up to %s Sites"
245
-
246
- #: includes/i18n.php:88
247
- msgid "%sRenew your license now%s to access version %s features and support."
248
- msgstr "%sRenew your license now%s to access version %s features and support."
249
-
250
- #: includes/i18n.php:89
251
- msgid "Enter the email address you've used for the upgrade below and we will resend you the license key."
252
- msgstr "Enter the email address you've used for the upgrade below and we will resend you the license key."
253
-
254
- #: includes/i18n.php:90
255
- msgctxt "e.g. Professional Plan"
256
- msgid "%s Plan"
257
- msgstr "%s Plan"
258
-
259
- #: includes/i18n.php:91
260
- msgid "You are just one step away - %s"
261
- msgstr "You are just one step away - %s"
262
-
263
- #: includes/i18n.php:92
264
- msgctxt "%s - plugin name. As complete \"Jetpack\" activation now"
265
- msgid "Complete \"%s\" Activation Now"
266
- msgstr "Complete \"%s\" Activation Now"
267
-
268
- #: includes/i18n.php:94
269
- msgid "We made a few tweaks to the %s, %s"
270
- msgstr "We made a few tweaks to the %s, %s"
271
-
272
- #: includes/i18n.php:95
273
- msgid "Opt-in to make \"%s\" Better!"
274
- msgstr "Opt-in to make \"%s\" Better!"
275
-
276
- #: includes/i18n.php:96
277
- msgid "Error"
278
- msgstr "Error"
279
-
280
- #: includes/i18n.php:97
281
- msgid "Freemius SDK couldn't find the plugin's main file. Please contact sdk@freemius.com with the current error."
282
- msgstr "Freemius SDK couldn't find the plugin's main file. Please contact sdk@freemius.com with the current error."
283
-
284
- #: includes/i18n.php:100
285
- msgctxt "as expiration date"
286
- msgid "Expiration"
287
- msgstr "Expiration"
288
-
289
- #: includes/i18n.php:101
290
- msgctxt "as software license"
291
- msgid "License"
292
- msgstr "License"
293
-
294
- #: includes/i18n.php:102
295
- msgid "not verified"
296
- msgstr "not verified"
297
-
298
- #: includes/i18n.php:103
299
- msgid "Verify Email"
300
- msgstr "Verify Email"
301
-
302
- #: includes/i18n.php:104
303
- msgctxt "e.g. expires in 2 months"
304
- msgid "Expires in %s"
305
- msgstr "Expires in %s"
306
-
307
- #: includes/i18n.php:105
308
- msgctxt "e.g. auto renews in 2 months"
309
- msgid "Auto renews in %s"
310
- msgstr "Auto renews in %s"
311
-
312
- #: includes/i18n.php:106
313
- msgid "No expiration"
314
- msgstr "No expiration"
315
-
316
- #: includes/i18n.php:107
317
- msgid "Expired"
318
- msgstr "Expired"
319
-
320
- #: includes/i18n.php:108
321
- msgid "Cancelled"
322
- msgstr "Cancelled"
323
-
324
- #: includes/i18n.php:109
325
- msgctxt "e.g. In 2 hours"
326
- msgid "In %s"
327
- msgstr "In %s"
328
-
329
- #: includes/i18n.php:110
330
- msgctxt "e.g. 2 min ago"
331
- msgid "%s ago"
332
- msgstr "%s ago"
333
-
334
- #: includes/i18n.php:112
335
- msgid "%s or higher"
336
- msgstr "%s or higher"
337
-
338
- #: includes/i18n.php:113
339
- msgctxt "as plugin version"
340
- msgid "Version"
341
- msgstr "Version"
342
-
343
- #: includes/i18n.php:114
344
- msgid "Name"
345
- msgstr "Name"
346
-
347
- #: includes/i18n.php:115
348
- msgid "Email"
349
- msgstr "Email"
350
-
351
- #: includes/i18n.php:116
352
- msgid "Email address"
353
- msgstr "Email address"
354
-
355
- #: includes/i18n.php:117
356
- msgid "Verified"
357
- msgstr "Verified"
358
-
359
- #: includes/i18n.php:118
360
- msgid "Module"
361
- msgstr "Module"
362
-
363
- #: includes/i18n.php:119
364
- msgid "Module Type"
365
- msgstr "Module Type"
366
-
367
- #: includes/i18n.php:120
368
- msgid "Plugin"
369
- msgstr "Plugin"
370
-
371
- #: includes/i18n.php:121
372
- msgid "Plugins"
373
- msgstr "Plugins"
374
-
375
- #: includes/i18n.php:122
376
- msgid "Theme"
377
- msgstr "Theme"
378
-
379
- #: includes/i18n.php:123
380
- msgid "Themes"
381
- msgstr "Themes"
382
-
383
- #: includes/i18n.php:124
384
- msgctxt "as file/folder path"
385
- msgid "Path"
386
- msgstr "Path"
387
-
388
- #: includes/i18n.php:125
389
- msgid "Title"
390
- msgstr "Title"
391
-
392
- #: includes/i18n.php:126
393
- msgid "Free version"
394
- msgstr "Free version"
395
-
396
- #: includes/i18n.php:127
397
- msgid "Premium version"
398
- msgstr "Premium version"
399
-
400
- #: includes/i18n.php:128
401
- msgctxt "as WP plugin slug"
402
- msgid "Slug"
403
- msgstr "Slug"
404
-
405
- #: includes/i18n.php:129
406
- msgid "ID"
407
- msgstr "ID"
408
-
409
- #: includes/i18n.php:130
410
- msgid "Users"
411
- msgstr "Users"
412
-
413
- #: includes/i18n.php:131
414
- msgid "%s Installs"
415
- msgstr "%s Installs"
416
-
417
- #: includes/i18n.php:132
418
- msgctxt "like websites"
419
- msgid "Sites"
420
- msgstr "Sites"
421
-
422
- #: includes/i18n.php:133
423
- msgid "User ID"
424
- msgstr "User ID"
425
-
426
- #: includes/i18n.php:134
427
- msgid "Site ID"
428
- msgstr "Site ID"
429
-
430
- #: includes/i18n.php:135
431
- msgid "Public Key"
432
- msgstr "Public Key"
433
-
434
- #: includes/i18n.php:136
435
- msgid "Secret Key"
436
- msgstr "Secret Key"
437
-
438
- #: includes/i18n.php:137
439
- msgctxt "as secret encryption key missing"
440
- msgid "No Secret"
441
- msgstr "No Secret"
442
-
443
- #: includes/i18n.php:138
444
- msgid "No ID"
445
- msgstr "No ID"
446
-
447
- #: includes/i18n.php:139
448
- msgctxt "as synchronize license"
449
- msgid "Sync License"
450
- msgstr "Sync License"
451
-
452
- #: includes/i18n.php:140
453
- msgctxt "as synchronize"
454
- msgid "Sync"
455
- msgstr "Sync"
456
-
457
- #: includes/i18n.php:141
458
- msgid "Activate License"
459
- msgstr "Activate License"
460
-
461
- #: includes/i18n.php:142
462
- msgid "Activate Free Version"
463
- msgstr "Activate Free Version"
464
-
465
- #: includes/i18n.php:143
466
- msgid "Please enter the license key that you received in the email right after the purchase:"
467
- msgstr "Please enter the license key that you received in the email right after the purchase:"
468
-
469
- #: includes/i18n.php:144
470
- msgid "Activating license..."
471
- msgstr "Activating license..."
472
-
473
- #: includes/i18n.php:145
474
- msgid "Change License"
475
- msgstr "Change License"
476
-
477
- #: includes/i18n.php:146
478
- msgid "Update License"
479
- msgstr "Update License"
480
-
481
- #: includes/i18n.php:147
482
- msgid "Deactivate License"
483
- msgstr "Deactivate License"
484
-
485
- #: includes/i18n.php:148
486
- msgid "Activate"
487
- msgstr "Activate"
488
-
489
- #: includes/i18n.php:149
490
- msgid "Deactivate"
491
- msgstr "Deactivate"
492
-
493
- #: includes/i18n.php:150
494
- msgid "Skip & Deactivate"
495
- msgstr "Skip & Deactivate"
496
-
497
- #: includes/i18n.php:151
498
- msgid "Skip & %s"
499
- msgstr "Skip & %s"
500
-
501
- #: includes/i18n.php:152
502
- msgid "No - just deactivate"
503
- msgstr "No - just deactivate"
504
-
505
- #: includes/i18n.php:153
506
- msgid "Yes - do your thing"
507
- msgstr "Yes - do your thing"
508
-
509
- #: includes/i18n.php:154
510
- msgctxt "active mode"
511
- msgid "Active"
512
- msgstr "Active"
513
-
514
- #: includes/i18n.php:155
515
- msgctxt "is active mode?"
516
- msgid "Is Active"
517
- msgstr "Is Active"
518
-
519
- #: includes/i18n.php:156
520
- msgid "Install Now"
521
- msgstr "Install Now"
522
-
523
- #: includes/i18n.php:157
524
- msgid "Install Update Now"
525
- msgstr "Install Update Now"
526
-
527
- #: includes/i18n.php:158
528
- msgid "More information about %s"
529
- msgstr "More information about %s"
530
-
531
- #: includes/i18n.php:159
532
- msgid "Localhost"
533
- msgstr "Localhost"
534
-
535
- #: includes/i18n.php:160
536
- msgctxt "as activate Professional plan"
537
- msgid "Activate %s Plan"
538
- msgstr "Activate %s Plan"
539
-
540
- #: includes/i18n.php:161
541
- msgctxt "as 5 licenses left"
542
- msgid "%s left"
543
- msgstr "%s left"
544
-
545
- #: includes/i18n.php:162
546
- msgid "Last license"
547
- msgstr "Last license"
548
-
549
- #: includes/i18n.php:163
550
- msgid "What is your %s?"
551
- msgstr "What is your %s?"
552
-
553
- #: includes/i18n.php:164
554
- msgid "Activate this add-on"
555
- msgstr "Activate this add-on"
556
-
557
- #: includes/i18n.php:165
558
- msgid "Deactivating your license will block all premium features, but will enable you to activate the license on another site. Are you sure you want to proceed?"
559
- msgstr "Deactivating your license will block all premium features, but will enable you to activate the license on another site. Are you sure you want to proceed?"
560
-
561
- #: includes/i18n.php:166
562
- msgid "Deleting the account will automatically deactivate your %s plan license so you can use it on other sites. If you want to terminate the recurring payments as well, click the \"Cancel\" button, and first \"Downgrade\" your account. Are you sure you would like to continue with the deletion?"
563
- msgstr "Deleting the account will automatically deactivate your %s plan license so you can use it on other sites. If you want to terminate the recurring payments as well, click the \"Cancel\" button, and first \"Downgrade\" your account. Are you sure you would like to continue with the deletion?"
564
-
565
- #: includes/i18n.php:167
566
- msgid "Deletion is not temporary. Only delete if you no longer want to use this %s anymore. Are you sure you would like to continue with the deletion?"
567
- msgstr "Deletion is not temporary. Only delete if you no longer want to use this %s anymore. Are you sure you would like to continue with the deletion?"
568
-
569
- #: includes/i18n.php:168
570
- msgid "Downgrading your plan will immediately stop all future recurring payments and your %s plan license will expire in %s."
571
- msgstr "Downgrading your plan will immediately stop all future recurring payments and your %s plan license will expire in %s."
572
-
573
- #: includes/i18n.php:169
574
- msgid "Cancelling the trial will immediately block access to all premium features. Are you sure?"
575
- msgstr "Cancelling the trial will immediately block access to all premium features. Are you sure?"
576
-
577
- #: includes/i18n.php:170
578
- msgid "You can still enjoy all %s features but you will not have access to %s updates and support."
579
- msgstr "You can still enjoy all %s features but you will not have access to %s updates and support."
580
-
581
- #: includes/i18n.php:171
582
- msgid "Once your license expires you can still use the Free version but you will NOT have access to the %s features."
583
- msgstr "Once your license expires you can still use the Free version but you will NOT have access to the %s features."
584
-
585
- #: includes/i18n.php:172
586
- msgid "Are you sure you want to proceed?"
587
- msgstr "Are you sure you want to proceed?"
588
-
589
- #: includes/i18n.php:175
590
- msgid "Add Ons for %s"
591
- msgstr "Add Ons for %s"
592
-
593
- #: includes/i18n.php:176
594
- msgid "We could'nt load the add-ons list. It's probably an issue on our side, please try to come back in few minutes."
595
- msgstr "We could'nt load the add-ons list. It's probably an issue on our side, please try to come back in few minutes."
596
-
597
- #: includes/i18n.php:178
598
- msgid "Anonymous feedback"
599
- msgstr "Anonymous feedback"
600
-
601
- #: includes/i18n.php:179
602
- msgid "Quick feedback"
603
- msgstr "Quick feedback"
604
-
605
- #: includes/i18n.php:180
606
- msgid "If you have a moment, please let us know why you are %s"
607
- msgstr "If you have a moment, please let us know why you are %s"
608
-
609
- #: includes/i18n.php:181
610
- msgid "deactivating"
611
- msgstr "deactivating"
612
-
613
- #: includes/i18n.php:182
614
- msgid "Deactivation"
615
- msgstr "Deactivation"
616
-
617
- #: includes/i18n.php:183
618
- msgid "Theme Switch"
619
- msgstr "Theme Switch"
620
-
621
- #: includes/i18n.php:184
622
- msgid "switching"
623
- msgstr "switching"
624
-
625
- #: includes/i18n.php:185
626
- msgid "Switch"
627
- msgstr "Switch"
628
-
629
- #: includes/i18n.php:186
630
- msgid "Activate %s"
631
- msgstr "Activate %s"
632
-
633
- #: includes/i18n.php:187
634
- msgid "Yes - %s"
635
- msgstr "Yes - %s"
636
-
637
- #: includes/i18n.php:188
638
- msgid "Submit & %s"
639
- msgstr "Submit & %s"
640
-
641
- #: includes/i18n.php:189
642
- msgid "Cancel"
643
- msgstr "Cancel"
644
-
645
- #: includes/i18n.php:190
646
- msgid "I no longer need the %s"
647
- msgstr "I no longer need the %s"
648
-
649
- #: includes/i18n.php:191
650
- msgid "I found a better %s"
651
- msgstr "I found a better %s"
652
-
653
- #: includes/i18n.php:192
654
- msgid "I only needed the %s for a short period"
655
- msgstr "I only needed the %s for a short period"
656
-
657
- #: includes/i18n.php:193
658
- msgid "The %s broke my site"
659
- msgstr "The %s broke my site"
660
-
661
- #: includes/i18n.php:194
662
- msgid "The %s suddenly stopped working"
663
- msgstr "The %s suddenly stopped working"
664
-
665
- #: includes/i18n.php:195
666
- msgid "I can't pay for it anymore"
667
- msgstr "I can't pay for it anymore"
668
-
669
- #: includes/i18n.php:196
670
- msgid "It's a temporary deactivation. I'm just debugging an issue."
671
- msgstr "It's a temporary deactivation. I'm just debugging an issue."
672
-
673
- #: includes/i18n.php:197
674
- msgid "It's a temporary %s. I'm just debugging an issue."
675
- msgstr "It's a temporary %s. I'm just debugging an issue."
676
-
677
- #: includes/i18n.php:198
678
- msgctxt "the text of the \"other\" reason for deactivating the module that is shown in the modal box."
679
- msgid "Other"
680
- msgstr "Other"
681
-
682
- #: includes/i18n.php:200
683
- msgid "Kindly tell us the reason so we can improve."
684
- msgstr "Kindly tell us the reason so we can improve."
685
-
686
- #: includes/i18n.php:201
687
- msgid "What's the %s's name?"
688
- msgstr "What's the %s's name?"
689
-
690
- #: includes/i18n.php:202
691
- msgid "What price would you feel comfortable paying?"
692
- msgstr "What price would you feel comfortable paying?"
693
-
694
- #: includes/i18n.php:203
695
- msgid "I couldn't understand how to make it work"
696
- msgstr "I couldn't understand how to make it work"
697
-
698
- #: includes/i18n.php:204
699
- msgid "The %s is great, but I need specific feature that you don't support"
700
- msgstr "The %s is great, but I need specific feature that you don't support"
701
-
702
- #: includes/i18n.php:205
703
- msgid "The %s is not working"
704
- msgstr "The %s is not working"
705
-
706
- #: includes/i18n.php:206
707
- msgid "It's not what I was looking for"
708
- msgstr "It's not what I was looking for"
709
-
710
- #: includes/i18n.php:207
711
- msgid "The %s didn't work as expected"
712
- msgstr "The %s didn't work as expected"
713
-
714
- #: includes/i18n.php:208
715
- msgid "What feature?"
716
- msgstr "What feature?"
717
-
718
- #: includes/i18n.php:209
719
- msgid "Kindly share what didn't work so we can fix it for future users..."
720
- msgstr "Kindly share what didn't work so we can fix it for future users..."
721
-
722
- #: includes/i18n.php:210
723
- msgid "What you've been looking for?"
724
- msgstr "What you've been looking for?"
725
-
726
- #: includes/i18n.php:211
727
- msgid "What did you expect?"
728
- msgstr "What did you expect?"
729
-
730
- #: includes/i18n.php:212
731
- msgid "The %s didn't work"
732
- msgstr "The %s didn't work"
733
-
734
- #: includes/i18n.php:213
735
- msgid "I don't like to share my information with you"
736
- msgstr "I don't like to share my information with you"
737
-
738
- #: includes/i18n.php:214
739
- msgid "You might have missed it, but you don't have to share any data and can just %s the opt-in."
740
- msgstr "You might have missed it, but you don't have to share any data and can just %s the opt-in."
741
-
742
- #: includes/i18n.php:218
743
- msgctxt "greeting"
744
- msgid "Hey %s,"
745
- msgstr "Hey %s,"
746
-
747
- #: includes/i18n.php:219
748
- msgctxt "a greeting. E.g. Thanks John!"
749
- msgid "Thanks %s!"
750
- msgstr "Thanks %s!"
751
-
752
- #: includes/i18n.php:220
753
- msgid "Never miss an important update - opt-in to our security and feature updates notifications, and non-sensitive diagnostic tracking with %4$s."
754
- msgstr "Never miss an important update - opt-in to our security and feature updates notifications, and non-sensitive diagnostic tracking with %4$s."
755
-
756
- #: includes/i18n.php:221
757
- msgid "Please help us improve %1$s! If you opt-in, some data about your usage of %1$s will be sent to %4$s. If you skip this, that's okay! %1$s will still work just fine."
758
- msgstr "Please help us improve %1$s! If you opt-in, some data about your usage of %1$s will be sent to %4$s. If you skip this, that's okay! %1$s will still work just fine."
759
-
760
- #: includes/i18n.php:222
761
- msgid "You should receive an activation email for %s to your mailbox at %s. Please make sure you click the activation button in that email to %s."
762
- msgstr "You should receive an activation email for %s to your mailbox at %s. Please make sure you click the activation button in that email to %s."
763
-
764
- #: includes/i18n.php:223
765
- msgid "complete the install"
766
- msgstr "complete the install"
767
-
768
- #: includes/i18n.php:224
769
- msgid "start the trial"
770
- msgstr "start the trial"
771
-
772
- #: includes/i18n.php:225
773
- msgid "Thanks for purchasing %s! To get started, please enter your license key:"
774
- msgstr "Thanks for purchasing %s! To get started, please enter your license key:"
775
-
776
- #: includes/i18n.php:226
777
- msgid "The %1$s will be periodically sending data to %2$s to check for security and feature updates, and verify the validity of your license."
778
- msgstr "The %1$s will be periodically sending data to %2$s to check for security and feature updates, and verify the validity of your license."
779
-
780
- #: includes/i18n.php:227
781
- msgid "What permissions are being granted?"
782
- msgstr "What permissions are being granted?"
783
-
784
- #: includes/i18n.php:228
785
- msgid "Your Profile Overview"
786
- msgstr "Your Profile Overview"
787
-
788
- #: includes/i18n.php:229
789
- msgid "Name and email address"
790
- msgstr "Name and email address"
791
-
792
- #: includes/i18n.php:230
793
- msgid "Your Site Overview"
794
- msgstr "Your Site Overview"
795
-
796
- #: includes/i18n.php:231
797
- msgid "Site URL, WP version, PHP info, plugins & themes"
798
- msgstr "Site URL, WP version, PHP info, plugins & themes"
799
-
800
- #: includes/i18n.php:232
801
- msgid "Current %s Events"
802
- msgstr "Current %s Events"
803
-
804
- #: includes/i18n.php:233
805
- msgid "Activation, deactivation and uninstall"
806
- msgstr "Activation, deactivation and uninstall"
807
-
808
- #: includes/i18n.php:234
809
- msgid "Plugins & Themes"
810
- msgstr "Plugins & Themes"
811
-
812
- #: includes/i18n.php:235
813
- msgid "Titles, versions and state."
814
- msgstr "Titles, versions and state."
815
-
816
- #: includes/i18n.php:236
817
- msgid "Admin Notices"
818
- msgstr "Admin Notices"
819
-
820
- #: includes/i18n.php:237
821
- msgid "Newsletter"
822
- msgstr "Newsletter"
823
-
824
- #: includes/i18n.php:238
825
- msgid "Updates, announcements, marketing, no spam"
826
- msgstr "Updates, announcements, marketing, no spam"
827
-
828
- #: includes/i18n.php:239
829
- msgid "Privacy Policy"
830
- msgstr "Privacy Policy"
831
-
832
- #: includes/i18n.php:240
833
- msgid "Terms of Service"
834
- msgstr "Terms of Service"
835
-
836
- #: includes/i18n.php:241
837
- msgctxt "as activating plugin"
838
- msgid "Activating"
839
- msgstr "Activating"
840
-
841
- #: includes/i18n.php:242
842
- msgctxt "as in the process of sending an email"
843
- msgid "Sending email"
844
- msgstr "Sending email"
845
-
846
- #: includes/i18n.php:243
847
- msgctxt "button label"
848
- msgid "Allow & Continue"
849
- msgstr "Allow & Continue"
850
-
851
- #: includes/i18n.php:244
852
- msgctxt "button label"
853
- msgid "Agree & Activate License"
854
- msgstr "Agree & Activate License"
855
-
856
- #: includes/i18n.php:245
857
- msgctxt "verb"
858
- msgid "Skip"
859
- msgstr "Skip"
860
-
861
- #: includes/i18n.php:246
862
- msgid "Click here to use the plugin anonymously"
863
- msgstr "Click here to use the plugin anonymously"
864
-
865
- #: includes/i18n.php:247
866
- msgid "Re-send activation email"
867
- msgstr "Re-send activation email"
868
-
869
- #: includes/i18n.php:248
870
- msgid "License key"
871
- msgstr "License key"
872
-
873
- #: includes/i18n.php:249
874
- msgid "Send License Key"
875
- msgstr "Send License Key"
876
-
877
- #: includes/i18n.php:250
878
- msgid "Sending license key"
879
- msgstr "Sending license key"
880
-
881
- #: includes/i18n.php:251
882
- msgid "Have a license key?"
883
- msgstr "Have a license key?"
884
-
885
- #: includes/i18n.php:252
886
- msgid "Don't have a license key?"
887
- msgstr "Don't have a license key?"
888
-
889
- #: includes/i18n.php:253
890
- msgid "Can't find your license key?"
891
- msgstr "Can't find your license key?"
892
-
893
- #: includes/i18n.php:254
894
- msgid "We couldn't find your email address in the system, are you sure it's the right address?"
895
- msgstr "We couldn't find your email address in the system, are you sure it's the right address?"
896
-
897
- #: includes/i18n.php:255
898
- msgid "We can't see any active licenses associated with that email address, are you sure it's the right address?"
899
- msgstr "We can't see any active licenses associated with that email address, are you sure it's the right address?"
900
-
901
- #: includes/i18n.php:256
902
- msgid "Opt In"
903
- msgstr "Opt In"
904
-
905
- #: includes/i18n.php:257
906
- msgid "Opt Out"
907
- msgstr "Opt Out"
908
-
909
- #: includes/i18n.php:258
910
- msgid "On second thought - I want to continue helping"
911
- msgstr "On second thought - I want to continue helping"
912
-
913
- #: includes/i18n.php:259
914
- msgid "Opting out..."
915
- msgstr "Opting out..."
916
-
917
- #: includes/i18n.php:260
918
- msgid "Opting in..."
919
- msgstr "Opting in..."
920
-
921
- #: includes/i18n.php:261
922
- msgid "We appreciate your help in making the %s better by letting us track some usage data."
923
- msgstr "We appreciate your help in making the %s better by letting us track some usage data."
924
-
925
- #: includes/i18n.php:262
926
- msgid "Usage tracking is done in the name of making %s better. Making a better user experience, prioritizing new features, and more good things. We'd really appreciate if you'll reconsider letting us continue with the tracking."
927
- msgstr "Usage tracking is done in the name of making %s better. Making a better user experience, prioritizing new features, and more good things. We'd really appreciate if you'll reconsider letting us continue with the tracking."
928
-
929
- #: includes/i18n.php:263
930
- msgid "By clicking \"Opt Out\", we will no longer be sending any data from %s to %s."
931
- msgstr "By clicking \"Opt Out\", we will no longer be sending any data from %s to %s."
932
-
933
- #: includes/i18n.php:267
934
- msgid "Screenshots"
935
- msgstr "Screenshots"
936
-
937
- #: includes/i18n.php:268
938
- msgid "Click to view full-size screenshot %d"
939
- msgstr "Click to view full-size screenshot %d"
940
-
941
- #: includes/i18n.php:272
942
- msgid "Freemius Debug"
943
- msgstr "Freemius Debug"
944
-
945
- #: includes/i18n.php:273
946
- msgctxt "as turned on"
947
- msgid "On"
948
- msgstr "On"
949
-
950
- #: includes/i18n.php:274
951
- msgctxt "as turned off"
952
- msgid "Off"
953
- msgstr "Off"
954
-
955
- #: includes/i18n.php:275
956
- msgctxt "as code debugging"
957
- msgid "Debugging"
958
- msgstr "Debugging"
959
-
960
- #: includes/i18n.php:276
961
- msgid "Freemius State"
962
- msgstr "Freemius State"
963
-
964
- #: includes/i18n.php:277
965
- msgctxt "as connection was successful"
966
- msgid "Connected"
967
- msgstr "Connected"
968
-
969
- #: includes/i18n.php:278
970
- msgctxt "as connection blocked"
971
- msgid "Blocked"
972
- msgstr "Blocked"
973
-
974
- #: includes/i18n.php:279
975
- msgctxt "as application program interface"
976
- msgid "API"
977
- msgstr "API"
978
-
979
- #: includes/i18n.php:280
980
- msgctxt "as software development kit versions"
981
- msgid "SDK"
982
- msgstr "SDK"
983
-
984
- #: includes/i18n.php:281
985
- msgctxt "as software development kit versions"
986
- msgid "SDK Versions"
987
- msgstr "SDK Versions"
988
-
989
- #: includes/i18n.php:282
990
- msgctxt "as plugin folder path"
991
- msgid "Plugin Path"
992
- msgstr "Plugin Path"
993
-
994
- #: includes/i18n.php:283
995
- msgctxt "as sdk path"
996
- msgid "SDK Path"
997
- msgstr "SDK Path"
998
-
999
- #: includes/i18n.php:284
1000
- msgid "Add Ons of Plugin %s"
1001
- msgstr "Add Ons of Plugin %s"
1002
-
1003
- #: includes/i18n.php:285
1004
- msgid "Are you sure you want to delete all Freemius data?"
1005
- msgstr "Are you sure you want to delete all Freemius data?"
1006
-
1007
- #: includes/i18n.php:286
1008
- msgid "Actions"
1009
- msgstr "Actions"
1010
-
1011
- #: includes/i18n.php:287
1012
- msgid "Delete All Accounts"
1013
- msgstr "Delete All Accounts"
1014
-
1015
- #: includes/i18n.php:288
1016
- msgid "Start Fresh"
1017
- msgstr "Start Fresh"
1018
-
1019
- #: includes/i18n.php:289
1020
- msgid "Clear API Cache"
1021
- msgstr "Clear API Cache"
1022
-
1023
- #: includes/i18n.php:290
1024
- msgid "Sync Data From Server"
1025
- msgstr "Sync Data From Server"
1026
-
1027
- #: includes/i18n.php:291
1028
- msgid "Scheduled Crons"
1029
- msgstr "Scheduled Crons"
1030
-
1031
- #: includes/i18n.php:292
1032
- msgid "Cron Type"
1033
- msgstr "Cron Type"
1034
-
1035
- #: includes/i18n.php:293
1036
- msgid "Plugins & Themes Sync"
1037
- msgstr "Plugins & Themes Sync"
1038
-
1039
- #: includes/i18n.php:294
1040
- msgid "%s Licenses"
1041
- msgstr "%s Licenses"
1042
-
1043
- #: includes/i18n.php:295
1044
- msgid "Debug Log"
1045
- msgstr "Debug Log"
1046
-
1047
- #: includes/i18n.php:296
1048
- msgid "All"
1049
- msgstr "All"
1050
-
1051
- #: includes/i18n.php:297
1052
- msgid "File"
1053
- msgstr "File"
1054
-
1055
- #: includes/i18n.php:298
1056
- msgid "Function"
1057
- msgstr "Function"
1058
-
1059
- #: includes/i18n.php:299
1060
- msgid "Process ID"
1061
- msgstr "Process ID"
1062
-
1063
- #: includes/i18n.php:300
1064
- msgid "Logger"
1065
- msgstr "Logger"
1066
-
1067
- #: includes/i18n.php:301
1068
- msgid "Message"
1069
- msgstr "Message"
1070
-
1071
- #: includes/i18n.php:302
1072
- msgid "Download"
1073
- msgstr "Download"
1074
-
1075
- #: includes/i18n.php:303
1076
- msgid "Filter"
1077
- msgstr "Filter"
1078
-
1079
- #: includes/i18n.php:304
1080
- msgid "Type"
1081
- msgstr "Type"
1082
-
1083
- #: includes/i18n.php:305
1084
- msgid "All Types"
1085
- msgstr "All Types"
1086
-
1087
- #: includes/i18n.php:306
1088
- msgid "All Requests"
1089
- msgstr "All Requests"
1090
-
1091
- #: includes/i18n.php:310
1092
- msgctxt "as congratulations"
1093
- msgid "Congrats"
1094
- msgstr "Congrats"
1095
-
1096
- #: includes/i18n.php:311
1097
- msgctxt "exclamation"
1098
- msgid "Oops"
1099
- msgstr "Oops"
1100
-
1101
- #: includes/i18n.php:312
1102
- msgctxt "interjection expressing joy or exuberance"
1103
- msgid "Yee-haw"
1104
- msgstr "Yee-haw"
1105
-
1106
- #: includes/i18n.php:313
1107
- msgctxt "(especially in electronic communication) used to express elation, enthusiasm, or triumph."
1108
- msgid "W00t"
1109
- msgstr "W00t"
1110
-
1111
- #: includes/i18n.php:315
1112
- msgctxt "a positive response"
1113
- msgid "Right on"
1114
- msgstr "Right on"
1115
-
1116
- #: includes/i18n.php:316
1117
- msgctxt "something somebody says when they are thinking about what you have just said. "
1118
- msgid "Hmm"
1119
- msgstr "Hmm"
1120
-
1121
- #: includes/i18n.php:318
1122
- msgid "O.K"
1123
- msgstr "O.K"
1124
-
1125
- #: includes/i18n.php:319
1126
- msgctxt "exclamation"
1127
- msgid "Hey"
1128
- msgstr "Hey"
1129
-
1130
- #: includes/i18n.php:320
1131
- msgctxt "advance notice of something that will need attention."
1132
- msgid "Heads up"
1133
- msgstr "Heads up"
1134
-
1135
- #: includes/i18n.php:325
1136
- msgid "Seems like you got the latest release."
1137
- msgstr "Seems like you got the latest release."
1138
-
1139
- #: includes/i18n.php:326
1140
- msgid "You are all good!"
1141
- msgstr "You are all good!"
1142
-
1143
- #: includes/i18n.php:327
1144
- msgid "Sorry, we could not complete the email update. Another user with the same email is already registered."
1145
- msgstr "Sorry, we could not complete the email update. Another user with the same email is already registered."
1146
-
1147
- #: includes/i18n.php:328
1148
- msgid "If you would like to give up the ownership of the %s's account to %s click the Change Ownership button."
1149
- msgstr "If you would like to give up the ownership of the %s's account to %s click the Change Ownership button."
1150
-
1151
- #: includes/i18n.php:329
1152
- msgid "Your email was successfully updated. You should receive an email with confirmation instructions in few moments."
1153
- msgstr "Your email was successfully updated. You should receive an email with confirmation instructions in few moments."
1154
-
1155
- #: includes/i18n.php:330
1156
- msgid "Your name was successfully updated."
1157
- msgstr "Your name was successfully updated."
1158
-
1159
- #: includes/i18n.php:331
1160
- msgid "You have successfully updated your %s."
1161
- msgstr "You have successfully updated your %s."
1162
-
1163
- #: includes/i18n.php:332
1164
- msgid "Please provide your full name."
1165
- msgstr "Please provide your full name."
1166
-
1167
- #: includes/i18n.php:333
1168
- msgid "Verification mail was just sent to %s. If you can't find it after 5 min, please check your spam box."
1169
- msgstr "Verification mail was just sent to %s. If you can't find it after 5 min, please check your spam box."
1170
-
1171
- #: includes/i18n.php:334
1172
- msgid "Just letting you know that the add-ons information of %s is being pulled from an external server."
1173
- msgstr "Just letting you know that the add-ons information of %s is being pulled from an external server."
1174
-
1175
- #: includes/i18n.php:335
1176
- msgid "No credit card required"
1177
- msgstr "No credit card required"
1178
-
1179
- #: includes/i18n.php:336
1180
- msgid "Premium %s version was successfully activated."
1181
- msgstr "Premium %s version was successfully activated."
1182
-
1183
- #: includes/i18n.php:337
1184
- msgid "The upgrade of %s was successfully completed."
1185
- msgstr "The upgrade of %s was successfully completed."
1186
-
1187
- #: includes/i18n.php:338
1188
- msgid "Your account was successfully activated with the %s plan."
1189
- msgstr "Your account was successfully activated with the %s plan."
1190
-
1191
- #: includes/i18n.php:339
1192
- msgid "Download the latest %s version now"
1193
- msgstr "Download the latest %s version now"
1194
-
1195
- #: includes/i18n.php:340
1196
- msgid "Please follow these steps to complete the upgrade"
1197
- msgstr "Please follow these steps to complete the upgrade"
1198
-
1199
- #: includes/i18n.php:341
1200
- msgid "Download the latest %s version"
1201
- msgstr "Download the latest %s version"
1202
-
1203
- #: includes/i18n.php:342
1204
- msgid "Download the latest version"
1205
- msgstr "Download the latest version"
1206
-
1207
- #: includes/i18n.php:343
1208
- msgid "Deactivate the free version"
1209
- msgstr "Deactivate the free version"
1210
-
1211
- #: includes/i18n.php:344
1212
- msgid "Upload and activate the downloaded version"
1213
- msgstr "Upload and activate the downloaded version"
1214
-
1215
- #: includes/i18n.php:345
1216
- msgid "How to upload and activate?"
1217
- msgstr "How to upload and activate?"
1218
-
1219
- #: includes/i18n.php:346
1220
- msgctxt "%s - product name, e.g. Facebook add-on was successfully..."
1221
- msgid "%s Add-on was successfully purchased."
1222
- msgstr "%s Add-on was successfully purchased."
1223
-
1224
- #: includes/i18n.php:348
1225
- msgid "Your %s Add-on plan was successfully upgraded."
1226
- msgstr "Your %s Add-on plan was successfully upgraded."
1227
-
1228
- #: includes/i18n.php:349
1229
- msgid "Your email has been successfully verified - you are AWESOME!"
1230
- msgstr "Your email has been successfully verified - you are AWESOME!"
1231
-
1232
- #: includes/i18n.php:350
1233
- msgid "Your plan was successfully upgraded."
1234
- msgstr "Your plan was successfully upgraded."
1235
-
1236
- #: includes/i18n.php:351
1237
- msgid "Your plan was successfully changed to %s."
1238
- msgstr "Your plan was successfully changed to %s."
1239
-
1240
- #: includes/i18n.php:352
1241
- msgid "Your license has expired. You can still continue using the free %s forever."
1242
- msgstr "Your license has expired. You can still continue using the free %s forever."
1243
-
1244
- #: includes/i18n.php:353
1245
- msgid "Your license has been cancelled. If you think it's a mistake, please contact support."
1246
- msgstr "Your license has been cancelled. If you think it's a mistake, please contact support."
1247
-
1248
- #: includes/i18n.php:354
1249
- msgid "Your trial has been successfully started."
1250
- msgstr "Your trial has been successfully started."
1251
-
1252
- #: includes/i18n.php:355
1253
- msgid "Your license was successfully activated."
1254
- msgstr "Your license was successfully activated."
1255
-
1256
- #: includes/i18n.php:356
1257
- msgid "It looks like your site currently doesn't have an active license."
1258
- msgstr "It looks like your site currently doesn't have an active license."
1259
-
1260
- #: includes/i18n.php:357
1261
- msgid "Your license was successfully deactivated, you are back to the %s plan."
1262
- msgstr "Your license was successfully deactivated, you are back to the %s plan."
1263
-
1264
- #: includes/i18n.php:358
1265
- msgid "It looks like the license deactivation failed."
1266
- msgstr "It looks like the license deactivation failed."
1267
-
1268
- #: includes/i18n.php:359
1269
- msgid "It looks like the license could not be activated."
1270
- msgstr "It looks like the license could not be activated."
1271
-
1272
- #: includes/i18n.php:360
1273
- msgid "Error received from the server:"
1274
- msgstr "Error received from the server:"
1275
-
1276
- #: includes/i18n.php:361
1277
- msgid "Your trial has expired. You can still continue using all our free features."
1278
- msgstr "Your trial has expired. You can still continue using all our free features."
1279
-
1280
- #: includes/i18n.php:362
1281
- msgid "Your plan was successfully downgraded. Your %s plan license will expire in %s."
1282
- msgstr "Your plan was successfully downgraded. Your %s plan license will expire in %s."
1283
-
1284
- #: includes/i18n.php:363
1285
- msgid "Seems like we are having some temporary issue with your plan downgrade. Please try again in few minutes."
1286
- msgstr "Seems like we are having some temporary issue with your plan downgrade. Please try again in few minutes."
1287
-
1288
- #: includes/i18n.php:364
1289
- msgid "It looks like you are not in trial mode anymore so there's nothing to cancel :)"
1290
- msgstr "It looks like you are not in trial mode anymore so there's nothing to cancel :)"
1291
-
1292
- #: includes/i18n.php:365
1293
- msgid "Your %s free trial was successfully cancelled."
1294
- msgstr "Your %s free trial was successfully cancelled."
1295
-
1296
- #: includes/i18n.php:366
1297
- msgctxt "%s - numeric version number"
1298
- msgid "Version %s was released."
1299
- msgstr "Version %s was released."
1300
-
1301
- #: includes/i18n.php:367
1302
- msgid "Please download %s."
1303
- msgstr "Please download %s."
1304
-
1305
- #: includes/i18n.php:368
1306
- msgctxt "%s - plan name, as the latest professional version here"
1307
- msgid "the latest %s version here"
1308
- msgstr "the latest %s version here"
1309
-
1310
- #: includes/i18n.php:370
1311
- msgid "How do you like %s so far? Test all our %s premium features with a %d-day free trial."
1312
- msgstr "How do you like %s so far? Test all our %s premium features with a %d-day free trial."
1313
-
1314
- #: includes/i18n.php:371
1315
- msgctxt "call to action"
1316
- msgid "Start free trial"
1317
- msgstr "Start free trial"
1318
-
1319
- #: includes/i18n.php:372
1320
- msgid "Starting trial"
1321
- msgstr "Starting trial"
1322
-
1323
- #: includes/i18n.php:373
1324
- msgid "Please wait"
1325
- msgstr "Please wait"
1326
-
1327
- #: includes/i18n.php:374
1328
- msgid "Seems like we are having some temporary issue with your trial cancellation. Please try again in few minutes."
1329
- msgstr "Seems like we are having some temporary issue with your trial cancellation. Please try again in few minutes."
1330
-
1331
- #: includes/i18n.php:375
1332
- msgid "You already utilized a trial before."
1333
- msgstr "You already utilized a trial before."
1334
-
1335
- #: includes/i18n.php:376
1336
- msgid "You are already running the %s in a trial mode."
1337
- msgstr "You are already running the %s in a trial mode."
1338
-
1339
- #: includes/i18n.php:377
1340
- msgid "Plan %s do not exist, therefore, can't start a trial."
1341
- msgstr "Plan %s do not exist, therefore, can't start a trial."
1342
-
1343
- #: includes/i18n.php:378
1344
- msgid "Plan %s does not support a trial period."
1345
- msgstr "Plan %s does not support a trial period."
1346
-
1347
- #: includes/i18n.php:379
1348
- msgid "None of the %s's plans supports a trial period."
1349
- msgstr "None of the %s's plans supports a trial period."
1350
-
1351
- #: includes/i18n.php:380
1352
- msgid "Unexpected API error. Please contact the %s's author with the following error."
1353
- msgstr "Unexpected API error. Please contact the %s's author with the following error."
1354
-
1355
- #: includes/i18n.php:381
1356
- msgid "No commitment for %s days - cancel anytime!"
1357
- msgstr "No commitment for %s days - cancel anytime!"
1358
-
1359
- #: includes/i18n.php:382
1360
- msgid "Your license has expired. You can still continue using all the %s features, but you'll need to renew your license to continue getting updates and support."
1361
- msgstr "Your license has expired. You can still continue using all the %s features, but you'll need to renew your license to continue getting updates and support."
1362
-
1363
- #: includes/i18n.php:383
1364
- msgid "Couldn't activate %s."
1365
- msgstr "Couldn't activate %s."
1366
-
1367
- #: includes/i18n.php:384
1368
- msgid "Please contact us with the following message:"
1369
- msgstr "Please contact us with the following message:"
1370
-
1371
- #: includes/i18n.php:385
1372
- msgid "It looks like you are still on the %s plan. If you did upgrade or change your plan, it's probably an issue on our side - sorry."
1373
- msgstr "It looks like you are still on the %s plan. If you did upgrade or change your plan, it's probably an issue on our side - sorry."
1374
-
1375
- #: includes/i18n.php:386
1376
- msgid "Please contact us here"
1377
- msgstr "Please contact us here"
1378
-
1379
- #: includes/i18n.php:387
1380
- msgid "I have upgraded my account but when I try to Sync the License, the plan remains %s."
1381
- msgstr "I have upgraded my account but when I try to Sync the License, the plan remains %s."
1382
-
1383
- #: includes/i18n.php:390
1384
- msgid "From unknown reason, the API connectivity test failed."
1385
- msgstr "From unknown reason, the API connectivity test failed."
1386
-
1387
- #: includes/i18n.php:391
1388
- msgid "It's probably a temporary issue on our end. Just to be sure, with your permission, would it be o.k to run another connectivity test?"
1389
- msgstr "It's probably a temporary issue on our end. Just to be sure, with your permission, would it be o.k to run another connectivity test?"
1390
-
1391
- #: includes/i18n.php:392
1392
- msgid "We use PHP cURL library for the API calls, which is a very common library and usually installed and activated out of the box. Unfortunately, cURL is not activated (or disabled) on your server."
1393
- msgstr "We use PHP cURL library for the API calls, which is a very common library and usually installed and activated out of the box. Unfortunately, cURL is not activated (or disabled) on your server."
1394
-
1395
- #: includes/i18n.php:393
1396
- msgid "Disabled method(s):"
1397
- msgstr "Disabled method(s):"
1398
-
1399
- #: includes/i18n.php:394
1400
- msgid "From unknown reason, CloudFlare, the firewall we use, blocks the connection."
1401
- msgstr "From unknown reason, CloudFlare, the firewall we use, blocks the connection."
1402
-
1403
- #: includes/i18n.php:395
1404
- msgctxt "as pluginX requires an access to our API"
1405
- msgid "%s requires an access to our API."
1406
- msgstr "%s requires an access to our API."
1407
-
1408
- #: includes/i18n.php:397
1409
- msgid "It looks like your server is using Squid ACL (access control lists), which blocks the connection."
1410
- msgstr "It looks like your server is using Squid ACL (access control lists), which blocks the connection."
1411
-
1412
- #: includes/i18n.php:398
1413
- msgid "I don't know what is Squid or ACL, help me!"
1414
- msgstr "I don't know what is Squid or ACL, help me!"
1415
-
1416
- #: includes/i18n.php:399, includes/i18n.php:403
1417
- msgid "We'll make sure to contact your hosting company and resolve the issue. You will get a follow-up email to %s once we have an update."
1418
- msgstr "We'll make sure to contact your hosting company and resolve the issue. You will get a follow-up email to %s once we have an update."
1419
-
1420
- #: includes/i18n.php:400
1421
- msgid "I'm a system administrator"
1422
- msgstr "I'm a system administrator"
1423
-
1424
- #: includes/i18n.php:401
1425
- msgid "Great, please whitelist the following domains: %s. Once you are done, deactivate the %s and activate it again."
1426
- msgstr "Great, please whitelist the following domains: %s. Once you are done, deactivate the %s and activate it again."
1427
-
1428
- #: includes/i18n.php:402
1429
- msgid "I don't know what is cURL or how to install it, help me!"
1430
- msgstr "I don't know what is cURL or how to install it, help me!"
1431
-
1432
- #: includes/i18n.php:404
1433
- msgid "Great, please install cURL and enable it in your php.ini file. In addition, search for the 'disable_functions' directive in your php.ini file and remove any disabled methods starting with 'curl_'. To make sure it was successfully activated, use 'phpinfo()'. Once activated, deactivate the %s and reactivate it back again."
1434
- msgstr "Great, please install cURL and enable it in your php.ini file. In addition, search for the 'disable_functions' directive in your php.ini file and remove any disabled methods starting with 'curl_'. To make sure it was successfully activated, use 'phpinfo()'. Once activated, deactivate the %s and reactivate it back again."
1435
-
1436
- #: includes/i18n.php:405
1437
- msgid "We are sure it's an issue on our side and more than happy to resolve it for you ASAP if you give us a chance."
1438
- msgstr "We are sure it's an issue on our side and more than happy to resolve it for you ASAP if you give us a chance."
1439
-
1440
- #: includes/i18n.php:406
1441
- msgid "Sorry for the inconvenience and we are here to help if you give us a chance."
1442
- msgstr "Sorry for the inconvenience and we are here to help if you give us a chance."
1443
-
1444
- #: includes/i18n.php:407
1445
- msgid "Yes - I'm giving you a chance to fix it"
1446
- msgstr "Yes - I'm giving you a chance to fix it"
1447
-
1448
- #: includes/i18n.php:408
1449
- msgid "We will do our best to whitelist your server and resolve this issue ASAP. You will get a follow-up email to %s once we have an update."
1450
- msgstr "We will do our best to whitelist your server and resolve this issue ASAP. You will get a follow-up email to %s once we have an update."
1451
-
1452
- #: includes/i18n.php:409
1453
- msgid "Let's try your previous version"
1454
- msgstr "Let's try your previous version"
1455
-
1456
- #: includes/i18n.php:410
1457
- msgid "Uninstall this version and install the previous one."
1458
- msgstr "Uninstall this version and install the previous one."
1459
-
1460
- #: includes/i18n.php:411
1461
- msgid "That's exhausting, please deactivate"
1462
- msgstr "That's exhausting, please deactivate"
1463
-
1464
- #: includes/i18n.php:412
1465
- msgid "We feel your frustration and sincerely apologize for the inconvenience. Hope to see you again in the future."
1466
- msgstr "We feel your frustration and sincerely apologize for the inconvenience. Hope to see you again in the future."
1467
-
1468
- #: includes/i18n.php:413
1469
- msgid "Thank for giving us the chance to fix it! A message was just sent to our technical staff. We will get back to you as soon as we have an update to %s. Appreciate your patience."
1470
- msgstr "Thank for giving us the chance to fix it! A message was just sent to our technical staff. We will get back to you as soon as we have an update to %s. Appreciate your patience."
1471
-
1472
- #: includes/i18n.php:414
1473
- msgctxt "%1s - plugin title, %2s - API domain"
1474
- msgid "Your server is blocking the access to Freemius' API, which is crucial for %1s synchronization. Please contact your host to whitelist %2s"
1475
- msgstr "Your server is blocking the access to Freemius' API, which is crucial for %1s synchronization. Please contact your host to whitelist %2s"
1476
-
1477
- #: includes/i18n.php:416
1478
- msgid "It seems like one of the authentication parameters is wrong. Update your Public Key, Secret Key & User ID, and try again."
1479
- msgstr "It seems like one of the authentication parameters is wrong. Update your Public Key, Secret Key & User ID, and try again."
1480
-
1481
- #: includes/i18n.php:419
1482
- msgid "Please check your mailbox, you should receive an email via %s to confirm the ownership change. From security reasons, you must confirm the change within the next 15 min. If you cannot find the email, please check your spam folder."
1483
- msgstr "Please check your mailbox, you should receive an email via %s to confirm the ownership change. From security reasons, you must confirm the change within the next 15 min. If you cannot find the email, please check your spam folder."
1484
-
1485
- #: includes/i18n.php:420
1486
- msgid "Thanks for confirming the ownership change. An email was just sent to %s for final approval."
1487
- msgstr "Thanks for confirming the ownership change. An email was just sent to %s for final approval."
1488
-
1489
- #: includes/i18n.php:421
1490
- msgid "%s is the new owner of the account."
1491
- msgstr "%s is the new owner of the account."
1492
-
1493
- #: includes/i18n.php:423
1494
- msgctxt "addonX cannot run without pluginY"
1495
- msgid "%s cannot run without %s."
1496
- msgstr "%s cannot run without %s."
1497
-
1498
- #: includes/i18n.php:425
1499
- msgctxt "addonX cannot run..."
1500
- msgid "%s cannot run without the plugin."
1501
- msgstr "%s cannot run without the plugin."
1502
-
1503
- #: includes/i18n.php:426
1504
- msgctxt "pluginX activation was successfully..."
1505
- msgid "%s activation was successfully completed."
1506
- msgstr "%s activation was successfully completed."
1507
-
1508
- #: includes/i18n.php:428
1509
- msgctxt "Plugin installer section title"
1510
- msgid "Features & Pricing"
1511
- msgstr "Features & Pricing"
1512
-
1513
- #: includes/i18n.php:429
1514
- msgid "Add-on must be deployed to WordPress.org or Freemius."
1515
- msgstr "Add-on must be deployed to WordPress.org or Freemius."
1516
-
1517
- #: includes/i18n.php:430
1518
- msgid "Paid add-on must be deployed to Freemius."
1519
- msgstr "Paid add-on must be deployed to Freemius."
1520
-
1521
- #: includes/i18n.php:434
1522
- msgid "%s is a premium only add-on. You have to purchase a license first before activating the plugin."
1523
- msgstr "%s is a premium only add-on. You have to purchase a license first before activating the plugin."
1524
-
1525
- #: includes/i18n.php:435
1526
- msgid "%s free trial was successfully cancelled. Since the add-on is premium only it was automatically deactivated. If you like to use it in the future, you'll have to purchase a license."
1527
- msgstr "%s free trial was successfully cancelled. Since the add-on is premium only it was automatically deactivated. If you like to use it in the future, you'll have to purchase a license."
1528
-
1529
- #: includes/i18n.php:440
1530
- msgctxt "as every month"
1531
- msgid "Monthly"
1532
- msgstr "Monthly"
1533
-
1534
- #: includes/i18n.php:441
1535
- msgctxt "as monthly period"
1536
- msgid "mo"
1537
- msgstr "mo"
1538
-
1539
- #: includes/i18n.php:442
1540
- msgctxt "as once a year"
1541
- msgid "Annual"
1542
- msgstr "Annual"
1543
-
1544
- #: includes/i18n.php:443
1545
- msgctxt "as once a year"
1546
- msgid "Annually"
1547
- msgstr "Annually"
1548
-
1549
- #: includes/i18n.php:444
1550
- msgctxt "as once a year"
1551
- msgid "Once"
1552
- msgstr "Once"
1553
-
1554
- #: includes/i18n.php:445
1555
- msgctxt "as annual period"
1556
- msgid "year"
1557
- msgstr "year"
1558
-
1559
- #: includes/i18n.php:446
1560
- msgid "Lifetime"
1561
- msgstr "Lifetime"
1562
-
1563
- #: includes/i18n.php:447
1564
- msgctxt "e.g. the best product"
1565
- msgid "Best"
1566
- msgstr "Best"
1567
-
1568
- #: includes/i18n.php:448
1569
- msgctxt "e.g. billed monthly"
1570
- msgid "Billed %s"
1571
- msgstr "Billed %s"
1572
-
1573
- #: includes/i18n.php:449
1574
- msgctxt "as a discount of $5 or 10%"
1575
- msgid "Save %s"
1576
- msgstr "Save %s"
1577
-
1578
- #: includes/i18n.php:451
1579
- msgid "View details"
1580
- msgstr "View details"
1581
-
1582
- #: includes/i18n.php:455
1583
- msgctxt "button label"
1584
- msgid "Approve & Start Trial"
1585
- msgstr "Approve & Start Trial"
1586
-
1587
- #: includes/i18n.php:457
1588
- msgid "You are 1-click away from starting your %1$s-day free trial of the %2$s plan."
1589
- msgstr "You are 1-click away from starting your %1$s-day free trial of the %2$s plan."
1590
-
1591
- #: includes/i18n.php:459
1592
- msgid "For compliance with the WordPress.org guidelines, before we start the trial we ask that you opt-in with your user and non-sensitive site information, allowing the %s to periodically send data to %s to check for version updates and to validate your trial."
1593
- msgstr "For compliance with the WordPress.org guidelines, before we start the trial we ask that you opt-in with your user and non-sensitive site information, allowing the %s to periodically send data to %s to check for version updates and to validate your trial."
1594
-
1595
- #: includes/i18n.php:465
1596
- msgid "Business name"
1597
- msgstr "Business name"
1598
-
1599
- #: includes/i18n.php:466
1600
- msgid "Tax / VAT ID"
1601
- msgstr "Tax / VAT ID"
1602
-
1603
- #: includes/i18n.php:467
1604
- msgid "Address Line %d"
1605
- msgstr "Address Line %d"
1606
-
1607
- #: includes/i18n.php:468
1608
- msgid "Country"
1609
- msgstr "Country"
1610
-
1611
- #: includes/i18n.php:469
1612
- msgid "Select Country"
1613
- msgstr "Select Country"
1614
-
1615
- #: includes/i18n.php:470
1616
- msgid "City"
1617
- msgstr "City"
1618
-
1619
- #: includes/i18n.php:471
1620
- msgid "Town"
1621
- msgstr "Town"
1622
-
1623
- #: includes/i18n.php:472
1624
- msgid "State"
1625
- msgstr "State"
1626
-
1627
- #: includes/i18n.php:473
1628
- msgid "Province"
1629
- msgstr "Province"
1630
-
1631
- #: includes/i18n.php:474
1632
- msgid "ZIP / Postal Code"
1633
- msgstr "ZIP / Postal Code"
1634
-
1635
- #: includes/i18n.php:479
1636
- msgid "Installing plugin: %s"
1637
- msgstr "Installing plugin: %s"
1638
-
1639
- #: includes/i18n.php:480
1640
- msgid "Automatic Installation"
1641
- msgstr "Automatic Installation"
1642
-
1643
- #: includes/i18n.php:482
1644
- msgid "%s sec"
1645
- msgstr "%s sec"
1646
-
1647
- #: includes/i18n.php:483
1648
- msgid "An automated download and installation of %s (paid version) from %s will start in %s. If you would like to do it manually - click the cancellation button now."
1649
- msgstr "An automated download and installation of %s (paid version) from %s will start in %s. If you would like to do it manually - click the cancellation button now."
1650
-
1651
- #: includes/i18n.php:484
1652
- msgid "The installation process has started and may take a few minutes to complete. Please wait until it is done - do not refresh this page."
1653
- msgstr "The installation process has started and may take a few minutes to complete. Please wait until it is done - do not refresh this page."
1654
-
1655
- #: includes/i18n.php:485
1656
- msgid "Cancel Installation"
1657
- msgstr "Cancel Installation"
1658
-
1659
- #: includes/i18n.php:486
1660
- msgid "The remote plugin package does not contain a folder with the desired slug and renaming did not work."
1661
- msgstr "The remote plugin package does not contain a folder with the desired slug and renaming did not work."
1662
-
1663
- #: includes/i18n.php:487
1664
- msgid "Invalid module ID."
1665
- msgstr "Invalid module ID."
1666
-
1667
- #: includes/i18n.php:488
1668
- msgid "Auto installation only works for opted-in users."
1669
- msgstr "Auto installation only works for opted-in users."
1670
-
1671
- #: includes/i18n.php:489
1672
- msgid "Premium version already active."
1673
- msgstr "Premium version already active."
1674
-
1675
- #: includes/i18n.php:490
1676
- msgid "Premium add-on version already installed."
1677
- msgstr "Premium add-on version already installed."
1678
-
1679
- #: includes/i18n.php:491
1680
- msgid "You do not have a valid license to access the premium version."
1681
- msgstr "You do not have a valid license to access the premium version."
1682
-
1683
- #: includes/i18n.php:492
1684
- msgid "Plugin is a \"Serviceware\" which means it does not have a premium code version."
1685
- msgstr "Plugin is a \"Serviceware\" which means it does not have a premium code version."
1686
-
1687
- #: includes/i18n.php:496
1688
- msgid "Secure HTTPS %s page, running from an external domain"
1689
- msgstr "Secure HTTPS %s page, running from an external domain"
1690
-
1691
- #: includes/i18n.php:497
1692
- msgid "PCI compliant"
1693
- msgstr "PCI compliant"
1694
-
1695
- #: includes/i18n.php:498
1696
- msgid "View paid features"
1697
- msgstr "View paid features"
1698
-
1699
- #: includes/i18n.php:512
1700
- msgctxt "Plugin installer section title"
1701
- msgid "Description"
1702
- msgstr "Description"
1703
-
1704
- #: includes/i18n.php:513
1705
- msgctxt "Plugin installer section title"
1706
- msgid "Installation"
1707
- msgstr "Installation"
1708
-
1709
- #: includes/i18n.php:514
1710
- msgctxt "Plugin installer section title"
1711
- msgid "FAQ"
1712
- msgstr "FAQ"
1713
-
1714
- #: includes/i18n.php:515
1715
- msgctxt "Plugin installer section title"
1716
- msgid "Changelog"
1717
- msgstr "Changelog"
1718
-
1719
- #: includes/i18n.php:516
1720
- msgctxt "Plugin installer section title"
1721
- msgid "Reviews"
1722
- msgstr "Reviews"
1723
-
1724
- #: includes/i18n.php:517
1725
- msgctxt "Plugin installer section title"
1726
- msgid "Other Notes"
1727
- msgstr "Other Notes"
1728
-
1729
- #: includes/i18n.php:519
1730
- msgid "%s star"
1731
- msgstr "%s star"
1732
-
1733
- #: includes/i18n.php:521
1734
- msgid "%s stars"
1735
- msgstr "%s stars"
1736
-
1737
- #: includes/i18n.php:523
1738
- msgid "%s rating"
1739
- msgstr "%s rating"
1740
-
1741
- #: includes/i18n.php:525
1742
- msgid "%s ratings"
1743
- msgstr "%s ratings"
1744
-
1745
- #: includes/i18n.php:527
1746
- msgid "%s time"
1747
- msgstr "%s time"
1748
-
1749
- #: includes/i18n.php:529
1750
- msgid "%s times"
1751
- msgstr "%s times"
1752
-
1753
- #: includes/i18n.php:531
1754
- msgid "Click to see reviews that provided a rating of %s"
1755
- msgstr "Click to see reviews that provided a rating of %s"
1756
-
1757
- #: includes/i18n.php:532
1758
- msgid "Last Updated"
1759
- msgstr "Last Updated"
1760
-
1761
- #: includes/i18n.php:533
1762
- msgid "Requires WordPress Version:"
1763
- msgstr "Requires WordPress Version:"
1764
-
1765
- #: includes/i18n.php:534
1766
- msgctxt "as the plugin author"
1767
- msgid "Author:"
1768
- msgstr "Author:"
1769
-
1770
- #: includes/i18n.php:535
1771
- msgid "Compatible up to:"
1772
- msgstr "Compatible up to:"
1773
-
1774
- #: includes/i18n.php:536
1775
- msgid "Downloaded:"
1776
- msgstr "Downloaded:"
1777
-
1778
- #: includes/i18n.php:537
1779
- msgid "WordPress.org Plugin Page"
1780
- msgstr "WordPress.org Plugin Page"
1781
-
1782
- #: includes/i18n.php:538
1783
- msgid "Plugin Homepage"
1784
- msgstr "Plugin Homepage"
1785
-
1786
- #: includes/i18n.php:539
1787
- msgid "Donate to this plugin"
1788
- msgstr "Donate to this plugin"
1789
-
1790
- #: includes/i18n.php:540
1791
- msgid "Average Rating"
1792
- msgstr "Average Rating"
1793
-
1794
- #: includes/i18n.php:541
1795
- msgid "based on %s"
1796
- msgstr "based on %s"
1797
-
1798
- #: includes/i18n.php:542
1799
- msgid "Warning:"
1800
- msgstr "Warning:"
1801
-
1802
- #: includes/i18n.php:543
1803
- msgid "Contributors"
1804
- msgstr "Contributors"
1805
-
1806
- #: includes/i18n.php:544
1807
- msgid "Plugin Install"
1808
- msgstr "Plugin Install"
1809
-
1810
- #: includes/i18n.php:545
1811
- msgid "This plugin has not been tested with your current version of WordPress."
1812
- msgstr "This plugin has not been tested with your current version of WordPress."
1813
-
1814
- #: includes/i18n.php:546
1815
- msgid "This plugin has not been marked as compatible with your version of WordPress."
1816
- msgstr "This plugin has not been marked as compatible with your version of WordPress."
1817
-
1818
- #: includes/i18n.php:547
1819
- msgid "Newer Version (%s) Installed"
1820
- msgstr "Newer Version (%s) Installed"
1821
-
1822
- #: includes/i18n.php:548
1823
- msgid "Latest Version Installed"
1824
- msgstr "Latest Version Installed"
1
+ # Copyright (C) 2017 freemius
2
+ # This file is distributed under the same license as the freemius package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: freemius\n"
6
+ "Report-Msgid-Bugs-To: https://github.com/Freemius/wordpress-sdk/issues\n"
7
+ "POT-Creation-Date: \n"
8
+ "PO-Revision-Date: \n"
9
+ "Last-Translator: Vova Feldman <vova@freemius.com>\n"
10
+ "Language: \n"
11
+ "Language-Team: Freemius Team <admin@freemius.com>\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "MIME-Version: 1.0\n"
16
+ "X-Poedit-Basepath: ..\n"
17
+ "X-Poedit-KeywordsList: _fs_text;_fs_echo;_fs_esc_attr;_fs_esc_attr_echo;_fs_esc_html;_fs_esc_html_echo;_fs_x:1,2c;_fs_ex:1,2c;_fs_esc_attr_x:1,2c;_fs_esc_html_x:1,2c;_fs_n:1,2;_fs_n_noop:1,2;_fs_nx:1,2,4c;_fs_nx_noop:1,2,3c\n"
18
+ "X-Poedit-SearchPath-0: .\n"
19
+ "X-Poedit-SearchPathExcluded-0: *.js\n"
20
+ "X-Poedit-SourceCharset: UTF-8\n"
21
+
22
+ #: includes/i18n.php:37
23
+ msgid "Account"
24
+ msgstr "Account"
25
+
26
+ #: includes/i18n.php:38
27
+ msgid "Add-On"
28
+ msgstr "Add-On"
29
+
30
+ #: includes/i18n.php:39
31
+ msgid "Contact Us"
32
+ msgstr "Contact Us"
33
+
34
+ #: includes/i18n.php:40
35
+ msgid "Contact Support"
36
+ msgstr "Contact Support"
37
+
38
+ #: includes/i18n.php:41
39
+ msgid "Change Ownership"
40
+ msgstr "Change Ownership"
41
+
42
+ #: includes/i18n.php:42
43
+ msgid "Support"
44
+ msgstr "Support"
45
+
46
+ #: includes/i18n.php:43
47
+ msgid "Support Forum"
48
+ msgstr "Support Forum"
49
+
50
+ #: includes/i18n.php:44
51
+ msgid "Add-Ons"
52
+ msgstr "Add-Ons"
53
+
54
+ #: includes/i18n.php:45
55
+ msgctxt "verb"
56
+ msgid "Upgrade"
57
+ msgstr "Upgrade"
58
+
59
+ #: includes/i18n.php:46
60
+ msgid "Awesome"
61
+ msgstr "Awesome"
62
+
63
+ #: includes/i18n.php:47
64
+ msgctxt "noun"
65
+ msgid "Pricing"
66
+ msgstr "Pricing"
67
+
68
+ #: includes/i18n.php:48
69
+ msgctxt "noun"
70
+ msgid "Price"
71
+ msgstr "Price"
72
+
73
+ #: includes/i18n.php:49
74
+ msgid "Unlimited Updates"
75
+ msgstr "Unlimited Updates"
76
+
77
+ #: includes/i18n.php:50
78
+ msgctxt "verb"
79
+ msgid "Downgrade"
80
+ msgstr "Downgrade"
81
+
82
+ #: includes/i18n.php:51
83
+ msgctxt "verb"
84
+ msgid "Cancel Subscription"
85
+ msgstr "Cancel Subscription"
86
+
87
+ #: includes/i18n.php:52
88
+ msgid "Cancel Trial"
89
+ msgstr "Cancel Trial"
90
+
91
+ #: includes/i18n.php:53
92
+ msgid "Free Trial"
93
+ msgstr "Free Trial"
94
+
95
+ #: includes/i18n.php:54
96
+ msgid "Start my free %s"
97
+ msgstr "Start my free %s"
98
+
99
+ #: includes/i18n.php:55
100
+ msgid "No commitment for %s - cancel anytime"
101
+ msgstr "No commitment for %s - cancel anytime"
102
+
103
+ #: includes/i18n.php:56
104
+ msgid "After your free %s, pay as little as %s"
105
+ msgstr "After your free %s, pay as little as %s"
106
+
107
+ #: includes/i18n.php:57
108
+ msgid "Details"
109
+ msgstr "Details"
110
+
111
+ #: includes/i18n.php:58
112
+ msgid "Account Details"
113
+ msgstr "Account Details"
114
+
115
+ #: includes/i18n.php:59
116
+ msgctxt "verb"
117
+ msgid "Delete"
118
+ msgstr "Delete"
119
+
120
+ #: includes/i18n.php:60
121
+ msgctxt "verb"
122
+ msgid "Show"
123
+ msgstr "Show"
124
+
125
+ #: includes/i18n.php:61
126
+ msgctxt "verb"
127
+ msgid "Hide"
128
+ msgstr "Hide"
129
+
130
+ #: includes/i18n.php:62
131
+ msgctxt "verb"
132
+ msgid "Edit"
133
+ msgstr "Edit"
134
+
135
+ #: includes/i18n.php:63
136
+ msgctxt "verb"
137
+ msgid "Update"
138
+ msgstr "Update"
139
+
140
+ #: includes/i18n.php:64
141
+ msgid "Date"
142
+ msgstr "Date"
143
+
144
+ #: includes/i18n.php:65
145
+ msgid "Amount"
146
+ msgstr "Amount"
147
+
148
+ #: includes/i18n.php:66
149
+ msgid "Invoice"
150
+ msgstr "Invoice"
151
+
152
+ #: includes/i18n.php:67
153
+ msgid "Billing"
154
+ msgstr "Billing"
155
+
156
+ #: includes/i18n.php:68
157
+ msgid "Payments"
158
+ msgstr "Payments"
159
+
160
+ #: includes/i18n.php:69
161
+ msgid "Delete Account"
162
+ msgstr "Delete Account"
163
+
164
+ #: includes/i18n.php:70
165
+ msgctxt "as close a window"
166
+ msgid "Dismiss"
167
+ msgstr "Dismiss"
168
+
169
+ #: includes/i18n.php:71
170
+ msgctxt "as product pricing plan"
171
+ msgid "Plan"
172
+ msgstr "Plan"
173
+
174
+ #: includes/i18n.php:72
175
+ msgid "Change Plan"
176
+ msgstr "Change Plan"
177
+
178
+ #: includes/i18n.php:73
179
+ msgctxt "as download professional version"
180
+ msgid "Download %s Version"
181
+ msgstr "Download %s Version"
182
+
183
+ #: includes/i18n.php:74
184
+ msgctxt "as download professional version now"
185
+ msgid "Download %s version now"
186
+ msgstr "Download %s version now"
187
+
188
+ #: includes/i18n.php:75
189
+ msgctxt "as download latest version"
190
+ msgid "Download Latest"
191
+ msgstr "Download Latest"
192
+
193
+ #: includes/i18n.php:76
194
+ msgctxt "E.g. you have a professional license."
195
+ msgid "You have a %s license."
196
+ msgstr "You have a %s license."
197
+
198
+ #: includes/i18n.php:77
199
+ msgid "New"
200
+ msgstr "New"
201
+
202
+ #: includes/i18n.php:78
203
+ msgid "Free"
204
+ msgstr "Free"
205
+
206
+ #: includes/i18n.php:79
207
+ msgctxt "as trial plan"
208
+ msgid "Trial"
209
+ msgstr "Trial"
210
+
211
+ #: includes/i18n.php:80
212
+ msgctxt "as starting a trial plan"
213
+ msgid "Start Trial"
214
+ msgstr "Start Trial"
215
+
216
+ #: includes/i18n.php:81
217
+ msgctxt "verb"
218
+ msgid "Purchase"
219
+ msgstr "Purchase"
220
+
221
+ #: includes/i18n.php:82
222
+ msgid "Purchase License"
223
+ msgstr "Purchase License"
224
+
225
+ #: includes/i18n.php:83
226
+ msgctxt "verb"
227
+ msgid "Buy"
228
+ msgstr "Buy"
229
+
230
+ #: includes/i18n.php:84
231
+ msgid "Buy License"
232
+ msgstr "Buy License"
233
+
234
+ #: includes/i18n.php:85
235
+ msgid "Single Site License"
236
+ msgstr "Single Site License"
237
+
238
+ #: includes/i18n.php:86
239
+ msgid "Unlimited Licenses"
240
+ msgstr "Unlimited Licenses"
241
+
242
+ #: includes/i18n.php:87
243
+ msgid "Up to %s Sites"
244
+ msgstr "Up to %s Sites"
245
+
246
+ #: includes/i18n.php:88
247
+ msgid "%sRenew your license now%s to access version %s features and support."
248
+ msgstr "%sRenew your license now%s to access version %s features and support."
249
+
250
+ #: includes/i18n.php:89
251
+ msgid "Enter the email address you've used for the upgrade below and we will resend you the license key."
252
+ msgstr "Enter the email address you've used for the upgrade below and we will resend you the license key."
253
+
254
+ #: includes/i18n.php:90
255
+ msgctxt "e.g. Professional Plan"
256
+ msgid "%s Plan"
257
+ msgstr "%s Plan"
258
+
259
+ #: includes/i18n.php:91
260
+ msgid "You are just one step away - %s"
261
+ msgstr "You are just one step away - %s"
262
+
263
+ #: includes/i18n.php:92
264
+ msgctxt "%s - plugin name. As complete \"Jetpack\" activation now"
265
+ msgid "Complete \"%s\" Activation Now"
266
+ msgstr "Complete \"%s\" Activation Now"
267
+
268
+ #: includes/i18n.php:94
269
+ msgid "We made a few tweaks to the %s, %s"
270
+ msgstr "We made a few tweaks to the %s, %s"
271
+
272
+ #: includes/i18n.php:95
273
+ msgid "Opt-in to make \"%s\" Better!"
274
+ msgstr "Opt-in to make \"%s\" Better!"
275
+
276
+ #: includes/i18n.php:96
277
+ msgid "Error"
278
+ msgstr "Error"
279
+
280
+ #: includes/i18n.php:97
281
+ msgid "Freemius SDK couldn't find the plugin's main file. Please contact sdk@freemius.com with the current error."
282
+ msgstr "Freemius SDK couldn't find the plugin's main file. Please contact sdk@freemius.com with the current error."
283
+
284
+ #: includes/i18n.php:100
285
+ msgctxt "as expiration date"
286
+ msgid "Expiration"
287
+ msgstr "Expiration"
288
+
289
+ #: includes/i18n.php:101
290
+ msgctxt "as software license"
291
+ msgid "License"
292
+ msgstr "License"
293
+
294
+ #: includes/i18n.php:102
295
+ msgid "not verified"
296
+ msgstr "not verified"
297
+
298
+ #: includes/i18n.php:103
299
+ msgid "Verify Email"
300
+ msgstr "Verify Email"
301
+
302
+ #: includes/i18n.php:104
303
+ msgctxt "e.g. expires in 2 months"
304
+ msgid "Expires in %s"
305
+ msgstr "Expires in %s"
306
+
307
+ #: includes/i18n.php:105
308
+ msgctxt "e.g. auto renews in 2 months"
309
+ msgid "Auto renews in %s"
310
+ msgstr "Auto renews in %s"
311
+
312
+ #: includes/i18n.php:106
313
+ msgid "No expiration"
314
+ msgstr "No expiration"
315
+
316
+ #: includes/i18n.php:107
317
+ msgid "Expired"
318
+ msgstr "Expired"
319
+
320
+ #: includes/i18n.php:108
321
+ msgid "Cancelled"
322
+ msgstr "Cancelled"
323
+
324
+ #: includes/i18n.php:109
325
+ msgctxt "e.g. In 2 hours"
326
+ msgid "In %s"
327
+ msgstr "In %s"
328
+
329
+ #: includes/i18n.php:110
330
+ msgctxt "e.g. 2 min ago"
331
+ msgid "%s ago"
332
+ msgstr "%s ago"
333
+
334
+ #: includes/i18n.php:112
335
+ msgid "%s or higher"
336
+ msgstr "%s or higher"
337
+
338
+ #: includes/i18n.php:113
339
+ msgctxt "as plugin version"
340
+ msgid "Version"
341
+ msgstr "Version"
342
+
343
+ #: includes/i18n.php:114
344
+ msgid "Name"
345
+ msgstr "Name"
346
+
347
+ #: includes/i18n.php:115
348
+ msgid "Email"
349
+ msgstr "Email"
350
+
351
+ #: includes/i18n.php:116
352
+ msgid "Email address"
353
+ msgstr "Email address"
354
+
355
+ #: includes/i18n.php:117
356
+ msgid "Verified"
357
+ msgstr "Verified"
358
+
359
+ #: includes/i18n.php:118
360
+ msgid "Module"
361
+ msgstr "Module"
362
+
363
+ #: includes/i18n.php:119
364
+ msgid "Module Type"
365
+ msgstr "Module Type"
366
+
367
+ #: includes/i18n.php:120
368
+ msgid "Plugin"
369
+ msgstr "Plugin"
370
+
371
+ #: includes/i18n.php:121
372
+ msgid "Plugins"
373
+ msgstr "Plugins"
374
+
375
+ #: includes/i18n.php:122
376
+ msgid "Theme"
377
+ msgstr "Theme"
378
+
379
+ #: includes/i18n.php:123
380
+ msgid "Themes"
381
+ msgstr "Themes"
382
+
383
+ #: includes/i18n.php:124
384
+ msgctxt "as file/folder path"
385
+ msgid "Path"
386
+ msgstr "Path"
387
+
388
+ #: includes/i18n.php:125
389
+ msgid "Title"
390
+ msgstr "Title"
391
+
392
+ #: includes/i18n.php:126
393
+ msgid "Free version"
394
+ msgstr "Free version"
395
+
396
+ #: includes/i18n.php:127
397
+ msgid "Premium version"
398
+ msgstr "Premium version"
399
+
400
+ #: includes/i18n.php:128
401
+ msgctxt "as WP plugin slug"
402
+ msgid "Slug"
403
+ msgstr "Slug"
404
+
405
+ #: includes/i18n.php:129
406
+ msgid "ID"
407
+ msgstr "ID"
408
+
409
+ #: includes/i18n.php:130
410
+ msgid "Users"
411
+ msgstr "Users"
412
+
413
+ #: includes/i18n.php:131
414
+ msgid "%s Installs"
415
+ msgstr "%s Installs"
416
+
417
+ #: includes/i18n.php:132
418
+ msgctxt "like websites"
419
+ msgid "Sites"
420
+ msgstr "Sites"
421
+
422
+ #: includes/i18n.php:133
423
+ msgid "User ID"
424
+ msgstr "User ID"
425
+
426
+ #: includes/i18n.php:134
427
+ msgid "Site ID"
428
+ msgstr "Site ID"
429
+
430
+ #: includes/i18n.php:135
431
+ msgid "Public Key"
432
+ msgstr "Public Key"
433
+
434
+ #: includes/i18n.php:136
435
+ msgid "Secret Key"
436
+ msgstr "Secret Key"
437
+
438
+ #: includes/i18n.php:137
439
+ msgctxt "as secret encryption key missing"
440
+ msgid "No Secret"
441
+ msgstr "No Secret"
442
+
443
+ #: includes/i18n.php:138
444
+ msgid "No ID"
445
+ msgstr "No ID"
446
+
447
+ #: includes/i18n.php:139
448
+ msgctxt "as synchronize license"
449
+ msgid "Sync License"
450
+ msgstr "Sync License"
451
+
452
+ #: includes/i18n.php:140
453
+ msgctxt "as synchronize"
454
+ msgid "Sync"
455
+ msgstr "Sync"
456
+
457
+ #: includes/i18n.php:141
458
+ msgid "Activate License"
459
+ msgstr "Activate License"
460
+
461
+ #: includes/i18n.php:142
462
+ msgid "Activate Free Version"
463
+ msgstr "Activate Free Version"
464
+
465
+ #: includes/i18n.php:143
466
+ msgid "Please enter the license key that you received in the email right after the purchase:"
467
+ msgstr "Please enter the license key that you received in the email right after the purchase:"
468
+
469
+ #: includes/i18n.php:144
470
+ msgid "Activating license..."
471
+ msgstr "Activating license..."
472
+
473
+ #: includes/i18n.php:145
474
+ msgid "Change License"
475
+ msgstr "Change License"
476
+
477
+ #: includes/i18n.php:146
478
+ msgid "Update License"
479
+ msgstr "Update License"
480
+
481
+ #: includes/i18n.php:147
482
+ msgid "Deactivate License"
483
+ msgstr "Deactivate License"
484
+
485
+ #: includes/i18n.php:148
486
+ msgid "Activate"
487
+ msgstr "Activate"
488
+
489
+ #: includes/i18n.php:149
490
+ msgid "Deactivate"
491
+ msgstr "Deactivate"
492
+
493
+ #: includes/i18n.php:150
494
+ msgid "Skip & Deactivate"
495
+ msgstr "Skip & Deactivate"
496
+
497
+ #: includes/i18n.php:151
498
+ msgid "Skip & %s"
499
+ msgstr "Skip & %s"
500
+
501
+ #: includes/i18n.php:152
502
+ msgid "No - just deactivate"
503
+ msgstr "No - just deactivate"
504
+
505
+ #: includes/i18n.php:153
506
+ msgid "Yes - do your thing"
507
+ msgstr "Yes - do your thing"
508
+
509
+ #: includes/i18n.php:154
510
+ msgctxt "active mode"
511
+ msgid "Active"
512
+ msgstr "Active"
513
+
514
+ #: includes/i18n.php:155
515
+ msgctxt "is active mode?"
516
+ msgid "Is Active"
517
+ msgstr "Is Active"
518
+
519
+ #: includes/i18n.php:156
520
+ msgid "Install Now"
521
+ msgstr "Install Now"
522
+
523
+ #: includes/i18n.php:157
524
+ msgid "Install Update Now"
525
+ msgstr "Install Update Now"
526
+
527
+ #: includes/i18n.php:158
528
+ msgid "More information about %s"
529
+ msgstr "More information about %s"
530
+
531
+ #: includes/i18n.php:159
532
+ msgid "Localhost"
533
+ msgstr "Localhost"
534
+
535
+ #: includes/i18n.php:160
536
+ msgctxt "as activate Professional plan"
537
+ msgid "Activate %s Plan"
538
+ msgstr "Activate %s Plan"
539
+
540
+ #: includes/i18n.php:161
541
+ msgctxt "as 5 licenses left"
542
+ msgid "%s left"
543
+ msgstr "%s left"
544
+
545
+ #: includes/i18n.php:162
546
+ msgid "Last license"
547
+ msgstr "Last license"
548
+
549
+ #: includes/i18n.php:163
550
+ msgid "What is your %s?"
551
+ msgstr "What is your %s?"
552
+
553
+ #: includes/i18n.php:164
554
+ msgid "Activate this add-on"
555
+ msgstr "Activate this add-on"
556
+
557
+ #: includes/i18n.php:165
558
+ msgid "Deactivating your license will block all premium features, but will enable you to activate the license on another site. Are you sure you want to proceed?"
559
+ msgstr "Deactivating your license will block all premium features, but will enable you to activate the license on another site. Are you sure you want to proceed?"
560
+
561
+ #: includes/i18n.php:166
562
+ msgid "Deleting the account will automatically deactivate your %s plan license so you can use it on other sites. If you want to terminate the recurring payments as well, click the \"Cancel\" button, and first \"Downgrade\" your account. Are you sure you would like to continue with the deletion?"
563
+ msgstr "Deleting the account will automatically deactivate your %s plan license so you can use it on other sites. If you want to terminate the recurring payments as well, click the \"Cancel\" button, and first \"Downgrade\" your account. Are you sure you would like to continue with the deletion?"
564
+
565
+ #: includes/i18n.php:167
566
+ msgid "Deletion is not temporary. Only delete if you no longer want to use this %s anymore. Are you sure you would like to continue with the deletion?"
567
+ msgstr "Deletion is not temporary. Only delete if you no longer want to use this %s anymore. Are you sure you would like to continue with the deletion?"
568
+
569
+ #: includes/i18n.php:168
570
+ msgid "Downgrading your plan will immediately stop all future recurring payments and your %s plan license will expire in %s."
571
+ msgstr "Downgrading your plan will immediately stop all future recurring payments and your %s plan license will expire in %s."
572
+
573
+ #: includes/i18n.php:169
574
+ msgid "Cancelling the trial will immediately block access to all premium features. Are you sure?"
575
+ msgstr "Cancelling the trial will immediately block access to all premium features. Are you sure?"
576
+
577
+ #: includes/i18n.php:170
578
+ msgid "You can still enjoy all %s features but you will not have access to %s updates and support."
579
+ msgstr "You can still enjoy all %s features but you will not have access to %s updates and support."
580
+
581
+ #: includes/i18n.php:171
582
+ msgid "Once your license expires you can still use the Free version but you will NOT have access to the %s features."
583
+ msgstr "Once your license expires you can still use the Free version but you will NOT have access to the %s features."
584
+
585
+ #: includes/i18n.php:172
586
+ msgid "Are you sure you want to proceed?"
587
+ msgstr "Are you sure you want to proceed?"
588
+
589
+ #: includes/i18n.php:175
590
+ msgid "Add Ons for %s"
591
+ msgstr "Add Ons for %s"
592
+
593
+ #: includes/i18n.php:176
594
+ msgid "We could'nt load the add-ons list. It's probably an issue on our side, please try to come back in few minutes."
595
+ msgstr "We could'nt load the add-ons list. It's probably an issue on our side, please try to come back in few minutes."
596
+
597
+ #: includes/i18n.php:178
598
+ msgid "Anonymous feedback"
599
+ msgstr "Anonymous feedback"
600
+
601
+ #: includes/i18n.php:179
602
+ msgid "Quick feedback"
603
+ msgstr "Quick feedback"
604
+
605
+ #: includes/i18n.php:180
606
+ msgid "If you have a moment, please let us know why you are %s"
607
+ msgstr "If you have a moment, please let us know why you are %s"
608
+
609
+ #: includes/i18n.php:181
610
+ msgid "deactivating"
611
+ msgstr "deactivating"
612
+
613
+ #: includes/i18n.php:182
614
+ msgid "Deactivation"
615
+ msgstr "Deactivation"
616
+
617
+ #: includes/i18n.php:183
618
+ msgid "Theme Switch"
619
+ msgstr "Theme Switch"
620
+
621
+ #: includes/i18n.php:184
622
+ msgid "switching"
623
+ msgstr "switching"
624
+
625
+ #: includes/i18n.php:185
626
+ msgid "Switch"
627
+ msgstr "Switch"
628
+
629
+ #: includes/i18n.php:186
630
+ msgid "Activate %s"
631
+ msgstr "Activate %s"
632
+
633
+ #: includes/i18n.php:187
634
+ msgid "Yes - %s"
635
+ msgstr "Yes - %s"
636
+
637
+ #: includes/i18n.php:188
638
+ msgid "Submit & %s"
639
+ msgstr "Submit & %s"
640
+
641
+ #: includes/i18n.php:189
642
+ msgid "Cancel"
643
+ msgstr "Cancel"
644
+
645
+ #: includes/i18n.php:190
646
+ msgid "I no longer need the %s"
647
+ msgstr "I no longer need the %s"
648
+
649
+ #: includes/i18n.php:191
650
+ msgid "I found a better %s"
651
+ msgstr "I found a better %s"
652
+
653
+ #: includes/i18n.php:192
654
+ msgid "I only needed the %s for a short period"
655
+ msgstr "I only needed the %s for a short period"
656
+
657
+ #: includes/i18n.php:193
658
+ msgid "The %s broke my site"
659
+ msgstr "The %s broke my site"
660
+
661
+ #: includes/i18n.php:194
662
+ msgid "The %s suddenly stopped working"
663
+ msgstr "The %s suddenly stopped working"
664
+
665
+ #: includes/i18n.php:195
666
+ msgid "I can't pay for it anymore"
667
+ msgstr "I can't pay for it anymore"
668
+
669
+ #: includes/i18n.php:196
670
+ msgid "It's a temporary deactivation. I'm just debugging an issue."
671
+ msgstr "It's a temporary deactivation. I'm just debugging an issue."
672
+
673
+ #: includes/i18n.php:197
674
+ msgid "It's a temporary %s. I'm just debugging an issue."
675
+ msgstr "It's a temporary %s. I'm just debugging an issue."
676
+
677
+ #: includes/i18n.php:198
678
+ msgctxt "the text of the \"other\" reason for deactivating the module that is shown in the modal box."
679
+ msgid "Other"
680
+ msgstr "Other"
681
+
682
+ #: includes/i18n.php:200
683
+ msgid "Kindly tell us the reason so we can improve."
684
+ msgstr "Kindly tell us the reason so we can improve."
685
+
686
+ #: includes/i18n.php:201
687
+ msgid "What's the %s's name?"
688
+ msgstr "What's the %s's name?"
689
+
690
+ #: includes/i18n.php:202
691
+ msgid "What price would you feel comfortable paying?"
692
+ msgstr "What price would you feel comfortable paying?"
693
+
694
+ #: includes/i18n.php:203
695
+ msgid "I couldn't understand how to make it work"
696
+ msgstr "I couldn't understand how to make it work"
697
+
698
+ #: includes/i18n.php:204
699
+ msgid "The %s is great, but I need specific feature that you don't support"
700
+ msgstr "The %s is great, but I need specific feature that you don't support"
701
+
702
+ #: includes/i18n.php:205
703
+ msgid "The %s is not working"
704
+ msgstr "The %s is not working"
705
+
706
+ #: includes/i18n.php:206
707
+ msgid "It's not what I was looking for"
708
+ msgstr "It's not what I was looking for"
709
+
710
+ #: includes/i18n.php:207
711
+ msgid "The %s didn't work as expected"
712
+ msgstr "The %s didn't work as expected"
713
+
714
+ #: includes/i18n.php:208
715
+ msgid "What feature?"
716
+ msgstr "What feature?"
717
+
718
+ #: includes/i18n.php:209
719
+ msgid "Kindly share what didn't work so we can fix it for future users..."
720
+ msgstr "Kindly share what didn't work so we can fix it for future users..."
721
+
722
+ #: includes/i18n.php:210
723
+ msgid "What you've been looking for?"
724
+ msgstr "What you've been looking for?"
725
+
726
+ #: includes/i18n.php:211
727
+ msgid "What did you expect?"
728
+ msgstr "What did you expect?"
729
+
730
+ #: includes/i18n.php:212
731
+ msgid "The %s didn't work"
732
+ msgstr "The %s didn't work"
733
+
734
+ #: includes/i18n.php:213
735
+ msgid "I don't like to share my information with you"
736
+ msgstr "I don't like to share my information with you"
737
+
738
+ #: includes/i18n.php:214
739
+ msgid "You might have missed it, but you don't have to share any data and can just %s the opt-in."
740
+ msgstr "You might have missed it, but you don't have to share any data and can just %s the opt-in."
741
+
742
+ #: includes/i18n.php:218
743
+ msgctxt "greeting"
744
+ msgid "Hey %s,"
745
+ msgstr "Hey %s,"
746
+
747
+ #: includes/i18n.php:219
748
+ msgctxt "a greeting. E.g. Thanks John!"
749
+ msgid "Thanks %s!"
750
+ msgstr "Thanks %s!"
751
+
752
+ #: includes/i18n.php:220
753
+ msgid "Never miss an important update - opt-in to our security and feature updates notifications, and non-sensitive diagnostic tracking with %4$s."
754
+ msgstr "Never miss an important update - opt-in to our security and feature updates notifications, and non-sensitive diagnostic tracking with %4$s."
755
+
756
+ #: includes/i18n.php:221
757
+ msgid "Please help us improve %1$s! If you opt-in, some data about your usage of %1$s will be sent to %4$s. If you skip this, that's okay! %1$s will still work just fine."
758
+ msgstr "Please help us improve %1$s! If you opt-in, some data about your usage of %1$s will be sent to %4$s. If you skip this, that's okay! %1$s will still work just fine."
759
+
760
+ #: includes/i18n.php:222
761
+ msgid "You should receive an activation email for %s to your mailbox at %s. Please make sure you click the activation button in that email to %s."
762
+ msgstr "You should receive an activation email for %s to your mailbox at %s. Please make sure you click the activation button in that email to %s."
763
+
764
+ #: includes/i18n.php:223
765
+ msgid "complete the install"
766
+ msgstr "complete the install"
767
+
768
+ #: includes/i18n.php:224
769
+ msgid "start the trial"
770
+ msgstr "start the trial"
771
+
772
+ #: includes/i18n.php:225
773
+ msgid "Thanks for purchasing %s! To get started, please enter your license key:"
774
+ msgstr "Thanks for purchasing %s! To get started, please enter your license key:"
775
+
776
+ #: includes/i18n.php:226
777
+ msgid "The %1$s will be periodically sending data to %2$s to check for security and feature updates, and verify the validity of your license."
778
+ msgstr "The %1$s will be periodically sending data to %2$s to check for security and feature updates, and verify the validity of your license."
779
+
780
+ #: includes/i18n.php:227
781
+ msgid "What permissions are being granted?"
782
+ msgstr "What permissions are being granted?"
783
+
784
+ #: includes/i18n.php:228
785
+ msgid "Your Profile Overview"
786
+ msgstr "Your Profile Overview"
787
+
788
+ #: includes/i18n.php:229
789
+ msgid "Name and email address"
790
+ msgstr "Name and email address"
791
+
792
+ #: includes/i18n.php:230
793
+ msgid "Your Site Overview"
794
+ msgstr "Your Site Overview"
795
+
796
+ #: includes/i18n.php:231
797
+ msgid "Site URL, WP version, PHP info, plugins & themes"
798
+ msgstr "Site URL, WP version, PHP info, plugins & themes"
799
+
800
+ #: includes/i18n.php:232
801
+ msgid "Current %s Events"
802
+ msgstr "Current %s Events"
803
+
804
+ #: includes/i18n.php:233
805
+ msgid "Activation, deactivation and uninstall"
806
+ msgstr "Activation, deactivation and uninstall"
807
+
808
+ #: includes/i18n.php:234
809
+ msgid "Plugins & Themes"
810
+ msgstr "Plugins & Themes"
811
+
812
+ #: includes/i18n.php:235
813
+ msgid "Titles, versions and state."
814
+ msgstr "Titles, versions and state."
815
+
816
+ #: includes/i18n.php:236
817
+ msgid "Admin Notices"
818
+ msgstr "Admin Notices"
819
+
820
+ #: includes/i18n.php:237
821
+ msgid "Newsletter"
822
+ msgstr "Newsletter"
823
+
824
+ #: includes/i18n.php:238
825
+ msgid "Updates, announcements, marketing, no spam"
826
+ msgstr "Updates, announcements, marketing, no spam"
827
+
828
+ #: includes/i18n.php:239
829
+ msgid "Privacy Policy"
830
+ msgstr "Privacy Policy"
831
+
832
+ #: includes/i18n.php:240
833
+ msgid "Terms of Service"
834
+ msgstr "Terms of Service"
835
+
836
+ #: includes/i18n.php:241
837
+ msgctxt "as activating plugin"
838
+ msgid "Activating"
839
+ msgstr "Activating"
840
+
841
+ #: includes/i18n.php:242
842
+ msgctxt "as in the process of sending an email"
843
+ msgid "Sending email"
844
+ msgstr "Sending email"
845
+
846
+ #: includes/i18n.php:243
847
+ msgctxt "button label"
848
+ msgid "Allow & Continue"
849
+ msgstr "Allow & Continue"
850
+
851
+ #: includes/i18n.php:244
852
+ msgctxt "button label"
853
+ msgid "Agree & Activate License"
854
+ msgstr "Agree & Activate License"
855
+
856
+ #: includes/i18n.php:245
857
+ msgctxt "verb"
858
+ msgid "Skip"
859
+ msgstr "Skip"
860
+
861
+ #: includes/i18n.php:246
862
+ msgid "Click here to use the plugin anonymously"
863
+ msgstr "Click here to use the plugin anonymously"
864
+
865
+ #: includes/i18n.php:247
866
+ msgid "Re-send activation email"
867
+ msgstr "Re-send activation email"
868
+
869
+ #: includes/i18n.php:248
870
+ msgid "License key"
871
+ msgstr "License key"
872
+
873
+ #: includes/i18n.php:249
874
+ msgid "Send License Key"
875
+ msgstr "Send License Key"
876
+
877
+ #: includes/i18n.php:250
878
+ msgid "Sending license key"
879
+ msgstr "Sending license key"
880
+
881
+ #: includes/i18n.php:251
882
+ msgid "Have a license key?"
883
+ msgstr "Have a license key?"
884
+
885
+ #: includes/i18n.php:252
886
+ msgid "Don't have a license key?"
887
+ msgstr "Don't have a license key?"
888
+
889
+ #: includes/i18n.php:253
890
+ msgid "Can't find your license key?"
891
+ msgstr "Can't find your license key?"
892
+
893
+ #: includes/i18n.php:254
894
+ msgid "We couldn't find your email address in the system, are you sure it's the right address?"
895
+ msgstr "We couldn't find your email address in the system, are you sure it's the right address?"
896
+
897
+ #: includes/i18n.php:255
898
+ msgid "We can't see any active licenses associated with that email address, are you sure it's the right address?"
899
+ msgstr "We can't see any active licenses associated with that email address, are you sure it's the right address?"
900
+
901
+ #: includes/i18n.php:256
902
+ msgid "Opt In"
903
+ msgstr "Opt In"
904
+
905
+ #: includes/i18n.php:257
906
+ msgid "Opt Out"
907
+ msgstr "Opt Out"
908
+
909
+ #: includes/i18n.php:258
910
+ msgid "On second thought - I want to continue helping"
911
+ msgstr "On second thought - I want to continue helping"
912
+
913
+ #: includes/i18n.php:259
914
+ msgid "Opting out..."
915
+ msgstr "Opting out..."
916
+
917
+ #: includes/i18n.php:260
918
+ msgid "Opting in..."
919
+ msgstr "Opting in..."
920
+
921
+ #: includes/i18n.php:261
922
+ msgid "We appreciate your help in making the %s better by letting us track some usage data."
923
+ msgstr "We appreciate your help in making the %s better by letting us track some usage data."
924
+
925
+ #: includes/i18n.php:262
926
+ msgid "Usage tracking is done in the name of making %s better. Making a better user experience, prioritizing new features, and more good things. We'd really appreciate if you'll reconsider letting us continue with the tracking."
927
+ msgstr "Usage tracking is done in the name of making %s better. Making a better user experience, prioritizing new features, and more good things. We'd really appreciate if you'll reconsider letting us continue with the tracking."
928
+
929
+ #: includes/i18n.php:263
930
+ msgid "By clicking \"Opt Out\", we will no longer be sending any data from %s to %s."
931
+ msgstr "By clicking \"Opt Out\", we will no longer be sending any data from %s to %s."
932
+
933
+ #: includes/i18n.php:267
934
+ msgid "Screenshots"
935
+ msgstr "Screenshots"
936
+
937
+ #: includes/i18n.php:268
938
+ msgid "Click to view full-size screenshot %d"
939
+ msgstr "Click to view full-size screenshot %d"
940
+
941
+ #: includes/i18n.php:272
942
+ msgid "Freemius Debug"
943
+ msgstr "Freemius Debug"
944
+
945
+ #: includes/i18n.php:273
946
+ msgctxt "as turned on"
947
+ msgid "On"
948
+ msgstr "On"
949
+
950
+ #: includes/i18n.php:274
951
+ msgctxt "as turned off"
952
+ msgid "Off"
953
+ msgstr "Off"
954
+
955
+ #: includes/i18n.php:275
956
+ msgctxt "as code debugging"
957
+ msgid "Debugging"
958
+ msgstr "Debugging"
959
+
960
+ #: includes/i18n.php:276
961
+ msgid "Freemius State"
962
+ msgstr "Freemius State"
963
+
964
+ #: includes/i18n.php:277
965
+ msgctxt "as connection was successful"
966
+ msgid "Connected"
967
+ msgstr "Connected"
968
+
969
+ #: includes/i18n.php:278
970
+ msgctxt "as connection blocked"
971
+ msgid "Blocked"
972
+ msgstr "Blocked"
973
+
974
+ #: includes/i18n.php:279
975
+ msgctxt "as application program interface"
976
+ msgid "API"
977
+ msgstr "API"
978
+
979
+ #: includes/i18n.php:280
980
+ msgctxt "as software development kit versions"
981
+ msgid "SDK"
982
+ msgstr "SDK"
983
+
984
+ #: includes/i18n.php:281
985
+ msgctxt "as software development kit versions"
986
+ msgid "SDK Versions"
987
+ msgstr "SDK Versions"
988
+
989
+ #: includes/i18n.php:282
990
+ msgctxt "as plugin folder path"
991
+ msgid "Plugin Path"
992
+ msgstr "Plugin Path"
993
+
994
+ #: includes/i18n.php:283
995
+ msgctxt "as sdk path"
996
+ msgid "SDK Path"
997
+ msgstr "SDK Path"
998
+
999
+ #: includes/i18n.php:284
1000
+ msgid "Add Ons of Plugin %s"
1001
+ msgstr "Add Ons of Plugin %s"
1002
+
1003
+ #: includes/i18n.php:285
1004
+ msgid "Are you sure you want to delete all Freemius data?"
1005
+ msgstr "Are you sure you want to delete all Freemius data?"
1006
+
1007
+ #: includes/i18n.php:286
1008
+ msgid "Actions"
1009
+ msgstr "Actions"
1010
+
1011
+ #: includes/i18n.php:287
1012
+ msgid "Delete All Accounts"
1013
+ msgstr "Delete All Accounts"
1014
+
1015
+ #: includes/i18n.php:288
1016
+ msgid "Start Fresh"
1017
+ msgstr "Start Fresh"
1018
+
1019
+ #: includes/i18n.php:289
1020
+ msgid "Clear API Cache"
1021
+ msgstr "Clear API Cache"
1022
+
1023
+ #: includes/i18n.php:290
1024
+ msgid "Sync Data From Server"
1025
+ msgstr "Sync Data From Server"
1026
+
1027
+ #: includes/i18n.php:291
1028
+ msgid "Scheduled Crons"
1029
+ msgstr "Scheduled Crons"
1030
+
1031
+ #: includes/i18n.php:292
1032
+ msgid "Cron Type"
1033
+ msgstr "Cron Type"
1034
+
1035
+ #: includes/i18n.php:293
1036
+ msgid "Plugins & Themes Sync"
1037
+ msgstr "Plugins & Themes Sync"
1038
+
1039
+ #: includes/i18n.php:294
1040
+ msgid "%s Licenses"
1041
+ msgstr "%s Licenses"
1042
+
1043
+ #: includes/i18n.php:295
1044
+ msgid "Debug Log"
1045
+ msgstr "Debug Log"
1046
+
1047
+ #: includes/i18n.php:296
1048
+ msgid "All"
1049
+ msgstr "All"
1050
+
1051
+ #: includes/i18n.php:297
1052
+ msgid "File"
1053
+ msgstr "File"
1054
+
1055
+ #: includes/i18n.php:298
1056
+ msgid "Function"
1057
+ msgstr "Function"
1058
+
1059
+ #: includes/i18n.php:299
1060
+ msgid "Process ID"
1061
+ msgstr "Process ID"
1062
+
1063
+ #: includes/i18n.php:300
1064
+ msgid "Logger"
1065
+ msgstr "Logger"
1066
+
1067
+ #: includes/i18n.php:301
1068
+ msgid "Message"
1069
+ msgstr "Message"
1070
+
1071
+ #: includes/i18n.php:302
1072
+ msgid "Download"
1073
+ msgstr "Download"
1074
+
1075
+ #: includes/i18n.php:303
1076
+ msgid "Filter"
1077
+ msgstr "Filter"
1078
+
1079
+ #: includes/i18n.php:304
1080
+ msgid "Type"
1081
+ msgstr "Type"
1082
+
1083
+ #: includes/i18n.php:305
1084
+ msgid "All Types"
1085
+ msgstr "All Types"
1086
+
1087
+ #: includes/i18n.php:306
1088
+ msgid "All Requests"
1089
+ msgstr "All Requests"
1090
+
1091
+ #: includes/i18n.php:310
1092
+ msgctxt "as congratulations"
1093
+ msgid "Congrats"
1094
+ msgstr "Congrats"
1095
+
1096
+ #: includes/i18n.php:311
1097
+ msgctxt "exclamation"
1098
+ msgid "Oops"
1099
+ msgstr "Oops"
1100
+
1101
+ #: includes/i18n.php:312
1102
+ msgctxt "interjection expressing joy or exuberance"
1103
+ msgid "Yee-haw"
1104
+ msgstr "Yee-haw"
1105
+
1106
+ #: includes/i18n.php:313
1107
+ msgctxt "(especially in electronic communication) used to express elation, enthusiasm, or triumph."
1108
+ msgid "W00t"
1109
+ msgstr "W00t"
1110
+
1111
+ #: includes/i18n.php:315
1112
+ msgctxt "a positive response"
1113
+ msgid "Right on"
1114
+ msgstr "Right on"
1115
+
1116
+ #: includes/i18n.php:316
1117
+ msgctxt "something somebody says when they are thinking about what you have just said. "
1118
+ msgid "Hmm"
1119
+ msgstr "Hmm"
1120
+
1121
+ #: includes/i18n.php:318
1122
+ msgid "O.K"
1123
+ msgstr "O.K"
1124
+
1125
+ #: includes/i18n.php:319
1126
+ msgctxt "exclamation"
1127
+ msgid "Hey"
1128
+ msgstr "Hey"
1129
+
1130
+ #: includes/i18n.php:320
1131
+ msgctxt "advance notice of something that will need attention."
1132
+ msgid "Heads up"
1133
+ msgstr "Heads up"
1134
+
1135
+ #: includes/i18n.php:325
1136
+ msgid "Seems like you got the latest release."
1137
+ msgstr "Seems like you got the latest release."
1138
+
1139
+ #: includes/i18n.php:326
1140
+ msgid "You are all good!"
1141
+ msgstr "You are all good!"
1142
+
1143
+ #: includes/i18n.php:327
1144
+ msgid "Sorry, we could not complete the email update. Another user with the same email is already registered."
1145
+ msgstr "Sorry, we could not complete the email update. Another user with the same email is already registered."
1146
+
1147
+ #: includes/i18n.php:328
1148
+ msgid "If you would like to give up the ownership of the %s's account to %s click the Change Ownership button."
1149
+ msgstr "If you would like to give up the ownership of the %s's account to %s click the Change Ownership button."
1150
+
1151
+ #: includes/i18n.php:329
1152
+ msgid "Your email was successfully updated. You should receive an email with confirmation instructions in few moments."
1153
+ msgstr "Your email was successfully updated. You should receive an email with confirmation instructions in few moments."
1154
+
1155
+ #: includes/i18n.php:330
1156
+ msgid "Your name was successfully updated."
1157
+ msgstr "Your name was successfully updated."
1158
+
1159
+ #: includes/i18n.php:331
1160
+ msgid "You have successfully updated your %s."
1161
+ msgstr "You have successfully updated your %s."
1162
+
1163
+ #: includes/i18n.php:332
1164
+ msgid "Please provide your full name."
1165
+ msgstr "Please provide your full name."
1166
+
1167
+ #: includes/i18n.php:333
1168
+ msgid "Verification mail was just sent to %s. If you can't find it after 5 min, please check your spam box."
1169
+ msgstr "Verification mail was just sent to %s. If you can't find it after 5 min, please check your spam box."
1170
+
1171
+ #: includes/i18n.php:334
1172
+ msgid "Just letting you know that the add-ons information of %s is being pulled from an external server."
1173
+ msgstr "Just letting you know that the add-ons information of %s is being pulled from an external server."
1174
+
1175
+ #: includes/i18n.php:335
1176
+ msgid "No credit card required"
1177
+ msgstr "No credit card required"
1178
+
1179
+ #: includes/i18n.php:336
1180
+ msgid "Premium %s version was successfully activated."
1181
+ msgstr "Premium %s version was successfully activated."
1182
+
1183
+ #: includes/i18n.php:337
1184
+ msgid "The upgrade of %s was successfully completed."
1185
+ msgstr "The upgrade of %s was successfully completed."
1186
+
1187
+ #: includes/i18n.php:338
1188
+ msgid "Your account was successfully activated with the %s plan."
1189
+ msgstr "Your account was successfully activated with the %s plan."
1190
+
1191
+ #: includes/i18n.php:339
1192
+ msgid "Download the latest %s version now"
1193
+ msgstr "Download the latest %s version now"
1194
+
1195
+ #: includes/i18n.php:340
1196
+ msgid "Please follow these steps to complete the upgrade"
1197
+ msgstr "Please follow these steps to complete the upgrade"
1198
+
1199
+ #: includes/i18n.php:341
1200
+ msgid "Download the latest %s version"
1201
+ msgstr "Download the latest %s version"
1202
+
1203
+ #: includes/i18n.php:342
1204
+ msgid "Download the latest version"
1205
+ msgstr "Download the latest version"
1206
+
1207
+ #: includes/i18n.php:343
1208
+ msgid "Deactivate the free version"
1209
+ msgstr "Deactivate the free version"
1210
+
1211
+ #: includes/i18n.php:344
1212
+ msgid "Upload and activate the downloaded version"
1213
+ msgstr "Upload and activate the downloaded version"
1214
+
1215
+ #: includes/i18n.php:345
1216
+ msgid "How to upload and activate?"
1217
+ msgstr "How to upload and activate?"
1218
+
1219
+ #: includes/i18n.php:346
1220
+ msgctxt "%s - product name, e.g. Facebook add-on was successfully..."
1221
+ msgid "%s Add-on was successfully purchased."
1222
+ msgstr "%s Add-on was successfully purchased."
1223
+
1224
+ #: includes/i18n.php:348
1225
+ msgid "Your %s Add-on plan was successfully upgraded."
1226
+ msgstr "Your %s Add-on plan was successfully upgraded."
1227
+
1228
+ #: includes/i18n.php:349
1229
+ msgid "Your email has been successfully verified - you are AWESOME!"
1230
+ msgstr "Your email has been successfully verified - you are AWESOME!"
1231
+
1232
+ #: includes/i18n.php:350
1233
+ msgid "Your plan was successfully upgraded."
1234
+ msgstr "Your plan was successfully upgraded."
1235
+
1236
+ #: includes/i18n.php:351
1237
+ msgid "Your plan was successfully changed to %s."
1238
+ msgstr "Your plan was successfully changed to %s."
1239
+
1240
+ #: includes/i18n.php:352
1241
+ msgid "Your license has expired. You can still continue using the free %s forever."
1242
+ msgstr "Your license has expired. You can still continue using the free %s forever."
1243
+
1244
+ #: includes/i18n.php:353
1245
+ msgid "Your license has been cancelled. If you think it's a mistake, please contact support."
1246
+ msgstr "Your license has been cancelled. If you think it's a mistake, please contact support."
1247
+
1248
+ #: includes/i18n.php:354
1249
+ msgid "Your trial has been successfully started."
1250
+ msgstr "Your trial has been successfully started."
1251
+
1252
+ #: includes/i18n.php:355
1253
+ msgid "Your license was successfully activated."
1254
+ msgstr "Your license was successfully activated."
1255
+
1256
+ #: includes/i18n.php:356
1257
+ msgid "It looks like your site currently doesn't have an active license."
1258
+ msgstr "It looks like your site currently doesn't have an active license."
1259
+
1260
+ #: includes/i18n.php:357
1261
+ msgid "Your license was successfully deactivated, you are back to the %s plan."
1262
+ msgstr "Your license was successfully deactivated, you are back to the %s plan."
1263
+
1264
+ #: includes/i18n.php:358
1265
+ msgid "It looks like the license deactivation failed."
1266
+ msgstr "It looks like the license deactivation failed."
1267
+
1268
+ #: includes/i18n.php:359
1269
+ msgid "It looks like the license could not be activated."
1270
+ msgstr "It looks like the license could not be activated."
1271
+
1272
+ #: includes/i18n.php:360
1273
+ msgid "Error received from the server:"
1274
+ msgstr "Error received from the server:"
1275
+
1276
+ #: includes/i18n.php:361
1277
+ msgid "Your trial has expired. You can still continue using all our free features."
1278
+ msgstr "Your trial has expired. You can still continue using all our free features."
1279
+
1280
+ #: includes/i18n.php:362
1281
+ msgid "Your plan was successfully downgraded. Your %s plan license will expire in %s."
1282
+ msgstr "Your plan was successfully downgraded. Your %s plan license will expire in %s."
1283
+
1284
+ #: includes/i18n.php:363
1285
+ msgid "Seems like we are having some temporary issue with your plan downgrade. Please try again in few minutes."
1286
+ msgstr "Seems like we are having some temporary issue with your plan downgrade. Please try again in few minutes."
1287
+
1288
+ #: includes/i18n.php:364
1289
+ msgid "It looks like you are not in trial mode anymore so there's nothing to cancel :)"
1290
+ msgstr "It looks like you are not in trial mode anymore so there's nothing to cancel :)"
1291
+
1292
+ #: includes/i18n.php:365
1293
+ msgid "Your %s free trial was successfully cancelled."
1294
+ msgstr "Your %s free trial was successfully cancelled."
1295
+
1296
+ #: includes/i18n.php:366
1297
+ msgctxt "%s - numeric version number"
1298
+ msgid "Version %s was released."
1299
+ msgstr "Version %s was released."
1300
+
1301
+ #: includes/i18n.php:367
1302
+ msgid "Please download %s."
1303
+ msgstr "Please download %s."
1304
+
1305
+ #: includes/i18n.php:368
1306
+ msgctxt "%s - plan name, as the latest professional version here"
1307
+ msgid "the latest %s version here"
1308
+ msgstr "the latest %s version here"
1309
+
1310
+ #: includes/i18n.php:370
1311
+ msgid "How do you like %s so far? Test all our %s premium features with a %d-day free trial."
1312
+ msgstr "How do you like %s so far? Test all our %s premium features with a %d-day free trial."
1313
+
1314
+ #: includes/i18n.php:371
1315
+ msgctxt "call to action"
1316
+ msgid "Start free trial"
1317
+ msgstr "Start free trial"
1318
+
1319
+ #: includes/i18n.php:372
1320
+ msgid "Starting trial"
1321
+ msgstr "Starting trial"
1322
+
1323
+ #: includes/i18n.php:373
1324
+ msgid "Please wait"
1325
+ msgstr "Please wait"
1326
+
1327
+ #: includes/i18n.php:374
1328
+ msgid "Seems like we are having some temporary issue with your trial cancellation. Please try again in few minutes."
1329
+ msgstr "Seems like we are having some temporary issue with your trial cancellation. Please try again in few minutes."
1330
+
1331
+ #: includes/i18n.php:375
1332
+ msgid "You already utilized a trial before."
1333
+ msgstr "You already utilized a trial before."
1334
+
1335
+ #: includes/i18n.php:376
1336
+ msgid "You are already running the %s in a trial mode."
1337
+ msgstr "You are already running the %s in a trial mode."
1338
+
1339
+ #: includes/i18n.php:377
1340
+ msgid "Plan %s do not exist, therefore, can't start a trial."
1341
+ msgstr "Plan %s do not exist, therefore, can't start a trial."
1342
+
1343
+ #: includes/i18n.php:378
1344
+ msgid "Plan %s does not support a trial period."
1345
+ msgstr "Plan %s does not support a trial period."
1346
+
1347
+ #: includes/i18n.php:379
1348
+ msgid "None of the %s's plans supports a trial period."
1349
+ msgstr "None of the %s's plans supports a trial period."
1350
+
1351
+ #: includes/i18n.php:380
1352
+ msgid "Unexpected API error. Please contact the %s's author with the following error."
1353
+ msgstr "Unexpected API error. Please contact the %s's author with the following error."
1354
+
1355
+ #: includes/i18n.php:381
1356
+ msgid "No commitment for %s days - cancel anytime!"
1357
+ msgstr "No commitment for %s days - cancel anytime!"
1358
+
1359
+ #: includes/i18n.php:382
1360
+ msgid "Your license has expired. You can still continue using all the %s features, but you'll need to renew your license to continue getting updates and support."
1361
+ msgstr "Your license has expired. You can still continue using all the %s features, but you'll need to renew your license to continue getting updates and support."
1362
+
1363
+ #: includes/i18n.php:383
1364
+ msgid "Couldn't activate %s."
1365
+ msgstr "Couldn't activate %s."
1366
+
1367
+ #: includes/i18n.php:384
1368
+ msgid "Please contact us with the following message:"
1369
+ msgstr "Please contact us with the following message:"
1370
+
1371
+ #: includes/i18n.php:385
1372
+ msgid "It looks like you are still on the %s plan. If you did upgrade or change your plan, it's probably an issue on our side - sorry."
1373
+ msgstr "It looks like you are still on the %s plan. If you did upgrade or change your plan, it's probably an issue on our side - sorry."
1374
+
1375
+ #: includes/i18n.php:386
1376
+ msgid "Please contact us here"
1377
+ msgstr "Please contact us here"
1378
+
1379
+ #: includes/i18n.php:387
1380
+ msgid "I have upgraded my account but when I try to Sync the License, the plan remains %s."
1381
+ msgstr "I have upgraded my account but when I try to Sync the License, the plan remains %s."
1382
+
1383
+ #: includes/i18n.php:390
1384
+ msgid "From unknown reason, the API connectivity test failed."
1385
+ msgstr "From unknown reason, the API connectivity test failed."
1386
+
1387
+ #: includes/i18n.php:391
1388
+ msgid "It's probably a temporary issue on our end. Just to be sure, with your permission, would it be o.k to run another connectivity test?"
1389
+ msgstr "It's probably a temporary issue on our end. Just to be sure, with your permission, would it be o.k to run another connectivity test?"
1390
+
1391
+ #: includes/i18n.php:392
1392
+ msgid "We use PHP cURL library for the API calls, which is a very common library and usually installed and activated out of the box. Unfortunately, cURL is not activated (or disabled) on your server."
1393
+ msgstr "We use PHP cURL library for the API calls, which is a very common library and usually installed and activated out of the box. Unfortunately, cURL is not activated (or disabled) on your server."
1394
+
1395
+ #: includes/i18n.php:393
1396
+ msgid "Disabled method(s):"
1397
+ msgstr "Disabled method(s):"
1398
+
1399
+ #: includes/i18n.php:394
1400
+ msgid "From unknown reason, CloudFlare, the firewall we use, blocks the connection."
1401
+ msgstr "From unknown reason, CloudFlare, the firewall we use, blocks the connection."
1402
+
1403
+ #: includes/i18n.php:395
1404
+ msgctxt "as pluginX requires an access to our API"
1405
+ msgid "%s requires an access to our API."
1406
+ msgstr "%s requires an access to our API."
1407
+
1408
+ #: includes/i18n.php:397
1409
+ msgid "It looks like your server is using Squid ACL (access control lists), which blocks the connection."
1410
+ msgstr "It looks like your server is using Squid ACL (access control lists), which blocks the connection."
1411
+
1412
+ #: includes/i18n.php:398
1413
+ msgid "I don't know what is Squid or ACL, help me!"
1414
+ msgstr "I don't know what is Squid or ACL, help me!"
1415
+
1416
+ #: includes/i18n.php:399, includes/i18n.php:403
1417
+ msgid "We'll make sure to contact your hosting company and resolve the issue. You will get a follow-up email to %s once we have an update."
1418
+ msgstr "We'll make sure to contact your hosting company and resolve the issue. You will get a follow-up email to %s once we have an update."
1419
+
1420
+ #: includes/i18n.php:400
1421
+ msgid "I'm a system administrator"
1422
+ msgstr "I'm a system administrator"
1423
+
1424
+ #: includes/i18n.php:401
1425
+ msgid "Great, please whitelist the following domains: %s. Once you are done, deactivate the %s and activate it again."
1426
+ msgstr "Great, please whitelist the following domains: %s. Once you are done, deactivate the %s and activate it again."
1427
+
1428
+ #: includes/i18n.php:402
1429
+ msgid "I don't know what is cURL or how to install it, help me!"
1430
+ msgstr "I don't know what is cURL or how to install it, help me!"
1431
+
1432
+ #: includes/i18n.php:404
1433
+ msgid "Great, please install cURL and enable it in your php.ini file. In addition, search for the 'disable_functions' directive in your php.ini file and remove any disabled methods starting with 'curl_'. To make sure it was successfully activated, use 'phpinfo()'. Once activated, deactivate the %s and reactivate it back again."
1434
+ msgstr "Great, please install cURL and enable it in your php.ini file. In addition, search for the 'disable_functions' directive in your php.ini file and remove any disabled methods starting with 'curl_'. To make sure it was successfully activated, use 'phpinfo()'. Once activated, deactivate the %s and reactivate it back again."
1435
+
1436
+ #: includes/i18n.php:405
1437
+ msgid "We are sure it's an issue on our side and more than happy to resolve it for you ASAP if you give us a chance."
1438
+ msgstr "We are sure it's an issue on our side and more than happy to resolve it for you ASAP if you give us a chance."
1439
+
1440
+ #: includes/i18n.php:406
1441
+ msgid "Sorry for the inconvenience and we are here to help if you give us a chance."
1442
+ msgstr "Sorry for the inconvenience and we are here to help if you give us a chance."
1443
+
1444
+ #: includes/i18n.php:407
1445
+ msgid "Yes - I'm giving you a chance to fix it"
1446
+ msgstr "Yes - I'm giving you a chance to fix it"
1447
+
1448
+ #: includes/i18n.php:408
1449
+ msgid "We will do our best to whitelist your server and resolve this issue ASAP. You will get a follow-up email to %s once we have an update."
1450
+ msgstr "We will do our best to whitelist your server and resolve this issue ASAP. You will get a follow-up email to %s once we have an update."
1451
+
1452
+ #: includes/i18n.php:409
1453
+ msgid "Let's try your previous version"
1454
+ msgstr "Let's try your previous version"
1455
+
1456
+ #: includes/i18n.php:410
1457
+ msgid "Uninstall this version and install the previous one."
1458
+ msgstr "Uninstall this version and install the previous one."
1459
+
1460
+ #: includes/i18n.php:411
1461
+ msgid "That's exhausting, please deactivate"
1462
+ msgstr "That's exhausting, please deactivate"
1463
+
1464
+ #: includes/i18n.php:412
1465
+ msgid "We feel your frustration and sincerely apologize for the inconvenience. Hope to see you again in the future."
1466
+ msgstr "We feel your frustration and sincerely apologize for the inconvenience. Hope to see you again in the future."
1467
+
1468
+ #: includes/i18n.php:413
1469
+ msgid "Thank for giving us the chance to fix it! A message was just sent to our technical staff. We will get back to you as soon as we have an update to %s. Appreciate your patience."
1470
+ msgstr "Thank for giving us the chance to fix it! A message was just sent to our technical staff. We will get back to you as soon as we have an update to %s. Appreciate your patience."
1471
+
1472
+ #: includes/i18n.php:414
1473
+ msgctxt "%1s - plugin title, %2s - API domain"
1474
+ msgid "Your server is blocking the access to Freemius' API, which is crucial for %1s synchronization. Please contact your host to whitelist %2s"
1475
+ msgstr "Your server is blocking the access to Freemius' API, which is crucial for %1s synchronization. Please contact your host to whitelist %2s"
1476
+
1477
+ #: includes/i18n.php:416
1478
+ msgid "It seems like one of the authentication parameters is wrong. Update your Public Key, Secret Key & User ID, and try again."
1479
+ msgstr "It seems like one of the authentication parameters is wrong. Update your Public Key, Secret Key & User ID, and try again."
1480
+
1481
+ #: includes/i18n.php:419
1482
+ msgid "Please check your mailbox, you should receive an email via %s to confirm the ownership change. From security reasons, you must confirm the change within the next 15 min. If you cannot find the email, please check your spam folder."
1483
+ msgstr "Please check your mailbox, you should receive an email via %s to confirm the ownership change. From security reasons, you must confirm the change within the next 15 min. If you cannot find the email, please check your spam folder."
1484
+
1485
+ #: includes/i18n.php:420
1486
+ msgid "Thanks for confirming the ownership change. An email was just sent to %s for final approval."
1487
+ msgstr "Thanks for confirming the ownership change. An email was just sent to %s for final approval."
1488
+
1489
+ #: includes/i18n.php:421
1490
+ msgid "%s is the new owner of the account."
1491
+ msgstr "%s is the new owner of the account."
1492
+
1493
+ #: includes/i18n.php:423
1494
+ msgctxt "addonX cannot run without pluginY"
1495
+ msgid "%s cannot run without %s."
1496
+ msgstr "%s cannot run without %s."
1497
+
1498
+ #: includes/i18n.php:425
1499
+ msgctxt "addonX cannot run..."
1500
+ msgid "%s cannot run without the plugin."
1501
+ msgstr "%s cannot run without the plugin."
1502
+
1503
+ #: includes/i18n.php:426
1504
+ msgctxt "pluginX activation was successfully..."
1505
+ msgid "%s activation was successfully completed."
1506
+ msgstr "%s activation was successfully completed."
1507
+
1508
+ #: includes/i18n.php:428
1509
+ msgctxt "Plugin installer section title"
1510
+ msgid "Features & Pricing"
1511
+ msgstr "Features & Pricing"
1512
+
1513
+ #: includes/i18n.php:429
1514
+ msgid "Add-on must be deployed to WordPress.org or Freemius."
1515
+ msgstr "Add-on must be deployed to WordPress.org or Freemius."
1516
+
1517
+ #: includes/i18n.php:430
1518
+ msgid "Paid add-on must be deployed to Freemius."
1519
+ msgstr "Paid add-on must be deployed to Freemius."
1520
+
1521
+ #: includes/i18n.php:434
1522
+ msgid "%s is a premium only add-on. You have to purchase a license first before activating the plugin."
1523
+ msgstr "%s is a premium only add-on. You have to purchase a license first before activating the plugin."
1524
+
1525
+ #: includes/i18n.php:435
1526
+ msgid "%s free trial was successfully cancelled. Since the add-on is premium only it was automatically deactivated. If you like to use it in the future, you'll have to purchase a license."
1527
+ msgstr "%s free trial was successfully cancelled. Since the add-on is premium only it was automatically deactivated. If you like to use it in the future, you'll have to purchase a license."
1528
+
1529
+ #: includes/i18n.php:440
1530
+ msgctxt "as every month"
1531
+ msgid "Monthly"
1532
+ msgstr "Monthly"
1533
+
1534
+ #: includes/i18n.php:441
1535
+ msgctxt "as monthly period"
1536
+ msgid "mo"
1537
+ msgstr "mo"
1538
+
1539
+ #: includes/i18n.php:442
1540
+ msgctxt "as once a year"
1541
+ msgid "Annual"
1542
+ msgstr "Annual"
1543
+
1544
+ #: includes/i18n.php:443
1545
+ msgctxt "as once a year"
1546
+ msgid "Annually"
1547
+ msgstr "Annually"
1548
+
1549
+ #: includes/i18n.php:444
1550
+ msgctxt "as once a year"
1551
+ msgid "Once"
1552
+ msgstr "Once"
1553
+
1554
+ #: includes/i18n.php:445
1555
+ msgctxt "as annual period"
1556
+ msgid "year"
1557
+ msgstr "year"
1558
+
1559
+ #: includes/i18n.php:446
1560
+ msgid "Lifetime"
1561
+ msgstr "Lifetime"
1562
+
1563
+ #: includes/i18n.php:447
1564
+ msgctxt "e.g. the best product"
1565
+ msgid "Best"
1566
+ msgstr "Best"
1567
+
1568
+ #: includes/i18n.php:448
1569
+ msgctxt "e.g. billed monthly"
1570
+ msgid "Billed %s"
1571
+ msgstr "Billed %s"
1572
+
1573
+ #: includes/i18n.php:449
1574
+ msgctxt "as a discount of $5 or 10%"
1575
+ msgid "Save %s"
1576
+ msgstr "Save %s"
1577
+
1578
+ #: includes/i18n.php:451
1579
+ msgid "View details"
1580
+ msgstr "View details"
1581
+
1582
+ #: includes/i18n.php:455
1583
+ msgctxt "button label"
1584
+ msgid "Approve & Start Trial"
1585
+ msgstr "Approve & Start Trial"
1586
+
1587
+ #: includes/i18n.php:457
1588
+ msgid "You are 1-click away from starting your %1$s-day free trial of the %2$s plan."
1589
+ msgstr "You are 1-click away from starting your %1$s-day free trial of the %2$s plan."
1590
+
1591
+ #: includes/i18n.php:459
1592
+ msgid "For compliance with the WordPress.org guidelines, before we start the trial we ask that you opt-in with your user and non-sensitive site information, allowing the %s to periodically send data to %s to check for version updates and to validate your trial."
1593
+ msgstr "For compliance with the WordPress.org guidelines, before we start the trial we ask that you opt-in with your user and non-sensitive site information, allowing the %s to periodically send data to %s to check for version updates and to validate your trial."
1594
+
1595
+ #: includes/i18n.php:465
1596
+ msgid "Business name"
1597
+ msgstr "Business name"
1598
+
1599
+ #: includes/i18n.php:466
1600
+ msgid "Tax / VAT ID"
1601
+ msgstr "Tax / VAT ID"
1602
+
1603
+ #: includes/i18n.php:467
1604
+ msgid "Address Line %d"
1605
+ msgstr "Address Line %d"
1606
+
1607
+ #: includes/i18n.php:468
1608
+ msgid "Country"
1609
+ msgstr "Country"
1610
+
1611
+ #: includes/i18n.php:469
1612
+ msgid "Select Country"
1613
+ msgstr "Select Country"
1614
+
1615
+ #: includes/i18n.php:470
1616
+ msgid "City"
1617
+ msgstr "City"
1618
+
1619
+ #: includes/i18n.php:471
1620
+ msgid "Town"
1621
+ msgstr "Town"
1622
+
1623
+ #: includes/i18n.php:472
1624
+ msgid "State"
1625
+ msgstr "State"
1626
+
1627
+ #: includes/i18n.php:473
1628
+ msgid "Province"
1629
+ msgstr "Province"
1630
+
1631
+ #: includes/i18n.php:474
1632
+ msgid "ZIP / Postal Code"
1633
+ msgstr "ZIP / Postal Code"
1634
+
1635
+ #: includes/i18n.php:479
1636
+ msgid "Installing plugin: %s"
1637
+ msgstr "Installing plugin: %s"
1638
+
1639
+ #: includes/i18n.php:480
1640
+ msgid "Automatic Installation"
1641
+ msgstr "Automatic Installation"
1642
+
1643
+ #: includes/i18n.php:482
1644
+ msgid "%s sec"
1645
+ msgstr "%s sec"
1646
+
1647
+ #: includes/i18n.php:483
1648
+ msgid "An automated download and installation of %s (paid version) from %s will start in %s. If you would like to do it manually - click the cancellation button now."
1649
+ msgstr "An automated download and installation of %s (paid version) from %s will start in %s. If you would like to do it manually - click the cancellation button now."
1650
+
1651
+ #: includes/i18n.php:484
1652
+ msgid "The installation process has started and may take a few minutes to complete. Please wait until it is done - do not refresh this page."
1653
+ msgstr "The installation process has started and may take a few minutes to complete. Please wait until it is done - do not refresh this page."
1654
+
1655
+ #: includes/i18n.php:485
1656
+ msgid "Cancel Installation"
1657
+ msgstr "Cancel Installation"
1658
+
1659
+ #: includes/i18n.php:486
1660
+ msgid "The remote plugin package does not contain a folder with the desired slug and renaming did not work."
1661
+ msgstr "The remote plugin package does not contain a folder with the desired slug and renaming did not work."
1662
+
1663
+ #: includes/i18n.php:487
1664
+ msgid "Invalid module ID."
1665
+ msgstr "Invalid module ID."
1666
+
1667
+ #: includes/i18n.php:488
1668
+ msgid "Auto installation only works for opted-in users."
1669
+ msgstr "Auto installation only works for opted-in users."
1670
+
1671
+ #: includes/i18n.php:489
1672
+ msgid "Premium version already active."
1673
+ msgstr "Premium version already active."
1674
+
1675
+ #: includes/i18n.php:490
1676
+ msgid "Premium add-on version already installed."
1677
+ msgstr "Premium add-on version already installed."
1678
+
1679
+ #: includes/i18n.php:491
1680
+ msgid "You do not have a valid license to access the premium version."
1681
+ msgstr "You do not have a valid license to access the premium version."
1682
+
1683
+ #: includes/i18n.php:492
1684
+ msgid "Plugin is a \"Serviceware\" which means it does not have a premium code version."
1685
+ msgstr "Plugin is a \"Serviceware\" which means it does not have a premium code version."
1686
+
1687
+ #: includes/i18n.php:496
1688
+ msgid "Secure HTTPS %s page, running from an external domain"
1689
+ msgstr "Secure HTTPS %s page, running from an external domain"
1690
+
1691
+ #: includes/i18n.php:497
1692
+ msgid "PCI compliant"
1693
+ msgstr "PCI compliant"
1694
+
1695
+ #: includes/i18n.php:498
1696
+ msgid "View paid features"
1697
+ msgstr "View paid features"
1698
+
1699
+ #: includes/i18n.php:512
1700
+ msgctxt "Plugin installer section title"
1701
+ msgid "Description"
1702
+ msgstr "Description"
1703
+
1704
+ #: includes/i18n.php:513
1705
+ msgctxt "Plugin installer section title"
1706
+ msgid "Installation"
1707
+ msgstr "Installation"
1708
+
1709
+ #: includes/i18n.php:514
1710
+ msgctxt "Plugin installer section title"
1711
+ msgid "FAQ"
1712
+ msgstr "FAQ"
1713
+
1714
+ #: includes/i18n.php:515
1715
+ msgctxt "Plugin installer section title"
1716
+ msgid "Changelog"
1717
+ msgstr "Changelog"
1718
+
1719
+ #: includes/i18n.php:516
1720
+ msgctxt "Plugin installer section title"
1721
+ msgid "Reviews"
1722
+ msgstr "Reviews"
1723
+
1724
+ #: includes/i18n.php:517
1725
+ msgctxt "Plugin installer section title"
1726
+ msgid "Other Notes"
1727
+ msgstr "Other Notes"
1728
+
1729
+ #: includes/i18n.php:519
1730
+ msgid "%s star"
1731
+ msgstr "%s star"
1732
+
1733
+ #: includes/i18n.php:521
1734
+ msgid "%s stars"
1735
+ msgstr "%s stars"
1736
+
1737
+ #: includes/i18n.php:523
1738
+ msgid "%s rating"
1739
+ msgstr "%s rating"
1740
+
1741
+ #: includes/i18n.php:525
1742
+ msgid "%s ratings"
1743
+ msgstr "%s ratings"
1744
+
1745
+ #: includes/i18n.php:527
1746
+ msgid "%s time"
1747
+ msgstr "%s time"
1748
+
1749
+ #: includes/i18n.php:529
1750
+ msgid "%s times"
1751
+ msgstr "%s times"
1752
+
1753
+ #: includes/i18n.php:531
1754
+ msgid "Click to see reviews that provided a rating of %s"
1755
+ msgstr "Click to see reviews that provided a rating of %s"
1756
+
1757
+ #: includes/i18n.php:532
1758
+ msgid "Last Updated"
1759
+ msgstr "Last Updated"
1760
+
1761
+ #: includes/i18n.php:533
1762
+ msgid "Requires WordPress Version:"
1763
+ msgstr "Requires WordPress Version:"
1764
+
1765
+ #: includes/i18n.php:534
1766
+ msgctxt "as the plugin author"
1767
+ msgid "Author:"
1768
+ msgstr "Author:"
1769
+
1770
+ #: includes/i18n.php:535
1771
+ msgid "Compatible up to:"
1772
+ msgstr "Compatible up to:"
1773
+
1774
+ #: includes/i18n.php:536
1775
+ msgid "Downloaded:"
1776
+ msgstr "Downloaded:"
1777
+
1778
+ #: includes/i18n.php:537
1779
+ msgid "WordPress.org Plugin Page"
1780
+ msgstr "WordPress.org Plugin Page"
1781
+
1782
+ #: includes/i18n.php:538
1783
+ msgid "Plugin Homepage"
1784
+ msgstr "Plugin Homepage"
1785
+
1786
+ #: includes/i18n.php:539
1787
+ msgid "Donate to this plugin"
1788
+ msgstr "Donate to this plugin"
1789
+
1790
+ #: includes/i18n.php:540
1791
+ msgid "Average Rating"
1792
+ msgstr "Average Rating"
1793
+
1794
+ #: includes/i18n.php:541
1795
+ msgid "based on %s"
1796
+ msgstr "based on %s"
1797
+
1798
+ #: includes/i18n.php:542
1799
+ msgid "Warning:"
1800
+ msgstr "Warning:"
1801
+
1802
+ #: includes/i18n.php:543
1803
+ msgid "Contributors"
1804
+ msgstr "Contributors"
1805
+
1806
+ #: includes/i18n.php:544
1807
+ msgid "Plugin Install"
1808
+ msgstr "Plugin Install"
1809
+
1810
+ #: includes/i18n.php:545
1811
+ msgid "This plugin has not been tested with your current version of WordPress."
1812
+ msgstr "This plugin has not been tested with your current version of WordPress."
1813
+
1814
+ #: includes/i18n.php:546
1815
+ msgid "This plugin has not been marked as compatible with your version of WordPress."
1816
+ msgstr "This plugin has not been marked as compatible with your version of WordPress."
1817
+
1818
+ #: includes/i18n.php:547
1819
+ msgid "Newer Version (%s) Installed"
1820
+ msgstr "Newer Version (%s) Installed"
1821
+
1822
+ #: includes/i18n.php:548
1823
+ msgid "Latest Version Installed"
1824
+ msgstr "Latest Version Installed"
freemius/languages/freemius-he.po CHANGED
@@ -1,1827 +1,1827 @@
1
- # Copyright (C) 2017 freemius
2
- # This file is distributed under the same license as the freemius package.
3
- # Translators:
4
- # Rami Yushuvaev <r_a_m_i@hotmail.com>, 2017
5
- # Vova Feldman <vova@freemius.com>, 2016
6
- msgid ""
7
- msgstr ""
8
- "Project-Id-Version: WordPress SDK\n"
9
- "Report-Msgid-Bugs-To: https://github.com/Freemius/wordpress-sdk/issues\n"
10
- "POT-Creation-Date: \n"
11
- "PO-Revision-Date: 2017-08-24 12:32+0000\n"
12
- "Last-Translator: Vova Feldman <vova@freemius.com>\n"
13
- "Language: he\n"
14
- "Language-Team: Hebrew (http://www.transifex.com/freemius/wordpress-sdk/language/he/)\n"
15
- "Content-Type: text/plain; charset=UTF-8\n"
16
- "Content-Transfer-Encoding: 8bit\n"
17
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
- "MIME-Version: 1.0\n"
19
- "X-Poedit-Basepath: ..\n"
20
- "X-Poedit-KeywordsList: _fs_text;_fs_echo;_fs_esc_attr;_fs_esc_attr_echo;_fs_esc_html;_fs_esc_html_echo;_fs_x:1,2c;_fs_ex:1,2c;_fs_esc_attr_x:1,2c;_fs_esc_html_x:1,2c;_fs_n:1,2;_fs_n_noop:1,2;_fs_nx:1,2,4c;_fs_nx_noop:1,2,3c\n"
21
- "X-Poedit-SearchPath-0: .\n"
22
- "X-Poedit-SearchPathExcluded-0: *.js\n"
23
- "X-Poedit-SourceCharset: UTF-8\n"
24
-
25
- #: includes/i18n.php:37
26
- msgid "Account"
27
- msgstr "חשבון"
28
-
29
- #: includes/i18n.php:38
30
- msgid "Add-On"
31
- msgstr "Add-On"
32
-
33
- #: includes/i18n.php:39
34
- msgid "Contact Us"
35
- msgstr "יצירת קשר"
36
-
37
- #: includes/i18n.php:40
38
- msgid "Contact Support"
39
- msgstr "צור קשר"
40
-
41
- #: includes/i18n.php:41
42
- msgid "Change Ownership"
43
- msgstr "עדכון בעלות"
44
-
45
- #: includes/i18n.php:42
46
- msgid "Support"
47
- msgstr "תמיכה"
48
-
49
- #: includes/i18n.php:43
50
- msgid "Support Forum"
51
- msgstr "פורום תמיכה"
52
-
53
- #: includes/i18n.php:44
54
- msgid "Add-Ons"
55
- msgstr "Add-Ons"
56
-
57
- #: includes/i18n.php:45
58
- msgctxt "verb"
59
- msgid "Upgrade"
60
- msgstr "שדרג"
61
-
62
- #: includes/i18n.php:46
63
- msgid "Awesome"
64
- msgstr "אדיר"
65
-
66
- #: includes/i18n.php:47
67
- msgctxt "noun"
68
- msgid "Pricing"
69
- msgstr "מחירון"
70
-
71
- #: includes/i18n.php:48
72
- msgctxt "noun"
73
- msgid "Price"
74
- msgstr "מחיר"
75
-
76
- #: includes/i18n.php:49
77
- msgid "Unlimited Updates"
78
- msgstr "עדכונים ללא הגבלה"
79
-
80
- #: includes/i18n.php:50
81
- msgctxt "verb"
82
- msgid "Downgrade"
83
- msgstr "שנמך"
84
-
85
- #: includes/i18n.php:51
86
- msgctxt "verb"
87
- msgid "Cancel Subscription"
88
- msgstr "בטל מנוי"
89
-
90
- #: includes/i18n.php:52
91
- msgid "Cancel Trial"
92
- msgstr "ביט"
93
-
94
- #: includes/i18n.php:53
95
- msgid "Free Trial"
96
- msgstr "ניסיון חינם"
97
-
98
- #: includes/i18n.php:54
99
- msgid "Start my free %s"
100
- msgstr "התחל את %s הניסיון שלי"
101
-
102
- #: includes/i18n.php:55
103
- msgid "No commitment for %s - cancel anytime"
104
- msgstr "No commitment for %s - cancel anytime"
105
-
106
- #: includes/i18n.php:56
107
- msgid "After your free %s, pay as little as %s"
108
- msgstr "After your free %s, pay as little as %s"
109
-
110
- #: includes/i18n.php:57
111
- msgid "Details"
112
- msgstr "פרטים"
113
-
114
- #: includes/i18n.php:58
115
- msgid "Account Details"
116
- msgstr "פרטי חשבון"
117
-
118
- #: includes/i18n.php:59
119
- msgctxt "verb"
120
- msgid "Delete"
121
- msgstr "מחק"
122
-
123
- #: includes/i18n.php:60
124
- msgctxt "verb"
125
- msgid "Show"
126
- msgstr "הצג"
127
-
128
- #: includes/i18n.php:61
129
- msgctxt "verb"
130
- msgid "Hide"
131
- msgstr "הסתר"
132
-
133
- #: includes/i18n.php:62
134
- msgctxt "verb"
135
- msgid "Edit"
136
- msgstr "ערוך"
137
-
138
- #: includes/i18n.php:63
139
- msgctxt "verb"
140
- msgid "Update"
141
- msgstr "עדכן"
142
-
143
- #: includes/i18n.php:64
144
- msgid "Date"
145
- msgstr "תאריך"
146
-
147
- #: includes/i18n.php:65
148
- msgid "Amount"
149
- msgstr "סכום"
150
-
151
- #: includes/i18n.php:66
152
- msgid "Invoice"
153
- msgstr "חשבונית"
154
-
155
- #: includes/i18n.php:67
156
- msgid "Billing"
157
- msgstr "בילינג"
158
-
159
- #: includes/i18n.php:68
160
- msgid "Payments"
161
- msgstr "תשלומים"
162
-
163
- #: includes/i18n.php:69
164
- msgid "Delete Account"
165
- msgstr "מחיקת חשבון"
166
-
167
- #: includes/i18n.php:70
168
- msgctxt "as close a window"
169
- msgid "Dismiss"
170
- msgstr "סגירה"
171
-
172
- #: includes/i18n.php:71
173
- msgctxt "as product pricing plan"
174
- msgid "Plan"
175
- msgstr "חבילה"
176
-
177
- #: includes/i18n.php:72
178
- msgid "Change Plan"
179
- msgstr "שינוי חבילה"
180
-
181
- #: includes/i18n.php:73
182
- msgctxt "as download professional version"
183
- msgid "Download %s Version"
184
- msgstr "הורד גרסת %s"
185
-
186
- #: includes/i18n.php:74
187
- msgctxt "as download professional version now"
188
- msgid "Download %s version now"
189
- msgstr "הורד עכשיו גרסת %s"
190
-
191
- #: includes/i18n.php:75
192
- msgctxt "as download latest version"
193
- msgid "Download Latest"
194
- msgstr "הורד גרסה אחרונה"
195
-
196
- #: includes/i18n.php:76
197
- msgctxt "E.g. you have a professional license."
198
- msgid "You have a %s license."
199
- msgstr "יש לך רישיון %s."
200
-
201
- #: includes/i18n.php:77
202
- msgid "New"
203
- msgstr "חדש"
204
-
205
- #: includes/i18n.php:78
206
- msgid "Free"
207
- msgstr "חינם"
208
-
209
- #: includes/i18n.php:79
210
- msgctxt "as trial plan"
211
- msgid "Trial"
212
- msgstr "ניסיון"
213
-
214
- #: includes/i18n.php:80
215
- msgctxt "as starting a trial plan"
216
- msgid "Start Trial"
217
- msgstr "התחל תקופת ניסיון"
218
-
219
- #: includes/i18n.php:81
220
- msgctxt "verb"
221
- msgid "Purchase"
222
- msgstr "רכישה"
223
-
224
- #: includes/i18n.php:82
225
- msgid "Purchase License"
226
- msgstr "קניית רישיון"
227
-
228
- #: includes/i18n.php:83
229
- msgctxt "verb"
230
- msgid "Buy"
231
- msgstr "קנייה"
232
-
233
- #: includes/i18n.php:84
234
- msgid "Buy License"
235
- msgstr "קניית רישיון"
236
-
237
- #: includes/i18n.php:85
238
- msgid "Single Site License"
239
- msgstr "רשיון לאתר אחד"
240
-
241
- #: includes/i18n.php:86
242
- msgid "Unlimited Licenses"
243
- msgstr "רשיונות ללא הגבלה"
244
-
245
- #: includes/i18n.php:87
246
- msgid "Up to %s Sites"
247
- msgstr "עד %s אתרים"
248
-
249
- #: includes/i18n.php:88
250
- msgid "%sRenew your license now%s to access version %s features and support."
251
- msgstr "%sRenew your license now%s to access version %s features and support."
252
-
253
- #: includes/i18n.php:89
254
- msgid "Enter the email address you've used for the upgrade below and we will resend you the license key."
255
- msgstr "Enter the email address you've used for the upgrade below and we will resend you the license key."
256
-
257
- #: includes/i18n.php:90
258
- msgctxt "e.g. Professional Plan"
259
- msgid "%s Plan"
260
- msgstr "חבילה %s"
261
-
262
- #: includes/i18n.php:91
263
- msgid "You are just one step away - %s"
264
- msgstr "You are just one step away - %s"
265
-
266
- #: includes/i18n.php:92
267
- msgctxt "%s - plugin name. As complete \"Jetpack\" activation now"
268
- msgid "Complete \"%s\" Activation Now"
269
- msgstr "השלם הפעלת \"%s\" עכשיו"
270
-
271
- #: includes/i18n.php:94
272
- msgid "We made a few tweaks to the %s, %s"
273
- msgstr "We made a few tweaks to the %s, %s"
274
-
275
- #: includes/i18n.php:95
276
- msgid "Opt-in to make \"%s\" Better!"
277
- msgstr "Opt-in to make \"%s\" Better!"
278
-
279
- #: includes/i18n.php:96
280
- msgid "Error"
281
- msgstr "שגיאה"
282
-
283
- #: includes/i18n.php:97
284
- msgid "Freemius SDK couldn't find the plugin's main file. Please contact sdk@freemius.com with the current error."
285
- msgstr "Freemius SDK couldn't find the plugin's main file. Please contact sdk@freemius.com with the current error."
286
-
287
- #: includes/i18n.php:100
288
- msgctxt "as expiration date"
289
- msgid "Expiration"
290
- msgstr "תפוגה"
291
-
292
- #: includes/i18n.php:101
293
- msgctxt "as software license"
294
- msgid "License"
295
- msgstr "רישיון"
296
-
297
- #: includes/i18n.php:102
298
- msgid "not verified"
299
- msgstr "לא מאומת"
300
-
301
- #: includes/i18n.php:103
302
- msgid "Verify Email"
303
- msgstr "אמת כתובת דוא\"ל"
304
-
305
- #: includes/i18n.php:104
306
- msgctxt "e.g. expires in 2 months"
307
- msgid "Expires in %s"
308
- msgstr "פג תוקף בעוד %s"
309
-
310
- #: includes/i18n.php:105
311
- msgctxt "e.g. auto renews in 2 months"
312
- msgid "Auto renews in %s"
313
- msgstr "עדכן אוטומטית בעוד %s"
314
-
315
- #: includes/i18n.php:106
316
- msgid "No expiration"
317
- msgstr "ללא תפוגה"
318
-
319
- #: includes/i18n.php:107
320
- msgid "Expired"
321
- msgstr "פג תוקף"
322
-
323
- #: includes/i18n.php:108
324
- msgid "Cancelled"
325
- msgstr "בוטל"
326
-
327
- #: includes/i18n.php:109
328
- msgctxt "e.g. In 2 hours"
329
- msgid "In %s"
330
- msgstr "בעוד %s"
331
-
332
- #: includes/i18n.php:110
333
- msgctxt "e.g. 2 min ago"
334
- msgid "%s ago"
335
- msgstr "לפני %s"
336
-
337
- #: includes/i18n.php:112
338
- msgid "%s or higher"
339
- msgstr "%s ומעלה"
340
-
341
- #: includes/i18n.php:113
342
- msgctxt "as plugin version"
343
- msgid "Version"
344
- msgstr "גרסה"
345
-
346
- #: includes/i18n.php:114
347
- msgid "Name"
348
- msgstr "שם"
349
-
350
- #: includes/i18n.php:115
351
- msgid "Email"
352
- msgstr "דוא\"ל"
353
-
354
- #: includes/i18n.php:116
355
- msgid "Email address"
356
- msgstr "כתובת דוא\"ל"
357
-
358
- #: includes/i18n.php:117
359
- msgid "Verified"
360
- msgstr "מאומת"
361
-
362
- #: includes/i18n.php:118
363
- msgid "Module"
364
- msgstr "מודול"
365
-
366
- #: includes/i18n.php:119
367
- msgid "Module Type"
368
- msgstr "סוג מודול"
369
-
370
- #: includes/i18n.php:120
371
- msgid "Plugin"
372
- msgstr "תוסף"
373
-
374
- #: includes/i18n.php:121
375
- msgid "Plugins"
376
- msgstr "תוספים"
377
-
378
- #: includes/i18n.php:122
379
- msgid "Theme"
380
- msgstr "תבנית"
381
-
382
- #: includes/i18n.php:123
383
- msgid "Themes"
384
- msgstr "תבניות"
385
-
386
- #: includes/i18n.php:124
387
- msgctxt "as file/folder path"
388
- msgid "Path"
389
- msgstr "נתיב"
390
-
391
- #: includes/i18n.php:125
392
- msgid "Title"
393
- msgstr "כותרת"
394
-
395
- #: includes/i18n.php:126
396
- msgid "Free version"
397
- msgstr "גירסה חינאמית"
398
-
399
- #: includes/i18n.php:127
400
- msgid "Premium version"
401
- msgstr "גירסת פרימיום"
402
-
403
- #: includes/i18n.php:128
404
- msgctxt "as WP plugin slug"
405
- msgid "Slug"
406
- msgstr "מזהה כתובת"
407
-
408
- #: includes/i18n.php:129
409
- msgid "ID"
410
- msgstr "מזהה"
411
-
412
- #: includes/i18n.php:130
413
- msgid "Users"
414
- msgstr "משתמשים"
415
-
416
- #: includes/i18n.php:131
417
- msgid "%s Installs"
418
- msgstr "%s התקנות"
419
-
420
- #: includes/i18n.php:132
421
- msgctxt "like websites"
422
- msgid "Sites"
423
- msgstr "אתרים"
424
-
425
- #: includes/i18n.php:133
426
- msgid "User ID"
427
- msgstr "מזהה משתמש"
428
-
429
- #: includes/i18n.php:134
430
- msgid "Site ID"
431
- msgstr "מזהה אתר"
432
-
433
- #: includes/i18n.php:135
434
- msgid "Public Key"
435
- msgstr "מפתח פומבי"
436
-
437
- #: includes/i18n.php:136
438
- msgid "Secret Key"
439
- msgstr "מפתח סודי"
440
-
441
- #: includes/i18n.php:137
442
- msgctxt "as secret encryption key missing"
443
- msgid "No Secret"
444
- msgstr "אין מפתח סודי"
445
-
446
- #: includes/i18n.php:138
447
- msgid "No ID"
448
- msgstr "אין מזהה"
449
-
450
- #: includes/i18n.php:139
451
- msgctxt "as synchronize license"
452
- msgid "Sync License"
453
- msgstr "סינכרן רישיון"
454
-
455
- #: includes/i18n.php:140
456
- msgctxt "as synchronize"
457
- msgid "Sync"
458
- msgstr "סינכרון"
459
-
460
- #: includes/i18n.php:141
461
- msgid "Activate License"
462
- msgstr "הפעלת רישיון"
463
-
464
- #: includes/i18n.php:142
465
- msgid "Activate Free Version"
466
- msgstr "הפעלת גירסה חינאמית"
467
-
468
- #: includes/i18n.php:143
469
- msgid "Please enter the license key that you received in the email right after the purchase:"
470
- msgstr "Please enter the license key that you received in the email right after the purchase:"
471
-
472
- #: includes/i18n.php:144
473
- msgid "Activating license..."
474
- msgstr "מפעיל רישיון..."
475
-
476
- #: includes/i18n.php:145
477
- msgid "Change License"
478
- msgstr "שינוי רישיון"
479
-
480
- #: includes/i18n.php:146
481
- msgid "Update License"
482
- msgstr "עדכון רישיון"
483
-
484
- #: includes/i18n.php:147
485
- msgid "Deactivate License"
486
- msgstr "שיחרור רישיון"
487
-
488
- #: includes/i18n.php:148
489
- msgid "Activate"
490
- msgstr "הפעלה"
491
-
492
- #: includes/i18n.php:149
493
- msgid "Deactivate"
494
- msgstr "כיבוי"
495
-
496
- #: includes/i18n.php:150
497
- msgid "Skip & Deactivate"
498
- msgstr "דלג והמשך כיבוי"
499
-
500
- #: includes/i18n.php:151
501
- msgid "Skip & %s"
502
- msgstr "דלג ו%s"
503
-
504
- #: includes/i18n.php:152
505
- msgid "No - just deactivate"
506
- msgstr "לא - פשוט כבה"
507
-
508
- #: includes/i18n.php:153
509
- msgid "Yes - do your thing"
510
- msgstr "כן - בצעו את מה שצריך"
511
-
512
- #: includes/i18n.php:154
513
- msgctxt "active mode"
514
- msgid "Active"
515
- msgstr "מופעל"
516
-
517
- #: includes/i18n.php:155
518
- msgctxt "is active mode?"
519
- msgid "Is Active"
520
- msgstr "האם פעיל"
521
-
522
- #: includes/i18n.php:156
523
- msgid "Install Now"
524
- msgstr "התקן עכשיו"
525
-
526
- #: includes/i18n.php:157
527
- msgid "Install Update Now"
528
- msgstr "התקן עדכון במיידי"
529
-
530
- #: includes/i18n.php:158
531
- msgid "More information about %s"
532
- msgstr "מידע נוסף אודות %s"
533
-
534
- #: includes/i18n.php:159
535
- msgid "Localhost"
536
- msgstr "שרת לוקאלי"
537
-
538
- #: includes/i18n.php:160
539
- msgctxt "as activate Professional plan"
540
- msgid "Activate %s Plan"
541
- msgstr "הפעל חבילה %s"
542
-
543
- #: includes/i18n.php:161
544
- msgctxt "as 5 licenses left"
545
- msgid "%s left"
546
- msgstr "נשארו %s"
547
-
548
- #: includes/i18n.php:162
549
- msgid "Last license"
550
- msgstr "רישיון אחרון"
551
-
552
- #: includes/i18n.php:163
553
- msgid "What is your %s?"
554
- msgstr "מה ה%s שלך?"
555
-
556
- #: includes/i18n.php:164
557
- msgid "Activate this add-on"
558
- msgstr "הפעל את ההרחבה"
559
-
560
- #: includes/i18n.php:165
561
- msgid "Deactivating your license will block all premium features, but will enable you to activate the license on another site. Are you sure you want to proceed?"
562
- msgstr "Deactivating your license will block all premium features, but will enable you to activate the license on another site. Are you sure you want to proceed?"
563
-
564
- #: includes/i18n.php:166
565
- msgid "Deleting the account will automatically deactivate your %s plan license so you can use it on other sites. If you want to terminate the recurring payments as well, click the \"Cancel\" button, and first \"Downgrade\" your account. Are you sure you would like to continue with the deletion?"
566
- msgstr "Deleting the account will automatically deactivate your %s plan license so you can use it on other sites. If you want to terminate the recurring payments as well, click the \"Cancel\" button, and first \"Downgrade\" your account. Are you sure you would like to continue with the deletion?"
567
-
568
- #: includes/i18n.php:167
569
- msgid "Deletion is not temporary. Only delete if you no longer want to use this %s anymore. Are you sure you would like to continue with the deletion?"
570
- msgstr "Deletion is not temporary. Only delete if you no longer want to use this %s anymore. Are you sure you would like to continue with the deletion?"
571
-
572
- #: includes/i18n.php:168
573
- msgid "Downgrading your plan will immediately stop all future recurring payments and your %s plan license will expire in %s."
574
- msgstr "Downgrading your plan will immediately stop all future recurring payments and your %s plan license will expire in %s."
575
-
576
- #: includes/i18n.php:169
577
- msgid "Cancelling the trial will immediately block access to all premium features. Are you sure?"
578
- msgstr "Cancelling the trial will immediately block access to all premium features. Are you sure?"
579
-
580
- #: includes/i18n.php:170
581
- msgid "You can still enjoy all %s features but you will not have access to %s updates and support."
582
- msgstr "You can still enjoy all %s feat