Version Description
Release Date - 11 September 2017
- Improved WooCommerce Product Bundles plugin support:
- Fixed and issue when product variations was not applied in bundled products
- Fixed an issue with products visibility on a Wishlist page
- Fixed text domains for some strings
- Added arguments for filter that make possible overriding popup notices
Download this release
Release Info
Developer | templateinvaders |
Plugin | WooCommerce Wishlist Plugin |
Version | 1.5.5 |
Comparing to | |
See all releases |
Code changes from version 1.5.4 to 1.5.5
- admin/tinvwl.class.php +403 -403
- asset/js/public.js +16 -14
- asset/js/public.min.js +1 -1
- freemius/LICENSE.txt +620 -286
- freemius/assets/css/admin/account.css +1 -1
- freemius/assets/css/admin/common.css +2 -2
- freemius/assets/css/admin/connect.css +1 -1
- freemius/assets/css/admin/dialog-boxes.css +2 -2
- freemius/assets/css/customizer.css +1 -0
- freemius/assets/img/theme-icon.png +0 -0
- freemius/assets/scss/_colors.scss +65 -65
- freemius/assets/scss/_mixins.scss +282 -282
- freemius/assets/scss/admin/_ajax-loader.scss +48 -48
- freemius/assets/scss/admin/_auto-install.scss +32 -32
- freemius/assets/scss/admin/_modal-common.scss +185 -185
- freemius/assets/scss/admin/_themes.scss +21 -0
- freemius/assets/scss/admin/account.scss +6 -0
- freemius/assets/scss/admin/common.scss +217 -172
- freemius/assets/scss/admin/connect.scss +49 -0
- freemius/assets/scss/admin/dialog-boxes.scss +6 -6
- freemius/assets/scss/customizer.scss +125 -0
- freemius/config.php +328 -327
- freemius/includes/class-freemius-abstract.php +597 -597
- freemius/includes/class-freemius.php +1828 -496
- freemius/includes/class-fs-api.php +557 -557
- freemius/includes/class-fs-logger.php +687 -687
- freemius/includes/class-fs-plugin-updater.php +37 -6
- freemius/includes/class-fs-security.php +1 -1
- freemius/includes/customizer/class-fs-customizer-support-section.php +102 -0
- freemius/includes/customizer/class-fs-customizer-upsell-control.php +157 -0
- freemius/includes/debug/class-fs-debug-bar-panel.php +64 -64
- freemius/includes/debug/debug-bar-start.php +51 -51
- freemius/includes/entities/class-fs-billing.php +1 -1
- freemius/includes/entities/class-fs-entity.php +1 -1
- freemius/includes/entities/class-fs-payment.php +1 -1
- freemius/includes/entities/class-fs-plugin-info.php +1 -1
- freemius/includes/entities/class-fs-plugin-license.php +1 -1
- freemius/includes/entities/class-fs-plugin-plan.php +1 -1
- freemius/includes/entities/class-fs-plugin-tag.php +1 -1
- freemius/includes/entities/class-fs-plugin.php +3 -1
- freemius/includes/entities/class-fs-pricing.php +1 -1
- freemius/includes/entities/class-fs-scope-entity.php +1 -1
- freemius/includes/entities/class-fs-site.php +1 -1
- freemius/includes/entities/class-fs-subscription.php +1 -1
- freemius/includes/entities/class-fs-user.php +1 -1
- freemius/includes/fs-core-functions.php +674 -629
- freemius/includes/fs-essential-functions.php +493 -458
- freemius/includes/fs-plugin-info-dialog.php +28 -22
- freemius/includes/i18n.php +49 -38
- freemius/includes/l10n.php +28 -10
- freemius/includes/managers/class-fs-admin-menu-manager.php +848 -781
- freemius/includes/managers/class-fs-admin-notice-manager.php +36 -25
- freemius/includes/managers/class-fs-cache-manager.php +50 -7
- freemius/includes/managers/class-fs-key-value-storage.php +18 -16
- freemius/includes/managers/class-fs-license-manager.php +1 -1
- freemius/includes/managers/class-fs-option-manager.php +1 -1
- freemius/includes/managers/class-fs-plan-manager.php +1 -1
- freemius/includes/managers/class-fs-plugin-manager.php +103 -37
- freemius/includes/sdk/FreemiusBase.php +39 -12
- freemius/includes/sdk/{Freemius.php → FreemiusWordPress.php} +238 -170
- freemius/includes/supplements/fs-essential-functions-1.1.7.1.php +1 -1
- freemius/languages/freemius-da_DK.mo +0 -0
- freemius/languages/freemius-da_DK.po +1826 -1790
- freemius/languages/freemius-en.mo +0 -0
- freemius/languages/freemius-en.po +1824 -1788
- freemius/languages/freemius-he.mo +0 -0
- freemius/languages/freemius-he.po +1827 -1791
- freemius/languages/freemius-it_IT.mo +0 -0
- freemius/languages/freemius-it_IT.po +0 -1671
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
|
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/js/public.js
CHANGED
@@ -384,21 +384,23 @@
|
|
384 |
$('.variations_form').each(function () {
|
385 |
var c = $(this),
|
386 |
e = c.find('.tinvwl_add_to_wishlist_button');
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
|
|
|
|
396 |
}
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
});
|
403 |
})(jQuery);
|
404 |
(function ($) {
|
384 |
$('.variations_form').each(function () {
|
385 |
var c = $(this),
|
386 |
e = c.find('.tinvwl_add_to_wishlist_button');
|
387 |
+
if (e.length) {
|
388 |
+
c.on('hide_variation', function (a) {
|
389 |
+
a.preventDefault();
|
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 |
+
});
|
403 |
+
}
|
404 |
});
|
405 |
})(jQuery);
|
406 |
(function ($) {
|
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');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');}},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);
|
freemius/LICENSE.txt
CHANGED
@@ -1,281 +1,622 @@
|
|
1 |
-
GNU GENERAL PUBLIC LICENSE
|
2 |
-
Version
|
3 |
|
4 |
-
Copyright (C)
|
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
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
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 |
-
|
25 |
-
|
26 |
-
|
27 |
|
28 |
-
To protect your rights, we need to
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
|
33 |
For example, if you distribute copies of such a program, whether
|
34 |
-
gratis or for a fee, you must
|
35 |
-
you
|
36 |
-
source code. And you must show them these terms so they
|
37 |
-
rights.
|
38 |
-
|
39 |
-
|
40 |
-
(
|
41 |
-
distribute and/or modify
|
42 |
-
|
43 |
-
|
44 |
-
that
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
The precise terms and conditions for copying, distribution and
|
57 |
modification follow.
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
this License.
|
196 |
|
197 |
-
|
198 |
-
|
199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
203 |
-
License and any other pertinent obligations, then as a consequence you
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
any
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
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
|
243 |
-
specifies a version
|
244 |
-
later version", you have the
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
|
280 |
END OF TERMS AND CONDITIONS
|
281 |
|
@@ -287,15 +628,15 @@ 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 |
-
|
291 |
the "copyright" line and a pointer to where the full notice is found.
|
292 |
|
293 |
-
{
|
294 |
-
Copyright (C) {year} {
|
295 |
|
296 |
-
This program is free software
|
297 |
it under the terms of the GNU General Public License as published by
|
298 |
-
the Free Software Foundation
|
299 |
(at your option) any later version.
|
300 |
|
301 |
This program is distributed in the hope that it will be useful,
|
@@ -303,38 +644,31 @@ the "copyright" line and a pointer to where the full notice is found.
|
|
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
|
307 |
-
with this program
|
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
|
313 |
-
when it starts in an interactive mode:
|
314 |
|
315 |
-
|
316 |
-
|
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,
|
322 |
-
be
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
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 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 |
|
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,
|
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/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 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/common.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
#iframe{line-height:0;font-size:0}.fs-full-size-wrapper{margin:
|
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}.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;box-shadow:
|
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}.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/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/customizer.css
ADDED
@@ -0,0 +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}
|
freemius/assets/img/theme-icon.png
ADDED
Binary file
|
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/_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
ADDED
@@ -0,0 +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 |
+
}
|
freemius/assets/scss/admin/account.scss
CHANGED
@@ -15,6 +15,12 @@
|
|
15 |
margin: 0 0 12px 0;
|
16 |
line-height: 1.4;
|
17 |
border-bottom: 1px solid #F1F1F1;
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
}
|
19 |
|
20 |
i.dashicons
|
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
|
freemius/assets/scss/admin/common.scss
CHANGED
@@ -1,173 +1,218 @@
|
|
1 |
-
@import "../start";
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
//
|
49 |
-
//
|
50 |
-
//
|
51 |
-
//
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
}
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
}
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
}
|
1 |
+
@import "../start";
|
2 |
+
@import "themes";
|
3 |
+
|
4 |
+
#iframe
|
5 |
+
{
|
6 |
+
line-height: 0;
|
7 |
+
font-size: 0;
|
8 |
+
}
|
9 |
+
|
10 |
+
.fs-full-size-wrapper
|
11 |
+
{
|
12 |
+
margin: 40px 0 -65px -20px;
|
13 |
+
|
14 |
+
@media (max-width: 600px) {
|
15 |
+
margin: 0 0 -65px -10px;
|
16 |
+
}
|
17 |
+
}
|
18 |
+
|
19 |
+
.fs-notice
|
20 |
+
{
|
21 |
+
position: relative;
|
22 |
+
|
23 |
+
&.fs-has-title
|
24 |
+
{
|
25 |
+
margin-bottom: 30px !important;
|
26 |
+
}
|
27 |
+
|
28 |
+
&.success
|
29 |
+
{
|
30 |
+
color: green;
|
31 |
+
// font-weight: normal;
|
32 |
+
}
|
33 |
+
|
34 |
+
&.promotion
|
35 |
+
{
|
36 |
+
border-color: $fs-notice-promotion-border-color !important;
|
37 |
+
background-color: $fs-notice-promotion-bkg !important;
|
38 |
+
}
|
39 |
+
|
40 |
+
.fs-notice-body
|
41 |
+
{
|
42 |
+
margin: .5em 0;
|
43 |
+
padding: 2px;
|
44 |
+
}
|
45 |
+
|
46 |
+
.fs-close
|
47 |
+
{
|
48 |
+
// position: absolute;
|
49 |
+
// top: 2px;
|
50 |
+
// bottom: 2px;
|
51 |
+
// right: 2px;
|
52 |
+
// min-width: 100px;
|
53 |
+
// text-align: center;
|
54 |
+
// padding-right: 2px;
|
55 |
+
cursor: pointer;
|
56 |
+
color: #aaa;
|
57 |
+
float: right;
|
58 |
+
|
59 |
+
&:hover
|
60 |
+
{
|
61 |
+
color: #666;
|
62 |
+
// background: #A9A9A9;
|
63 |
+
}
|
64 |
+
|
65 |
+
> *
|
66 |
+
{
|
67 |
+
margin-top: 7px;
|
68 |
+
display: inline-block;
|
69 |
+
}
|
70 |
+
}
|
71 |
+
|
72 |
+
label.fs-plugin-title
|
73 |
+
{
|
74 |
+
background: rgba(0, 0, 0, 0.3);
|
75 |
+
color: #fff;
|
76 |
+
padding: 2px 10px;
|
77 |
+
position: absolute;
|
78 |
+
top: 100%;
|
79 |
+
bottom: auto;
|
80 |
+
right: auto;
|
81 |
+
@include border-radius(0 0 3px 3px);
|
82 |
+
left: 10px;
|
83 |
+
font-size: 12px;
|
84 |
+
font-weight: bold;
|
85 |
+
cursor: auto;
|
86 |
+
}
|
87 |
+
}
|
88 |
+
|
89 |
+
div.fs-notice
|
90 |
+
{
|
91 |
+
&.updated,
|
92 |
+
&.success,
|
93 |
+
&.promotion
|
94 |
+
{
|
95 |
+
display: block !important;
|
96 |
+
}
|
97 |
+
}
|
98 |
+
|
99 |
+
.rtl .fs-notice
|
100 |
+
{
|
101 |
+
.fs-close
|
102 |
+
{
|
103 |
+
// left: 2px;
|
104 |
+
// right: auto;
|
105 |
+
// padding-right: 0;
|
106 |
+
// padding-left: 2px;
|
107 |
+
float: left;
|
108 |
+
}
|
109 |
+
}
|
110 |
+
|
111 |
+
.fs-secure-notice
|
112 |
+
{
|
113 |
+
position: fixed;
|
114 |
+
top: 32px;
|
115 |
+
left: 160px;
|
116 |
+
right: 0;
|
117 |
+
background: rgb(235, 253, 235);
|
118 |
+
padding: 10px 20px;
|
119 |
+
color: green;
|
120 |
+
z-index: 9999;
|
121 |
+
@include box-shadow(0 2px 2px rgba(6, 113, 6, 0.3));
|
122 |
+
@include opacity(0.95);
|
123 |
+
|
124 |
+
&:hover
|
125 |
+
{
|
126 |
+
@include opacity(1);
|
127 |
+
}
|
128 |
+
|
129 |
+
a.fs-security-proof
|
130 |
+
{
|
131 |
+
color: green;
|
132 |
+
text-decoration: none;
|
133 |
+
}
|
134 |
+
}
|
135 |
+
|
136 |
+
@media screen and (max-width: 960px) {
|
137 |
+
.fs-secure-notice
|
138 |
+
{
|
139 |
+
left: 36px;
|
140 |
+
}
|
141 |
+
}
|
142 |
+
|
143 |
+
@media screen and (max-width: 600px) {
|
144 |
+
.fs-secure-notice
|
145 |
+
{
|
146 |
+
display: none;
|
147 |
+
}
|
148 |
+
}
|
149 |
+
|
150 |
+
@media screen and (max-width: 500px) {
|
151 |
+
#fs_promo_tab
|
152 |
+
{
|
153 |
+
display: none;
|
154 |
+
}
|
155 |
+
}
|
156 |
+
|
157 |
+
@media screen and (max-width: 782px) {
|
158 |
+
.fs-secure-notice
|
159 |
+
{
|
160 |
+
left: 0;
|
161 |
+
top: 46px;
|
162 |
+
text-align: center;
|
163 |
+
}
|
164 |
+
}
|
165 |
+
|
166 |
+
span.fs-submenu-item.fs-sub:before
|
167 |
+
{
|
168 |
+
// Add small arrow.
|
169 |
+
content: '\21B3';
|
170 |
+
padding: 0 5px;
|
171 |
+
}
|
172 |
+
|
173 |
+
.rtl
|
174 |
+
{
|
175 |
+
span.fs-submenu-item.fs-sub:before
|
176 |
+
{
|
177 |
+
// Add small RTL arrow.
|
178 |
+
content: '\21B2';
|
179 |
+
}
|
180 |
+
}
|
181 |
+
|
182 |
+
.fs-submenu-item
|
183 |
+
{
|
184 |
+
&.pricing
|
185 |
+
{
|
186 |
+
&.upgrade-mode
|
187 |
+
{
|
188 |
+
color: greenyellow;
|
189 |
+
}
|
190 |
+
|
191 |
+
&.trial-mode
|
192 |
+
{
|
193 |
+
color: #83e2ff;
|
194 |
+
}
|
195 |
+
}
|
196 |
+
}
|
197 |
+
|
198 |
+
#adminmenu .update-plugins.fs-trial
|
199 |
+
{
|
200 |
+
background-color: #00b9eb;
|
201 |
+
}
|
202 |
+
.fs-ajax-spinner
|
203 |
+
{
|
204 |
+
border: 0;
|
205 |
+
width: 20px;
|
206 |
+
height: 20px;
|
207 |
+
margin-right: 5px;
|
208 |
+
vertical-align: sub;
|
209 |
+
display: inline-block;
|
210 |
+
background: url('../../../../../../../wp-admin/images/wpspin_light-2x.gif');
|
211 |
+
background-size: contain;
|
212 |
+
}
|
213 |
+
|
214 |
+
.wrap.fs-section {
|
215 |
+
h2 {
|
216 |
+
text-align: left;
|
217 |
+
}
|
218 |
}
|
freemius/assets/scss/admin/connect.scss
CHANGED
@@ -405,6 +405,55 @@ $form_width: 480px;
|
|
405 |
}
|
406 |
}
|
407 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
408 |
.wp-pointer-content
|
409 |
{
|
410 |
#fs_connect
|
405 |
}
|
406 |
}
|
407 |
|
408 |
+
#fs_theme_connect_wrapper {
|
409 |
+
position: fixed;
|
410 |
+
top: 0;
|
411 |
+
height: 100%;
|
412 |
+
width: 100%;
|
413 |
+
z-index: 99990;
|
414 |
+
background: rgba(0, 0, 0, 0.75);
|
415 |
+
text-align: center;
|
416 |
+
overflow-y: auto;
|
417 |
+
|
418 |
+
&:before {
|
419 |
+
content: "";
|
420 |
+
display: inline-block;
|
421 |
+
vertical-align: middle;
|
422 |
+
height: 100%;
|
423 |
+
}
|
424 |
+
|
425 |
+
> button.close {
|
426 |
+
color: white;
|
427 |
+
cursor: pointer;
|
428 |
+
height: 40px;
|
429 |
+
width: 40px;
|
430 |
+
position: absolute;
|
431 |
+
right: 0;
|
432 |
+
border: 0;
|
433 |
+
background-color: transparent;
|
434 |
+
top: 32px;
|
435 |
+
}
|
436 |
+
|
437 |
+
#fs_connect {
|
438 |
+
top: 0;
|
439 |
+
text-align: left;
|
440 |
+
display: inline-block;
|
441 |
+
vertical-align: middle;
|
442 |
+
margin-top: 52px;
|
443 |
+
margin-bottom: 20px;
|
444 |
+
|
445 |
+
.fs-terms
|
446 |
+
{
|
447 |
+
background: rgba(140, 140, 140, 0.64);
|
448 |
+
|
449 |
+
&, a
|
450 |
+
{
|
451 |
+
color: #c5c5c5;
|
452 |
+
}
|
453 |
+
}
|
454 |
+
}
|
455 |
+
}
|
456 |
+
|
457 |
.wp-pointer-content
|
458 |
{
|
459 |
#fs_connect
|
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
ADDED
@@ -0,0 +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 |
+
}
|
freemius/config.php
CHANGED
@@ -1,327 +1,328 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* @package Freemius
|
4 |
-
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
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( '
|
130 |
-
define( '
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
( isset( $_SERVER['
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
(
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
*
|
255 |
-
*
|
256 |
-
|
257 |
-
|
258 |
-
define( '
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
define( '
|
265 |
-
define( '
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
define( '
|
272 |
-
define( '
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
|
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
|
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-freemius.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.3
|
7 |
*/
|
8 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -67,6 +67,12 @@
|
|
67 |
* @var string
|
68 |
*/
|
69 |
private $_plugin_name;
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
#endregion Plugin Info
|
72 |
|
@@ -162,6 +168,12 @@
|
|
162 |
*/
|
163 |
private $_storage;
|
164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
/**
|
166 |
* @since 1.0.0
|
167 |
*
|
@@ -247,6 +259,13 @@
|
|
247 |
*/
|
248 |
private static $_accounts;
|
249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
/**
|
251 |
* @var Freemius[]
|
252 |
*/
|
@@ -281,19 +300,27 @@
|
|
281 |
* @author Vova Feldman (@svovaf)
|
282 |
* @since 1.0.0
|
283 |
*
|
284 |
-
* @param
|
285 |
-
* @param bool
|
|
|
286 |
*/
|
287 |
-
private function __construct( $slug, $is_init = false ) {
|
288 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
|
290 |
-
$this->
|
|
|
291 |
|
292 |
-
$this->
|
293 |
|
294 |
$this->_plugin_main_file_path = $this->_find_caller_plugin_file( $is_init );
|
295 |
$this->_plugin_dir_path = plugin_dir_path( $this->_plugin_main_file_path );
|
296 |
-
$this->_plugin_basename =
|
297 |
$this->_free_plugin_basename = str_replace( '-premium/', '/', $this->_plugin_basename );
|
298 |
|
299 |
$base_name_split = explode( '/', $this->_plugin_basename );
|
@@ -315,17 +342,28 @@
|
|
315 |
$this->_storage->install_timestamp = WP_FS__SCRIPT_START_TIME;
|
316 |
}
|
317 |
|
318 |
-
|
|
|
|
|
319 |
|
320 |
$this->_admin_notices = FS_Admin_Notice_Manager::instance(
|
321 |
-
$
|
322 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
323 |
);
|
324 |
|
325 |
if ( 'true' === fs_request_get( 'fs_clear_api_cache' ) ||
|
326 |
'true' === fs_request_is_action( 'restart_freemius' )
|
327 |
) {
|
328 |
FS_Api::clear_cache();
|
|
|
329 |
}
|
330 |
|
331 |
$this->_register_hooks();
|
@@ -336,7 +374,7 @@
|
|
336 |
}
|
337 |
|
338 |
/**
|
339 |
-
* Checks whether this
|
340 |
*
|
341 |
* @author Leo Fajardo (@leorw)
|
342 |
* @since 1.2.2
|
@@ -344,36 +382,88 @@
|
|
344 |
* @return bool
|
345 |
*/
|
346 |
function has_settings_menu() {
|
347 |
-
/**
|
348 |
-
* At the moment the wp.org require to show the opt-in in
|
349 |
-
* the themes page. Therefore, if the theme is .org compliant,
|
350 |
-
* treat it as if it doesn't have a menu item.
|
351 |
-
*/
|
352 |
-
if ( $this->is_theme() && $this->is_org_repo_compliant() ) {
|
353 |
-
return false;
|
354 |
-
}
|
355 |
-
|
356 |
return $this->_menu->has_menu();
|
357 |
}
|
358 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
/**
|
360 |
* Checks whether this a submenu item is visible.
|
361 |
*
|
362 |
* @author Vova Feldman (@svovaf)
|
363 |
* @since 1.2.2.6
|
|
|
364 |
*
|
365 |
* @param string $slug
|
366 |
*
|
367 |
* @return bool
|
368 |
*/
|
369 |
function is_submenu_item_visible( $slug ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
370 |
if ( ! $this->has_settings_menu() ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
371 |
return false;
|
372 |
}
|
373 |
|
374 |
return $this->_menu->is_submenu_item_visible( $slug );
|
375 |
}
|
376 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
377 |
/**
|
378 |
* @author Vova Feldman (@svovaf)
|
379 |
* @since 1.0.9
|
@@ -461,6 +551,22 @@
|
|
461 |
}
|
462 |
}
|
463 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
464 |
/**
|
465 |
* This action is connected to the 'plugins_loaded' hook and helps to determine
|
466 |
* if this is a new plugin installation or a plugin update.
|
@@ -504,7 +610,18 @@
|
|
504 |
// Update flag that plugin was loaded with Freemius at least once.
|
505 |
$this->_storage->was_plugin_loaded = true;
|
506 |
|
507 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
508 |
$this->_storage->is_plugin_new_install = false;
|
509 |
}
|
510 |
}
|
@@ -517,22 +634,57 @@
|
|
517 |
$this->_logger->entrance();
|
518 |
|
519 |
if ( is_admin() ) {
|
520 |
-
|
|
|
521 |
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
536 |
|
537 |
/**
|
538 |
* Part of the mechanism to identify new plugin install vs. plugin update.
|
@@ -541,7 +693,10 @@
|
|
541 |
* @since 1.1.9
|
542 |
*/
|
543 |
if ( empty( $this->_storage->was_plugin_loaded ) ) {
|
544 |
-
if ( $this->
|
|
|
|
|
|
|
545 |
add_action( 'plugins_loaded', array( &$this, '_plugins_loaded' ) );
|
546 |
} else {
|
547 |
// If was activated before, then it was already loaded before.
|
@@ -552,12 +707,18 @@
|
|
552 |
if ( ! self::is_ajax() ) {
|
553 |
if ( ! $this->is_addon() ) {
|
554 |
add_action( 'init', array( &$this, '_add_default_submenu_items' ), WP_FS__LOWEST_PRIORITY );
|
555 |
-
add_action( 'admin_menu', array( &$this, '_prepare_admin_menu' ), WP_FS__LOWEST_PRIORITY );
|
556 |
}
|
557 |
}
|
558 |
}
|
559 |
|
560 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
561 |
|
562 |
add_action( 'init', array( &$this, '_redirect_on_clicked_menu_link' ), WP_FS__LOWEST_PRIORITY );
|
563 |
|
@@ -574,6 +735,8 @@
|
|
574 |
$this->add_action( 'after_plans_sync', array( &$this, '_check_for_trial_plans' ) );
|
575 |
|
576 |
$this->add_action( 'sdk_version_update', array( &$this, '_data_migration' ), WP_FS__DEFAULT_PRIORITY, 2 );
|
|
|
|
|
577 |
|
578 |
add_action( 'admin_init', array( &$this, '_add_trial_notice' ) );
|
579 |
add_action( 'admin_init', array( &$this, '_enqueue_common_css' ) );
|
@@ -585,7 +748,7 @@
|
|
585 |
* @since 1.2.1.5
|
586 |
*/
|
587 |
if ( fs_request_is_action( 'reset_anonymous_mode' ) &&
|
588 |
-
$this->
|
589 |
) {
|
590 |
add_action( 'admin_init', array( &$this, 'connect_again' ) );
|
591 |
}
|
@@ -628,6 +791,16 @@
|
|
628 |
unset( $plugin_main_file->path );
|
629 |
|
630 |
$this->_storage->plugin_main_file = $plugin_main_file;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
631 |
}
|
632 |
|
633 |
/**
|
@@ -650,15 +823,11 @@
|
|
650 |
array( &$this, '_submit_uninstall_reason_action' )
|
651 |
);
|
652 |
|
653 |
-
if ( $this->is_plugins_page() )
|
|
|
|
|
654 |
add_action( 'admin_footer', array( &$this, '_add_deactivation_feedback_dialog_box' ) );
|
655 |
}
|
656 |
-
|
657 |
-
if ( ! $this->is_addon() ) {
|
658 |
-
if ( $this->is_registered() ) {
|
659 |
-
$this->add_filter( 'after_code_type_change', array( &$this, '_after_code_type_change' ) );
|
660 |
-
}
|
661 |
-
}
|
662 |
}
|
663 |
|
664 |
/**
|
@@ -667,11 +836,9 @@
|
|
667 |
* @author Vova Feldman (@svovaf)
|
668 |
* @since 1.0.6
|
669 |
*
|
670 |
-
* @param
|
671 |
*
|
672 |
* @return string
|
673 |
-
*
|
674 |
-
* @uses fs_find_caller_plugin_file
|
675 |
*/
|
676 |
private function _find_caller_plugin_file( $is_init = false ) {
|
677 |
// Try to load the cached value of the file path.
|
@@ -716,29 +883,60 @@
|
|
716 |
* Only the original instantiator that calls dynamic_init can modify the module's path.
|
717 |
*/
|
718 |
// Find caller module.
|
719 |
-
$
|
720 |
-
$plugin_file = $file_and_type->path;
|
721 |
-
|
722 |
$this->_storage->plugin_main_file = (object) array(
|
723 |
-
'path' =>
|
724 |
);
|
725 |
|
726 |
-
return $
|
727 |
}
|
728 |
|
729 |
/**
|
730 |
-
*
|
|
|
|
|
|
|
731 |
*
|
732 |
-
* @
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
733 |
*
|
734 |
-
* @author
|
735 |
-
* @since
|
736 |
*
|
737 |
-
* @author
|
738 |
-
* @since
|
739 |
-
*
|
740 |
-
*
|
741 |
-
* @since
|
742 |
*/
|
743 |
private function get_caller_main_file_and_type() {
|
744 |
self::require_plugin_essentials();
|
@@ -765,6 +963,7 @@
|
|
765 |
$caller_file_candidate = false;
|
766 |
$caller_map = array();
|
767 |
$module_type = WP_FS__MODULE_TYPE_PLUGIN;
|
|
|
768 |
|
769 |
for ( $i = 1, $bt = debug_backtrace(), $len = count( $bt ); $i < $len; $i ++ ) {
|
770 |
if ( empty( $bt[ $i ]['file'] ) ) {
|
@@ -779,10 +978,12 @@
|
|
779 |
if ( ! empty( $bt[ $i ]['function'] ) && in_array( $bt[ $i ]['function'], array(
|
780 |
'do_action',
|
781 |
'apply_filter',
|
782 |
-
|
783 |
-
|
784 |
-
'
|
785 |
-
'
|
|
|
|
|
786 |
) )
|
787 |
) {
|
788 |
// Ignore call stack hooks and files inclusion.
|
@@ -790,6 +991,23 @@
|
|
790 |
}
|
791 |
|
792 |
$caller_file_path = fs_normalize_path( $bt[ $i ]['file'] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
793 |
$caller_file_hash = md5( $caller_file_path );
|
794 |
|
795 |
if ( ! isset( $caller_map[ $caller_file_hash ] ) ) {
|
@@ -807,11 +1025,6 @@
|
|
807 |
}
|
808 |
}
|
809 |
|
810 |
-
if ( empty( $caller_file_candidate ) ) {
|
811 |
-
// Throw an error to the developer in case of some edge case dev environment.
|
812 |
-
wp_die( $this->get_text( 'failed-finding-main-path' ), $this->get_text( 'error' ), array( 'back_link' => true ) );
|
813 |
-
}
|
814 |
-
|
815 |
return (object) array(
|
816 |
'module_type' => $module_type,
|
817 |
'path' => $caller_file_candidate
|
@@ -868,7 +1081,7 @@
|
|
868 |
// Load the HTML template for the deactivation feedback dialog box.
|
869 |
$vars = array(
|
870 |
'reasons' => $uninstall_reasons,
|
871 |
-
'
|
872 |
);
|
873 |
|
874 |
/**
|
@@ -886,8 +1099,10 @@
|
|
886 |
* @return array The uninstall reasons for the specified user type.
|
887 |
*/
|
888 |
function _get_uninstall_reasons( $user_type = 'long-term' ) {
|
|
|
|
|
889 |
$internal_message_template_var = array(
|
890 |
-
'
|
891 |
);
|
892 |
|
893 |
if ( $this->is_registered() && false !== $this->get_plan() && $this->get_plan()->has_technical_support() ) {
|
@@ -898,14 +1113,20 @@
|
|
898 |
|
899 |
$reason_found_better_plugin = array(
|
900 |
'id' => self::REASON_FOUND_A_BETTER_PLUGIN,
|
901 |
-
'text' => $this->get_text( 'reason-found-a-better-plugin' ),
|
902 |
'input_type' => 'textfield',
|
903 |
-
'input_placeholder' => $this->get_text( 'placeholder-plugin-name' )
|
904 |
);
|
905 |
|
906 |
$reason_temporary_deactivation = array(
|
907 |
'id' => self::REASON_TEMPORARY_DEACTIVATION,
|
908 |
-
'text' =>
|
|
|
|
|
|
|
|
|
|
|
|
|
909 |
'input_type' => '',
|
910 |
'input_placeholder' => ''
|
911 |
);
|
@@ -920,27 +1141,27 @@
|
|
920 |
$long_term_user_reasons = array(
|
921 |
array(
|
922 |
'id' => self::REASON_NO_LONGER_NEEDED,
|
923 |
-
'text' => $this->get_text( 'reason-no-longer-needed' ),
|
924 |
'input_type' => '',
|
925 |
'input_placeholder' => ''
|
926 |
),
|
927 |
$reason_found_better_plugin,
|
928 |
array(
|
929 |
'id' => self::REASON_NEEDED_FOR_A_SHORT_PERIOD,
|
930 |
-
'text' => $this->get_text( 'reason-needed-for-a-short-period' ),
|
931 |
'input_type' => '',
|
932 |
'input_placeholder' => ''
|
933 |
),
|
934 |
array(
|
935 |
'id' => self::REASON_BROKE_MY_SITE,
|
936 |
-
'text' => $this->get_text( 'reason-broke-my-site' ),
|
937 |
'input_type' => '',
|
938 |
'input_placeholder' => '',
|
939 |
'internal_message' => $contact_support_template
|
940 |
),
|
941 |
array(
|
942 |
'id' => self::REASON_SUDDENLY_STOPPED_WORKING,
|
943 |
-
'text' => $this->get_text( 'reason-suddenly-stopped-working' ),
|
944 |
'input_type' => '',
|
945 |
'input_placeholder' => '',
|
946 |
'internal_message' => $contact_support_template
|
@@ -979,7 +1200,7 @@
|
|
979 |
'non-registered-and-non-anonymous-short-term' => array(
|
980 |
array(
|
981 |
'id' => self::REASON_DIDNT_WORK,
|
982 |
-
'text' => $this->get_text( 'reason-didnt-work' ),
|
983 |
'input_type' => '',
|
984 |
'input_placeholder' => ''
|
985 |
),
|
@@ -997,13 +1218,13 @@
|
|
997 |
$reason_found_better_plugin,
|
998 |
array(
|
999 |
'id' => self::REASON_GREAT_BUT_NEED_SPECIFIC_FEATURE,
|
1000 |
-
'text' => $this->get_text( 'reason-great-but-need-specific-feature' ),
|
1001 |
'input_type' => 'textarea',
|
1002 |
'input_placeholder' => $this->get_text( 'placeholder-feature' )
|
1003 |
),
|
1004 |
array(
|
1005 |
'id' => self::REASON_NOT_WORKING,
|
1006 |
-
'text' => $this->get_text( 'reason-not-working' ),
|
1007 |
'input_type' => 'textarea',
|
1008 |
'input_placeholder' => $this->get_text( 'placeholder-share-what-didnt-work' )
|
1009 |
),
|
@@ -1015,7 +1236,7 @@
|
|
1015 |
),
|
1016 |
array(
|
1017 |
'id' => self::REASON_DIDNT_WORK_AS_EXPECTED,
|
1018 |
-
'text' => $this->get_text( 'reason-didnt-work-as-expected' ),
|
1019 |
'input_type' => 'textarea',
|
1020 |
'input_placeholder' => $this->get_text( 'placeholder-what-did-you-expect' )
|
1021 |
)
|
@@ -1065,6 +1286,18 @@
|
|
1065 |
|
1066 |
$this->_storage->store( 'uninstall_reason', $reason );
|
1067 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1068 |
// Print '1' for successful operation.
|
1069 |
echo 1;
|
1070 |
exit;
|
@@ -1082,41 +1315,76 @@
|
|
1082 |
* @author Vova Feldman (@svovaf)
|
1083 |
* @since 1.0.0
|
1084 |
*
|
1085 |
-
* @param
|
1086 |
-
* @param
|
|
|
1087 |
*
|
1088 |
* @return Freemius|false
|
1089 |
*/
|
1090 |
-
static function instance( $slug, $is_init = false ) {
|
1091 |
-
if ( empty( $
|
1092 |
return false;
|
1093 |
}
|
1094 |
|
1095 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1096 |
|
1097 |
-
|
|
|
|
|
1098 |
if ( 0 === count( self::$_instances ) ) {
|
1099 |
self::_load_required_static();
|
1100 |
}
|
1101 |
|
1102 |
-
self::$_instances[ $
|
1103 |
}
|
1104 |
|
1105 |
-
return self::$_instances[ $
|
1106 |
}
|
1107 |
|
1108 |
/**
|
1109 |
* @author Vova Feldman (@svovaf)
|
1110 |
* @since 1.0.6
|
1111 |
*
|
1112 |
-
* @param
|
1113 |
*
|
1114 |
* @return bool
|
1115 |
*/
|
1116 |
-
private static function has_instance( $
|
1117 |
-
return
|
1118 |
-
|
1119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1120 |
}
|
1121 |
|
1122 |
/**
|
@@ -1128,13 +1396,9 @@
|
|
1128 |
* @return false|Freemius
|
1129 |
*/
|
1130 |
static function get_instance_by_id( $id ) {
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
}
|
1135 |
-
}
|
1136 |
-
|
1137 |
-
return false;
|
1138 |
}
|
1139 |
|
1140 |
/**
|
@@ -1150,7 +1414,7 @@
|
|
1150 |
$slug = self::find_slug_by_basename( $plugin_file );
|
1151 |
|
1152 |
return ( false !== $slug ) ?
|
1153 |
-
self::instance( $slug ) :
|
1154 |
false;
|
1155 |
}
|
1156 |
|
@@ -1168,14 +1432,14 @@
|
|
1168 |
* @author Vova Feldman (@svovaf)
|
1169 |
* @since 1.0.6
|
1170 |
*
|
1171 |
-
* @param
|
1172 |
*
|
1173 |
-
* @return
|
1174 |
*/
|
1175 |
-
function get_addon_instance( $
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
}
|
1180 |
|
1181 |
#endregion ------------------------------------------------------------------
|
@@ -1187,7 +1451,35 @@
|
|
1187 |
* @return bool
|
1188 |
*/
|
1189 |
function is_parent_plugin_installed() {
|
1190 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1191 |
}
|
1192 |
|
1193 |
/**
|
@@ -1220,7 +1512,7 @@
|
|
1220 |
function is_activation_mode( $and_on = true ) {
|
1221 |
return (
|
1222 |
( $this->is_on() || ! $and_on ) &&
|
1223 |
-
! $this->is_registered() &&
|
1224 |
( ! $this->is_enable_anonymous() ||
|
1225 |
( ! $this->is_anonymous() && ! $this->is_pending_activation() ) )
|
1226 |
);
|
@@ -1244,7 +1536,7 @@
|
|
1244 |
}
|
1245 |
|
1246 |
// Check if current page is matching the activation page.
|
1247 |
-
return $this->is_matching_url( $
|
1248 |
}
|
1249 |
|
1250 |
/**
|
@@ -1258,12 +1550,16 @@
|
|
1258 |
* @author Vova Feldman (@svovaf)
|
1259 |
* @since 1.2.1.7
|
1260 |
*
|
1261 |
-
* @param string $url
|
1262 |
* @param string $sub_url
|
|
|
1263 |
*
|
1264 |
* @return bool
|
1265 |
*/
|
1266 |
-
private function is_matching_url( $
|
|
|
|
|
|
|
|
|
1267 |
$url = strtolower( $url );
|
1268 |
$sub_url = strtolower( $sub_url );
|
1269 |
|
@@ -1417,9 +1713,6 @@
|
|
1417 |
|
1418 |
self::$_global_admin_notices = FS_Admin_Notice_Manager::instance( 'global' );
|
1419 |
|
1420 |
-
// Configure which Freemius powered plugins should be auto updated.
|
1421 |
-
// add_filter( 'auto_update_plugin', '_include_plugins_in_auto_update', 10, 2 );
|
1422 |
-
|
1423 |
add_action( 'admin_menu', array( 'Freemius', '_add_debug_section' ) );
|
1424 |
|
1425 |
add_action( "wp_ajax_fs_toggle_debug_mode", array( 'Freemius', '_toggle_debug_mode' ) );
|
@@ -1430,7 +1723,9 @@
|
|
1430 |
|
1431 |
self::add_ajax_action_static( 'set_db_option', array( 'Freemius', '_set_db_option' ) );
|
1432 |
|
1433 |
-
|
|
|
|
|
1434 |
|
1435 |
self::$_statics_loaded = true;
|
1436 |
}
|
@@ -1471,7 +1766,9 @@
|
|
1471 |
* @since 1.0.8
|
1472 |
*/
|
1473 |
static function _add_debug_section() {
|
1474 |
-
if ( ! current_user_can( 'activate_plugins' )
|
|
|
|
|
1475 |
return;
|
1476 |
}
|
1477 |
|
@@ -1479,8 +1776,6 @@
|
|
1479 |
|
1480 |
$title = sprintf( '%s [v.%s]', fs_text( 'freemius-debug' ), WP_FS__SDK_VERSION );
|
1481 |
|
1482 |
-
$hook = null;
|
1483 |
-
|
1484 |
if ( WP_FS__DEV_MODE ) {
|
1485 |
// Add top-level debug menu item.
|
1486 |
$hook = FS_Admin_Menu_Manager::add_page(
|
@@ -1491,17 +1786,15 @@
|
|
1491 |
array( 'Freemius', '_debug_page_render' )
|
1492 |
);
|
1493 |
} else {
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
);
|
1504 |
-
}
|
1505 |
}
|
1506 |
|
1507 |
if ( ! empty( $hook ) ) {
|
@@ -1579,7 +1872,6 @@
|
|
1579 |
self::shoot_ajax_success();
|
1580 |
}
|
1581 |
|
1582 |
-
|
1583 |
/**
|
1584 |
* @author Vova Feldman (@svovaf)
|
1585 |
* @since 1.0.8
|
@@ -1598,14 +1890,19 @@
|
|
1598 |
} else if ( fs_request_is_action( 'simulate_trial' ) ) {
|
1599 |
check_admin_referer( 'simulate_trial' );
|
1600 |
|
1601 |
-
$
|
1602 |
-
|
1603 |
-
$fs = freemius( $slug );
|
1604 |
|
1605 |
// Update SDK install to at least 24 hours before.
|
1606 |
$fs->_storage->install_timestamp = ( time() - WP_FS__TIME_24_HOURS_IN_SEC );
|
1607 |
// Unset the trial shown timestamp.
|
1608 |
unset( $fs->_storage->trial_promotion_shown );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1609 |
} else if ( fs_request_is_action( 'download_logs' ) ) {
|
1610 |
check_admin_referer( 'download_logs' );
|
1611 |
|
@@ -1629,11 +1926,13 @@
|
|
1629 |
self::$_static_logger->entrance();
|
1630 |
|
1631 |
$vars = array(
|
1632 |
-
'
|
1633 |
-
'
|
1634 |
-
'
|
1635 |
-
'
|
1636 |
-
'
|
|
|
|
|
1637 |
);
|
1638 |
|
1639 |
fs_enqueue_local_style( 'fs_debug', '/admin/debug.css' );
|
@@ -1753,7 +2052,7 @@
|
|
1753 |
'sdk' => $this->version,
|
1754 |
'is_admin' => json_encode( is_admin() ),
|
1755 |
'is_ajax' => json_encode( self::is_ajax() ),
|
1756 |
-
'is_cron' => json_encode(
|
1757 |
'is_http' => json_encode( WP_FS__IS_HTTP_REQUEST ),
|
1758 |
)
|
1759 |
);
|
@@ -1918,6 +2217,49 @@
|
|
1918 |
return wp_get_current_user();
|
1919 |
}
|
1920 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1921 |
/**
|
1922 |
* Generate API connectivity issue message.
|
1923 |
*
|
@@ -1992,7 +2334,7 @@
|
|
1992 |
sprintf(
|
1993 |
'<b>%s</b> - %s',
|
1994 |
$this->get_text( 'sysadmin-title' ),
|
1995 |
-
$this->get_text( 'curl-missing-sysadmin-desc' )
|
1996 |
),
|
1997 |
sprintf(
|
1998 |
'<a href="%s"><b>%s</b></a>%s',
|
@@ -2057,7 +2399,9 @@
|
|
2057 |
sprintf(
|
2058 |
$this->get_text( 'squid-sysadmin-desc' ),
|
2059 |
// We use a filter since the plugin might require additional API connectivity.
|
2060 |
-
'<b>' . implode( ', ', $this->apply_filters( 'api_domains', array( 'api.freemius.com' ) ) ) . '</b>'
|
|
|
|
|
2061 |
),
|
2062 |
sprintf(
|
2063 |
'<a href="%s"><b>%s</b></a>%s',
|
@@ -2338,7 +2682,7 @@
|
|
2338 |
|
2339 |
$active_plugin = self::get_active_plugins();
|
2340 |
|
2341 |
-
// Generate the list of active plugins separated by new line.
|
2342 |
$active_plugin_string = '';
|
2343 |
foreach ( $active_plugin as $plugin ) {
|
2344 |
$active_plugin_string .= sprintf(
|
@@ -2368,7 +2712,7 @@
|
|
2368 |
)
|
2369 |
),
|
2370 |
'plugin' => array(
|
2371 |
-
'title' =>
|
2372 |
'rows' => array(
|
2373 |
'name' => array( 'Name', $this->get_plugin_name() ),
|
2374 |
'version' => array( 'Version', $this->get_plugin_version() )
|
@@ -2377,8 +2721,18 @@
|
|
2377 |
'api' => array(
|
2378 |
'title' => 'API Subdomain',
|
2379 |
'rows' => array(
|
2380 |
-
'dns' => array(
|
2381 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2382 |
),
|
2383 |
),
|
2384 |
'site' => array(
|
@@ -2473,7 +2827,13 @@
|
|
2473 |
|
2474 |
$this->parse_settings( $plugin_info );
|
2475 |
|
2476 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
2477 |
return;
|
2478 |
}
|
2479 |
|
@@ -2525,7 +2885,7 @@
|
|
2525 |
}
|
2526 |
|
2527 |
if ( $this->has_api_connectivity() ) {
|
2528 |
-
if (
|
2529 |
$this->hook_callback_to_sync_cron();
|
2530 |
} else if ( $this->is_user_in_admin() ) {
|
2531 |
/**
|
@@ -2568,7 +2928,7 @@
|
|
2568 |
}
|
2569 |
|
2570 |
if ( $this->is_user_in_admin() ) {
|
2571 |
-
if ( $this->
|
2572 |
$this->hook_plugin_action_links();
|
2573 |
}
|
2574 |
|
@@ -2594,6 +2954,9 @@
|
|
2594 |
if ( $this->_parent->is_registered() && ! $this->is_registered() ) {
|
2595 |
// If parent plugin activated, automatically install add-on for the user.
|
2596 |
$this->_activate_addon_account( $this->_parent );
|
|
|
|
|
|
|
2597 |
}
|
2598 |
|
2599 |
// @todo This should be only executed on activation. It should be migrated to register_activation_hook() together with other activation related logic.
|
@@ -2605,7 +2968,7 @@
|
|
2605 |
) );
|
2606 |
}
|
2607 |
|
2608 |
-
$this->deactivate_premium_only_addon_without_license();
|
2609 |
}
|
2610 |
} else {
|
2611 |
if ( $this->has_addons() &&
|
@@ -2888,10 +3251,24 @@
|
|
2888 |
}
|
2889 |
|
2890 |
if ( false === $id ) {
|
2891 |
-
throw new Freemius_Exception(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2892 |
}
|
2893 |
if ( false === $public_key ) {
|
2894 |
-
throw new Freemius_Exception(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2895 |
}
|
2896 |
|
2897 |
$plugin = ( $this->_plugin instanceof FS_Plugin ) ?
|
@@ -2908,12 +3285,13 @@
|
|
2908 |
'file' => $this->_plugin_basename,
|
2909 |
'is_premium' => $this->get_bool_option( $plugin_info, 'is_premium', true ),
|
2910 |
'is_live' => $this->get_bool_option( $plugin_info, 'is_live', true ),
|
|
|
2911 |
// 'secret_key' => $secret_key,
|
2912 |
) );
|
2913 |
|
2914 |
if ( $plugin->is_updated() ) {
|
2915 |
// Update plugin details.
|
2916 |
-
$this->_plugin = FS_Plugin_Manager::instance( $this->
|
2917 |
}
|
2918 |
// Set the secret key after storing the plugin, we don't want to store the key in the storage.
|
2919 |
$this->_plugin->secret_key = $secret_key;
|
@@ -2931,7 +3309,12 @@
|
|
2931 |
}
|
2932 |
}
|
2933 |
|
2934 |
-
$this->_menu = FS_Admin_Menu_Manager::instance(
|
|
|
|
|
|
|
|
|
|
|
2935 |
$this->_menu->init( $plugin_info['menu'], $this->is_addon() );
|
2936 |
|
2937 |
$this->_has_addons = $this->get_bool_option( $plugin_info, 'has_addons', false );
|
@@ -3028,7 +3411,7 @@
|
|
3028 |
return true;
|
3029 |
}
|
3030 |
|
3031 |
-
if (
|
3032 |
/**
|
3033 |
* If in activation mode, don't execute Freemius during wp crons
|
3034 |
* (wp crons have HTTP context - called as HTTP request).
|
@@ -3066,10 +3449,27 @@
|
|
3066 |
function _after_code_type_change() {
|
3067 |
$this->_logger->entrance();
|
3068 |
|
3069 |
-
|
3070 |
-
|
3071 |
-
|
3072 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3073 |
}
|
3074 |
|
3075 |
/**
|
@@ -3096,7 +3496,7 @@
|
|
3096 |
) );
|
3097 |
|
3098 |
$this->_admin_notices->add_sticky(
|
3099 |
-
$this->get_text( 'premium-activated-message' ),
|
3100 |
'premium_activated',
|
3101 |
$this->get_text( 'woot' ) . '!'
|
3102 |
);
|
@@ -3151,15 +3551,16 @@
|
|
3151 |
* @author Vova Feldman (@svovaf)
|
3152 |
* @since 1.0.6
|
3153 |
*
|
3154 |
-
* @param string|number $
|
3155 |
* @param bool|null $is_premium Since 1.2.1.7 can check for specified add-on version.
|
3156 |
*
|
3157 |
* @return bool
|
3158 |
*/
|
3159 |
-
function is_addon_activated( $
|
3160 |
$this->_logger->entrance();
|
3161 |
|
3162 |
-
$
|
|
|
3163 |
|
3164 |
if ( ! $is_activated ) {
|
3165 |
return false;
|
@@ -3167,7 +3568,7 @@
|
|
3167 |
|
3168 |
if ( is_bool( $is_premium ) ) {
|
3169 |
// Check if the specified code version is activate.
|
3170 |
-
$addon = $this->get_addon_instance( $
|
3171 |
$is_activated = ( $is_premium === $addon->is_premium() );
|
3172 |
}
|
3173 |
|
@@ -3180,22 +3581,25 @@
|
|
3180 |
* @author Vova Feldman (@svovaf)
|
3181 |
* @since 1.1.7
|
3182 |
*
|
3183 |
-
* @param
|
3184 |
*
|
3185 |
* @return bool
|
3186 |
*/
|
3187 |
-
function is_addon_connected( $
|
3188 |
$this->_logger->entrance();
|
3189 |
|
3190 |
-
$sites = self::get_all_sites();
|
3191 |
|
|
|
|
|
|
|
3192 |
if ( ! isset( $sites[ $slug ] ) ) {
|
3193 |
return false;
|
3194 |
}
|
3195 |
|
3196 |
$site = $sites[ $slug ];
|
3197 |
|
3198 |
-
$plugin = FS_Plugin_Manager::instance( $
|
3199 |
|
3200 |
if ( $plugin->parent_plugin_id != $this->_plugin->id ) {
|
3201 |
// The given slug do NOT belong to any of the plugin's add-ons.
|
@@ -3217,14 +3621,16 @@
|
|
3217 |
* @author Vova Feldman (@svovaf)
|
3218 |
* @since 1.0.6
|
3219 |
*
|
3220 |
-
* @param
|
3221 |
*
|
3222 |
* @return bool
|
3223 |
*/
|
3224 |
-
function is_addon_installed( $
|
3225 |
$this->_logger->entrance();
|
3226 |
|
3227 |
-
|
|
|
|
|
3228 |
}
|
3229 |
|
3230 |
/**
|
@@ -3233,22 +3639,35 @@
|
|
3233 |
* @author Vova Feldman (@svovaf)
|
3234 |
* @since 1.0.6
|
3235 |
*
|
3236 |
-
* @param
|
3237 |
*
|
3238 |
* @return string
|
3239 |
*/
|
3240 |
-
function get_addon_basename( $
|
3241 |
-
|
3242 |
-
|
|
|
|
|
3243 |
}
|
3244 |
|
3245 |
-
$
|
|
|
3246 |
|
3247 |
if ( file_exists( fs_normalize_path( WP_PLUGIN_DIR . '/' . $premium_basename ) ) ) {
|
3248 |
return $premium_basename;
|
3249 |
}
|
3250 |
|
3251 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3252 |
|
3253 |
return $free_basename;
|
3254 |
}
|
@@ -3263,7 +3682,7 @@
|
|
3263 |
*/
|
3264 |
function get_installed_addons() {
|
3265 |
$installed_addons = array();
|
3266 |
-
foreach ( self::$_instances as $
|
3267 |
if ( $instance->is_addon() && is_object( $instance->_parent_plugin ) ) {
|
3268 |
if ( $this->_plugin->id == $instance->_parent_plugin->id ) {
|
3269 |
$installed_addons[] = $instance;
|
@@ -3287,7 +3706,7 @@
|
|
3287 |
return false;
|
3288 |
}
|
3289 |
|
3290 |
-
foreach ( self::$_instances as $
|
3291 |
if ( $instance->is_addon() && is_object( $instance->_parent_plugin ) ) {
|
3292 |
if ( $this->_plugin->id == $instance->_parent_plugin->id ) {
|
3293 |
return true;
|
@@ -3332,21 +3751,23 @@
|
|
3332 |
! $this->has_features_enabled_license() &&
|
3333 |
! $this->_has_premium_license()
|
3334 |
) {
|
3335 |
-
|
3336 |
-
//
|
3337 |
-
//
|
3338 |
-
//
|
3339 |
-
|
3340 |
-
|
3341 |
-
|
3342 |
-
|
3343 |
-
|
3344 |
-
|
3345 |
-
|
3346 |
-
|
|
|
3347 |
|
3348 |
-
|
3349 |
-
|
|
|
3350 |
|
3351 |
if ( ! $this->has_free_plan() &&
|
3352 |
! $this->has_features_enabled_license() &&
|
@@ -3354,8 +3775,6 @@
|
|
3354 |
) {
|
3355 |
// @todo Check if deactivate plugins also call the deactivation hook.
|
3356 |
|
3357 |
-
deactivate_plugins( array( $this->_plugin_basename ), true );
|
3358 |
-
|
3359 |
$this->_parent->_admin_notices->add_sticky(
|
3360 |
sprintf(
|
3361 |
$this->_parent->get_text( $is_after_trial_cancel ?
|
@@ -3374,6 +3793,8 @@
|
|
3374 |
( $is_after_trial_cancel ? 'success' : 'error' )
|
3375 |
);
|
3376 |
|
|
|
|
|
3377 |
return true;
|
3378 |
}
|
3379 |
}
|
@@ -3399,7 +3820,7 @@
|
|
3399 |
$this->_plugin->secret_key = $secret_key;
|
3400 |
|
3401 |
// Update plugin details.
|
3402 |
-
FS_Plugin_Manager::instance( $this->
|
3403 |
}
|
3404 |
|
3405 |
/**
|
@@ -3488,7 +3909,7 @@
|
|
3488 |
* @since 1.1.7.3
|
3489 |
*/
|
3490 |
private function run_manual_sync() {
|
3491 |
-
|
3492 |
|
3493 |
if ( ! $this->is_user_admin() ) {
|
3494 |
return;
|
@@ -3821,7 +4242,9 @@
|
|
3821 |
* @return bool
|
3822 |
*/
|
3823 |
function is_plugin_activation() {
|
3824 |
-
return get_option(
|
|
|
|
|
3825 |
}
|
3826 |
|
3827 |
/**
|
@@ -3838,7 +4261,9 @@
|
|
3838 |
* @since 1.1.7 Do NOT redirect to opt-in when running in network admin mode.
|
3839 |
*/
|
3840 |
if ( $this->is_plugin_activation() ) {
|
3841 |
-
delete_option(
|
|
|
|
|
3842 |
|
3843 |
if ( ! function_exists( 'is_network_admin' ) || ! is_network_admin() ) {
|
3844 |
$this->_redirect_on_activation_hook();
|
@@ -3847,8 +4272,8 @@
|
|
3847 |
}
|
3848 |
}
|
3849 |
|
3850 |
-
if ( fs_request_is_action( $this->
|
3851 |
-
check_admin_referer( $this->
|
3852 |
|
3853 |
$this->skip_connection();
|
3854 |
|
@@ -3858,6 +4283,24 @@
|
|
3858 |
if ( ! $this->is_addon() && ! $this->is_registered() && ! $this->is_anonymous() ) {
|
3859 |
if ( ! $this->is_pending_activation() ) {
|
3860 |
if ( ! $this->_menu->is_main_settings_page() ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3861 |
if ( $this->is_plugin_new_install() || $this->is_only_premium() ) {
|
3862 |
// Show notice for new plugin installations.
|
3863 |
$this->_admin_notices->add(
|
@@ -3879,6 +4322,7 @@
|
|
3879 |
$this->_admin_notices->add_sticky(
|
3880 |
sprintf(
|
3881 |
$this->get_text( 'few-plugin-tweaks' ),
|
|
|
3882 |
sprintf( '<b><a href="%s">%s</a></b>',
|
3883 |
$this->get_activation_url(),
|
3884 |
sprintf( $this->get_text( 'optin-x-now' ), $this->get_plugin_name() )
|
@@ -3902,10 +4346,15 @@
|
|
3902 |
'_add_connect_pointer_script'
|
3903 |
) );
|
3904 |
}
|
3905 |
-
|
3906 |
}
|
3907 |
}
|
3908 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
3909 |
}
|
3910 |
|
3911 |
$this->_add_upgrade_action_link();
|
@@ -3934,7 +4383,7 @@
|
|
3934 |
* @since 1.1.4
|
3935 |
*/
|
3936 |
function _add_connect_pointer_script() {
|
3937 |
-
$vars = array( '
|
3938 |
$pointer_content = fs_get_template( 'connect.php', $vars );
|
3939 |
?>
|
3940 |
<script type="text/javascript">// <![CDATA[
|
@@ -4025,13 +4474,27 @@
|
|
4025 |
* @param bool $store
|
4026 |
*/
|
4027 |
function _delete_site( $store = true ) {
|
4028 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4029 |
|
4030 |
-
if ( isset( $sites[ $
|
4031 |
-
unset( $sites[ $
|
4032 |
}
|
4033 |
|
4034 |
-
self
|
4035 |
}
|
4036 |
|
4037 |
/**
|
@@ -4045,11 +4508,11 @@
|
|
4045 |
private function _delete_plans( $store = true ) {
|
4046 |
$this->_logger->entrance();
|
4047 |
|
4048 |
-
$plans = self::get_all_plans();
|
4049 |
|
4050 |
unset( $plans[ $this->_slug ] );
|
4051 |
|
4052 |
-
|
4053 |
}
|
4054 |
|
4055 |
/**
|
@@ -4064,7 +4527,7 @@
|
|
4064 |
private function _delete_licenses( $store = true, $plugin_slug = false ) {
|
4065 |
$this->_logger->entrance();
|
4066 |
|
4067 |
-
$all_licenses = self::get_all_licenses();
|
4068 |
|
4069 |
if ( ! is_string( $plugin_slug ) ) {
|
4070 |
$plugin_slug = $this->_slug;
|
@@ -4072,7 +4535,7 @@
|
|
4072 |
|
4073 |
unset( $all_licenses[ $plugin_slug ] );
|
4074 |
|
4075 |
-
|
4076 |
}
|
4077 |
|
4078 |
/**
|
@@ -4100,6 +4563,100 @@
|
|
4100 |
return empty( $this->_storage->plugin_last_version );
|
4101 |
}
|
4102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4103 |
/**
|
4104 |
* Plugin activated hook.
|
4105 |
*
|
@@ -4120,35 +4677,36 @@
|
|
4120 |
// Clear API cache on activation.
|
4121 |
FS_Api::clear_cache();
|
4122 |
|
4123 |
-
|
4124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4125 |
|
|
|
4126 |
if ( $is_premium_version_activation ) {
|
4127 |
$this->reconnect_locally();
|
4128 |
}
|
4129 |
|
4130 |
-
$this->_logger->info( 'Activating ' . ( $is_premium_version_activation ? 'premium' : 'free' ) . ' plugin version.' );
|
4131 |
|
4132 |
// Schedule re-activation event and sync.
|
4133 |
// $this->sync_install( array(), true );
|
4134 |
$this->schedule_install_sync();
|
4135 |
|
4136 |
-
// 1. If running in the activation of the FREE module, get the basename of the PREMIUM.
|
4137 |
-
// 2. If running in the activation of the PREMIUM module, get the basename of the FREE.
|
4138 |
-
$other_version_basename = $is_premium_version_activation ?
|
4139 |
-
$this->_free_plugin_basename :
|
4140 |
-
$this->premium_plugin_basename();
|
4141 |
-
|
4142 |
-
/**
|
4143 |
-
* If the other module version is activate, deactivate it.
|
4144 |
-
*
|
4145 |
-
* @author Leo Fajardo (@leorw)
|
4146 |
-
* @since 1.2.2
|
4147 |
-
*/
|
4148 |
-
if ( is_plugin_active( $other_version_basename ) ) {
|
4149 |
-
deactivate_plugins( $other_version_basename );
|
4150 |
-
}
|
4151 |
-
|
4152 |
// If activating the premium module version, add an admin notice to congratulate for an upgrade completion.
|
4153 |
if ( $is_premium_version_activation ) {
|
4154 |
$this->_admin_notices->add(
|
@@ -4159,13 +4717,19 @@
|
|
4159 |
} else if ( $this->is_anonymous() ) {
|
4160 |
/**
|
4161 |
* Reset "skipped" click cache on the following:
|
4162 |
-
* 1.
|
4163 |
-
* 2.
|
|
|
|
|
|
|
4164 |
*
|
4165 |
-
* @todo
|
4166 |
*/
|
4167 |
if ( WP_FS__DEV_MODE ||
|
4168 |
-
|
|
|
|
|
|
|
4169 |
) {
|
4170 |
$this->reset_anonymous_mode();
|
4171 |
}
|
@@ -4192,7 +4756,9 @@
|
|
4192 |
! $this->_isAutoInstall
|
4193 |
) {
|
4194 |
// Store hint that the plugin was just activated to enable auto-redirection to settings.
|
4195 |
-
add_option(
|
|
|
|
|
4196 |
}
|
4197 |
|
4198 |
/**
|
@@ -4349,6 +4915,16 @@
|
|
4349 |
*/
|
4350 |
private function reset_anonymous_mode() {
|
4351 |
unset( $this->_storage->is_anonymous );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4352 |
}
|
4353 |
|
4354 |
/**
|
@@ -5027,17 +5603,31 @@
|
|
5027 |
if ( ! isset( $this->_plugin_data ) ) {
|
5028 |
self::require_plugin_essentials();
|
5029 |
|
5030 |
-
|
5031 |
-
|
5032 |
-
|
5033 |
-
|
5034 |
-
|
5035 |
-
|
5036 |
-
|
5037 |
-
$
|
5038 |
-
|
5039 |
-
|
5040 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5041 |
}
|
5042 |
|
5043 |
return $this->_plugin_data;
|
@@ -5046,10 +5636,16 @@
|
|
5046 |
/**
|
5047 |
* @author Vova Feldman (@svovaf)
|
5048 |
* @since 1.0.1
|
|
|
5049 |
*
|
5050 |
* @return string Plugin slug.
|
5051 |
*/
|
5052 |
function get_slug() {
|
|
|
|
|
|
|
|
|
|
|
5053 |
return $this->_slug;
|
5054 |
}
|
5055 |
|
@@ -5142,8 +5738,8 @@
|
|
5142 |
// Get name.
|
5143 |
$this->_plugin_name = $plugin_data['Name'];
|
5144 |
|
5145 |
-
// Check if plugin name contains
|
5146 |
-
$suffix = '
|
5147 |
$suffix_len = strlen( $suffix );
|
5148 |
|
5149 |
if ( strlen( $plugin_data['Name'] ) > $suffix_len &&
|
@@ -5188,6 +5784,28 @@
|
|
5188 |
return $this->apply_filters( 'plugin_title', $title );
|
5189 |
}
|
5190 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5191 |
/**
|
5192 |
* @author Vova Feldman (@svovaf)
|
5193 |
* @since 1.0.4
|
@@ -5195,6 +5813,14 @@
|
|
5195 |
* @return string
|
5196 |
*/
|
5197 |
function get_plugin_basename() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5198 |
return $this->_plugin_basename;
|
5199 |
}
|
5200 |
|
@@ -5272,10 +5898,12 @@
|
|
5272 |
}
|
5273 |
|
5274 |
/**
|
|
|
|
|
5275 |
* @return FS_Site[]
|
5276 |
*/
|
5277 |
-
private static function get_all_sites() {
|
5278 |
-
$sites = self
|
5279 |
|
5280 |
if ( ! is_array( $sites ) ) {
|
5281 |
$sites = array();
|
@@ -5284,14 +5912,70 @@
|
|
5284 |
return $sites;
|
5285 |
}
|
5286 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5287 |
/**
|
5288 |
* @author Vova Feldman (@svovaf)
|
5289 |
* @since 1.0.6
|
5290 |
*
|
|
|
|
|
5291 |
* @return FS_Plugin_License[]
|
5292 |
*/
|
5293 |
-
private static function get_all_licenses() {
|
5294 |
-
$licenses = self
|
5295 |
|
5296 |
if ( ! is_array( $licenses ) ) {
|
5297 |
$licenses = array();
|
@@ -5301,10 +5985,12 @@
|
|
5301 |
}
|
5302 |
|
5303 |
/**
|
|
|
|
|
5304 |
* @return FS_Plugin_Plan[]
|
5305 |
*/
|
5306 |
-
private static function get_all_plans() {
|
5307 |
-
$plans = self
|
5308 |
|
5309 |
if ( ! is_array( $plans ) ) {
|
5310 |
$plans = array();
|
@@ -6142,7 +6828,7 @@
|
|
6142 |
*/
|
6143 |
function _add_license_activation_dialog_box() {
|
6144 |
$vars = array(
|
6145 |
-
'
|
6146 |
);
|
6147 |
|
6148 |
fs_require_template( 'forms/license-activation.php', $vars );
|
@@ -6157,10 +6843,12 @@
|
|
6157 |
* @since 1.2.1.5
|
6158 |
*/
|
6159 |
function _add_optout_dialog() {
|
6160 |
-
$
|
6161 |
-
|
6162 |
-
|
|
|
6163 |
|
|
|
6164 |
fs_require_template( 'forms/optout.php', $vars );
|
6165 |
}
|
6166 |
|
@@ -6187,7 +6875,7 @@
|
|
6187 |
}
|
6188 |
|
6189 |
// Add license activation link and AJAX request handler.
|
6190 |
-
if (
|
6191 |
/**
|
6192 |
* @since 1.2.0 Add license action link only on plugins page.
|
6193 |
*/
|
@@ -6216,10 +6904,10 @@
|
|
6216 |
exit;
|
6217 |
}
|
6218 |
|
6219 |
-
$
|
6220 |
-
$fs
|
6221 |
$this :
|
6222 |
-
$this->get_addon_instance( $
|
6223 |
|
6224 |
$error = false;
|
6225 |
$next_page = false;
|
@@ -6332,7 +7020,7 @@
|
|
6332 |
);
|
6333 |
}
|
6334 |
|
6335 |
-
|
6336 |
'next_page' => $next_page,
|
6337 |
) );
|
6338 |
}
|
@@ -6387,6 +7075,44 @@
|
|
6387 |
exit;
|
6388 |
}
|
6389 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6390 |
/**
|
6391 |
* Helper method to check if user in the plugins page.
|
6392 |
*
|
@@ -6395,10 +7121,8 @@
|
|
6395 |
*
|
6396 |
* @return bool
|
6397 |
*/
|
6398 |
-
function is_plugins_page() {
|
6399 |
-
|
6400 |
-
|
6401 |
-
return ( 'plugins.php' === $pagenow );
|
6402 |
}
|
6403 |
|
6404 |
/**
|
@@ -6409,10 +7133,8 @@
|
|
6409 |
*
|
6410 |
* @return bool
|
6411 |
*/
|
6412 |
-
function is_themes_page() {
|
6413 |
-
|
6414 |
-
|
6415 |
-
return ( 'themes.php' === $pagenow );
|
6416 |
}
|
6417 |
|
6418 |
#----------------------------------------------------------------------------------
|
@@ -6602,20 +7324,45 @@
|
|
6602 |
* @return bool
|
6603 |
*/
|
6604 |
function is_plugin() {
|
6605 |
-
return
|
6606 |
}
|
6607 |
|
6608 |
/**
|
6609 |
-
*
|
6610 |
-
*
|
6611 |
-
* Serviceware module might be freemium without any
|
6612 |
-
* premium code version, where the paid features
|
6613 |
-
* are all part of the service.
|
6614 |
-
*
|
6615 |
-
* @author Vova Feldman (@svovaf)
|
6616 |
-
* @since 1.2.1.6
|
6617 |
*
|
6618 |
-
* @return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6619 |
*/
|
6620 |
function has_premium_version() {
|
6621 |
return $this->_has_premium_version;
|
@@ -6676,7 +7423,7 @@
|
|
6676 |
}
|
6677 |
|
6678 |
// Verify the call is relevant for the plugin.
|
6679 |
-
if ( $this->
|
6680 |
return false;
|
6681 |
}
|
6682 |
|
@@ -6705,19 +7452,20 @@
|
|
6705 |
* @since 1.2.0
|
6706 |
*
|
6707 |
* @param array|string $actions Collection of AJAX actions.
|
6708 |
-
* @param
|
6709 |
*
|
6710 |
* @return bool
|
6711 |
*/
|
6712 |
-
static function is_ajax_action_static( $actions, $
|
6713 |
// Verify it's an ajax call.
|
6714 |
if ( ! self::is_ajax() ) {
|
6715 |
return false;
|
6716 |
}
|
6717 |
|
6718 |
-
|
|
|
6719 |
// Verify the call is relevant for the plugin.
|
6720 |
-
if ( $
|
6721 |
return false;
|
6722 |
}
|
6723 |
}
|
@@ -6731,7 +7479,7 @@
|
|
6731 |
$ajax_action = fs_request_get( 'action' );
|
6732 |
|
6733 |
foreach ( $actions as $action ) {
|
6734 |
-
if ( $ajax_action === self::get_ajax_action_static( $action, $
|
6735 |
return true;
|
6736 |
}
|
6737 |
}
|
@@ -6746,7 +7494,7 @@
|
|
6746 |
*
|
6747 |
* @return bool
|
6748 |
*/
|
6749 |
-
function is_cron() {
|
6750 |
return ( defined( 'DOING_CRON' ) && DOING_CRON );
|
6751 |
}
|
6752 |
|
@@ -6759,7 +7507,19 @@
|
|
6759 |
* @return bool
|
6760 |
*/
|
6761 |
function is_user_in_admin() {
|
6762 |
-
return is_admin() && ! self::is_ajax() && !
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6763 |
}
|
6764 |
|
6765 |
/**
|
@@ -6794,13 +7554,25 @@
|
|
6794 |
|
6795 |
$page_param = $this->_menu->get_slug( $page );
|
6796 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6797 |
if ( ! $this->has_settings_menu() ) {
|
6798 |
if ( ! empty( $page ) ) {
|
6799 |
// Module doesn't have a setting page, but since the request is for
|
6800 |
// a specific Freemius page, use the admin.php path.
|
6801 |
return add_query_arg( array_merge( $params, array(
|
6802 |
'page' => $page_param,
|
6803 |
-
) ), admin_url( 'admin.php'
|
6804 |
} else {
|
6805 |
if ( $this->is_activation_mode() ) {
|
6806 |
/**
|
@@ -6855,6 +7627,48 @@
|
|
6855 |
) ), admin_url( 'admin.php', 'admin' ) );
|
6856 |
}
|
6857 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6858 |
/**
|
6859 |
* Plugin's account page + sync license URL.
|
6860 |
*
|
@@ -6873,7 +7687,7 @@
|
|
6873 |
}
|
6874 |
|
6875 |
return $this->get_account_url(
|
6876 |
-
$this->
|
6877 |
$params,
|
6878 |
$add_action_nonce
|
6879 |
);
|
@@ -7068,7 +7882,7 @@
|
|
7068 |
*
|
7069 |
* @return FS_Entity Return an decrypted clone entity.
|
7070 |
*/
|
7071 |
-
private static function
|
7072 |
$clone = clone $entity;
|
7073 |
$props = get_object_vars( $entity );
|
7074 |
|
@@ -7170,10 +7984,10 @@
|
|
7170 |
|
7171 |
$this->do_action( 'before_account_load' );
|
7172 |
|
7173 |
-
$sites = self::get_all_sites();
|
7174 |
$users = self::get_all_users();
|
7175 |
-
$plans = self::get_all_plans();
|
7176 |
-
$licenses = self::get_all_licenses();
|
7177 |
|
7178 |
if ( $this->_logger->is_on() && is_admin() ) {
|
7179 |
$this->_logger->log( 'sites = ' . var_export( $sites, true ) );
|
@@ -7191,7 +8005,7 @@
|
|
7191 |
) {
|
7192 |
// Load site.
|
7193 |
$this->_site = clone $site;
|
7194 |
-
$this->_site->plan = self::
|
7195 |
|
7196 |
// Load relevant user.
|
7197 |
$this->_user = clone $users[ $this->_site->user_id ];
|
@@ -7203,7 +8017,7 @@
|
|
7203 |
} else {
|
7204 |
for ( $i = 0, $len = count( $this->_plans ); $i < $len; $i ++ ) {
|
7205 |
if ( $this->_plans[ $i ] instanceof FS_Plugin_Plan ) {
|
7206 |
-
$this->_plans[ $i ] = self::
|
7207 |
} else {
|
7208 |
unset( $this->_plans[ $i ] );
|
7209 |
}
|
@@ -7268,15 +8082,12 @@
|
|
7268 |
|
7269 |
$current_user = self::_get_current_wp_user();
|
7270 |
|
7271 |
-
$activation_action = $this->
|
7272 |
$return_url = $this->is_anonymous() ?
|
7273 |
// If skipped already, then return to the account page.
|
7274 |
$this->get_account_url( $activation_action, array(), false ) :
|
7275 |
// Return to the module's main page.
|
7276 |
-
$this->
|
7277 |
-
'',
|
7278 |
-
array( 'fs_action' => $activation_action )
|
7279 |
-
);
|
7280 |
|
7281 |
$params = array(
|
7282 |
'user_firstname' => $current_user->user_firstname,
|
@@ -7653,7 +8464,10 @@
|
|
7653 |
return;
|
7654 |
}
|
7655 |
|
7656 |
-
if ( fs_request_is_action( $this->
|
|
|
|
|
|
|
7657 |
// check_admin_referer( $this->_slug . '_activate_new' );
|
7658 |
|
7659 |
if ( fs_request_has( 'user_secret_key' ) ) {
|
@@ -7796,7 +8610,7 @@
|
|
7796 |
return;
|
7797 |
}
|
7798 |
|
7799 |
-
if ( fs_request_is_action( $this->
|
7800 |
// check_admin_referer( 'activate_existing_' . $this->_plugin->public_key );
|
7801 |
|
7802 |
/**
|
@@ -7939,6 +8753,61 @@
|
|
7939 |
$this->_activate_license( true );
|
7940 |
}
|
7941 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7942 |
#endregion
|
7943 |
|
7944 |
#----------------------------------------------------------------------------------
|
@@ -7947,6 +8816,16 @@
|
|
7947 |
|
7948 |
private $_menu_items = array();
|
7949 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7950 |
/**
|
7951 |
* @author Vova Feldman (@svovaf)
|
7952 |
* @since 1.0.7
|
@@ -7987,14 +8866,30 @@
|
|
7987 |
*/
|
7988 |
private function add_menu_action() {
|
7989 |
if ( $this->is_activation_mode() ) {
|
7990 |
-
$this->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7991 |
} else {
|
7992 |
-
|
7993 |
-
|
7994 |
-
|
|
|
|
|
|
|
|
|
|
|
7995 |
) {
|
7996 |
-
$this->_install_with_new_user();
|
7997 |
-
} else if ( fs_request_is_action( 'sync_user' ) && ! $this->has_settings_menu() ) {
|
7998 |
$this->_handle_account_user_sync();
|
7999 |
}
|
8000 |
}
|
@@ -8062,7 +8957,8 @@
|
|
8062 |
$menus = array( $this->_menu->get_parent_slug() );
|
8063 |
|
8064 |
if ( $this->_menu->is_override_exact() ) {
|
8065 |
-
|
|
|
8066 |
return;
|
8067 |
}
|
8068 |
}
|
@@ -8087,9 +8983,9 @@
|
|
8087 |
}
|
8088 |
|
8089 |
if ( false !== $hook ) {
|
8090 |
-
if ( fs_request_is_action( $this->
|
8091 |
add_action( "load-$hook", array( &$this, '_install_with_current_user' ) );
|
8092 |
-
} else if ( fs_request_is_action( $this->
|
8093 |
add_action( "load-$hook", array( &$this, '_install_with_new_user' ) );
|
8094 |
}
|
8095 |
}
|
@@ -8131,6 +9027,44 @@
|
|
8131 |
$this->_menu->get_top_level_menu_slug() );
|
8132 |
}
|
8133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8134 |
/**
|
8135 |
* Add default Freemius menu items.
|
8136 |
*
|
@@ -8141,8 +9075,19 @@
|
|
8141 |
$this->_logger->entrance();
|
8142 |
|
8143 |
if ( ! $this->is_addon() ) {
|
8144 |
-
|
|
|
|
|
|
|
8145 |
if ( $this->is_registered() ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8146 |
// Add user account page.
|
8147 |
$this->add_submenu_item(
|
8148 |
$this->get_text( 'account' ),
|
@@ -8152,7 +9097,7 @@
|
|
8152 |
'account',
|
8153 |
array( &$this, '_account_page_load' ),
|
8154 |
WP_FS__DEFAULT_PRIORITY,
|
8155 |
-
$
|
8156 |
);
|
8157 |
}
|
8158 |
|
@@ -8182,28 +9127,19 @@
|
|
8182 |
}
|
8183 |
|
8184 |
$show_pricing = (
|
8185 |
-
// Has at least one paid plan.
|
8186 |
-
$this->has_paid_plan() &&
|
8187 |
-
// Didn't ask to hide the pricing page.
|
8188 |
$this->is_submenu_item_visible( 'pricing' ) &&
|
8189 |
-
|
8190 |
-
( ! $this->is_paying() || ! $this->is_single_plan() )
|
8191 |
);
|
8192 |
-
// If user don't have paid plans, add pricing page
|
8193 |
-
// to support add-ons checkout but don't add the submenu item.
|
8194 |
-
// || (isset( $_GET['page'] ) && $this->_menu->get_slug( 'pricing' ) == $_GET['page']);
|
8195 |
|
8196 |
-
$pricing_cta_slug =
|
8197 |
$pricing_class = 'upgrade-mode';
|
8198 |
if ( $show_pricing ) {
|
8199 |
-
if ( $this->
|
8200 |
! $this->is_paying_or_trial()
|
8201 |
) {
|
8202 |
// If running a trial promotion, modify the pricing to load the trial.
|
8203 |
-
$pricing_cta_slug = 'start-trial';
|
8204 |
$pricing_class = 'trial-mode';
|
8205 |
} else if ( $this->is_paying() ) {
|
8206 |
-
$pricing_cta_slug = 'pricing';
|
8207 |
$pricing_class = '';
|
8208 |
}
|
8209 |
}
|
@@ -8260,7 +9196,7 @@
|
|
8260 |
|
8261 |
$menu_item = sprintf(
|
8262 |
$item_template,
|
8263 |
-
$this->
|
8264 |
$item['menu_slug'],
|
8265 |
! empty( $item['class'] ) ? $item['class'] : '',
|
8266 |
$item['menu_title']
|
@@ -8285,7 +9221,9 @@
|
|
8285 |
}
|
8286 |
} else {
|
8287 |
FS_Admin_Menu_Manager::add_subpage(
|
8288 |
-
$
|
|
|
|
|
8289 |
$item['page_title'],
|
8290 |
$menu_item,
|
8291 |
$capability,
|
@@ -8357,6 +9295,18 @@
|
|
8357 |
ksort( $top_level_menu );
|
8358 |
}
|
8359 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8360 |
/**
|
8361 |
* Displays the Support Forum link when enabled.
|
8362 |
*
|
@@ -8377,15 +9327,14 @@
|
|
8377 |
}
|
8378 |
|
8379 |
if ( ! $this->is_activation_mode() ) {
|
8380 |
-
|
8381 |
-
$this->
|
8382 |
-
|
8383 |
-
|
8384 |
-
|
8385 |
-
|
8386 |
-
|
8387 |
-
|
8388 |
-
}
|
8389 |
}
|
8390 |
}
|
8391 |
|
@@ -8461,14 +9410,15 @@
|
|
8461 |
* @param bool $menu_slug
|
8462 |
* @param string $capability
|
8463 |
* @param int $priority
|
8464 |
-
*
|
8465 |
*/
|
8466 |
function add_submenu_link_item(
|
8467 |
$menu_title,
|
8468 |
$url,
|
8469 |
$menu_slug = false,
|
8470 |
$capability = 'read',
|
8471 |
-
$priority = WP_FS__DEFAULT_PRIORITY
|
|
|
8472 |
) {
|
8473 |
$this->_logger->entrance( 'Title = ' . $menu_title . '; Url = ' . $url );
|
8474 |
|
@@ -8481,7 +9431,8 @@
|
|
8481 |
$url,
|
8482 |
$menu_slug,
|
8483 |
$capability,
|
8484 |
-
$priority
|
|
|
8485 |
);
|
8486 |
|
8487 |
return;
|
@@ -8500,11 +9451,13 @@
|
|
8500 |
'page_title' => $menu_title,
|
8501 |
'render_function' => 'fs_dummy',
|
8502 |
'before_render_function' => '',
|
|
|
8503 |
);
|
8504 |
}
|
8505 |
|
8506 |
#endregion ------------------------------------------------------------------
|
8507 |
|
|
|
8508 |
#--------------------------------------------------------------------------------
|
8509 |
#region Actions / Hooks / Filters
|
8510 |
#--------------------------------------------------------------------------------
|
@@ -8518,7 +9471,7 @@
|
|
8518 |
* @return string
|
8519 |
*/
|
8520 |
public function get_action_tag( $tag ) {
|
8521 |
-
return self::get_action_tag_static( $tag, $this->_slug );
|
8522 |
}
|
8523 |
|
8524 |
/**
|
@@ -8527,23 +9480,67 @@
|
|
8527 |
*
|
8528 |
* @param string $tag
|
8529 |
* @param string $slug
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8530 |
*
|
8531 |
* @return string
|
8532 |
*/
|
8533 |
-
static function
|
8534 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
8535 |
}
|
8536 |
|
8537 |
/**
|
8538 |
* @author Vova Feldman (@svovaf)
|
8539 |
* @since 1.2.1
|
|
|
|
|
8540 |
*
|
8541 |
* @param string $tag
|
8542 |
*
|
8543 |
* @return string
|
8544 |
*/
|
8545 |
function get_ajax_action( $tag ) {
|
8546 |
-
return self::get_ajax_action_static( $tag, $this->
|
8547 |
}
|
8548 |
|
8549 |
/**
|
@@ -8571,17 +9568,19 @@
|
|
8571 |
/**
|
8572 |
* @author Vova Feldman (@svovaf)
|
8573 |
* @since 1.2.1.6
|
|
|
|
|
8574 |
*
|
8575 |
-
* @param string
|
8576 |
-
* @param
|
8577 |
*
|
8578 |
* @return string
|
8579 |
*/
|
8580 |
-
private static function get_ajax_action_static( $tag, $
|
8581 |
$action = "fs_{$tag}";
|
8582 |
|
8583 |
-
if ( ! empty( $
|
8584 |
-
$action .= "_{$
|
8585 |
}
|
8586 |
|
8587 |
return $action;
|
@@ -8659,7 +9658,7 @@
|
|
8659 |
$tag,
|
8660 |
$function_to_add,
|
8661 |
$priority,
|
8662 |
-
$this->
|
8663 |
);
|
8664 |
}
|
8665 |
|
@@ -8669,10 +9668,10 @@
|
|
8669 |
* @author Vova Feldman (@svovaf)
|
8670 |
* @since 1.2.1.6
|
8671 |
*
|
8672 |
-
* @param string
|
8673 |
-
* @param callable
|
8674 |
-
* @param int
|
8675 |
-
* @param
|
8676 |
*
|
8677 |
* @return bool True if action added, false if no need to add the action since the AJAX call isn't matching.
|
8678 |
* @uses add_action()
|
@@ -8682,16 +9681,16 @@
|
|
8682 |
$tag,
|
8683 |
$function_to_add,
|
8684 |
$priority = WP_FS__DEFAULT_PRIORITY,
|
8685 |
-
$
|
8686 |
) {
|
8687 |
self::$_static_logger->entrance( $tag );
|
8688 |
|
8689 |
-
if ( ! self::is_ajax_action_static( $tag, $
|
8690 |
return false;
|
8691 |
}
|
8692 |
|
8693 |
add_action(
|
8694 |
-
'wp_ajax_' . self::get_ajax_action_static( $tag, $
|
8695 |
$function_to_add,
|
8696 |
$priority,
|
8697 |
0
|
@@ -8760,7 +9759,7 @@
|
|
8760 |
$this->_logger->entrance( $tag );
|
8761 |
|
8762 |
$args = func_get_args();
|
8763 |
-
array_unshift( $args, $this->
|
8764 |
|
8765 |
return call_user_func_array( 'fs_apply_filter', $args );
|
8766 |
}
|
@@ -8841,9 +9840,10 @@
|
|
8841 |
$encrypted_site = clone $this->_site;
|
8842 |
$encrypted_site->plan = self::_encrypt_entity( $this->_site->plan );
|
8843 |
|
8844 |
-
$sites = self::get_all_sites();
|
8845 |
$sites[ $this->_slug ] = $encrypted_site;
|
8846 |
-
|
|
|
8847 |
}
|
8848 |
|
8849 |
/**
|
@@ -8857,7 +9857,7 @@
|
|
8857 |
private function _store_plans( $store = true ) {
|
8858 |
$this->_logger->entrance();
|
8859 |
|
8860 |
-
$plans = self::get_all_plans();
|
8861 |
|
8862 |
// Copy plans.
|
8863 |
$encrypted_plans = array();
|
@@ -8866,7 +9866,8 @@
|
|
8866 |
}
|
8867 |
|
8868 |
$plans[ $this->_slug ] = $encrypted_plans;
|
8869 |
-
|
|
|
8870 |
}
|
8871 |
|
8872 |
/**
|
@@ -8882,7 +9883,7 @@
|
|
8882 |
private function _store_licenses( $store = true, $plugin_slug = false, $licenses = array() ) {
|
8883 |
$this->_logger->entrance();
|
8884 |
|
8885 |
-
$all_licenses = self::get_all_licenses();
|
8886 |
|
8887 |
if ( ! is_string( $plugin_slug ) ) {
|
8888 |
$plugin_slug = $this->_slug;
|
@@ -8895,7 +9896,7 @@
|
|
8895 |
|
8896 |
$all_licenses[ $plugin_slug ][ $this->_user->id ] = $licenses;
|
8897 |
|
8898 |
-
|
8899 |
}
|
8900 |
|
8901 |
/**
|
@@ -9293,10 +10294,11 @@
|
|
9293 |
* @uses FS_Api
|
9294 |
*
|
9295 |
* @param number|bool $plugin_id
|
|
|
9296 |
*
|
9297 |
* @return FS_Payment[]|object
|
9298 |
*/
|
9299 |
-
function _fetch_payments( $plugin_id = false ) {
|
9300 |
$this->_logger->entrance();
|
9301 |
|
9302 |
$api = $this->get_api_user_scope();
|
@@ -9305,7 +10307,7 @@
|
|
9305 |
$plugin_id = $this->_plugin->id;
|
9306 |
}
|
9307 |
|
9308 |
-
$result = $api->get( "/plugins/{$plugin_id}/payments.json?include_addons=true",
|
9309 |
|
9310 |
if ( ! isset( $result->error ) ) {
|
9311 |
for ( $i = 0, $len = count( $result->payments ); $i < $len; $i ++ ) {
|
@@ -9322,12 +10324,14 @@
|
|
9322 |
* @since 1.2.1.5
|
9323 |
* @uses FS_Api
|
9324 |
*
|
|
|
|
|
9325 |
* @return \FS_Billing|mixed
|
9326 |
*/
|
9327 |
-
function _fetch_billing() {
|
9328 |
require_once WP_FS__DIR_INCLUDES . '/entities/class-fs-billing.php';
|
9329 |
|
9330 |
-
$billing = $this->get_api_user_scope()->
|
9331 |
|
9332 |
if ( $this->is_api_result_entity( $billing ) ) {
|
9333 |
$billing = new FS_Billing( $billing );
|
@@ -9379,11 +10383,12 @@
|
|
9379 |
*
|
9380 |
* @param bool|number $plugin_id
|
9381 |
* @param bool $flush Since 1.1.7.3
|
|
|
9382 |
*
|
9383 |
* @return object|false New plugin tag info if exist.
|
9384 |
*/
|
9385 |
-
private function _fetch_newer_version( $plugin_id = false, $flush = true ) {
|
9386 |
-
$latest_tag = $this->_fetch_latest_version( $plugin_id, $flush );
|
9387 |
|
9388 |
if ( ! is_object( $latest_tag ) ) {
|
9389 |
return false;
|
@@ -9406,18 +10411,19 @@
|
|
9406 |
* @since 1.0.5
|
9407 |
*
|
9408 |
* @param bool|number $plugin_id
|
9409 |
-
* @param bool $flush
|
|
|
9410 |
*
|
9411 |
* @return bool|FS_Plugin_Tag
|
9412 |
*/
|
9413 |
-
function get_update( $plugin_id = false, $flush = true ) {
|
9414 |
$this->_logger->entrance();
|
9415 |
|
9416 |
if ( ! is_numeric( $plugin_id ) ) {
|
9417 |
$plugin_id = $this->_plugin->id;
|
9418 |
}
|
9419 |
|
9420 |
-
$this->check_updates( true, $plugin_id, $flush );
|
9421 |
$updates = $this->get_all_updates();
|
9422 |
|
9423 |
return isset( $updates[ $plugin_id ] ) && is_object( $updates[ $plugin_id ] ) ? $updates[ $plugin_id ] : false;
|
@@ -9493,7 +10499,8 @@
|
|
9493 |
* @return bool
|
9494 |
*/
|
9495 |
function is_user_admin() {
|
9496 |
-
return current_user_can( 'activate_plugins' )
|
|
|
9497 |
}
|
9498 |
|
9499 |
/**
|
@@ -9567,7 +10574,7 @@
|
|
9567 |
if ( $this->is_array_instanceof( $licenses, 'FS_Plugin_License' ) ) {
|
9568 |
$this->_update_licenses( $licenses, $addon->slug );
|
9569 |
|
9570 |
-
if ( ! $this->is_addon_installed( $addon->
|
9571 |
$plans_result = $this->get_api_site_or_plugin_scope()->get( "/addons/{$addon_id}/plans.json" );
|
9572 |
|
9573 |
if ( ! isset( $plans_result->error ) ) {
|
@@ -9833,7 +10840,7 @@
|
|
9833 |
break;
|
9834 |
case 'downgraded':
|
9835 |
$this->_admin_notices->add_sticky(
|
9836 |
-
sprintf( $this->get_text( 'license-expired-blocking-message' ) ),
|
9837 |
'license_expired',
|
9838 |
$this->get_text( 'hmm' ) . '...'
|
9839 |
);
|
@@ -10120,7 +11127,7 @@
|
|
10120 |
if ( $this->is_trial() ) {
|
10121 |
// Already in trial mode.
|
10122 |
$this->_admin_notices->add(
|
10123 |
-
$this->get_text( 'in-trial-mode' ),
|
10124 |
$this->get_text( 'oops' ) . '...',
|
10125 |
'error'
|
10126 |
);
|
@@ -10167,7 +11174,7 @@
|
|
10167 |
if ( ! $this->has_trial_plan() ) {
|
10168 |
// None of the plans have a trial.
|
10169 |
$this->_admin_notices->add(
|
10170 |
-
$this->get_text( 'no-trials' ),
|
10171 |
$this->get_text( 'oops' ) . '...',
|
10172 |
'error'
|
10173 |
);
|
@@ -10186,7 +11193,8 @@
|
|
10186 |
if ( ! $this->is_api_result_entity( $plan ) ) {
|
10187 |
// Some API error while trying to start the trial.
|
10188 |
$this->_admin_notices->add(
|
10189 |
-
$this->get_text( 'unexpected-api-error' )
|
|
|
10190 |
$this->get_text( 'oops' ) . '...',
|
10191 |
'error'
|
10192 |
);
|
@@ -10346,11 +11354,12 @@
|
|
10346 |
* @since 1.0.4
|
10347 |
*
|
10348 |
* @param bool|number $addon_id
|
10349 |
-
* @param bool $flush
|
|
|
10350 |
*
|
10351 |
* @return object|false Plugin latest tag info.
|
10352 |
*/
|
10353 |
-
function _fetch_latest_version( $addon_id = false, $flush = true ) {
|
10354 |
$this->_logger->entrance();
|
10355 |
|
10356 |
/**
|
@@ -10365,7 +11374,8 @@
|
|
10365 |
|
10366 |
$tag = $this->get_api_site_or_plugin_scope()->get(
|
10367 |
$this->_get_latest_version_endpoint( $addon_id, 'json' ),
|
10368 |
-
$flush
|
|
|
10369 |
);
|
10370 |
|
10371 |
$latest_version = ( is_object( $tag ) && isset( $tag->version ) ) ? $tag->version : 'couldn\'t get';
|
@@ -10488,12 +11498,18 @@
|
|
10488 |
* was initiated by the admin.
|
10489 |
* @param bool|number $plugin_id
|
10490 |
* @param bool $flush Since 1.1.7.3
|
|
|
10491 |
*/
|
10492 |
-
private function check_updates(
|
|
|
|
|
|
|
|
|
|
|
10493 |
$this->_logger->entrance();
|
10494 |
|
10495 |
// Check if there's a newer version for download.
|
10496 |
-
$new_version = $this->_fetch_newer_version( $plugin_id, $flush );
|
10497 |
|
10498 |
$update = null;
|
10499 |
if ( is_object( $new_version ) ) {
|
@@ -10739,7 +11755,7 @@
|
|
10739 |
*/
|
10740 |
private function update_user_name() {
|
10741 |
$this->_logger->entrance();
|
10742 |
-
$name = fs_request_get( 'fs_user_name_' . $this->
|
10743 |
|
10744 |
$api = $this->get_api_user_scope();
|
10745 |
$user = $api->call( "?plugin_id={$this->_plugin->id}&fields=id,first,last", 'put', array(
|
@@ -10799,8 +11815,8 @@
|
|
10799 |
*
|
10800 |
* @return string
|
10801 |
*/
|
10802 |
-
|
10803 |
-
if ( $this->is_addon() ) {
|
10804 |
/**
|
10805 |
* @author Vova Feldman (@svovaf)
|
10806 |
* @since 1.2.1.7 Add-on's activation is the parent's module activation.
|
@@ -10820,31 +11836,39 @@
|
|
10820 |
* @return string
|
10821 |
*/
|
10822 |
function get_reconnect_url( $params = array() ) {
|
10823 |
-
$params['fs_action']
|
10824 |
-
$params['
|
10825 |
|
10826 |
-
return $this->
|
10827 |
}
|
10828 |
|
10829 |
/**
|
10830 |
-
* Get the URL of the page that should be loaded after the user connect
|
|
|
10831 |
*
|
10832 |
* @author Vova Feldman (@svovaf)
|
10833 |
* @since 1.1.3
|
10834 |
*
|
10835 |
* @param string $filter Filter name.
|
|
|
10836 |
*
|
10837 |
* @return string
|
10838 |
*/
|
10839 |
-
function get_after_activation_url( $filter ) {
|
10840 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
10841 |
|
10842 |
-
return $this->apply_filters(
|
10843 |
$filter,
|
10844 |
empty( $first_time_path ) ?
|
10845 |
$this->_get_admin_page_url() :
|
10846 |
$first_time_path
|
10847 |
-
);
|
10848 |
}
|
10849 |
|
10850 |
/**
|
@@ -10964,7 +11988,7 @@
|
|
10964 |
case 'update_email':
|
10965 |
check_admin_referer( 'update_email' );
|
10966 |
|
10967 |
-
$new_email = fs_request_get( 'fs_email_' . $this->
|
10968 |
$result = $this->update_email( $new_email );
|
10969 |
|
10970 |
if ( isset( $result->error ) ) {
|
@@ -10972,7 +11996,7 @@
|
|
10972 |
case 'user_exist':
|
10973 |
$this->_admin_notices->add(
|
10974 |
$this->get_text( 'user-exist-message' ) . ' ' .
|
10975 |
-
sprintf( $this->get_text( 'user-exist-message_ownership' ), '<b>' . $new_email . '</b>' ) .
|
10976 |
sprintf(
|
10977 |
'<a style="margin-left: 10px;" href="%s"><button class="button button-primary">%s ➜</button></a>',
|
10978 |
$this->get_account_url( 'change_owner', array(
|
@@ -11033,7 +12057,7 @@
|
|
11033 |
|
11034 |
return;
|
11035 |
|
11036 |
-
case $this->
|
11037 |
$this->_sync_license();
|
11038 |
|
11039 |
return;
|
@@ -11055,7 +12079,7 @@
|
|
11055 |
$this->_logger->log( $action );
|
11056 |
|
11057 |
$site_property = substr( $p, strlen( 'site_' ) );
|
11058 |
-
$site_property_value = fs_request_get( 'fs_' . $p . '_' . $this->
|
11059 |
$this->get_site()->{$site_property} = $site_property_value;
|
11060 |
|
11061 |
// Store account after modification.
|
@@ -11132,7 +12156,7 @@
|
|
11132 |
$template = 'billing.php';
|
11133 |
}
|
11134 |
|
11135 |
-
$vars = array( '
|
11136 |
|
11137 |
/**
|
11138 |
* Added filter to the template to allow developers wrapping the template
|
@@ -11153,7 +12177,7 @@
|
|
11153 |
function _connect_page_render() {
|
11154 |
$this->_logger->entrance();
|
11155 |
|
11156 |
-
$vars = array( '
|
11157 |
|
11158 |
/**
|
11159 |
* Added filter to the template to allow developers wrapping the template
|
@@ -11205,7 +12229,7 @@
|
|
11205 |
function _addons_page_render() {
|
11206 |
$this->_logger->entrance();
|
11207 |
|
11208 |
-
$vars = array( '
|
11209 |
|
11210 |
/**
|
11211 |
* Added filter to the template to allow developers wrapping the template
|
@@ -11228,7 +12252,7 @@
|
|
11228 |
function _pricing_page_render() {
|
11229 |
$this->_logger->entrance();
|
11230 |
|
11231 |
-
$vars = array( '
|
11232 |
|
11233 |
if ( 'true' === fs_request_get( 'checkout', false ) ) {
|
11234 |
fs_require_once_template( 'checkout.php', $vars );
|
@@ -11250,7 +12274,7 @@
|
|
11250 |
function _contact_page_render() {
|
11251 |
$this->_logger->entrance();
|
11252 |
|
11253 |
-
$vars = array( '
|
11254 |
fs_require_once_template( 'contact.php', $vars );
|
11255 |
}
|
11256 |
|
@@ -11314,7 +12338,7 @@
|
|
11314 |
function get_api_user_scope( $flush = false ) {
|
11315 |
if ( ! isset( $this->_user_api ) || $flush ) {
|
11316 |
$this->_user_api = FS_Api::instance(
|
11317 |
-
$this->
|
11318 |
'user',
|
11319 |
$this->_user->id,
|
11320 |
$this->_user->public_key,
|
@@ -11340,7 +12364,7 @@
|
|
11340 |
function get_api_site_scope( $flush = false ) {
|
11341 |
if ( ! isset( $this->_site_api ) || $flush ) {
|
11342 |
$this->_site_api = FS_Api::instance(
|
11343 |
-
$this->
|
11344 |
'install',
|
11345 |
$this->_site->id,
|
11346 |
$this->_site->public_key,
|
@@ -11365,7 +12389,7 @@
|
|
11365 |
function get_api_plugin_scope() {
|
11366 |
if ( ! isset( $this->_plugin_api ) ) {
|
11367 |
$this->_plugin_api = FS_Api::instance(
|
11368 |
-
$this->
|
11369 |
'plugin',
|
11370 |
$this->_plugin->id,
|
11371 |
$this->_plugin->public_key,
|
@@ -11414,10 +12438,22 @@
|
|
11414 |
* @since 1.2.1.5
|
11415 |
*/
|
11416 |
function _fix_start_trial_menu_item_url() {
|
11417 |
-
$template_args = array( '
|
11418 |
fs_require_template( 'add-trial-to-pricing.php', $template_args );
|
11419 |
}
|
11420 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11421 |
/**
|
11422 |
* Show trial promotional notice (if any trial exist).
|
11423 |
*
|
@@ -11436,7 +12472,7 @@
|
|
11436 |
}
|
11437 |
|
11438 |
// Check if trial message is already shown.
|
11439 |
-
if ( $this->
|
11440 |
add_action( 'admin_footer', array( &$this, '_fix_start_trial_menu_item_url' ) );
|
11441 |
|
11442 |
$this->_menu->add_counter_to_menu_item( 1, 'fs-trial' );
|
@@ -11521,7 +12557,7 @@
|
|
11521 |
// Not all paid plans have a trial - generate a string of those that have it.
|
11522 |
for ( $i = 0; $i < $trial_plans_count; $i ++ ) {
|
11523 |
$plans_string .= sprintf(
|
11524 |
-
'<a href="%s">%s</a>',
|
11525 |
$trial_url,
|
11526 |
$trial_plans[ $i ]->title
|
11527 |
);
|
@@ -11578,6 +12614,25 @@
|
|
11578 |
}
|
11579 |
}
|
11580 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11581 |
/* Action Links
|
11582 |
------------------------------------------------------------------------------------------------------------------*/
|
11583 |
private $_action_links_hooked = false;
|
@@ -11699,7 +12754,7 @@
|
|
11699 |
'#',
|
11700 |
false,
|
11701 |
11,
|
11702 |
-
( 'activate-license ' . $this->
|
11703 |
);
|
11704 |
}
|
11705 |
|
@@ -11716,8 +12771,18 @@
|
|
11716 |
|
11717 |
$this->_logger->entrance();
|
11718 |
|
11719 |
-
if (
|
11720 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11721 |
return;
|
11722 |
}
|
11723 |
|
@@ -11739,14 +12804,6 @@
|
|
11739 |
return;
|
11740 |
}
|
11741 |
|
11742 |
-
if ( fs_request_is_action_secure( $this->_slug . '_reconnect' ) ) {
|
11743 |
-
if ( ! $this->is_registered() && $this->is_anonymous() ) {
|
11744 |
-
$this->connect_again();
|
11745 |
-
|
11746 |
-
return;
|
11747 |
-
}
|
11748 |
-
}
|
11749 |
-
|
11750 |
$url = '#';
|
11751 |
|
11752 |
if ( $this->is_registered() ) {
|
@@ -11763,20 +12820,22 @@
|
|
11763 |
$params = ! $this->is_anonymous() ?
|
11764 |
array() :
|
11765 |
array(
|
11766 |
-
'nonce' => wp_create_nonce( $this->
|
11767 |
-
'fs_action' => ( $this->
|
11768 |
);
|
11769 |
|
11770 |
$url = $this->get_activation_url( $params );
|
11771 |
}
|
11772 |
|
11773 |
-
$this->
|
11774 |
-
$this->
|
11775 |
-
|
11776 |
-
|
11777 |
-
|
11778 |
-
|
11779 |
-
|
|
|
|
|
11780 |
}
|
11781 |
|
11782 |
/**
|
@@ -11789,17 +12848,17 @@
|
|
11789 |
*/
|
11790 |
function get_after_plugin_activation_redirect_url() {
|
11791 |
$url = false;
|
11792 |
-
$plugin_fs = false;
|
11793 |
|
11794 |
-
if ( ! $this->is_addon() ) {
|
11795 |
$first_time_path = $this->_menu->get_first_time_path();
|
11796 |
-
$
|
11797 |
-
|
11798 |
-
$plugin_fs->get_activation_url() :
|
11799 |
( empty( $first_time_path ) ?
|
11800 |
$this->_get_admin_page_url() :
|
11801 |
$first_time_path );
|
11802 |
} else {
|
|
|
|
|
11803 |
if ( $this->is_parent_plugin_installed() ) {
|
11804 |
$plugin_fs = self::get_parent_instance();
|
11805 |
}
|
@@ -11878,7 +12937,7 @@
|
|
11878 |
*
|
11879 |
* @since 1.2.1.6 Always show the deactivation feedback form since we added automatic free version deactivation upon premium code activation.
|
11880 |
*/
|
11881 |
-
$deactivate_link .= '<i class="fs-
|
11882 |
|
11883 |
// Append deactivation link.
|
11884 |
$before_deactivate['deactivate'] = $deactivate_link;
|
@@ -11951,62 +13010,11 @@
|
|
11951 |
) ),
|
11952 |
$deactivation_step,
|
11953 |
$this->get_text( 'upload-and-activate' ),
|
11954 |
-
'//bit.ly/upload-wp-
|
11955 |
$this->get_text( 'howto-upload-activate' )
|
11956 |
);
|
11957 |
}
|
11958 |
|
11959 |
-
/* Plugin Auto-Updates (@since 1.0.4)
|
11960 |
-
------------------------------------------------------------------------------------------------------------------*/
|
11961 |
-
/**
|
11962 |
-
* @var string[]
|
11963 |
-
*/
|
11964 |
-
private static $_auto_updated_plugins;
|
11965 |
-
|
11966 |
-
/**
|
11967 |
-
* @todo TEST IF IT WORKS!!!
|
11968 |
-
*
|
11969 |
-
* Include plugins for automatic updates based on stored settings.
|
11970 |
-
*
|
11971 |
-
* @see http://wordpress.stackexchange.com/questions/131394/how-do-i-exclude-plugins-from-getting-automatically-updated/131404#131404
|
11972 |
-
*
|
11973 |
-
* @author Vova Feldman (@svovaf)
|
11974 |
-
* @since 1.0.4
|
11975 |
-
*
|
11976 |
-
* @param bool $update Whether to update (not used for plugins)
|
11977 |
-
* @param object $item The plugin's info
|
11978 |
-
*
|
11979 |
-
* @return bool
|
11980 |
-
*/
|
11981 |
-
static function _include_plugins_in_auto_update( $update, $item ) {
|
11982 |
-
// Before version 3.8.2 the $item was the file name of the plugin,
|
11983 |
-
// while in 3.8.2 statistics were added (https://core.trac.wordpress.org/changeset/27905).
|
11984 |
-
$by_slug = ( (int) str_replace( '.', '', get_bloginfo( 'version' ) ) >= 382 );
|
11985 |
-
|
11986 |
-
if ( ! isset( self::$_auto_updated_plugins ) ) {
|
11987 |
-
$plugins = self::$_accounts->get_option( 'plugins', array() );
|
11988 |
-
|
11989 |
-
$identifiers = array();
|
11990 |
-
foreach ( $plugins as $p ) {
|
11991 |
-
/**
|
11992 |
-
* @var FS_Plugin $p
|
11993 |
-
*/
|
11994 |
-
if ( isset( $p->auto_update ) && $p->auto_update ) {
|
11995 |
-
$identifiers[] = ( $by_slug ? $p->slug : plugin_basename( $p->file ) );
|
11996 |
-
}
|
11997 |
-
}
|
11998 |
-
|
11999 |
-
self::$_auto_updated_plugins = $identifiers;
|
12000 |
-
}
|
12001 |
-
|
12002 |
-
if ( in_array( $by_slug ? $item->slug : $item, self::$_auto_updated_plugins ) ) {
|
12003 |
-
return true;
|
12004 |
-
}
|
12005 |
-
|
12006 |
-
// Pass update decision to next filters
|
12007 |
-
return $update;
|
12008 |
-
}
|
12009 |
-
|
12010 |
/**
|
12011 |
* @author Vova Feldman (@svovaf)
|
12012 |
* @since 1.2.1.7
|
@@ -12255,6 +13263,330 @@
|
|
12255 |
|
12256 |
#endregion
|
12257 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12258 |
#----------------------------------------------------------------------------------
|
12259 |
#region Marketing
|
12260 |
#----------------------------------------------------------------------------------
|
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 |
if ( ! defined( 'ABSPATH' ) ) {
|
67 |
* @var string
|
68 |
*/
|
69 |
private $_plugin_name;
|
70 |
+
/**
|
71 |
+
* @since 1.2.2
|
72 |
+
*
|
73 |
+
* @var string
|
74 |
+
*/
|
75 |
+
private $_module_type;
|
76 |
|
77 |
#endregion Plugin Info
|
78 |
|
168 |
*/
|
169 |
private $_storage;
|
170 |
|
171 |
+
/**
|
172 |
+
* @since 1.2.2.7
|
173 |
+
* @var FS_Cache_Manager
|
174 |
+
*/
|
175 |
+
private $_cache;
|
176 |
+
|
177 |
/**
|
178 |
* @since 1.0.0
|
179 |
*
|
259 |
*/
|
260 |
private static $_accounts;
|
261 |
|
262 |
+
/**
|
263 |
+
* @since 1.2.2
|
264 |
+
*
|
265 |
+
* @var number
|
266 |
+
*/
|
267 |
+
private $_module_id;
|
268 |
+
|
269 |
/**
|
270 |
* @var Freemius[]
|
271 |
*/
|
300 |
* @author Vova Feldman (@svovaf)
|
301 |
* @since 1.0.0
|
302 |
*
|
303 |
+
* @param number $module_id
|
304 |
+
* @param string|bool $slug
|
305 |
+
* @param bool $is_init Since 1.2.1 Is initiation sequence.
|
306 |
*/
|
307 |
+
private function __construct( $module_id, $slug = false, $is_init = false ) {
|
308 |
+
if ( $is_init && is_numeric( $module_id ) && is_string( $slug ) ) {
|
309 |
+
$this->store_id_slug_type_path_map( $module_id, $slug );
|
310 |
+
}
|
311 |
+
|
312 |
+
$this->_module_id = $module_id;
|
313 |
+
$this->_slug = $this->get_slug();
|
314 |
+
$this->_module_type = $this->get_module_type();
|
315 |
|
316 |
+
$this->_storage = FS_Key_Value_Storage::instance( $this->_module_type . '_data', $this->_slug );
|
317 |
+
$this->_cache = FS_Cache_Manager::get_manager( WP_FS___OPTION_PREFIX . "cache_{$module_id}" );
|
318 |
|
319 |
+
$this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $this->get_unique_affix(), WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
|
320 |
|
321 |
$this->_plugin_main_file_path = $this->_find_caller_plugin_file( $is_init );
|
322 |
$this->_plugin_dir_path = plugin_dir_path( $this->_plugin_main_file_path );
|
323 |
+
$this->_plugin_basename = $this->get_plugin_basename();
|
324 |
$this->_free_plugin_basename = str_replace( '-premium/', '/', $this->_plugin_basename );
|
325 |
|
326 |
$base_name_split = explode( '/', $this->_plugin_basename );
|
342 |
$this->_storage->install_timestamp = WP_FS__SCRIPT_START_TIME;
|
343 |
}
|
344 |
|
345 |
+
if ( ! is_object( $this->_plugin ) ) {
|
346 |
+
$this->_plugin = FS_Plugin_Manager::instance( $this->_module_id )->get();
|
347 |
+
}
|
348 |
|
349 |
$this->_admin_notices = FS_Admin_Notice_Manager::instance(
|
350 |
+
$this->_slug . ( $this->is_theme() ? ':theme' : '' ),
|
351 |
+
/**
|
352 |
+
* Ensure that the admin notice will always have a title by using the stored plugin title if available and
|
353 |
+
* retrieving the title via the "get_plugin_name" method if there is no stored plugin title available.
|
354 |
+
*
|
355 |
+
* @author Leo Fajardo (@leorw)
|
356 |
+
* @since 1.2.2
|
357 |
+
*/
|
358 |
+
( is_object( $this->_plugin ) ? $this->_plugin->title : $this->get_plugin_name() ),
|
359 |
+
$this->get_unique_affix()
|
360 |
);
|
361 |
|
362 |
if ( 'true' === fs_request_get( 'fs_clear_api_cache' ) ||
|
363 |
'true' === fs_request_is_action( 'restart_freemius' )
|
364 |
) {
|
365 |
FS_Api::clear_cache();
|
366 |
+
$this->_cache->clear();
|
367 |
}
|
368 |
|
369 |
$this->_register_hooks();
|
374 |
}
|
375 |
|
376 |
/**
|
377 |
+
* Checks whether this module has a settings menu.
|
378 |
*
|
379 |
* @author Leo Fajardo (@leorw)
|
380 |
* @since 1.2.2
|
382 |
* @return bool
|
383 |
*/
|
384 |
function has_settings_menu() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
385 |
return $this->_menu->has_menu();
|
386 |
}
|
387 |
|
388 |
+
/**
|
389 |
+
* Check if the context module is free wp.org theme.
|
390 |
+
*
|
391 |
+
* This method is helpful because:
|
392 |
+
* 1. wp.org themes are limited to a single submenu item,
|
393 |
+
* and sub-submenu items are most likely not allowed (never verified).
|
394 |
+
* 2. wp.org themes are not allowed to redirect the user
|
395 |
+
* after the theme activation, therefore, the agreed UX
|
396 |
+
* is showing the opt-in as a modal dialog box after
|
397 |
+
* activation (approved by @otto42, @emiluzelac, @greenshady, @grapplerulrich).
|
398 |
+
*
|
399 |
+
* @author Vova Feldman (@svovaf)
|
400 |
+
* @since 1.2.2.7
|
401 |
+
*
|
402 |
+
* @return bool
|
403 |
+
*/
|
404 |
+
function is_free_wp_org_theme() {
|
405 |
+
return (
|
406 |
+
$this->is_theme() &&
|
407 |
+
$this->is_org_repo_compliant() &&
|
408 |
+
! $this->is_premium()
|
409 |
+
);
|
410 |
+
}
|
411 |
+
|
412 |
/**
|
413 |
* Checks whether this a submenu item is visible.
|
414 |
*
|
415 |
* @author Vova Feldman (@svovaf)
|
416 |
* @since 1.2.2.6
|
417 |
+
* @since 1.2.2.7 Even if the menu item was specified to be hidden, when it is the context page, then show the submenu item so the user will have the right context page.
|
418 |
*
|
419 |
* @param string $slug
|
420 |
*
|
421 |
* @return bool
|
422 |
*/
|
423 |
function is_submenu_item_visible( $slug ) {
|
424 |
+
if ( $this->is_admin_page( $slug ) ) {
|
425 |
+
/**
|
426 |
+
* It is the current context page, so show the submenu item
|
427 |
+
* so the user will have the right context page, even if it
|
428 |
+
* was set to hidden.
|
429 |
+
*/
|
430 |
+
return true;
|
431 |
+
}
|
432 |
+
|
433 |
if ( ! $this->has_settings_menu() ) {
|
434 |
+
// No menu settings at all.
|
435 |
+
return false;
|
436 |
+
}
|
437 |
+
|
438 |
+
if ( $this->is_free_wp_org_theme() ) {
|
439 |
+
/**
|
440 |
+
* wp.org themes are limited to a single submenu item, and
|
441 |
+
* sub-submenu items are most likely not allowed (never verified).
|
442 |
+
*/
|
443 |
return false;
|
444 |
}
|
445 |
|
446 |
return $this->_menu->is_submenu_item_visible( $slug );
|
447 |
}
|
448 |
|
449 |
+
/**
|
450 |
+
* Check if a Freemius page should be accessible via the UI.
|
451 |
+
*
|
452 |
+
* @author Vova Feldman (@svovaf)
|
453 |
+
* @since 1.2.2.7
|
454 |
+
*
|
455 |
+
* @param string $slug
|
456 |
+
*
|
457 |
+
* @return bool
|
458 |
+
*/
|
459 |
+
function is_page_visible( $slug ) {
|
460 |
+
if ( $this->is_admin_page( $slug ) ) {
|
461 |
+
return true;
|
462 |
+
}
|
463 |
+
|
464 |
+
return $this->_menu->is_submenu_item_visible( $slug, true, true );
|
465 |
+
}
|
466 |
+
|
467 |
/**
|
468 |
* @author Vova Feldman (@svovaf)
|
469 |
* @since 1.0.9
|
551 |
}
|
552 |
}
|
553 |
|
554 |
+
/**
|
555 |
+
* @author Vova Feldman (@svovaf)
|
556 |
+
* @since 1.2.2.7
|
557 |
+
*
|
558 |
+
* @param string $plugin_prev_version
|
559 |
+
* @param string $plugin_version
|
560 |
+
*/
|
561 |
+
function _after_version_update( $plugin_prev_version, $plugin_version ) {
|
562 |
+
if ( $this->is_theme() ) {
|
563 |
+
// Expire the cache of the previous tabs since the theme may
|
564 |
+
// have setting updates.
|
565 |
+
$this->_cache->expire( 'tabs' );
|
566 |
+
$this->_cache->expire( 'tabs_stylesheets' );
|
567 |
+
}
|
568 |
+
}
|
569 |
+
|
570 |
/**
|
571 |
* This action is connected to the 'plugins_loaded' hook and helps to determine
|
572 |
* if this is a new plugin installation or a plugin update.
|
610 |
// Update flag that plugin was loaded with Freemius at least once.
|
611 |
$this->_storage->was_plugin_loaded = true;
|
612 |
|
613 |
+
/**
|
614 |
+
* Bug fix - only set to false when it's a plugin, due to the
|
615 |
+
* execution sequence of the theme hooks and our methods, if
|
616 |
+
* this will be set for themes, Freemius will always assume
|
617 |
+
* it's a theme update.
|
618 |
+
*
|
619 |
+
* @author Vova Feldman (@svovaf)
|
620 |
+
* @since 1.2.2.2
|
621 |
+
*/
|
622 |
+
if ( $this->is_plugin() &&
|
623 |
+
! isset( $this->_storage->is_plugin_new_install )
|
624 |
+
) {
|
625 |
$this->_storage->is_plugin_new_install = false;
|
626 |
}
|
627 |
}
|
634 |
$this->_logger->entrance();
|
635 |
|
636 |
if ( is_admin() ) {
|
637 |
+
if ( $this->is_plugin() ) {
|
638 |
+
$plugin_dir = dirname( $this->_plugin_dir_path ) . '/';
|
639 |
|
640 |
+
/**
|
641 |
+
* @since 1.2.2
|
642 |
+
*
|
643 |
+
* Hook to both free and premium version activations to support
|
644 |
+
* auto deactivation on the other version activation.
|
645 |
+
*/
|
646 |
+
register_activation_hook(
|
647 |
+
$plugin_dir . $this->_free_plugin_basename,
|
648 |
+
array( &$this, '_activate_plugin_event_hook' )
|
649 |
+
);
|
650 |
+
|
651 |
+
register_activation_hook(
|
652 |
+
$plugin_dir . $this->premium_plugin_basename(),
|
653 |
+
array( &$this, '_activate_plugin_event_hook' )
|
654 |
+
);
|
655 |
+
} else {
|
656 |
+
add_action( 'after_switch_theme', array( &$this, '_activate_theme_event_hook' ), 10, 2 );
|
657 |
+
|
658 |
+
/**
|
659 |
+
* Include the required hooks to capture the theme settings' page tabs
|
660 |
+
* and cache them.
|
661 |
+
*
|
662 |
+
* @author Vova Feldman (@svovaf)
|
663 |
+
* @since 1.2.2.7
|
664 |
+
*/
|
665 |
+
if ( ! $this->_cache->has_valid( 'tabs' ) ) {
|
666 |
+
add_action( 'admin_footer', array( &$this, '_tabs_capture' ) );
|
667 |
+
// Add license activation AJAX callback.
|
668 |
+
$this->add_ajax_action( 'store_tabs', array( &$this, '_store_tabs_ajax_action' ) );
|
669 |
+
|
670 |
+
add_action( 'admin_enqueue_scripts', array( &$this, '_store_tabs_styles' ), 9999999 );
|
671 |
+
}
|
672 |
+
|
673 |
+
add_action(
|
674 |
+
'admin_footer',
|
675 |
+
array( &$this, '_add_freemius_tabs' ),
|
676 |
+
/**
|
677 |
+
* The tabs JS code must be executed after the tabs capture logic (_tabs_capture()).
|
678 |
+
* That's why the priority is 11 while the tabs capture logic is added
|
679 |
+
* with priority 10.
|
680 |
+
*
|
681 |
+
* @author Vova Feldman (@svovaf)
|
682 |
+
*/
|
683 |
+
11
|
684 |
+
);
|
685 |
+
|
686 |
+
add_action( 'admin_footer', array( &$this, '_style_premium_theme' ) );
|
687 |
+
}
|
688 |
|
689 |
/**
|
690 |
* Part of the mechanism to identify new plugin install vs. plugin update.
|
693 |
* @since 1.1.9
|
694 |
*/
|
695 |
if ( empty( $this->_storage->was_plugin_loaded ) ) {
|
696 |
+
if ( $this->is_plugin() &&
|
697 |
+
$this->is_activation_mode( false ) &&
|
698 |
+
0 == did_action( 'plugins_loaded' )
|
699 |
+
) {
|
700 |
add_action( 'plugins_loaded', array( &$this, '_plugins_loaded' ) );
|
701 |
} else {
|
702 |
// If was activated before, then it was already loaded before.
|
707 |
if ( ! self::is_ajax() ) {
|
708 |
if ( ! $this->is_addon() ) {
|
709 |
add_action( 'init', array( &$this, '_add_default_submenu_items' ), WP_FS__LOWEST_PRIORITY );
|
|
|
710 |
}
|
711 |
}
|
712 |
}
|
713 |
|
714 |
+
if ( $this->is_plugin() ) {
|
715 |
+
register_deactivation_hook( $this->_plugin_main_file_path, array( &$this, '_deactivate_plugin_hook' ) );
|
716 |
+
}
|
717 |
+
|
718 |
+
if ( $this->is_theme() && self::is_customizer() ) {
|
719 |
+
// Register customizer upsell.
|
720 |
+
add_action( 'customize_register', array( &$this, '_customizer_register' ) );
|
721 |
+
}
|
722 |
|
723 |
add_action( 'init', array( &$this, '_redirect_on_clicked_menu_link' ), WP_FS__LOWEST_PRIORITY );
|
724 |
|
735 |
$this->add_action( 'after_plans_sync', array( &$this, '_check_for_trial_plans' ) );
|
736 |
|
737 |
$this->add_action( 'sdk_version_update', array( &$this, '_data_migration' ), WP_FS__DEFAULT_PRIORITY, 2 );
|
738 |
+
$this->add_action( 'plugin_version_update', array( &$this, '_after_version_update' ), WP_FS__DEFAULT_PRIORITY, 2 );
|
739 |
+
$this->add_filter( 'after_code_type_change', array( &$this, '_after_code_type_change' ) );
|
740 |
|
741 |
add_action( 'admin_init', array( &$this, '_add_trial_notice' ) );
|
742 |
add_action( 'admin_init', array( &$this, '_enqueue_common_css' ) );
|
748 |
* @since 1.2.1.5
|
749 |
*/
|
750 |
if ( fs_request_is_action( 'reset_anonymous_mode' ) &&
|
751 |
+
$this->get_unique_affix() === fs_request_get( 'fs_unique_affix' )
|
752 |
) {
|
753 |
add_action( 'admin_init', array( &$this, 'connect_again' ) );
|
754 |
}
|
791 |
unset( $plugin_main_file->path );
|
792 |
|
793 |
$this->_storage->plugin_main_file = $plugin_main_file;
|
794 |
+
|
795 |
+
/**
|
796 |
+
* Clear global cached path.
|
797 |
+
*
|
798 |
+
* @author Leo Fajardo (@leorw)
|
799 |
+
* @since 1.2.2
|
800 |
+
*/
|
801 |
+
$id_slug_type_path_map = self::$_accounts->get_option( 'id_slug_type_path_map' );
|
802 |
+
unset( $id_slug_type_path_map[ $this->_module_id ]['path'] );
|
803 |
+
self::$_accounts->set_option( 'id_slug_type_path_map', $id_slug_type_path_map, true );
|
804 |
}
|
805 |
|
806 |
/**
|
823 |
array( &$this, '_submit_uninstall_reason_action' )
|
824 |
);
|
825 |
|
826 |
+
if ( ( $this->is_plugin() && self::is_plugins_page() ) ||
|
827 |
+
( $this->is_theme() && self::is_themes_page() )
|
828 |
+
) {
|
829 |
add_action( 'admin_footer', array( &$this, '_add_deactivation_feedback_dialog_box' ) );
|
830 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
831 |
}
|
832 |
|
833 |
/**
|
836 |
* @author Vova Feldman (@svovaf)
|
837 |
* @since 1.0.6
|
838 |
*
|
839 |
+
* @param bool $is_init Is initiation sequence.
|
840 |
*
|
841 |
* @return string
|
|
|
|
|
842 |
*/
|
843 |
private function _find_caller_plugin_file( $is_init = false ) {
|
844 |
// Try to load the cached value of the file path.
|
883 |
* Only the original instantiator that calls dynamic_init can modify the module's path.
|
884 |
*/
|
885 |
// Find caller module.
|
886 |
+
$id_slug_type_path_map = self::$_accounts->get_option( 'id_slug_type_path_map', array() );
|
|
|
|
|
887 |
$this->_storage->plugin_main_file = (object) array(
|
888 |
+
'path' => $id_slug_type_path_map[ $this->_module_id ]['path'],
|
889 |
);
|
890 |
|
891 |
+
return $id_slug_type_path_map[ $this->_module_id ]['path'];
|
892 |
}
|
893 |
|
894 |
/**
|
895 |
+
* @author Leo Fajardo (@leorw)
|
896 |
+
*
|
897 |
+
* @param number $module_id
|
898 |
+
* @param string $slug
|
899 |
*
|
900 |
+
* @since 1.2.2
|
901 |
+
*/
|
902 |
+
private function store_id_slug_type_path_map( $module_id, $slug ) {
|
903 |
+
$id_slug_type_path_map = self::$_accounts->get_option( 'id_slug_type_path_map', array() );
|
904 |
+
|
905 |
+
$store_option = false;
|
906 |
+
|
907 |
+
if ( ! isset( $id_slug_type_path_map[ $module_id ] ) ) {
|
908 |
+
$id_slug_type_path_map[ $module_id ] = array(
|
909 |
+
'slug' => $slug
|
910 |
+
);
|
911 |
+
|
912 |
+
$store_option = true;
|
913 |
+
}
|
914 |
+
|
915 |
+
if ( ! isset( $id_slug_type_path_map[ $module_id ]['path'] ) ) {
|
916 |
+
$caller_main_file_and_type = $this->get_caller_main_file_and_type();
|
917 |
+
|
918 |
+
$id_slug_type_path_map[ $module_id ]['type'] = $caller_main_file_and_type->module_type;
|
919 |
+
$id_slug_type_path_map[ $module_id ]['path'] = $caller_main_file_and_type->path;
|
920 |
+
|
921 |
+
$store_option = true;
|
922 |
+
}
|
923 |
+
|
924 |
+
if ( $store_option ) {
|
925 |
+
self::$_accounts->set_option( 'id_slug_type_path_map', $id_slug_type_path_map, true );
|
926 |
+
}
|
927 |
+
}
|
928 |
+
|
929 |
+
/**
|
930 |
+
* Identifies the caller type: plugin or theme.
|
931 |
*
|
932 |
+
* @author Leo Fajardo (@leorw)
|
933 |
+
* @since 1.2.2
|
934 |
*
|
935 |
+
* @author Vova Feldman (@svovaf)
|
936 |
+
* @since 1.2.2.3 Find the earliest module in the call stack that calls to the SDK. This fix is for cases when
|
937 |
+
* add-ons are relying on loading the SDK from the parent module, and also allows themes including the
|
938 |
+
* SDK an internal file instead of directly from functions.php.
|
939 |
+
* @since 1.2.1.7 Knows how to handle cases when an add-on includes the parent module logic.
|
940 |
*/
|
941 |
private function get_caller_main_file_and_type() {
|
942 |
self::require_plugin_essentials();
|
963 |
$caller_file_candidate = false;
|
964 |
$caller_map = array();
|
965 |
$module_type = WP_FS__MODULE_TYPE_PLUGIN;
|
966 |
+
$themes_dir = fs_normalize_path( get_theme_root() );
|
967 |
|
968 |
for ( $i = 1, $bt = debug_backtrace(), $len = count( $bt ); $i < $len; $i ++ ) {
|
969 |
if ( empty( $bt[ $i ]['file'] ) ) {
|
978 |
if ( ! empty( $bt[ $i ]['function'] ) && in_array( $bt[ $i ]['function'], array(
|
979 |
'do_action',
|
980 |
'apply_filter',
|
981 |
+
// The string split is stupid, but otherwise, theme check
|
982 |
+
// throws info notices.
|
983 |
+
'requir' . 'e_once',
|
984 |
+
'requir' . 'e',
|
985 |
+
'includ' . 'e_once',
|
986 |
+
'includ' . 'e'
|
987 |
) )
|
988 |
) {
|
989 |
// Ignore call stack hooks and files inclusion.
|
991 |
}
|
992 |
|
993 |
$caller_file_path = fs_normalize_path( $bt[ $i ]['file'] );
|
994 |
+
|
995 |
+
if ( 'functions.php' === basename( $caller_file_path ) ) {
|
996 |
+
/**
|
997 |
+
* 1. Assumes that theme's starting execution file is functions.php.
|
998 |
+
* 2. This complex logic fixes symlink issues (e.g. with Vargant).
|
999 |
+
*
|
1000 |
+
* @author Vova Feldman (@svovaf)
|
1001 |
+
* @since 1.2.2.5
|
1002 |
+
*/
|
1003 |
+
|
1004 |
+
if ( $caller_file_path == fs_normalize_path( realpath( trailingslashit( $themes_dir ) . basename( dirname( $caller_file_path ) ) . '/' . basename( $caller_file_path ) ) ) ) {
|
1005 |
+
$module_type = WP_FS__MODULE_TYPE_THEME;
|
1006 |
+
$caller_file_candidate = $caller_file_path;
|
1007 |
+
continue;
|
1008 |
+
}
|
1009 |
+
}
|
1010 |
+
|
1011 |
$caller_file_hash = md5( $caller_file_path );
|
1012 |
|
1013 |
if ( ! isset( $caller_map[ $caller_file_hash ] ) ) {
|
1025 |
}
|
1026 |
}
|
1027 |
|
|
|
|
|
|
|
|
|
|
|
1028 |
return (object) array(
|
1029 |
'module_type' => $module_type,
|
1030 |
'path' => $caller_file_candidate
|
1081 |
// Load the HTML template for the deactivation feedback dialog box.
|
1082 |
$vars = array(
|
1083 |
'reasons' => $uninstall_reasons,
|
1084 |
+
'id' => $this->_module_id
|
1085 |
);
|
1086 |
|
1087 |
/**
|
1099 |
* @return array The uninstall reasons for the specified user type.
|
1100 |
*/
|
1101 |
function _get_uninstall_reasons( $user_type = 'long-term' ) {
|
1102 |
+
$module_type = $this->_module_type;
|
1103 |
+
|
1104 |
$internal_message_template_var = array(
|
1105 |
+
'id' => $this->_module_id
|
1106 |
);
|
1107 |
|
1108 |
if ( $this->is_registered() && false !== $this->get_plan() && $this->get_plan()->has_technical_support() ) {
|
1113 |
|
1114 |
$reason_found_better_plugin = array(
|
1115 |
'id' => self::REASON_FOUND_A_BETTER_PLUGIN,
|
1116 |
+
'text' => sprintf( $this->get_text( 'reason-found-a-better-plugin' ), $module_type ),
|
1117 |
'input_type' => 'textfield',
|
1118 |
+
'input_placeholder' => sprintf( $this->get_text( 'placeholder-plugin-name' ), $module_type ),
|
1119 |
);
|
1120 |
|
1121 |
$reason_temporary_deactivation = array(
|
1122 |
'id' => self::REASON_TEMPORARY_DEACTIVATION,
|
1123 |
+
'text' => sprintf(
|
1124 |
+
$this->get_text( 'reason-temporary-x' ),
|
1125 |
+
strtolower( $this->is_plugin() ?
|
1126 |
+
$this->get_text( 'deactivation' ) :
|
1127 |
+
$this->get_text( 'theme-switch' )
|
1128 |
+
)
|
1129 |
+
),
|
1130 |
'input_type' => '',
|
1131 |
'input_placeholder' => ''
|
1132 |
);
|
1141 |
$long_term_user_reasons = array(
|
1142 |
array(
|
1143 |
'id' => self::REASON_NO_LONGER_NEEDED,
|
1144 |
+
'text' => sprintf( $this->get_text( 'reason-no-longer-needed' ), $module_type ),
|
1145 |
'input_type' => '',
|
1146 |
'input_placeholder' => ''
|
1147 |
),
|
1148 |
$reason_found_better_plugin,
|
1149 |
array(
|
1150 |
'id' => self::REASON_NEEDED_FOR_A_SHORT_PERIOD,
|
1151 |
+
'text' => sprintf( $this->get_text( 'reason-needed-for-a-short-period' ), $module_type ),
|
1152 |
'input_type' => '',
|
1153 |
'input_placeholder' => ''
|
1154 |
),
|
1155 |
array(
|
1156 |
'id' => self::REASON_BROKE_MY_SITE,
|
1157 |
+
'text' => sprintf( $this->get_text( 'reason-broke-my-site' ), $module_type ),
|
1158 |
'input_type' => '',
|
1159 |
'input_placeholder' => '',
|
1160 |
'internal_message' => $contact_support_template
|
1161 |
),
|
1162 |
array(
|
1163 |
'id' => self::REASON_SUDDENLY_STOPPED_WORKING,
|
1164 |
+
'text' => sprintf( $this->get_text( 'reason-suddenly-stopped-working' ), $module_type ),
|
1165 |
'input_type' => '',
|
1166 |
'input_placeholder' => '',
|
1167 |
'internal_message' => $contact_support_template
|
1200 |
'non-registered-and-non-anonymous-short-term' => array(
|
1201 |
array(
|
1202 |
'id' => self::REASON_DIDNT_WORK,
|
1203 |
+
'text' => sprintf( $this->get_text( 'reason-didnt-work' ), $module_type ),
|
1204 |
'input_type' => '',
|
1205 |
'input_placeholder' => ''
|
1206 |
),
|
1218 |
$reason_found_better_plugin,
|
1219 |
array(
|
1220 |
'id' => self::REASON_GREAT_BUT_NEED_SPECIFIC_FEATURE,
|
1221 |
+
'text' => sprintf( $this->get_text( 'reason-great-but-need-specific-feature' ), $module_type ),
|
1222 |
'input_type' => 'textarea',
|
1223 |
'input_placeholder' => $this->get_text( 'placeholder-feature' )
|
1224 |
),
|
1225 |
array(
|
1226 |
'id' => self::REASON_NOT_WORKING,
|
1227 |
+
'text' => sprintf( $this->get_text( 'reason-not-working' ), $module_type ),
|
1228 |
'input_type' => 'textarea',
|
1229 |
'input_placeholder' => $this->get_text( 'placeholder-share-what-didnt-work' )
|
1230 |
),
|
1236 |
),
|
1237 |
array(
|
1238 |
'id' => self::REASON_DIDNT_WORK_AS_EXPECTED,
|
1239 |
+
'text' => sprintf( $this->get_text( 'reason-didnt-work-as-expected' ), $module_type ),
|
1240 |
'input_type' => 'textarea',
|
1241 |
'input_placeholder' => $this->get_text( 'placeholder-what-did-you-expect' )
|
1242 |
)
|
1286 |
|
1287 |
$this->_storage->store( 'uninstall_reason', $reason );
|
1288 |
|
1289 |
+
/**
|
1290 |
+
* If the module type is "theme", trigger the uninstall event here (on theme deactivation) since themes do
|
1291 |
+
* not support uninstall hook.
|
1292 |
+
*
|
1293 |
+
* @author Leo Fajardo (@leorw)
|
1294 |
+
* @since 1.2.2
|
1295 |
+
*/
|
1296 |
+
if ( $this->is_theme() ) {
|
1297 |
+
$this->_uninstall_plugin_event( false );
|
1298 |
+
$this->remove_sdk_reference();
|
1299 |
+
}
|
1300 |
+
|
1301 |
// Print '1' for successful operation.
|
1302 |
echo 1;
|
1303 |
exit;
|
1315 |
* @author Vova Feldman (@svovaf)
|
1316 |
* @since 1.0.0
|
1317 |
*
|
1318 |
+
* @param number $module_id
|
1319 |
+
* @param string|bool $slug
|
1320 |
+
* @param bool $is_init Is initiation sequence.
|
1321 |
*
|
1322 |
* @return Freemius|false
|
1323 |
*/
|
1324 |
+
static function instance( $module_id, $slug = false, $is_init = false ) {
|
1325 |
+
if ( empty( $module_id ) ) {
|
1326 |
return false;
|
1327 |
}
|
1328 |
|
1329 |
+
if ( ! is_numeric( $module_id ) ) {
|
1330 |
+
if ( ! $is_init && true === $slug ) {
|
1331 |
+
$is_init = true;
|
1332 |
+
}
|
1333 |
+
|
1334 |
+
$slug = $module_id;
|
1335 |
+
|
1336 |
+
$module = FS_Plugin_Manager::instance( $slug )->get();
|
1337 |
+
|
1338 |
+
if ( is_object( $module ) ) {
|
1339 |
+
$module_id = $module->id;
|
1340 |
+
}
|
1341 |
+
}
|
1342 |
|
1343 |
+
$key = 'm_' . $module_id;
|
1344 |
+
|
1345 |
+
if ( ! isset( self::$_instances[ $key ] ) ) {
|
1346 |
if ( 0 === count( self::$_instances ) ) {
|
1347 |
self::_load_required_static();
|
1348 |
}
|
1349 |
|
1350 |
+
self::$_instances[ $key ] = new Freemius( $module_id, $slug, $is_init );
|
1351 |
}
|
1352 |
|
1353 |
+
return self::$_instances[ $key ];
|
1354 |
}
|
1355 |
|
1356 |
/**
|
1357 |
* @author Vova Feldman (@svovaf)
|
1358 |
* @since 1.0.6
|
1359 |
*
|
1360 |
+
* @param number $addon_id
|
1361 |
*
|
1362 |
* @return bool
|
1363 |
*/
|
1364 |
+
private static function has_instance( $addon_id ) {
|
1365 |
+
return isset( self::$_instances[ 'm_' . $addon_id ] );
|
1366 |
+
}
|
1367 |
+
|
1368 |
+
/**
|
1369 |
+
* @author Leo Fajardo (@leorw)
|
1370 |
+
* @since 1.2.2
|
1371 |
+
*
|
1372 |
+
* @param string|number $id_or_slug
|
1373 |
+
*
|
1374 |
+
* @return number|false
|
1375 |
+
*/
|
1376 |
+
private static function get_module_id( $id_or_slug ) {
|
1377 |
+
if ( is_numeric( $id_or_slug ) ) {
|
1378 |
+
return $id_or_slug;
|
1379 |
+
}
|
1380 |
+
|
1381 |
+
foreach ( self::$_instances as $instance ) {
|
1382 |
+
if ( $instance->is_plugin() && ( $id_or_slug === $instance->get_slug() ) ) {
|
1383 |
+
return $instance->get_id();
|
1384 |
+
}
|
1385 |
+
}
|
1386 |
+
|
1387 |
+
return false;
|
1388 |
}
|
1389 |
|
1390 |
/**
|
1396 |
* @return false|Freemius
|
1397 |
*/
|
1398 |
static function get_instance_by_id( $id ) {
|
1399 |
+
return isset ( self::$_instances[ 'm_' . $id ] ) ?
|
1400 |
+
self::$_instances[ 'm_' . $id ] :
|
1401 |
+
false;
|
|
|
|
|
|
|
|
|
1402 |
}
|
1403 |
|
1404 |
/**
|
1414 |
$slug = self::find_slug_by_basename( $plugin_file );
|
1415 |
|
1416 |
return ( false !== $slug ) ?
|
1417 |
+
self::instance( self::get_module_id( $slug ) ) :
|
1418 |
false;
|
1419 |
}
|
1420 |
|
1432 |
* @author Vova Feldman (@svovaf)
|
1433 |
* @since 1.0.6
|
1434 |
*
|
1435 |
+
* @param string|number $id_or_slug
|
1436 |
*
|
1437 |
+
* @return false|Freemius
|
1438 |
*/
|
1439 |
+
function get_addon_instance( $id_or_slug ) {
|
1440 |
+
$addon_id = self::get_module_id( $id_or_slug );
|
1441 |
+
|
1442 |
+
return self::instance( $addon_id );
|
1443 |
}
|
1444 |
|
1445 |
#endregion ------------------------------------------------------------------
|
1451 |
* @return bool
|
1452 |
*/
|
1453 |
function is_parent_plugin_installed() {
|
1454 |
+
$is_active = self::has_instance( $this->_plugin->parent_plugin_id );
|
1455 |
+
|
1456 |
+
if ( $is_active ) {
|
1457 |
+
return true;
|
1458 |
+
}
|
1459 |
+
|
1460 |
+
/**
|
1461 |
+
* Parent module might be a theme. If that's the case, the add-on's FS
|
1462 |
+
* instance will be loaded prior to the theme's FS instance, therefore,
|
1463 |
+
* we need to check if it's active with a "look ahead".
|
1464 |
+
*
|
1465 |
+
* @author Vova Feldman
|
1466 |
+
* @since 1.2.2.3
|
1467 |
+
*/
|
1468 |
+
global $fs_active_plugins;
|
1469 |
+
if ( is_object( $fs_active_plugins ) && is_array( $fs_active_plugins->plugins ) ) {
|
1470 |
+
$active_theme = wp_get_theme();
|
1471 |
+
|
1472 |
+
foreach ( $fs_active_plugins->plugins as $sdk => $module ) {
|
1473 |
+
if ( WP_FS__MODULE_TYPE_THEME === $module->type ) {
|
1474 |
+
if ( $module->plugin_path == $active_theme->get_stylesheet() ) {
|
1475 |
+
// Parent module is a theme and it's currently active.
|
1476 |
+
return true;
|
1477 |
+
}
|
1478 |
+
}
|
1479 |
+
}
|
1480 |
+
}
|
1481 |
+
|
1482 |
+
return false;
|
1483 |
}
|
1484 |
|
1485 |
/**
|
1512 |
function is_activation_mode( $and_on = true ) {
|
1513 |
return (
|
1514 |
( $this->is_on() || ! $and_on ) &&
|
1515 |
+
( ! $this->is_registered() || ( $this->is_only_premium() && ! $this->has_features_enabled_license() ) ) &&
|
1516 |
( ! $this->is_enable_anonymous() ||
|
1517 |
( ! $this->is_anonymous() && ! $this->is_pending_activation() ) )
|
1518 |
);
|
1536 |
}
|
1537 |
|
1538 |
// Check if current page is matching the activation page.
|
1539 |
+
return $this->is_matching_url( $this->get_activation_url() );
|
1540 |
}
|
1541 |
|
1542 |
/**
|
1550 |
* @author Vova Feldman (@svovaf)
|
1551 |
* @since 1.2.1.7
|
1552 |
*
|
|
|
1553 |
* @param string $sub_url
|
1554 |
+
* @param string $url If argument is not set, check if the sub_url matching the current's page URL.
|
1555 |
*
|
1556 |
* @return bool
|
1557 |
*/
|
1558 |
+
private function is_matching_url( $sub_url, $url = '' ) {
|
1559 |
+
if ( empty( $url ) ) {
|
1560 |
+
$url = $_SERVER['REQUEST_URI'];
|
1561 |
+
}
|
1562 |
+
|
1563 |
$url = strtolower( $url );
|
1564 |
$sub_url = strtolower( $sub_url );
|
1565 |
|
1713 |
|
1714 |
self::$_global_admin_notices = FS_Admin_Notice_Manager::instance( 'global' );
|
1715 |
|
|
|
|
|
|
|
1716 |
add_action( 'admin_menu', array( 'Freemius', '_add_debug_section' ) );
|
1717 |
|
1718 |
add_action( "wp_ajax_fs_toggle_debug_mode", array( 'Freemius', '_toggle_debug_mode' ) );
|
1723 |
|
1724 |
self::add_ajax_action_static( 'set_db_option', array( 'Freemius', '_set_db_option' ) );
|
1725 |
|
1726 |
+
if ( 0 == did_action( 'plugins_loaded' ) ) {
|
1727 |
+
add_action( 'plugins_loaded', array( 'Freemius', '_load_textdomain' ), 1 );
|
1728 |
+
}
|
1729 |
|
1730 |
self::$_statics_loaded = true;
|
1731 |
}
|
1766 |
* @since 1.0.8
|
1767 |
*/
|
1768 |
static function _add_debug_section() {
|
1769 |
+
if ( ! current_user_can( 'activate_plugins' )
|
1770 |
+
&& ! current_user_can( 'switch_themes' )
|
1771 |
+
) {
|
1772 |
return;
|
1773 |
}
|
1774 |
|
1776 |
|
1777 |
$title = sprintf( '%s [v.%s]', fs_text( 'freemius-debug' ), WP_FS__SDK_VERSION );
|
1778 |
|
|
|
|
|
1779 |
if ( WP_FS__DEV_MODE ) {
|
1780 |
// Add top-level debug menu item.
|
1781 |
$hook = FS_Admin_Menu_Manager::add_page(
|
1786 |
array( 'Freemius', '_debug_page_render' )
|
1787 |
);
|
1788 |
} else {
|
1789 |
+
// Add hidden debug page.
|
1790 |
+
$hook = FS_Admin_Menu_Manager::add_subpage(
|
1791 |
+
null,
|
1792 |
+
$title,
|
1793 |
+
$title,
|
1794 |
+
'manage_options',
|
1795 |
+
'freemius',
|
1796 |
+
array( 'Freemius', '_debug_page_render' )
|
1797 |
+
);
|
|
|
|
|
1798 |
}
|
1799 |
|
1800 |
if ( ! empty( $hook ) ) {
|
1872 |
self::shoot_ajax_success();
|
1873 |
}
|
1874 |
|
|
|
1875 |
/**
|
1876 |
* @author Vova Feldman (@svovaf)
|
1877 |
* @since 1.0.8
|
1890 |
} else if ( fs_request_is_action( 'simulate_trial' ) ) {
|
1891 |
check_admin_referer( 'simulate_trial' );
|
1892 |
|
1893 |
+
$fs = freemius( fs_request_get( 'module_id' ) );
|
|
|
|
|
1894 |
|
1895 |
// Update SDK install to at least 24 hours before.
|
1896 |
$fs->_storage->install_timestamp = ( time() - WP_FS__TIME_24_HOURS_IN_SEC );
|
1897 |
// Unset the trial shown timestamp.
|
1898 |
unset( $fs->_storage->trial_promotion_shown );
|
1899 |
+
} else if ( fs_request_is_action( 'delete_install' ) ) {
|
1900 |
+
check_admin_referer( 'delete_install' );
|
1901 |
+
|
1902 |
+
self::_delete_site_by_slug(
|
1903 |
+
fs_request_get( 'slug' ),
|
1904 |
+
fs_request_get( 'module_type' )
|
1905 |
+
);
|
1906 |
} else if ( fs_request_is_action( 'download_logs' ) ) {
|
1907 |
check_admin_referer( 'download_logs' );
|
1908 |
|
1926 |
self::$_static_logger->entrance();
|
1927 |
|
1928 |
$vars = array(
|
1929 |
+
'plugin_sites' => self::get_all_sites(),
|
1930 |
+
'theme_sites' => self::get_all_sites( WP_FS__MODULE_TYPE_THEME ),
|
1931 |
+
'users' => self::get_all_users(),
|
1932 |
+
'addons' => self::get_all_addons(),
|
1933 |
+
'account_addons' => self::get_all_account_addons(),
|
1934 |
+
'plugin_licenses' => self::get_all_licenses(),
|
1935 |
+
'theme_licenses' => self::get_all_licenses( WP_FS__MODULE_TYPE_THEME )
|
1936 |
);
|
1937 |
|
1938 |
fs_enqueue_local_style( 'fs_debug', '/admin/debug.css' );
|
2052 |
'sdk' => $this->version,
|
2053 |
'is_admin' => json_encode( is_admin() ),
|
2054 |
'is_ajax' => json_encode( self::is_ajax() ),
|
2055 |
+
'is_cron' => json_encode( self::is_cron() ),
|
2056 |
'is_http' => json_encode( WP_FS__IS_HTTP_REQUEST ),
|
2057 |
)
|
2058 |
);
|
2217 |
return wp_get_current_user();
|
2218 |
}
|
2219 |
|
2220 |
+
/**
|
2221 |
+
* @author Vova Feldman (@svovaf)
|
2222 |
+
* @since 1.2.1.7
|
2223 |
+
*
|
2224 |
+
* @param string $email
|
2225 |
+
*
|
2226 |
+
* @return bool
|
2227 |
+
*/
|
2228 |
+
static function is_valid_email( $email ) {
|
2229 |
+
if ( false === filter_var( $email, FILTER_VALIDATE_EMAIL ) ) {
|
2230 |
+
return false;
|
2231 |
+
}
|
2232 |
+
|
2233 |
+
$parts = explode( '@', $email );
|
2234 |
+
|
2235 |
+
if ( 2 !== count( $parts ) || empty( $parts[1] ) ) {
|
2236 |
+
return false;
|
2237 |
+
}
|
2238 |
+
|
2239 |
+
$blacklist = array(
|
2240 |
+
'admin.',
|
2241 |
+
'webmaster.',
|
2242 |
+
'localhost.',
|
2243 |
+
'dev.',
|
2244 |
+
'development.',
|
2245 |
+
'test.',
|
2246 |
+
'stage.',
|
2247 |
+
'staging.',
|
2248 |
+
);
|
2249 |
+
|
2250 |
+
// Make sure domain is not one of the blacklisted.
|
2251 |
+
foreach ( $blacklist as $invalid ) {
|
2252 |
+
if ( 0 === strpos( $parts[1], $invalid ) ) {
|
2253 |
+
return false;
|
2254 |
+
}
|
2255 |
+
}
|
2256 |
+
|
2257 |
+
// Get the UTF encoded domain name.
|
2258 |
+
$domain = idn_to_ascii( $parts[1] ) . '.';
|
2259 |
+
|
2260 |
+
return ( checkdnsrr( $domain, 'MX' ) || checkdnsrr( $domain, 'A' ) );
|
2261 |
+
}
|
2262 |
+
|
2263 |
/**
|
2264 |
* Generate API connectivity issue message.
|
2265 |
*
|
2334 |
sprintf(
|
2335 |
'<b>%s</b> - %s',
|
2336 |
$this->get_text( 'sysadmin-title' ),
|
2337 |
+
sprintf( $this->get_text( 'curl-missing-sysadmin-desc' ), $this->_module_type )
|
2338 |
),
|
2339 |
sprintf(
|
2340 |
'<a href="%s"><b>%s</b></a>%s',
|
2399 |
sprintf(
|
2400 |
$this->get_text( 'squid-sysadmin-desc' ),
|
2401 |
// We use a filter since the plugin might require additional API connectivity.
|
2402 |
+
'<b>' . implode( ', ', $this->apply_filters( 'api_domains', array( 'api.freemius.com', 'wp.freemius.com' ) ) ) . '</b>',
|
2403 |
+
$this->_module_type
|
2404 |
+
)
|
2405 |
),
|
2406 |
sprintf(
|
2407 |
'<a href="%s"><b>%s</b></a>%s',
|
2682 |
|
2683 |
$active_plugin = self::get_active_plugins();
|
2684 |
|
2685 |
+
// Generate the list of active plugins separated by new line.
|
2686 |
$active_plugin_string = '';
|
2687 |
foreach ( $active_plugin as $plugin ) {
|
2688 |
$active_plugin_string .= sprintf(
|
2712 |
)
|
2713 |
),
|
2714 |
'plugin' => array(
|
2715 |
+
'title' => ucfirst( $this->get_module_type() ),
|
2716 |
'rows' => array(
|
2717 |
'name' => array( 'Name', $this->get_plugin_name() ),
|
2718 |
'version' => array( 'Version', $this->get_plugin_version() )
|
2721 |
'api' => array(
|
2722 |
'title' => 'API Subdomain',
|
2723 |
'rows' => array(
|
2724 |
+
'dns' => array(
|
2725 |
+
'DNS_CNAME',
|
2726 |
+
function_exists( 'dns_get_record' ) ?
|
2727 |
+
var_export( dns_get_record( $api_domain, DNS_CNAME ), true ) :
|
2728 |
+
'dns_get_record() disabled/blocked'
|
2729 |
+
),
|
2730 |
+
'ip' => array(
|
2731 |
+
'IP',
|
2732 |
+
function_exists( 'gethostbyname' ) ?
|
2733 |
+
gethostbyname( $api_domain ) :
|
2734 |
+
'gethostbyname() disabled/blocked'
|
2735 |
+
),
|
2736 |
),
|
2737 |
),
|
2738 |
'site' => array(
|
2827 |
|
2828 |
$this->parse_settings( $plugin_info );
|
2829 |
|
2830 |
+
if ( ! self::is_ajax() ) {
|
2831 |
+
if ( ! $this->is_addon() || $this->is_only_premium() ) {
|
2832 |
+
add_action( 'admin_menu', array( &$this, '_prepare_admin_menu' ), WP_FS__LOWEST_PRIORITY );
|
2833 |
+
}
|
2834 |
+
}
|
2835 |
+
|
2836 |
+
if ( $this->should_stop_execution() ) {
|
2837 |
return;
|
2838 |
}
|
2839 |
|
2885 |
}
|
2886 |
|
2887 |
if ( $this->has_api_connectivity() ) {
|
2888 |
+
if ( self::is_cron() ) {
|
2889 |
$this->hook_callback_to_sync_cron();
|
2890 |
} else if ( $this->is_user_in_admin() ) {
|
2891 |
/**
|
2928 |
}
|
2929 |
|
2930 |
if ( $this->is_user_in_admin() ) {
|
2931 |
+
if ( self::is_plugins_page() && $this->is_plugin() ) {
|
2932 |
$this->hook_plugin_action_links();
|
2933 |
}
|
2934 |
|
2954 |
if ( $this->_parent->is_registered() && ! $this->is_registered() ) {
|
2955 |
// If parent plugin activated, automatically install add-on for the user.
|
2956 |
$this->_activate_addon_account( $this->_parent );
|
2957 |
+
} else if ( ! $this->_parent->is_registered() && $this->is_registered() ) {
|
2958 |
+
// If add-on activated and parent not, automatically install parent for the user.
|
2959 |
+
$this->activate_parent_account( $this->_parent );
|
2960 |
}
|
2961 |
|
2962 |
// @todo This should be only executed on activation. It should be migrated to register_activation_hook() together with other activation related logic.
|
2968 |
) );
|
2969 |
}
|
2970 |
|
2971 |
+
// $this->deactivate_premium_only_addon_without_license();
|
2972 |
}
|
2973 |
} else {
|
2974 |
if ( $this->has_addons() &&
|
3251 |
}
|
3252 |
|
3253 |
if ( false === $id ) {
|
3254 |
+
throw new Freemius_Exception( array(
|
3255 |
+
'error' => array(
|
3256 |
+
'type' => 'ParameterNotSet',
|
3257 |
+
'message' => 'Plugin id parameter is not set.',
|
3258 |
+
'code' => 'plugin_id_not_set',
|
3259 |
+
'http' => 500,
|
3260 |
+
)
|
3261 |
+
) );
|
3262 |
}
|
3263 |
if ( false === $public_key ) {
|
3264 |
+
throw new Freemius_Exception( array(
|
3265 |
+
'error' => array(
|
3266 |
+
'type' => 'ParameterNotSet',
|
3267 |
+
'message' => 'Plugin public_key parameter is not set.',
|
3268 |
+
'code' => 'plugin_public_key_not_set',
|
3269 |
+
'http' => 500,
|
3270 |
+
)
|
3271 |
+
) );
|
3272 |
}
|
3273 |
|
3274 |
$plugin = ( $this->_plugin instanceof FS_Plugin ) ?
|
3285 |
'file' => $this->_plugin_basename,
|
3286 |
'is_premium' => $this->get_bool_option( $plugin_info, 'is_premium', true ),
|
3287 |
'is_live' => $this->get_bool_option( $plugin_info, 'is_live', true ),
|
3288 |
+
'type' => $this->_module_type,
|
3289 |
// 'secret_key' => $secret_key,
|
3290 |
) );
|
3291 |
|
3292 |
if ( $plugin->is_updated() ) {
|
3293 |
// Update plugin details.
|
3294 |
+
$this->_plugin = FS_Plugin_Manager::instance( $this->_module_id )->store( $plugin );
|
3295 |
}
|
3296 |
// Set the secret key after storing the plugin, we don't want to store the key in the storage.
|
3297 |
$this->_plugin->secret_key = $secret_key;
|
3309 |
}
|
3310 |
}
|
3311 |
|
3312 |
+
$this->_menu = FS_Admin_Menu_Manager::instance(
|
3313 |
+
$this->_module_id,
|
3314 |
+
$this->_module_type,
|
3315 |
+
$this->get_unique_affix()
|
3316 |
+
);
|
3317 |
+
|
3318 |
$this->_menu->init( $plugin_info['menu'], $this->is_addon() );
|
3319 |
|
3320 |
$this->_has_addons = $this->get_bool_option( $plugin_info, 'has_addons', false );
|
3411 |
return true;
|
3412 |
}
|
3413 |
|
3414 |
+
if ( self::is_cron() ) {
|
3415 |
/**
|
3416 |
* If in activation mode, don't execute Freemius during wp crons
|
3417 |
* (wp crons have HTTP context - called as HTTP request).
|
3449 |
function _after_code_type_change() {
|
3450 |
$this->_logger->entrance();
|
3451 |
|
3452 |
+
if ( $this->is_theme() ) {
|
3453 |
+
// Expire the cache of the previous tabs since the theme may
|
3454 |
+
// have setting updates after code type has changed.
|
3455 |
+
$this->_cache->expire( 'tabs' );
|
3456 |
+
$this->_cache->expire( 'tabs_stylesheets' );
|
3457 |
+
}
|
3458 |
+
|
3459 |
+
if ( $this->is_registered() ) {
|
3460 |
+
if ( ! $this->is_addon() ) {
|
3461 |
+
add_action(
|
3462 |
+
is_admin() ? 'admin_init' : 'init',
|
3463 |
+
array( &$this, '_plugin_code_type_changed' )
|
3464 |
+
);
|
3465 |
+
}
|
3466 |
+
|
3467 |
+
if ( $this->is_premium() ) {
|
3468 |
+
// Purge cached payments after switching to the premium version.
|
3469 |
+
// @todo This logic doesn't handle purging the cache for serviceware module upgrade.
|
3470 |
+
$this->get_api_user_scope()->purge_cache( "/plugins/{$this->_module_id}/payments.json?include_addons=true" );
|
3471 |
+
}
|
3472 |
+
}
|
3473 |
}
|
3474 |
|
3475 |
/**
|
3496 |
) );
|
3497 |
|
3498 |
$this->_admin_notices->add_sticky(
|
3499 |
+
sprintf( $this->get_text( 'premium-activated-message' ), $this->_module_type ),
|
3500 |
'premium_activated',
|
3501 |
$this->get_text( 'woot' ) . '!'
|
3502 |
);
|
3551 |
* @author Vova Feldman (@svovaf)
|
3552 |
* @since 1.0.6
|
3553 |
*
|
3554 |
+
* @param string|number $id_or_slug
|
3555 |
* @param bool|null $is_premium Since 1.2.1.7 can check for specified add-on version.
|
3556 |
*
|
3557 |
* @return bool
|
3558 |
*/
|
3559 |
+
function is_addon_activated( $id_or_slug, $is_premium = null ) {
|
3560 |
$this->_logger->entrance();
|
3561 |
|
3562 |
+
$addon_id = self::get_module_id( $id_or_slug );
|
3563 |
+
$is_activated = self::has_instance( $addon_id );
|
3564 |
|
3565 |
if ( ! $is_activated ) {
|
3566 |
return false;
|
3568 |
|
3569 |
if ( is_bool( $is_premium ) ) {
|
3570 |
// Check if the specified code version is activate.
|
3571 |
+
$addon = $this->get_addon_instance( $addon_id );
|
3572 |
$is_activated = ( $is_premium === $addon->is_premium() );
|
3573 |
}
|
3574 |
|
3581 |
* @author Vova Feldman (@svovaf)
|
3582 |
* @since 1.1.7
|
3583 |
*
|
3584 |
+
* @param string|number $id_or_slug
|
3585 |
*
|
3586 |
* @return bool
|
3587 |
*/
|
3588 |
+
function is_addon_connected( $id_or_slug ) {
|
3589 |
$this->_logger->entrance();
|
3590 |
|
3591 |
+
$sites = self::get_all_sites( WP_FS__MODULE_TYPE_PLUGIN );
|
3592 |
|
3593 |
+
$addon_id = self::get_module_id( $id_or_slug );
|
3594 |
+
$addon = $this->get_addon( $addon_id );
|
3595 |
+
$slug = $addon->slug;
|
3596 |
if ( ! isset( $sites[ $slug ] ) ) {
|
3597 |
return false;
|
3598 |
}
|
3599 |
|
3600 |
$site = $sites[ $slug ];
|
3601 |
|
3602 |
+
$plugin = FS_Plugin_Manager::instance( $addon_id )->get();
|
3603 |
|
3604 |
if ( $plugin->parent_plugin_id != $this->_plugin->id ) {
|
3605 |
// The given slug do NOT belong to any of the plugin's add-ons.
|
3621 |
* @author Vova Feldman (@svovaf)
|
3622 |
* @since 1.0.6
|
3623 |
*
|
3624 |
+
* @param string|number $id_or_slug
|
3625 |
*
|
3626 |
* @return bool
|
3627 |
*/
|
3628 |
+
function is_addon_installed( $id_or_slug ) {
|
3629 |
$this->_logger->entrance();
|
3630 |
|
3631 |
+
$addon_id = self::get_module_id( $id_or_slug );
|
3632 |
+
|
3633 |
+
return file_exists( fs_normalize_path( WP_PLUGIN_DIR . '/' . $this->get_addon_basename( $addon_id ) ) );
|
3634 |
}
|
3635 |
|
3636 |
/**
|
3639 |
* @author Vova Feldman (@svovaf)
|
3640 |
* @since 1.0.6
|
3641 |
*
|
3642 |
+
* @param string|number $id_or_slug
|
3643 |
*
|
3644 |
* @return string
|
3645 |
*/
|
3646 |
+
function get_addon_basename( $id_or_slug ) {
|
3647 |
+
$addon_id = self::get_module_id( $id_or_slug );
|
3648 |
+
|
3649 |
+
if ( $this->is_addon_activated( $addon_id ) ) {
|
3650 |
+
return self::instance( $addon_id )->get_plugin_basename();
|
3651 |
}
|
3652 |
|
3653 |
+
$addon = $this->get_addon( $addon_id );
|
3654 |
+
$premium_basename = "{$addon->slug}-premium/{$addon->slug}.php";
|
3655 |
|
3656 |
if ( file_exists( fs_normalize_path( WP_PLUGIN_DIR . '/' . $premium_basename ) ) ) {
|
3657 |
return $premium_basename;
|
3658 |
}
|
3659 |
|
3660 |
+
$all_plugins = $this->get_all_plugins();
|
3661 |
+
|
3662 |
+
foreach ( $all_plugins as $basename => &$data ) {
|
3663 |
+
if ( $addon->slug === $data['slug'] ||
|
3664 |
+
$addon->slug . '-premium' === $data['slug']
|
3665 |
+
) {
|
3666 |
+
return $basename;
|
3667 |
+
}
|
3668 |
+
}
|
3669 |
+
|
3670 |
+
$free_basename = "{$addon->slug}/{$addon->slug}.php";
|
3671 |
|
3672 |
return $free_basename;
|
3673 |
}
|
3682 |
*/
|
3683 |
function get_installed_addons() {
|
3684 |
$installed_addons = array();
|
3685 |
+
foreach ( self::$_instances as $instance ) {
|
3686 |
if ( $instance->is_addon() && is_object( $instance->_parent_plugin ) ) {
|
3687 |
if ( $this->_plugin->id == $instance->_parent_plugin->id ) {
|
3688 |
$installed_addons[] = $instance;
|
3706 |
return false;
|
3707 |
}
|
3708 |
|
3709 |
+
foreach ( self::$_instances as $instance ) {
|
3710 |
if ( $instance->is_addon() && is_object( $instance->_parent_plugin ) ) {
|
3711 |
if ( $this->_plugin->id == $instance->_parent_plugin->id ) {
|
3712 |
return true;
|
3751 |
! $this->has_features_enabled_license() &&
|
3752 |
! $this->_has_premium_license()
|
3753 |
) {
|
3754 |
+
if ( $this->is_registered() ) {
|
3755 |
+
// IF wrapper is turned off because activation_timestamp is currently only stored for plugins (not addons).
|
3756 |
+
// if (empty($this->_storage->activation_timestamp) ||
|
3757 |
+
// (WP_FS__SCRIPT_START_TIME - $this->_storage->activation_timestamp) > 30
|
3758 |
+
// ) {
|
3759 |
+
/**
|
3760 |
+
* @todo When it's first fail, there's no reason to try and re-sync because the licenses were just synced after initial activation.
|
3761 |
+
*
|
3762 |
+
* Retry syncing the user add-on licenses.
|
3763 |
+
*/
|
3764 |
+
// Sync licenses.
|
3765 |
+
$this->_sync_licenses();
|
3766 |
+
// }
|
3767 |
|
3768 |
+
// Try to activate premium license.
|
3769 |
+
$this->_activate_license( true );
|
3770 |
+
}
|
3771 |
|
3772 |
if ( ! $this->has_free_plan() &&
|
3773 |
! $this->has_features_enabled_license() &&
|
3775 |
) {
|
3776 |
// @todo Check if deactivate plugins also call the deactivation hook.
|
3777 |
|
|
|
|
|
3778 |
$this->_parent->_admin_notices->add_sticky(
|
3779 |
sprintf(
|
3780 |
$this->_parent->get_text( $is_after_trial_cancel ?
|
3793 |
( $is_after_trial_cancel ? 'success' : 'error' )
|
3794 |
);
|
3795 |
|
3796 |
+
deactivate_plugins( array( $this->_plugin_basename ), true );
|
3797 |
+
|
3798 |
return true;
|
3799 |
}
|
3800 |
}
|
3820 |
$this->_plugin->secret_key = $secret_key;
|
3821 |
|
3822 |
// Update plugin details.
|
3823 |
+
FS_Plugin_Manager::instance( $this->_module_id )->update( $this->_plugin, true );
|
3824 |
}
|
3825 |
|
3826 |
/**
|
3909 |
* @since 1.1.7.3
|
3910 |
*/
|
3911 |
private function run_manual_sync() {
|
3912 |
+
self::require_pluggable_essentials();
|
3913 |
|
3914 |
if ( ! $this->is_user_admin() ) {
|
3915 |
return;
|
4242 |
* @return bool
|
4243 |
*/
|
4244 |
function is_plugin_activation() {
|
4245 |
+
return get_option( 'fs_'
|
4246 |
+
. ( $this->is_plugin() ? '' : $this->_module_type . '_' )
|
4247 |
+
. "{$this->_slug}_activated", false );
|
4248 |
}
|
4249 |
|
4250 |
/**
|
4261 |
* @since 1.1.7 Do NOT redirect to opt-in when running in network admin mode.
|
4262 |
*/
|
4263 |
if ( $this->is_plugin_activation() ) {
|
4264 |
+
delete_option( 'fs_'
|
4265 |
+
. ( $this->is_plugin() ? '' : $this->_module_type . '_' )
|
4266 |
+
. "{$this->_slug}_activated" );
|
4267 |
|
4268 |
if ( ! function_exists( 'is_network_admin' ) || ! is_network_admin() ) {
|
4269 |
$this->_redirect_on_activation_hook();
|
4272 |
}
|
4273 |
}
|
4274 |
|
4275 |
+
if ( fs_request_is_action( $this->get_unique_affix() . '_skip_activation' ) ) {
|
4276 |
+
check_admin_referer( $this->get_unique_affix() . '_skip_activation' );
|
4277 |
|
4278 |
$this->skip_connection();
|
4279 |
|
4283 |
if ( ! $this->is_addon() && ! $this->is_registered() && ! $this->is_anonymous() ) {
|
4284 |
if ( ! $this->is_pending_activation() ) {
|
4285 |
if ( ! $this->_menu->is_main_settings_page() ) {
|
4286 |
+
/**
|
4287 |
+
* If a user visits any other admin page before activating the premium-only theme with a valid
|
4288 |
+
* license, reactivate the previous theme.
|
4289 |
+
*
|
4290 |
+
* @author Leo Fajardo (@leorw)
|
4291 |
+
* @since 1.2.2
|
4292 |
+
*/
|
4293 |
+
if ( $this->is_theme()
|
4294 |
+
&& $this->is_only_premium()
|
4295 |
+
&& ! $this->has_settings_menu()
|
4296 |
+
&& ! isset( $_REQUEST['fs_action'] )
|
4297 |
+
&& $this->can_activate_previous_theme()
|
4298 |
+
) {
|
4299 |
+
$this->activate_previous_theme();
|
4300 |
+
|
4301 |
+
return;
|
4302 |
+
}
|
4303 |
+
|
4304 |
if ( $this->is_plugin_new_install() || $this->is_only_premium() ) {
|
4305 |
// Show notice for new plugin installations.
|
4306 |
$this->_admin_notices->add(
|
4322 |
$this->_admin_notices->add_sticky(
|
4323 |
sprintf(
|
4324 |
$this->get_text( 'few-plugin-tweaks' ),
|
4325 |
+
$this->_module_type,
|
4326 |
sprintf( '<b><a href="%s">%s</a></b>',
|
4327 |
$this->get_activation_url(),
|
4328 |
sprintf( $this->get_text( 'optin-x-now' ), $this->get_plugin_name() )
|
4346 |
'_add_connect_pointer_script'
|
4347 |
) );
|
4348 |
}
|
|
|
4349 |
}
|
4350 |
}
|
4351 |
}
|
4352 |
+
|
4353 |
+
if ( $this->is_theme() &&
|
4354 |
+
$this->_menu->is_main_settings_page()
|
4355 |
+
) {
|
4356 |
+
$this->_show_theme_activation_optin_dialog();
|
4357 |
+
}
|
4358 |
}
|
4359 |
|
4360 |
$this->_add_upgrade_action_link();
|
4383 |
* @since 1.1.4
|
4384 |
*/
|
4385 |
function _add_connect_pointer_script() {
|
4386 |
+
$vars = array( 'id' => $this->_module_id );
|
4387 |
$pointer_content = fs_get_template( 'connect.php', $vars );
|
4388 |
?>
|
4389 |
<script type="text/javascript">// <![CDATA[
|
4474 |
* @param bool $store
|
4475 |
*/
|
4476 |
function _delete_site( $store = true ) {
|
4477 |
+
self::_delete_site_by_slug( $this->_slug, $this->_module_type, $store );
|
4478 |
+
}
|
4479 |
+
|
4480 |
+
/**
|
4481 |
+
* Delete site install from Database.
|
4482 |
+
*
|
4483 |
+
* @author Vova Feldman (@svovaf)
|
4484 |
+
* @since 1.2.2.7
|
4485 |
+
*
|
4486 |
+
* @param string $slug
|
4487 |
+
* @param string $module_type
|
4488 |
+
* @param bool $store
|
4489 |
+
*/
|
4490 |
+
static function _delete_site_by_slug($slug, $module_type, $store = true ) {
|
4491 |
+
$sites = self::get_all_sites( $module_type );
|
4492 |
|
4493 |
+
if ( isset( $sites[ $slug ] ) ) {
|
4494 |
+
unset( $sites[ $slug ] );
|
4495 |
}
|
4496 |
|
4497 |
+
self::set_account_option_by_module( $module_type, 'sites', $sites, $store );
|
4498 |
}
|
4499 |
|
4500 |
/**
|
4508 |
private function _delete_plans( $store = true ) {
|
4509 |
$this->_logger->entrance();
|
4510 |
|
4511 |
+
$plans = self::get_all_plans( $this->_module_type );
|
4512 |
|
4513 |
unset( $plans[ $this->_slug ] );
|
4514 |
|
4515 |
+
$this->set_account_option( 'plans', $plans, $store );
|
4516 |
}
|
4517 |
|
4518 |
/**
|
4527 |
private function _delete_licenses( $store = true, $plugin_slug = false ) {
|
4528 |
$this->_logger->entrance();
|
4529 |
|
4530 |
+
$all_licenses = self::get_all_licenses( $this->_module_type );
|
4531 |
|
4532 |
if ( ! is_string( $plugin_slug ) ) {
|
4533 |
$plugin_slug = $this->_slug;
|
4535 |
|
4536 |
unset( $all_licenses[ $plugin_slug ] );
|
4537 |
|
4538 |
+
$this->set_account_option( 'licenses', $all_licenses, $store );
|
4539 |
}
|
4540 |
|
4541 |
/**
|
4563 |
return empty( $this->_storage->plugin_last_version );
|
4564 |
}
|
4565 |
|
4566 |
+
/**
|
4567 |
+
* @author Leo Fajardo (@leorw)
|
4568 |
+
* @since 1.2.2
|
4569 |
+
*
|
4570 |
+
* @return bool|string
|
4571 |
+
*/
|
4572 |
+
private function get_previous_theme_slug() {
|
4573 |
+
return isset( $this->_storage->previous_theme ) ?
|
4574 |
+
$this->_storage->previous_theme :
|
4575 |
+
false;
|
4576 |
+
}
|
4577 |
+
|
4578 |
+
/**
|
4579 |
+
* @author Leo Fajardo (@leorw)
|
4580 |
+
* @since 1.2.2
|
4581 |
+
*
|
4582 |
+
* @return string
|
4583 |
+
*/
|
4584 |
+
private function can_activate_previous_theme() {
|
4585 |
+
$slug = $this->get_previous_theme_slug();
|
4586 |
+
if ( false !== $slug && current_user_can( 'switch_themes' ) ) {
|
4587 |
+
$theme_instance = wp_get_theme( $slug );
|
4588 |
+
|
4589 |
+
return $theme_instance->exists();
|
4590 |
+
}
|
4591 |
+
|
4592 |
+
return false;
|
4593 |
+
}
|
4594 |
+
|
4595 |
+
/**
|
4596 |
+
* @author Leo Fajardo (@leorw)
|
4597 |
+
* @since 1.2.2
|
4598 |
+
*
|
4599 |
+
* @return string
|
4600 |
+
*/
|
4601 |
+
private function activate_previous_theme() {
|
4602 |
+
switch_theme( $this->get_previous_theme_slug() );
|
4603 |
+
unset( $this->_storage->previous_theme );
|
4604 |
+
|
4605 |
+
global $pagenow;
|
4606 |
+
if ( 'themes.php' === $pagenow ) {
|
4607 |
+
/**
|
4608 |
+
* Refresh the active theme information.
|
4609 |
+
*
|
4610 |
+
* @author Leo Fajardo (@leorw)
|
4611 |
+
* @since 1.2.2
|
4612 |
+
*/
|
4613 |
+
fs_redirect( admin_url( $pagenow ) );
|
4614 |
+
}
|
4615 |
+
}
|
4616 |
+
|
4617 |
+
/**
|
4618 |
+
* @author Leo Fajardo (@leorw)
|
4619 |
+
* @since 1.2.2
|
4620 |
+
*
|
4621 |
+
* @return string
|
4622 |
+
*/
|
4623 |
+
function get_previous_theme_activation_url() {
|
4624 |
+
if ( ! $this->can_activate_previous_theme() ) {
|
4625 |
+
return '';
|
4626 |
+
}
|
4627 |
+
|
4628 |
+
/**
|
4629 |
+
* Activation URL
|
4630 |
+
*
|
4631 |
+
* @author Leo Fajardo (@leorw)
|
4632 |
+
* @since 1.2.2
|
4633 |
+
*/
|
4634 |
+
return wp_nonce_url(
|
4635 |
+
admin_url( 'themes.php?action=activate&stylesheet=' . urlencode( $this->get_previous_theme_slug() ) ),
|
4636 |
+
'switch-theme_' . $this->get_previous_theme_slug()
|
4637 |
+
);
|
4638 |
+
}
|
4639 |
+
|
4640 |
+
/**
|
4641 |
+
* Saves the slug of the previous theme if it still exists so that it can be used by the logic in the opt-in
|
4642 |
+
* form that decides whether to add a close button to the opt-in dialog or not. So after a premium-only theme is
|
4643 |
+
* activated, the close button will appear and will reactivate the previous theme if clicked. If the previous
|
4644 |
+
* theme doesn't exist, then there will be no close button.
|
4645 |
+
*
|
4646 |
+
* @author Leo Fajardo (@leorw)
|
4647 |
+
* @since 1.2.2
|
4648 |
+
*
|
4649 |
+
* @param string $slug_or_name Old theme's slug or name.
|
4650 |
+
* @param bool|WP_Theme $old_theme WP_Theme instance of the old theme if it still exists.
|
4651 |
+
*/
|
4652 |
+
function _activate_theme_event_hook( $slug_or_name, $old_theme = false ) {
|
4653 |
+
$this->_storage->previous_theme = ( false !== $old_theme ) ?
|
4654 |
+
$old_theme->get_stylesheet() :
|
4655 |
+
$slug_or_name;
|
4656 |
+
|
4657 |
+
$this->_activate_plugin_event_hook();
|
4658 |
+
}
|
4659 |
+
|
4660 |
/**
|
4661 |
* Plugin activated hook.
|
4662 |
*
|
4677 |
// Clear API cache on activation.
|
4678 |
FS_Api::clear_cache();
|
4679 |
|
4680 |
+
$is_premium_version_activation = ( current_filter() !== ( 'activate_' . $this->_free_plugin_basename ) );
|
4681 |
+
|
4682 |
+
$this->_logger->info( 'Activating ' . ( $is_premium_version_activation ? 'premium' : 'free' ) . ' plugin version.' );
|
4683 |
+
|
4684 |
+
// 1. If running in the activation of the FREE module, get the basename of the PREMIUM.
|
4685 |
+
// 2. If running in the activation of the PREMIUM module, get the basename of the FREE.
|
4686 |
+
$other_version_basename = $is_premium_version_activation ?
|
4687 |
+
$this->_free_plugin_basename :
|
4688 |
+
$this->premium_plugin_basename();
|
4689 |
+
|
4690 |
+
/**
|
4691 |
+
* If the other module version is activate, deactivate it.
|
4692 |
+
*
|
4693 |
+
* @author Leo Fajardo (@leorw)
|
4694 |
+
* @since 1.2.2
|
4695 |
+
*/
|
4696 |
+
if ( is_plugin_active( $other_version_basename ) ) {
|
4697 |
+
deactivate_plugins( $other_version_basename );
|
4698 |
+
}
|
4699 |
|
4700 |
+
if ( $this->is_registered() ) {
|
4701 |
if ( $is_premium_version_activation ) {
|
4702 |
$this->reconnect_locally();
|
4703 |
}
|
4704 |
|
|
|
4705 |
|
4706 |
// Schedule re-activation event and sync.
|
4707 |
// $this->sync_install( array(), true );
|
4708 |
$this->schedule_install_sync();
|
4709 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4710 |
// If activating the premium module version, add an admin notice to congratulate for an upgrade completion.
|
4711 |
if ( $is_premium_version_activation ) {
|
4712 |
$this->_admin_notices->add(
|
4717 |
} else if ( $this->is_anonymous() ) {
|
4718 |
/**
|
4719 |
* Reset "skipped" click cache on the following:
|
4720 |
+
* 1. Freemius DEV mode.
|
4721 |
+
* 2. WordPress DEBUG mode.
|
4722 |
+
* 3. If a plugin and the user skipped the exact same version before.
|
4723 |
+
*
|
4724 |
+
* @since 1.2.2.7 Ulrich Pogson (@grapplerulrich) asked to not reset the SKIPPED flag if the exact same THEME version was activated before unless the developer is running with WP_DEBUG on, or Freemius debug mode on (WP_FS__DEV_MODE).
|
4725 |
*
|
4726 |
+
* @todo 4. If explicitly asked to retry after every activation.
|
4727 |
*/
|
4728 |
if ( WP_FS__DEV_MODE ||
|
4729 |
+
(
|
4730 |
+
( $this->is_plugin() || ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ) &&
|
4731 |
+
$this->get_plugin_version() == $this->_storage->is_anonymous['version']
|
4732 |
+
)
|
4733 |
) {
|
4734 |
$this->reset_anonymous_mode();
|
4735 |
}
|
4756 |
! $this->_isAutoInstall
|
4757 |
) {
|
4758 |
// Store hint that the plugin was just activated to enable auto-redirection to settings.
|
4759 |
+
add_option( 'fs_'
|
4760 |
+
. ( $this->is_plugin() ? '' : $this->_module_type . '_' )
|
4761 |
+
. "{$this->_slug}_activated", true );
|
4762 |
}
|
4763 |
|
4764 |
/**
|
4915 |
*/
|
4916 |
private function reset_anonymous_mode() {
|
4917 |
unset( $this->_storage->is_anonymous );
|
4918 |
+
|
4919 |
+
/**
|
4920 |
+
* Ensure that this field is also "false", otherwise, if the current module's type is "theme" and the module
|
4921 |
+
* has no menus, the opt-in popup will not be shown immediately (in this case, the user will have to click
|
4922 |
+
* on the admin notice that contains the opt-in link in order to trigger the opt-in popup).
|
4923 |
+
*
|
4924 |
+
* @author Leo Fajardo (@leorw)
|
4925 |
+
* @since 1.2.2
|
4926 |
+
*/
|
4927 |
+
unset( $this->_is_anonymous );
|
4928 |
}
|
4929 |
|
4930 |
/**
|
5603 |
if ( ! isset( $this->_plugin_data ) ) {
|
5604 |
self::require_plugin_essentials();
|
5605 |
|
5606 |
+
if ( $this->is_plugin() ) {
|
5607 |
+
/**
|
5608 |
+
* @author Vova Feldman (@svovaf)
|
5609 |
+
* @since 1.2.0 When using get_plugin_data() do NOT translate plugin data.
|
5610 |
+
*
|
5611 |
+
* @link https://github.com/Freemius/wordpress-sdk/issues/77
|
5612 |
+
*/
|
5613 |
+
$plugin_data = get_plugin_data(
|
5614 |
+
$this->_plugin_main_file_path,
|
5615 |
+
false,
|
5616 |
+
false
|
5617 |
+
);
|
5618 |
+
} else {
|
5619 |
+
$theme_data = wp_get_theme();
|
5620 |
+
|
5621 |
+
$plugin_data = array(
|
5622 |
+
'Name' => $theme_data->get( 'Name' ),
|
5623 |
+
'Version' => $theme_data->get( 'Version' ),
|
5624 |
+
'Author' => $theme_data->get( 'Author' ),
|
5625 |
+
'Description' => $theme_data->get( 'Description' ),
|
5626 |
+
'PluginURI' => $theme_data->get( 'ThemeURI' ),
|
5627 |
+
);
|
5628 |
+
}
|
5629 |
+
|
5630 |
+
$this->_plugin_data = $plugin_data;
|
5631 |
}
|
5632 |
|
5633 |
return $this->_plugin_data;
|
5636 |
/**
|
5637 |
* @author Vova Feldman (@svovaf)
|
5638 |
* @since 1.0.1
|
5639 |
+
* @since 1.2.2.5 If slug not set load slug by module ID.
|
5640 |
*
|
5641 |
* @return string Plugin slug.
|
5642 |
*/
|
5643 |
function get_slug() {
|
5644 |
+
if ( ! isset( $this->_slug ) ) {
|
5645 |
+
$id_slug_type_path_map = self::$_accounts->get_option( 'id_slug_type_path_map', array() );
|
5646 |
+
$this->_slug = $id_slug_type_path_map[ $this->_module_id ]['slug'];
|
5647 |
+
}
|
5648 |
+
|
5649 |
return $this->_slug;
|
5650 |
}
|
5651 |
|
5738 |
// Get name.
|
5739 |
$this->_plugin_name = $plugin_data['Name'];
|
5740 |
|
5741 |
+
// Check if plugin name contains "(Premium)" suffix and remove it.
|
5742 |
+
$suffix = ' (premium)';
|
5743 |
$suffix_len = strlen( $suffix );
|
5744 |
|
5745 |
if ( strlen( $plugin_data['Name'] ) > $suffix_len &&
|
5784 |
return $this->apply_filters( 'plugin_title', $title );
|
5785 |
}
|
5786 |
|
5787 |
+
/**
|
5788 |
+
* @author Vova Feldman (@svovaf)
|
5789 |
+
* @since 1.2.2.7
|
5790 |
+
*
|
5791 |
+
* @param bool $lowercase
|
5792 |
+
*
|
5793 |
+
* @return string
|
5794 |
+
*/
|
5795 |
+
function get_module_label( $lowercase = false ) {
|
5796 |
+
$label = $this->is_addon() ?
|
5797 |
+
$this->get_text( 'addon' ) :
|
5798 |
+
( $this->is_plugin() ?
|
5799 |
+
$this->get_text( 'plugin' ) :
|
5800 |
+
$this->get_text( 'theme' ) );
|
5801 |
+
|
5802 |
+
if ( $lowercase ) {
|
5803 |
+
$label = strtolower( $lowercase );
|
5804 |
+
}
|
5805 |
+
|
5806 |
+
return $label;
|
5807 |
+
}
|
5808 |
+
|
5809 |
/**
|
5810 |
* @author Vova Feldman (@svovaf)
|
5811 |
* @since 1.0.4
|
5813 |
* @return string
|
5814 |
*/
|
5815 |
function get_plugin_basename() {
|
5816 |
+
if ( ! isset( $this->_plugin_basename ) ) {
|
5817 |
+
if ( $this->is_plugin() ) {
|
5818 |
+
$this->_plugin_basename = plugin_basename( $this->_plugin_main_file_path );
|
5819 |
+
} else {
|
5820 |
+
$this->_plugin_basename = basename( dirname( $this->_plugin_main_file_path ) );
|
5821 |
+
}
|
5822 |
+
}
|
5823 |
+
|
5824 |
return $this->_plugin_basename;
|
5825 |
}
|
5826 |
|
5898 |
}
|
5899 |
|
5900 |
/**
|
5901 |
+
* @param string $module_type
|
5902 |
+
*
|
5903 |
* @return FS_Site[]
|
5904 |
*/
|
5905 |
+
private static function get_all_sites( $module_type = WP_FS__MODULE_TYPE_PLUGIN ) {
|
5906 |
+
$sites = self::get_account_option( 'sites', $module_type );
|
5907 |
|
5908 |
if ( ! is_array( $sites ) ) {
|
5909 |
$sites = array();
|
5912 |
return $sites;
|
5913 |
}
|
5914 |
|
5915 |
+
/**
|
5916 |
+
* @author Leo Fajardo (@leorw)
|
5917 |
+
*
|
5918 |
+
* @since 1.2.2
|
5919 |
+
*
|
5920 |
+
* @param string $option_name
|
5921 |
+
* @param string $module_type
|
5922 |
+
*
|
5923 |
+
* @return mixed
|
5924 |
+
*/
|
5925 |
+
private static function get_account_option( $option_name, $module_type ) {
|
5926 |
+
if ( WP_FS__MODULE_TYPE_PLUGIN !== $module_type ) {
|
5927 |
+
$option_name = $module_type . '_' . $option_name;
|
5928 |
+
}
|
5929 |
+
|
5930 |
+
return self::$_accounts->get_option( $option_name, array() );
|
5931 |
+
}
|
5932 |
+
|
5933 |
+
/**
|
5934 |
+
* @author Leo Fajardo (@leorw)
|
5935 |
+
*
|
5936 |
+
* @since 1.2.2
|
5937 |
+
*
|
5938 |
+
* @param string $option_name
|
5939 |
+
* @param mixed $option_value
|
5940 |
+
* @param bool $store
|
5941 |
+
*/
|
5942 |
+
private function set_account_option( $option_name, $option_value, $store ) {
|
5943 |
+
self::set_account_option_by_module(
|
5944 |
+
$this->_module_type,
|
5945 |
+
$option_name,
|
5946 |
+
$option_value,
|
5947 |
+
$store
|
5948 |
+
);
|
5949 |
+
}
|
5950 |
+
|
5951 |
+
/**
|
5952 |
+
* @author Vova Feldman (@svovaf)
|
5953 |
+
*
|
5954 |
+
* @since 1.2.2.7
|
5955 |
+
*
|
5956 |
+
* @param string $module_type
|
5957 |
+
* @param string $option_name
|
5958 |
+
* @param mixed $option_value
|
5959 |
+
* @param bool $store
|
5960 |
+
*/
|
5961 |
+
private static function set_account_option_by_module( $module_type, $option_name, $option_value, $store ) {
|
5962 |
+
if ( WP_FS__MODULE_TYPE_PLUGIN != $module_type ) {
|
5963 |
+
$option_name = $module_type . '_' . $option_name;
|
5964 |
+
}
|
5965 |
+
|
5966 |
+
self::$_accounts->set_option( $option_name, $option_value, $store );
|
5967 |
+
}
|
5968 |
+
|
5969 |
/**
|
5970 |
* @author Vova Feldman (@svovaf)
|
5971 |
* @since 1.0.6
|
5972 |
*
|
5973 |
+
* @param string $module_type
|
5974 |
+
*
|
5975 |
* @return FS_Plugin_License[]
|
5976 |
*/
|
5977 |
+
private static function get_all_licenses( $module_type = WP_FS__MODULE_TYPE_PLUGIN ) {
|
5978 |
+
$licenses = self::get_account_option( 'licenses', $module_type );
|
5979 |
|
5980 |
if ( ! is_array( $licenses ) ) {
|
5981 |
$licenses = array();
|
5985 |
}
|
5986 |
|
5987 |
/**
|
5988 |
+
* @param string|bool $module_type
|
5989 |
+
*
|
5990 |
* @return FS_Plugin_Plan[]
|
5991 |
*/
|
5992 |
+
private static function get_all_plans( $module_type = false ) {
|
5993 |
+
$plans = self::get_account_option( 'plans', $module_type );
|
5994 |
|
5995 |
if ( ! is_array( $plans ) ) {
|
5996 |
$plans = array();
|
6828 |
*/
|
6829 |
function _add_license_activation_dialog_box() {
|
6830 |
$vars = array(
|
6831 |
+
'id' => $this->_module_id,
|
6832 |
);
|
6833 |
|
6834 |
fs_require_template( 'forms/license-activation.php', $vars );
|
6843 |
* @since 1.2.1.5
|
6844 |
*/
|
6845 |
function _add_optout_dialog() {
|
6846 |
+
if ( $this->is_theme() ) {
|
6847 |
+
$vars = null;
|
6848 |
+
fs_require_once_template( '/js/jquery.content-change.php', $vars );
|
6849 |
+
}
|
6850 |
|
6851 |
+
$vars = array( 'id' => $this->_module_id );
|
6852 |
fs_require_template( 'forms/optout.php', $vars );
|
6853 |
}
|
6854 |
|
6875 |
}
|
6876 |
|
6877 |
// Add license activation link and AJAX request handler.
|
6878 |
+
if ( self::is_plugins_page() ) {
|
6879 |
/**
|
6880 |
* @since 1.2.0 Add license action link only on plugins page.
|
6881 |
*/
|
6904 |
exit;
|
6905 |
}
|
6906 |
|
6907 |
+
$plugin_id = fs_request_get( 'module_id', '', 'post' );
|
6908 |
+
$fs = ( $plugin_id == $this->_module_id ) ?
|
6909 |
$this :
|
6910 |
+
$this->get_addon_instance( $plugin_id );
|
6911 |
|
6912 |
$error = false;
|
6913 |
$next_page = false;
|
7020 |
);
|
7021 |
}
|
7022 |
|
7023 |
+
$this->shoot_ajax_success( array(
|
7024 |
'next_page' => $next_page,
|
7025 |
) );
|
7026 |
}
|
7075 |
exit;
|
7076 |
}
|
7077 |
|
7078 |
+
/**
|
7079 |
+
* @author Vova Feldman (@svovaf)
|
7080 |
+
* @since 1.2.1.8
|
7081 |
+
*
|
7082 |
+
* @var string
|
7083 |
+
*/
|
7084 |
+
private static $_pagenow;
|
7085 |
+
|
7086 |
+
/**
|
7087 |
+
* Get current page or the referer if executing a WP AJAX request.
|
7088 |
+
*
|
7089 |
+
* @author Vova Feldman (@svovaf)
|
7090 |
+
* @since 1.2.1.8
|
7091 |
+
*
|
7092 |
+
* @return string
|
7093 |
+
*/
|
7094 |
+
static function get_current_page() {
|
7095 |
+
if ( ! isset( self::$_pagenow ) ) {
|
7096 |
+
global $pagenow;
|
7097 |
+
|
7098 |
+
self::$_pagenow = $pagenow;
|
7099 |
+
|
7100 |
+
if ( self::is_ajax() &&
|
7101 |
+
'admin-ajax.php' === $pagenow
|
7102 |
+
) {
|
7103 |
+
$referer = wp_get_raw_referer();
|
7104 |
+
|
7105 |
+
if ( is_string( $referer ) ) {
|
7106 |
+
$parts = explode( '?', $referer );
|
7107 |
+
|
7108 |
+
self::$_pagenow = basename( $parts[0] );
|
7109 |
+
}
|
7110 |
+
}
|
7111 |
+
}
|
7112 |
+
|
7113 |
+
return self::$_pagenow;
|
7114 |
+
}
|
7115 |
+
|
7116 |
/**
|
7117 |
* Helper method to check if user in the plugins page.
|
7118 |
*
|
7121 |
*
|
7122 |
* @return bool
|
7123 |
*/
|
7124 |
+
static function is_plugins_page() {
|
7125 |
+
return ( 'plugins.php' === self::get_current_page() );
|
|
|
|
|
7126 |
}
|
7127 |
|
7128 |
/**
|
7133 |
*
|
7134 |
* @return bool
|
7135 |
*/
|
7136 |
+
static function is_themes_page() {
|
7137 |
+
return ( 'themes.php' === self::get_current_page() );
|
|
|
|
|
7138 |
}
|
7139 |
|
7140 |
#----------------------------------------------------------------------------------
|
7324 |
* @return bool
|
7325 |
*/
|
7326 |
function is_plugin() {
|
7327 |
+
return ( WP_FS__MODULE_TYPE_PLUGIN === $this->_module_type );
|
7328 |
}
|
7329 |
|
7330 |
/**
|
7331 |
+
* @author Leo Fajardo (@leorw)
|
7332 |
+
* @since 1.2.2
|
|
|
|
|
|
|
|
|
|
|
|
|
7333 |
*
|
7334 |
+
* @return string
|
7335 |
+
*/
|
7336 |
+
function get_module_type() {
|
7337 |
+
if ( ! isset( $this->_module_type ) ) {
|
7338 |
+
$id_slug_type_path_map = self::$_accounts->get_option( 'id_slug_type_path_map', array() );
|
7339 |
+
$this->_module_type = $id_slug_type_path_map[ $this->_module_id ]['type'];
|
7340 |
+
}
|
7341 |
+
|
7342 |
+
return $this->_module_type;
|
7343 |
+
}
|
7344 |
+
|
7345 |
+
/**
|
7346 |
+
* @author Leo Fajardo (@leorw)
|
7347 |
+
* @since 1.2.2
|
7348 |
+
*
|
7349 |
+
* @return string
|
7350 |
+
*/
|
7351 |
+
function get_plugin_main_file_path() {
|
7352 |
+
return $this->_plugin_main_file_path;
|
7353 |
+
}
|
7354 |
+
|
7355 |
+
/**
|
7356 |
+
* Check if module has a premium code version.
|
7357 |
+
*
|
7358 |
+
* Serviceware module might be freemium without any
|
7359 |
+
* premium code version, where the paid features
|
7360 |
+
* are all part of the service.
|
7361 |
+
*
|
7362 |
+
* @author Vova Feldman (@svovaf)
|
7363 |
+
* @since 1.2.1.6
|
7364 |
+
*
|
7365 |
+
* @return bool
|
7366 |
*/
|
7367 |
function has_premium_version() {
|
7368 |
return $this->_has_premium_version;
|
7423 |
}
|
7424 |
|
7425 |
// Verify the call is relevant for the plugin.
|
7426 |
+
if ( $this->_module_id != fs_request_get( 'module_id' ) ) {
|
7427 |
return false;
|
7428 |
}
|
7429 |
|
7452 |
* @since 1.2.0
|
7453 |
*
|
7454 |
* @param array|string $actions Collection of AJAX actions.
|
7455 |
+
* @param number|null $module_id
|
7456 |
*
|
7457 |
* @return bool
|
7458 |
*/
|
7459 |
+
static function is_ajax_action_static( $actions, $module_id = null ) {
|
7460 |
// Verify it's an ajax call.
|
7461 |
if ( ! self::is_ajax() ) {
|
7462 |
return false;
|
7463 |
}
|
7464 |
|
7465 |
+
|
7466 |
+
if ( ! empty( $module_id ) ) {
|
7467 |
// Verify the call is relevant for the plugin.
|
7468 |
+
if ( $module_id != fs_request_get( 'module_id' ) ) {
|
7469 |
return false;
|
7470 |
}
|
7471 |
}
|
7479 |
$ajax_action = fs_request_get( 'action' );
|
7480 |
|
7481 |
foreach ( $actions as $action ) {
|
7482 |
+
if ( $ajax_action === self::get_ajax_action_static( $action, $module_id ) ) {
|
7483 |
return true;
|
7484 |
}
|
7485 |
}
|
7494 |
*
|
7495 |
* @return bool
|
7496 |
*/
|
7497 |
+
static function is_cron() {
|
7498 |
return ( defined( 'DOING_CRON' ) && DOING_CRON );
|
7499 |
}
|
7500 |
|
7507 |
* @return bool
|
7508 |
*/
|
7509 |
function is_user_in_admin() {
|
7510 |
+
return is_admin() && ! self::is_ajax() && ! self::is_cron();
|
7511 |
+
}
|
7512 |
+
|
7513 |
+
/**
|
7514 |
+
* Check if a real user is in the customizer view.
|
7515 |
+
*
|
7516 |
+
* @author Vova Feldman (@svovaf)
|
7517 |
+
* @since 1.2.2.7
|
7518 |
+
*
|
7519 |
+
* @return bool
|
7520 |
+
*/
|
7521 |
+
static function is_customizer() {
|
7522 |
+
return is_customize_preview();
|
7523 |
}
|
7524 |
|
7525 |
/**
|
7554 |
|
7555 |
$page_param = $this->_menu->get_slug( $page );
|
7556 |
|
7557 |
+
if ( empty( $page ) &&
|
7558 |
+
$this->is_theme() &&
|
7559 |
+
// Show the opt-in as an overlay for free wp.org themes or themes without any settings page.
|
7560 |
+
( $this->is_free_wp_org_theme() || ! $this->has_settings_menu() ) ) {
|
7561 |
+
$params[ $this->get_unique_affix() . '_show_optin' ] = 'true';
|
7562 |
+
|
7563 |
+
return add_query_arg(
|
7564 |
+
$params,
|
7565 |
+
admin_url( 'themes.php' )
|
7566 |
+
);
|
7567 |
+
}
|
7568 |
+
|
7569 |
if ( ! $this->has_settings_menu() ) {
|
7570 |
if ( ! empty( $page ) ) {
|
7571 |
// Module doesn't have a setting page, but since the request is for
|
7572 |
// a specific Freemius page, use the admin.php path.
|
7573 |
return add_query_arg( array_merge( $params, array(
|
7574 |
'page' => $page_param,
|
7575 |
+
) ), admin_url( 'admin.php' ) );
|
7576 |
} else {
|
7577 |
if ( $this->is_activation_mode() ) {
|
7578 |
/**
|
7627 |
) ), admin_url( 'admin.php', 'admin' ) );
|
7628 |
}
|
7629 |
|
7630 |
+
/**
|
7631 |
+
* Check if currently in a specified admin page.
|
7632 |
+
*
|
7633 |
+
* @author Vova Feldman (@svovaf)
|
7634 |
+
* @since 1.2.2.7
|
7635 |
+
*
|
7636 |
+
* @param string $page
|
7637 |
+
*
|
7638 |
+
* @return bool
|
7639 |
+
*/
|
7640 |
+
function is_admin_page( $page ) {
|
7641 |
+
return ( $this->_menu->get_slug( $page ) === fs_request_get( 'page', '', 'get' ) );
|
7642 |
+
}
|
7643 |
+
|
7644 |
+
/**
|
7645 |
+
* Get module's main admin setting page URL.
|
7646 |
+
*
|
7647 |
+
* @author Vova Feldman (@svovaf)
|
7648 |
+
* @since 1.2.2.7
|
7649 |
+
*
|
7650 |
+
* @return string
|
7651 |
+
*/
|
7652 |
+
function main_menu_url() {
|
7653 |
+
return $this->_menu->main_menu_url();
|
7654 |
+
}
|
7655 |
+
|
7656 |
+
/**
|
7657 |
+
* Check if currently on the theme's setting page or
|
7658 |
+
* on any of the Freemius added pages (via tabs).
|
7659 |
+
*
|
7660 |
+
* @author Vova Feldman (@svovaf)
|
7661 |
+
* @since 1.2.2.7
|
7662 |
+
*
|
7663 |
+
* @return bool
|
7664 |
+
*/
|
7665 |
+
function is_theme_settings_page() {
|
7666 |
+
return fs_starts_with(
|
7667 |
+
fs_request_get( 'page', '', 'get' ),
|
7668 |
+
$this->_menu->get_slug()
|
7669 |
+
);
|
7670 |
+
}
|
7671 |
+
|
7672 |
/**
|
7673 |
* Plugin's account page + sync license URL.
|
7674 |
*
|
7687 |
}
|
7688 |
|
7689 |
return $this->get_account_url(
|
7690 |
+
$this->get_unique_affix() . '_sync_license',
|
7691 |
$params,
|
7692 |
$add_action_nonce
|
7693 |
);
|
7882 |
*
|
7883 |
* @return FS_Entity Return an decrypted clone entity.
|
7884 |
*/
|
7885 |
+
private static function decrypt_entity( FS_Entity $entity ) {
|
7886 |
$clone = clone $entity;
|
7887 |
$props = get_object_vars( $entity );
|
7888 |
|
7984 |
|
7985 |
$this->do_action( 'before_account_load' );
|
7986 |
|
7987 |
+
$sites = self::get_all_sites( $this->_module_type );
|
7988 |
$users = self::get_all_users();
|
7989 |
+
$plans = self::get_all_plans( $this->_module_type );
|
7990 |
+
$licenses = self::get_all_licenses( $this->_module_type );
|
7991 |
|
7992 |
if ( $this->_logger->is_on() && is_admin() ) {
|
7993 |
$this->_logger->log( 'sites = ' . var_export( $sites, true ) );
|
8005 |
) {
|
8006 |
// Load site.
|
8007 |
$this->_site = clone $site;
|
8008 |
+
$this->_site->plan = self::decrypt_entity( $this->_site->plan );
|
8009 |
|
8010 |
// Load relevant user.
|
8011 |
$this->_user = clone $users[ $this->_site->user_id ];
|
8017 |
} else {
|
8018 |
for ( $i = 0, $len = count( $this->_plans ); $i < $len; $i ++ ) {
|
8019 |
if ( $this->_plans[ $i ] instanceof FS_Plugin_Plan ) {
|
8020 |
+
$this->_plans[ $i ] = self::decrypt_entity( $this->_plans[ $i ] );
|
8021 |
} else {
|
8022 |
unset( $this->_plans[ $i ] );
|
8023 |
}
|
8082 |
|
8083 |
$current_user = self::_get_current_wp_user();
|
8084 |
|
8085 |
+
$activation_action = $this->get_unique_affix() . '_activate_new';
|
8086 |
$return_url = $this->is_anonymous() ?
|
8087 |
// If skipped already, then return to the account page.
|
8088 |
$this->get_account_url( $activation_action, array(), false ) :
|
8089 |
// Return to the module's main page.
|
8090 |
+
$this->get_after_activation_url( 'after_connect_url', array( 'fs_action' => $activation_action ) );
|
|
|
|
|
|
|
8091 |
|
8092 |
$params = array(
|
8093 |
'user_firstname' => $current_user->user_firstname,
|
8464 |
return;
|
8465 |
}
|
8466 |
|
8467 |
+
if ( ( $this->is_plugin() && fs_request_is_action( $this->get_unique_affix() . '_activate_new' ) ) ||
|
8468 |
+
// @todo This logic should be improved because it's executed on every load of a theme.
|
8469 |
+
$this->is_theme()
|
8470 |
+
) {
|
8471 |
// check_admin_referer( $this->_slug . '_activate_new' );
|
8472 |
|
8473 |
if ( fs_request_has( 'user_secret_key' ) ) {
|
8610 |
return;
|
8611 |
}
|
8612 |
|
8613 |
+
if ( fs_request_is_action( $this->get_unique_affix() . '_activate_existing' ) && fs_request_is_post() ) {
|
8614 |
// check_admin_referer( 'activate_existing_' . $this->_plugin->public_key );
|
8615 |
|
8616 |
/**
|
8753 |
$this->_activate_license( true );
|
8754 |
}
|
8755 |
|
8756 |
+
/**
|
8757 |
+
* Tries to activate parent account based on add-on's info.
|
8758 |
+
*
|
8759 |
+
* @author Vova Feldman (@svovaf)
|
8760 |
+
* @since 1.2.2.7
|
8761 |
+
*
|
8762 |
+
* @param Freemius $parent_fs
|
8763 |
+
*/
|
8764 |
+
private function activate_parent_account( Freemius $parent_fs ) {
|
8765 |
+
if ( ! $this->is_addon() ) {
|
8766 |
+
// This is not an add-on.
|
8767 |
+
return;
|
8768 |
+
}
|
8769 |
+
|
8770 |
+
if ( $parent_fs->is_registered() ) {
|
8771 |
+
// Already activated.
|
8772 |
+
return;
|
8773 |
+
}
|
8774 |
+
|
8775 |
+
// Activate parent with add-on's user credentials.
|
8776 |
+
$parent_install = $this->get_api_user_scope()->call(
|
8777 |
+
"/plugins/{$parent_fs->_plugin->id}/installs.json",
|
8778 |
+
'post',
|
8779 |
+
$parent_fs->get_install_data_for_api( array(
|
8780 |
+
'uid' => $parent_fs->get_anonymous_id(),
|
8781 |
+
), false, false )
|
8782 |
+
);
|
8783 |
+
|
8784 |
+
if ( isset( $parent_install->error ) ) {
|
8785 |
+
$this->_admin_notices->add(
|
8786 |
+
sprintf( $this->get_text( 'could-not-activate-x' ), $this->get_plugin_name() ) . ' ' .
|
8787 |
+
$this->get_text( 'contact-us-with-error-message' ) . ' ' . '<b>' . $parent_install->error->message . '</b>',
|
8788 |
+
$this->get_text( 'oops' ) . '...',
|
8789 |
+
'error'
|
8790 |
+
);
|
8791 |
+
|
8792 |
+
return;
|
8793 |
+
}
|
8794 |
+
|
8795 |
+
// First of all, set site info - otherwise we won't
|
8796 |
+
// be able to invoke API calls.
|
8797 |
+
$parent_fs->_site = new FS_Site( $parent_install );
|
8798 |
+
|
8799 |
+
// Sync add-on plans.
|
8800 |
+
$parent_fs->_sync_plans();
|
8801 |
+
|
8802 |
+
// Get site's current plan.
|
8803 |
+
$parent_fs->_site->plan = $parent_fs->_get_plan_by_id( $parent_fs->_site->plan->id );
|
8804 |
+
|
8805 |
+
// Get user information based on parent's plugin.
|
8806 |
+
$user = $this->get_user();
|
8807 |
+
|
8808 |
+
$parent_fs->_set_account( $user, $parent_fs->_site );
|
8809 |
+
}
|
8810 |
+
|
8811 |
#endregion
|
8812 |
|
8813 |
#----------------------------------------------------------------------------------
|
8816 |
|
8817 |
private $_menu_items = array();
|
8818 |
|
8819 |
+
/**
|
8820 |
+
* @author Vova Feldman (@svovaf)
|
8821 |
+
* @since 1.2.1.8
|
8822 |
+
*
|
8823 |
+
* @return array
|
8824 |
+
*/
|
8825 |
+
function get_menu_items() {
|
8826 |
+
return $this->_menu_items;
|
8827 |
+
}
|
8828 |
+
|
8829 |
/**
|
8830 |
* @author Vova Feldman (@svovaf)
|
8831 |
* @since 1.0.7
|
8866 |
*/
|
8867 |
private function add_menu_action() {
|
8868 |
if ( $this->is_activation_mode() ) {
|
8869 |
+
if ( $this->is_plugin() || ( $this->has_settings_menu() && ! $this->is_free_wp_org_theme() ) ) {
|
8870 |
+
$this->override_plugin_menu_with_activation();
|
8871 |
+
} else {
|
8872 |
+
/**
|
8873 |
+
* Handle theme opt-in when the opt-in form shows as a dialog box in the themes page.
|
8874 |
+
*/
|
8875 |
+
if ( fs_request_is_action( $this->get_unique_affix() . '_activate_existing' ) ) {
|
8876 |
+
add_action( 'load-themes.php', array( &$this, '_install_with_current_user' ) );
|
8877 |
+
} else if ( fs_request_is_action( $this->get_unique_affix() . '_activate_new' ) ||
|
8878 |
+
fs_request_get_bool( 'pending_activation' )
|
8879 |
+
) {
|
8880 |
+
add_action( 'load-themes.php', array( &$this, '_install_with_new_user' ) );
|
8881 |
+
}
|
8882 |
+
}
|
8883 |
} else {
|
8884 |
+
if ( ! $this->is_registered() ) {
|
8885 |
+
// If not registered try to install user.
|
8886 |
+
if ( fs_request_is_action( $this->get_unique_affix() . '_activate_new' ) ) {
|
8887 |
+
$this->_install_with_new_user();
|
8888 |
+
}
|
8889 |
+
} else if (
|
8890 |
+
fs_request_is_action( 'sync_user' ) &&
|
8891 |
+
( ! $this->has_settings_menu() || $this->is_free_wp_org_theme() )
|
8892 |
) {
|
|
|
|
|
8893 |
$this->_handle_account_user_sync();
|
8894 |
}
|
8895 |
}
|
8957 |
$menus = array( $this->_menu->get_parent_slug() );
|
8958 |
|
8959 |
if ( $this->_menu->is_override_exact() ) {
|
8960 |
+
// Make sure the current page is matching the activation page.
|
8961 |
+
if ( ! $this->is_matching_url( $this->get_activation_url() ) ) {
|
8962 |
return;
|
8963 |
}
|
8964 |
}
|
8983 |
}
|
8984 |
|
8985 |
if ( false !== $hook ) {
|
8986 |
+
if ( fs_request_is_action( $this->get_unique_affix() . '_activate_existing' ) ) {
|
8987 |
add_action( "load-$hook", array( &$this, '_install_with_current_user' ) );
|
8988 |
+
} else if ( fs_request_is_action( $this->get_unique_affix() . '_activate_new' ) ) {
|
8989 |
add_action( "load-$hook", array( &$this, '_install_with_new_user' ) );
|
8990 |
}
|
8991 |
}
|
9027 |
$this->_menu->get_top_level_menu_slug() );
|
9028 |
}
|
9029 |
|
9030 |
+
/**
|
9031 |
+
* @author Vova Feldman (@svovaf)
|
9032 |
+
* @since 1.2.2.7
|
9033 |
+
*
|
9034 |
+
* @return string
|
9035 |
+
*/
|
9036 |
+
function get_pricing_cta_label() {
|
9037 |
+
$label = 'upgrade';
|
9038 |
+
|
9039 |
+
if ( $this->is_in_trial_promotion() &&
|
9040 |
+
! $this->is_paying_or_trial()
|
9041 |
+
) {
|
9042 |
+
// If running a trial promotion, modify the pricing to load the trial.
|
9043 |
+
$label = 'start-trial';
|
9044 |
+
} else if ( $this->is_paying() ) {
|
9045 |
+
$label = 'pricing';
|
9046 |
+
}
|
9047 |
+
|
9048 |
+
return $label;
|
9049 |
+
}
|
9050 |
+
|
9051 |
+
/**
|
9052 |
+
* @author Vova Feldman (@svovaf)
|
9053 |
+
* @since 1.2.2.7
|
9054 |
+
*
|
9055 |
+
* @return bool
|
9056 |
+
*/
|
9057 |
+
function is_pricing_page_visible() {
|
9058 |
+
return (
|
9059 |
+
// Has at least one paid plan.
|
9060 |
+
$this->has_paid_plan() &&
|
9061 |
+
// Didn't ask to hide the pricing page.
|
9062 |
+
$this->is_page_visible( 'pricing' ) &&
|
9063 |
+
// Don't have a valid active license or has more than one plan.
|
9064 |
+
( ! $this->is_paying() || ! $this->is_single_plan() )
|
9065 |
+
);
|
9066 |
+
}
|
9067 |
+
|
9068 |
/**
|
9069 |
* Add default Freemius menu items.
|
9070 |
*
|
9075 |
$this->_logger->entrance();
|
9076 |
|
9077 |
if ( ! $this->is_addon() ) {
|
9078 |
+
/**
|
9079 |
+
* @since 1.2.2.7 Also add submenu items when running in a free .org theme so the tabs will be visible.
|
9080 |
+
*/
|
9081 |
+
if ( ! $this->is_activation_mode() || $this->is_free_wp_org_theme() ) {
|
9082 |
if ( $this->is_registered() ) {
|
9083 |
+
$show_account = (
|
9084 |
+
$this->is_submenu_item_visible( 'account' ) &&
|
9085 |
+
/**
|
9086 |
+
* @since 1.2.2.7 Don't show the Account for free WP.org themes without any paid plans.
|
9087 |
+
*/
|
9088 |
+
( ! $this->is_free_wp_org_theme() || $this->has_paid_plan() )
|
9089 |
+
);
|
9090 |
+
|
9091 |
// Add user account page.
|
9092 |
$this->add_submenu_item(
|
9093 |
$this->get_text( 'account' ),
|
9097 |
'account',
|
9098 |
array( &$this, '_account_page_load' ),
|
9099 |
WP_FS__DEFAULT_PRIORITY,
|
9100 |
+
$show_account
|
9101 |
);
|
9102 |
}
|
9103 |
|
9127 |
}
|
9128 |
|
9129 |
$show_pricing = (
|
|
|
|
|
|
|
9130 |
$this->is_submenu_item_visible( 'pricing' ) &&
|
9131 |
+
$this->is_pricing_page_visible()
|
|
|
9132 |
);
|
|
|
|
|
|
|
9133 |
|
9134 |
+
$pricing_cta_slug = $this->get_pricing_cta_label();
|
9135 |
$pricing_class = 'upgrade-mode';
|
9136 |
if ( $show_pricing ) {
|
9137 |
+
if ( $this->is_in_trial_promotion() &&
|
9138 |
! $this->is_paying_or_trial()
|
9139 |
) {
|
9140 |
// If running a trial promotion, modify the pricing to load the trial.
|
|
|
9141 |
$pricing_class = 'trial-mode';
|
9142 |
} else if ( $this->is_paying() ) {
|
|
|
9143 |
$pricing_class = '';
|
9144 |
}
|
9145 |
}
|
9196 |
|
9197 |
$menu_item = sprintf(
|
9198 |
$item_template,
|
9199 |
+
$this->get_unique_affix(),
|
9200 |
$item['menu_slug'],
|
9201 |
! empty( $item['class'] ) ? $item['class'] : '',
|
9202 |
$item['menu_title']
|
9221 |
}
|
9222 |
} else {
|
9223 |
FS_Admin_Menu_Manager::add_subpage(
|
9224 |
+
$item['show_submenu'] ?
|
9225 |
+
$this->get_top_level_menu_slug() :
|
9226 |
+
null,
|
9227 |
$item['page_title'],
|
9228 |
$menu_item,
|
9229 |
$capability,
|
9295 |
ksort( $top_level_menu );
|
9296 |
}
|
9297 |
|
9298 |
+
/**
|
9299 |
+
* Helper method to return the module's support forum URL.
|
9300 |
+
*
|
9301 |
+
* @author Vova Feldman (@svovaf)
|
9302 |
+
* @since 1.2.2.7
|
9303 |
+
*
|
9304 |
+
* @return string
|
9305 |
+
*/
|
9306 |
+
function get_support_forum_url() {
|
9307 |
+
return $this->apply_filters( 'support_forum_url', "https://wordpress.org/support/{$this->_module_type}/{$this->_slug}" );
|
9308 |
+
}
|
9309 |
+
|
9310 |
/**
|
9311 |
* Displays the Support Forum link when enabled.
|
9312 |
*
|
9327 |
}
|
9328 |
|
9329 |
if ( ! $this->is_activation_mode() ) {
|
9330 |
+
$this->add_submenu_link_item(
|
9331 |
+
$this->apply_filters( 'support_forum_submenu', $this->get_text( 'support-forum' ) ),
|
9332 |
+
$this->get_support_forum_url(),
|
9333 |
+
'wp-support-forum',
|
9334 |
+
null,
|
9335 |
+
50,
|
9336 |
+
$this->is_submenu_item_visible( 'support' )
|
9337 |
+
);
|
|
|
9338 |
}
|
9339 |
}
|
9340 |
|
9410 |
* @param bool $menu_slug
|
9411 |
* @param string $capability
|
9412 |
* @param int $priority
|
9413 |
+
* @param bool $show_submenu
|
9414 |
*/
|
9415 |
function add_submenu_link_item(
|
9416 |
$menu_title,
|
9417 |
$url,
|
9418 |
$menu_slug = false,
|
9419 |
$capability = 'read',
|
9420 |
+
$priority = WP_FS__DEFAULT_PRIORITY,
|
9421 |
+
$show_submenu = true
|
9422 |
) {
|
9423 |
$this->_logger->entrance( 'Title = ' . $menu_title . '; Url = ' . $url );
|
9424 |
|
9431 |
$url,
|
9432 |
$menu_slug,
|
9433 |
$capability,
|
9434 |
+
$priority,
|
9435 |
+
$show_submenu
|
9436 |
);
|
9437 |
|
9438 |
return;
|
9451 |
'page_title' => $menu_title,
|
9452 |
'render_function' => 'fs_dummy',
|
9453 |
'before_render_function' => '',
|
9454 |
+
'show_submenu' => $show_submenu,
|
9455 |
);
|
9456 |
}
|
9457 |
|
9458 |
#endregion ------------------------------------------------------------------
|
9459 |
|
9460 |
+
|
9461 |
#--------------------------------------------------------------------------------
|
9462 |
#region Actions / Hooks / Filters
|
9463 |
#--------------------------------------------------------------------------------
|
9471 |
* @return string
|
9472 |
*/
|
9473 |
public function get_action_tag( $tag ) {
|
9474 |
+
return self::get_action_tag_static( $tag, $this->_slug, $this->is_plugin() );
|
9475 |
}
|
9476 |
|
9477 |
/**
|
9480 |
*
|
9481 |
* @param string $tag
|
9482 |
* @param string $slug
|
9483 |
+
* @param bool $is_plugin
|
9484 |
+
*
|
9485 |
+
* @return string
|
9486 |
+
*/
|
9487 |
+
static function get_action_tag_static( $tag, $slug = '', $is_plugin = true ) {
|
9488 |
+
$action = "fs_{$tag}";
|
9489 |
+
|
9490 |
+
if ( ! empty( $slug ) ) {
|
9491 |
+
$action .= '_' . self::get_module_unique_affix( $slug, $is_plugin );
|
9492 |
+
}
|
9493 |
+
|
9494 |
+
return $action;
|
9495 |
+
}
|
9496 |
+
|
9497 |
+
/**
|
9498 |
+
* Returns a string that can be used to generate a unique action name,
|
9499 |
+
* option name, HTML element ID, or HTML element class.
|
9500 |
+
*
|
9501 |
+
* @author Leo Fajardo (@leorw)
|
9502 |
+
* @since 1.2.2
|
9503 |
+
*
|
9504 |
+
* @return string
|
9505 |
+
*/
|
9506 |
+
public function get_unique_affix() {
|
9507 |
+
return self::get_module_unique_affix( $this->_slug, $this->is_plugin() );
|
9508 |
+
}
|
9509 |
+
|
9510 |
+
/**
|
9511 |
+
* Returns a string that can be used to generate a unique action name,
|
9512 |
+
* option name, HTML element ID, or HTML element class.
|
9513 |
+
*
|
9514 |
+
* @author Vova Feldman (@svovaf)
|
9515 |
+
* @since 1.2.2.5
|
9516 |
+
*
|
9517 |
+
* @param string $slug
|
9518 |
+
* @param bool $is_plugin
|
9519 |
*
|
9520 |
* @return string
|
9521 |
*/
|
9522 |
+
static function get_module_unique_affix( $slug, $is_plugin = true ) {
|
9523 |
+
$affix = $slug;
|
9524 |
+
|
9525 |
+
if ( ! $is_plugin ) {
|
9526 |
+
$affix .= '-' . WP_FS__MODULE_TYPE_THEME;
|
9527 |
+
}
|
9528 |
+
|
9529 |
+
return $affix;
|
9530 |
}
|
9531 |
|
9532 |
/**
|
9533 |
* @author Vova Feldman (@svovaf)
|
9534 |
* @since 1.2.1
|
9535 |
+
* @since 1.2.2.5 The AJAX action names are based on the module ID, not like the non-AJAX actions that are
|
9536 |
+
* based on the slug for backward compatibility.
|
9537 |
*
|
9538 |
* @param string $tag
|
9539 |
*
|
9540 |
* @return string
|
9541 |
*/
|
9542 |
function get_ajax_action( $tag ) {
|
9543 |
+
return self::get_ajax_action_static( $tag, $this->_module_id );
|
9544 |
}
|
9545 |
|
9546 |
/**
|
9568 |
/**
|
9569 |
* @author Vova Feldman (@svovaf)
|
9570 |
* @since 1.2.1.6
|
9571 |
+
* @since 1.2.2.5 The AJAX action names are based on the module ID, not like the non-AJAX actions that are
|
9572 |
+
* based on the slug for backward compatibility.
|
9573 |
*
|
9574 |
+
* @param string $tag
|
9575 |
+
* @param number|null $module_id
|
9576 |
*
|
9577 |
* @return string
|
9578 |
*/
|
9579 |
+
private static function get_ajax_action_static( $tag, $module_id = null ) {
|
9580 |
$action = "fs_{$tag}";
|
9581 |
|
9582 |
+
if ( ! empty( $module_id ) ) {
|
9583 |
+
$action .= "_{$module_id}";
|
9584 |
}
|
9585 |
|
9586 |
return $action;
|
9658 |
$tag,
|
9659 |
$function_to_add,
|
9660 |
$priority,
|
9661 |
+
$this->_module_id
|
9662 |
);
|
9663 |
}
|
9664 |
|
9668 |
* @author Vova Feldman (@svovaf)
|
9669 |
* @since 1.2.1.6
|
9670 |
*
|
9671 |
+
* @param string $tag
|
9672 |
+
* @param callable $function_to_add
|
9673 |
+
* @param int $priority
|
9674 |
+
* @param number|null $module_id
|
9675 |
*
|
9676 |
* @return bool True if action added, false if no need to add the action since the AJAX call isn't matching.
|
9677 |
* @uses add_action()
|
9681 |
$tag,
|
9682 |
$function_to_add,
|
9683 |
$priority = WP_FS__DEFAULT_PRIORITY,
|
9684 |
+
$module_id = null
|
9685 |
) {
|
9686 |
self::$_static_logger->entrance( $tag );
|
9687 |
|
9688 |
+
if ( ! self::is_ajax_action_static( $tag, $module_id ) ) {
|
9689 |
return false;
|
9690 |
}
|
9691 |
|
9692 |
add_action(
|
9693 |
+
'wp_ajax_' . self::get_ajax_action_static( $tag, $module_id ),
|
9694 |
$function_to_add,
|
9695 |
$priority,
|
9696 |
0
|
9759 |
$this->_logger->entrance( $tag );
|
9760 |
|
9761 |
$args = func_get_args();
|
9762 |
+
array_unshift( $args, $this->get_unique_affix() );
|
9763 |
|
9764 |
return call_user_func_array( 'fs_apply_filter', $args );
|
9765 |
}
|
9840 |
$encrypted_site = clone $this->_site;
|
9841 |
$encrypted_site->plan = self::_encrypt_entity( $this->_site->plan );
|
9842 |
|
9843 |
+
$sites = self::get_all_sites( $this->_module_type );
|
9844 |
$sites[ $this->_slug ] = $encrypted_site;
|
9845 |
+
|
9846 |
+
$this->set_account_option( 'sites', $sites, $store );
|
9847 |
}
|
9848 |
|
9849 |
/**
|
9857 |
private function _store_plans( $store = true ) {
|
9858 |
$this->_logger->entrance();
|
9859 |
|
9860 |
+
$plans = self::get_all_plans( $this->_module_type );
|
9861 |
|
9862 |
// Copy plans.
|
9863 |
$encrypted_plans = array();
|
9866 |
}
|
9867 |
|
9868 |
$plans[ $this->_slug ] = $encrypted_plans;
|
9869 |
+
|
9870 |
+
$this->set_account_option( 'plans', $plans, $store );
|
9871 |
}
|
9872 |
|
9873 |
/**
|
9883 |
private function _store_licenses( $store = true, $plugin_slug = false, $licenses = array() ) {
|
9884 |
$this->_logger->entrance();
|
9885 |
|
9886 |
+
$all_licenses = self::get_all_licenses( $this->_module_type );
|
9887 |
|
9888 |
if ( ! is_string( $plugin_slug ) ) {
|
9889 |
$plugin_slug = $this->_slug;
|
9896 |
|
9897 |
$all_licenses[ $plugin_slug ][ $this->_user->id ] = $licenses;
|
9898 |
|
9899 |
+
$this->set_account_option( 'licenses', $all_licenses, $store );
|
9900 |
}
|
9901 |
|
9902 |
/**
|
10294 |
* @uses FS_Api
|
10295 |
*
|
10296 |
* @param number|bool $plugin_id
|
10297 |
+
* @param bool $flush
|
10298 |
*
|
10299 |
* @return FS_Payment[]|object
|
10300 |
*/
|
10301 |
+
function _fetch_payments( $plugin_id = false, $flush = false ) {
|
10302 |
$this->_logger->entrance();
|
10303 |
|
10304 |
$api = $this->get_api_user_scope();
|
10307 |
$plugin_id = $this->_plugin->id;
|
10308 |
}
|
10309 |
|
10310 |
+
$result = $api->get( "/plugins/{$plugin_id}/payments.json?include_addons=true", $flush );
|
10311 |
|
10312 |
if ( ! isset( $result->error ) ) {
|
10313 |
for ( $i = 0, $len = count( $result->payments ); $i < $len; $i ++ ) {
|
10324 |
* @since 1.2.1.5
|
10325 |
* @uses FS_Api
|
10326 |
*
|
10327 |
+
* @param bool $flush
|
10328 |
+
*
|
10329 |
* @return \FS_Billing|mixed
|
10330 |
*/
|
10331 |
+
function _fetch_billing( $flush = false ) {
|
10332 |
require_once WP_FS__DIR_INCLUDES . '/entities/class-fs-billing.php';
|
10333 |
|
10334 |
+
$billing = $this->get_api_user_scope()->get( 'billing.json', $flush );
|
10335 |
|
10336 |
if ( $this->is_api_result_entity( $billing ) ) {
|
10337 |
$billing = new FS_Billing( $billing );
|
10383 |
*
|
10384 |
* @param bool|number $plugin_id
|
10385 |
* @param bool $flush Since 1.1.7.3
|
10386 |
+
* @param int $expiration Since 1.2.2.7
|
10387 |
*
|
10388 |
* @return object|false New plugin tag info if exist.
|
10389 |
*/
|
10390 |
+
private function _fetch_newer_version( $plugin_id = false, $flush = true, $expiration = WP_FS__TIME_24_HOURS_IN_SEC ) {
|
10391 |
+
$latest_tag = $this->_fetch_latest_version( $plugin_id, $flush, $expiration );
|
10392 |
|
10393 |
if ( ! is_object( $latest_tag ) ) {
|
10394 |
return false;
|
10411 |
* @since 1.0.5
|
10412 |
*
|
10413 |
* @param bool|number $plugin_id
|
10414 |
+
* @param bool $flush Since 1.1.7.3
|
10415 |
+
* @param int $expiration Since 1.2.2.7
|
10416 |
*
|
10417 |
* @return bool|FS_Plugin_Tag
|
10418 |
*/
|
10419 |
+
function get_update( $plugin_id = false, $flush = true, $expiration = WP_FS__TIME_24_HOURS_IN_SEC ) {
|
10420 |
$this->_logger->entrance();
|
10421 |
|
10422 |
if ( ! is_numeric( $plugin_id ) ) {
|
10423 |
$plugin_id = $this->_plugin->id;
|
10424 |
}
|
10425 |
|
10426 |
+
$this->check_updates( true, $plugin_id, $flush, $expiration );
|
10427 |
$updates = $this->get_all_updates();
|
10428 |
|
10429 |
return isset( $updates[ $plugin_id ] ) && is_object( $updates[ $plugin_id ] ) ? $updates[ $plugin_id ] : false;
|
10499 |
* @return bool
|
10500 |
*/
|
10501 |
function is_user_admin() {
|
10502 |
+
return ( $this->is_plugin() && current_user_can( 'activate_plugins' ) )
|
10503 |
+
|| ( $this->is_theme() && current_user_can( 'switch_themes' ) );
|
10504 |
}
|
10505 |
|
10506 |
/**
|
10574 |
if ( $this->is_array_instanceof( $licenses, 'FS_Plugin_License' ) ) {
|
10575 |
$this->_update_licenses( $licenses, $addon->slug );
|
10576 |
|
10577 |
+
if ( ! $this->is_addon_installed( $addon->id ) && FS_License_Manager::has_premium_license( $licenses ) ) {
|
10578 |
$plans_result = $this->get_api_site_or_plugin_scope()->get( "/addons/{$addon_id}/plans.json" );
|
10579 |
|
10580 |
if ( ! isset( $plans_result->error ) ) {
|
10840 |
break;
|
10841 |
case 'downgraded':
|
10842 |
$this->_admin_notices->add_sticky(
|
10843 |
+
sprintf( $this->get_text( 'license-expired-blocking-message' ), $this->_module_type ),
|
10844 |
'license_expired',
|
10845 |
$this->get_text( 'hmm' ) . '...'
|
10846 |
);
|
11127 |
if ( $this->is_trial() ) {
|
11128 |
// Already in trial mode.
|
11129 |
$this->_admin_notices->add(
|
11130 |
+
sprintf( $this->get_text( 'in-trial-mode' ), $this->_module_type ),
|
11131 |
$this->get_text( 'oops' ) . '...',
|
11132 |
'error'
|
11133 |
);
|
11174 |
if ( ! $this->has_trial_plan() ) {
|
11175 |
// None of the plans have a trial.
|
11176 |
$this->_admin_notices->add(
|
11177 |
+
sprintf( $this->get_text( 'no-trials' ), $this->_module_type ),
|
11178 |
$this->get_text( 'oops' ) . '...',
|
11179 |
'error'
|
11180 |
);
|
11193 |
if ( ! $this->is_api_result_entity( $plan ) ) {
|
11194 |
// Some API error while trying to start the trial.
|
11195 |
$this->_admin_notices->add(
|
11196 |
+
sprintf( $this->get_text( 'unexpected-api-error' ), $this->_module_type )
|
11197 |
+
. ' ' . var_export( $plan, true ),
|
11198 |
$this->get_text( 'oops' ) . '...',
|
11199 |
'error'
|
11200 |
);
|
11354 |
* @since 1.0.4
|
11355 |
*
|
11356 |
* @param bool|number $addon_id
|
11357 |
+
* @param bool $flush Since 1.1.7.3
|
11358 |
+
* @param int $expiration Since 1.2.2.7
|
11359 |
*
|
11360 |
* @return object|false Plugin latest tag info.
|
11361 |
*/
|
11362 |
+
function _fetch_latest_version( $addon_id = false, $flush = true, $expiration = WP_FS__TIME_24_HOURS_IN_SEC ) {
|
11363 |
$this->_logger->entrance();
|
11364 |
|
11365 |
/**
|
11374 |
|
11375 |
$tag = $this->get_api_site_or_plugin_scope()->get(
|
11376 |
$this->_get_latest_version_endpoint( $addon_id, 'json' ),
|
11377 |
+
$flush,
|
11378 |
+
$expiration
|
11379 |
);
|
11380 |
|
11381 |
$latest_version = ( is_object( $tag ) && isset( $tag->version ) ) ? $tag->version : 'couldn\'t get';
|
11498 |
* was initiated by the admin.
|
11499 |
* @param bool|number $plugin_id
|
11500 |
* @param bool $flush Since 1.1.7.3
|
11501 |
+
* @param int $expiration Since 1.2.2.7
|
11502 |
*/
|
11503 |
+
private function check_updates(
|
11504 |
+
$background = false,
|
11505 |
+
$plugin_id = false,
|
11506 |
+
$flush = true,
|
11507 |
+
$expiration = WP_FS__TIME_24_HOURS_IN_SEC
|
11508 |
+
) {
|
11509 |
$this->_logger->entrance();
|
11510 |
|
11511 |
// Check if there's a newer version for download.
|
11512 |
+
$new_version = $this->_fetch_newer_version( $plugin_id, $flush, $expiration );
|
11513 |
|
11514 |
$update = null;
|
11515 |
if ( is_object( $new_version ) ) {
|
11755 |
*/
|
11756 |
private function update_user_name() {
|
11757 |
$this->_logger->entrance();
|
11758 |
+
$name = fs_request_get( 'fs_user_name_' . $this->get_unique_affix(), '' );
|
11759 |
|
11760 |
$api = $this->get_api_user_scope();
|
11761 |
$user = $api->call( "?plugin_id={$this->_plugin->id}&fields=id,first,last", 'put', array(
|
11815 |
*
|
11816 |
* @return string
|
11817 |
*/
|
11818 |
+
function get_activation_url( $params = array() ) {
|
11819 |
+
if ( $this->is_addon() && $this->has_free_plan() ) {
|
11820 |
/**
|
11821 |
* @author Vova Feldman (@svovaf)
|
11822 |
* @since 1.2.1.7 Add-on's activation is the parent's module activation.
|
11836 |
* @return string
|
11837 |
*/
|
11838 |
function get_reconnect_url( $params = array() ) {
|
11839 |
+
$params['fs_action'] = 'reset_anonymous_mode';
|
11840 |
+
$params['fs_unique_affix'] = $this->get_unique_affix();
|
11841 |
|
11842 |
+
return $this->get_activation_url( $params );
|
11843 |
}
|
11844 |
|
11845 |
/**
|
11846 |
+
* Get the URL of the page that should be loaded after the user connect
|
11847 |
+
* or skip in the opt-in screen.
|
11848 |
*
|
11849 |
* @author Vova Feldman (@svovaf)
|
11850 |
* @since 1.1.3
|
11851 |
*
|
11852 |
* @param string $filter Filter name.
|
11853 |
+
* @param array $params Since 1.2.2.7
|
11854 |
*
|
11855 |
* @return string
|
11856 |
*/
|
11857 |
+
function get_after_activation_url( $filter, $params = array() ) {
|
11858 |
+
if ( $this->is_free_wp_org_theme() &&
|
11859 |
+
fs_request_has( 'pending_activation' )
|
11860 |
+
) {
|
11861 |
+
$first_time_path = '';
|
11862 |
+
} else {
|
11863 |
+
$first_time_path = $this->_menu->get_first_time_path();
|
11864 |
+
}
|
11865 |
|
11866 |
+
return add_query_arg( $params, $this->apply_filters(
|
11867 |
$filter,
|
11868 |
empty( $first_time_path ) ?
|
11869 |
$this->_get_admin_page_url() :
|
11870 |
$first_time_path
|
11871 |
+
) );
|
11872 |
}
|
11873 |
|
11874 |
/**
|
11988 |
case 'update_email':
|
11989 |
check_admin_referer( 'update_email' );
|
11990 |
|
11991 |
+
$new_email = fs_request_get( 'fs_email_' . $this->get_unique_affix(), '' );
|
11992 |
$result = $this->update_email( $new_email );
|
11993 |
|
11994 |
if ( isset( $result->error ) ) {
|
11996 |
case 'user_exist':
|
11997 |
$this->_admin_notices->add(
|
11998 |
$this->get_text( 'user-exist-message' ) . ' ' .
|
11999 |
+
sprintf( $this->get_text( 'user-exist-message_ownership' ), $this->_module_type, '<b>' . $new_email . '</b>' ) .
|
12000 |
sprintf(
|
12001 |
'<a style="margin-left: 10px;" href="%s"><button class="button button-primary">%s ➜</button></a>',
|
12002 |
$this->get_account_url( 'change_owner', array(
|
12057 |
|
12058 |
return;
|
12059 |
|
12060 |
+
case $this->get_unique_affix() . '_sync_license':
|
12061 |
$this->_sync_license();
|
12062 |
|
12063 |
return;
|
12079 |
$this->_logger->log( $action );
|
12080 |
|
12081 |
$site_property = substr( $p, strlen( 'site_' ) );
|
12082 |
+
$site_property_value = fs_request_get( 'fs_' . $p . '_' . $this->get_unique_affix(), '' );
|
12083 |
$this->get_site()->{$site_property} = $site_property_value;
|
12084 |
|
12085 |
// Store account after modification.
|
12156 |
$template = 'billing.php';
|
12157 |
}
|
12158 |
|
12159 |
+
$vars = array( 'id' => $this->_module_id );
|
12160 |
|
12161 |
/**
|
12162 |
* Added filter to the template to allow developers wrapping the template
|
12177 |
function _connect_page_render() {
|
12178 |
$this->_logger->entrance();
|
12179 |
|
12180 |
+
$vars = array( 'id' => $this->_module_id );
|
12181 |
|
12182 |
/**
|
12183 |
* Added filter to the template to allow developers wrapping the template
|
12229 |
function _addons_page_render() {
|
12230 |
$this->_logger->entrance();
|
12231 |
|
12232 |
+
$vars = array( 'id' => $this->_module_id );
|
12233 |
|
12234 |
/**
|
12235 |
* Added filter to the template to allow developers wrapping the template
|
12252 |
function _pricing_page_render() {
|
12253 |
$this->_logger->entrance();
|
12254 |
|
12255 |
+
$vars = array( 'id' => $this->_module_id );
|
12256 |
|
12257 |
if ( 'true' === fs_request_get( 'checkout', false ) ) {
|
12258 |
fs_require_once_template( 'checkout.php', $vars );
|
12274 |
function _contact_page_render() {
|
12275 |
$this->_logger->entrance();
|
12276 |
|
12277 |
+
$vars = array( 'id' => $this->_module_id );
|
12278 |
fs_require_once_template( 'contact.php', $vars );
|
12279 |
}
|
12280 |
|
12338 |
function get_api_user_scope( $flush = false ) {
|
12339 |
if ( ! isset( $this->_user_api ) || $flush ) {
|
12340 |
$this->_user_api = FS_Api::instance(
|
12341 |
+
$this->_module_id,
|
12342 |
'user',
|
12343 |
$this->_user->id,
|
12344 |
$this->_user->public_key,
|
12364 |
function get_api_site_scope( $flush = false ) {
|
12365 |
if ( ! isset( $this->_site_api ) || $flush ) {
|
12366 |
$this->_site_api = FS_Api::instance(
|
12367 |
+
$this->_module_id,
|
12368 |
'install',
|
12369 |
$this->_site->id,
|
12370 |
$this->_site->public_key,
|
12389 |
function get_api_plugin_scope() {
|
12390 |
if ( ! isset( $this->_plugin_api ) ) {
|
12391 |
$this->_plugin_api = FS_Api::instance(
|
12392 |
+
$this->_module_id,
|
12393 |
'plugin',
|
12394 |
$this->_plugin->id,
|
12395 |
$this->_plugin->public_key,
|
12438 |
* @since 1.2.1.5
|
12439 |
*/
|
12440 |
function _fix_start_trial_menu_item_url() {
|
12441 |
+
$template_args = array( 'id' => $this->_module_id );
|
12442 |
fs_require_template( 'add-trial-to-pricing.php', $template_args );
|
12443 |
}
|
12444 |
|
12445 |
+
/**
|
12446 |
+
* Check if module is currently in a trial promotion mode.
|
12447 |
+
*
|
12448 |
+
* @author Vova Feldman (@svovaf)
|
12449 |
+
* @since 1.2.2.7
|
12450 |
+
*
|
12451 |
+
* @return bool
|
12452 |
+
*/
|
12453 |
+
function is_in_trial_promotion() {
|
12454 |
+
return $this->_admin_notices->has_sticky( 'trial_promotion' );
|
12455 |
+
}
|
12456 |
+
|
12457 |
/**
|
12458 |
* Show trial promotional notice (if any trial exist).
|
12459 |
*
|
12472 |
}
|
12473 |
|
12474 |
// Check if trial message is already shown.
|
12475 |
+
if ( $this->is_in_trial_promotion() ) {
|
12476 |
add_action( 'admin_footer', array( &$this, '_fix_start_trial_menu_item_url' ) );
|
12477 |
|
12478 |
$this->_menu->add_counter_to_menu_item( 1, 'fs-trial' );
|
12557 |
// Not all paid plans have a trial - generate a string of those that have it.
|
12558 |
for ( $i = 0; $i < $trial_plans_count; $i ++ ) {
|
12559 |
$plans_string .= sprintf(
|
12560 |
+
' <a href="%s">%s</a>',
|
12561 |
$trial_url,
|
12562 |
$trial_plans[ $i ]->title
|
12563 |
);
|
12614 |
}
|
12615 |
}
|
12616 |
|
12617 |
+
/**
|
12618 |
+
* @author Leo Fajardo (leorw)
|
12619 |
+
* @since 1.2.2
|
12620 |
+
*/
|
12621 |
+
function _show_theme_activation_optin_dialog() {
|
12622 |
+
fs_enqueue_local_style( 'fs_connect', '/admin/connect.css' );
|
12623 |
+
|
12624 |
+
add_action( 'admin_footer-themes.php', array( &$this, '_add_fs_theme_activation_dialog' ) );
|
12625 |
+
}
|
12626 |
+
|
12627 |
+
/**
|
12628 |
+
* @author Leo Fajardo (leorw)
|
12629 |
+
* @since 1.2.2
|
12630 |
+
*/
|
12631 |
+
function _add_fs_theme_activation_dialog() {
|
12632 |
+
$vars = array( 'id' => $this->_module_id );
|
12633 |
+
fs_require_once_template( 'connect.php', $vars );
|
12634 |
+
}
|
12635 |
+
|
12636 |
/* Action Links
|
12637 |
------------------------------------------------------------------------------------------------------------------*/
|
12638 |
private $_action_links_hooked = false;
|
12754 |
'#',
|
12755 |
false,
|
12756 |
11,
|
12757 |
+
( 'activate-license ' . $this->get_unique_affix() )
|
12758 |
);
|
12759 |
}
|
12760 |
|
12771 |
|
12772 |
$this->_logger->entrance();
|
12773 |
|
12774 |
+
if ( fs_request_is_action_secure( $this->get_unique_affix() . '_reconnect' ) ) {
|
12775 |
+
if ( ! $this->is_registered() && $this->is_anonymous() ) {
|
12776 |
+
$this->connect_again();
|
12777 |
+
|
12778 |
+
return;
|
12779 |
+
}
|
12780 |
+
}
|
12781 |
+
|
12782 |
+
if ( ( $this->is_plugin() && ! self::is_plugins_page() ) ||
|
12783 |
+
( $this->is_theme() && ! self::is_themes_page() )
|
12784 |
+
) {
|
12785 |
+
// Only show tracking links on the plugins and themes pages.
|
12786 |
return;
|
12787 |
}
|
12788 |
|
12804 |
return;
|
12805 |
}
|
12806 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12807 |
$url = '#';
|
12808 |
|
12809 |
if ( $this->is_registered() ) {
|
12820 |
$params = ! $this->is_anonymous() ?
|
12821 |
array() :
|
12822 |
array(
|
12823 |
+
'nonce' => wp_create_nonce( $this->get_unique_affix() . '_reconnect' ),
|
12824 |
+
'fs_action' => ( $this->get_unique_affix() . '_reconnect' ),
|
12825 |
);
|
12826 |
|
12827 |
$url = $this->get_activation_url( $params );
|
12828 |
}
|
12829 |
|
12830 |
+
if ( $this->is_plugin() && self::is_plugins_page() ) {
|
12831 |
+
$this->add_plugin_action_link(
|
12832 |
+
$this->get_text( $link_text_id ),
|
12833 |
+
$url,
|
12834 |
+
false,
|
12835 |
+
13,
|
12836 |
+
"opt-in-or-opt-out {$this->_slug}"
|
12837 |
+
);
|
12838 |
+
}
|
12839 |
}
|
12840 |
|
12841 |
/**
|
12848 |
*/
|
12849 |
function get_after_plugin_activation_redirect_url() {
|
12850 |
$url = false;
|
|
|
12851 |
|
12852 |
+
if ( ! $this->is_addon() || ! $this->has_free_plan() ) {
|
12853 |
$first_time_path = $this->_menu->get_first_time_path();
|
12854 |
+
$url = $this->is_activation_mode() ?
|
12855 |
+
$this->get_activation_url() :
|
|
|
12856 |
( empty( $first_time_path ) ?
|
12857 |
$this->_get_admin_page_url() :
|
12858 |
$first_time_path );
|
12859 |
} else {
|
12860 |
+
$plugin_fs = false;
|
12861 |
+
|
12862 |
if ( $this->is_parent_plugin_installed() ) {
|
12863 |
$plugin_fs = self::get_parent_instance();
|
12864 |
}
|
12937 |
*
|
12938 |
* @since 1.2.1.6 Always show the deactivation feedback form since we added automatic free version deactivation upon premium code activation.
|
12939 |
*/
|
12940 |
+
$deactivate_link .= '<i class="fs-module-id" data-module-id="' . $this->_module_id . '"></i>';
|
12941 |
|
12942 |
// Append deactivation link.
|
12943 |
$before_deactivate['deactivate'] = $deactivate_link;
|
13010 |
) ),
|
13011 |
$deactivation_step,
|
13012 |
$this->get_text( 'upload-and-activate' ),
|
13013 |
+
'//bit.ly/upload-wp-' . $this->_module_type . 's',
|
13014 |
$this->get_text( 'howto-upload-activate' )
|
13015 |
);
|
13016 |
}
|
13017 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13018 |
/**
|
13019 |
* @author Vova Feldman (@svovaf)
|
13020 |
* @since 1.2.1.7
|
13263 |
|
13264 |
#endregion
|
13265 |
|
13266 |
+
#--------------------------------------------------------------------------------
|
13267 |
+
#region Tabs Integration
|
13268 |
+
#--------------------------------------------------------------------------------
|
13269 |
+
|
13270 |
+
#region Module's Original Tabs
|
13271 |
+
|
13272 |
+
/**
|
13273 |
+
* Inject a JavaScript logic to capture the theme tabs HTML.
|
13274 |
+
*
|
13275 |
+
* @author Vova Feldman (@svovaf)
|
13276 |
+
* @since 1.2.2.7
|
13277 |
+
*/
|
13278 |
+
function _tabs_capture() {
|
13279 |
+
$this->_logger->entrance();
|
13280 |
+
|
13281 |
+
if ( ! $this->is_theme_settings_page() ||
|
13282 |
+
! $this->is_matching_url( $this->main_menu_url() )
|
13283 |
+
) {
|
13284 |
+
return;
|
13285 |
+
}
|
13286 |
+
|
13287 |
+
$params = array(
|
13288 |
+
'id' => $this->_module_id,
|
13289 |
+
);
|
13290 |
+
|
13291 |
+
fs_require_once_template( 'tabs-capture-js.php', $params );
|
13292 |
+
}
|
13293 |
+
|
13294 |
+
/**
|
13295 |
+
* Cache theme's tabs HTML for a week. The cache will also be set as expired
|
13296 |
+
* after version and type (free/premium) changes, in addition to the week period.
|
13297 |
+
*
|
13298 |
+
* @author Vova Feldman (@svovaf)
|
13299 |
+
* @since 1.2.2.7
|
13300 |
+
*/
|
13301 |
+
function _store_tabs_ajax_action() {
|
13302 |
+
$this->_logger->entrance();
|
13303 |
+
|
13304 |
+
$this->check_ajax_referer( 'store_tabs' );
|
13305 |
+
|
13306 |
+
// Init filesystem if not yet initiated.
|
13307 |
+
WP_Filesystem();
|
13308 |
+
|
13309 |
+
// Get POST body HTML data.
|
13310 |
+
global $wp_filesystem;
|
13311 |
+
$tabs_html = $wp_filesystem->get_contents( "php://input" );
|
13312 |
+
|
13313 |
+
if ( is_string( $tabs_html ) ) {
|
13314 |
+
$tabs_html = trim( $tabs_html );
|
13315 |
+
}
|
13316 |
+
|
13317 |
+
if ( ! is_string( $tabs_html ) || empty( $tabs_html ) ) {
|
13318 |
+
self::shoot_ajax_failure();
|
13319 |
+
}
|
13320 |
+
|
13321 |
+
$this->_cache->set( 'tabs', $tabs_html, 7 * WP_FS__TIME_24_HOURS_IN_SEC );
|
13322 |
+
|
13323 |
+
self::shoot_ajax_success();
|
13324 |
+
}
|
13325 |
+
|
13326 |
+
/**
|
13327 |
+
* Cache theme's settings page custom styles. The cache will also be set as expired
|
13328 |
+
* after version and type (free/premium) changes, in addition to the week period.
|
13329 |
+
*
|
13330 |
+
* @author Vova Feldman (@svovaf)
|
13331 |
+
* @since 1.2.2.7
|
13332 |
+
*/
|
13333 |
+
function _store_tabs_styles() {
|
13334 |
+
$this->_logger->entrance();
|
13335 |
+
|
13336 |
+
if ( ! $this->is_theme_settings_page() ||
|
13337 |
+
! $this->is_matching_url( $this->main_menu_url() )
|
13338 |
+
) {
|
13339 |
+
return;
|
13340 |
+
}
|
13341 |
+
|
13342 |
+
$wp_styles = wp_styles();
|
13343 |
+
|
13344 |
+
$theme_styles_url = get_template_directory_uri();
|
13345 |
+
|
13346 |
+
$stylesheets = array();
|
13347 |
+
foreach ( $wp_styles->queue as $handler ) {
|
13348 |
+
if ( fs_starts_with( $handler, 'fs_' ) ) {
|
13349 |
+
// Assume that stylesheets that their handler starts with "fs_" belong to the SDK.
|
13350 |
+
continue;
|
13351 |
+
}
|
13352 |
+
|
13353 |
+
/**
|
13354 |
+
* @var _WP_Dependency $stylesheet
|
13355 |
+
*/
|
13356 |
+
$stylesheet = $wp_styles->registered[ $handler ];
|
13357 |
+
|
13358 |
+
if ( fs_starts_with( $stylesheet->src, $theme_styles_url ) ) {
|
13359 |
+
$stylesheets[] = $stylesheet->src;
|
13360 |
+
}
|
13361 |
+
}
|
13362 |
+
|
13363 |
+
if ( ! empty( $stylesheets ) ) {
|
13364 |
+
$this->_cache->set( 'tabs_stylesheets', $stylesheets, 7 * WP_FS__TIME_24_HOURS_IN_SEC );
|
13365 |
+
}
|
13366 |
+
}
|
13367 |
+
|
13368 |
+
/**
|
13369 |
+
* Check if module's original settings page has any tabs.
|
13370 |
+
*
|
13371 |
+
* @author Vova Feldman (@svovaf)
|
13372 |
+
* @since 1.2.2.7
|
13373 |
+
*
|
13374 |
+
* @return bool
|
13375 |
+
*/
|
13376 |
+
private function has_tabs() {
|
13377 |
+
return $this->_cache->has( 'tabs' );
|
13378 |
+
}
|
13379 |
+
|
13380 |
+
/**
|
13381 |
+
* Get module's settings page HTML content, starting
|
13382 |
+
* from the beginning of the <div class="wrap"> element,
|
13383 |
+
* until the tabs HTML (including).
|
13384 |
+
*
|
13385 |
+
* @author Vova Feldman (@svovaf)
|
13386 |
+
* @since 1.2.2.7
|
13387 |
+
*
|
13388 |
+
* @return string
|
13389 |
+
*/
|
13390 |
+
private function get_tabs_html() {
|
13391 |
+
$this->_logger->entrance();
|
13392 |
+
|
13393 |
+
return $this->_cache->get( 'tabs' );
|
13394 |
+
}
|
13395 |
+
|
13396 |
+
/**
|
13397 |
+
* Check if page should include tabs.
|
13398 |
+
*
|
13399 |
+
* @author Vova Feldman (@svovaf)
|
13400 |
+
* @since 1.2.2.7
|
13401 |
+
*
|
13402 |
+
* @return bool
|
13403 |
+
*/
|
13404 |
+
private function should_page_include_tabs()
|
13405 |
+
{
|
13406 |
+
if ( ! $this->has_settings_menu() ) {
|
13407 |
+
// Don't add tabs if no settings at all.
|
13408 |
+
return false;
|
13409 |
+
}
|
13410 |
+
|
13411 |
+
if ( ! $this->is_theme() ) {
|
13412 |
+
// Only add tabs to themes for now.
|
13413 |
+
return false;
|
13414 |
+
}
|
13415 |
+
|
13416 |
+
if ( ! $this->has_paid_plan() && ! $this->has_addons() ) {
|
13417 |
+
// Only add tabs to monetizing themes.
|
13418 |
+
return false;
|
13419 |
+
}
|
13420 |
+
|
13421 |
+
if ( ! $this->is_theme_settings_page() ) {
|
13422 |
+
// Only add tabs if browsing one of the theme's setting pages.
|
13423 |
+
return false;
|
13424 |
+
}
|
13425 |
+
|
13426 |
+
if ( $this->is_admin_page( 'pricing' ) && fs_request_get_bool( 'checkout' ) ) {
|
13427 |
+
// Don't add tabs on checkout page, we want to reduce distractions
|
13428 |
+
// as much as possible.
|
13429 |
+
return false;
|
13430 |
+
}
|
13431 |
+
|
13432 |
+
return true;
|
13433 |
+
}
|
13434 |
+
|
13435 |
+
/**
|
13436 |
+
* Add the tabs HTML before the setting's page content and
|
13437 |
+
* enqueue any required stylesheets.
|
13438 |
+
*
|
13439 |
+
* @author Vova Feldman (@svovaf)
|
13440 |
+
* @since 1.2.2.7
|
13441 |
+
*
|
13442 |
+
* @return bool If tabs were included.
|
13443 |
+
*/
|
13444 |
+
function _add_tabs_before_content() {
|
13445 |
+
$this->_logger->entrance();
|
13446 |
+
|
13447 |
+
if ( ! $this->should_page_include_tabs() ) {
|
13448 |
+
return false;
|
13449 |
+
}
|
13450 |
+
|
13451 |
+
/**
|
13452 |
+
* Enqueue the original stylesheets that are included in the
|
13453 |
+
* theme settings page. That way, if the theme settings has
|
13454 |
+
* some custom _styled_ content above the tabs UI, this
|
13455 |
+
* will make sure that the styling is preserved.
|
13456 |
+
*/
|
13457 |
+
$stylesheets = $this->_cache->get( 'tabs_stylesheets', array() );
|
13458 |
+
if ( is_array( $stylesheets ) ) {
|
13459 |
+
for ( $i = 0, $len = count( $stylesheets ); $i < $len; $i ++ ) {
|
13460 |
+
wp_enqueue_style( "fs_{$this->_module_id}_tabs_{$i}", $stylesheets[ $i ] );
|
13461 |
+
}
|
13462 |
+
}
|
13463 |
+
|
13464 |
+
// Cut closing </div> tag.
|
13465 |
+
echo substr( trim( $this->get_tabs_html() ), 0, - 6 );
|
13466 |
+
|
13467 |
+
return true;
|
13468 |
+
}
|
13469 |
+
|
13470 |
+
/**
|
13471 |
+
* Add the tabs closing HTML after the setting's page content.
|
13472 |
+
*
|
13473 |
+
* @author Vova Feldman (@svovaf)
|
13474 |
+
* @since 1.2.2.7
|
13475 |
+
*
|
13476 |
+
* @return bool If tabs closing HTML was included.
|
13477 |
+
*/
|
13478 |
+
function _add_tabs_after_content() {
|
13479 |
+
$this->_logger->entrance();
|
13480 |
+
|
13481 |
+
if ( ! $this->should_page_include_tabs() ) {
|
13482 |
+
return false;
|
13483 |
+
}
|
13484 |
+
|
13485 |
+
echo '</div>';
|
13486 |
+
|
13487 |
+
return true;
|
13488 |
+
}
|
13489 |
+
|
13490 |
+
#endregion
|
13491 |
+
|
13492 |
+
/**
|
13493 |
+
* Add in-page JavaScript to inject the Freemius tabs into
|
13494 |
+
* the module's setting tabs section.
|
13495 |
+
*
|
13496 |
+
* @author Vova Feldman (@svovaf)
|
13497 |
+
* @since 1.2.2.7
|
13498 |
+
*/
|
13499 |
+
function _add_freemius_tabs() {
|
13500 |
+
$this->_logger->entrance();
|
13501 |
+
|
13502 |
+
if ( ! $this->should_page_include_tabs() ) {
|
13503 |
+
return;
|
13504 |
+
}
|
13505 |
+
|
13506 |
+
$params = array( 'id' => $this->_module_id );
|
13507 |
+
fs_require_once_template( 'tabs.php', $params );
|
13508 |
+
}
|
13509 |
+
|
13510 |
+
#endregion
|
13511 |
+
|
13512 |
+
#--------------------------------------------------------------------------------
|
13513 |
+
#region Customizer Integration for Themes
|
13514 |
+
#--------------------------------------------------------------------------------
|
13515 |
+
|
13516 |
+
/**
|
13517 |
+
* @author Vova Feldman (@svovaf)
|
13518 |
+
* @since 1.2.2.7
|
13519 |
+
*
|
13520 |
+
* @param WP_Customize_Manager $customizer
|
13521 |
+
*/
|
13522 |
+
function _customizer_register($customizer) {
|
13523 |
+
$this->_logger->entrance();
|
13524 |
+
|
13525 |
+
if ( $this->is_pricing_page_visible() ) {
|
13526 |
+
require_once WP_FS__DIR_INCLUDES . '/customizer/class-fs-customizer-upsell-control.php';
|
13527 |
+
|
13528 |
+
$customizer->add_section( 'freemius_upsell', array(
|
13529 |
+
'title' => '★ ' . $this->get_text( 'view-paid-features' ),
|
13530 |
+
'priority' => 1,
|
13531 |
+
) );
|
13532 |
+
$customizer->add_setting( 'freemius_upsell', array(
|
13533 |
+
'sanitize_callback' => 'esc_html',
|
13534 |
+
) );
|
13535 |
+
|
13536 |
+
$customizer->add_control( new FS_Customizer_Upsell_Control( $customizer, 'freemius_upsell', array(
|
13537 |
+
'fs' => $this,
|
13538 |
+
'section' => 'freemius_upsell',
|
13539 |
+
'priority' => 100,
|
13540 |
+
) ) );
|
13541 |
+
}
|
13542 |
+
|
13543 |
+
if ( $this->is_page_visible( 'contact' ) || $this->is_page_visible( 'support' ) ) {
|
13544 |
+
require_once WP_FS__DIR_INCLUDES . '/customizer/class-fs-customizer-support-section.php';
|
13545 |
+
|
13546 |
+
// Main Documentation Link In Customizer Root.
|
13547 |
+
$customizer->add_section( new FS_Customizer_Support_Section( $customizer, 'freemius_support', array(
|
13548 |
+
'fs' => $this,
|
13549 |
+
'priority' => 1000,
|
13550 |
+
) ) );
|
13551 |
+
}
|
13552 |
+
}
|
13553 |
+
|
13554 |
+
#endregion
|
13555 |
+
|
13556 |
+
/**
|
13557 |
+
* If the theme has a paid version, add some custom
|
13558 |
+
* styling to the theme's premium version (if exists)
|
13559 |
+
* to highlight that it's the premium version of the
|
13560 |
+
* same theme, making it easier for identification
|
13561 |
+
* after the user upgrades and upload it to the site.
|
13562 |
+
*
|
13563 |
+
* @author Vova Feldman (@svovaf)
|
13564 |
+
* @since 1.2.2.7
|
13565 |
+
*/
|
13566 |
+
function _style_premium_theme() {
|
13567 |
+
$this->_logger->entrance();
|
13568 |
+
|
13569 |
+
if ( ! self::is_themes_page() ) {
|
13570 |
+
// Only include in the themes page.
|
13571 |
+
return;
|
13572 |
+
}
|
13573 |
+
|
13574 |
+
if ( ! $this->has_paid_plan() ) {
|
13575 |
+
// Only include if has any paid plans.
|
13576 |
+
return;
|
13577 |
+
}
|
13578 |
+
|
13579 |
+
$params = null;
|
13580 |
+
fs_require_once_template( '/js/jquery.content-change.php', $params );
|
13581 |
+
|
13582 |
+
$params = array(
|
13583 |
+
'slug' => $this->_slug,
|
13584 |
+
'id' => $this->_module_id,
|
13585 |
+
);
|
13586 |
+
|
13587 |
+
fs_require_template( '/js/style-premium-theme.php', $params );
|
13588 |
+
}
|
13589 |
+
|
13590 |
#----------------------------------------------------------------------------------
|
13591 |
#region Marketing
|
13592 |
#----------------------------------------------------------------------------------
|
freemius/includes/class-fs-api.php
CHANGED
@@ -1,558 +1,558 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* @package Freemius
|
4 |
-
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
-
* @since 1.0.4
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
-
exit;
|
11 |
-
}
|
12 |
-
|
13 |
-
/**
|
14 |
-
* Class FS_Api
|
15 |
-
*
|
16 |
-
* Wraps Freemius API SDK to handle:
|
17 |
-
* 1. Clock sync.
|
18 |
-
* 2. Fallback to HTTP when HTTPS fails.
|
19 |
-
* 3. Adds caching layer to GET requests.
|
20 |
-
* 4. Adds consistency for failed requests by using last cached version.
|
21 |
-
*/
|
22 |
-
class FS_Api {
|
23 |
-
/**
|
24 |
-
* @var FS_Api[]
|
25 |
-
*/
|
26 |
-
private static $_instances = array();
|
27 |
-
|
28 |
-
/**
|
29 |
-
* @var FS_Option_Manager Freemius options, options-manager.
|
30 |
-
*/
|
31 |
-
private static $_options;
|
32 |
-
|
33 |
-
/**
|
34 |
-
* @var FS_Cache_Manager API Caching layer
|
35 |
-
*/
|
36 |
-
private static $_cache;
|
37 |
-
|
38 |
-
/**
|
39 |
-
* @var int Clock diff in seconds between current server to API server.
|
40 |
-
*/
|
41 |
-
private static $_clock_diff;
|
42 |
-
|
43 |
-
/**
|
44 |
-
* @var
|
45 |
-
*/
|
46 |
-
private $_api;
|
47 |
-
|
48 |
-
/**
|
49 |
-
* @var string
|
50 |
-
*/
|
51 |
-
private $_slug;
|
52 |
-
|
53 |
-
/**
|
54 |
-
* @var FS_Logger
|
55 |
-
* @since 1.0.4
|
56 |
-
*/
|
57 |
-
private $_logger;
|
58 |
-
|
59 |
-
/**
|
60 |
-
* @param string $slug
|
61 |
-
* @param string $scope 'app', 'developer', 'user' or 'install'.
|
62 |
-
* @param number $id Element's id.
|
63 |
-
* @param string $public_key Public key.
|
64 |
-
* @param bool $is_sandbox
|
65 |
-
* @param bool|string $secret_key Element's secret key.
|
66 |
-
*
|
67 |
-
* @return FS_Api
|
68 |
-
*/
|
69 |
-
static function instance( $slug, $scope, $id, $public_key, $is_sandbox, $secret_key = false ) {
|
70 |
-
$identifier = md5( $slug . $scope . $id . $public_key . ( is_string( $secret_key ) ? $secret_key : '' ) . json_encode( $is_sandbox ) );
|
71 |
-
|
72 |
-
if ( ! isset( self::$_instances[ $identifier ] ) ) {
|
73 |
-
self::_init();
|
74 |
-
|
75 |
-
self::$_instances[ $identifier ] = new FS_Api( $slug, $scope, $id, $public_key, $secret_key, $is_sandbox );
|
76 |
-
}
|
77 |
-
|
78 |
-
return self::$_instances[ $identifier ];
|
79 |
-
}
|
80 |
-
|
81 |
-
private static function _init() {
|
82 |
-
if ( isset( self::$_options ) ) {
|
83 |
-
return;
|
84 |
-
}
|
85 |
-
|
86 |
-
if ( ! class_exists( '
|
87 |
-
require_once WP_FS__DIR_SDK . '/
|
88 |
-
}
|
89 |
-
|
90 |
-
self::$_options = FS_Option_Manager::get_manager( WP_FS__OPTIONS_OPTION_NAME, true );
|
91 |
-
self::$_cache = FS_Cache_Manager::get_manager( WP_FS__API_CACHE_OPTION_NAME );
|
92 |
-
|
93 |
-
self::$_clock_diff = self::$_options->get_option( 'api_clock_diff', 0 );
|
94 |
-
|
95 |
-
|
96 |
-
if ( self::$_options->get_option( 'api_force_http', false ) ) {
|
97 |
-
|
98 |
-
}
|
99 |
-
}
|
100 |
-
|
101 |
-
/**
|
102 |
-
* @param string $slug
|
103 |
-
* @param string $scope 'app', 'developer', 'user' or 'install'.
|
104 |
-
* @param number $id Element's id.
|
105 |
-
* @param string $public_key Public key.
|
106 |
-
* @param bool|string $secret_key Element's secret key.
|
107 |
-
* @param bool $is_sandbox
|
108 |
-
*/
|
109 |
-
private function __construct( $slug, $scope, $id, $public_key, $secret_key, $is_sandbox ) {
|
110 |
-
$this->_api = new
|
111 |
-
|
112 |
-
$this->_slug = $slug;
|
113 |
-
$this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $slug . '_api', WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
|
114 |
-
}
|
115 |
-
|
116 |
-
/**
|
117 |
-
* Find clock diff between server and API server, and store the diff locally.
|
118 |
-
*
|
119 |
-
* @param bool|int $diff
|
120 |
-
*
|
121 |
-
* @return bool|int False if clock diff didn't change, otherwise returns the clock diff in seconds.
|
122 |
-
*/
|
123 |
-
private function _sync_clock_diff( $diff = false ) {
|
124 |
-
$this->_logger->entrance();
|
125 |
-
|
126 |
-
// Sync clock and store.
|
127 |
-
$new_clock_diff = ( false === $diff ) ?
|
128 |
-
|
129 |
-
$diff;
|
130 |
-
|
131 |
-
if ( $new_clock_diff === self::$_clock_diff ) {
|
132 |
-
return false;
|
133 |
-
}
|
134 |
-
|
135 |
-
self::$_clock_diff = $new_clock_diff;
|
136 |
-
|
137 |
-
// Update API clock's diff.
|
138 |
-
|
139 |
-
|
140 |
-
// Store new clock diff in storage.
|
141 |
-
self::$_options->set_option( 'api_clock_diff', self::$_clock_diff, true );
|
142 |
-
|
143 |
-
return $new_clock_diff;
|
144 |
-
}
|
145 |
-
|
146 |
-
/**
|
147 |
-
* Override API call to enable retry with servers' clock auto sync method.
|
148 |
-
*
|
149 |
-
* @param string $path
|
150 |
-
* @param string $method
|
151 |
-
* @param array $params
|
152 |
-
* @param bool $retry Is in retry or first call attempt.
|
153 |
-
*
|
154 |
-
* @return array|mixed|string|void
|
155 |
-
*/
|
156 |
-
private function _call( $path, $method = 'GET', $params = array(), $retry = false ) {
|
157 |
-
$this->_logger->entrance( $method . ':' . $path );
|
158 |
-
|
159 |
-
if ( self::is_temporary_down() ) {
|
160 |
-
$result = $this->get_temporary_unavailable_error();
|
161 |
-
} else {
|
162 |
-
$result = $this->_api->Api( $path, $method, $params );
|
163 |
-
|
164 |
-
if ( null !== $result &&
|
165 |
-
isset( $result->error ) &&
|
166 |
-
isset( $result->error->code ) &&
|
167 |
-
'request_expired' === $result->error->code
|
168 |
-
) {
|
169 |
-
if ( ! $retry ) {
|
170 |
-
$diff = isset( $result->error->timestamp ) ?
|
171 |
-
( time() - strtotime( $result->error->timestamp ) ) :
|
172 |
-
false;
|
173 |
-
|
174 |
-
// Try to sync clock diff.
|
175 |
-
if ( false !== $this->_sync_clock_diff( $diff ) ) {
|
176 |
-
// Retry call with new synced clock.
|
177 |
-
return $this->_call( $path, $method, $params, true );
|
178 |
-
}
|
179 |
-
}
|
180 |
-
}
|
181 |
-
}
|
182 |
-
|
183 |
-
if ( $this->_logger->is_on() && self::is_api_error( $result ) ) {
|
184 |
-
// Log API errors.
|
185 |
-
$this->_logger->api_error( $result );
|
186 |
-
}
|
187 |
-
|
188 |
-
return $result;
|
189 |
-
}
|
190 |
-
|
191 |
-
/**
|
192 |
-
* Override API call to wrap it in servers' clock sync method.
|
193 |
-
*
|
194 |
-
* @param string $path
|
195 |
-
* @param string $method
|
196 |
-
* @param array $params
|
197 |
-
*
|
198 |
-
* @return array|mixed|string|void
|
199 |
-
* @throws Freemius_Exception
|
200 |
-
*/
|
201 |
-
function call( $path, $method = 'GET', $params = array() ) {
|
202 |
-
return $this->_call( $path, $method, $params );
|
203 |
-
}
|
204 |
-
|
205 |
-
/**
|
206 |
-
* Get API request URL signed via query string.
|
207 |
-
*
|
208 |
-
* @param string $path
|
209 |
-
*
|
210 |
-
* @return string
|
211 |
-
*/
|
212 |
-
function get_signed_url( $path ) {
|
213 |
-
return $this->_api->GetSignedUrl( $path );
|
214 |
-
}
|
215 |
-
|
216 |
-
/**
|
217 |
-
* @param string $path
|
218 |
-
* @param bool $flush
|
219 |
-
* @param int $expiration (optional) Time until expiration in seconds from now, defaults to 24 hours
|
220 |
-
*
|
221 |
-
* @return stdClass|mixed
|
222 |
-
*/
|
223 |
-
function get( $path = '/', $flush = false, $expiration = WP_FS__TIME_24_HOURS_IN_SEC ) {
|
224 |
-
$this->_logger->entrance( $path );
|
225 |
-
|
226 |
-
$cache_key = $this->get_cache_key( $path );
|
227 |
-
|
228 |
-
// Always flush during development.
|
229 |
-
if ( WP_FS__DEV_MODE || $this->_api->IsSandbox() ) {
|
230 |
-
$flush = true;
|
231 |
-
}
|
232 |
-
|
233 |
-
$cached_result = self::$_cache->get( $cache_key );
|
234 |
-
|
235 |
-
if ( $flush || ! self::$_cache->has_valid( $cache_key ) ) {
|
236 |
-
$result = $this->call( $path );
|
237 |
-
|
238 |
-
if ( ! is_object( $result ) || isset( $result->error ) ) {
|
239 |
-
// Api returned an error.
|
240 |
-
if ( is_object( $cached_result ) &&
|
241 |
-
! isset( $cached_result )
|
242 |
-
) {
|
243 |
-
// If there was an error during a newer data fetch,
|
244 |
-
// fallback to older data version.
|
245 |
-
$result = $cached_result;
|
246 |
-
|
247 |
-
if ( $this->_logger->is_on() ) {
|
248 |
-
$this->_logger->warn( 'Fallback to cached API result: ' . var_export( $cached_result, true ) );
|
249 |
-
}
|
250 |
-
} else {
|
251 |
-
// If no older data version, return result without
|
252 |
-
// caching the error.
|
253 |
-
return $result;
|
254 |
-
}
|
255 |
-
}
|
256 |
-
|
257 |
-
self::$_cache->set( $cache_key, $result, $expiration );
|
258 |
-
|
259 |
-
$cached_result = $result;
|
260 |
-
} else {
|
261 |
-
$this->_logger->log( 'Using cached API result.' );
|
262 |
-
}
|
263 |
-
|
264 |
-
return $cached_result;
|
265 |
-
}
|
266 |
-
|
267 |
-
/**
|
268 |
-
* Check if there's a cached version of the API request.
|
269 |
-
*
|
270 |
-
* @author Vova Feldman (@svovaf)
|
271 |
-
* @since 1.2.1
|
272 |
-
*
|
273 |
-
* @param string $path
|
274 |
-
* @param string $method
|
275 |
-
* @param array $params
|
276 |
-
*
|
277 |
-
* @return bool
|
278 |
-
*/
|
279 |
-
function is_cached( $path, $method = 'GET', $params = array() ) {
|
280 |
-
$cache_key = $this->get_cache_key( $path, $method, $params );
|
281 |
-
|
282 |
-
return self::$_cache->has_valid( $cache_key );
|
283 |
-
}
|
284 |
-
|
285 |
-
/**
|
286 |
-
* Invalidate a cached version of the API request.
|
287 |
-
*
|
288 |
-
* @author Vova Feldman (@svovaf)
|
289 |
-
* @since 1.2.1.5
|
290 |
-
*
|
291 |
-
* @param string $path
|
292 |
-
* @param string $method
|
293 |
-
* @param array $params
|
294 |
-
*/
|
295 |
-
function purge_cache( $path, $method = 'GET', $params = array() ) {
|
296 |
-
$this->_logger->entrance( "{$method}:{$path}" );
|
297 |
-
|
298 |
-
$cache_key = $this->get_cache_key( $path, $method, $params );
|
299 |
-
|
300 |
-
self::$_cache->purge( $cache_key );
|
301 |
-
}
|
302 |
-
|
303 |
-
/**
|
304 |
-
* @param string $path
|
305 |
-
* @param string $method
|
306 |
-
* @param array $params
|
307 |
-
*
|
308 |
-
* @return string
|
309 |
-
* @throws \Freemius_Exception
|
310 |
-
*/
|
311 |
-
private function get_cache_key( $path, $method = 'GET', $params = array() ) {
|
312 |
-
$canonized = $this->_api->CanonizePath( $path );
|
313 |
-
// $exploded = explode('/', $canonized);
|
314 |
-
// return $method . '_' . array_pop($exploded) . '_' . md5($canonized . json_encode($params));
|
315 |
-
return strtolower( $method . ':' . $canonized ) . ( ! empty( $params ) ? '#' . md5( json_encode( $params ) ) : '' );
|
316 |
-
}
|
317 |
-
|
318 |
-
/**
|
319 |
-
* Test API connectivity.
|
320 |
-
*
|
321 |
-
* @author Vova Feldman (@svovaf)
|
322 |
-
* @since 1.0.9 If fails, try to fallback to HTTP.
|
323 |
-
* @since 1.1.6 Added a 5-min caching mechanism, to prevent from overloading the server if the API if
|
324 |
-
* temporary down.
|
325 |
-
*
|
326 |
-
* @return bool True if successful connectivity to the API.
|
327 |
-
*/
|
328 |
-
static function test() {
|
329 |
-
self::_init();
|
330 |
-
|
331 |
-
$cache_key = 'ping_test';
|
332 |
-
|
333 |
-
$test = self::$_cache->get_valid( $cache_key, null );
|
334 |
-
|
335 |
-
if ( is_null( $test ) ) {
|
336 |
-
$test =
|
337 |
-
|
338 |
-
if ( false === $test &&
|
339 |
-
// Fallback to HTTP, since HTTPS fails.
|
340 |
-
|
341 |
-
|
342 |
-
self::$_options->set_option( 'api_force_http', true, true );
|
343 |
-
|
344 |
-
$test =
|
345 |
-
|
346 |
-
if ( false === $test ) {
|
347 |
-
/**
|
348 |
-
* API connectivity test fail also in HTTP request, therefore,
|
349 |
-
* fallback to HTTPS to keep connection secure.
|
350 |
-
*
|
351 |
-
* @since 1.1.6
|
352 |
-
*/
|
353 |
-
self::$_options->set_option( 'api_force_http', false, true );
|
354 |
-
}
|
355 |
-
}
|
356 |
-
|
357 |
-
self::$_cache->set( $cache_key, $test, WP_FS__TIME_5_MIN_IN_SEC );
|
358 |
-
}
|
359 |
-
|
360 |
-
return $test;
|
361 |
-
}
|
362 |
-
|
363 |
-
/**
|
364 |
-
* Check if API is temporary down.
|
365 |
-
*
|
366 |
-
* @author Vova Feldman (@svovaf)
|
367 |
-
* @since 1.1.6
|
368 |
-
*
|
369 |
-
* @return bool
|
370 |
-
*/
|
371 |
-
static function is_temporary_down() {
|
372 |
-
self::_init();
|
373 |
-
|
374 |
-
$test = self::$_cache->get_valid( 'ping_test', null );
|
375 |
-
|
376 |
-
return ( false === $test );
|
377 |
-
}
|
378 |
-
|
379 |
-
/**
|
380 |
-
* @author Vova Feldman (@svovaf)
|
381 |
-
* @since 1.1.6
|
382 |
-
*
|
383 |
-
* @return object
|
384 |
-
*/
|
385 |
-
private function get_temporary_unavailable_error() {
|
386 |
-
return (object) array(
|
387 |
-
'error' => (object) array(
|
388 |
-
'type' => 'TemporaryUnavailable',
|
389 |
-
'message' => 'API is temporary unavailable, please retry in ' . ( self::$_cache->get_record_expiration( 'ping_test' ) - WP_FS__SCRIPT_START_TIME ) . ' sec.',
|
390 |
-
'code' => 'temporary_unavailable',
|
391 |
-
'http' => 503
|
392 |
-
)
|
393 |
-
);
|
394 |
-
}
|
395 |
-
|
396 |
-
/**
|
397 |
-
* Ping API for connectivity test, and return result object.
|
398 |
-
*
|
399 |
-
* @author Vova Feldman (@svovaf)
|
400 |
-
* @since 1.0.9
|
401 |
-
*
|
402 |
-
* @param null|string $unique_anonymous_id
|
403 |
-
* @param array $params
|
404 |
-
*
|
405 |
-
* @return object
|
406 |
-
*/
|
407 |
-
function ping( $unique_anonymous_id = null, $params = array() ) {
|
408 |
-
$this->_logger->entrance();
|
409 |
-
|
410 |
-
if ( self::is_temporary_down() ) {
|
411 |
-
return $this->get_temporary_unavailable_error();
|
412 |
-
}
|
413 |
-
|
414 |
-
$pong = is_null( $unique_anonymous_id ) ?
|
415 |
-
|
416 |
-
$this->_call( 'ping.json?' . http_build_query( array_merge(
|
417 |
-
array( 'uid' => $unique_anonymous_id ),
|
418 |
-
$params
|
419 |
-
) ) );
|
420 |
-
|
421 |
-
if ( $this->is_valid_ping( $pong ) ) {
|
422 |
-
return $pong;
|
423 |
-
}
|
424 |
-
|
425 |
-
if ( self::should_try_with_http( $pong ) ) {
|
426 |
-
// Fallback to HTTP, since HTTPS fails.
|
427 |
-
|
428 |
-
|
429 |
-
self::$_options->set_option( 'api_force_http', true, true );
|
430 |
-
|
431 |
-
$pong = is_null( $unique_anonymous_id ) ?
|
432 |
-
|
433 |
-
$this->_call( 'ping.json?' . http_build_query( array_merge(
|
434 |
-
array( 'uid' => $unique_anonymous_id ),
|
435 |
-
$params
|
436 |
-
) ) );
|
437 |
-
|
438 |
-
if ( ! $this->is_valid_ping( $pong ) ) {
|
439 |
-
self::$_options->set_option( 'api_force_http', false, true );
|
440 |
-
}
|
441 |
-
}
|
442 |
-
|
443 |
-
return $pong;
|
444 |
-
}
|
445 |
-
|
446 |
-
/**
|
447 |
-
* Check if based on the API result we should try
|
448 |
-
* to re-run the same request with HTTP instead of HTTPS.
|
449 |
-
*
|
450 |
-
* @author Vova Feldman (@svovaf)
|
451 |
-
* @since 1.1.6
|
452 |
-
*
|
453 |
-
* @param $result
|
454 |
-
*
|
455 |
-
* @return bool
|
456 |
-
*/
|
457 |
-
private static function should_try_with_http( $result ) {
|
458 |
-
if ( !
|
459 |
-
return false;
|
460 |
-
}
|
461 |
-
|
462 |
-
return ( ! is_object( $result ) ||
|
463 |
-
! isset( $result->error ) ||
|
464 |
-
! isset( $result->error->code ) ||
|
465 |
-
! in_array( $result->error->code, array(
|
466 |
-
'curl_missing',
|
467 |
-
'cloudflare_ddos_protection',
|
468 |
-
'maintenance_mode',
|
469 |
-
'squid_cache_block',
|
470 |
-
'too_many_requests',
|
471 |
-
) ) );
|
472 |
-
|
473 |
-
}
|
474 |
-
|
475 |
-
/**
|
476 |
-
* Check if valid ping request result.
|
477 |
-
*
|
478 |
-
* @author Vova Feldman (@svovaf)
|
479 |
-
* @since 1.1.1
|
480 |
-
*
|
481 |
-
* @param mixed $pong
|
482 |
-
*
|
483 |
-
* @return bool
|
484 |
-
*/
|
485 |
-
function is_valid_ping( $pong ) {
|
486 |
-
return
|
487 |
-
}
|
488 |
-
|
489 |
-
function get_url( $path = '' ) {
|
490 |
-
return
|
491 |
-
}
|
492 |
-
|
493 |
-
/**
|
494 |
-
* Clear API cache.
|
495 |
-
*
|
496 |
-
* @author Vova Feldman (@svovaf)
|
497 |
-
* @since 1.0.9
|
498 |
-
*/
|
499 |
-
static function clear_cache() {
|
500 |
-
self::_init();
|
501 |
-
|
502 |
-
self::$_cache = FS_Cache_Manager::get_manager( WP_FS__API_CACHE_OPTION_NAME );
|
503 |
-
self::$_cache->clear();
|
504 |
-
}
|
505 |
-
|
506 |
-
#----------------------------------------------------------------------------------
|
507 |
-
#region Error Handling
|
508 |
-
#----------------------------------------------------------------------------------
|
509 |
-
|
510 |
-
/**
|
511 |
-
* @author Vova Feldman (@svovaf)
|
512 |
-
* @since 1.2.1.5
|
513 |
-
*
|
514 |
-
* @param mixed $result
|
515 |
-
*
|
516 |
-
* @return bool Is API result contains an error.
|
517 |
-
*/
|
518 |
-
static function is_api_error( $result ) {
|
519 |
-
return ( is_object( $result ) && isset( $result->error ) ) ||
|
520 |
-
is_string( $result );
|
521 |
-
}
|
522 |
-
|
523 |
-
/**
|
524 |
-
* Checks if given API result is a non-empty and not an error object.
|
525 |
-
*
|
526 |
-
* @author Vova Feldman (@svovaf)
|
527 |
-
* @since 1.2.1.5
|
528 |
-
*
|
529 |
-
* @param mixed $result
|
530 |
-
* @param string|null $required_property Optional property we want to verify that is set.
|
531 |
-
*
|
532 |
-
* @return bool
|
533 |
-
*/
|
534 |
-
static function is_api_result_object( $result, $required_property = null ) {
|
535 |
-
return (
|
536 |
-
is_object( $result ) &&
|
537 |
-
! isset( $result->error ) &&
|
538 |
-
( empty( $required_property ) || isset( $result->{$required_property} ) )
|
539 |
-
);
|
540 |
-
}
|
541 |
-
|
542 |
-
/**
|
543 |
-
* Checks if given API result is a non-empty entity object with non-empty ID.
|
544 |
-
*
|
545 |
-
* @author Vova Feldman (@svovaf)
|
546 |
-
* @since 1.2.1.5
|
547 |
-
*
|
548 |
-
* @param mixed $result
|
549 |
-
*
|
550 |
-
* @return bool
|
551 |
-
*/
|
552 |
-
static function is_api_result_entity( $result ) {
|
553 |
-
return self::is_api_result_object( $result, 'id' ) &&
|
554 |
-
FS_Entity::is_valid_id( $result->id );
|
555 |
-
}
|
556 |
-
|
557 |
-
#endregion
|
558 |
}
|
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 |
+
/**
|
14 |
+
* Class FS_Api
|
15 |
+
*
|
16 |
+
* Wraps Freemius API SDK to handle:
|
17 |
+
* 1. Clock sync.
|
18 |
+
* 2. Fallback to HTTP when HTTPS fails.
|
19 |
+
* 3. Adds caching layer to GET requests.
|
20 |
+
* 4. Adds consistency for failed requests by using last cached version.
|
21 |
+
*/
|
22 |
+
class FS_Api {
|
23 |
+
/**
|
24 |
+
* @var FS_Api[]
|
25 |
+
*/
|
26 |
+
private static $_instances = array();
|
27 |
+
|
28 |
+
/**
|
29 |
+
* @var FS_Option_Manager Freemius options, options-manager.
|
30 |
+
*/
|
31 |
+
private static $_options;
|
32 |
+
|
33 |
+
/**
|
34 |
+
* @var FS_Cache_Manager API Caching layer
|
35 |
+
*/
|
36 |
+
private static $_cache;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @var int Clock diff in seconds between current server to API server.
|
40 |
+
*/
|
41 |
+
private static $_clock_diff;
|
42 |
+
|
43 |
+
/**
|
44 |
+
* @var Freemius_Api_WordPress
|
45 |
+
*/
|
46 |
+
private $_api;
|
47 |
+
|
48 |
+
/**
|
49 |
+
* @var string
|
50 |
+
*/
|
51 |
+
private $_slug;
|
52 |
+
|
53 |
+
/**
|
54 |
+
* @var FS_Logger
|
55 |
+
* @since 1.0.4
|
56 |
+
*/
|
57 |
+
private $_logger;
|
58 |
+
|
59 |
+
/**
|
60 |
+
* @param string $slug
|
61 |
+
* @param string $scope 'app', 'developer', 'user' or 'install'.
|
62 |
+
* @param number $id Element's id.
|
63 |
+
* @param string $public_key Public key.
|
64 |
+
* @param bool $is_sandbox
|
65 |
+
* @param bool|string $secret_key Element's secret key.
|
66 |
+
*
|
67 |
+
* @return FS_Api
|
68 |
+
*/
|
69 |
+
static function instance( $slug, $scope, $id, $public_key, $is_sandbox, $secret_key = false ) {
|
70 |
+
$identifier = md5( $slug . $scope . $id . $public_key . ( is_string( $secret_key ) ? $secret_key : '' ) . json_encode( $is_sandbox ) );
|
71 |
+
|
72 |
+
if ( ! isset( self::$_instances[ $identifier ] ) ) {
|
73 |
+
self::_init();
|
74 |
+
|
75 |
+
self::$_instances[ $identifier ] = new FS_Api( $slug, $scope, $id, $public_key, $secret_key, $is_sandbox );
|
76 |
+
}
|
77 |
+
|
78 |
+
return self::$_instances[ $identifier ];
|
79 |
+
}
|
80 |
+
|
81 |
+
private static function _init() {
|
82 |
+
if ( isset( self::$_options ) ) {
|
83 |
+
return;
|
84 |
+
}
|
85 |
+
|
86 |
+
if ( ! class_exists( 'Freemius_Api_WordPress' ) ) {
|
87 |
+
require_once WP_FS__DIR_SDK . '/FreemiusWordPress.php';
|
88 |
+
}
|
89 |
+
|
90 |
+
self::$_options = FS_Option_Manager::get_manager( WP_FS__OPTIONS_OPTION_NAME, true );
|
91 |
+
self::$_cache = FS_Cache_Manager::get_manager( WP_FS__API_CACHE_OPTION_NAME );
|
92 |
+
|
93 |
+
self::$_clock_diff = self::$_options->get_option( 'api_clock_diff', 0 );
|
94 |
+
Freemius_Api_WordPress::SetClockDiff( self::$_clock_diff );
|
95 |
+
|
96 |
+
if ( self::$_options->get_option( 'api_force_http', false ) ) {
|
97 |
+
Freemius_Api_WordPress::SetHttp();
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
/**
|
102 |
+
* @param string $slug
|
103 |
+
* @param string $scope 'app', 'developer', 'user' or 'install'.
|
104 |
+
* @param number $id Element's id.
|
105 |
+
* @param string $public_key Public key.
|
106 |
+
* @param bool|string $secret_key Element's secret key.
|
107 |
+
* @param bool $is_sandbox
|
108 |
+
*/
|
109 |
+
private function __construct( $slug, $scope, $id, $public_key, $secret_key, $is_sandbox ) {
|
110 |
+
$this->_api = new Freemius_Api_WordPress( $scope, $id, $public_key, $secret_key, $is_sandbox );
|
111 |
+
|
112 |
+
$this->_slug = $slug;
|
113 |
+
$this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $slug . '_api', WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
|
114 |
+
}
|
115 |
+
|
116 |
+
/**
|
117 |
+
* Find clock diff between server and API server, and store the diff locally.
|
118 |
+
*
|
119 |
+
* @param bool|int $diff
|
120 |
+
*
|
121 |
+
* @return bool|int False if clock diff didn't change, otherwise returns the clock diff in seconds.
|
122 |
+
*/
|
123 |
+
private function _sync_clock_diff( $diff = false ) {
|
124 |
+
$this->_logger->entrance();
|
125 |
+
|
126 |
+
// Sync clock and store.
|
127 |
+
$new_clock_diff = ( false === $diff ) ?
|
128 |
+
Freemius_Api_WordPress::FindClockDiff() :
|
129 |
+
$diff;
|
130 |
+
|
131 |
+
if ( $new_clock_diff === self::$_clock_diff ) {
|
132 |
+
return false;
|
133 |
+
}
|
134 |
+
|
135 |
+
self::$_clock_diff = $new_clock_diff;
|
136 |
+
|
137 |
+
// Update API clock's diff.
|
138 |
+
Freemius_Api_WordPress::SetClockDiff( self::$_clock_diff );
|
139 |
+
|
140 |
+
// Store new clock diff in storage.
|
141 |
+
self::$_options->set_option( 'api_clock_diff', self::$_clock_diff, true );
|
142 |
+
|
143 |
+
return $new_clock_diff;
|
144 |
+
}
|
145 |
+
|
146 |
+
/**
|
147 |
+
* Override API call to enable retry with servers' clock auto sync method.
|
148 |
+
*
|
149 |
+
* @param string $path
|
150 |
+
* @param string $method
|
151 |
+
* @param array $params
|
152 |
+
* @param bool $retry Is in retry or first call attempt.
|
153 |
+
*
|
154 |
+
* @return array|mixed|string|void
|
155 |
+
*/
|
156 |
+
private function _call( $path, $method = 'GET', $params = array(), $retry = false ) {
|
157 |
+
$this->_logger->entrance( $method . ':' . $path );
|
158 |
+
|
159 |
+
if ( self::is_temporary_down() ) {
|
160 |
+
$result = $this->get_temporary_unavailable_error();
|
161 |
+
} else {
|
162 |
+
$result = $this->_api->Api( $path, $method, $params );
|
163 |
+
|
164 |
+
if ( null !== $result &&
|
165 |
+
isset( $result->error ) &&
|
166 |
+
isset( $result->error->code ) &&
|
167 |
+
'request_expired' === $result->error->code
|
168 |
+
) {
|
169 |
+
if ( ! $retry ) {
|
170 |
+
$diff = isset( $result->error->timestamp ) ?
|
171 |
+
( time() - strtotime( $result->error->timestamp ) ) :
|
172 |
+
false;
|
173 |
+
|
174 |
+
// Try to sync clock diff.
|
175 |
+
if ( false !== $this->_sync_clock_diff( $diff ) ) {
|
176 |
+
// Retry call with new synced clock.
|
177 |
+
return $this->_call( $path, $method, $params, true );
|
178 |
+
}
|
179 |
+
}
|
180 |
+
}
|
181 |
+
}
|
182 |
+
|
183 |
+
if ( $this->_logger->is_on() && self::is_api_error( $result ) ) {
|
184 |
+
// Log API errors.
|
185 |
+
$this->_logger->api_error( $result );
|
186 |
+
}
|
187 |
+
|
188 |
+
return $result;
|
189 |
+
}
|
190 |
+
|
191 |
+
/**
|
192 |
+
* Override API call to wrap it in servers' clock sync method.
|
193 |
+
*
|
194 |
+
* @param string $path
|
195 |
+
* @param string $method
|
196 |
+
* @param array $params
|
197 |
+
*
|
198 |
+
* @return array|mixed|string|void
|
199 |
+
* @throws Freemius_Exception
|
200 |
+
*/
|
201 |
+
function call( $path, $method = 'GET', $params = array() ) {
|
202 |
+
return $this->_call( $path, $method, $params );
|
203 |
+
}
|
204 |
+
|
205 |
+
/**
|
206 |
+
* Get API request URL signed via query string.
|
207 |
+
*
|
208 |
+
* @param string $path
|
209 |
+
*
|
210 |
+
* @return string
|
211 |
+
*/
|
212 |
+
function get_signed_url( $path ) {
|
213 |
+
return $this->_api->GetSignedUrl( $path );
|
214 |
+
}
|
215 |
+
|
216 |
+
/**
|
217 |
+
* @param string $path
|
218 |
+
* @param bool $flush
|
219 |
+
* @param int $expiration (optional) Time until expiration in seconds from now, defaults to 24 hours
|
220 |
+
*
|
221 |
+
* @return stdClass|mixed
|
222 |
+
*/
|
223 |
+
function get( $path = '/', $flush = false, $expiration = WP_FS__TIME_24_HOURS_IN_SEC ) {
|
224 |
+
$this->_logger->entrance( $path );
|
225 |
+
|
226 |
+
$cache_key = $this->get_cache_key( $path );
|
227 |
+
|
228 |
+
// Always flush during development.
|
229 |
+
if ( WP_FS__DEV_MODE || $this->_api->IsSandbox() ) {
|
230 |
+
$flush = true;
|
231 |
+
}
|
232 |
+
|
233 |
+
$cached_result = self::$_cache->get( $cache_key );
|
234 |
+
|
235 |
+
if ( $flush || ! self::$_cache->has_valid( $cache_key, $expiration ) ) {
|
236 |
+
$result = $this->call( $path );
|
237 |
+
|
238 |
+
if ( ! is_object( $result ) || isset( $result->error ) ) {
|
239 |
+
// Api returned an error.
|
240 |
+
if ( is_object( $cached_result ) &&
|
241 |
+
! isset( $cached_result )
|
242 |
+
) {
|
243 |
+
// If there was an error during a newer data fetch,
|
244 |
+
// fallback to older data version.
|
245 |
+
$result = $cached_result;
|
246 |
+
|
247 |
+
if ( $this->_logger->is_on() ) {
|
248 |
+
$this->_logger->warn( 'Fallback to cached API result: ' . var_export( $cached_result, true ) );
|
249 |
+
}
|
250 |
+
} else {
|
251 |
+
// If no older data version, return result without
|
252 |
+
// caching the error.
|
253 |
+
return $result;
|
254 |
+
}
|
255 |
+
}
|
256 |
+
|
257 |
+
self::$_cache->set( $cache_key, $result, $expiration );
|
258 |
+
|
259 |
+
$cached_result = $result;
|
260 |
+
} else {
|
261 |
+
$this->_logger->log( 'Using cached API result.' );
|
262 |
+
}
|
263 |
+
|
264 |
+
return $cached_result;
|
265 |
+
}
|
266 |
+
|
267 |
+
/**
|
268 |
+
* Check if there's a cached version of the API request.
|
269 |
+
*
|
270 |
+
* @author Vova Feldman (@svovaf)
|
271 |
+
* @since 1.2.1
|
272 |
+
*
|
273 |
+
* @param string $path
|
274 |
+
* @param string $method
|
275 |
+
* @param array $params
|
276 |
+
*
|
277 |
+
* @return bool
|
278 |
+
*/
|
279 |
+
function is_cached( $path, $method = 'GET', $params = array() ) {
|
280 |
+
$cache_key = $this->get_cache_key( $path, $method, $params );
|
281 |
+
|
282 |
+
return self::$_cache->has_valid( $cache_key );
|
283 |
+
}
|
284 |
+
|
285 |
+
/**
|
286 |
+
* Invalidate a cached version of the API request.
|
287 |
+
*
|
288 |
+
* @author Vova Feldman (@svovaf)
|
289 |
+
* @since 1.2.1.5
|
290 |
+
*
|
291 |
+
* @param string $path
|
292 |
+
* @param string $method
|
293 |
+
* @param array $params
|
294 |
+
*/
|
295 |
+
function purge_cache( $path, $method = 'GET', $params = array() ) {
|
296 |
+
$this->_logger->entrance( "{$method}:{$path}" );
|
297 |
+
|
298 |
+
$cache_key = $this->get_cache_key( $path, $method, $params );
|
299 |
+
|
300 |
+
self::$_cache->purge( $cache_key );
|
301 |
+
}
|
302 |
+
|
303 |
+
/**
|
304 |
+
* @param string $path
|
305 |
+
* @param string $method
|
306 |
+
* @param array $params
|
307 |
+
*
|
308 |
+
* @return string
|
309 |
+
* @throws \Freemius_Exception
|
310 |
+
*/
|
311 |
+
private function get_cache_key( $path, $method = 'GET', $params = array() ) {
|
312 |
+
$canonized = $this->_api->CanonizePath( $path );
|
313 |
+
// $exploded = explode('/', $canonized);
|
314 |
+
// return $method . '_' . array_pop($exploded) . '_' . md5($canonized . json_encode($params));
|
315 |
+
return strtolower( $method . ':' . $canonized ) . ( ! empty( $params ) ? '#' . md5( json_encode( $params ) ) : '' );
|
316 |
+
}
|
317 |
+
|
318 |
+
/**
|
319 |
+
* Test API connectivity.
|
320 |
+
*
|
321 |
+
* @author Vova Feldman (@svovaf)
|
322 |
+
* @since 1.0.9 If fails, try to fallback to HTTP.
|
323 |
+
* @since 1.1.6 Added a 5-min caching mechanism, to prevent from overloading the server if the API if
|
324 |
+
* temporary down.
|
325 |
+
*
|
326 |
+
* @return bool True if successful connectivity to the API.
|
327 |
+
*/
|
328 |
+
static function test() {
|
329 |
+
self::_init();
|
330 |
+
|
331 |
+
$cache_key = 'ping_test';
|
332 |
+
|
333 |
+
$test = self::$_cache->get_valid( $cache_key, null );
|
334 |
+
|
335 |
+
if ( is_null( $test ) ) {
|
336 |
+
$test = Freemius_Api_WordPress::Test();
|
337 |
+
|
338 |
+
if ( false === $test && Freemius_Api_WordPress::IsHttps() ) {
|
339 |
+
// Fallback to HTTP, since HTTPS fails.
|
340 |
+
Freemius_Api_WordPress::SetHttp();
|
341 |
+
|
342 |
+
self::$_options->set_option( 'api_force_http', true, true );
|
343 |
+
|
344 |
+
$test = Freemius_Api_WordPress::Test();
|
345 |
+
|
346 |
+
if ( false === $test ) {
|
347 |
+
/**
|
348 |
+
* API connectivity test fail also in HTTP request, therefore,
|
349 |
+
* fallback to HTTPS to keep connection secure.
|
350 |
+
*
|
351 |
+
* @since 1.1.6
|
352 |
+
*/
|
353 |
+
self::$_options->set_option( 'api_force_http', false, true );
|
354 |
+
}
|
355 |
+
}
|
356 |
+
|
357 |
+
self::$_cache->set( $cache_key, $test, WP_FS__TIME_5_MIN_IN_SEC );
|
358 |
+
}
|
359 |
+
|
360 |
+
return $test;
|
361 |
+
}
|
362 |
+
|
363 |
+
/**
|
364 |
+
* Check if API is temporary down.
|
365 |
+
*
|
366 |
+
* @author Vova Feldman (@svovaf)
|
367 |
+
* @since 1.1.6
|
368 |
+
*
|
369 |
+
* @return bool
|
370 |
+
*/
|
371 |
+
static function is_temporary_down() {
|
372 |
+
self::_init();
|
373 |
+
|
374 |
+
$test = self::$_cache->get_valid( 'ping_test', null );
|
375 |
+
|
376 |
+
return ( false === $test );
|
377 |
+
}
|
378 |
+
|
379 |
+
/**
|
380 |
+
* @author Vova Feldman (@svovaf)
|
381 |
+
* @since 1.1.6
|
382 |
+
*
|
383 |
+
* @return object
|
384 |
+
*/
|
385 |
+
private function get_temporary_unavailable_error() {
|
386 |
+
return (object) array(
|
387 |
+
'error' => (object) array(
|
388 |
+
'type' => 'TemporaryUnavailable',
|
389 |
+
'message' => 'API is temporary unavailable, please retry in ' . ( self::$_cache->get_record_expiration( 'ping_test' ) - WP_FS__SCRIPT_START_TIME ) . ' sec.',
|
390 |
+
'code' => 'temporary_unavailable',
|
391 |
+
'http' => 503
|
392 |
+
)
|
393 |
+
);
|
394 |
+
}
|
395 |
+
|
396 |
+
/**
|
397 |
+
* Ping API for connectivity test, and return result object.
|
398 |
+
*
|
399 |
+
* @author Vova Feldman (@svovaf)
|
400 |
+
* @since 1.0.9
|
401 |
+
*
|
402 |
+
* @param null|string $unique_anonymous_id
|
403 |
+
* @param array $params
|
404 |
+
*
|
405 |
+
* @return object
|
406 |
+
*/
|
407 |
+
function ping( $unique_anonymous_id = null, $params = array() ) {
|
408 |
+
$this->_logger->entrance();
|
409 |
+
|
410 |
+
if ( self::is_temporary_down() ) {
|
411 |
+
return $this->get_temporary_unavailable_error();
|
412 |
+
}
|
413 |
+
|
414 |
+
$pong = is_null( $unique_anonymous_id ) ?
|
415 |
+
Freemius_Api_WordPress::Ping() :
|
416 |
+
$this->_call( 'ping.json?' . http_build_query( array_merge(
|
417 |
+
array( 'uid' => $unique_anonymous_id ),
|
418 |
+
$params
|
419 |
+
) ) );
|
420 |
+
|
421 |
+
if ( $this->is_valid_ping( $pong ) ) {
|
422 |
+
return $pong;
|
423 |
+
}
|
424 |
+
|
425 |
+
if ( self::should_try_with_http( $pong ) ) {
|
426 |
+
// Fallback to HTTP, since HTTPS fails.
|
427 |
+
Freemius_Api_WordPress::SetHttp();
|
428 |
+
|
429 |
+
self::$_options->set_option( 'api_force_http', true, true );
|
430 |
+
|
431 |
+
$pong = is_null( $unique_anonymous_id ) ?
|
432 |
+
Freemius_Api_WordPress::Ping() :
|
433 |
+
$this->_call( 'ping.json?' . http_build_query( array_merge(
|
434 |
+
array( 'uid' => $unique_anonymous_id ),
|
435 |
+
$params
|
436 |
+
) ) );
|
437 |
+
|
438 |
+
if ( ! $this->is_valid_ping( $pong ) ) {
|
439 |
+
self::$_options->set_option( 'api_force_http', false, true );
|
440 |
+
}
|
441 |
+
}
|
442 |
+
|
443 |
+
return $pong;
|
444 |
+
}
|
445 |
+
|
446 |
+
/**
|
447 |
+
* Check if based on the API result we should try
|
448 |
+
* to re-run the same request with HTTP instead of HTTPS.
|
449 |
+
*
|
450 |
+
* @author Vova Feldman (@svovaf)
|
451 |
+
* @since 1.1.6
|
452 |
+
*
|
453 |
+
* @param $result
|
454 |
+
*
|
455 |
+
* @return bool
|
456 |
+
*/
|
457 |
+
private static function should_try_with_http( $result ) {
|
458 |
+
if ( ! Freemius_Api_WordPress::IsHttps() ) {
|
459 |
+
return false;
|
460 |
+
}
|
461 |
+
|
462 |
+
return ( ! is_object( $result ) ||
|
463 |
+
! isset( $result->error ) ||
|
464 |
+
! isset( $result->error->code ) ||
|
465 |
+
! in_array( $result->error->code, array(
|
466 |
+
'curl_missing',
|
467 |
+
'cloudflare_ddos_protection',
|
468 |
+
'maintenance_mode',
|
469 |
+
'squid_cache_block',
|
470 |
+
'too_many_requests',
|
471 |
+
) ) );
|
472 |
+
|
473 |
+
}
|
474 |
+
|
475 |
+
/**
|
476 |
+
* Check if valid ping request result.
|
477 |
+
*
|
478 |
+
* @author Vova Feldman (@svovaf)
|
479 |
+
* @since 1.1.1
|
480 |
+
*
|
481 |
+
* @param mixed $pong
|
482 |
+
*
|
483 |
+
* @return bool
|
484 |
+
*/
|
485 |
+
function is_valid_ping( $pong ) {
|
486 |
+
return Freemius_Api_WordPress::Test( $pong );
|
487 |
+
}
|
488 |
+
|
489 |
+
function get_url( $path = '' ) {
|
490 |
+
return Freemius_Api_WordPress::GetUrl( $path, $this->_api->IsSandbox() );
|
491 |
+
}
|
492 |
+
|
493 |
+
/**
|
494 |
+
* Clear API cache.
|
495 |
+
*
|
496 |
+
* @author Vova Feldman (@svovaf)
|
497 |
+
* @since 1.0.9
|
498 |
+
*/
|
499 |
+
static function clear_cache() {
|
500 |
+
self::_init();
|
501 |
+
|
502 |
+
self::$_cache = FS_Cache_Manager::get_manager( WP_FS__API_CACHE_OPTION_NAME );
|
503 |
+
self::$_cache->clear();
|
504 |
+
}
|
505 |
+
|
506 |
+
#----------------------------------------------------------------------------------
|
507 |
+
#region Error Handling
|
508 |
+
#----------------------------------------------------------------------------------
|
509 |
+
|
510 |
+
/**
|
511 |
+
* @author Vova Feldman (@svovaf)
|
512 |
+
* @since 1.2.1.5
|
513 |
+
*
|
514 |
+
* @param mixed $result
|
515 |
+
*
|
516 |
+
* @return bool Is API result contains an error.
|
517 |
+
*/
|
518 |
+
static function is_api_error( $result ) {
|
519 |
+
return ( is_object( $result ) && isset( $result->error ) ) ||
|
520 |
+
is_string( $result );
|
521 |
+
}
|
522 |
+
|
523 |
+
/**
|
524 |
+
* Checks if given API result is a non-empty and not an error object.
|
525 |
+
*
|
526 |
+
* @author Vova Feldman (@svovaf)
|
527 |
+
* @since 1.2.1.5
|
528 |
+
*
|
529 |
+
* @param mixed $result
|
530 |
+
* @param string|null $required_property Optional property we want to verify that is set.
|
531 |
+
*
|
532 |
+
* @return bool
|
533 |
+
*/
|
534 |
+
static function is_api_result_object( $result, $required_property = null ) {
|
535 |
+
return (
|
536 |
+
is_object( $result ) &&
|
537 |
+
! isset( $result->error ) &&
|
538 |
+
( empty( $required_property ) || isset( $result->{$required_property} ) )
|
539 |
+
);
|
540 |
+
}
|
541 |
+
|
542 |
+
/**
|
543 |
+
* Checks if given API result is a non-empty entity object with non-empty ID.
|
544 |
+
*
|
545 |
+
* @author Vova Feldman (@svovaf)
|
546 |
+
* @since 1.2.1.5
|
547 |
+
*
|
548 |
+
* @param mixed $result
|
549 |
+
*
|
550 |
+
* @return bool
|
551 |
+
*/
|
552 |
+
static function is_api_result_entity( $result ) {
|
553 |
+
return self::is_api_result_object( $result, 'id' ) &&
|
554 |
+
FS_Entity::is_valid_id( $result->id );
|
555 |
+
}
|
556 |
+
|
557 |
+
#endregion
|
558 |
}
|
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
|
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-plugin-updater.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.4
|
7 |
*
|
8 |
* @link https://github.com/easydigitaldownloads/EDD-License-handler/blob/master/EDD_SL_Plugin_Updater.php
|
@@ -57,6 +57,11 @@
|
|
57 |
'pre_set_site_transient_update_plugins_filter'
|
58 |
) );
|
59 |
|
|
|
|
|
|
|
|
|
|
|
60 |
if ( ! $this->_fs->has_active_valid_license() ) {
|
61 |
/**
|
62 |
* If user has the premium plugin's code but do NOT have an active license,
|
@@ -173,6 +178,24 @@
|
|
173 |
function pre_set_site_transient_update_plugins_filter( $transient_data ) {
|
174 |
$this->_logger->entrance();
|
175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
if ( empty( $transient_data ) ||
|
177 |
defined( 'WP_FS__UNINSTALL_MODE' )
|
178 |
) {
|
@@ -181,7 +204,11 @@
|
|
181 |
|
182 |
if ( ! isset( $this->_update_details ) ) {
|
183 |
// Get plugin's newest update.
|
184 |
-
$new_version = $this->_fs->get_update(
|
|
|
|
|
|
|
|
|
185 |
|
186 |
$this->_update_details = false;
|
187 |
|
@@ -193,7 +220,7 @@
|
|
193 |
$plugin_details->new_version = $new_version->version;
|
194 |
$plugin_details->url = WP_FS__ADDRESS;
|
195 |
$plugin_details->package = $new_version->url;
|
196 |
-
$plugin_details->
|
197 |
|
198 |
/**
|
199 |
* Cache plugin details locally since set_site_transient( 'update_plugins' )
|
@@ -208,7 +235,11 @@
|
|
208 |
|
209 |
if ( is_object( $this->_update_details ) ) {
|
210 |
// Add plugin to transient data.
|
211 |
-
|
|
|
|
|
|
|
|
|
212 |
}
|
213 |
|
214 |
return $transient_data;
|
@@ -521,7 +552,7 @@ if ( !isset($info->error) ) {
|
|
521 |
|
522 |
$skin_args = array(
|
523 |
'type' => 'web',
|
524 |
-
'title' => sprintf(
|
525 |
'url' => esc_url_raw( $install_url ),
|
526 |
'nonce' => 'install-plugin_' . $slug,
|
527 |
'plugin' => '',
|
@@ -562,7 +593,7 @@ if ( !isset($info->error) ) {
|
|
562 |
global $wp_filesystem;
|
563 |
|
564 |
$error_code = 'unable_to_connect_to_filesystem';
|
565 |
-
$error_message =
|
566 |
|
567 |
// Pass through the error from WP_Filesystem if one was raised.
|
568 |
if ( $wp_filesystem instanceof WP_Filesystem_Base &&
|
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 |
* @link https://github.com/easydigitaldownloads/EDD-License-handler/blob/master/EDD_SL_Plugin_Updater.php
|
57 |
'pre_set_site_transient_update_plugins_filter'
|
58 |
) );
|
59 |
|
60 |
+
add_filter( 'pre_set_site_transient_update_themes', array(
|
61 |
+
&$this,
|
62 |
+
'pre_set_site_transient_update_plugins_filter'
|
63 |
+
) );
|
64 |
+
|
65 |
if ( ! $this->_fs->has_active_valid_license() ) {
|
66 |
/**
|
67 |
* If user has the premium plugin's code but do NOT have an active license,
|
178 |
function pre_set_site_transient_update_plugins_filter( $transient_data ) {
|
179 |
$this->_logger->entrance();
|
180 |
|
181 |
+
/**
|
182 |
+
* "plugins" or "themes".
|
183 |
+
*
|
184 |
+
* @author Leo Fajardo (@leorw)
|
185 |
+
* @since 1.2.2
|
186 |
+
*/
|
187 |
+
$module_type = $this->_fs->get_module_type() . 's';
|
188 |
+
|
189 |
+
/**
|
190 |
+
* Ensure that we don't mix plugins update info with themes update info.
|
191 |
+
*
|
192 |
+
* @author Leo Fajardo (@leorw)
|
193 |
+
* @since 1.2.2
|
194 |
+
*/
|
195 |
+
if ( "pre_set_site_transient_update_{$module_type}" !== current_filter() ) {
|
196 |
+
return $transient_data;
|
197 |
+
}
|
198 |
+
|
199 |
if ( empty( $transient_data ) ||
|
200 |
defined( 'WP_FS__UNINSTALL_MODE' )
|
201 |
) {
|
204 |
|
205 |
if ( ! isset( $this->_update_details ) ) {
|
206 |
// Get plugin's newest update.
|
207 |
+
$new_version = $this->_fs->get_update(
|
208 |
+
false,
|
209 |
+
fs_request_get_bool( 'force-check' ),
|
210 |
+
WP_FS__TIME_24_HOURS_IN_SEC / 24
|
211 |
+
);
|
212 |
|
213 |
$this->_update_details = false;
|
214 |
|
220 |
$plugin_details->new_version = $new_version->version;
|
221 |
$plugin_details->url = WP_FS__ADDRESS;
|
222 |
$plugin_details->package = $new_version->url;
|
223 |
+
$plugin_details->{ $this->_fs->get_module_type() } = $this->_fs->get_plugin_basename();
|
224 |
|
225 |
/**
|
226 |
* Cache plugin details locally since set_site_transient( 'update_plugins' )
|
235 |
|
236 |
if ( is_object( $this->_update_details ) ) {
|
237 |
// Add plugin to transient data.
|
238 |
+
if ( $this->_fs->is_plugin() ) {
|
239 |
+
$transient_data->response[ $this->_fs->get_plugin_basename() ] = $this->_update_details;
|
240 |
+
} else {
|
241 |
+
$transient_data->response[ $this->_update_details->theme ] = (array) $this->_update_details;
|
242 |
+
}
|
243 |
}
|
244 |
|
245 |
return $transient_data;
|
552 |
|
553 |
$skin_args = array(
|
554 |
'type' => 'web',
|
555 |
+
'title' => sprintf( $this->_fs->get_text( 'installing-plugin-x' ), $title ),
|
556 |
'url' => esc_url_raw( $install_url ),
|
557 |
'nonce' => 'install-plugin_' . $slug,
|
558 |
'plugin' => '',
|
593 |
global $wp_filesystem;
|
594 |
|
595 |
$error_code = 'unable_to_connect_to_filesystem';
|
596 |
+
$error_message = $this->_fs->get_text( 'Unable to connect to the filesystem. Please confirm your credentials.' );
|
597 |
|
598 |
// Pass through the error from WP_Filesystem if one was raised.
|
599 |
if ( $wp_filesystem instanceof WP_Filesystem_Base &&
|
freemius/includes/class-fs-security.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.3
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/customizer/class-fs-customizer-support-section.php
ADDED
@@ -0,0 +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 |
+
}
|
freemius/includes/customizer/class-fs-customizer-upsell-control.php
ADDED
@@ -0,0 +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() ) ) . ' ' . ( is_rtl() ? '←' : '➤' );
|
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
|
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( '
|
28 |
-
$logger =
|
29 |
-
} else {
|
30 |
-
$logger = array();
|
31 |
-
}
|
32 |
-
|
33 |
-
return number_format( count( $logger ) );
|
34 |
-
}
|
35 |
-
|
36 |
-
static function total_time() {
|
37 |
-
if ( class_exists( '
|
38 |
-
$logger =
|
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
|
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/entities/class-fs-billing.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius for EDD Add-On
|
4 |
* @copyright Copyright (c) 2016, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.0
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/entities/class-fs-entity.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.3
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/entities/class-fs-payment.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2016, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.0
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/entities/class-fs-plugin-info.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.3
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/entities/class-fs-plugin-license.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.5
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/entities/class-fs-plugin-plan.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.5
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/entities/class-fs-plugin-tag.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.4
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/entities/class-fs-plugin.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.3
|
7 |
*/
|
8 |
|
@@ -25,6 +25,8 @@
|
|
25 |
*/
|
26 |
public $slug;
|
27 |
/**
|
|
|
|
|
28 |
* @var string 'plugin' or 'theme'
|
29 |
*/
|
30 |
public $type;
|
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 |
|
25 |
*/
|
26 |
public $slug;
|
27 |
/**
|
28 |
+
* @since 1.2.2
|
29 |
+
*
|
30 |
* @var string 'plugin' or 'theme'
|
31 |
*/
|
32 |
public $type;
|
freemius/includes/entities/class-fs-pricing.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius for EDD Add-On
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.0
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/entities/class-fs-scope-entity.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.4
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/entities/class-fs-site.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.3
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/entities/class-fs-subscription.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.9
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/entities/class-fs-user.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.3
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/fs-core-functions.php
CHANGED
@@ -1,629 +1,674 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* @package Freemius
|
4 |
-
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
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 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
* @
|
79 |
-
*
|
80 |
-
* @param
|
81 |
-
*
|
82 |
-
*
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
return $
|
104 |
-
}
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
* @
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
$
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
* @
|
233 |
-
* @since
|
234 |
-
*
|
235 |
-
*
|
236 |
-
* @
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
*
|
363 |
-
* @
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
return $
|
386 |
-
}
|
387 |
-
}
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
*
|
394 |
-
* @
|
395 |
-
*
|
396 |
-
* @param
|
397 |
-
*
|
398 |
-
* @
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
* @
|
596 |
-
* @
|
597 |
-
*
|
598 |
-
* @
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
* @
|
607 |
-
*
|
608 |
-
*
|
609 |
-
* @param string $
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
* @
|
620 |
-
* @
|
621 |
-
*
|
622 |
-
* @
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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,459 +1,494 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
*
|
4 |
-
*
|
5 |
-
*
|
6 |
-
*
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
*
|
18 |
-
*
|
19 |
-
*
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
*
|
44 |
-
*
|
45 |
-
* @
|
46 |
-
* @
|
47 |
-
*
|
48 |
-
*
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
return false;
|
68 |
-
}
|
69 |
-
|
70 |
-
if (
|
71 |
-
|
72 |
-
return false;
|
73 |
-
}
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
header( "
|
84 |
-
}
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
*
|
101 |
-
*
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
$
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
*
|
132 |
-
*
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
*
|
159 |
-
*
|
160 |
-
* @
|
161 |
-
*
|
162 |
-
*
|
163 |
-
* @
|
164 |
-
*
|
165 |
-
* @
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
*
|
209 |
-
*
|
210 |
-
* @
|
211 |
-
*
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
*
|
226 |
-
*
|
227 |
-
*
|
228 |
-
* @
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
*
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
'
|
260 |
-
'
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
*
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
}
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
*
|
332 |
-
*
|
333 |
-
*
|
334 |
-
* @
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
*
|
391 |
-
*
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
$
|
405 |
-
$
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
459 |
#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/fs-plugin-info-dialog.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.6
|
7 |
*/
|
8 |
|
@@ -99,37 +99,34 @@
|
|
99 |
$has_pricing = false;
|
100 |
$has_features = false;
|
101 |
$plans = false;
|
102 |
-
|
103 |
-
|
104 |
-
|
|
|
|
|
|
|
105 |
if ( is_array( $plans ) ) {
|
106 |
for ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {
|
|
|
|
|
|
|
107 |
$plans[ $i ] = new FS_Plugin_Plan( $plans[ $i ] );
|
108 |
$plan = $plans[ $i ];
|
109 |
|
110 |
-
|
111 |
-
|
112 |
-
// Update plan's pricing.
|
113 |
-
$plan->pricing = $pricing_result->pricing;
|
114 |
-
|
115 |
-
if ( is_array( $plan->pricing ) && ! empty( $plan->pricing ) ) {
|
116 |
-
$is_free = false;
|
117 |
|
118 |
-
|
119 |
-
|
120 |
-
}
|
121 |
}
|
122 |
|
|
|
|
|
123 |
$has_pricing = true;
|
124 |
}
|
125 |
|
126 |
-
|
127 |
-
|
128 |
-
is_array( $features_result->features ) &&
|
129 |
-
0 < count( $features_result->features )
|
130 |
-
) {
|
131 |
-
// Update plan's pricing.
|
132 |
-
$plan->features = $features_result->features;
|
133 |
|
134 |
$has_features = true;
|
135 |
}
|
@@ -313,7 +310,12 @@
|
|
313 |
|
314 |
if ( ! empty( $api->checkout_link ) && isset( $api->plans ) && 0 < is_array( $api->plans ) ) {
|
315 |
if ( is_null( $plan ) ) {
|
316 |
-
|
|
|
|
|
|
|
|
|
|
|
317 |
}
|
318 |
|
319 |
return ' <a class="button button-primary right" href="' . $this->_fs->addon_checkout_url(
|
@@ -565,6 +567,10 @@
|
|
565 |
<div class="plugin-information-pricing">
|
566 |
<?php foreach ( $api->plans as $plan ) : ?>
|
567 |
<?php
|
|
|
|
|
|
|
|
|
568 |
/**
|
569 |
* @var FS_Plugin_Plan $plan
|
570 |
*/
|
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 |
|
99 |
$has_pricing = false;
|
100 |
$has_features = false;
|
101 |
$plans = false;
|
102 |
+
|
103 |
+
$result = $this->_fs->get_api_plugin_scope()->get( "/addons/{$selected_addon->id}/pricing.json?type=visible" );
|
104 |
+
|
105 |
+
if ( ! isset( $result->error ) ) {
|
106 |
+
$plans = $result->plans;
|
107 |
+
|
108 |
if ( is_array( $plans ) ) {
|
109 |
for ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {
|
110 |
+
$pricing = isset( $plans[ $i ]->pricing ) ? $plans[ $i ]->pricing : null;
|
111 |
+
$features = isset( $plans[ $i ]->features ) ? $plans[ $i ]->features : null;
|
112 |
+
|
113 |
$plans[ $i ] = new FS_Plugin_Plan( $plans[ $i ] );
|
114 |
$plan = $plans[ $i ];
|
115 |
|
116 |
+
if ( is_array( $pricing ) && 0 < count( $pricing ) ) {
|
117 |
+
$is_free = false;
|
|
|
|
|
|
|
|
|
|
|
118 |
|
119 |
+
foreach ( $pricing as &$prices ) {
|
120 |
+
$prices = new FS_Pricing( $prices );
|
|
|
121 |
}
|
122 |
|
123 |
+
$plan->pricing = $pricing;
|
124 |
+
|
125 |
$has_pricing = true;
|
126 |
}
|
127 |
|
128 |
+
if ( is_array( $features ) && 0 < count( $features ) ) {
|
129 |
+
$plan->features = $features;
|
|
|
|
|
|
|
|
|
|
|
130 |
|
131 |
$has_features = true;
|
132 |
}
|
310 |
|
311 |
if ( ! empty( $api->checkout_link ) && isset( $api->plans ) && 0 < is_array( $api->plans ) ) {
|
312 |
if ( is_null( $plan ) ) {
|
313 |
+
foreach ($api->plans as $p) {
|
314 |
+
if (!empty($p->pricing)) {
|
315 |
+
$plan = $p;
|
316 |
+
break;
|
317 |
+
}
|
318 |
+
}
|
319 |
}
|
320 |
|
321 |
return ' <a class="button button-primary right" href="' . $this->_fs->addon_checkout_url(
|
567 |
<div class="plugin-information-pricing">
|
568 |
<?php foreach ( $api->plans as $plan ) : ?>
|
569 |
<?php
|
570 |
+
if ( empty( $plan->pricing ) ) {
|
571 |
+
continue;
|
572 |
+
}
|
573 |
+
|
574 |
/**
|
575 |
* @var FS_Plugin_Plan $plan
|
576 |
*/
|
freemius/includes/i18n.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.1.4
|
7 |
*/
|
8 |
|
@@ -35,13 +35,13 @@
|
|
35 |
|
36 |
$fs_text = array(
|
37 |
'account' => _fs_text( 'Account' ),
|
38 |
-
'addon' => _fs_text( 'Add
|
39 |
'contact-us' => _fs_text( 'Contact Us' ),
|
40 |
'contact-support' => _fs_text( 'Contact Support' ),
|
41 |
'change-ownership' => _fs_text( 'Change Ownership' ),
|
42 |
'support' => _fs_text( 'Support' ),
|
43 |
'support-forum' => _fs_text( 'Support Forum' ),
|
44 |
-
'add-ons' => _fs_text( 'Add
|
45 |
'upgrade' => _fs_x( 'Upgrade', 'verb' ),
|
46 |
'awesome' => _fs_text( 'Awesome' ),
|
47 |
'pricing' => _fs_x( 'Pricing', 'noun' ),
|
@@ -91,8 +91,8 @@
|
|
91 |
'you-are-step-away' => _fs_text( 'You are just one step away - %s' ),
|
92 |
'activate-x-now' => _fs_x( 'Complete "%s" Activation Now',
|
93 |
'%s - plugin name. As complete "Jetpack" activation now' ),
|
94 |
-
'few-plugin-tweaks' => _fs_text( 'We made a few tweaks to the
|
95 |
-
'optin-x-now' => _fs_text( 'Opt
|
96 |
'error' => _fs_text( 'Error' ),
|
97 |
'failed-finding-main-path' => _fs_text( 'Freemius SDK couldn\'t find the plugin\'s main file. Please contact sdk@freemius.com with the current error.' ),
|
98 |
#region Account
|
@@ -128,7 +128,6 @@
|
|
128 |
'slug' => _fs_x( 'Slug', 'as WP plugin slug' ),
|
129 |
'id' => _fs_text( 'ID' ),
|
130 |
'users' => _fs_text( 'Users' ),
|
131 |
-
'plugin-installs' => _fs_text( 'Plugin Installs' ),
|
132 |
'module-installs' => _fs_text( '%s Installs' ),
|
133 |
'sites' => _fs_x( 'Sites', 'like websites' ),
|
134 |
'user-id' => _fs_text( 'User ID' ),
|
@@ -165,10 +164,10 @@
|
|
165 |
'activate-this-addon' => _fs_text( 'Activate this add-on' ),
|
166 |
'deactivate-license-confirm' => _fs_text( '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?' ),
|
167 |
'delete-account-x-confirm' => _fs_text( '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?' ),
|
168 |
-
'delete-account-confirm' => _fs_text( 'Deletion is not temporary. Only delete if you no longer want to use this
|
169 |
'downgrade-x-confirm' => _fs_text( 'Downgrading your plan will immediately stop all future recurring payments and your %s plan license will expire in %s.' ),
|
170 |
'cancel-trial-confirm' => _fs_text( 'Cancelling the trial will immediately block access to all premium features. Are you sure?' ),
|
171 |
-
'after-downgrade-non-blocking' => _fs_text( 'You can still enjoy all %s features but you will not have access to
|
172 |
'after-downgrade-blocking' => _fs_text( 'Once your license expires you can still use the Free version but you will NOT have access to the %s features.' ),
|
173 |
'proceed-confirmation' => _fs_text( 'Are you sure you want to proceed?' ),
|
174 |
#endregion Account
|
@@ -178,32 +177,39 @@
|
|
178 |
#region Plugin Deactivation
|
179 |
'anonymous-feedback' => _fs_text( 'Anonymous feedback' ),
|
180 |
'quick-feedback' => _fs_text( 'Quick feedback' ),
|
181 |
-
'deactivation-share-reason' => _fs_text( 'If you have a moment, please let us know why you are
|
182 |
-
'
|
183 |
-
'deactivation
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
'cancel' => _fs_text( 'Cancel' ),
|
185 |
-
'reason-no-longer-needed' => _fs_text( 'I no longer need the
|
186 |
-
'reason-found-a-better-plugin' => _fs_text( 'I found a better
|
187 |
-
'reason-needed-for-a-short-period' => _fs_text( 'I only needed the
|
188 |
-
'reason-broke-my-site' => _fs_text( 'The
|
189 |
-
'reason-suddenly-stopped-working' => _fs_text( 'The
|
190 |
'reason-cant-pay-anymore' => _fs_text( "I can't pay for it anymore" ),
|
191 |
'reason-temporary-deactivation' => _fs_text( "It's a temporary deactivation. I'm just debugging an issue." ),
|
|
|
192 |
'reason-other' => _fs_x( 'Other',
|
193 |
-
'the text of the "other" reason for deactivating the
|
194 |
'ask-for-reason-message' => _fs_text( 'Kindly tell us the reason so we can improve.' ),
|
195 |
-
'placeholder-plugin-name' => _fs_text( "What's the
|
196 |
'placeholder-comfortable-price' => _fs_text( 'What price would you feel comfortable paying?' ),
|
197 |
'reason-couldnt-make-it-work' => _fs_text( "I couldn't understand how to make it work" ),
|
198 |
-
'reason-great-but-need-specific-feature' => _fs_text( "The
|
199 |
-
'reason-not-working' => _fs_text( 'The
|
200 |
'reason-not-what-i-was-looking-for' => _fs_text( "It's not what I was looking for" ),
|
201 |
-
'reason-didnt-work-as-expected' => _fs_text( "The
|
202 |
'placeholder-feature' => _fs_text( 'What feature?' ),
|
203 |
'placeholder-share-what-didnt-work' => _fs_text( "Kindly share what didn't work so we can fix it for future users..." ),
|
204 |
'placeholder-what-youve-been-looking-for' => _fs_text( "What you've been looking for?" ),
|
205 |
'placeholder-what-did-you-expect' => _fs_text( "What did you expect?" ),
|
206 |
-
'reason-didnt-work' => _fs_text( "The
|
207 |
'reason-dont-like-to-share-my-information' => _fs_text( "I don't like to share my information with you" ),
|
208 |
'dont-have-to-share-any-data' => _fs_text( "You might have missed it, but you don't have to share any data and can just %s the opt-in." ),
|
209 |
#endregion Plugin Deactivation
|
@@ -211,19 +217,19 @@
|
|
211 |
#region Connect
|
212 |
'hey-x' => _fs_x( 'Hey %s,', 'greeting' ),
|
213 |
'thanks-x' => _fs_x( 'Thanks %s!', 'a greeting. E.g. Thanks John!' ),
|
214 |
-
'connect-message' => _fs_text( 'Never miss an important update - opt
|
215 |
-
'connect-message_on-update' => _fs_text( 'Please help us improve %1$s! If you opt
|
216 |
'pending-activation-message' => _fs_text( '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.' ),
|
217 |
'complete-the-install' => _fs_text( 'complete the install' ),
|
218 |
'start-the-trial' => _fs_text( 'start the trial' ),
|
219 |
'thanks-for-purchasing' => _fs_text( 'Thanks for purchasing %s! To get started, please enter your license key:' ),
|
220 |
-
'license-sync-disclaimer' => _fs_text( 'The
|
221 |
'what-permissions' => _fs_text( 'What permissions are being granted?' ),
|
222 |
'permissions-profile' => _fs_text( 'Your Profile Overview' ),
|
223 |
'permissions-profile_desc' => _fs_text( 'Name and email address' ),
|
224 |
'permissions-site' => _fs_text( 'Your Site Overview' ),
|
225 |
'permissions-site_desc' => _fs_text( 'Site URL, WP version, PHP info, plugins & themes' ),
|
226 |
-
'permissions-events' => _fs_text( 'Current
|
227 |
'permissions-events_desc' => _fs_text( 'Activation, deactivation and uninstall' ),
|
228 |
'permissions-plugins_themes' => _fs_text( 'Plugins & Themes' ),
|
229 |
'permissions-plugins_themes_desc' => _fs_text( 'Titles, versions and state.' ),
|
@@ -285,7 +291,7 @@
|
|
285 |
'scheduled-crons' => _fs_text( 'Scheduled Crons' ),
|
286 |
'cron-type' => _fs_text( 'Cron Type' ),
|
287 |
'plugins-themes-sync' => _fs_text( 'Plugins & Themes Sync' ),
|
288 |
-
'licenses'
|
289 |
'debug-log' => _fs_text( 'Debug Log' ),
|
290 |
'all' => _fs_text( 'All' ),
|
291 |
'file' => _fs_text( 'File' ),
|
@@ -319,7 +325,7 @@
|
|
319 |
'you-have-latest' => _fs_text( 'Seems like you got the latest release.' ),
|
320 |
'you-are-good' => _fs_text( 'You are all good!' ),
|
321 |
'user-exist-message' => _fs_text( 'Sorry, we could not complete the email update. Another user with the same email is already registered.' ),
|
322 |
-
'user-exist-message_ownership' => _fs_text( 'If you would like to give up the ownership of the
|
323 |
'email-updated-message' => _fs_text( 'Your email was successfully updated. You should receive an email with confirmation instructions in few moments.' ),
|
324 |
'name-updated-message' => _fs_text( 'Your name was successfully updated.' ),
|
325 |
'x-updated' => _fs_text( 'You have successfully updated your %s.' ),
|
@@ -327,7 +333,7 @@
|
|
327 |
'verification-email-sent-message' => _fs_text( 'Verification mail was just sent to %s. If you can\'t find it after 5 min, please check your spam box.' ),
|
328 |
'addons-info-external-message' => _fs_text( 'Just letting you know that the add-ons information of %s is being pulled from an external server.' ),
|
329 |
'no-cc-required' => _fs_text( 'No credit card required' ),
|
330 |
-
'premium-activated-message' => _fs_text( 'Premium
|
331 |
'successful-version-upgrade-message' => _fs_text( 'The upgrade of %s was successfully completed.' ),
|
332 |
'activation-with-plan-x-message' => _fs_text( 'Your account was successfully activated with the %s plan.' ),
|
333 |
'download-latest-x-version-now' => _fs_text( 'Download the latest %s version now' ),
|
@@ -343,7 +349,7 @@
|
|
343 |
'email-verified-message' => _fs_text( 'Your email has been successfully verified - you are AWESOME!' ),
|
344 |
'plan-upgraded-message' => _fs_text( 'Your plan was successfully upgraded.' ),
|
345 |
'plan-changed-to-x-message' => _fs_text( 'Your plan was successfully changed to %s.' ),
|
346 |
-
'license-expired-blocking-message' => _fs_text( 'Your license has expired. You can still continue using the free
|
347 |
'license-cancelled' => _fs_text( 'Your license has been cancelled. If you think it\'s a mistake, please contact support.' ),
|
348 |
'trial-started-message' => _fs_text( 'Your trial has been successfully started.' ),
|
349 |
'license-activated-message' => _fs_text( 'Your license was successfully activated.' ),
|
@@ -367,11 +373,11 @@
|
|
367 |
'please-wait' => _fs_text( 'Please wait' ),
|
368 |
'trial-cancel-failure-message' => _fs_text( 'Seems like we are having some temporary issue with your trial cancellation. Please try again in few minutes.' ),
|
369 |
'trial-utilized' => _fs_text( 'You already utilized a trial before.' ),
|
370 |
-
'in-trial-mode' => _fs_text( 'You are already running the
|
371 |
'trial-plan-x-not-exist' => _fs_text( 'Plan %s do not exist, therefore, can\'t start a trial.' ),
|
372 |
'plan-x-no-trial' => _fs_text( 'Plan %s does not support a trial period.' ),
|
373 |
-
'no-trials' => _fs_text( 'None of the
|
374 |
-
'unexpected-api-error' => _fs_text( 'Unexpected API error. Please contact the
|
375 |
'no-commitment-for-x-days' => _fs_text( 'No commitment for %s days - cancel anytime!' ),
|
376 |
'license-expired-non-blocking-message' => _fs_text( '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.' ),
|
377 |
'could-not-activate-x' => _fs_text( 'Couldn\'t activate %s.' ),
|
@@ -385,17 +391,17 @@
|
|
385 |
'connectivity-test-maybe-temporary' => _fs_text( '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?' ),
|
386 |
'curl-missing-message' => _fs_text( '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.' ),
|
387 |
'curl-disabled-methods' => _fs_text( 'Disabled method(s):' ),
|
388 |
-
|
389 |
'x-requires-access-to-api' => _fs_x( '%s requires an access to our API.',
|
390 |
'as pluginX requires an access to our API' ),
|
391 |
'squid-blocks-connection-message' => _fs_text( 'It looks like your server is using Squid ACL (access control lists), which blocks the connection.' ),
|
392 |
'squid-no-clue-title' => _fs_text( 'I don\'t know what is Squid or ACL, help me!' ),
|
393 |
'squid-no-clue-desc' => _fs_text( '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.' ),
|
394 |
'sysadmin-title' => _fs_text( 'I\'m a system administrator' ),
|
395 |
-
'squid-sysadmin-desc' => _fs_text( 'Great, please whitelist the following domains: %s. Once you are done, deactivate the
|
396 |
'curl-missing-no-clue-title' => _fs_text( 'I don\'t know what is cURL or how to install it, help me!' ),
|
397 |
'curl-missing-no-clue-desc' => _fs_text( '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.' ),
|
398 |
-
'curl-missing-sysadmin-desc' => _fs_text( '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
|
399 |
'happy-to-resolve-issue-asap' => _fs_text( '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.' ),
|
400 |
'contact-support-before-deactivation' => _fs_text( 'Sorry for the inconvenience and we are here to help if you give us a chance.' ),
|
401 |
'fix-issue-title' => _fs_text( 'Yes - I\'m giving you a chance to fix it' ),
|
@@ -450,7 +456,7 @@
|
|
450 |
/* translators: %1$s: Number of trial days; %2$s: Plan name; */
|
451 |
'start-trial-prompt-header' => _fs_text( 'You are 1-click away from starting your %1$s-day free trial of the %2$s plan.' ),
|
452 |
/* translators: %s: Link to freemius.com */
|
453 |
-
'start-trial-prompt-message' => _fs_text( 'For compliance with the WordPress.org guidelines, before we start the trial we ask that you opt
|
454 |
|
455 |
#endregion
|
456 |
#--------------------------------------------------------------------------------
|
@@ -484,7 +490,12 @@
|
|
484 |
'auto-install-error-premium-addon-activated' => _fs_text( 'Premium add-on version already installed.' ),
|
485 |
'auto-install-error-invalid-license' => _fs_text( 'You do not have a valid license to access the premium version.' ),
|
486 |
'auto-install-error-serviceware' => _fs_text( 'Plugin is a "Serviceware" which means it does not have a premium code version.' ),
|
487 |
-
|
|
|
|
|
|
|
|
|
|
|
488 |
);
|
489 |
|
490 |
/**
|
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.4
|
7 |
*/
|
8 |
|
35 |
|
36 |
$fs_text = array(
|
37 |
'account' => _fs_text( 'Account' ),
|
38 |
+
'addon' => _fs_text( 'Add-On' ),
|
39 |
'contact-us' => _fs_text( 'Contact Us' ),
|
40 |
'contact-support' => _fs_text( 'Contact Support' ),
|
41 |
'change-ownership' => _fs_text( 'Change Ownership' ),
|
42 |
'support' => _fs_text( 'Support' ),
|
43 |
'support-forum' => _fs_text( 'Support Forum' ),
|
44 |
+
'add-ons' => _fs_text( 'Add-Ons' ),
|
45 |
'upgrade' => _fs_x( 'Upgrade', 'verb' ),
|
46 |
'awesome' => _fs_text( 'Awesome' ),
|
47 |
'pricing' => _fs_x( 'Pricing', 'noun' ),
|
91 |
'you-are-step-away' => _fs_text( 'You are just one step away - %s' ),
|
92 |
'activate-x-now' => _fs_x( 'Complete "%s" Activation Now',
|
93 |
'%s - plugin name. As complete "Jetpack" activation now' ),
|
94 |
+
'few-plugin-tweaks' => _fs_text( 'We made a few tweaks to the %s, %s' ),
|
95 |
+
'optin-x-now' => _fs_text( 'Opt in to make "%s" Better!' ),
|
96 |
'error' => _fs_text( 'Error' ),
|
97 |
'failed-finding-main-path' => _fs_text( 'Freemius SDK couldn\'t find the plugin\'s main file. Please contact sdk@freemius.com with the current error.' ),
|
98 |
#region Account
|
128 |
'slug' => _fs_x( 'Slug', 'as WP plugin slug' ),
|
129 |
'id' => _fs_text( 'ID' ),
|
130 |
'users' => _fs_text( 'Users' ),
|
|
|
131 |
'module-installs' => _fs_text( '%s Installs' ),
|
132 |
'sites' => _fs_x( 'Sites', 'like websites' ),
|
133 |
'user-id' => _fs_text( 'User ID' ),
|
164 |
'activate-this-addon' => _fs_text( 'Activate this add-on' ),
|
165 |
'deactivate-license-confirm' => _fs_text( '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?' ),
|
166 |
'delete-account-x-confirm' => _fs_text( '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?' ),
|
167 |
+
'delete-account-confirm' => _fs_text( '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?' ),
|
168 |
'downgrade-x-confirm' => _fs_text( 'Downgrading your plan will immediately stop all future recurring payments and your %s plan license will expire in %s.' ),
|
169 |
'cancel-trial-confirm' => _fs_text( 'Cancelling the trial will immediately block access to all premium features. Are you sure?' ),
|
170 |
+
'after-downgrade-non-blocking' => _fs_text( 'You can still enjoy all %s features but you will not have access to %s updates and support.' ),
|
171 |
'after-downgrade-blocking' => _fs_text( 'Once your license expires you can still use the Free version but you will NOT have access to the %s features.' ),
|
172 |
'proceed-confirmation' => _fs_text( 'Are you sure you want to proceed?' ),
|
173 |
#endregion Account
|
177 |
#region Plugin Deactivation
|
178 |
'anonymous-feedback' => _fs_text( 'Anonymous feedback' ),
|
179 |
'quick-feedback' => _fs_text( 'Quick feedback' ),
|
180 |
+
'deactivation-share-reason' => _fs_text( 'If you have a moment, please let us know why you are %s' ),
|
181 |
+
'deactivating' => _fs_text( 'deactivating' ),
|
182 |
+
'deactivation' => _fs_text( 'Deactivation' ),
|
183 |
+
'theme-switch' => _fs_text( 'Theme Switch' ),
|
184 |
+
'switching' => _fs_text( 'switching' ),
|
185 |
+
'switch' => _fs_text( 'Switch' ),
|
186 |
+
'activate-x' => _fs_text( 'Activate %s' ),
|
187 |
+
'deactivation-modal-button-confirm' => _fs_text( 'Yes - %s' ),
|
188 |
+
'deactivation-modal-button-submit' => _fs_text( 'Submit & %s' ),
|
189 |
'cancel' => _fs_text( 'Cancel' ),
|
190 |
+
'reason-no-longer-needed' => _fs_text( 'I no longer need the %s' ),
|
191 |
+
'reason-found-a-better-plugin' => _fs_text( 'I found a better %s' ),
|
192 |
+
'reason-needed-for-a-short-period' => _fs_text( 'I only needed the %s for a short period' ),
|
193 |
+
'reason-broke-my-site' => _fs_text( 'The %s broke my site' ),
|
194 |
+
'reason-suddenly-stopped-working' => _fs_text( 'The %s suddenly stopped working' ),
|
195 |
'reason-cant-pay-anymore' => _fs_text( "I can't pay for it anymore" ),
|
196 |
'reason-temporary-deactivation' => _fs_text( "It's a temporary deactivation. I'm just debugging an issue." ),
|
197 |
+
'reason-temporary-x' => _fs_text( "It's a temporary %s. I'm just debugging an issue." ),
|
198 |
'reason-other' => _fs_x( 'Other',
|
199 |
+
'the text of the "other" reason for deactivating the module that is shown in the modal box.' ),
|
200 |
'ask-for-reason-message' => _fs_text( 'Kindly tell us the reason so we can improve.' ),
|
201 |
+
'placeholder-plugin-name' => _fs_text( "What's the %s's name?" ),
|
202 |
'placeholder-comfortable-price' => _fs_text( 'What price would you feel comfortable paying?' ),
|
203 |
'reason-couldnt-make-it-work' => _fs_text( "I couldn't understand how to make it work" ),
|
204 |
+
'reason-great-but-need-specific-feature' => _fs_text( "The %s is great, but I need specific feature that you don't support" ),
|
205 |
+
'reason-not-working' => _fs_text( 'The %s is not working' ),
|
206 |
'reason-not-what-i-was-looking-for' => _fs_text( "It's not what I was looking for" ),
|
207 |
+
'reason-didnt-work-as-expected' => _fs_text( "The %s didn't work as expected" ),
|
208 |
'placeholder-feature' => _fs_text( 'What feature?' ),
|
209 |
'placeholder-share-what-didnt-work' => _fs_text( "Kindly share what didn't work so we can fix it for future users..." ),
|
210 |
'placeholder-what-youve-been-looking-for' => _fs_text( "What you've been looking for?" ),
|
211 |
'placeholder-what-did-you-expect' => _fs_text( "What did you expect?" ),
|
212 |
+
'reason-didnt-work' => _fs_text( "The %s didn't work" ),
|
213 |
'reason-dont-like-to-share-my-information' => _fs_text( "I don't like to share my information with you" ),
|
214 |
'dont-have-to-share-any-data' => _fs_text( "You might have missed it, but you don't have to share any data and can just %s the opt-in." ),
|
215 |
#endregion Plugin Deactivation
|
217 |
#region Connect
|
218 |
'hey-x' => _fs_x( 'Hey %s,', 'greeting' ),
|
219 |
'thanks-x' => _fs_x( 'Thanks %s!', 'a greeting. E.g. Thanks John!' ),
|
220 |
+
'connect-message' => _fs_text( 'Never miss an important update - opt in to our security and feature updates notifications, and non-sensitive diagnostic tracking with %4$s.' ),
|
221 |
+
'connect-message_on-update' => _fs_text( '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.' ),
|
222 |
'pending-activation-message' => _fs_text( '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.' ),
|
223 |
'complete-the-install' => _fs_text( 'complete the install' ),
|
224 |
'start-the-trial' => _fs_text( 'start the trial' ),
|
225 |
'thanks-for-purchasing' => _fs_text( 'Thanks for purchasing %s! To get started, please enter your license key:' ),
|
226 |
+
'license-sync-disclaimer' => _fs_text( '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.' ),
|
227 |
'what-permissions' => _fs_text( 'What permissions are being granted?' ),
|
228 |
'permissions-profile' => _fs_text( 'Your Profile Overview' ),
|
229 |
'permissions-profile_desc' => _fs_text( 'Name and email address' ),
|
230 |
'permissions-site' => _fs_text( 'Your Site Overview' ),
|
231 |
'permissions-site_desc' => _fs_text( 'Site URL, WP version, PHP info, plugins & themes' ),
|
232 |
+
'permissions-events' => _fs_text( 'Current %s Events' ),
|
233 |
'permissions-events_desc' => _fs_text( 'Activation, deactivation and uninstall' ),
|
234 |
'permissions-plugins_themes' => _fs_text( 'Plugins & Themes' ),
|
235 |
'permissions-plugins_themes_desc' => _fs_text( 'Titles, versions and state.' ),
|
291 |
'scheduled-crons' => _fs_text( 'Scheduled Crons' ),
|
292 |
'cron-type' => _fs_text( 'Cron Type' ),
|
293 |
'plugins-themes-sync' => _fs_text( 'Plugins & Themes Sync' ),
|
294 |
+
'module-licenses' => _fs_text( '%s Licenses' ),
|
295 |
'debug-log' => _fs_text( 'Debug Log' ),
|
296 |
'all' => _fs_text( 'All' ),
|
297 |
'file' => _fs_text( 'File' ),
|
325 |
'you-have-latest' => _fs_text( 'Seems like you got the latest release.' ),
|
326 |
'you-are-good' => _fs_text( 'You are all good!' ),
|
327 |
'user-exist-message' => _fs_text( 'Sorry, we could not complete the email update. Another user with the same email is already registered.' ),
|
328 |
+
'user-exist-message_ownership' => _fs_text( 'If you would like to give up the ownership of the %s\'s account to %s click the Change Ownership button.' ),
|
329 |
'email-updated-message' => _fs_text( 'Your email was successfully updated. You should receive an email with confirmation instructions in few moments.' ),
|
330 |
'name-updated-message' => _fs_text( 'Your name was successfully updated.' ),
|
331 |
'x-updated' => _fs_text( 'You have successfully updated your %s.' ),
|
333 |
'verification-email-sent-message' => _fs_text( 'Verification mail was just sent to %s. If you can\'t find it after 5 min, please check your spam box.' ),
|
334 |
'addons-info-external-message' => _fs_text( 'Just letting you know that the add-ons information of %s is being pulled from an external server.' ),
|
335 |
'no-cc-required' => _fs_text( 'No credit card required' ),
|
336 |
+
'premium-activated-message' => _fs_text( 'Premium %s version was successfully activated.' ),
|
337 |
'successful-version-upgrade-message' => _fs_text( 'The upgrade of %s was successfully completed.' ),
|
338 |
'activation-with-plan-x-message' => _fs_text( 'Your account was successfully activated with the %s plan.' ),
|
339 |
'download-latest-x-version-now' => _fs_text( 'Download the latest %s version now' ),
|
349 |
'email-verified-message' => _fs_text( 'Your email has been successfully verified - you are AWESOME!' ),
|
350 |
'plan-upgraded-message' => _fs_text( 'Your plan was successfully upgraded.' ),
|
351 |
'plan-changed-to-x-message' => _fs_text( 'Your plan was successfully changed to %s.' ),
|
352 |
+
'license-expired-blocking-message' => _fs_text( 'Your license has expired. You can still continue using the free %s forever.' ),
|
353 |
'license-cancelled' => _fs_text( 'Your license has been cancelled. If you think it\'s a mistake, please contact support.' ),
|
354 |
'trial-started-message' => _fs_text( 'Your trial has been successfully started.' ),
|
355 |
'license-activated-message' => _fs_text( 'Your license was successfully activated.' ),
|
373 |
'please-wait' => _fs_text( 'Please wait' ),
|
374 |
'trial-cancel-failure-message' => _fs_text( 'Seems like we are having some temporary issue with your trial cancellation. Please try again in few minutes.' ),
|
375 |
'trial-utilized' => _fs_text( 'You already utilized a trial before.' ),
|
376 |
+
'in-trial-mode' => _fs_text( 'You are already running the %s in a trial mode.' ),
|
377 |
'trial-plan-x-not-exist' => _fs_text( 'Plan %s do not exist, therefore, can\'t start a trial.' ),
|
378 |
'plan-x-no-trial' => _fs_text( 'Plan %s does not support a trial period.' ),
|
379 |
+
'no-trials' => _fs_text( 'None of the %s\'s plans supports a trial period.' ),
|
380 |
+
'unexpected-api-error' => _fs_text( 'Unexpected API error. Please contact the %s\'s author with the following error.' ),
|
381 |
'no-commitment-for-x-days' => _fs_text( 'No commitment for %s days - cancel anytime!' ),
|
382 |
'license-expired-non-blocking-message' => _fs_text( '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.' ),
|
383 |
'could-not-activate-x' => _fs_text( 'Couldn\'t activate %s.' ),
|
391 |
'connectivity-test-maybe-temporary' => _fs_text( '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?' ),
|
392 |
'curl-missing-message' => _fs_text( '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.' ),
|
393 |
'curl-disabled-methods' => _fs_text( 'Disabled method(s):' ),
|
394 |
+
'cloudflare-blocks-connection-message' => _fs_text( 'From unknown reason, CloudFlare, the firewall we use, blocks the connection.' ),
|
395 |
'x-requires-access-to-api' => _fs_x( '%s requires an access to our API.',
|
396 |
'as pluginX requires an access to our API' ),
|
397 |
'squid-blocks-connection-message' => _fs_text( 'It looks like your server is using Squid ACL (access control lists), which blocks the connection.' ),
|
398 |
'squid-no-clue-title' => _fs_text( 'I don\'t know what is Squid or ACL, help me!' ),
|
399 |
'squid-no-clue-desc' => _fs_text( '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.' ),
|
400 |
'sysadmin-title' => _fs_text( 'I\'m a system administrator' ),
|
401 |
+
'squid-sysadmin-desc' => _fs_text( 'Great, please whitelist the following domains: %s. Once you are done, deactivate the %s and activate it again.' ),
|
402 |
'curl-missing-no-clue-title' => _fs_text( 'I don\'t know what is cURL or how to install it, help me!' ),
|
403 |
'curl-missing-no-clue-desc' => _fs_text( '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.' ),
|
404 |
+
'curl-missing-sysadmin-desc' => _fs_text( '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.' ),
|
405 |
'happy-to-resolve-issue-asap' => _fs_text( '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.' ),
|
406 |
'contact-support-before-deactivation' => _fs_text( 'Sorry for the inconvenience and we are here to help if you give us a chance.' ),
|
407 |
'fix-issue-title' => _fs_text( 'Yes - I\'m giving you a chance to fix it' ),
|
456 |
/* translators: %1$s: Number of trial days; %2$s: Plan name; */
|
457 |
'start-trial-prompt-header' => _fs_text( 'You are 1-click away from starting your %1$s-day free trial of the %2$s plan.' ),
|
458 |
/* translators: %s: Link to freemius.com */
|
459 |
+
'start-trial-prompt-message' => _fs_text( '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.' ),
|
460 |
|
461 |
#endregion
|
462 |
#--------------------------------------------------------------------------------
|
490 |
'auto-install-error-premium-addon-activated' => _fs_text( 'Premium add-on version already installed.' ),
|
491 |
'auto-install-error-invalid-license' => _fs_text( 'You do not have a valid license to access the premium version.' ),
|
492 |
'auto-install-error-serviceware' => _fs_text( 'Plugin is a "Serviceware" which means it does not have a premium code version.' ),
|
493 |
+
#endregion
|
494 |
+
|
495 |
+
/* translators: %s: Page name */
|
496 |
+
'secure-x-page-header' => _fs_text( 'Secure HTTPS %s page, running from an external domain' ),
|
497 |
+
'pci-compliant' => _fs_text( 'PCI compliant' ),
|
498 |
+
'view-paid-features' => _fs_text( 'View paid features' ),
|
499 |
);
|
500 |
|
501 |
/**
|
freemius/includes/l10n.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.2.1.6
|
7 |
*/
|
8 |
|
@@ -20,7 +20,9 @@
|
|
20 |
* @return string
|
21 |
*/
|
22 |
function _fs_text( $text ) {
|
23 |
-
|
|
|
|
|
24 |
}
|
25 |
|
26 |
/**
|
@@ -33,7 +35,9 @@
|
|
33 |
* @return string
|
34 |
*/
|
35 |
function _fs_esc_attr( $text ) {
|
36 |
-
|
|
|
|
|
37 |
}
|
38 |
|
39 |
/**
|
@@ -46,7 +50,9 @@
|
|
46 |
* @return string
|
47 |
*/
|
48 |
function _fs_esc_html( $text ) {
|
49 |
-
|
|
|
|
|
50 |
}
|
51 |
|
52 |
/**
|
@@ -57,7 +63,9 @@
|
|
57 |
* @param string $text
|
58 |
*/
|
59 |
function _fs_echo( $text ) {
|
60 |
-
|
|
|
|
|
61 |
}
|
62 |
|
63 |
/**
|
@@ -68,7 +76,9 @@
|
|
68 |
* @param string $text
|
69 |
*/
|
70 |
function _fs_esc_attr_echo( $text ) {
|
71 |
-
|
|
|
|
|
72 |
}
|
73 |
|
74 |
/**
|
@@ -79,7 +89,9 @@
|
|
79 |
* @param string $text
|
80 |
*/
|
81 |
function _fs_esc_html_echo( $text ) {
|
82 |
-
|
|
|
|
|
83 |
}
|
84 |
|
85 |
/**
|
@@ -99,7 +111,9 @@
|
|
99 |
* @return string
|
100 |
*/
|
101 |
function _fs_x( $text, $context ) {
|
102 |
-
|
|
|
|
|
103 |
}
|
104 |
|
105 |
/**
|
@@ -127,7 +141,9 @@
|
|
127 |
* @return string
|
128 |
*/
|
129 |
function _fs_esc_attr_x( $text, $context ) {
|
130 |
-
|
|
|
|
|
131 |
}
|
132 |
|
133 |
/**
|
@@ -141,7 +157,9 @@
|
|
141 |
* @return string
|
142 |
*/
|
143 |
function _fs_esc_html_x( $text, $context ) {
|
144 |
-
|
|
|
|
|
145 |
}
|
146 |
|
147 |
/**
|
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 |
|
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 |
/**
|
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 |
/**
|
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 |
/**
|
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 |
/**
|
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 |
/**
|
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 |
/**
|
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 |
/**
|
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 |
/**
|
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 |
/**
|
freemius/includes/managers/class-fs-admin-menu-manager.php
CHANGED
@@ -1,782 +1,849 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* @package Freemius
|
4 |
-
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
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 |
-
* @
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
* @
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
* @
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
* @
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
* @
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
* @
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
* @
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
* @
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
/**
|
87 |
-
* @
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
$this->
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
$
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
$this->
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
*
|
208 |
-
*
|
209 |
-
* @
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
*
|
220 |
-
*
|
221 |
-
* @
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
* @author
|
232 |
-
* @since 1.
|
233 |
-
*
|
234 |
-
* @return
|
235 |
-
*/
|
236 |
-
function
|
237 |
-
return $this->
|
238 |
-
}
|
239 |
-
|
240 |
-
/**
|
241 |
-
*
|
242 |
-
*
|
243 |
-
*
|
244 |
-
* @
|
245 |
-
*
|
246 |
-
*
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
}
|
261 |
-
|
262 |
-
/**
|
263 |
-
*
|
264 |
-
*
|
265 |
-
*
|
266 |
-
* @
|
267 |
-
* @
|
268 |
-
*
|
269 |
-
*
|
270 |
-
*
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
* @
|
293 |
-
*
|
294 |
-
*
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
* @
|
304 |
-
*
|
305 |
-
*
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
* @
|
314 |
-
*
|
315 |
-
*
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
*
|
326 |
-
* @
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
* @
|
337 |
-
*
|
338 |
-
*
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
*
|
347 |
-
* @
|
348 |
-
*
|
349 |
-
*
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
*
|
380 |
-
*
|
381 |
-
* @
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
$
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
$
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
*
|
557 |
-
* @author Vova Feldman (@svovaf)
|
558 |
-
* @since 1.0.
|
559 |
-
*
|
560 |
-
* @return
|
561 |
-
*/
|
562 |
-
function
|
563 |
-
$
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
*
|
587 |
-
* @
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
*
|
682 |
-
*
|
683 |
-
*
|
684 |
-
*
|
685 |
-
*
|
686 |
-
*
|
687 |
-
* @
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
$
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
*
|
737 |
-
*
|
738 |
-
*
|
739 |
-
*
|
740 |
-
*
|
741 |
-
*
|
742 |
-
*
|
743 |
-
*
|
744 |
-
*
|
745 |
-
*
|
746 |
-
*
|
747 |
-
*
|
748 |
-
*
|
749 |
-
*
|
750 |
-
*
|
751 |
-
*
|
752 |
-
*
|
753 |
-
*
|
754 |
-
* @
|
755 |
-
*
|
756 |
-
*
|
757 |
-
* @param string $
|
758 |
-
*
|
759 |
-
* @param
|
760 |
-
*
|
761 |
-
* @
|
762 |
-
*
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
782 |
}
|
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-admin-notice-manager.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.7
|
7 |
*/
|
8 |
|
@@ -11,10 +11,16 @@
|
|
11 |
}
|
12 |
|
13 |
class FS_Admin_Notice_Manager {
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
/**
|
15 |
* @var string
|
16 |
*/
|
17 |
-
protected $
|
18 |
/**
|
19 |
* @var string
|
20 |
*/
|
@@ -37,36 +43,39 @@
|
|
37 |
protected $_logger;
|
38 |
|
39 |
/**
|
40 |
-
* @param string $
|
41 |
* @param string $title
|
|
|
42 |
*
|
43 |
* @return FS_Admin_Notice_Manager
|
44 |
*/
|
45 |
-
static function instance( $
|
46 |
-
if ( ! isset( self::$_instances[ $
|
47 |
-
self::$_instances[ $
|
48 |
}
|
49 |
|
50 |
-
return self::$_instances[ $
|
51 |
}
|
52 |
|
53 |
-
protected function __construct( $
|
54 |
-
$this->
|
55 |
-
|
56 |
-
$this->
|
57 |
-
$this->
|
58 |
-
$this->_sticky_storage
|
59 |
|
60 |
if ( is_admin() ) {
|
61 |
if ( 0 < count( $this->_sticky_storage ) ) {
|
|
|
|
|
62 |
// If there are sticky notices for the current slug, add a callback
|
63 |
// to the AJAX action that handles message dismiss.
|
64 |
-
add_action( "wp_ajax_fs_dismiss_notice_action_{$
|
65 |
&$this,
|
66 |
'dismiss_notice_ajax_callback'
|
67 |
) );
|
68 |
|
69 |
-
foreach ( $this->_sticky_storage as $
|
70 |
// Add admin notice.
|
71 |
$this->add(
|
72 |
$msg['message'],
|
@@ -210,14 +219,14 @@
|
|
210 |
}
|
211 |
|
212 |
$message_object = array(
|
213 |
-
'message'
|
214 |
-
'title'
|
215 |
-
'type'
|
216 |
-
'sticky'
|
217 |
-
'id'
|
218 |
-
'all'
|
219 |
-
'
|
220 |
-
'plugin'
|
221 |
);
|
222 |
|
223 |
if ( $is_sticky && $store_if_sticky ) {
|
@@ -279,8 +288,10 @@
|
|
279 |
* @param bool $all_admin
|
280 |
*/
|
281 |
function add_sticky( $message, $id, $title = '', $type = 'success', $all_admin = false ) {
|
282 |
-
|
283 |
-
|
|
|
|
|
284 |
|
285 |
$this->add( $message, $title, $type, true, $all_admin, $id );
|
286 |
}
|
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 |
|
11 |
}
|
12 |
|
13 |
class FS_Admin_Notice_Manager {
|
14 |
+
/**
|
15 |
+
* @since 1.2.2
|
16 |
+
*
|
17 |
+
* @var string
|
18 |
+
*/
|
19 |
+
protected $_module_unique_affix;
|
20 |
/**
|
21 |
* @var string
|
22 |
*/
|
23 |
+
protected $_id;
|
24 |
/**
|
25 |
* @var string
|
26 |
*/
|
43 |
protected $_logger;
|
44 |
|
45 |
/**
|
46 |
+
* @param string $id
|
47 |
* @param string $title
|
48 |
+
* @param string $module_unique_affix
|
49 |
*
|
50 |
* @return FS_Admin_Notice_Manager
|
51 |
*/
|
52 |
+
static function instance( $id, $title = '', $module_unique_affix = '' ) {
|
53 |
+
if ( ! isset( self::$_instances[ $id ] ) ) {
|
54 |
+
self::$_instances[ $id ] = new FS_Admin_Notice_Manager( $id, $title, $module_unique_affix );
|
55 |
}
|
56 |
|
57 |
+
return self::$_instances[ $id ];
|
58 |
}
|
59 |
|
60 |
+
protected function __construct( $id, $title = '', $module_unique_affix = '' ) {
|
61 |
+
$this->_id = $id;
|
62 |
+
$this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $this->_id . '_data', WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
|
63 |
+
$this->_title = ! empty( $title ) ? $title : '';
|
64 |
+
$this->_module_unique_affix = $module_unique_affix;
|
65 |
+
$this->_sticky_storage = FS_Key_Value_Storage::instance( 'admin_notices', $this->_id );
|
66 |
|
67 |
if ( is_admin() ) {
|
68 |
if ( 0 < count( $this->_sticky_storage ) ) {
|
69 |
+
$ajax_action_suffix = str_replace( ':', '-', $this->_id );
|
70 |
+
|
71 |
// If there are sticky notices for the current slug, add a callback
|
72 |
// to the AJAX action that handles message dismiss.
|
73 |
+
add_action( "wp_ajax_fs_dismiss_notice_action_{$ajax_action_suffix}", array(
|
74 |
&$this,
|
75 |
'dismiss_notice_ajax_callback'
|
76 |
) );
|
77 |
|
78 |
+
foreach ( $this->_sticky_storage as $msg ) {
|
79 |
// Add admin notice.
|
80 |
$this->add(
|
81 |
$msg['message'],
|
219 |
}
|
220 |
|
221 |
$message_object = array(
|
222 |
+
'message' => $message,
|
223 |
+
'title' => $title,
|
224 |
+
'type' => $type,
|
225 |
+
'sticky' => $is_sticky,
|
226 |
+
'id' => $id,
|
227 |
+
'all' => $all_admin,
|
228 |
+
'manager_id' => $this->_id,
|
229 |
+
'plugin' => $this->_title,
|
230 |
);
|
231 |
|
232 |
if ( $is_sticky && $store_if_sticky ) {
|
288 |
* @param bool $all_admin
|
289 |
*/
|
290 |
function add_sticky( $message, $id, $title = '', $type = 'success', $all_admin = false ) {
|
291 |
+
if ( ! empty( $this->_module_unique_affix ) ) {
|
292 |
+
$message = fs_apply_filter( $this->_module_unique_affix, "sticky_message_{$id}", $message );
|
293 |
+
$title = fs_apply_filter( $this->_module_unique_affix, "sticky_title_{$id}", $title );
|
294 |
+
}
|
295 |
|
296 |
$this->add( $message, $title, $type, true, $all_admin, $id );
|
297 |
}
|
freemius/includes/managers/class-fs-cache-manager.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.1.6
|
7 |
*/
|
8 |
|
@@ -115,18 +115,37 @@
|
|
115 |
* @author Vova Feldman (@svovaf)
|
116 |
* @since 1.1.6
|
117 |
*
|
118 |
-
* @param string
|
|
|
119 |
*
|
120 |
* @return bool
|
121 |
*/
|
122 |
-
function has_valid( $key ) {
|
123 |
$cache_entry = $this->_options->get_option( $key, false );
|
124 |
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
}
|
131 |
|
132 |
/**
|
@@ -191,6 +210,7 @@
|
|
191 |
|
192 |
$cache_entry = new stdClass();
|
193 |
$cache_entry->result = $value;
|
|
|
194 |
$cache_entry->timestamp = WP_FS__SCRIPT_START_TIME + $expiration;
|
195 |
$this->_options->set_option( $key, $cache_entry, true );
|
196 |
}
|
@@ -234,4 +254,27 @@
|
|
234 |
|
235 |
$this->_options->unset_option( $key, true );
|
236 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
}
|
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 |
|
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 |
/**
|
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 |
}
|
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
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.7
|
7 |
*/
|
8 |
|
@@ -47,9 +47,11 @@
|
|
47 |
*/
|
48 |
protected $_id;
|
49 |
/**
|
|
|
|
|
50 |
* @var string
|
51 |
*/
|
52 |
-
protected $
|
53 |
/**
|
54 |
* @var array
|
55 |
*/
|
@@ -66,24 +68,24 @@
|
|
66 |
|
67 |
/**
|
68 |
* @param string $id
|
69 |
-
* @param string $
|
70 |
*
|
71 |
* @return FS_Key_Value_Storage
|
72 |
*/
|
73 |
-
static function instance( $id, $
|
74 |
-
$key = $id . ':' . $
|
75 |
if ( ! isset( self::$_instances[ $key ] ) ) {
|
76 |
-
self::$_instances[ $key ] = new FS_Key_Value_Storage( $id, $
|
77 |
}
|
78 |
|
79 |
return self::$_instances[ $key ];
|
80 |
}
|
81 |
|
82 |
-
protected function __construct( $id, $
|
83 |
-
$this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $
|
84 |
|
85 |
-
$this->
|
86 |
-
$this->_id
|
87 |
$this->load();
|
88 |
}
|
89 |
|
@@ -103,8 +105,8 @@
|
|
103 |
*/
|
104 |
function load() {
|
105 |
$all_plugins_data = $this->get_all_data();
|
106 |
-
$this->_data = isset( $all_plugins_data[ $this->
|
107 |
-
$all_plugins_data[ $this->
|
108 |
array();
|
109 |
}
|
110 |
|
@@ -130,7 +132,7 @@
|
|
130 |
|
131 |
$this->_data[ $key ] = $value;
|
132 |
|
133 |
-
$all_data[ $this->
|
134 |
|
135 |
$options_manager = $this->get_option_manager();
|
136 |
$options_manager->set_option( $this->_id, $all_data, $flush );
|
@@ -155,7 +157,7 @@
|
|
155 |
|
156 |
if ( $store ) {
|
157 |
$all_data = $this->get_all_data();
|
158 |
-
$all_data[ $this->
|
159 |
$options_manager = $this->get_option_manager();
|
160 |
$options_manager->set_option( $this->_id, $all_data, true );
|
161 |
}
|
@@ -171,7 +173,7 @@
|
|
171 |
$this->_data = array();
|
172 |
|
173 |
$all_data = $this->get_all_data();
|
174 |
-
unset( $all_data[ $this->
|
175 |
$options_manager = $this->get_option_manager();
|
176 |
$options_manager->set_option( $this->_id, $all_data, true );
|
177 |
}
|
@@ -192,7 +194,7 @@
|
|
192 |
|
193 |
if ( $store ) {
|
194 |
$all_data = $this->get_all_data();
|
195 |
-
$all_data[ $this->
|
196 |
$options_manager = $this->get_option_manager();
|
197 |
$options_manager->set_option( $this->_id, $all_data, true );
|
198 |
}
|
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 |
|
47 |
*/
|
48 |
protected $_id;
|
49 |
/**
|
50 |
+
* @since 1.2.2
|
51 |
+
*
|
52 |
* @var string
|
53 |
*/
|
54 |
+
protected $_secondary_id;
|
55 |
/**
|
56 |
* @var array
|
57 |
*/
|
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 |
|
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 |
|
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 );
|
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 |
}
|
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 |
}
|
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 |
}
|
freemius/includes/managers/class-fs-license-manager.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.6
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/managers/class-fs-option-manager.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.3
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/managers/class-fs-plan-manager.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.6
|
7 |
*/
|
8 |
|
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 |
|
freemius/includes/managers/class-fs-plugin-manager.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.0.6
|
7 |
*/
|
8 |
|
@@ -12,13 +12,17 @@
|
|
12 |
|
13 |
class FS_Plugin_Manager {
|
14 |
/**
|
15 |
-
* @
|
|
|
|
|
16 |
*/
|
17 |
-
protected $
|
18 |
/**
|
|
|
|
|
19 |
* @var FS_Plugin
|
20 |
*/
|
21 |
-
protected $
|
22 |
|
23 |
/**
|
24 |
* @var FS_Plugin_Manager[]
|
@@ -30,22 +34,36 @@
|
|
30 |
protected $_logger;
|
31 |
|
32 |
/**
|
33 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
*
|
35 |
* @return FS_Plugin_Manager
|
36 |
*/
|
37 |
-
static function instance( $
|
38 |
-
|
39 |
-
|
|
|
|
|
40 |
}
|
41 |
|
42 |
-
return self::$_instances[ $
|
43 |
-
|
44 |
|
45 |
-
|
46 |
-
|
|
|
|
|
|
|
|
|
47 |
|
48 |
-
$this->_slug = $slug;
|
49 |
$this->load();
|
50 |
}
|
51 |
|
@@ -53,8 +71,25 @@
|
|
53 |
return FS_Option_Manager::get_manager( WP_FS__ACCOUNTS_OPTION_NAME, true );
|
54 |
}
|
55 |
|
56 |
-
|
57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
}
|
59 |
|
60 |
/**
|
@@ -64,10 +99,42 @@
|
|
64 |
* @since 1.0.6
|
65 |
*/
|
66 |
function load() {
|
67 |
-
$
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
}
|
72 |
|
73 |
/**
|
@@ -76,24 +143,23 @@
|
|
76 |
* @author Vova Feldman (@svovaf)
|
77 |
* @since 1.0.6
|
78 |
*
|
79 |
-
* @param bool|FS_Plugin $
|
80 |
* @param bool $flush
|
81 |
*
|
82 |
* @return bool|\FS_Plugin
|
83 |
*/
|
84 |
-
function store( $
|
85 |
-
|
86 |
-
|
87 |
-
if ( false !== $plugin ) {
|
88 |
-
$this->_plugin = $plugin;
|
89 |
}
|
90 |
|
91 |
-
$
|
|
|
92 |
|
93 |
$options_manager = $this->get_option_manager();
|
94 |
-
$options_manager->set_option( '
|
95 |
|
96 |
-
return $this->
|
97 |
}
|
98 |
|
99 |
/**
|
@@ -108,12 +174,12 @@
|
|
108 |
* @return bool True if plugin was updated.
|
109 |
*/
|
110 |
function update( FS_Plugin $plugin, $store = true ) {
|
111 |
-
if ( ! (
|
112 |
-
$this->
|
113 |
-
$this->
|
114 |
-
$this->
|
115 |
-
$this->
|
116 |
-
$this->
|
117 |
) {
|
118 |
$this->store( $plugin, $store );
|
119 |
|
@@ -131,7 +197,7 @@
|
|
131 |
* @param bool $store
|
132 |
*/
|
133 |
function set( FS_Plugin $plugin, $store = false ) {
|
134 |
-
$this->
|
135 |
|
136 |
if ( $store ) {
|
137 |
$this->store();
|
@@ -145,8 +211,8 @@
|
|
145 |
* @return bool|\FS_Plugin
|
146 |
*/
|
147 |
function get() {
|
148 |
-
return isset( $this->
|
149 |
-
$this->
|
150 |
false;
|
151 |
}
|
152 |
|
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 |
|
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[]
|
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 |
|
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 |
/**
|
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 |
/**
|
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 |
/**
|
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 |
|
197 |
* @param bool $store
|
198 |
*/
|
199 |
function set( FS_Plugin $plugin, $store = false ) {
|
200 |
+
$this->_module = $plugin;
|
201 |
|
202 |
if ( $store ) {
|
203 |
$this->store();
|
211 |
* @return bool|\FS_Plugin
|
212 |
*/
|
213 |
function get() {
|
214 |
+
return isset( $this->_module ) ?
|
215 |
+
$this->_module :
|
216 |
false;
|
217 |
}
|
218 |
|
freemius/includes/sdk/FreemiusBase.php
CHANGED
@@ -154,35 +154,62 @@
|
|
154 |
}
|
155 |
|
156 |
/**
|
157 |
-
* Base64
|
158 |
-
*
|
159 |
-
*
|
160 |
-
*
|
|
|
161 |
* No padded =
|
162 |
*
|
163 |
-
* @param string $input
|
164 |
*
|
165 |
* @return string
|
166 |
*/
|
167 |
protected static function Base64UrlDecode( $input ) {
|
168 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
}
|
170 |
|
171 |
/**
|
172 |
* Base64 encoding that does not need to be urlencode()ed.
|
173 |
-
*
|
174 |
-
*
|
175 |
-
*
|
|
|
176 |
*
|
177 |
* @param string $input string
|
178 |
*
|
179 |
-
* @return string
|
180 |
*/
|
181 |
protected static function Base64UrlEncode( $input ) {
|
182 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
$str = str_replace( '=', '', $str );
|
184 |
|
185 |
return $str;
|
186 |
}
|
187 |
-
|
188 |
}
|
154 |
}
|
155 |
|
156 |
/**
|
157 |
+
* Base64 decoding that does not need to be urldecode()-ed.
|
158 |
+
*
|
159 |
+
* Exactly the same as PHP base64 encode except it uses
|
160 |
+
* `-` instead of `+`
|
161 |
+
* `_` instead of `/`
|
162 |
* No padded =
|
163 |
*
|
164 |
+
* @param string $input Base64UrlEncoded() string
|
165 |
*
|
166 |
* @return string
|
167 |
*/
|
168 |
protected static function Base64UrlDecode( $input ) {
|
169 |
+
/**
|
170 |
+
* IMPORTANT NOTE:
|
171 |
+
* This is a hack suggested by @otto42 and @greenshady from
|
172 |
+
* the theme's review team. The usage of base64 for API
|
173 |
+
* signature encoding was approved in a Slack meeting
|
174 |
+
* held on Tue (10/25 2016).
|
175 |
+
*
|
176 |
+
* @todo Remove this hack once the base64 error is removed from the Theme Check.
|
177 |
+
*
|
178 |
+
* @since 1.2.2
|
179 |
+
* @author Vova Feldman (@svovaf)
|
180 |
+
*/
|
181 |
+
$fn = 'base64' . '_decode';
|
182 |
+
return $fn( strtr( $input, '-_', '+/' ) );
|
183 |
}
|
184 |
|
185 |
/**
|
186 |
* Base64 encoding that does not need to be urlencode()ed.
|
187 |
+
*
|
188 |
+
* Exactly the same as base64 encode except it uses
|
189 |
+
* `-` instead of `+
|
190 |
+
* `_` instead of `/`
|
191 |
*
|
192 |
* @param string $input string
|
193 |
*
|
194 |
+
* @return string Base64 encoded string
|
195 |
*/
|
196 |
protected static function Base64UrlEncode( $input ) {
|
197 |
+
/**
|
198 |
+
* IMPORTANT NOTE:
|
199 |
+
* This is a hack suggested by @otto42 and @greenshady from
|
200 |
+
* the theme's review team. The usage of base64 for API
|
201 |
+
* signature encoding was approved in a Slack meeting
|
202 |
+
* held on Tue (10/25 2016).
|
203 |
+
*
|
204 |
+
* @todo Remove this hack once the base64 error is removed from the Theme Check.
|
205 |
+
*
|
206 |
+
* @since 1.2.2
|
207 |
+
* @author Vova Feldman (@svovaf)
|
208 |
+
*/
|
209 |
+
$fn = 'base64' . '_encode';
|
210 |
+
$str = strtr( $fn( $input ), '+/', '-_' );
|
211 |
$str = str_replace( '=', '', $str );
|
212 |
|
213 |
return $str;
|
214 |
}
|
|
|
215 |
}
|
freemius/includes/sdk/{Freemius.php → FreemiusWordPress.php}
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Copyright
|
4 |
*
|
5 |
* Licensed under the GPL v2 (the "License"); you may
|
6 |
* not use this file except in compliance with the License. You may obtain
|
@@ -78,11 +78,11 @@
|
|
78 |
define( 'FS_API__SANDBOX_ADDRESS', '://sandbox-api.freemius.com' );
|
79 |
}
|
80 |
|
81 |
-
if ( class_exists( '
|
82 |
return;
|
83 |
}
|
84 |
|
85 |
-
class
|
86 |
private static $_logger = array();
|
87 |
|
88 |
/**
|
@@ -172,32 +172,69 @@
|
|
172 |
/**
|
173 |
* Sign request with the following HTTP headers:
|
174 |
* Content-MD5: MD5(HTTP Request body)
|
175 |
-
* Date: Current date (i.e Sat, 14 Feb
|
176 |
* Authorization: FS {scope_entity_id}:{scope_entity_public_key}:base64encode(sha256(string_to_sign,
|
177 |
* {scope_entity_secret_key}))
|
178 |
*
|
179 |
* @param string $pResourceUrl
|
180 |
-
* @param array $
|
181 |
*
|
182 |
* @return array
|
183 |
*/
|
184 |
-
function SignRequest( $pResourceUrl, $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
$eol = "\n";
|
186 |
$content_md5 = '';
|
|
|
187 |
$now = ( time() - self::$_clock_diff );
|
188 |
$date = date( 'r', $now );
|
189 |
-
$content_type = '';
|
190 |
|
191 |
-
if (
|
192 |
-
$content_md5
|
193 |
-
$
|
194 |
-
$content_type = 'application/json';
|
195 |
}
|
196 |
|
197 |
-
$pCurlOptions[ CURLOPT_HTTPHEADER ][] = 'Date: ' . $date;
|
198 |
-
|
199 |
$string_to_sign = implode( $eol, array(
|
200 |
-
$
|
201 |
$content_md5,
|
202 |
$content_type,
|
203 |
$date,
|
@@ -208,16 +245,20 @@
|
|
208 |
// the signature uses public key hash encoding.
|
209 |
$auth_type = ( $this->_secret !== $this->_public ) ? 'FS' : 'FSP';
|
210 |
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
|
|
|
|
|
|
|
|
219 |
|
220 |
-
return $
|
221 |
}
|
222 |
|
223 |
/**
|
@@ -233,68 +274,53 @@
|
|
233 |
$resource = explode( '?', $this->CanonizePath( $pPath ) );
|
234 |
$pResourceUrl = $resource[0];
|
235 |
|
236 |
-
$
|
237 |
-
$content_md5 = '';
|
238 |
-
$content_type = '';
|
239 |
-
$now = ( time() - self::$_clock_diff );
|
240 |
-
$date = date( 'r', $now );
|
241 |
-
|
242 |
-
$string_to_sign = implode( $eol, array(
|
243 |
-
'GET',
|
244 |
-
$content_md5,
|
245 |
-
$content_type,
|
246 |
-
$date,
|
247 |
-
$pResourceUrl
|
248 |
-
) );
|
249 |
-
|
250 |
-
// If secret and public keys are identical, it means that
|
251 |
-
// the signature uses public key hash encoding.
|
252 |
-
$auth_type = ( $this->_secret !== $this->_public ) ? 'FS' : 'FSP';
|
253 |
|
254 |
-
return
|
255 |
$pResourceUrl . '?' .
|
256 |
( 1 < count( $resource ) && ! empty( $resource[1] ) ? $resource[1] . '&' : '' ) .
|
257 |
http_build_query( array(
|
258 |
-
'auth_date' => $date,
|
259 |
-
'authorization' => $
|
260 |
-
$this->_public . ':' .
|
261 |
-
self::Base64UrlEncode( hash_hmac(
|
262 |
-
'sha256', $string_to_sign, $this->_secret
|
263 |
-
) )
|
264 |
) ), $this->_isSandbox );
|
265 |
}
|
266 |
|
267 |
/**
|
268 |
-
* @
|
269 |
-
*
|
|
|
|
|
270 |
*
|
271 |
* @return mixed
|
272 |
*/
|
273 |
-
private static function ExecuteRequest(
|
274 |
$start = microtime( true );
|
275 |
|
276 |
-
$
|
277 |
|
278 |
if ( FS_API__LOGGER_ON ) {
|
279 |
$end = microtime( true );
|
280 |
|
281 |
-
$has_body
|
|
|
282 |
|
283 |
self::$_logger[] = array(
|
284 |
'id' => count( self::$_logger ),
|
285 |
'start' => $start,
|
286 |
'end' => $end,
|
287 |
'total' => ( $end - $start ),
|
288 |
-
'method' => $
|
289 |
-
'path' => $
|
290 |
-
'body' => $has_body ? $
|
291 |
-
'result' => $
|
292 |
-
|
|
|
|
|
293 |
'backtrace' => debug_backtrace(),
|
294 |
);
|
295 |
}
|
296 |
|
297 |
-
return $
|
298 |
}
|
299 |
|
300 |
/**
|
@@ -308,7 +334,7 @@
|
|
308 |
* @param string $pCanonizedPath
|
309 |
* @param string $pMethod
|
310 |
* @param array $pParams
|
311 |
-
* @param null|
|
312 |
* @param bool $pIsSandbox
|
313 |
* @param null|callable $pBeforeExecutionFunction
|
314 |
*
|
@@ -320,14 +346,10 @@
|
|
320 |
$pCanonizedPath,
|
321 |
$pMethod = 'GET',
|
322 |
$pParams = array(),
|
323 |
-
$
|
324 |
$pIsSandbox = false,
|
325 |
$pBeforeExecutionFunction = null
|
326 |
) {
|
327 |
-
if ( ! FS_SDK__HAS_CURL ) {
|
328 |
-
self::ThrowNoCurlException();
|
329 |
-
}
|
330 |
-
|
331 |
// Connectivity errors simulation.
|
332 |
if ( FS_SDK__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE ) {
|
333 |
self::ThrowCloudFlareDDoSException();
|
@@ -335,105 +357,107 @@
|
|
335 |
self::ThrowSquidAclException();
|
336 |
}
|
337 |
|
338 |
-
if (
|
339 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
340 |
}
|
341 |
|
342 |
-
$
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
CURLOPT_HTTPHEADER => array(),
|
348 |
-
);
|
349 |
|
350 |
-
if (
|
351 |
if ( is_array( $pParams ) && 0 < count( $pParams ) ) {
|
352 |
-
$
|
353 |
-
$
|
354 |
-
$opts[ CURLOPT_POSTFIELDS ] = json_encode( $pParams );
|
355 |
}
|
356 |
-
|
357 |
-
$opts[ CURLOPT_RETURNTRANSFER ] = true;
|
358 |
}
|
359 |
|
360 |
$request_url = self::GetUrl( $pCanonizedPath, $pIsSandbox );
|
361 |
|
362 |
-
$opts[ CURLOPT_URL ] = $request_url;
|
363 |
-
$opts[ CURLOPT_CUSTOMREQUEST ] = $pMethod;
|
364 |
-
|
365 |
$resource = explode( '?', $pCanonizedPath );
|
366 |
|
367 |
-
// Disable the 'Expect: 100-continue' behaviour. This causes
|
368 |
// for 2 seconds if the server does not support this header.
|
369 |
-
$
|
370 |
|
371 |
if ( 'https' === substr( strtolower( $request_url ), 0, 5 ) ) {
|
372 |
-
$
|
373 |
-
$opts[ CURLOPT_SSL_VERIFYPEER ] = false;
|
374 |
}
|
375 |
|
376 |
if ( false !== $pBeforeExecutionFunction &&
|
377 |
is_callable( $pBeforeExecutionFunction )
|
378 |
) {
|
379 |
-
$
|
380 |
}
|
381 |
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
}
|
408 |
}
|
409 |
-
}
|
410 |
|
411 |
-
|
412 |
-
|
|
|
413 |
}
|
414 |
|
415 |
-
|
416 |
|
417 |
-
if ( empty( $
|
418 |
return null;
|
419 |
}
|
420 |
|
421 |
-
$decoded = json_decode( $
|
422 |
|
423 |
if ( is_null( $decoded ) ) {
|
424 |
-
if ( preg_match( '/Please turn JavaScript on/i', $
|
425 |
-
preg_match( '/text\/javascript/', $
|
426 |
) {
|
427 |
-
self::ThrowCloudFlareDDoSException( $
|
428 |
-
} else if ( preg_match( '/Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect./', $
|
429 |
-
preg_match( '/squid/', $
|
430 |
) {
|
431 |
-
self::ThrowSquidAclException( $
|
432 |
} else {
|
433 |
$decoded = (object) array(
|
434 |
'error' => (object) array(
|
435 |
'type' => 'Unknown',
|
436 |
-
'message' => $
|
437 |
'code' => 'unknown',
|
438 |
'http' => 402
|
439 |
)
|
@@ -447,13 +471,13 @@
|
|
447 |
|
448 |
/**
|
449 |
* Makes an HTTP request. This method can be overridden by subclasses if
|
450 |
-
* developers want to do fancier things or use something other than
|
451 |
-
* make the request.
|
452 |
*
|
453 |
-
* @param string
|
454 |
-
* @param string
|
455 |
-
* @param array
|
456 |
-
* @param null|
|
457 |
*
|
458 |
* @return object[]|object|null
|
459 |
*
|
@@ -463,7 +487,7 @@
|
|
463 |
$pCanonizedPath,
|
464 |
$pMethod = 'GET',
|
465 |
$pParams = array(),
|
466 |
-
$
|
467 |
) {
|
468 |
$resource = explode( '?', $pCanonizedPath );
|
469 |
|
@@ -474,15 +498,32 @@
|
|
474 |
$pCanonizedPath,
|
475 |
$pMethod,
|
476 |
$pParams,
|
477 |
-
$
|
478 |
$this->_isSandbox,
|
479 |
$sign_request ? array( &$this, 'SignRequest' ) : null
|
480 |
);
|
481 |
}
|
482 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
483 |
#----------------------------------------------------------------------------------
|
484 |
#region Connectivity Test
|
485 |
#----------------------------------------------------------------------------------
|
|
|
486 |
/**
|
487 |
* If successful connectivity to the API endpoint using ping.json endpoint.
|
488 |
*
|
@@ -539,56 +580,83 @@
|
|
539 |
#----------------------------------------------------------------------------------
|
540 |
|
541 |
/**
|
542 |
-
* @param
|
543 |
*
|
544 |
-
* @
|
545 |
*/
|
546 |
-
private static function
|
547 |
-
$
|
548 |
-
'error' => array(
|
549 |
-
'code' => curl_errno( $pCurlHandler ),
|
550 |
-
'message' => curl_error( $pCurlHandler ),
|
551 |
-
'type' => 'CurlException',
|
552 |
-
),
|
553 |
-
) );
|
554 |
|
555 |
-
|
556 |
-
throw $e;
|
557 |
}
|
558 |
|
559 |
/**
|
560 |
-
* @param
|
561 |
*
|
562 |
* @throws Freemius_Exception
|
563 |
*/
|
564 |
-
private static function
|
565 |
-
$
|
566 |
-
'
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
|
|
|
|
|
|
|
|
|
|
574 |
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
580 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
581 |
}
|
582 |
|
583 |
-
throw
|
584 |
-
'error' => (object) array(
|
585 |
-
'type' => 'cUrlMissing',
|
586 |
-
'message' => $pResult,
|
587 |
-
'code' => 'curl_missing',
|
588 |
-
'http' => 402
|
589 |
-
),
|
590 |
-
'missing_methods' => $missing_methods,
|
591 |
-
) );
|
592 |
}
|
593 |
|
594 |
/**
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Copyright 2016 Freemius, Inc.
|
4 |
*
|
5 |
* Licensed under the GPL v2 (the "License"); you may
|
6 |
* not use this file except in compliance with the License. You may obtain
|
78 |
define( 'FS_API__SANDBOX_ADDRESS', '://sandbox-api.freemius.com' );
|
79 |
}
|
80 |
|
81 |
+
if ( class_exists( 'Freemius_Api_WordPress' ) ) {
|
82 |
return;
|
83 |
}
|
84 |
|
85 |
+
class Freemius_Api_WordPress extends Freemius_Api_Base {
|
86 |
private static $_logger = array();
|
87 |
|
88 |
/**
|
172 |
/**
|
173 |
* Sign request with the following HTTP headers:
|
174 |
* Content-MD5: MD5(HTTP Request body)
|
175 |
+
* Date: Current date (i.e Sat, 14 Feb 2016 20:24:46 +0000)
|
176 |
* Authorization: FS {scope_entity_id}:{scope_entity_public_key}:base64encode(sha256(string_to_sign,
|
177 |
* {scope_entity_secret_key}))
|
178 |
*
|
179 |
* @param string $pResourceUrl
|
180 |
+
* @param array $pWPRemoteArgs
|
181 |
*
|
182 |
* @return array
|
183 |
*/
|
184 |
+
function SignRequest( $pResourceUrl, $pWPRemoteArgs ) {
|
185 |
+
$auth = $this->GenerateAuthorizationParams(
|
186 |
+
$pResourceUrl,
|
187 |
+
$pWPRemoteArgs['method'],
|
188 |
+
! empty( $pWPRemoteArgs['body'] ) ? $pWPRemoteArgs['body'] : ''
|
189 |
+
);
|
190 |
+
|
191 |
+
$pWPRemoteArgs['headers']['Date'] = $auth['date'];
|
192 |
+
$pWPRemoteArgs['headers']['Authorization'] = $auth['authorization'];
|
193 |
+
|
194 |
+
if ( ! empty( $auth['content_md5'] ) ) {
|
195 |
+
$pWPRemoteArgs['headers']['Content-MD5'] = $auth['content_md5'];
|
196 |
+
}
|
197 |
+
|
198 |
+
return $pWPRemoteArgs;
|
199 |
+
}
|
200 |
+
|
201 |
+
/**
|
202 |
+
* Generate Authorization request headers:
|
203 |
+
*
|
204 |
+
* Content-MD5: MD5(HTTP Request body)
|
205 |
+
* Date: Current date (i.e Sat, 14 Feb 2016 20:24:46 +0000)
|
206 |
+
* Authorization: FS {scope_entity_id}:{scope_entity_public_key}:base64encode(sha256(string_to_sign,
|
207 |
+
* {scope_entity_secret_key}))
|
208 |
+
*
|
209 |
+
* @author Vova Feldman
|
210 |
+
*
|
211 |
+
* @param string $pResourceUrl
|
212 |
+
* @param string $pMethod
|
213 |
+
* @param string $pPostParams
|
214 |
+
*
|
215 |
+
* @return array
|
216 |
+
* @throws Freemius_Exception
|
217 |
+
*/
|
218 |
+
function GenerateAuthorizationParams(
|
219 |
+
$pResourceUrl,
|
220 |
+
$pMethod = 'GET',
|
221 |
+
$pPostParams = ''
|
222 |
+
) {
|
223 |
+
$pMethod = strtoupper( $pMethod );
|
224 |
+
|
225 |
$eol = "\n";
|
226 |
$content_md5 = '';
|
227 |
+
$content_type = '';
|
228 |
$now = ( time() - self::$_clock_diff );
|
229 |
$date = date( 'r', $now );
|
|
|
230 |
|
231 |
+
if ( in_array( $pMethod, array( 'POST', 'PUT' ) ) && ! empty( $pPostParams ) ) {
|
232 |
+
$content_md5 = md5( $pPostParams );
|
233 |
+
$content_type = 'application/json';
|
|
|
234 |
}
|
235 |
|
|
|
|
|
236 |
$string_to_sign = implode( $eol, array(
|
237 |
+
$pMethod,
|
238 |
$content_md5,
|
239 |
$content_type,
|
240 |
$date,
|
245 |
// the signature uses public key hash encoding.
|
246 |
$auth_type = ( $this->_secret !== $this->_public ) ? 'FS' : 'FSP';
|
247 |
|
248 |
+
$auth = array(
|
249 |
+
'date' => $date,
|
250 |
+
'authorization' => $auth_type . ' ' . $this->_id . ':' .
|
251 |
+
$this->_public . ':' .
|
252 |
+
self::Base64UrlEncode( hash_hmac(
|
253 |
+
'sha256', $string_to_sign, $this->_secret
|
254 |
+
) )
|
255 |
+
);
|
256 |
+
|
257 |
+
if ( ! empty( $content_md5 ) ) {
|
258 |
+
$auth['content_md5'] = $content_md5;
|
259 |
+
}
|
260 |
|
261 |
+
return $auth;
|
262 |
}
|
263 |
|
264 |
/**
|
274 |
$resource = explode( '?', $this->CanonizePath( $pPath ) );
|
275 |
$pResourceUrl = $resource[0];
|
276 |
|
277 |
+
$auth = $this->GenerateAuthorizationParams( $pResourceUrl );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
|
279 |
+
return Freemius_Api_WordPress::GetUrl(
|
280 |
$pResourceUrl . '?' .
|
281 |
( 1 < count( $resource ) && ! empty( $resource[1] ) ? $resource[1] . '&' : '' ) .
|
282 |
http_build_query( array(
|
283 |
+
'auth_date' => $auth['date'],
|
284 |
+
'authorization' => $auth['authorization']
|
|
|
|
|
|
|
|
|
285 |
) ), $this->_isSandbox );
|
286 |
}
|
287 |
|
288 |
/**
|
289 |
+
* @author Vova Feldman
|
290 |
+
*
|
291 |
+
* @param string $pUrl
|
292 |
+
* @param array $pWPRemoteArgs
|
293 |
*
|
294 |
* @return mixed
|
295 |
*/
|
296 |
+
private static function ExecuteRequest( $pUrl, &$pWPRemoteArgs ) {
|
297 |
$start = microtime( true );
|
298 |
|
299 |
+
$response = wp_remote_request( $pUrl, $pWPRemoteArgs );
|
300 |
|
301 |
if ( FS_API__LOGGER_ON ) {
|
302 |
$end = microtime( true );
|
303 |
|
304 |
+
$has_body = ( isset( $pWPRemoteArgs['body'] ) && ! empty( $pWPRemoteArgs['body'] ) );
|
305 |
+
$is_http_error = is_wp_error( $response );
|
306 |
|
307 |
self::$_logger[] = array(
|
308 |
'id' => count( self::$_logger ),
|
309 |
'start' => $start,
|
310 |
'end' => $end,
|
311 |
'total' => ( $end - $start ),
|
312 |
+
'method' => $pWPRemoteArgs['method'],
|
313 |
+
'path' => $pUrl,
|
314 |
+
'body' => $has_body ? $pWPRemoteArgs['body'] : null,
|
315 |
+
'result' => ! $is_http_error ?
|
316 |
+
$response['body'] :
|
317 |
+
json_encode( $response->get_error_messages() ),
|
318 |
+
'code' => ! $is_http_error ? $response['response']['code'] : null,
|
319 |
'backtrace' => debug_backtrace(),
|
320 |
);
|
321 |
}
|
322 |
|
323 |
+
return $response;
|
324 |
}
|
325 |
|
326 |
/**
|
334 |
* @param string $pCanonizedPath
|
335 |
* @param string $pMethod
|
336 |
* @param array $pParams
|
337 |
+
* @param null|array $pWPRemoteArgs
|
338 |
* @param bool $pIsSandbox
|
339 |
* @param null|callable $pBeforeExecutionFunction
|
340 |
*
|
346 |
$pCanonizedPath,
|
347 |
$pMethod = 'GET',
|
348 |
$pParams = array(),
|
349 |
+
$pWPRemoteArgs = null,
|
350 |
$pIsSandbox = false,
|
351 |
$pBeforeExecutionFunction = null
|
352 |
) {
|
|
|
|
|
|
|
|
|
353 |
// Connectivity errors simulation.
|
354 |
if ( FS_SDK__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE ) {
|
355 |
self::ThrowCloudFlareDDoSException();
|
357 |
self::ThrowSquidAclException();
|
358 |
}
|
359 |
|
360 |
+
if ( empty( $pWPRemoteArgs ) ) {
|
361 |
+
$user_agent = 'Freemius/WordPress-SDK/' . Freemius_Api_Base::VERSION . '; ' .
|
362 |
+
home_url();
|
363 |
+
|
364 |
+
$pWPRemoteArgs = array(
|
365 |
+
'method' => strtoupper( $pMethod ),
|
366 |
+
'connect_timeout' => 10,
|
367 |
+
'timeout' => 60,
|
368 |
+
'follow_redirects' => true,
|
369 |
+
'redirection' => 5,
|
370 |
+
'user-agent' => $user_agent,
|
371 |
+
'blocking' => true,
|
372 |
+
);
|
373 |
}
|
374 |
|
375 |
+
if ( ! isset( $pWPRemoteArgs['headers'] ) ||
|
376 |
+
! is_array( $pWPRemoteArgs['headers'] )
|
377 |
+
) {
|
378 |
+
$pWPRemoteArgs['headers'] = array();
|
379 |
+
}
|
|
|
|
|
380 |
|
381 |
+
if ( in_array( $pMethod, array( 'POST', 'PUT' ) ) ) {
|
382 |
if ( is_array( $pParams ) && 0 < count( $pParams ) ) {
|
383 |
+
$pWPRemoteArgs['headers']['Content-type'] = 'application/json';
|
384 |
+
$pWPRemoteArgs['body'] = json_encode( $pParams );
|
|
|
385 |
}
|
|
|
|
|
386 |
}
|
387 |
|
388 |
$request_url = self::GetUrl( $pCanonizedPath, $pIsSandbox );
|
389 |
|
|
|
|
|
|
|
390 |
$resource = explode( '?', $pCanonizedPath );
|
391 |
|
392 |
+
// Disable the 'Expect: 100-continue' behaviour. This causes cURL to wait
|
393 |
// for 2 seconds if the server does not support this header.
|
394 |
+
$pWPRemoteArgs['headers']['Expect'] = '';
|
395 |
|
396 |
if ( 'https' === substr( strtolower( $request_url ), 0, 5 ) ) {
|
397 |
+
$pWPRemoteArgs['sslverify'] = false;
|
|
|
398 |
}
|
399 |
|
400 |
if ( false !== $pBeforeExecutionFunction &&
|
401 |
is_callable( $pBeforeExecutionFunction )
|
402 |
) {
|
403 |
+
$pWPRemoteArgs = call_user_func( $pBeforeExecutionFunction, $resource[0], $pWPRemoteArgs );
|
404 |
}
|
405 |
|
406 |
+
$result = self::ExecuteRequest( $request_url, $pWPRemoteArgs );
|
407 |
+
|
408 |
+
if ( is_wp_error( $result ) ) {
|
409 |
+
/**
|
410 |
+
* @var WP_Error $result
|
411 |
+
*/
|
412 |
+
if ( self::IsCurlError( $result ) ) {
|
413 |
+
/**
|
414 |
+
* With dual stacked DNS responses, it's possible for a server to
|
415 |
+
* have IPv6 enabled but not have IPv6 connectivity. If this is
|
416 |
+
* the case, cURL will try IPv4 first and if that fails, then it will
|
417 |
+
* fall back to IPv6 and the error EHOSTUNREACH is returned by the
|
418 |
+
* operating system.
|
419 |
+
*/
|
420 |
+
$matches = array();
|
421 |
+
$regex = '/Failed to connect to ([^:].*): Network is unreachable/';
|
422 |
+
if ( preg_match( $regex, $result->get_error_message( 'http_request_failed' ), $matches ) ) {
|
423 |
+
if ( strlen( @inet_pton( $matches[1] ) ) === 16 ) {
|
424 |
+
// error_log('Invalid IPv6 configuration on server, Please disable or get native IPv6 on your server.');
|
425 |
+
// Hook to an action triggered just before cURL is executed to resolve the IP version to v4.
|
426 |
+
add_action( 'http_api_curl', 'Freemius_Api_WordPress::CurlResolveToIPv4', 10, 1 );
|
427 |
+
|
428 |
+
// Re-run request.
|
429 |
+
$result = self::ExecuteRequest( $request_url, $pWPRemoteArgs );
|
430 |
+
}
|
431 |
}
|
432 |
}
|
|
|
433 |
|
434 |
+
if ( is_wp_error( $result ) ) {
|
435 |
+
self::ThrowWPRemoteException( $result );
|
436 |
+
}
|
437 |
}
|
438 |
|
439 |
+
$response_body = $result['body'];
|
440 |
|
441 |
+
if ( empty( $response_body ) ) {
|
442 |
return null;
|
443 |
}
|
444 |
|
445 |
+
$decoded = json_decode( $response_body );
|
446 |
|
447 |
if ( is_null( $decoded ) ) {
|
448 |
+
if ( preg_match( '/Please turn JavaScript on/i', $response_body ) &&
|
449 |
+
preg_match( '/text\/javascript/', $response_body )
|
450 |
) {
|
451 |
+
self::ThrowCloudFlareDDoSException( $response_body );
|
452 |
+
} else if ( preg_match( '/Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect./', $response_body ) &&
|
453 |
+
preg_match( '/squid/', $response_body )
|
454 |
) {
|
455 |
+
self::ThrowSquidAclException( $response_body );
|
456 |
} else {
|
457 |
$decoded = (object) array(
|
458 |
'error' => (object) array(
|
459 |
'type' => 'Unknown',
|
460 |
+
'message' => $response_body,
|
461 |
'code' => 'unknown',
|
462 |
'http' => 402
|
463 |
)
|
471 |
|
472 |
/**
|
473 |
* Makes an HTTP request. This method can be overridden by subclasses if
|
474 |
+
* developers want to do fancier things or use something other than wp_remote_request()
|
475 |
+
* to make the request.
|
476 |
*
|
477 |
+
* @param string $pCanonizedPath The URL to make the request to
|
478 |
+
* @param string $pMethod HTTP method
|
479 |
+
* @param array $pParams The parameters to use for the POST body
|
480 |
+
* @param null|array $pWPRemoteArgs wp_remote_request options.
|
481 |
*
|
482 |
* @return object[]|object|null
|
483 |
*
|
487 |
$pCanonizedPath,
|
488 |
$pMethod = 'GET',
|
489 |
$pParams = array(),
|
490 |
+
$pWPRemoteArgs = null
|
491 |
) {
|
492 |
$resource = explode( '?', $pCanonizedPath );
|
493 |
|
498 |
$pCanonizedPath,
|
499 |
$pMethod,
|
500 |
$pParams,
|
501 |
+
$pWPRemoteArgs,
|
502 |
$this->_isSandbox,
|
503 |
$sign_request ? array( &$this, 'SignRequest' ) : null
|
504 |
);
|
505 |
}
|
506 |
|
507 |
+
/**
|
508 |
+
* Sets CURLOPT_IPRESOLVE to CURL_IPRESOLVE_V4 for cURL-Handle provided as parameter
|
509 |
+
*
|
510 |
+
* @param resource $handle A cURL handle returned by curl_init()
|
511 |
+
*
|
512 |
+
* @return resource $handle A cURL handle returned by curl_init() with CURLOPT_IPRESOLVE set to
|
513 |
+
* CURL_IPRESOLVE_V4
|
514 |
+
*
|
515 |
+
* @link https://gist.github.com/golderweb/3a2aaec2d56125cc004e
|
516 |
+
*/
|
517 |
+
static function CurlResolveToIPv4( $handle ) {
|
518 |
+
curl_setopt( $handle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
|
519 |
+
|
520 |
+
return $handle;
|
521 |
+
}
|
522 |
+
|
523 |
#----------------------------------------------------------------------------------
|
524 |
#region Connectivity Test
|
525 |
#----------------------------------------------------------------------------------
|
526 |
+
|
527 |
/**
|
528 |
* If successful connectivity to the API endpoint using ping.json endpoint.
|
529 |
*
|
580 |
#----------------------------------------------------------------------------------
|
581 |
|
582 |
/**
|
583 |
+
* @param \WP_Error $pError
|
584 |
*
|
585 |
+
* @return bool
|
586 |
*/
|
587 |
+
private static function IsCurlError( WP_Error $pError ) {
|
588 |
+
$message = $pError->get_error_message( 'http_request_failed' );
|
|
|
|
|
|
|
|
|
|
|
|
|
589 |
|
590 |
+
return ( 0 === strpos( $message, 'cURL' ) );
|
|
|
591 |
}
|
592 |
|
593 |
/**
|
594 |
+
* @param WP_Error $pError
|
595 |
*
|
596 |
* @throws Freemius_Exception
|
597 |
*/
|
598 |
+
private static function ThrowWPRemoteException( WP_Error $pError ) {
|
599 |
+
if ( self::IsCurlError( $pError ) ) {
|
600 |
+
$message = $pError->get_error_message( 'http_request_failed' );
|
601 |
+
|
602 |
+
#region Check if there are any missing cURL methods.
|
603 |
+
|
604 |
+
$curl_required_methods = array(
|
605 |
+
'curl_version',
|
606 |
+
'curl_exec',
|
607 |
+
'curl_init',
|
608 |
+
'curl_close',
|
609 |
+
'curl_setopt',
|
610 |
+
'curl_setopt_array',
|
611 |
+
'curl_error',
|
612 |
+
);
|
613 |
|
614 |
+
// Find all missing methods.
|
615 |
+
$missing_methods = array();
|
616 |
+
foreach ( $curl_required_methods as $m ) {
|
617 |
+
if ( ! function_exists( $m ) ) {
|
618 |
+
$missing_methods[] = $m;
|
619 |
+
}
|
620 |
+
}
|
621 |
+
|
622 |
+
if ( ! empty( $missing_methods ) ) {
|
623 |
+
throw new Freemius_Exception( array(
|
624 |
+
'error' => (object) array(
|
625 |
+
'type' => 'cUrlMissing',
|
626 |
+
'message' => $message,
|
627 |
+
'code' => 'curl_missing',
|
628 |
+
'http' => 402
|
629 |
+
),
|
630 |
+
'missing_methods' => $missing_methods,
|
631 |
+
) );
|
632 |
}
|
633 |
+
|
634 |
+
#endregion
|
635 |
+
|
636 |
+
// cURL error - "cURL error {{errno}}: {{error}}".
|
637 |
+
$parts = explode( ':', substr( $message, strlen( 'cURL error ' ) ), 2 );
|
638 |
+
|
639 |
+
$code = ( 0 < count( $parts ) ) ? $parts[0] : 'http_request_failed';
|
640 |
+
$message = ( 1 < count( $parts ) ) ? $parts[1] : $message;
|
641 |
+
|
642 |
+
$e = new Freemius_Exception( array(
|
643 |
+
'error' => array(
|
644 |
+
'code' => $code,
|
645 |
+
'message' => $message,
|
646 |
+
'type' => 'CurlException',
|
647 |
+
),
|
648 |
+
) );
|
649 |
+
} else {
|
650 |
+
$e = new Freemius_Exception( array(
|
651 |
+
'error' => array(
|
652 |
+
'code' => $pError->get_error_code(),
|
653 |
+
'message' => $pError->get_error_message(),
|
654 |
+
'type' => 'WPRemoteException',
|
655 |
+
),
|
656 |
+
) );
|
657 |
}
|
658 |
|
659 |
+
throw $e;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
660 |
}
|
661 |
|
662 |
/**
|
freemius/includes/supplements/fs-essential-functions-1.1.7.1.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package Freemius
|
4 |
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
-
* @license
|
6 |
* @since 1.1.7
|
7 |
*/
|
8 |
|
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 |
|
freemius/languages/freemius-da_DK.mo
CHANGED
Binary file
|
freemius/languages/freemius-da_DK.po
CHANGED
@@ -1,1790 +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-
|
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
|
30 |
-
msgstr "
|
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
|
54 |
-
msgstr "
|
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 "
|
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
|
272 |
-
msgstr "
|
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 "
|
417 |
-
msgstr "
|
418 |
-
|
419 |
-
#: includes/i18n.php:132
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
msgid "
|
426 |
-
msgstr "
|
427 |
-
|
428 |
-
#: includes/i18n.php:134
|
429 |
-
msgid "
|
430 |
-
msgstr "
|
431 |
-
|
432 |
-
#: includes/i18n.php:135
|
433 |
-
msgid "
|
434 |
-
msgstr "
|
435 |
-
|
436 |
-
#: includes/i18n.php:136
|
437 |
-
msgid "
|
438 |
-
msgstr "
|
439 |
-
|
440 |
-
#: includes/i18n.php:137
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
msgid "No
|
447 |
-
msgstr "
|
448 |
-
|
449 |
-
#: includes/i18n.php:139
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
msgid "
|
461 |
-
msgstr "
|
462 |
-
|
463 |
-
#: includes/i18n.php:142
|
464 |
-
msgid "Activate
|
465 |
-
msgstr "Aktiver
|
466 |
-
|
467 |
-
#: includes/i18n.php:143
|
468 |
-
msgid "
|
469 |
-
msgstr "
|
470 |
-
|
471 |
-
#: includes/i18n.php:144
|
472 |
-
msgid "
|
473 |
-
msgstr "
|
474 |
-
|
475 |
-
#: includes/i18n.php:145
|
476 |
-
msgid "
|
477 |
-
msgstr "
|
478 |
-
|
479 |
-
#: includes/i18n.php:146
|
480 |
-
msgid "
|
481 |
-
msgstr "
|
482 |
-
|
483 |
-
#: includes/i18n.php:147
|
484 |
-
msgid "
|
485 |
-
msgstr "
|
486 |
-
|
487 |
-
#: includes/i18n.php:148
|
488 |
-
msgid "
|
489 |
-
msgstr "
|
490 |
-
|
491 |
-
#: includes/i18n.php:149
|
492 |
-
msgid "
|
493 |
-
msgstr "
|
494 |
-
|
495 |
-
#: includes/i18n.php:150
|
496 |
-
msgid "Deactivate"
|
497 |
-
msgstr "
|
498 |
-
|
499 |
-
#: includes/i18n.php:151
|
500 |
-
msgid "Skip &
|
501 |
-
msgstr "Spring over &
|
502 |
-
|
503 |
-
#: includes/i18n.php:152
|
504 |
-
msgid "
|
505 |
-
msgstr "
|
506 |
-
|
507 |
-
#: includes/i18n.php:153
|
508 |
-
msgid "
|
509 |
-
msgstr "
|
510 |
-
|
511 |
-
#: includes/i18n.php:154
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
msgid "
|
523 |
-
msgstr "
|
524 |
-
|
525 |
-
#: includes/i18n.php:157
|
526 |
-
msgid "Install Now"
|
527 |
-
msgstr "Installer nu"
|
528 |
-
|
529 |
-
#: includes/i18n.php:158
|
530 |
-
msgid "
|
531 |
-
msgstr "
|
532 |
-
|
533 |
-
#: includes/i18n.php:159
|
534 |
-
msgid "
|
535 |
-
msgstr "
|
536 |
-
|
537 |
-
#: includes/i18n.php:160
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
msgid "
|
549 |
-
msgstr "
|
550 |
-
|
551 |
-
#: includes/i18n.php:163
|
552 |
-
msgid "
|
553 |
-
msgstr "
|
554 |
-
|
555 |
-
#: includes/i18n.php:164
|
556 |
-
msgid "
|
557 |
-
msgstr "
|
558 |
-
|
559 |
-
#: includes/i18n.php:165
|
560 |
-
msgid "
|
561 |
-
msgstr "
|
562 |
-
|
563 |
-
#: includes/i18n.php:166
|
564 |
-
msgid "
|
565 |
-
msgstr "
|
566 |
-
|
567 |
-
#: includes/i18n.php:167
|
568 |
-
msgid "
|
569 |
-
msgstr "
|
570 |
-
|
571 |
-
#: includes/i18n.php:168
|
572 |
-
msgid "
|
573 |
-
msgstr "
|
574 |
-
|
575 |
-
#: includes/i18n.php:169
|
576 |
-
msgid "
|
577 |
-
msgstr "
|
578 |
-
|
579 |
-
#: includes/i18n.php:170
|
580 |
-
msgid "
|
581 |
-
msgstr "
|
582 |
-
|
583 |
-
#: includes/i18n.php:171
|
584 |
-
msgid "
|
585 |
-
msgstr "
|
586 |
-
|
587 |
-
#: includes/i18n.php:172
|
588 |
-
msgid "
|
589 |
-
msgstr "
|
590 |
-
|
591 |
-
#: includes/i18n.php:
|
592 |
-
msgid "
|
593 |
-
msgstr "
|
594 |
-
|
595 |
-
#: includes/i18n.php:176
|
596 |
-
msgid "
|
597 |
-
msgstr "
|
598 |
-
|
599 |
-
#: includes/i18n.php:
|
600 |
-
msgid "
|
601 |
-
msgstr "
|
602 |
-
|
603 |
-
#: includes/i18n.php:179
|
604 |
-
msgid "
|
605 |
-
msgstr "
|
606 |
-
|
607 |
-
#: includes/i18n.php:180
|
608 |
-
msgid "
|
609 |
-
msgstr "
|
610 |
-
|
611 |
-
#: includes/i18n.php:181
|
612 |
-
msgid "
|
613 |
-
msgstr "
|
614 |
-
|
615 |
-
#: includes/i18n.php:182
|
616 |
-
msgid "
|
617 |
-
msgstr "
|
618 |
-
|
619 |
-
#: includes/i18n.php:183
|
620 |
-
msgid "
|
621 |
-
msgstr "
|
622 |
-
|
623 |
-
#: includes/i18n.php:184
|
624 |
-
msgid "
|
625 |
-
msgstr "
|
626 |
-
|
627 |
-
#: includes/i18n.php:185
|
628 |
-
msgid "
|
629 |
-
msgstr "
|
630 |
-
|
631 |
-
#: includes/i18n.php:186
|
632 |
-
msgid "
|
633 |
-
msgstr "
|
634 |
-
|
635 |
-
#: includes/i18n.php:187
|
636 |
-
msgid "
|
637 |
-
msgstr "
|
638 |
-
|
639 |
-
#: includes/i18n.php:188
|
640 |
-
msgid "
|
641 |
-
msgstr "
|
642 |
-
|
643 |
-
#: includes/i18n.php:189
|
644 |
-
msgid "
|
645 |
-
msgstr "
|
646 |
-
|
647 |
-
#: includes/i18n.php:190
|
648 |
-
msgid "I
|
649 |
-
msgstr "
|
650 |
-
|
651 |
-
#: includes/i18n.php:191
|
652 |
-
msgid "
|
653 |
-
msgstr "
|
654 |
-
|
655 |
-
#: includes/i18n.php:192
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
msgid "
|
682 |
-
msgstr "
|
683 |
-
|
684 |
-
#: includes/i18n.php:200
|
685 |
-
msgid "
|
686 |
-
msgstr "
|
687 |
-
|
688 |
-
#: includes/i18n.php:201
|
689 |
-
msgid "
|
690 |
-
msgstr "
|
691 |
-
|
692 |
-
#: includes/i18n.php:202
|
693 |
-
msgid "What
|
694 |
-
msgstr "
|
695 |
-
|
696 |
-
#: includes/i18n.php:203
|
697 |
-
msgid "
|
698 |
-
msgstr "
|
699 |
-
|
700 |
-
#: includes/i18n.php:204
|
701 |
-
msgid "
|
702 |
-
msgstr "
|
703 |
-
|
704 |
-
#: includes/i18n.php:205
|
705 |
-
msgid "
|
706 |
-
msgstr "
|
707 |
-
|
708 |
-
#: includes/i18n.php:206
|
709 |
-
msgid "
|
710 |
-
msgstr "
|
711 |
-
|
712 |
-
#: includes/i18n.php:207
|
713 |
-
msgid "
|
714 |
-
msgstr "
|
715 |
-
|
716 |
-
#: includes/i18n.php:208
|
717 |
-
msgid "
|
718 |
-
msgstr "
|
719 |
-
|
720 |
-
#: includes/i18n.php:
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
msgid "Thanks
|
752 |
-
msgstr "
|
753 |
-
|
754 |
-
#: includes/i18n.php:220
|
755 |
-
msgid "
|
756 |
-
msgstr "
|
757 |
-
|
758 |
-
#: includes/i18n.php:221
|
759 |
-
msgid "
|
760 |
-
msgstr "
|
761 |
-
|
762 |
-
#: includes/i18n.php:222
|
763 |
-
msgid "
|
764 |
-
msgstr "
|
765 |
-
|
766 |
-
#: includes/i18n.php:223
|
767 |
-
msgid "
|
768 |
-
msgstr "
|
769 |
-
|
770 |
-
#: includes/i18n.php:224
|
771 |
-
msgid "
|
772 |
-
msgstr "
|
773 |
-
|
774 |
-
#: includes/i18n.php:225
|
775 |
-
msgid "
|
776 |
-
msgstr "
|
777 |
-
|
778 |
-
#: includes/i18n.php:226
|
779 |
-
msgid "
|
780 |
-
msgstr "
|
781 |
-
|
782 |
-
#: includes/i18n.php:227
|
783 |
-
msgid "
|
784 |
-
msgstr "
|
785 |
-
|
786 |
-
#: includes/i18n.php:228
|
787 |
-
msgid "
|
788 |
-
msgstr "
|
789 |
-
|
790 |
-
#: includes/i18n.php:229
|
791 |
-
msgid "
|
792 |
-
msgstr "
|
793 |
-
|
794 |
-
#: includes/i18n.php:230
|
795 |
-
msgid "
|
796 |
-
msgstr "
|
797 |
-
|
798 |
-
#: includes/i18n.php:231
|
799 |
-
msgid "
|
800 |
-
msgstr "
|
801 |
-
|
802 |
-
#: includes/i18n.php:232
|
803 |
-
msgid "
|
804 |
-
msgstr "
|
805 |
-
|
806 |
-
#: includes/i18n.php:233
|
807 |
-
msgid "
|
808 |
-
msgstr "
|
809 |
-
|
810 |
-
#: includes/i18n.php:234
|
811 |
-
msgid "
|
812 |
-
msgstr "
|
813 |
-
|
814 |
-
#: includes/i18n.php:235
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
msgid "
|
832 |
-
msgstr "
|
833 |
-
|
834 |
-
#: includes/i18n.php:
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
msgid "
|
841 |
-
msgstr "
|
842 |
-
|
843 |
-
#: includes/i18n.php:
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
msgid "
|
861 |
-
msgstr "
|
862 |
-
|
863 |
-
#: includes/i18n.php:246
|
864 |
-
msgid "
|
865 |
-
msgstr "
|
866 |
-
|
867 |
-
#: includes/i18n.php:247
|
868 |
-
msgid "
|
869 |
-
msgstr "
|
870 |
-
|
871 |
-
#: includes/i18n.php:248
|
872 |
-
msgid "
|
873 |
-
msgstr "
|
874 |
-
|
875 |
-
#: includes/i18n.php:249
|
876 |
-
msgid "
|
877 |
-
msgstr "
|
878 |
-
|
879 |
-
#: includes/i18n.php:250
|
880 |
-
msgid "
|
881 |
-
msgstr "
|
882 |
-
|
883 |
-
#: includes/i18n.php:251
|
884 |
-
msgid "
|
885 |
-
msgstr "
|
886 |
-
|
887 |
-
#: includes/i18n.php:252
|
888 |
-
msgid "
|
889 |
-
msgstr "
|
890 |
-
|
891 |
-
#: includes/i18n.php:253
|
892 |
-
msgid "
|
893 |
-
msgstr "
|
894 |
-
|
895 |
-
#: includes/i18n.php:254
|
896 |
-
msgid "
|
897 |
-
msgstr "
|
898 |
-
|
899 |
-
#: includes/i18n.php:255
|
900 |
-
msgid "We
|
901 |
-
msgstr "We
|
902 |
-
|
903 |
-
#: includes/i18n.php:256
|
904 |
-
msgid "
|
905 |
-
msgstr "
|
906 |
-
|
907 |
-
#: includes/i18n.php:257
|
908 |
-
msgid "
|
909 |
-
msgstr "
|
910 |
-
|
911 |
-
#: includes/i18n.php:
|
912 |
-
msgid "
|
913 |
-
msgstr "
|
914 |
-
|
915 |
-
#: includes/i18n.php:
|
916 |
-
msgid "
|
917 |
-
msgstr "
|
918 |
-
|
919 |
-
#: includes/i18n.php:
|
920 |
-
msgid "
|
921 |
-
msgstr "
|
922 |
-
|
923 |
-
#: includes/i18n.php:
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
msgid "
|
945 |
-
msgstr "
|
946 |
-
|
947 |
-
#: includes/i18n.php:
|
948 |
-
msgctxt "as
|
949 |
-
msgid "
|
950 |
-
msgstr "
|
951 |
-
|
952 |
-
#: includes/i18n.php:
|
953 |
-
msgctxt "as
|
954 |
-
msgid "
|
955 |
-
msgstr "
|
956 |
-
|
957 |
-
#: includes/i18n.php:
|
958 |
-
msgctxt "as
|
959 |
-
msgid "
|
960 |
-
msgstr "
|
961 |
-
|
962 |
-
#: includes/i18n.php:
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
msgid "
|
979 |
-
msgstr "
|
980 |
-
|
981 |
-
#: includes/i18n.php:
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
msgid "
|
999 |
-
msgstr "
|
1000 |
-
|
1001 |
-
#: includes/i18n.php:284
|
1002 |
-
msgid "
|
1003 |
-
msgstr "
|
1004 |
-
|
1005 |
-
#: includes/i18n.php:285
|
1006 |
-
msgid "
|
1007 |
-
msgstr "
|
1008 |
-
|
1009 |
-
#: includes/i18n.php:286
|
1010 |
-
msgid "
|
1011 |
-
msgstr "
|
1012 |
-
|
1013 |
-
#: includes/i18n.php:287
|
1014 |
-
msgid "
|
1015 |
-
msgstr "
|
1016 |
-
|
1017 |
-
#: includes/i18n.php:288
|
1018 |
-
msgid "
|
1019 |
-
msgstr "
|
1020 |
-
|
1021 |
-
#: includes/i18n.php:289
|
1022 |
-
msgid "
|
1023 |
-
msgstr "
|
1024 |
-
|
1025 |
-
#: includes/i18n.php:290
|
1026 |
-
msgid "
|
1027 |
-
msgstr "
|
1028 |
-
|
1029 |
-
#: includes/i18n.php:291
|
1030 |
-
msgid "
|
1031 |
-
msgstr "
|
1032 |
-
|
1033 |
-
#: includes/i18n.php:292
|
1034 |
-
msgid "
|
1035 |
-
msgstr "
|
1036 |
-
|
1037 |
-
#: includes/i18n.php:293
|
1038 |
-
msgid "
|
1039 |
-
msgstr "
|
1040 |
-
|
1041 |
-
#: includes/i18n.php:294
|
1042 |
-
msgid "
|
1043 |
-
msgstr "
|
1044 |
-
|
1045 |
-
#: includes/i18n.php:295
|
1046 |
-
msgid "
|
1047 |
-
msgstr "
|
1048 |
-
|
1049 |
-
#: includes/i18n.php:296
|
1050 |
-
msgid "
|
1051 |
-
msgstr "
|
1052 |
-
|
1053 |
-
#: includes/i18n.php:297
|
1054 |
-
msgid "
|
1055 |
-
msgstr "
|
1056 |
-
|
1057 |
-
#: includes/i18n.php:298
|
1058 |
-
msgid "
|
1059 |
-
msgstr "
|
1060 |
-
|
1061 |
-
#: includes/i18n.php:299
|
1062 |
-
msgid "
|
1063 |
-
msgstr "
|
1064 |
-
|
1065 |
-
#: includes/i18n.php:300
|
1066 |
-
msgid "
|
1067 |
-
msgstr "
|
1068 |
-
|
1069 |
-
#: includes/i18n.php:
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
msgid "
|
1087 |
-
msgstr "
|
1088 |
-
|
1089 |
-
#: includes/i18n.php:
|
1090 |
-
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
msgid "
|
1101 |
-
msgstr "
|
1102 |
-
|
1103 |
-
#: includes/i18n.php:
|
1104 |
-
msgctxt "
|
1105 |
-
msgid "
|
1106 |
-
msgstr "
|
1107 |
-
|
1108 |
-
#: includes/i18n.php:
|
1109 |
-
msgctxt "
|
1110 |
-
msgid "
|
1111 |
-
msgstr "
|
1112 |
-
|
1113 |
-
#: includes/i18n.php:
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
msgid "
|
1135 |
-
msgstr "
|
1136 |
-
|
1137 |
-
#: includes/i18n.php:325
|
1138 |
-
msgid "
|
1139 |
-
msgstr "
|
1140 |
-
|
1141 |
-
#: includes/i18n.php:326
|
1142 |
-
msgid "
|
1143 |
-
msgstr "
|
1144 |
-
|
1145 |
-
#: includes/i18n.php:327
|
1146 |
-
msgid "
|
1147 |
-
msgstr "
|
1148 |
-
|
1149 |
-
#: includes/i18n.php:328
|
1150 |
-
msgid "
|
1151 |
-
msgstr "
|
1152 |
-
|
1153 |
-
#: includes/i18n.php:329
|
1154 |
-
msgid "
|
1155 |
-
msgstr "
|
1156 |
-
|
1157 |
-
#: includes/i18n.php:330
|
1158 |
-
msgid "
|
1159 |
-
msgstr "
|
1160 |
-
|
1161 |
-
#: includes/i18n.php:331
|
1162 |
-
msgid "
|
1163 |
-
msgstr "
|
1164 |
-
|
1165 |
-
#: includes/i18n.php:332
|
1166 |
-
msgid "
|
1167 |
-
msgstr "
|
1168 |
-
|
1169 |
-
#: includes/i18n.php:333
|
1170 |
-
msgid "
|
1171 |
-
msgstr "
|
1172 |
-
|
1173 |
-
#: includes/i18n.php:334
|
1174 |
-
msgid "
|
1175 |
-
msgstr "
|
1176 |
-
|
1177 |
-
#: includes/i18n.php:335
|
1178 |
-
msgid "
|
1179 |
-
msgstr "
|
1180 |
-
|
1181 |
-
#: includes/i18n.php:336
|
1182 |
-
msgid "
|
1183 |
-
msgstr "
|
1184 |
-
|
1185 |
-
#: includes/i18n.php:337
|
1186 |
-
msgid "
|
1187 |
-
msgstr "
|
1188 |
-
|
1189 |
-
#: includes/i18n.php:338
|
1190 |
-
msgid "
|
1191 |
-
msgstr "
|
1192 |
-
|
1193 |
-
#: includes/i18n.php:339
|
1194 |
-
msgid "
|
1195 |
-
msgstr "
|
1196 |
-
|
1197 |
-
#: includes/i18n.php:340
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
msgid "
|
1224 |
-
msgstr "
|
1225 |
-
|
1226 |
-
#: includes/i18n.php:348
|
1227 |
-
msgid "Your
|
1228 |
-
msgstr "
|
1229 |
-
|
1230 |
-
#: includes/i18n.php:349
|
1231 |
-
msgid "Your
|
1232 |
-
msgstr "
|
1233 |
-
|
1234 |
-
#: includes/i18n.php:350
|
1235 |
-
msgid "
|
1236 |
-
msgstr "
|
1237 |
-
|
1238 |
-
#: includes/i18n.php:351
|
1239 |
-
msgid "Your
|
1240 |
-
msgstr "Din
|
1241 |
-
|
1242 |
-
#: includes/i18n.php:352
|
1243 |
-
msgid "
|
1244 |
-
msgstr "
|
1245 |
-
|
1246 |
-
#: includes/i18n.php:353
|
1247 |
-
msgid "
|
1248 |
-
msgstr "
|
1249 |
-
|
1250 |
-
#: includes/i18n.php:354
|
1251 |
-
msgid "
|
1252 |
-
msgstr "
|
1253 |
-
|
1254 |
-
#: includes/i18n.php:355
|
1255 |
-
msgid "Your
|
1256 |
-
msgstr "Din
|
1257 |
-
|
1258 |
-
#: includes/i18n.php:356
|
1259 |
-
msgid "
|
1260 |
-
msgstr "
|
1261 |
-
|
1262 |
-
#: includes/i18n.php:357
|
1263 |
-
msgid "
|
1264 |
-
msgstr "
|
1265 |
-
|
1266 |
-
#: includes/i18n.php:358
|
1267 |
-
msgid "It looks like
|
1268 |
-
msgstr "
|
1269 |
-
|
1270 |
-
#: includes/i18n.php:359
|
1271 |
-
msgid "
|
1272 |
-
msgstr "
|
1273 |
-
|
1274 |
-
#: includes/i18n.php:360
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
msgid "
|
1319 |
-
msgstr "
|
1320 |
-
|
1321 |
-
#: includes/i18n.php:372
|
1322 |
-
msgid "
|
1323 |
-
msgstr "
|
1324 |
-
|
1325 |
-
#: includes/i18n.php:373
|
1326 |
-
msgid "
|
1327 |
-
msgstr "
|
1328 |
-
|
1329 |
-
#: includes/i18n.php:374
|
1330 |
-
msgid "
|
1331 |
-
msgstr "
|
1332 |
-
|
1333 |
-
#: includes/i18n.php:375
|
1334 |
-
msgid "
|
1335 |
-
msgstr "
|
1336 |
-
|
1337 |
-
#: includes/i18n.php:376
|
1338 |
-
msgid "
|
1339 |
-
msgstr "
|
1340 |
-
|
1341 |
-
#: includes/i18n.php:377
|
1342 |
-
msgid "
|
1343 |
-
msgstr "
|
1344 |
-
|
1345 |
-
#: includes/i18n.php:378
|
1346 |
-
msgid "
|
1347 |
-
msgstr "
|
1348 |
-
|
1349 |
-
#: includes/i18n.php:379
|
1350 |
-
msgid "
|
1351 |
-
msgstr "
|
1352 |
-
|
1353 |
-
#: includes/i18n.php:380
|
1354 |
-
msgid "Please contact
|
1355 |
-
msgstr "
|
1356 |
-
|
1357 |
-
#: includes/i18n.php:381
|
1358 |
-
msgid "
|
1359 |
-
msgstr "
|
1360 |
-
|
1361 |
-
#: includes/i18n.php:
|
1362 |
-
msgid "
|
1363 |
-
msgstr "
|
1364 |
-
|
1365 |
-
#: includes/i18n.php:
|
1366 |
-
msgid "
|
1367 |
-
msgstr "
|
1368 |
-
|
1369 |
-
#: includes/i18n.php:
|
1370 |
-
msgid "
|
1371 |
-
msgstr "
|
1372 |
-
|
1373 |
-
#: includes/i18n.php:
|
1374 |
-
msgid "
|
1375 |
-
msgstr "
|
1376 |
-
|
1377 |
-
#: includes/i18n.php:
|
1378 |
-
msgid "
|
1379 |
-
msgstr "
|
1380 |
-
|
1381 |
-
#: includes/i18n.php:
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
msgid "
|
1408 |
-
msgstr "
|
1409 |
-
|
1410 |
-
#: includes/i18n.php:
|
1411 |
-
msgid "
|
1412 |
-
msgstr "
|
1413 |
-
|
1414 |
-
#: includes/i18n.php:
|
1415 |
-
msgid "
|
1416 |
-
msgstr "
|
1417 |
-
|
1418 |
-
#: includes/i18n.php:
|
1419 |
-
msgid "
|
1420 |
-
msgstr "Vi
|
1421 |
-
|
1422 |
-
#: includes/i18n.php:
|
1423 |
-
msgid "
|
1424 |
-
msgstr "
|
1425 |
-
|
1426 |
-
#: includes/i18n.php:
|
1427 |
-
msgid "
|
1428 |
-
msgstr "
|
1429 |
-
|
1430 |
-
#: includes/i18n.php:
|
1431 |
-
msgid "
|
1432 |
-
msgstr "
|
1433 |
-
|
1434 |
-
#: includes/i18n.php:404
|
1435 |
-
msgid "
|
1436 |
-
msgstr "
|
1437 |
-
|
1438 |
-
#: includes/i18n.php:405
|
1439 |
-
msgid "
|
1440 |
-
msgstr "
|
1441 |
-
|
1442 |
-
#: includes/i18n.php:406
|
1443 |
-
msgid "
|
1444 |
-
msgstr "
|
1445 |
-
|
1446 |
-
#: includes/i18n.php:407
|
1447 |
-
msgid "
|
1448 |
-
msgstr "
|
1449 |
-
|
1450 |
-
#: includes/i18n.php:408
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
msgid "
|
1489 |
-
msgstr "
|
1490 |
-
|
1491 |
-
#: includes/i18n.php:
|
1492 |
-
msgid "
|
1493 |
-
msgstr "
|
1494 |
-
|
1495 |
-
#: includes/i18n.php:
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
|
1523 |
-
|
1524 |
-
msgid "
|
1525 |
-
msgstr "
|
1526 |
-
|
1527 |
-
#: includes/i18n.php:
|
1528 |
-
|
1529 |
-
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
|
1534 |
-
|
1535 |
-
|
1536 |
-
|
1537 |
-
|
1538 |
-
msgid "
|
1539 |
-
msgstr "
|
1540 |
-
|
1541 |
-
#: includes/i18n.php:
|
1542 |
-
msgctxt "
|
1543 |
-
msgid "
|
1544 |
-
msgstr "
|
1545 |
-
|
1546 |
-
#: includes/i18n.php:
|
1547 |
-
msgctxt "
|
1548 |
-
msgid "
|
1549 |
-
msgstr "
|
1550 |
-
|
1551 |
-
#: includes/i18n.php:
|
1552 |
-
msgctxt "as a
|
1553 |
-
msgid "
|
1554 |
-
msgstr "
|
1555 |
-
|
1556 |
-
#: includes/i18n.php:445
|
1557 |
-
|
1558 |
-
|
1559 |
-
|
1560 |
-
|
1561 |
-
|
1562 |
-
msgid "
|
1563 |
-
msgstr "
|
1564 |
-
|
1565 |
-
#: includes/i18n.php:
|
1566 |
-
|
1567 |
-
|
1568 |
-
|
1569 |
-
|
1570 |
-
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
-
|
1579 |
-
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
1583 |
-
|
1584 |
-
|
1585 |
-
|
1586 |
-
msgid "
|
1587 |
-
msgstr "
|
1588 |
-
|
1589 |
-
#: includes/i18n.php:
|
1590 |
-
msgid "
|
1591 |
-
msgstr "
|
1592 |
-
|
1593 |
-
#: includes/i18n.php:
|
1594 |
-
msgid "
|
1595 |
-
msgstr "
|
1596 |
-
|
1597 |
-
#: includes/i18n.php:465
|
1598 |
-
msgid "
|
1599 |
-
msgstr "
|
1600 |
-
|
1601 |
-
#: includes/i18n.php:466
|
1602 |
-
msgid "
|
1603 |
-
msgstr "
|
1604 |
-
|
1605 |
-
#: includes/i18n.php:467
|
1606 |
-
msgid "
|
1607 |
-
msgstr "
|
1608 |
-
|
1609 |
-
#: includes/i18n.php:468
|
1610 |
-
msgid "
|
1611 |
-
msgstr "
|
1612 |
-
|
1613 |
-
#: includes/i18n.php:
|
1614 |
-
msgid "
|
1615 |
-
msgstr "
|
1616 |
-
|
1617 |
-
#: includes/i18n.php:
|
1618 |
-
msgid "
|
1619 |
-
msgstr "
|
1620 |
-
|
1621 |
-
#: includes/i18n.php:
|
1622 |
-
msgid "
|
1623 |
-
msgstr "
|
1624 |
-
|
1625 |
-
#: includes/i18n.php:
|
1626 |
-
msgid "
|
1627 |
-
msgstr "
|
1628 |
-
|
1629 |
-
#: includes/i18n.php:
|
1630 |
-
msgid "
|
1631 |
-
msgstr "
|
1632 |
-
|
1633 |
-
#: includes/i18n.php:
|
1634 |
-
msgid "
|
1635 |
-
msgstr "
|
1636 |
-
|
1637 |
-
#: includes/i18n.php:
|
1638 |
-
msgid "
|
1639 |
-
msgstr "
|
1640 |
-
|
1641 |
-
#: includes/i18n.php:
|
1642 |
-
msgid "
|
1643 |
-
msgstr "
|
1644 |
-
|
1645 |
-
#: includes/i18n.php:482
|
1646 |
-
msgid "
|
1647 |
-
msgstr "
|
1648 |
-
|
1649 |
-
#: includes/i18n.php:483
|
1650 |
-
msgid "
|
1651 |
-
msgstr "
|
1652 |
-
|
1653 |
-
#: includes/i18n.php:484
|
1654 |
-
msgid "
|
1655 |
-
msgstr "
|
1656 |
-
|
1657 |
-
#: includes/i18n.php:485
|
1658 |
-
msgid "
|
1659 |
-
msgstr "
|
1660 |
-
|
1661 |
-
#: includes/i18n.php:486
|
1662 |
-
msgid "
|
1663 |
-
msgstr "
|
1664 |
-
|
1665 |
-
#: includes/i18n.php:
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
1674 |
-
|
1675 |
-
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
|
1680 |
-
|
1681 |
-
|
1682 |
-
msgid "
|
1683 |
-
msgstr "
|
1684 |
-
|
1685 |
-
#: includes/i18n.php:
|
1686 |
-
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
|
1704 |
-
|
1705 |
-
|
1706 |
-
|
1707 |
-
|
1708 |
-
msgid "
|
1709 |
-
msgstr "
|
1710 |
-
|
1711 |
-
#: includes/i18n.php:
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
-
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
-
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
msgid "
|
1729 |
-
msgstr "
|
1730 |
-
|
1731 |
-
#: includes/i18n.php:
|
1732 |
-
|
1733 |
-
|
1734 |
-
|
1735 |
-
|
1736 |
-
|
1737 |
-
|
1738 |
-
|
1739 |
-
|
1740 |
-
|
1741 |
-
|
1742 |
-
|
1743 |
-
|
1744 |
-
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
|
1768 |
-
|
1769 |
-
msgid "
|
1770 |
-
msgstr "
|
1771 |
-
|
1772 |
-
#: includes/i18n.php:
|
1773 |
-
msgid "
|
1774 |
-
msgstr "
|
1775 |
-
|
1776 |
-
#: includes/i18n.php:
|
1777 |
-
msgid "
|
1778 |
-
msgstr "
|
1779 |
-
|
1780 |
-
#: includes/i18n.php:
|
1781 |
-
msgid "
|
1782 |
-
msgstr "
|
1783 |
-
|
1784 |
-
#: includes/i18n.php:
|
1785 |
-
msgid "
|
1786 |
-
msgstr "
|
1787 |
-
|
1788 |
-
#: includes/i18n.php:
|
1789 |
-
msgid "
|
1790 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.mo
CHANGED
Binary file
|
freemius/languages/freemius-en.po
CHANGED
@@ -1,1788 +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
|
28 |
-
msgstr "Add
|
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
|
52 |
-
msgstr "Add
|
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
|
270 |
-
msgstr "We made a few tweaks to the
|
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 "
|
415 |
-
msgstr "
|
416 |
-
|
417 |
-
#: includes/i18n.php:132
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
msgid "
|
424 |
-
msgstr "
|
425 |
-
|
426 |
-
#: includes/i18n.php:134
|
427 |
-
msgid "
|
428 |
-
msgstr "
|
429 |
-
|
430 |
-
#: includes/i18n.php:135
|
431 |
-
msgid "
|
432 |
-
msgstr "
|
433 |
-
|
434 |
-
#: includes/i18n.php:136
|
435 |
-
msgid "
|
436 |
-
msgstr "
|
437 |
-
|
438 |
-
#: includes/i18n.php:137
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
msgid "No
|
445 |
-
msgstr "No
|
446 |
-
|
447 |
-
#: includes/i18n.php:139
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
msgid "
|
459 |
-
msgstr "
|
460 |
-
|
461 |
-
#: includes/i18n.php:142
|
462 |
-
msgid "Activate
|
463 |
-
msgstr "Activate
|
464 |
-
|
465 |
-
#: includes/i18n.php:143
|
466 |
-
msgid "
|
467 |
-
msgstr "
|
468 |
-
|
469 |
-
#: includes/i18n.php:144
|
470 |
-
msgid "
|
471 |
-
msgstr "
|
472 |
-
|
473 |
-
#: includes/i18n.php:145
|
474 |
-
msgid "
|
475 |
-
msgstr "
|
476 |
-
|
477 |
-
#: includes/i18n.php:146
|
478 |
-
msgid "
|
479 |
-
msgstr "
|
480 |
-
|
481 |
-
#: includes/i18n.php:147
|
482 |
-
msgid "
|
483 |
-
msgstr "
|
484 |
-
|
485 |
-
#: includes/i18n.php:148
|
486 |
-
msgid "
|
487 |
-
msgstr "
|
488 |
-
|
489 |
-
#: includes/i18n.php:149
|
490 |
-
msgid "
|
491 |
-
msgstr "
|
492 |
-
|
493 |
-
#: includes/i18n.php:150
|
494 |
-
msgid "Deactivate"
|
495 |
-
msgstr "Deactivate"
|
496 |
-
|
497 |
-
#: includes/i18n.php:151
|
498 |
-
msgid "Skip &
|
499 |
-
msgstr "Skip &
|
500 |
-
|
501 |
-
#: includes/i18n.php:152
|
502 |
-
msgid "
|
503 |
-
msgstr "
|
504 |
-
|
505 |
-
#: includes/i18n.php:153
|
506 |
-
msgid "
|
507 |
-
msgstr "
|
508 |
-
|
509 |
-
#: includes/i18n.php:154
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
msgid "
|
521 |
-
msgstr "
|
522 |
-
|
523 |
-
#: includes/i18n.php:157
|
524 |
-
msgid "Install Now"
|
525 |
-
msgstr "Install Now"
|
526 |
-
|
527 |
-
#: includes/i18n.php:158
|
528 |
-
msgid "
|
529 |
-
msgstr "
|
530 |
-
|
531 |
-
#: includes/i18n.php:159
|
532 |
-
msgid "
|
533 |
-
msgstr "
|
534 |
-
|
535 |
-
#: includes/i18n.php:160
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
msgid "
|
547 |
-
msgstr "
|
548 |
-
|
549 |
-
#: includes/i18n.php:163
|
550 |
-
msgid "
|
551 |
-
msgstr "
|
552 |
-
|
553 |
-
#: includes/i18n.php:164
|
554 |
-
msgid "
|
555 |
-
msgstr "
|
556 |
-
|
557 |
-
#: includes/i18n.php:165
|
558 |
-
msgid "
|
559 |
-
msgstr "
|
560 |
-
|
561 |
-
#: includes/i18n.php:166
|
562 |
-
msgid "
|
563 |
-
msgstr "
|
564 |
-
|
565 |
-
#: includes/i18n.php:167
|
566 |
-
msgid "
|
567 |
-
msgstr "
|
568 |
-
|
569 |
-
#: includes/i18n.php:168
|
570 |
-
msgid "
|
571 |
-
msgstr "
|
572 |
-
|
573 |
-
#: includes/i18n.php:169
|
574 |
-
msgid "
|
575 |
-
msgstr "
|
576 |
-
|
577 |
-
#: includes/i18n.php:170
|
578 |
-
msgid "
|
579 |
-
msgstr "
|
580 |
-
|
581 |
-
#: includes/i18n.php:171
|
582 |
-
msgid "
|
583 |
-
msgstr "
|
584 |
-
|
585 |
-
#: includes/i18n.php:172
|
586 |
-
msgid "
|
587 |
-
msgstr "
|
588 |
-
|
589 |
-
#: includes/i18n.php:
|
590 |
-
msgid "
|
591 |
-
msgstr "
|
592 |
-
|
593 |
-
#: includes/i18n.php:176
|
594 |
-
msgid "
|
595 |
-
msgstr "
|
596 |
-
|
597 |
-
#: includes/i18n.php:
|
598 |
-
msgid "
|
599 |
-
msgstr "
|
600 |
-
|
601 |
-
#: includes/i18n.php:179
|
602 |
-
msgid "
|
603 |
-
msgstr "
|
604 |
-
|
605 |
-
#: includes/i18n.php:180
|
606 |
-
msgid "
|
607 |
-
msgstr "
|
608 |
-
|
609 |
-
#: includes/i18n.php:181
|
610 |
-
msgid "
|
611 |
-
msgstr "
|
612 |
-
|
613 |
-
#: includes/i18n.php:182
|
614 |
-
msgid "
|
615 |
-
msgstr "
|
616 |
-
|
617 |
-
#: includes/i18n.php:183
|
618 |
-
msgid "
|
619 |
-
msgstr "
|
620 |
-
|
621 |
-
#: includes/i18n.php:184
|
622 |
-
msgid "
|
623 |
-
msgstr "
|
624 |
-
|
625 |
-
#: includes/i18n.php:185
|
626 |
-
msgid "
|
627 |
-
msgstr "
|
628 |
-
|
629 |
-
#: includes/i18n.php:186
|
630 |
-
msgid "
|
631 |
-
msgstr "
|
632 |
-
|
633 |
-
#: includes/i18n.php:187
|
634 |
-
msgid "
|
635 |
-
msgstr "
|
636 |
-
|
637 |
-
#: includes/i18n.php:188
|
638 |
-
msgid "
|
639 |
-
msgstr "
|
640 |
-
|
641 |
-
#: includes/i18n.php:189
|
642 |
-
msgid "
|
643 |
-
msgstr "
|
644 |
-
|
645 |
-
#: includes/i18n.php:190
|
646 |
-
msgid "I
|
647 |
-
msgstr "I
|
648 |
-
|
649 |
-
#: includes/i18n.php:191
|
650 |
-
msgid "
|
651 |
-
msgstr "
|
652 |
-
|
653 |
-
#: includes/i18n.php:192
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
msgid "
|
680 |
-
msgstr "
|
681 |
-
|
682 |
-
#: includes/i18n.php:200
|
683 |
-
msgid "
|
684 |
-
msgstr "
|
685 |
-
|
686 |
-
#: includes/i18n.php:201
|
687 |
-
msgid "
|
688 |
-
msgstr "
|
689 |
-
|
690 |
-
#: includes/i18n.php:202
|
691 |
-
msgid "What
|
692 |
-
msgstr "What
|
693 |
-
|
694 |
-
#: includes/i18n.php:203
|
695 |
-
msgid "
|
696 |
-
msgstr "
|
697 |
-
|
698 |
-
#: includes/i18n.php:204
|
699 |
-
msgid "
|
700 |
-
msgstr "
|
701 |
-
|
702 |
-
#: includes/i18n.php:205
|
703 |
-
msgid "
|
704 |
-
msgstr "
|
705 |
-
|
706 |
-
#: includes/i18n.php:206
|
707 |
-
msgid "
|
708 |
-
msgstr "
|
709 |
-
|
710 |
-
#: includes/i18n.php:207
|
711 |
-
msgid "
|
712 |
-
msgstr "
|
713 |
-
|
714 |
-
#: includes/i18n.php:208
|
715 |
-
msgid "
|
716 |
-
msgstr "
|
717 |
-
|
718 |
-
#: includes/i18n.php:
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
msgid "Thanks
|
750 |
-
msgstr "Thanks
|
751 |
-
|
752 |
-
#: includes/i18n.php:220
|
753 |
-
msgid "
|
754 |
-
msgstr "
|
755 |
-
|
756 |
-
#: includes/i18n.php:221
|
757 |
-
msgid "
|
758 |
-
msgstr "
|
759 |
-
|
760 |
-
#: includes/i18n.php:222
|
761 |
-
msgid "
|
762 |
-
msgstr "
|
763 |
-
|
764 |
-
#: includes/i18n.php:223
|
765 |
-
msgid "
|
766 |
-
msgstr "
|
767 |
-
|
768 |
-
#: includes/i18n.php:224
|
769 |
-
msgid "
|
770 |
-
msgstr "
|
771 |
-
|
772 |
-
#: includes/i18n.php:225
|
773 |
-
msgid "
|
774 |
-
msgstr "
|
775 |
-
|
776 |
-
#: includes/i18n.php:226
|
777 |
-
msgid "
|
778 |
-
msgstr "
|
779 |
-
|
780 |
-
#: includes/i18n.php:227
|
781 |
-
msgid "
|
782 |
-
msgstr "
|
783 |
-
|
784 |
-
#: includes/i18n.php:228
|
785 |
-
msgid "
|
786 |
-
msgstr "
|
787 |
-
|
788 |
-
#: includes/i18n.php:229
|
789 |
-
msgid "
|
790 |
-
msgstr "
|
791 |
-
|
792 |
-
#: includes/i18n.php:230
|
793 |
-
msgid "
|
794 |
-
msgstr "
|
795 |
-
|
796 |
-
#: includes/i18n.php:231
|
797 |
-
msgid "
|
798 |
-
msgstr "
|
799 |
-
|
800 |
-
#: includes/i18n.php:232
|
801 |
-
msgid "
|
802 |
-
msgstr "
|
803 |
-
|
804 |
-
#: includes/i18n.php:233
|
805 |
-
msgid "
|
806 |
-
msgstr "
|
807 |
-
|
808 |
-
#: includes/i18n.php:234
|
809 |
-
msgid "
|
810 |
-
msgstr "
|
811 |
-
|
812 |
-
#: includes/i18n.php:235
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
msgid "
|
830 |
-
msgstr "
|
831 |
-
|
832 |
-
#: includes/i18n.php:
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
msgid "
|
839 |
-
msgstr "
|
840 |
-
|
841 |
-
#: includes/i18n.php:
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
msgid "
|
859 |
-
msgstr "
|
860 |
-
|
861 |
-
#: includes/i18n.php:246
|
862 |
-
msgid "
|
863 |
-
msgstr "
|
864 |
-
|
865 |
-
#: includes/i18n.php:247
|
866 |
-
msgid "
|
867 |
-
msgstr "
|
868 |
-
|
869 |
-
#: includes/i18n.php:248
|
870 |
-
msgid "
|
871 |
-
msgstr "
|
872 |
-
|
873 |
-
#: includes/i18n.php:249
|
874 |
-
msgid "
|
875 |
-
msgstr "
|
876 |
-
|
877 |
-
#: includes/i18n.php:250
|
878 |
-
msgid "
|
879 |
-
msgstr "
|
880 |
-
|
881 |
-
#: includes/i18n.php:251
|
882 |
-
msgid "
|
883 |
-
msgstr "
|
884 |
-
|
885 |
-
#: includes/i18n.php:252
|
886 |
-
msgid "
|
887 |
-
msgstr "
|
888 |
-
|
889 |
-
#: includes/i18n.php:253
|
890 |
-
msgid "
|
891 |
-
msgstr "
|
892 |
-
|
893 |
-
#: includes/i18n.php:254
|
894 |
-
msgid "
|
895 |
-
msgstr "
|
896 |
-
|
897 |
-
#: includes/i18n.php:255
|
898 |
-
msgid "We
|
899 |
-
msgstr "We
|
900 |
-
|
901 |
-
#: includes/i18n.php:256
|
902 |
-
msgid "
|
903 |
-
msgstr "
|
904 |
-
|
905 |
-
#: includes/i18n.php:257
|
906 |
-
msgid "
|
907 |
-
msgstr "
|
908 |
-
|
909 |
-
#: includes/i18n.php:
|
910 |
-
msgid "
|
911 |
-
msgstr "
|
912 |
-
|
913 |
-
#: includes/i18n.php:
|
914 |
-
msgid "
|
915 |
-
msgstr "
|
916 |
-
|
917 |
-
#: includes/i18n.php:
|
918 |
-
msgid "
|
919 |
-
msgstr "
|
920 |
-
|
921 |
-
#: includes/i18n.php:
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
msgid "
|
943 |
-
msgstr "
|
944 |
-
|
945 |
-
#: includes/i18n.php:
|
946 |
-
msgctxt "as
|
947 |
-
msgid "
|
948 |
-
msgstr "
|
949 |
-
|
950 |
-
#: includes/i18n.php:
|
951 |
-
msgctxt "as
|
952 |
-
msgid "
|
953 |
-
msgstr "
|
954 |
-
|
955 |
-
#: includes/i18n.php:
|
956 |
-
msgctxt "as
|
957 |
-
msgid "
|
958 |
-
msgstr "
|
959 |
-
|
960 |
-
#: includes/i18n.php:
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
msgid "
|
977 |
-
msgstr "
|
978 |
-
|
979 |
-
#: includes/i18n.php:
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
msgid "
|
997 |
-
msgstr "
|
998 |
-
|
999 |
-
#: includes/i18n.php:284
|
1000 |
-
msgid "
|
1001 |
-
msgstr "
|
1002 |
-
|
1003 |
-
#: includes/i18n.php:285
|
1004 |
-
msgid "
|
1005 |
-
msgstr "
|
1006 |
-
|
1007 |
-
#: includes/i18n.php:286
|
1008 |
-
msgid "
|
1009 |
-
msgstr "
|
1010 |
-
|
1011 |
-
#: includes/i18n.php:287
|
1012 |
-
msgid "
|
1013 |
-
msgstr "
|
1014 |
-
|
1015 |
-
#: includes/i18n.php:288
|
1016 |
-
msgid "
|
1017 |
-
msgstr "
|
1018 |
-
|
1019 |
-
#: includes/i18n.php:289
|
1020 |
-
msgid "
|
1021 |
-
msgstr "
|
1022 |
-
|
1023 |
-
#: includes/i18n.php:290
|
1024 |
-
msgid "
|
1025 |
-
msgstr "
|
1026 |
-
|
1027 |
-
#: includes/i18n.php:291
|
1028 |
-
msgid "
|
1029 |
-
msgstr "
|
1030 |
-
|
1031 |
-
#: includes/i18n.php:292
|
1032 |
-
msgid "
|
1033 |
-
msgstr "
|
1034 |
-
|
1035 |
-
#: includes/i18n.php:293
|
1036 |
-
msgid "
|
1037 |
-
msgstr "
|
1038 |
-
|
1039 |
-
#: includes/i18n.php:294
|
1040 |
-
msgid "
|
1041 |
-
msgstr "
|
1042 |
-
|
1043 |
-
#: includes/i18n.php:295
|
1044 |
-
msgid "
|
1045 |
-
msgstr "
|
1046 |
-
|
1047 |
-
#: includes/i18n.php:296
|
1048 |
-
msgid "
|
1049 |
-
msgstr "
|
1050 |
-
|
1051 |
-
#: includes/i18n.php:297
|
1052 |
-
msgid "
|
1053 |
-
msgstr "
|
1054 |
-
|
1055 |
-
#: includes/i18n.php:298
|
1056 |
-
msgid "
|
1057 |
-
msgstr "
|
1058 |
-
|
1059 |
-
#: includes/i18n.php:299
|
1060 |
-
msgid "
|
1061 |
-
msgstr "
|
1062 |
-
|
1063 |
-
#: includes/i18n.php:300
|
1064 |
-
msgid "
|
1065 |
-
msgstr "
|
1066 |
-
|
1067 |
-
#: includes/i18n.php:
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
msgid "
|
1085 |
-
msgstr "
|
1086 |
-
|
1087 |
-
#: includes/i18n.php:
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
msgid "
|
1099 |
-
msgstr "
|
1100 |
-
|
1101 |
-
#: includes/i18n.php:
|
1102 |
-
msgctxt "
|
1103 |
-
msgid "
|
1104 |
-
msgstr "
|
1105 |
-
|
1106 |
-
#: includes/i18n.php:
|
1107 |
-
msgctxt "
|
1108 |
-
msgid "
|
1109 |
-
msgstr "
|
1110 |
-
|
1111 |
-
#: includes/i18n.php:
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
msgid "
|
1133 |
-
msgstr "
|
1134 |
-
|
1135 |
-
#: includes/i18n.php:325
|
1136 |
-
msgid "
|
1137 |
-
msgstr "
|
1138 |
-
|
1139 |
-
#: includes/i18n.php:326
|
1140 |
-
msgid "
|
1141 |
-
msgstr "
|
1142 |
-
|
1143 |
-
#: includes/i18n.php:327
|
1144 |
-
msgid "
|
1145 |
-
msgstr "
|
1146 |
-
|
1147 |
-
#: includes/i18n.php:328
|
1148 |
-
msgid "
|
1149 |
-
msgstr "
|
1150 |
-
|
1151 |
-
#: includes/i18n.php:329
|
1152 |
-
msgid "
|
1153 |
-
msgstr "
|
1154 |
-
|
1155 |
-
#: includes/i18n.php:330
|
1156 |
-
msgid "
|
1157 |
-
msgstr "
|
1158 |
-
|
1159 |
-
#: includes/i18n.php:331
|
1160 |
-
msgid "
|
1161 |
-
msgstr "
|
1162 |
-
|
1163 |
-
#: includes/i18n.php:332
|
1164 |
-
msgid "
|
1165 |
-
msgstr "
|
1166 |
-
|
1167 |
-
#: includes/i18n.php:333
|
1168 |
-
msgid "
|
1169 |
-
msgstr "
|
1170 |
-
|
1171 |
-
#: includes/i18n.php:334
|
1172 |
-
msgid "
|
1173 |
-
msgstr "
|
1174 |
-
|
1175 |
-
#: includes/i18n.php:335
|
1176 |
-
msgid "
|
1177 |
-
msgstr "
|
1178 |
-
|
1179 |
-
#: includes/i18n.php:336
|
1180 |
-
msgid "
|
1181 |
-
msgstr "
|
1182 |
-
|
1183 |
-
#: includes/i18n.php:337
|
1184 |
-
msgid "
|
1185 |
-
msgstr "
|
1186 |
-
|
1187 |
-
#: includes/i18n.php:338
|
1188 |
-
msgid "
|
1189 |
-
msgstr "
|
1190 |
-
|
1191 |
-
#: includes/i18n.php:339
|
1192 |
-
msgid "
|
1193 |
-
msgstr "
|
1194 |
-
|
1195 |
-
#: includes/i18n.php:340
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
msgid "
|
1222 |
-
msgstr "
|
1223 |
-
|
1224 |
-
#: includes/i18n.php:348
|
1225 |
-
msgid "Your
|
1226 |
-
msgstr "Your
|
1227 |
-
|
1228 |
-
#: includes/i18n.php:349
|
1229 |
-
msgid "Your
|
1230 |
-
msgstr "Your
|
1231 |
-
|
1232 |
-
#: includes/i18n.php:350
|
1233 |
-
msgid "
|
1234 |
-
msgstr "
|
1235 |
-
|
1236 |
-
#: includes/i18n.php:351
|
1237 |
-
msgid "Your
|
1238 |
-
msgstr "Your
|
1239 |
-
|
1240 |
-
#: includes/i18n.php:352
|
1241 |
-
msgid "
|
1242 |
-
msgstr "
|
1243 |
-
|
1244 |
-
#: includes/i18n.php:353
|
1245 |
-
msgid "
|
1246 |
-
msgstr "
|
1247 |
-
|
1248 |
-
#: includes/i18n.php:354
|
1249 |
-
msgid "
|
1250 |
-
msgstr "
|
1251 |
-
|
1252 |
-
#: includes/i18n.php:355
|
1253 |
-
msgid "Your
|
1254 |
-
msgstr "Your
|
1255 |
-
|
1256 |
-
#: includes/i18n.php:356
|
1257 |
-
msgid "
|
1258 |
-
msgstr "
|
1259 |
-
|
1260 |
-
#: includes/i18n.php:357
|
1261 |
-
msgid "
|
1262 |
-
msgstr "
|
1263 |
-
|
1264 |
-
#: includes/i18n.php:358
|
1265 |
-
msgid "It looks like
|
1266 |
-
msgstr "It looks like
|
1267 |
-
|
1268 |
-
#: includes/i18n.php:359
|
1269 |
-
msgid "
|
1270 |
-
msgstr "
|
1271 |
-
|
1272 |
-
#: includes/i18n.php:360
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
msgid "
|
1317 |
-
msgstr "
|
1318 |
-
|
1319 |
-
#: includes/i18n.php:372
|
1320 |
-
msgid "
|
1321 |
-
msgstr "
|
1322 |
-
|
1323 |
-
#: includes/i18n.php:373
|
1324 |
-
msgid "
|
1325 |
-
msgstr "
|
1326 |
-
|
1327 |
-
#: includes/i18n.php:374
|
1328 |
-
msgid "
|
1329 |
-
msgstr "
|
1330 |
-
|
1331 |
-
#: includes/i18n.php:375
|
1332 |
-
msgid "
|
1333 |
-
msgstr "
|
1334 |
-
|
1335 |
-
#: includes/i18n.php:376
|
1336 |
-
msgid "
|
1337 |
-
msgstr "
|
1338 |
-
|
1339 |
-
#: includes/i18n.php:377
|
1340 |
-
msgid "
|
1341 |
-
msgstr "
|
1342 |
-
|
1343 |
-
#: includes/i18n.php:378
|
1344 |
-
msgid "
|
1345 |
-
msgstr "
|
1346 |
-
|
1347 |
-
#: includes/i18n.php:379
|
1348 |
-
msgid "
|
1349 |
-
msgstr "
|
1350 |
-
|
1351 |
-
#: includes/i18n.php:380
|
1352 |
-
msgid "Please contact
|
1353 |
-
msgstr "Please contact
|
1354 |
-
|
1355 |
-
#: includes/i18n.php:381
|
1356 |
-
msgid "
|
1357 |
-
msgstr "
|
1358 |
-
|
1359 |
-
#: includes/i18n.php:
|
1360 |
-
msgid "
|
1361 |
-
msgstr "
|
1362 |
-
|
1363 |
-
#: includes/i18n.php:
|
1364 |
-
msgid "
|
1365 |
-
msgstr "
|
1366 |
-
|
1367 |
-
#: includes/i18n.php:
|
1368 |
-
msgid "
|
1369 |
-
msgstr "
|
1370 |
-
|
1371 |
-
#: includes/i18n.php:
|
1372 |
-
msgid "
|
1373 |
-
msgstr "
|
1374 |
-
|
1375 |
-
#: includes/i18n.php:
|
1376 |
-
msgid "
|
1377 |
-
msgstr "
|
1378 |
-
|
1379 |
-
#: includes/i18n.php:
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
msgid "
|
1406 |
-
msgstr "
|
1407 |
-
|
1408 |
-
#: includes/i18n.php:
|
1409 |
-
msgid "
|
1410 |
-
msgstr "
|
1411 |
-
|
1412 |
-
#: includes/i18n.php:
|
1413 |
-
msgid "
|
1414 |
-
msgstr "
|
1415 |
-
|
1416 |
-
#: includes/i18n.php:
|
1417 |
-
msgid "
|
1418 |
-
msgstr "
|
1419 |
-
|
1420 |
-
#: includes/i18n.php:
|
1421 |
-
msgid "
|
1422 |
-
msgstr "
|
1423 |
-
|
1424 |
-
#: includes/i18n.php:
|
1425 |
-
msgid "
|
1426 |
-
msgstr "
|
1427 |
-
|
1428 |
-
#: includes/i18n.php:
|
1429 |
-
msgid "
|
1430 |
-
msgstr "
|
1431 |
-
|
1432 |
-
#: includes/i18n.php:404
|
1433 |
-
msgid "
|
1434 |
-
msgstr "
|
1435 |
-
|
1436 |
-
#: includes/i18n.php:405
|
1437 |
-
msgid "
|
1438 |
-
msgstr "
|
1439 |
-
|
1440 |
-
#: includes/i18n.php:406
|
1441 |
-
msgid "
|
1442 |
-
msgstr "
|
1443 |
-
|
1444 |
-
#: includes/i18n.php:407
|
1445 |
-
msgid "
|
1446 |
-
msgstr "
|
1447 |
-
|
1448 |
-
#: includes/i18n.php:408
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
msgid "
|
1487 |
-
msgstr "
|
1488 |
-
|
1489 |
-
#: includes/i18n.php:
|
1490 |
-
msgid "
|
1491 |
-
msgstr "
|
1492 |
-
|
1493 |
-
#: includes/i18n.php:
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
msgid "
|
1523 |
-
msgstr "
|
1524 |
-
|
1525 |
-
#: includes/i18n.php:
|
1526 |
-
|
1527 |
-
|
1528 |
-
|
1529 |
-
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
|
1534 |
-
|
1535 |
-
|
1536 |
-
msgid "
|
1537 |
-
msgstr "
|
1538 |
-
|
1539 |
-
#: includes/i18n.php:
|
1540 |
-
msgctxt "
|
1541 |
-
msgid "
|
1542 |
-
msgstr "
|
1543 |
-
|
1544 |
-
#: includes/i18n.php:
|
1545 |
-
msgctxt "
|
1546 |
-
msgid "
|
1547 |
-
msgstr "
|
1548 |
-
|
1549 |
-
#: includes/i18n.php:
|
1550 |
-
msgctxt "as a
|
1551 |
-
msgid "
|
1552 |
-
msgstr "
|
1553 |
-
|
1554 |
-
#: includes/i18n.php:445
|
1555 |
-
|
1556 |
-
|
1557 |
-
|
1558 |
-
|
1559 |
-
|
1560 |
-
msgid "
|
1561 |
-
msgstr "
|
1562 |
-
|
1563 |
-
#: includes/i18n.php:
|
1564 |
-
|
1565 |
-
|
1566 |
-
|
1567 |
-
|
1568 |
-
|
1569 |
-
|
1570 |
-
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
-
|
1579 |
-
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
1583 |
-
|
1584 |
-
msgid "
|
1585 |
-
msgstr "
|
1586 |
-
|
1587 |
-
#: includes/i18n.php:
|
1588 |
-
msgid "
|
1589 |
-
msgstr "
|
1590 |
-
|
1591 |
-
#: includes/i18n.php:
|
1592 |
-
msgid "
|
1593 |
-
msgstr "
|
1594 |
-
|
1595 |
-
#: includes/i18n.php:465
|
1596 |
-
msgid "
|
1597 |
-
msgstr "
|
1598 |
-
|
1599 |
-
#: includes/i18n.php:466
|
1600 |
-
msgid "
|
1601 |
-
msgstr "
|
1602 |
-
|
1603 |
-
#: includes/i18n.php:467
|
1604 |
-
msgid "
|
1605 |
-
msgstr "
|
1606 |
-
|
1607 |
-
#: includes/i18n.php:468
|
1608 |
-
msgid "
|
1609 |
-
msgstr "
|
1610 |
-
|
1611 |
-
#: includes/i18n.php:
|
1612 |
-
msgid "
|
1613 |
-
msgstr "
|
1614 |
-
|
1615 |
-
#: includes/i18n.php:
|
1616 |
-
msgid "
|
1617 |
-
msgstr "
|
1618 |
-
|
1619 |
-
#: includes/i18n.php:
|
1620 |
-
msgid "
|
1621 |
-
msgstr "
|
1622 |
-
|
1623 |
-
#: includes/i18n.php:
|
1624 |
-
msgid "
|
1625 |
-
msgstr "
|
1626 |
-
|
1627 |
-
#: includes/i18n.php:
|
1628 |
-
msgid "
|
1629 |
-
msgstr "
|
1630 |
-
|
1631 |
-
#: includes/i18n.php:
|
1632 |
-
msgid "
|
1633 |
-
msgstr "
|
1634 |
-
|
1635 |
-
#: includes/i18n.php:
|
1636 |
-
msgid "
|
1637 |
-
msgstr "
|
1638 |
-
|
1639 |
-
#: includes/i18n.php:
|
1640 |
-
msgid "
|
1641 |
-
msgstr "
|
1642 |
-
|
1643 |
-
#: includes/i18n.php:482
|
1644 |
-
msgid "
|
1645 |
-
msgstr "
|
1646 |
-
|
1647 |
-
#: includes/i18n.php:483
|
1648 |
-
msgid "
|
1649 |
-
msgstr "
|
1650 |
-
|
1651 |
-
#: includes/i18n.php:484
|
1652 |
-
msgid "
|
1653 |
-
msgstr "
|
1654 |
-
|
1655 |
-
#: includes/i18n.php:485
|
1656 |
-
msgid "
|
1657 |
-
msgstr "
|
1658 |
-
|
1659 |
-
#: includes/i18n.php:486
|
1660 |
-
msgid "
|
1661 |
-
msgstr "
|
1662 |
-
|
1663 |
-
#: includes/i18n.php:
|
1664 |
-
|
1665 |
-
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
1674 |
-
|
1675 |
-
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
|
1680 |
-
msgid "
|
1681 |
-
msgstr "
|
1682 |
-
|
1683 |
-
#: includes/i18n.php:
|
1684 |
-
|
1685 |
-
|
1686 |
-
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
|
1704 |
-
|
1705 |
-
|
1706 |
-
msgid "
|
1707 |
-
msgstr "
|
1708 |
-
|
1709 |
-
#: includes/i18n.php:
|
1710 |
-
|
1711 |
-
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
-
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
-
|
1725 |
-
|
1726 |
-
msgid "
|
1727 |
-
msgstr "
|
1728 |
-
|
1729 |
-
#: includes/i18n.php:
|
1730 |
-
|
1731 |
-
|
1732 |
-
|
1733 |
-
|
1734 |
-
|
1735 |
-
|
1736 |
-
|
1737 |
-
|
1738 |
-
|
1739 |
-
|
1740 |
-
|
1741 |
-
|
1742 |
-
|
1743 |
-
|
1744 |
-
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
msgid "
|
1768 |
-
msgstr "
|
1769 |
-
|
1770 |
-
#: includes/i18n.php:
|
1771 |
-
msgid "
|
1772 |
-
msgstr "
|
1773 |
-
|
1774 |
-
#: includes/i18n.php:
|
1775 |
-
msgid "
|
1776 |
-
msgstr "
|
1777 |
-
|
1778 |
-
#: includes/i18n.php:
|
1779 |
-
msgid "
|
1780 |
-
msgstr "
|
1781 |
-
|
1782 |
-
#: includes/i18n.php:
|
1783 |
-
msgid "
|
1784 |
-
msgstr "
|
1785 |
-
|
1786 |
-
#: includes/i18n.php:
|
1787 |
-
msgid "
|
1788 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.mo
CHANGED
Binary file
|
freemius/languages/freemius-he.po
CHANGED
@@ -1,1791 +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-
|
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
|
31 |
-
msgstr "
|
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
|
55 |
-
msgstr "
|
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
|
273 |
-
msgstr "
|
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 "
|
418 |
-
msgstr "התקנות
|
419 |
-
|
420 |
-
#: includes/i18n.php:132
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
msgid "
|
427 |
-
msgstr "
|
428 |
-
|
429 |
-
#: includes/i18n.php:134
|
430 |
-
msgid "
|
431 |
-
msgstr "מזהה
|
432 |
-
|
433 |
-
#: includes/i18n.php:135
|
434 |
-
msgid "
|
435 |
-
msgstr "
|
436 |
-
|
437 |
-
#: includes/i18n.php:136
|
438 |
-
msgid "
|
439 |
-
msgstr "מפתח
|
440 |
-
|
441 |
-
#: includes/i18n.php:137
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
msgid "No
|
448 |
-
msgstr "אין
|
449 |
-
|
450 |
-
#: includes/i18n.php:139
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
msgid "
|
462 |
-
msgstr "
|
463 |
-
|
464 |
-
#: includes/i18n.php:142
|
465 |
-
msgid "Activate
|
466 |
-
msgstr "הפעלת
|
467 |
-
|
468 |
-
#: includes/i18n.php:143
|
469 |
-
msgid "
|
470 |
-
msgstr "
|
471 |
-
|
472 |
-
#: includes/i18n.php:144
|
473 |
-
msgid "
|
474 |
-
msgstr "
|
475 |
-
|
476 |
-
#: includes/i18n.php:145
|
477 |
-
msgid "
|
478 |
-
msgstr "
|
479 |
-
|
480 |
-
#: includes/i18n.php:146
|
481 |
-
msgid "
|
482 |
-
msgstr "
|
483 |
-
|
484 |
-
#: includes/i18n.php:147
|
485 |
-
msgid "
|
486 |
-
msgstr "
|
487 |
-
|
488 |
-
#: includes/i18n.php:148
|
489 |
-
msgid "
|
490 |
-
msgstr "
|
491 |
-
|
492 |
-
#: includes/i18n.php:149
|
493 |
-
msgid "
|
494 |
-
msgstr "
|
495 |
-
|
496 |
-
#: includes/i18n.php:150
|
497 |
-
msgid "Deactivate"
|
498 |
-
msgstr "כיבוי"
|
499 |
-
|
500 |
-
#: includes/i18n.php:151
|
501 |
-
msgid "Skip &
|
502 |
-
msgstr "דלג
|
503 |
-
|
504 |
-
#: includes/i18n.php:152
|
505 |
-
msgid "
|
506 |
-
msgstr "
|
507 |
-
|
508 |
-
#: includes/i18n.php:153
|
509 |
-
msgid "
|
510 |
-
msgstr "
|
511 |
-
|
512 |
-
#: includes/i18n.php:154
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
msgid "
|
524 |
-
msgstr "
|
525 |
-
|
526 |
-
#: includes/i18n.php:157
|
527 |
-
msgid "Install Now"
|
528 |
-
msgstr "התקן
|
529 |
-
|
530 |
-
#: includes/i18n.php:158
|
531 |
-
msgid "
|
532 |
-
msgstr "
|
533 |
-
|
534 |
-
#: includes/i18n.php:159
|
535 |
-
msgid "
|
536 |
-
msgstr "
|
537 |
-
|
538 |
-
#: includes/i18n.php:160
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
msgid "
|
550 |
-
msgstr "
|
551 |
-
|
552 |
-
#: includes/i18n.php:163
|
553 |
-
msgid "
|
554 |
-
msgstr "
|
555 |
-
|
556 |
-
#: includes/i18n.php:164
|
557 |
-
msgid "
|
558 |
-
msgstr "
|
559 |
-
|
560 |
-
#: includes/i18n.php:165
|
561 |
-
msgid "
|
562 |
-
msgstr "
|
563 |
-
|
564 |
-
#: includes/i18n.php:166
|
565 |
-
msgid "
|
566 |
-
msgstr "
|
567 |
-
|
568 |
-
#: includes/i18n.php:167
|
569 |
-
msgid "
|
570 |
-
msgstr "
|
571 |
-
|
572 |
-
#: includes/i18n.php:168
|
573 |
-
msgid "
|
574 |
-
msgstr "
|
575 |
-
|
576 |
-
#: includes/i18n.php:169
|
577 |
-
msgid "
|
578 |
-
msgstr "
|
579 |
-
|
580 |
-
#: includes/i18n.php:170
|
581 |
-
msgid "
|
582 |
-
msgstr "
|
583 |
-
|
584 |
-
#: includes/i18n.php:171
|
585 |
-
msgid "
|
586 |
-
msgstr "
|
587 |
-
|
588 |
-
#: includes/i18n.php:172
|
589 |
-
msgid "
|
590 |
-
msgstr "
|
591 |
-
|
592 |
-
#: includes/i18n.php:
|
593 |
-
msgid "
|
594 |
-
msgstr "
|
595 |
-
|
596 |
-
#: includes/i18n.php:176
|
597 |
-
msgid "
|
598 |
-
msgstr "
|
599 |
-
|
600 |
-
#: includes/i18n.php:
|
601 |
-
msgid "
|
602 |
-
msgstr "
|
603 |
-
|
604 |
-
#: includes/i18n.php:179
|
605 |
-
msgid "
|
606 |
-
msgstr "פידבק
|
607 |
-
|
608 |
-
#: includes/i18n.php:180
|
609 |
-
msgid "
|
610 |
-
msgstr "
|
611 |
-
|
612 |
-
#: includes/i18n.php:181
|
613 |
-
msgid "
|
614 |
-
msgstr "
|
615 |
-
|
616 |
-
#: includes/i18n.php:182
|
617 |
-
msgid "
|
618 |
-
msgstr "
|
619 |
-
|
620 |
-
#: includes/i18n.php:183
|
621 |
-
msgid "
|
622 |
-
msgstr "
|
623 |
-
|
624 |
-
#: includes/i18n.php:184
|
625 |
-
msgid "
|
626 |
-
msgstr "
|
627 |
-
|
628 |
-
#: includes/i18n.php:185
|
629 |
-
msgid "
|
630 |
-
msgstr "
|
631 |
-
|
632 |
-
#: includes/i18n.php:186
|
633 |
-
msgid "
|
634 |
-
msgstr "
|
635 |
-
|
636 |
-
#: includes/i18n.php:187
|
637 |
-
msgid "
|
638 |
-
msgstr "
|
639 |
-
|
640 |
-
#: includes/i18n.php:188
|
641 |
-
msgid "
|
642 |
-
msgstr "
|
643 |
-
|
644 |
-
#: includes/i18n.php:189
|
645 |
-
msgid "
|
646 |
-
msgstr "
|
647 |
-
|
648 |
-
#: includes/i18n.php:190
|
649 |
-
msgid "I
|
650 |
-
msgstr "
|
651 |
-
|
652 |
-
#: includes/i18n.php:191
|
653 |
-
msgid "
|
654 |
-
msgstr "
|
655 |
-
|
656 |
-
#: includes/i18n.php:192
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
msgid "
|
683 |
-
msgstr "
|
684 |
-
|
685 |
-
#: includes/i18n.php:200
|
686 |
-
msgid "
|
687 |
-
msgstr "
|
688 |
-
|
689 |
-
#: includes/i18n.php:201
|
690 |
-
msgid "
|
691 |
-
msgstr "
|
692 |
-
|
693 |
-
#: includes/i18n.php:202
|
694 |
-
msgid "What
|
695 |
-
msgstr "
|
696 |
-
|
697 |
-
#: includes/i18n.php:203
|
698 |
-
msgid "
|
699 |
-
msgstr "
|
700 |
-
|
701 |
-
#: includes/i18n.php:204
|
702 |
-
msgid "
|
703 |
-
msgstr "
|
704 |
-
|
705 |
-
#: includes/i18n.php:205
|
706 |
-
msgid "
|
707 |
-
msgstr "
|
708 |
-
|
709 |
-
#: includes/i18n.php:206
|
710 |
-
msgid "
|
711 |
-
msgstr "
|
712 |
-
|
713 |
-
#: includes/i18n.php:207
|
714 |
-
msgid "
|
715 |
-
msgstr "
|
716 |
-
|
717 |
-
#: includes/i18n.php:208
|
718 |
-
msgid "
|
719 |
-
msgstr "
|
720 |
-
|
721 |
-
#: includes/i18n.php:
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
msgid "Thanks
|
753 |
-
msgstr "
|
754 |
-
|
755 |
-
#: includes/i18n.php:220
|
756 |
-
msgid "
|
757 |
-
msgstr "
|
758 |
-
|
759 |
-
#: includes/i18n.php:221
|
760 |
-
msgid "
|
761 |
-
msgstr "
|
762 |
-
|
763 |
-
#: includes/i18n.php:222
|
764 |
-
msgid "
|
765 |
-
msgstr "
|
766 |
-
|
767 |
-
#: includes/i18n.php:223
|
768 |
-
msgid "
|
769 |
-
msgstr "
|
770 |
-
|
771 |
-
#: includes/i18n.php:224
|
772 |
-
msgid "
|
773 |
-
msgstr "
|
774 |
-
|
775 |
-
#: includes/i18n.php:225
|
776 |
-
msgid "
|
777 |
-
msgstr "
|
778 |
-
|
779 |
-
#: includes/i18n.php:226
|
780 |
-
msgid "
|
781 |
-
msgstr "
|
782 |
-
|
783 |
-
#: includes/i18n.php:227
|
784 |
-
msgid "
|
785 |
-
msgstr "
|
786 |
-
|
787 |
-
#: includes/i18n.php:228
|
788 |
-
msgid "
|
789 |
-
msgstr "
|
790 |
-
|
791 |
-
#: includes/i18n.php:229
|
792 |
-
msgid "
|
793 |
-
msgstr "
|
794 |
-
|
795 |
-
#: includes/i18n.php:230
|
796 |
-
msgid "
|
797 |
-
msgstr "
|
798 |
-
|
799 |
-
#: includes/i18n.php:231
|
800 |
-
msgid "
|
801 |
-
msgstr "
|
802 |
-
|
803 |
-
#: includes/i18n.php:232
|
804 |
-
msgid "
|
805 |
-
msgstr "
|
806 |
-
|
807 |
-
#: includes/i18n.php:233
|
808 |
-
msgid "
|
809 |
-
msgstr "
|
810 |
-
|
811 |
-
#: includes/i18n.php:234
|
812 |
-
msgid "
|
813 |
-
msgstr "
|
814 |
-
|
815 |
-
#: includes/i18n.php:235
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
msgid "
|
833 |
-
msgstr "
|
834 |
-
|
835 |
-
#: includes/i18n.php:
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
msgid "
|
842 |
-
msgstr "
|
843 |
-
|
844 |
-
#: includes/i18n.php:
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
msgid "
|
862 |
-
msgstr "
|
863 |
-
|
864 |
-
#: includes/i18n.php:246
|
865 |
-
msgid "
|
866 |
-
msgstr "
|
867 |
-
|
868 |
-
#: includes/i18n.php:247
|
869 |
-
msgid "
|
870 |
-
msgstr "
|
871 |
-
|
872 |
-
#: includes/i18n.php:248
|
873 |
-
msgid "
|
874 |
-
msgstr "
|
875 |
-
|
876 |
-
#: includes/i18n.php:249
|
877 |
-
msgid "
|
878 |
-
msgstr "
|
879 |
-
|
880 |
-
#: includes/i18n.php:250
|
881 |
-
msgid "
|
882 |
-
msgstr "
|
883 |
-
|
884 |
-
#: includes/i18n.php:251
|
885 |
-
msgid "
|
886 |
-
msgstr "
|
887 |
-
|
888 |
-
#: includes/i18n.php:252
|
889 |
-
msgid "
|
890 |
-
msgstr "
|
891 |
-
|
892 |
-
#: includes/i18n.php:253
|
893 |
-
msgid "
|
894 |
-
msgstr "
|
895 |
-
|
896 |
-
#: includes/i18n.php:254
|
897 |
-
msgid "
|
898 |
-
msgstr "
|
899 |
-
|
900 |
-
#: includes/i18n.php:255
|
901 |
-
msgid "We
|
902 |
-
msgstr "We
|
903 |
-
|
904 |
-
#: includes/i18n.php:256
|
905 |
-
msgid "
|
906 |
-
msgstr "
|
907 |
-
|
908 |
-
#: includes/i18n.php:257
|
909 |
-
msgid "
|
910 |
-
msgstr "
|
911 |
-
|
912 |
-
#: includes/i18n.php:
|
913 |
-
msgid "
|
914 |
-
msgstr "
|
915 |
-
|
916 |
-
#: includes/i18n.php:
|
917 |
-
msgid "
|
918 |
-
msgstr "
|
919 |
-
|
920 |
-
#: includes/i18n.php:
|
921 |
-
msgid "
|
922 |
-
msgstr "
|
923 |
-
|
924 |
-
#: includes/i18n.php:
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
msgid "
|
946 |
-
msgstr "
|
947 |
-
|
948 |
-
#: includes/i18n.php:
|
949 |
-
msgctxt "as
|
950 |
-
msgid "
|
951 |
-
msgstr "
|
952 |
-
|
953 |
-
#: includes/i18n.php:
|
954 |
-
msgctxt "as
|
955 |
-
msgid "
|
956 |
-
msgstr "
|
957 |
-
|
958 |
-
#: includes/i18n.php:
|
959 |
-
msgctxt "as
|
960 |
-
msgid "
|
961 |
-
msgstr "
|
962 |
-
|
963 |
-
#: includes/i18n.php:
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
msgid "
|
980 |
-
msgstr "
|
981 |
-
|
982 |
-
#: includes/i18n.php:
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
msgid "
|
1000 |
-
msgstr "
|
1001 |
-
|
1002 |
-
#: includes/i18n.php:284
|
1003 |
-
msgid "
|
1004 |
-
msgstr "
|
1005 |
-
|
1006 |
-
#: includes/i18n.php:285
|
1007 |
-
msgid "
|
1008 |
-
msgstr "
|
1009 |
-
|
1010 |
-
#: includes/i18n.php:286
|
1011 |
-
msgid "
|
1012 |
-
msgstr "
|
1013 |
-
|
1014 |
-
#: includes/i18n.php:287
|
1015 |
-
msgid "
|
1016 |
-
msgstr "
|
1017 |
-
|
1018 |
-
#: includes/i18n.php:288
|
1019 |
-
msgid "
|
1020 |
-
msgstr "
|
1021 |
-
|
1022 |
-
#: includes/i18n.php:289
|
1023 |
-
msgid "
|
1024 |
-
msgstr "
|
1025 |
-
|
1026 |
-
#: includes/i18n.php:290
|
1027 |
-
msgid "
|
1028 |
-
msgstr "
|
1029 |
-
|
1030 |
-
#: includes/i18n.php:291
|
1031 |
-
msgid "
|
1032 |
-
msgstr "
|
1033 |
-
|
1034 |
-
#: includes/i18n.php:292
|
1035 |
-
msgid "
|
1036 |
-
msgstr "
|
1037 |
-
|
1038 |
-
#: includes/i18n.php:293
|
1039 |
-
msgid "
|
1040 |
-
msgstr "
|
1041 |
-
|
1042 |
-
#: includes/i18n.php:294
|
1043 |
-
msgid "
|
1044 |
-
msgstr "
|
1045 |
-
|
1046 |
-
#: includes/i18n.php:295
|
1047 |
-
msgid "
|
1048 |
-
msgstr "
|
1049 |
-
|
1050 |
-
#: includes/i18n.php:296
|
1051 |
-
msgid "
|
1052 |
-
msgstr "
|
1053 |
-
|
1054 |
-
#: includes/i18n.php:297
|
1055 |
-
msgid "
|
1056 |
-
msgstr "
|
1057 |
-
|
1058 |
-
#: includes/i18n.php:298
|
1059 |
-
msgid "
|
1060 |
-
msgstr "
|
1061 |
-
|
1062 |
-
#: includes/i18n.php:299
|
1063 |
-
msgid "
|
1064 |
-
msgstr "
|
1065 |
-
|
1066 |
-
#: includes/i18n.php:300
|
1067 |
-
msgid "
|
1068 |
-
msgstr "
|
1069 |
-
|
1070 |
-
#: includes/i18n.php:
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
msgid "
|
1088 |
-
msgstr "
|
1089 |
-
|
1090 |
-
#: includes/i18n.php:
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
msgid "
|
1102 |
-
msgstr "
|
1103 |
-
|
1104 |
-
#: includes/i18n.php:
|
1105 |
-
msgctxt "
|
1106 |
-
msgid "
|
1107 |
-
msgstr "
|
1108 |
-
|
1109 |
-
#: includes/i18n.php:
|
1110 |
-
msgctxt "
|
1111 |
-
msgid "
|
1112 |
-
msgstr "
|
1113 |
-
|
1114 |
-
#: includes/i18n.php:
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
msgid "
|
1136 |
-
msgstr "
|
1137 |
-
|
1138 |
-
#: includes/i18n.php:325
|
1139 |
-
msgid "
|
1140 |
-
msgstr "
|
1141 |
-
|
1142 |
-
#: includes/i18n.php:326
|
1143 |
-
msgid "
|
1144 |
-
msgstr "
|
1145 |
-
|
1146 |
-
#: includes/i18n.php:327
|
1147 |
-
msgid "
|
1148 |
-
msgstr "
|
1149 |
-
|
1150 |
-
#: includes/i18n.php:328
|
1151 |
-
msgid "
|
1152 |
-
msgstr "
|
1153 |
-
|
1154 |
-
#: includes/i18n.php:329
|
1155 |
-
msgid "
|
1156 |
-
msgstr "
|
1157 |
-
|
1158 |
-
#: includes/i18n.php:330
|
1159 |
-
msgid "
|
1160 |
-
msgstr "
|
1161 |
-
|
1162 |
-
#: includes/i18n.php:331
|
1163 |
-
msgid "
|
1164 |
-
msgstr "
|
1165 |
-
|
1166 |
-
#: includes/i18n.php:332
|
1167 |
-
msgid "
|
1168 |
-
msgstr "
|
1169 |
-
|
1170 |
-
#: includes/i18n.php:333
|
1171 |
-
msgid "
|
1172 |
-
msgstr "
|
1173 |
-
|
1174 |
-
#: includes/i18n.php:334
|
1175 |
-
msgid "
|
1176 |
-
msgstr "
|
1177 |
-
|
1178 |
-
#: includes/i18n.php:335
|
1179 |
-
msgid "
|
1180 |
-
msgstr "
|
1181 |
-
|
1182 |
-
#: includes/i18n.php:336
|
1183 |
-
msgid "
|
1184 |
-
msgstr "
|
1185 |
-
|
1186 |
-
#: includes/i18n.php:337
|
1187 |
-
msgid "
|
1188 |
-
msgstr "
|
1189 |
-
|
1190 |
-
#: includes/i18n.php:338
|
1191 |
-
msgid "
|
1192 |
-
msgstr "
|
1193 |
-
|
1194 |
-
#: includes/i18n.php:339
|
1195 |
-
msgid "
|
1196 |
-
msgstr "
|
1197 |
-
|
1198 |
-
#: includes/i18n.php:340
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
msgid "
|
1225 |
-
msgstr "
|
1226 |
-
|
1227 |
-
#: includes/i18n.php:348
|
1228 |
-
msgid "Your
|
1229 |
-
msgstr "
|
1230 |
-
|
1231 |
-
#: includes/i18n.php:349
|
1232 |
-
msgid "Your
|
1233 |
-
msgstr "
|
1234 |
-
|
1235 |
-
#: includes/i18n.php:350
|
1236 |
-
msgid "
|
1237 |
-
msgstr "
|
1238 |
-
|
1239 |
-
#: includes/i18n.php:351
|
1240 |
-
msgid "Your
|
1241 |
-
msgstr "
|
1242 |
-
|
1243 |
-
#: includes/i18n.php:352
|
1244 |
-
msgid "
|
1245 |
-
msgstr "
|
1246 |
-
|
1247 |
-
#: includes/i18n.php:353
|
1248 |
-
msgid "
|
1249 |
-
msgstr "
|
1250 |
-
|
1251 |
-
#: includes/i18n.php:354
|
1252 |
-
msgid "
|
1253 |
-
msgstr "
|
1254 |
-
|
1255 |
-
#: includes/i18n.php:355
|
1256 |
-
msgid "Your
|
1257 |
-
msgstr "
|
1258 |
-
|
1259 |
-
#: includes/i18n.php:356
|
1260 |
-
msgid "
|
1261 |
-
msgstr "
|
1262 |
-
|
1263 |
-
#: includes/i18n.php:357
|
1264 |
-
msgid "
|
1265 |
-
msgstr "
|
1266 |
-
|
1267 |
-
#: includes/i18n.php:358
|
1268 |
-
msgid "It looks like
|
1269 |
-
msgstr "
|
1270 |
-
|
1271 |
-
#: includes/i18n.php:359
|
1272 |
-
msgid "
|
1273 |
-
msgstr "
|
1274 |
-
|
1275 |
-
#: includes/i18n.php:360
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
msgid "
|
1320 |
-
msgstr "
|
1321 |
-
|
1322 |
-
#: includes/i18n.php:372
|
1323 |
-
msgid "
|
1324 |
-
msgstr "
|
1325 |
-
|
1326 |
-
#: includes/i18n.php:373
|
1327 |
-
msgid "
|
1328 |
-
msgstr "
|
1329 |
-
|
1330 |
-
#: includes/i18n.php:374
|
1331 |
-
msgid "
|
1332 |
-
msgstr "
|
1333 |
-
|
1334 |
-
#: includes/i18n.php:375
|
1335 |
-
msgid "
|
1336 |
-
msgstr "
|
1337 |
-
|
1338 |
-
#: includes/i18n.php:376
|
1339 |
-
msgid "
|
1340 |
-
msgstr "
|
1341 |
-
|
1342 |
-
#: includes/i18n.php:377
|
1343 |
-
msgid "
|
1344 |
-
msgstr "לא ניתן
|
1345 |
-
|
1346 |
-
#: includes/i18n.php:378
|
1347 |
-
msgid "
|
1348 |
-
msgstr "
|
1349 |
-
|
1350 |
-
#: includes/i18n.php:379
|
1351 |
-
msgid "
|
1352 |
-
msgstr "
|
1353 |
-
|
1354 |
-
#: includes/i18n.php:380
|
1355 |
-
msgid "Please contact
|
1356 |
-
msgstr "
|
1357 |
-
|
1358 |
-
#: includes/i18n.php:381
|
1359 |
-
msgid "
|
1360 |
-
msgstr "
|
1361 |
-
|
1362 |
-
#: includes/i18n.php:
|
1363 |
-
msgid "
|
1364 |
-
msgstr "
|
1365 |
-
|
1366 |
-
#: includes/i18n.php:
|
1367 |
-
msgid "
|
1368 |
-
msgstr "
|
1369 |
-
|
1370 |
-
#: includes/i18n.php:
|
1371 |
-
msgid "
|
1372 |
-
msgstr "
|
1373 |
-
|
1374 |
-
#: includes/i18n.php:
|
1375 |
-
msgid "
|
1376 |
-
msgstr "
|
1377 |
-
|
1378 |
-
#: includes/i18n.php:
|
1379 |
-
msgid "
|
1380 |
-
msgstr "
|
1381 |
-
|
1382 |
-
#: includes/i18n.php:
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
msgid "
|
1409 |
-
msgstr "
|
1410 |
-
|
1411 |
-
#: includes/i18n.php:
|
1412 |
-
msgid "
|
1413 |
-
msgstr "
|
1414 |
-
|
1415 |
-
#: includes/i18n.php:
|
1416 |
-
msgid "
|
1417 |
-
msgstr "
|
1418 |
-
|
1419 |
-
#: includes/i18n.php:
|
1420 |
-
msgid "
|
1421 |
-
msgstr "
|
1422 |
-
|
1423 |
-
#: includes/i18n.php:
|
1424 |
-
msgid "
|
1425 |
-
msgstr "
|
1426 |
-
|
1427 |
-
#: includes/i18n.php:
|
1428 |
-
msgid "
|
1429 |
-
msgstr "
|
1430 |
-
|
1431 |
-
#: includes/i18n.php:
|
1432 |
-
msgid "
|
1433 |
-
msgstr "
|
1434 |
-
|
1435 |
-
#: includes/i18n.php:404
|
1436 |
-
msgid "
|
1437 |
-
msgstr "
|
1438 |
-
|
1439 |
-
#: includes/i18n.php:405
|
1440 |
-
msgid "
|
1441 |
-
msgstr "
|
1442 |
-
|
1443 |
-
#: includes/i18n.php:406
|
1444 |
-
msgid "
|
1445 |
-
msgstr "
|
1446 |
-
|
1447 |
-
#: includes/i18n.php:407
|
1448 |
-
msgid "
|
1449 |
-
msgstr "
|
1450 |
-
|
1451 |
-
#: includes/i18n.php:408
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
msgid "
|
1490 |
-
msgstr "
|
1491 |
-
|
1492 |
-
#: includes/i18n.php:
|
1493 |
-
msgid "
|
1494 |
-
msgstr "
|
1495 |
-
|
1496 |
-
#: includes/i18n.php:
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
|
1523 |
-
|
1524 |
-
|
1525 |
-
msgid "
|
1526 |
-
msgstr "
|
1527 |
-
|
1528 |
-
#: includes/i18n.php:
|
1529 |
-
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
|
1534 |
-
|
1535 |
-
|
1536 |
-
|
1537 |
-
|
1538 |
-
|
1539 |
-
msgid "
|
1540 |
-
msgstr "
|
1541 |
-
|
1542 |
-
#: includes/i18n.php:
|
1543 |
-
msgctxt "
|
1544 |
-
msgid "
|
1545 |
-
msgstr "
|
1546 |
-
|
1547 |
-
#: includes/i18n.php:
|
1548 |
-
msgctxt "
|
1549 |
-
msgid "
|
1550 |
-
msgstr "
|
1551 |
-
|
1552 |
-
#: includes/i18n.php:
|
1553 |
-
msgctxt "as a
|
1554 |
-
msgid "
|
1555 |
-
msgstr "
|
1556 |
-
|
1557 |
-
#: includes/i18n.php:445
|
1558 |
-
|
1559 |
-
|
1560 |
-
|
1561 |
-
|
1562 |
-
|
1563 |
-
msgid "
|
1564 |
-
msgstr "
|
1565 |
-
|
1566 |
-
#: includes/i18n.php:
|
1567 |
-
|
1568 |
-
|
1569 |
-
|
1570 |
-
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
-
|
1579 |
-
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
1583 |
-
|
1584 |
-
|
1585 |
-
|
1586 |
-
|
1587 |
-
msgid "
|
1588 |
-
msgstr "
|
1589 |
-
|
1590 |
-
#: includes/i18n.php:
|
1591 |
-
msgid "
|
1592 |
-
msgstr "
|
1593 |
-
|
1594 |
-
#: includes/i18n.php:
|
1595 |
-
msgid "
|
1596 |
-
msgstr "
|
1597 |
-
|
1598 |
-
#: includes/i18n.php:465
|
1599 |
-
msgid "
|
1600 |
-
msgstr "
|
1601 |
-
|
1602 |
-
#: includes/i18n.php:466
|
1603 |
-
msgid "
|
1604 |
-
msgstr "
|
1605 |
-
|
1606 |
-
#: includes/i18n.php:467
|
1607 |
-
msgid "
|
1608 |
-
msgstr "
|
1609 |
-
|
1610 |
-
#: includes/i18n.php:468
|
1611 |
-
msgid "
|
1612 |
-
msgstr "
|
1613 |
-
|
1614 |
-
#: includes/i18n.php:
|
1615 |
-
msgid "
|
1616 |
-
msgstr "
|
1617 |
-
|
1618 |
-
#: includes/i18n.php:
|
1619 |
-
msgid "
|
1620 |
-
msgstr "
|
1621 |
-
|
1622 |
-
#: includes/i18n.php:
|
1623 |
-
msgid "
|
1624 |
-
msgstr "
|
1625 |
-
|
1626 |
-
#: includes/i18n.php:
|
1627 |
-
msgid "
|
1628 |
-
msgstr "
|
1629 |
-
|
1630 |
-
#: includes/i18n.php:
|
1631 |
-
msgid "
|
1632 |
-
msgstr "
|
1633 |
-
|
1634 |
-
#: includes/i18n.php:
|
1635 |
-
msgid "
|
1636 |
-
msgstr "
|
1637 |
-
|
1638 |
-
#: includes/i18n.php:
|
1639 |
-
msgid "
|
1640 |
-
msgstr "
|
1641 |
-
|
1642 |
-
#: includes/i18n.php:
|
1643 |
-
msgid "
|
1644 |
-
msgstr "
|
1645 |
-
|
1646 |
-
#: includes/i18n.php:482
|
1647 |
-
msgid "
|
1648 |
-
msgstr "
|
1649 |
-
|
1650 |
-
#: includes/i18n.php:483
|
1651 |
-
msgid "
|
1652 |
-
msgstr "
|
1653 |
-
|
1654 |
-
#: includes/i18n.php:484
|
1655 |
-
msgid "
|
1656 |
-
msgstr "
|
1657 |
-
|
1658 |
-
#: includes/i18n.php:485
|
1659 |
-
msgid "
|
1660 |
-
msgstr "
|
1661 |
-
|
1662 |
-
#: includes/i18n.php:486
|
1663 |
-
msgid "
|
1664 |
-
msgstr "
|
1665 |
-
|
1666 |
-
#: includes/i18n.php:
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
1674 |
-
|
1675 |
-
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
|
1680 |
-
|
1681 |
-
|
1682 |
-
|
1683 |
-
msgid "
|
1684 |
-
msgstr "
|
1685 |
-
|
1686 |
-
#: includes/i18n.php:
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
|
1704 |
-
|
1705 |
-
|
1706 |
-
|
1707 |
-
|
1708 |
-
|
1709 |
-
msgid "
|
1710 |
-
msgstr "
|
1711 |
-
|
1712 |
-
#: includes/i18n.php:
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
-
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
-
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
|
1729 |
-
msgid "
|
1730 |
-
msgstr "
|
1731 |
-
|
1732 |
-
#: includes/i18n.php:
|
1733 |
-
|
1734 |
-
|
1735 |
-
|
1736 |
-
|
1737 |
-
|
1738 |
-
|
1739 |
-
|
1740 |
-
|
1741 |
-
|
1742 |
-
|
1743 |
-
|
1744 |
-
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
|
1768 |
-
|
1769 |
-
|
1770 |
-
msgid "
|
1771 |
-
msgstr "
|
1772 |
-
|
1773 |
-
#: includes/i18n.php:
|
1774 |
-
msgid "
|
1775 |
-
msgstr "
|
1776 |
-
|
1777 |
-
#: includes/i18n.php:
|
1778 |
-
msgid "
|
1779 |
-
msgstr "
|
1780 |
-
|
1781 |
-
#: includes/i18n.php:
|
1782 |
-
msgid "
|
1783 |
-
msgstr "
|
1784 |
-
|
1785 |
-
#: includes/i18n.php:
|
1786 |
-
msgid "
|
1787 |
-
msgstr "
|
1788 |
-
|
1789 |
-
#: includes/i18n.php:
|
1790 |
-
msgid "
|
1791 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 features but you will not have access to %s updates and support."
|
583 |
+
|
584 |
+
#: includes/i18n.php:171
|
585 |
+
msgid "Once your license expires you can still use the Free version but you will NOT have access to the %s features."
|
586 |
+
msgstr "Once your license expires you can still use the Free version but you will NOT have access to the %s features."
|
587 |
+
|
588 |
+
#: includes/i18n.php:172
|
589 |
+
msgid "Are you sure you want to proceed?"
|
590 |
+
msgstr "האם את/ה בטוח רוצה להמשיך?"
|
591 |
+
|
592 |
+
#: includes/i18n.php:175
|
593 |
+
msgid "Add Ons for %s"
|
594 |
+
msgstr "הרחבות עבור %s"
|
595 |
+
|
596 |
+
#: includes/i18n.php:176
|
597 |
+
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."
|
598 |
+
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."
|
599 |
+
|
600 |
+
#: includes/i18n.php:178
|
601 |
+
msgid "Anonymous feedback"
|
602 |
+
msgstr "פידבק אנונימי"
|
603 |
+
|
604 |
+
#: includes/i18n.php:179
|
605 |
+
msgid "Quick feedback"
|
606 |
+
msgstr "פידבק זריז"
|
607 |
+
|
608 |
+
#: includes/i18n.php:180
|
609 |
+
msgid "If you have a moment, please let us know why you are %s"
|
610 |
+
msgstr "If you have a moment, please let us know why you are %s"
|
611 |
+
|
612 |
+
#: includes/i18n.php:181
|
613 |
+
msgid "deactivating"
|
614 |
+
msgstr "deactivating"
|
615 |
+
|
616 |
+
#: includes/i18n.php:182
|
617 |
+
msgid "Deactivation"
|
618 |
+
msgstr "Deactivation"
|
619 |
+
|
620 |
+
#: includes/i18n.php:183
|
621 |
+
msgid "Theme Switch"
|
622 |
+
msgstr "Theme Switch"
|
623 |
+
|
624 |
+
#: includes/i18n.php:184
|
625 |
+
msgid "switching"
|
626 |
+
msgstr "switching"
|
627 |
+
|
628 |
+
#: includes/i18n.php:185
|
629 |
+
msgid "Switch"
|
630 |
+
msgstr "Switch"
|
631 |
+
|
632 |
+
#: includes/i18n.php:186
|
633 |
+
msgid "Activate %s"
|
634 |
+
msgstr "Activate %s"
|
635 |
+
|
636 |
+
#: includes/i18n.php:187
|
637 |
+
msgid "Yes - %s"
|
638 |
+
msgstr "Yes - %s"
|
639 |
+
|
640 |
+
#: includes/i18n.php:188
|
641 |
+
msgid "Submit & %s"
|
642 |
+
msgstr "Submit & %s"
|
643 |
+
|
644 |
+
#: includes/i18n.php:189
|
645 |
+
msgid "Cancel"
|
646 |
+
msgstr "בטל"
|
647 |
+
|
648 |
+
#: includes/i18n.php:190
|
649 |
+
msgid "I no longer need the %s"
|
650 |
+
msgstr "I no longer need the %s"
|
651 |
+
|
652 |
+
#: includes/i18n.php:191
|
653 |
+
msgid "I found a better %s"
|
654 |
+
msgstr "I found a better %s"
|
655 |
+
|
656 |
+
#: includes/i18n.php:192
|
657 |
+
msgid "I only needed the %s for a short period"
|
658 |
+
msgstr "I only needed the %s for a short period"
|
659 |
+
|
660 |
+
#: includes/i18n.php:193
|
661 |
+
msgid "The %s broke my site"
|
662 |
+
msgstr "The %s broke my site"
|
663 |
+
|
664 |
+
#: includes/i18n.php:194
|
665 |
+
msgid "The %s suddenly stopped working"
|
666 |
+
msgstr "The %s suddenly stopped working"
|
667 |
+
|
668 |
+
#: includes/i18n.php:195
|
669 |
+
msgid "I can't pay for it anymore"
|
670 |
+
msgstr "אני לא יכול/ה להמשיך לשלם על זה"
|
671 |
+
|
672 |
+
#: includes/i18n.php:196
|
673 |
+
msgid "It's a temporary deactivation. I'm just debugging an issue."
|
674 |
+
msgstr "כיבוי זמני לשם דיבאג."
|
675 |
+
|
676 |
+
#: includes/i18n.php:197
|
677 |
+
msgid "It's a temporary %s. I'm just debugging an issue."
|
678 |
+
msgstr "It's a temporary %s. I'm just debugging an issue."
|
679 |
+
|
680 |
+
#: includes/i18n.php:198
|
681 |
+
msgctxt ""
|
682 |
+
msgid "Other"
|
683 |
+
msgstr "Other"
|
684 |
+
|
685 |
+
#: includes/i18n.php:200
|
686 |
+
msgid "Kindly tell us the reason so we can improve."
|
687 |
+
msgstr "אנא שתף את הסיבה כדי שנוכל להשתפר."
|
688 |
+
|
689 |
+
#: includes/i18n.php:201
|
690 |
+
msgid "What's the %s's name?"
|
691 |
+
msgstr "What's the %s's name?"
|
692 |
+
|
693 |
+
#: includes/i18n.php:202
|
694 |
+
msgid "What price would you feel comfortable paying?"
|
695 |
+
msgstr "מה המחיר שכן תרגיש\\י בנוח לשלם?"
|
696 |
+
|
697 |
+
#: includes/i18n.php:203
|
698 |
+
msgid "I couldn't understand how to make it work"
|
699 |
+
msgstr "לא הצלחתי להבין איך לגרום לזה לעבוד"
|
700 |
+
|
701 |
+
#: includes/i18n.php:204
|
702 |
+
msgid "The %s is great, but I need specific feature that you don't support"
|
703 |
+
msgstr "The %s is great, but I need specific feature that you don't support"
|
704 |
+
|
705 |
+
#: includes/i18n.php:205
|
706 |
+
msgid "The %s is not working"
|
707 |
+
msgstr "The %s is not working"
|
708 |
+
|
709 |
+
#: includes/i18n.php:206
|
710 |
+
msgid "It's not what I was looking for"
|
711 |
+
msgstr "חיפשתי משהו אחר"
|
712 |
+
|
713 |
+
#: includes/i18n.php:207
|
714 |
+
msgid "The %s didn't work as expected"
|
715 |
+
msgstr "The %s didn't work as expected"
|
716 |
+
|
717 |
+
#: includes/i18n.php:208
|
718 |
+
msgid "What feature?"
|
719 |
+
msgstr "איזה פיטצ'ר?"
|
720 |
+
|
721 |
+
#: includes/i18n.php:209
|
722 |
+
msgid "Kindly share what didn't work so we can fix it for future users..."
|
723 |
+
msgstr "אנא שתפ\\י מה לא עבד כדי שנוכל לתקן זאת עבור משתמשים עתידיים..."
|
724 |
+
|
725 |
+
#: includes/i18n.php:210
|
726 |
+
msgid "What you've been looking for?"
|
727 |
+
msgstr "מה חיפשת?"
|
728 |
+
|
729 |
+
#: includes/i18n.php:211
|
730 |
+
msgid "What did you expect?"
|
731 |
+
msgstr "למה ציפית?"
|
732 |
+
|
733 |
+
#: includes/i18n.php:212
|
734 |
+
msgid "The %s didn't work"
|
735 |
+
msgstr "The %s didn't work"
|
736 |
+
|
737 |
+
#: includes/i18n.php:213
|
738 |
+
msgid "I don't like to share my information with you"
|
739 |
+
msgstr "אני לא אוהב את הרעיון של שיתוף מידע איתכם"
|
740 |
+
|
741 |
+
#: includes/i18n.php:214
|
742 |
+
msgid "You might have missed it, but you don't have to share any data and can just %s the opt-in."
|
743 |
+
msgstr "אולי פספסת את זה אבל אינך חייב\\ת לשתף כל מידע איתנו, ביכולתך %s על שיתוף המידע."
|
744 |
+
|
745 |
+
#: includes/i18n.php:218
|
746 |
+
msgctxt "greeting"
|
747 |
+
msgid "Hey %s,"
|
748 |
+
msgstr "היי %s,"
|
749 |
+
|
750 |
+
#: includes/i18n.php:219
|
751 |
+
msgctxt "a greeting. E.g. Thanks John!"
|
752 |
+
msgid "Thanks %s!"
|
753 |
+
msgstr "תודה %s!"
|
754 |
+
|
755 |
+
#: includes/i18n.php:220
|
756 |
+
msgid "Never miss an important update - opt-in to our security and feature updates notifications, and non-sensitive diagnostic tracking with %4$s."
|
757 |
+
msgstr "Never miss an important update - opt-in to our security and feature updates notifications, and non-sensitive diagnostic tracking with %4$s."
|
758 |
+
|
759 |
+
#: includes/i18n.php:221
|
760 |
+
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."
|
761 |
+
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."
|
762 |
+
|
763 |
+
#: includes/i18n.php:222
|
764 |
+
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."
|
765 |
+
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."
|
766 |
+
|
767 |
+
#: includes/i18n.php:223
|
768 |
+
msgid "complete the install"
|
769 |
+
msgstr "השלם התקנה"
|
770 |
+
|
771 |
+
#: includes/i18n.php:224
|
772 |
+
msgid "start the trial"
|
773 |
+
msgstr "התחל תקופת ניסיון"
|
774 |
+
|
775 |
+
#: includes/i18n.php:225
|
776 |
+
msgid "Thanks for purchasing %s! To get started, please enter your license key:"
|
777 |
+
msgstr "Thanks for purchasing %s! To get started, please enter your license key:"
|
778 |
+
|
779 |
+
#: includes/i18n.php:226
|
780 |
+
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."
|
781 |
+
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."
|
782 |
+
|
783 |
+
#: includes/i18n.php:227
|
784 |
+
msgid "What permissions are being granted?"
|
785 |
+
msgstr "מהן ההרשאות המוענקות?"
|
786 |
+
|
787 |
+
#: includes/i18n.php:228
|
788 |
+
msgid "Your Profile Overview"
|
789 |
+
msgstr "פרטים כלליים על הפרופיל"
|
790 |
+
|
791 |
+
#: includes/i18n.php:229
|
792 |
+
msgid "Name and email address"
|
793 |
+
msgstr "שם וכתובת דו\"אל"
|
794 |
+
|
795 |
+
#: includes/i18n.php:230
|
796 |
+
msgid "Your Site Overview"
|
797 |
+
msgstr "פרטים כלליים על האתר"
|
798 |
+
|
799 |
+
#: includes/i18n.php:231
|
800 |
+
msgid "Site URL, WP version, PHP info, plugins & themes"
|
801 |
+
msgstr "כתובת אתר, גרסת וורדפרס, פרטי PHP, תוספים ותבניות"
|
802 |
+
|
803 |
+
#: includes/i18n.php:232
|
804 |
+
msgid "Current %s Events"
|
805 |
+
msgstr "Current %s Events"
|
806 |
+
|
807 |
+
#: includes/i18n.php:233
|
808 |
+
msgid "Activation, deactivation and uninstall"
|
809 |
+
msgstr "הפעלה, כיבוי והסרה"
|
810 |
+
|
811 |
+
#: includes/i18n.php:234
|
812 |
+
msgid "Plugins & Themes"
|
813 |
+
msgstr "תוספים ותבניות"
|
814 |
+
|
815 |
+
#: includes/i18n.php:235
|
816 |
+
msgid "Titles, versions and state."
|
817 |
+
msgstr "שמות, גרסאות וסטאטוס."
|
818 |
+
|
819 |
+
#: includes/i18n.php:236
|
820 |
+
msgid "Admin Notices"
|
821 |
+
msgstr "התראות מנהל"
|
822 |
+
|
823 |
+
#: includes/i18n.php:237
|
824 |
+
msgid "Newsletter"
|
825 |
+
msgstr "ניוסלטר"
|
826 |
+
|
827 |
+
#: includes/i18n.php:238
|
828 |
+
msgid "Updates, announcements, marketing, no spam"
|
829 |
+
msgstr "Updates, announcements, marketing, no spam"
|
830 |
+
|
831 |
+
#: includes/i18n.php:239
|
832 |
+
msgid "Privacy Policy"
|
833 |
+
msgstr "מדיניות פרטיות"
|
834 |
+
|
835 |
+
#: includes/i18n.php:240
|
836 |
+
msgid "Terms of Service"
|
837 |
+
msgstr "תנאי השירות"
|
838 |
+
|
839 |
+
#: includes/i18n.php:241
|
840 |
+
msgctxt "as activating plugin"
|
841 |
+
msgid "Activating"
|
842 |
+
msgstr "מפעיל"
|
843 |
+
|
844 |
+
#: includes/i18n.php:242
|
845 |
+
msgctxt "as in the process of sending an email"
|
846 |
+
msgid "Sending email"
|
847 |
+
msgstr "שולח דוא\"ל"
|
848 |
+
|
849 |
+
#: includes/i18n.php:243
|
850 |
+
msgctxt "button label"
|
851 |
+
msgid "Allow & Continue"
|
852 |
+
msgstr "אפשר\\י והמשכ\\י"
|
853 |
+
|
854 |
+
#: includes/i18n.php:244
|
855 |
+
msgctxt "button label"
|
856 |
+
msgid "Agree & Activate License"
|
857 |
+
msgstr "הסכמה והפעלת רישיון"
|
858 |
+
|
859 |
+
#: includes/i18n.php:245
|
860 |
+
msgctxt "verb"
|
861 |
+
msgid "Skip"
|
862 |
+
msgstr "דלג"
|
863 |
+
|
864 |
+
#: includes/i18n.php:246
|
865 |
+
msgid "Click here to use the plugin anonymously"
|
866 |
+
msgstr "Click here to use the plugin anonymously"
|
867 |
+
|
868 |
+
#: includes/i18n.php:247
|
869 |
+
msgid "Re-send activation email"
|
870 |
+
msgstr "שליחה חוזרת של מייל האקטיבציה"
|
871 |
+
|
872 |
+
#: includes/i18n.php:248
|
873 |
+
msgid "License key"
|
874 |
+
msgstr "מפתח רישיון"
|
875 |
+
|
876 |
+
#: includes/i18n.php:249
|
877 |
+
msgid "Send License Key"
|
878 |
+
msgstr "שליחת מפתח רישיון"
|
879 |
+
|
880 |
+
#: includes/i18n.php:250
|
881 |
+
msgid "Sending license key"
|
882 |
+
msgstr "שולח מפתח רישיון"
|
883 |
+
|
884 |
+
#: includes/i18n.php:251
|
885 |
+
msgid "Have a license key?"
|
886 |
+
msgstr "האם ברשותך רישיון?"
|
887 |
+
|
888 |
+
#: includes/i18n.php:252
|
889 |
+
msgid "Don't have a license key?"
|
890 |
+
msgstr "האם אין ברשותך מפתח רישיון?"
|
891 |
+
|
892 |
+
#: includes/i18n.php:253
|
893 |
+
msgid "Can't find your license key?"
|
894 |
+
msgstr "האם אינך מוצא את מפתח הרישיון?"
|
895 |
+
|
896 |
+
#: includes/i18n.php:254
|
897 |
+
msgid "We couldn't find your email address in the system, are you sure it's the right address?"
|
898 |
+
msgstr "We couldn't find your email address in the system, are you sure it's the right address?"
|
899 |
+
|
900 |
+
#: includes/i18n.php:255
|
901 |
+
msgid "We can't see any active licenses associated with that email address, are you sure it's the right address?"
|
902 |
+
msgstr "We can't see any active licenses associated with that email address, are you sure it's the right address?"
|
903 |
+
|
904 |
+
#: includes/i18n.php:256
|
905 |
+
msgid "Opt In"
|
906 |
+
msgstr "Opt In"
|
907 |
+
|
908 |
+
#: includes/i18n.php:257
|
909 |
+
msgid "Opt Out"
|
910 |
+
msgstr "Opt Out"
|
911 |
+
|
912 |
+
#: includes/i18n.php:258
|
913 |
+
msgid "On second thought - I want to continue helping"
|
914 |
+
msgstr "במחשבה שנייה - אני רוצה להמשיך לעזור"
|
915 |
+
|
916 |
+
#: includes/i18n.php:259
|
917 |
+
msgid "Opting out..."
|
918 |
+
msgstr "Opting out..."
|
919 |
+
|
920 |
+
#: includes/i18n.php:260
|
921 |
+
msgid "Opting in..."
|
922 |
+
msgstr "Opting in..."
|
923 |
+
|
924 |
+
#: includes/i18n.php:261
|
925 |
+
msgid "We appreciate your help in making the %s better by letting us track some usage data."
|
926 |
+
msgstr "We appreciate your help in making the %s better by letting us track some usage data."
|
927 |
+
|
928 |
+
#: includes/i18n.php:262
|
929 |
+
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."
|
930 |
+
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."
|
931 |
+
|
932 |
+
#: includes/i18n.php:263
|
933 |
+
msgid "By clicking \"Opt Out\", we will no longer be sending any data from %s to %s."
|
934 |
+
msgstr "By clicking \"Opt Out\", we will no longer be sending any data from %s to %s."
|
935 |
+
|
936 |
+
#: includes/i18n.php:267
|
937 |
+
msgid "Screenshots"
|
938 |
+
msgstr "צילומי מסך"
|
939 |
+
|
940 |
+
#: includes/i18n.php:268
|
941 |
+
msgid "Click to view full-size screenshot %d"
|
942 |
+
msgstr "Click to view full-size screenshot %d"
|
943 |
+
|
944 |
+
#: includes/i18n.php:272
|
945 |
+
msgid "Freemius Debug"
|
946 |
+
msgstr "ניפוי תקלות פרימיוס"
|
947 |
+
|
948 |
+
#: includes/i18n.php:273
|
949 |
+
msgctxt "as turned on"
|
950 |
+
msgid "On"
|
951 |
+
msgstr "דלוק"
|
952 |
+
|
953 |
+
#: includes/i18n.php:274
|
954 |
+
msgctxt "as turned off"
|
955 |
+
msgid "Off"
|
956 |
+
msgstr "כבוי"
|
957 |
+
|
958 |
+
#: includes/i18n.php:275
|
959 |
+
msgctxt "as code debugging"
|
960 |
+
msgid "Debugging"
|
961 |
+
msgstr "דיבוג"
|
962 |
+
|
963 |
+
#: includes/i18n.php:276
|
964 |
+
msgid "Freemius State"
|
965 |
+
msgstr "מצב פרימיוס"
|
966 |
+
|
967 |
+
#: includes/i18n.php:277
|
968 |
+
msgctxt "as connection was successful"
|
969 |
+
msgid "Connected"
|
970 |
+
msgstr "מחובר"
|
971 |
+
|
972 |
+
#: includes/i18n.php:278
|
973 |
+
msgctxt "as connection blocked"
|
974 |
+
msgid "Blocked"
|
975 |
+
msgstr "חסום"
|
976 |
+
|
977 |
+
#: includes/i18n.php:279
|
978 |
+
msgctxt "as application program interface"
|
979 |
+
msgid "API"
|
980 |
+
msgstr "API"
|
981 |
+
|
982 |
+
#: includes/i18n.php:280
|
983 |
+
msgctxt "as software development kit versions"
|
984 |
+
msgid "SDK"
|
985 |
+
msgstr "SDK"
|
986 |
+
|
987 |
+
#: includes/i18n.php:281
|
988 |
+
msgctxt "as software development kit versions"
|
989 |
+
msgid "SDK Versions"
|
990 |
+
msgstr "גרסאות SDK"
|
991 |
+
|
992 |
+
#: includes/i18n.php:282
|
993 |
+
msgctxt "as plugin folder path"
|
994 |
+
msgid "Plugin Path"
|
995 |
+
msgstr "נתיב התוסף"
|
996 |
+
|
997 |
+
#: includes/i18n.php:283
|
998 |
+
msgctxt "as sdk path"
|
999 |
+
msgid "SDK Path"
|
1000 |
+
msgstr "מיקום SDK"
|
1001 |
+
|
1002 |
+
#: includes/i18n.php:284
|
1003 |
+
msgid "Add Ons of Plugin %s"
|
1004 |
+
msgstr "הרחבות עבור %s"
|
1005 |
+
|
1006 |
+
#: includes/i18n.php:285
|
1007 |
+
msgid "Are you sure you want to delete all Freemius data?"
|
1008 |
+
msgstr "Are you sure you want to delete all Freemius data?"
|
1009 |
+
|
1010 |
+
#: includes/i18n.php:286
|
1011 |
+
msgid "Actions"
|
1012 |
+
msgstr "פעולות"
|
1013 |
+
|
1014 |
+
#: includes/i18n.php:287
|
1015 |
+
msgid "Delete All Accounts"
|
1016 |
+
msgstr "מחיקת כל החשבונות"
|
1017 |
+
|
1018 |
+
#: includes/i18n.php:288
|
1019 |
+
msgid "Start Fresh"
|
1020 |
+
msgstr "התחל מחדש"
|
1021 |
+
|
1022 |
+
#: includes/i18n.php:289
|
1023 |
+
msgid "Clear API Cache"
|
1024 |
+
msgstr "ניקוי מטמון ה-API"
|
1025 |
+
|
1026 |
+
#: includes/i18n.php:290
|
1027 |
+
msgid "Sync Data From Server"
|
1028 |
+
msgstr "סנכרון מידע מהשרת"
|
1029 |
+
|
1030 |
+
#: includes/i18n.php:291
|
1031 |
+
msgid "Scheduled Crons"
|
1032 |
+
msgstr "Scheduled Crons"
|
1033 |
+
|
1034 |
+
#: includes/i18n.php:292
|
1035 |
+
msgid "Cron Type"
|
1036 |
+
msgstr "Cron Type"
|
1037 |
+
|
1038 |
+
#: includes/i18n.php:293
|
1039 |
+
msgid "Plugins & Themes Sync"
|
1040 |
+
msgstr "Plugins & Themes Sync"
|
1041 |
+
|
1042 |
+
#: includes/i18n.php:294
|
1043 |
+
msgid "%s Licenses"
|
1044 |
+
msgstr "%s Licenses"
|
1045 |
+
|
1046 |
+
#: includes/i18n.php:295
|
1047 |
+
msgid "Debug Log"
|
1048 |
+
msgstr "Debug Log"
|
1049 |
+
|
1050 |
+
#: includes/i18n.php:296
|
1051 |
+
msgid "All"
|
1052 |
+
msgstr "הכל"
|
1053 |
+
|
1054 |
+
#: includes/i18n.php:297
|
1055 |
+
msgid "File"
|
1056 |
+
msgstr "קובץ"
|
1057 |
+
|
1058 |
+
#: includes/i18n.php:298
|
1059 |
+
msgid "Function"
|
1060 |
+
msgstr "פונקציה"
|
1061 |
+
|
1062 |
+
#: includes/i18n.php:299
|
1063 |
+
msgid "Process ID"
|
1064 |
+
msgstr "Process ID"
|
1065 |
+
|
1066 |
+
#: includes/i18n.php:300
|
1067 |
+
msgid "Logger"
|
1068 |
+
msgstr "Logger"
|
1069 |
+
|
1070 |
+
#: includes/i18n.php:301
|
1071 |
+
msgid "Message"
|
1072 |
+
msgstr "הודעה"
|
1073 |
+
|
1074 |
+
#: includes/i18n.php:302
|
1075 |
+
msgid "Download"
|
1076 |
+
msgstr "הורדה"
|
1077 |
+
|
1078 |
+
#: includes/i18n.php:303
|
1079 |
+
msgid "Filter"
|
1080 |
+
msgstr "פילטר"
|
1081 |
+
|
1082 |
+
#: includes/i18n.php:304
|
1083 |
+
msgid "Type"
|
1084 |
+
msgstr "סוג"
|
1085 |
+
|
1086 |
+
#: includes/i18n.php:305
|
1087 |
+
msgid "All Types"
|
1088 |
+
msgstr "כל הסוגים"
|
1089 |
+
|
1090 |
+
#: includes/i18n.php:306
|
1091 |
+
msgid "All Requests"
|
1092 |
+
msgstr "כל הבקשות"
|
1093 |
+
|
1094 |
+
#: includes/i18n.php:310
|
1095 |
+
msgctxt "as congratulations"
|
1096 |
+
msgid "Congrats"
|
1097 |
+
msgstr "מזל טוב"
|
1098 |
+
|
1099 |
+
#: includes/i18n.php:311
|
1100 |
+
msgctxt "exclamation"
|
1101 |
+
msgid "Oops"
|
1102 |
+
msgstr "אופס"
|
1103 |
+
|
1104 |
+
#: includes/i18n.php:312
|
1105 |
+
msgctxt "interjection expressing joy or exuberance"
|
1106 |
+
msgid "Yee-haw"
|
1107 |
+
msgstr "יששש"
|
1108 |
+
|
1109 |
+
#: includes/i18n.php:313
|
1110 |
+
msgctxt ""
|
1111 |
+
msgid "W00t"
|
1112 |
+
msgstr "W00t"
|
1113 |
+
|
1114 |
+
#: includes/i18n.php:315
|
1115 |
+
msgctxt "a positive response"
|
1116 |
+
msgid "Right on"
|
1117 |
+
msgstr "מעולה"
|
1118 |
+
|
1119 |
+
#: includes/i18n.php:316
|
1120 |
+
msgctxt ""
|
1121 |
+
msgid "Hmm"
|
1122 |
+
msgstr "הממ"
|
1123 |
+
|
1124 |
+
#: includes/i18n.php:318
|
1125 |
+
msgid "O.K"
|
1126 |
+
msgstr "אוקיי"
|
1127 |
+
|
1128 |
+
#: includes/i18n.php:319
|
1129 |
+
msgctxt "exclamation"
|
1130 |
+
msgid "Hey"
|
1131 |
+
msgstr "היי"
|
1132 |
+
|
1133 |
+
#: includes/i18n.php:320
|
1134 |
+
msgctxt "advance notice of something that will need attention."
|
1135 |
+
msgid "Heads up"
|
1136 |
+
msgstr "לתשמות לבך"
|
1137 |
+
|
1138 |
+
#: includes/i18n.php:325
|
1139 |
+
msgid "Seems like you got the latest release."
|
1140 |
+
msgstr "Seems like you got the latest release."
|
1141 |
+
|
1142 |
+
#: includes/i18n.php:326
|
1143 |
+
msgid "You are all good!"
|
1144 |
+
msgstr "את\\ה מסודר!"
|
1145 |
+
|
1146 |
+
#: includes/i18n.php:327
|
1147 |
+
msgid "Sorry, we could not complete the email update. Another user with the same email is already registered."
|
1148 |
+
msgstr "Sorry, we could not complete the email update. Another user with the same email is already registered."
|
1149 |
+
|
1150 |
+
#: includes/i18n.php:328
|
1151 |
+
msgid "If you would like to give up the ownership of the %s's account to %s click the Change Ownership button."
|
1152 |
+
msgstr "If you would like to give up the ownership of the %s's account to %s click the Change Ownership button."
|
1153 |
+
|
1154 |
+
#: includes/i18n.php:329
|
1155 |
+
msgid "Your email was successfully updated. You should receive an email with confirmation instructions in few moments."
|
1156 |
+
msgstr "Your email was successfully updated. You should receive an email with confirmation instructions in few moments."
|
1157 |
+
|
1158 |
+
#: includes/i18n.php:330
|
1159 |
+
msgid "Your name was successfully updated."
|
1160 |
+
msgstr "שמך עודכן בהצלחה."
|
1161 |
+
|
1162 |
+
#: includes/i18n.php:331
|
1163 |
+
msgid "You have successfully updated your %s."
|
1164 |
+
msgstr "You have successfully updated your %s."
|
1165 |
+
|
1166 |
+
#: includes/i18n.php:332
|
1167 |
+
msgid "Please provide your full name."
|
1168 |
+
msgstr "נא למלא את שמך המלא."
|
1169 |
+
|
1170 |
+
#: includes/i18n.php:333
|
1171 |
+
msgid "Verification mail was just sent to %s. If you can't find it after 5 min, please check your spam box."
|
1172 |
+
msgstr "Verification mail was just sent to %s. If you can't find it after 5 min, please check your spam box."
|
1173 |
+
|
1174 |
+
#: includes/i18n.php:334
|
1175 |
+
msgid "Just letting you know that the add-ons information of %s is being pulled from an external server."
|
1176 |
+
msgstr "Just letting you know that the add-ons information of %s is being pulled from an external server."
|
1177 |
+
|
1178 |
+
#: includes/i18n.php:335
|
1179 |
+
msgid "No credit card required"
|
1180 |
+
msgstr "לא נדרש כרטיס אשראי"
|
1181 |
+
|
1182 |
+
#: includes/i18n.php:336
|
1183 |
+
msgid "Premium %s version was successfully activated."
|
1184 |
+
msgstr "Premium %s version was successfully activated."
|
1185 |
+
|
1186 |
+
#: includes/i18n.php:337
|
1187 |
+
msgid "The upgrade of %s was successfully completed."
|
1188 |
+
msgstr "The upgrade of %s was successfully completed."
|
1189 |
+
|
1190 |
+
#: includes/i18n.php:338
|
1191 |
+
msgid "Your account was successfully activated with the %s plan."
|
1192 |
+
msgstr "חשבונך הופעל בהצלחה עם חבילת %s."
|
1193 |
+
|
1194 |
+
#: includes/i18n.php:339
|
1195 |
+
msgid "Download the latest %s version now"
|
1196 |
+
msgstr "הורדת גרסת ה-%s העדכנית - עכשיו"
|
1197 |
+
|
1198 |
+
#: includes/i18n.php:340
|
1199 |
+
msgid "Please follow these steps to complete the upgrade"
|
1200 |
+
msgstr "נא לבצע את הצעדים הבאים להשלמת השידרוג"
|
1201 |
+
|
1202 |
+
#: includes/i18n.php:341
|
1203 |
+
msgid "Download the latest %s version"
|
1204 |
+
msgstr "הורד\\י את גרסת ה-%s העדכנית"
|
1205 |
+
|
1206 |
+
#: includes/i18n.php:342
|
1207 |
+
msgid "Download the latest version"
|
1208 |
+
msgstr "הורד את הגרסה האחרונה"
|
1209 |
+
|
1210 |
+
#: includes/i18n.php:343
|
1211 |
+
msgid "Deactivate the free version"
|
1212 |
+
msgstr "כבה\\י את הגרסה החינאמית"
|
1213 |
+
|
1214 |
+
#: includes/i18n.php:344
|
1215 |
+
msgid "Upload and activate the downloaded version"
|
1216 |
+
msgstr "העלה\\י והפעיל\\י את הגרסה שהורדת"
|
1217 |
+
|
1218 |
+
#: includes/i18n.php:345
|
1219 |
+
msgid "How to upload and activate?"
|
1220 |
+
msgstr "איך להעלות ולהפעיל?"
|
1221 |
+
|
1222 |
+
#: includes/i18n.php:346
|
1223 |
+
msgctxt "%s - product name, e.g. Facebook add-on was successfully..."
|
1224 |
+
msgid "%s Add-on was successfully purchased."
|
1225 |
+
msgstr "ההרחבה %s נרכשה בהצלחה."
|
1226 |
+
|
1227 |
+
#: includes/i18n.php:348
|
1228 |
+
msgid "Your %s Add-on plan was successfully upgraded."
|
1229 |
+
msgstr "חבילת ההרחבה %s שודרגה בהצלחה."
|
1230 |
+
|
1231 |
+
#: includes/i18n.php:349
|
1232 |
+
msgid "Your email has been successfully verified - you are AWESOME!"
|
1233 |
+
msgstr "Your email has been successfully verified - you are AWESOME!"
|
1234 |
+
|
1235 |
+
#: includes/i18n.php:350
|
1236 |
+
msgid "Your plan was successfully upgraded."
|
1237 |
+
msgstr "החבילה שודרגה בהצלחה."
|
1238 |
+
|
1239 |
+
#: includes/i18n.php:351
|
1240 |
+
msgid "Your plan was successfully changed to %s."
|
1241 |
+
msgstr "החבילה עודכנה בהצלחה אל %s."
|
1242 |
+
|
1243 |
+
#: includes/i18n.php:352
|
1244 |
+
msgid "Your license has expired. You can still continue using the free %s forever."
|
1245 |
+
msgstr "Your license has expired. You can still continue using the free %s forever."
|
1246 |
+
|
1247 |
+
#: includes/i18n.php:353
|
1248 |
+
msgid "Your license has been cancelled. If you think it's a mistake, please contact support."
|
1249 |
+
msgstr "רשיונך בוטל. אם לדעתך זו טעות, נא ליצור קשר עם התמיכה."
|
1250 |
+
|
1251 |
+
#: includes/i18n.php:354
|
1252 |
+
msgid "Your trial has been successfully started."
|
1253 |
+
msgstr "הניסיון שלך הופעל בהצלחה."
|
1254 |
+
|
1255 |
+
#: includes/i18n.php:355
|
1256 |
+
msgid "Your license was successfully activated."
|
1257 |
+
msgstr "הרישיון הופעל בהצלחה."
|
1258 |
+
|
1259 |
+
#: includes/i18n.php:356
|
1260 |
+
msgid "It looks like your site currently doesn't have an active license."
|
1261 |
+
msgstr "נראה לאתר עדיין אין רישיון פעיל."
|
1262 |
+
|
1263 |
+
#: includes/i18n.php:357
|
1264 |
+
msgid "Your license was successfully deactivated, you are back to the %s plan."
|
1265 |
+
msgstr "רישיונך נותק בהצלחה, חזרת לחבילת %s"
|
1266 |
+
|
1267 |
+
#: includes/i18n.php:358
|
1268 |
+
msgid "It looks like the license deactivation failed."
|
1269 |
+
msgstr "נראה שניתוק הרישיון נכשל."
|
1270 |
+
|
1271 |
+
#: includes/i18n.php:359
|
1272 |
+
msgid "It looks like the license could not be activated."
|
1273 |
+
msgstr "נראה שלא ניתן להפעיל את הרישיון."
|
1274 |
+
|
1275 |
+
#: includes/i18n.php:360
|
1276 |
+
msgid "Error received from the server:"
|
1277 |
+
msgstr "הוחזרה שגיאה מהשרת:"
|
1278 |
+
|
1279 |
+
#: includes/i18n.php:361
|
1280 |
+
msgid "Your trial has expired. You can still continue using all our free features."
|
1281 |
+
msgstr "תקופת הניסיון נגמרה. ביכולתך להמשיך להשתמש בכל הפיטצ'רים החינאמיים."
|
1282 |
+
|
1283 |
+
#: includes/i18n.php:362
|
1284 |
+
msgid "Your plan was successfully downgraded. Your %s plan license will expire in %s."
|
1285 |
+
msgstr "Your plan was successfully downgraded. Your %s plan license will expire in %s."
|
1286 |
+
|
1287 |
+
#: includes/i18n.php:363
|
1288 |
+
msgid "Seems like we are having some temporary issue with your plan downgrade. Please try again in few minutes."
|
1289 |
+
msgstr "Seems like we are having some temporary issue with your plan downgrade. Please try again in few minutes."
|
1290 |
+
|
1291 |
+
#: includes/i18n.php:364
|
1292 |
+
msgid "It looks like you are not in trial mode anymore so there's nothing to cancel :)"
|
1293 |
+
msgstr "It looks like you are not in trial mode anymore so there's nothing to cancel :)"
|
1294 |
+
|
1295 |
+
#: includes/i18n.php:365
|
1296 |
+
msgid "Your %s free trial was successfully cancelled."
|
1297 |
+
msgstr "תקופת הניסיון החינמית של %s בוטלה בהצלחה."
|
1298 |
+
|
1299 |
+
#: includes/i18n.php:366
|
1300 |
+
msgctxt "%s - numeric version number"
|
1301 |
+
msgid "Version %s was released."
|
1302 |
+
msgstr "גרסה %s הושקה."
|
1303 |
+
|
1304 |
+
#: includes/i18n.php:367
|
1305 |
+
msgid "Please download %s."
|
1306 |
+
msgstr "נא להוריד את %s."
|
1307 |
+
|
1308 |
+
#: includes/i18n.php:368
|
1309 |
+
msgctxt "%s - plan name, as the latest professional version here"
|
1310 |
+
msgid "the latest %s version here"
|
1311 |
+
msgstr "גרסת ה-%s האחרונה כאן"
|
1312 |
+
|
1313 |
+
#: includes/i18n.php:370
|
1314 |
+
msgid "How do you like %s so far? Test all our %s premium features with a %d-day free trial."
|
1315 |
+
msgstr "How do you like %s so far? Test all our %s premium features with a %d-day free trial."
|
1316 |
+
|
1317 |
+
#: includes/i18n.php:371
|
1318 |
+
msgctxt "call to action"
|
1319 |
+
msgid "Start free trial"
|
1320 |
+
msgstr "התחלת ניסיון חינם"
|
1321 |
+
|
1322 |
+
#: includes/i18n.php:372
|
1323 |
+
msgid "Starting trial"
|
1324 |
+
msgstr "מתחיל תקופת ניסיון"
|
1325 |
+
|
1326 |
+
#: includes/i18n.php:373
|
1327 |
+
msgid "Please wait"
|
1328 |
+
msgstr "נא להמתין"
|
1329 |
+
|
1330 |
+
#: includes/i18n.php:374
|
1331 |
+
msgid "Seems like we are having some temporary issue with your trial cancellation. Please try again in few minutes."
|
1332 |
+
msgstr "Seems like we are having some temporary issue with your trial cancellation. Please try again in few minutes."
|
1333 |
+
|
1334 |
+
#: includes/i18n.php:375
|
1335 |
+
msgid "You already utilized a trial before."
|
1336 |
+
msgstr "הניסיון כבר נוצל בעבר."
|
1337 |
+
|
1338 |
+
#: includes/i18n.php:376
|
1339 |
+
msgid "You are already running the %s in a trial mode."
|
1340 |
+
msgstr "You are already running the %s in a trial mode."
|
1341 |
+
|
1342 |
+
#: includes/i18n.php:377
|
1343 |
+
msgid "Plan %s do not exist, therefore, can't start a trial."
|
1344 |
+
msgstr "החבילה %s אינה קיימת, לכן, לא ניתן להתחיל תקופת ניסיון."
|
1345 |
+
|
1346 |
+
#: includes/i18n.php:378
|
1347 |
+
msgid "Plan %s does not support a trial period."
|
1348 |
+
msgstr "תוכנית %s אינה תומכת בתקופת ניסיון."
|
1349 |
+
|
1350 |
+
#: includes/i18n.php:379
|
1351 |
+
msgid "None of the %s's plans supports a trial period."
|
1352 |
+
msgstr "None of the %s's plans supports a trial period."
|
1353 |
+
|
1354 |
+
#: includes/i18n.php:380
|
1355 |
+
msgid "Unexpected API error. Please contact the %s's author with the following error."
|
1356 |
+
msgstr "Unexpected API error. Please contact the %s's author with the following error."
|
1357 |
+
|
1358 |
+
#: includes/i18n.php:381
|
1359 |
+
msgid "No commitment for %s days - cancel anytime!"
|
1360 |
+
msgstr "ללא התחייבות ל-%s ימין - בטלו בכל רגע!"
|
1361 |
+
|
1362 |
+
#: includes/i18n.php:382
|
1363 |
+
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."
|
1364 |
+
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."
|
1365 |
+
|
1366 |
+
#: includes/i18n.php:383
|
1367 |
+
msgid "Couldn't activate %s."
|
1368 |
+
msgstr "לא ניתן להפעיל את %s."
|
1369 |
+
|
1370 |
+
#: includes/i18n.php:384
|
1371 |
+
msgid "Please contact us with the following message:"
|
1372 |
+
msgstr "אנא צור איתנו קשר יחד עם ההודעה הבאה:"
|
1373 |
+
|
1374 |
+
#: includes/i18n.php:385
|
1375 |
+
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."
|
1376 |
+
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."
|
1377 |
+
|
1378 |
+
#: includes/i18n.php:386
|
1379 |
+
msgid "Please contact us here"
|
1380 |
+
msgstr "אנא צור איתנו קשר כאן"
|
1381 |
+
|
1382 |
+
#: includes/i18n.php:387
|
1383 |
+
msgid "I have upgraded my account but when I try to Sync the License, the plan remains %s."
|
1384 |
+
msgstr "שידרגתי את החשבון שלי אבל כשאני מנסה לבצע סנכרון לרישיון החבילה נשארת %s."
|
1385 |
+
|
1386 |
+
#: includes/i18n.php:390
|
1387 |
+
msgid "From unknown reason, the API connectivity test failed."
|
1388 |
+
msgstr "יש בעיית תקשורת ל-API מסיבה בלתי ברורה."
|
1389 |
+
|
1390 |
+
#: includes/i18n.php:391
|
1391 |
+
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?"
|
1392 |
+
msgstr "ככל הנראה זאת בעיה זמנית בצד שלנו. ברשותך, ורק כדי להיות בטוחים שזאת הבעיה, האם זה יהיה בסדר לבצע בדיקת תקשורת נוספת?"
|
1393 |
+
|
1394 |
+
#: includes/i18n.php:392
|
1395 |
+
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."
|
1396 |
+
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."
|
1397 |
+
|
1398 |
+
#: includes/i18n.php:393
|
1399 |
+
msgid "Disabled method(s):"
|
1400 |
+
msgstr "Disabled method(s):"
|
1401 |
+
|
1402 |
+
#: includes/i18n.php:394
|
1403 |
+
msgid "From unknown reason, CloudFlare, the firewall we use, blocks the connection."
|
1404 |
+
msgstr "מסיבה בלתי ברורה, CloudFlare, חומת האש שאנחנו משתמשים בה, חוסמת את התקשורת."
|
1405 |
+
|
1406 |
+
#: includes/i18n.php:395
|
1407 |
+
msgctxt "as pluginX requires an access to our API"
|
1408 |
+
msgid "%s requires an access to our API."
|
1409 |
+
msgstr "%s מחייב גישה ל-API שלנו."
|
1410 |
+
|
1411 |
+
#: includes/i18n.php:397
|
1412 |
+
msgid "It looks like your server is using Squid ACL (access control lists), which blocks the connection."
|
1413 |
+
msgstr "It looks like your server is using Squid ACL (access control lists), which blocks the connection."
|
1414 |
+
|
1415 |
+
#: includes/i18n.php:398
|
1416 |
+
msgid "I don't know what is Squid or ACL, help me!"
|
1417 |
+
msgstr "אין לי מושג מה זה Squid או ACL - אשמח לעזרה!"
|
1418 |
+
|
1419 |
+
#: includes/i18n.php399, includes/i18n.php:403
|
1420 |
+
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."
|
1421 |
+
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."
|
1422 |
+
|
1423 |
+
#: includes/i18n.php:400
|
1424 |
+
msgid "I'm a system administrator"
|
1425 |
+
msgstr "אני מנהל מערכת"
|
1426 |
+
|
1427 |
+
#: includes/i18n.php:401
|
1428 |
+
msgid "Great, please whitelist the following domains: %s. Once you are done, deactivate the %s and activate it again."
|
1429 |
+
msgstr "Great, please whitelist the following domains: %s. Once you are done, deactivate the %s and activate it again."
|
1430 |
+
|
1431 |
+
#: includes/i18n.php:402
|
1432 |
+
msgid "I don't know what is cURL or how to install it, help me!"
|
1433 |
+
msgstr "אין לי מושג מה זה cURL או איך להתקין אותו - אשמח לעזרה!"
|
1434 |
+
|
1435 |
+
#: includes/i18n.php:404
|
1436 |
+
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."
|
1437 |
+
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."
|
1438 |
+
|
1439 |
+
#: includes/i18n.php:405
|
1440 |
+
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."
|
1441 |
+
msgstr "זו בטח בעיה בצד שלנו ואנחנו נשמח לעזור כדי לפתור את העניין בהקדם האפשר, רק במידה ותאפשר\\י זאת."
|
1442 |
+
|
1443 |
+
#: includes/i18n.php:406
|
1444 |
+
msgid "Sorry for the inconvenience and we are here to help if you give us a chance."
|
1445 |
+
msgstr "מצטערים על חוסר הנעימות, אנחנו כאן כדי לעזור אם תאפשר\\י זאת."
|
1446 |
+
|
1447 |
+
#: includes/i18n.php:407
|
1448 |
+
msgid "Yes - I'm giving you a chance to fix it"
|
1449 |
+
msgstr "כן - אני נותן לך צ'אנס לתקן את זה"
|
1450 |
+
|
1451 |
+
#: includes/i18n.php:408
|
1452 |
+
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."
|
1453 |
+
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."
|
1454 |
+
|
1455 |
+
#: includes/i18n.php:409
|
1456 |
+
msgid "Let's try your previous version"
|
1457 |
+
msgstr "בוא ננסה את הגירסה הקודמת"
|
1458 |
+
|
1459 |
+
#: includes/i18n.php:410
|
1460 |
+
msgid "Uninstall this version and install the previous one."
|
1461 |
+
msgstr "הסר את הגרסה הנוכחית והתקן את הגרסה קודמת."
|
1462 |
+
|
1463 |
+
#: includes/i18n.php:411
|
1464 |
+
msgid "That's exhausting, please deactivate"
|
1465 |
+
msgstr "זה מתיש, אנא לכבות"
|
1466 |
+
|
1467 |
+
#: includes/i18n.php:412
|
1468 |
+
msgid "We feel your frustration and sincerely apologize for the inconvenience. Hope to see you again in the future."
|
1469 |
+
msgstr "We feel your frustration and sincerely apologize for the inconvenience. Hope to see you again in the future."
|
1470 |
+
|
1471 |
+
#: includes/i18n.php:413
|
1472 |
+
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."
|
1473 |
+
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."
|
1474 |
+
|
1475 |
+
#: includes/i18n.php:414
|
1476 |
+
msgctxt "%1s - plugin title, %2s - API domain"
|
1477 |
+
msgid "Your server is blocking the access to Freemius' API, which is crucial for %1s synchronization. Please contact your host to whitelist %2s"
|
1478 |
+
msgstr "Your server is blocking the access to Freemius' API, which is crucial for %1s synchronization. Please contact your host to whitelist %2s"
|
1479 |
+
|
1480 |
+
#: includes/i18n.php:416
|
1481 |
+
msgid "It seems like one of the authentication parameters is wrong. Update your Public Key, Secret Key & User ID, and try again."
|
1482 |
+
msgstr "It seems like one of the authentication parameters is wrong. Update your Public Key, Secret Key & User ID, and try again."
|
1483 |
+
|
1484 |
+
#: includes/i18n.php:419
|
1485 |
+
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."
|
1486 |
+
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."
|
1487 |
+
|
1488 |
+
#: includes/i18n.php:420
|
1489 |
+
msgid "Thanks for confirming the ownership change. An email was just sent to %s for final approval."
|
1490 |
+
msgstr "תודה על אישור ביצוע החלפת הבעלות. הרגע נשלח מייל ל-%s כדי לקבל אישור סופי."
|
1491 |
+
|
1492 |
+
#: includes/i18n.php:421
|
1493 |
+
msgid "%s is the new owner of the account."
|
1494 |
+
msgstr "%s הינו הבעלים החד של חשבון זה."
|
1495 |
+
|
1496 |
+
#: includes/i18n.php:423
|
1497 |
+
msgctxt "addonX cannot run without pluginY"
|
1498 |
+
msgid "%s cannot run without %s."
|
1499 |
+
msgstr "%s לא יכול לעבוד ללא %s."
|
1500 |
+
|
1501 |
+
#: includes/i18n.php:425
|
1502 |
+
msgctxt "addonX cannot run..."
|
1503 |
+
msgid "%s cannot run without the plugin."
|
1504 |
+
msgstr "ההרחבה %s אינה יכולה לפעול ללא התוסף."
|
1505 |
+
|
1506 |
+
#: includes/i18n.php:426
|
1507 |
+
msgctxt "pluginX activation was successfully..."
|
1508 |
+
msgid "%s activation was successfully completed."
|
1509 |
+
msgstr "הפעלת %s הושלמה בהצלחה."
|
1510 |
+
|
1511 |
+
#: includes/i18n.php:428
|
1512 |
+
msgctxt "Plugin installer section title"
|
1513 |
+
msgid "Features & Pricing"
|
1514 |
+
msgstr "פיטצ'רים ומחירים"
|
1515 |
+
|
1516 |
+
#: includes/i18n.php:429
|
1517 |
+
msgid "Add-on must be deployed to WordPress.org or Freemius."
|
1518 |
+
msgstr "Add-on must be deployed to WordPress.org or Freemius."
|
1519 |
+
|
1520 |
+
#: includes/i18n.php:430
|
1521 |
+
msgid "Paid add-on must be deployed to Freemius."
|
1522 |
+
msgstr "Paid add-on must be deployed to Freemius."
|
1523 |
+
|
1524 |
+
#: includes/i18n.php:434
|
1525 |
+
msgid "%s is a premium only add-on. You have to purchase a license first before activating the plugin."
|
1526 |
+
msgstr "%s is a premium only add-on. You have to purchase a license first before activating the plugin."
|
1527 |
+
|
1528 |
+
#: includes/i18n.php:435
|
1529 |
+
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."
|
1530 |
+
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."
|
1531 |
+
|
1532 |
+
#: includes/i18n.php:440
|
1533 |
+
msgctxt "as every month"
|
1534 |
+
msgid "Monthly"
|
1535 |
+
msgstr "חודשי"
|
1536 |
+
|
1537 |
+
#: includes/i18n.php:441
|
1538 |
+
msgctxt "as monthly period"
|
1539 |
+
msgid "mo"
|
1540 |
+
msgstr "חודשים"
|
1541 |
+
|
1542 |
+
#: includes/i18n.php:442
|
1543 |
+
msgctxt "as once a year"
|
1544 |
+
msgid "Annual"
|
1545 |
+
msgstr "שנתי"
|
1546 |
+
|
1547 |
+
#: includes/i18n.php:443
|
1548 |
+
msgctxt "as once a year"
|
1549 |
+
msgid "Annually"
|
1550 |
+
msgstr "שנתי"
|
1551 |
+
|
1552 |
+
#: includes/i18n.php:444
|
1553 |
+
msgctxt "as once a year"
|
1554 |
+
msgid "Once"
|
1555 |
+
msgstr "פעם אחת"
|
1556 |
+
|
1557 |
+
#: includes/i18n.php:445
|
1558 |
+
msgctxt "as annual period"
|
1559 |
+
msgid "year"
|
1560 |
+
msgstr "שנה"
|
1561 |
+
|
1562 |
+
#: includes/i18n.php:446
|
1563 |
+
msgid "Lifetime"
|
1564 |
+
msgstr "לכל החיים"
|
1565 |
+
|
1566 |
+
#: includes/i18n.php:447
|
1567 |
+
msgctxt "e.g. the best product"
|
1568 |
+
msgid "Best"
|
1569 |
+
msgstr "הכי טוב"
|
1570 |
+
|
1571 |
+
#: includes/i18n.php:448
|
1572 |
+
msgctxt "e.g. billed monthly"
|
1573 |
+
msgid "Billed %s"
|
1574 |
+
msgstr "מחוייב על בסיס %s"
|
1575 |
+
|
1576 |
+
#: includes/i18n.php:449
|
1577 |
+
msgctxt "as a discount of $5 or 10%"
|
1578 |
+
msgid "Save %s"
|
1579 |
+
msgstr "שמירת %s"
|
1580 |
+
|
1581 |
+
#: includes/i18n.php:451
|
1582 |
+
msgid "View details"
|
1583 |
+
msgstr "פרטים נוספים"
|
1584 |
+
|
1585 |
+
#: includes/i18n.php:455
|
1586 |
+
msgctxt "button label"
|
1587 |
+
msgid "Approve & Start Trial"
|
1588 |
+
msgstr "אשר והתחל תקופת ניסיון"
|
1589 |
+
|
1590 |
+
#: includes/i18n.php:457
|
1591 |
+
msgid "You are 1-click away from starting your %1$s-day free trial of the %2$s plan."
|
1592 |
+
msgstr "You are 1-click away from starting your %1$s-day free trial of the %2$s plan."
|
1593 |
+
|
1594 |
+
#: includes/i18n.php:459
|
1595 |
+
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."
|
1596 |
+
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."
|
1597 |
+
|
1598 |
+
#: includes/i18n.php:465
|
1599 |
+
msgid "Business name"
|
1600 |
+
msgstr "שם עסק"
|
1601 |
+
|
1602 |
+
#: includes/i18n.php:466
|
1603 |
+
msgid "Tax / VAT ID"
|
1604 |
+
msgstr "Tax / VAT ID"
|
1605 |
+
|
1606 |
+
#: includes/i18n.php:467
|
1607 |
+
msgid "Address Line %d"
|
1608 |
+
msgstr "כתובת %s"
|
1609 |
+
|
1610 |
+
#: includes/i18n.php:468
|
1611 |
+
msgid "Country"
|
1612 |
+
msgstr "מדינה"
|
1613 |
+
|
1614 |
+
#: includes/i18n.php:469
|
1615 |
+
msgid "Select Country"
|
1616 |
+
msgstr "בחר מדינה"
|
1617 |
+
|
1618 |
+
#: includes/i18n.php:470
|
1619 |
+
msgid "City"
|
1620 |
+
msgstr "עיר"
|
1621 |
+
|
1622 |
+
#: includes/i18n.php:471
|
1623 |
+
msgid "Town"
|
1624 |
+
msgstr "כפר"
|
1625 |
+
|
1626 |
+
#: includes/i18n.php:472
|
1627 |
+
msgid "State"
|
1628 |
+
msgstr "מחוז/מדינה"
|
1629 |
+
|
1630 |
+
#: includes/i18n.php:473
|
1631 |
+
msgid "Province"
|
1632 |
+
msgstr "פרובינציה"
|
1633 |
+
|
1634 |
+
#: includes/i18n.php:474
|
1635 |
+
msgid "ZIP / Postal Code"
|
1636 |
+
msgstr "מיקוד / תא דואר"
|
1637 |
+
|
1638 |
+
#: includes/i18n.php:479
|
1639 |
+
msgid "Installing plugin: %s"
|
1640 |
+
msgstr "Installing plugin: %s"
|
1641 |
+
|
1642 |
+
#: includes/i18n.php:480
|
1643 |
+
msgid "Automatic Installation"
|
1644 |
+
msgstr "התקנה אוטומטית"
|
1645 |
+
|
1646 |
+
#: includes/i18n.php:482
|
1647 |
+
msgid "%s sec"
|
1648 |
+
msgstr "%s שניות"
|
1649 |
+
|
1650 |
+
#: includes/i18n.php:483
|
1651 |
+
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."
|
1652 |
+
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."
|
1653 |
+
|
1654 |
+
#: includes/i18n.php:484
|
1655 |
+
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."
|
1656 |
+
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."
|
1657 |
+
|
1658 |
+
#: includes/i18n.php:485
|
1659 |
+
msgid "Cancel Installation"
|
1660 |
+
msgstr "בטל התקנה"
|
1661 |
+
|
1662 |
+
#: includes/i18n.php:486
|
1663 |
+
msgid "The remote plugin package does not contain a folder with the desired slug and renaming did not work."
|
1664 |
+
msgstr "The remote plugin package does not contain a folder with the desired slug and renaming did not work."
|
1665 |
+
|
1666 |
+
#: includes/i18n.php:487
|
1667 |
+
msgid "Invalid module ID."
|
1668 |
+
msgstr "Invalid module ID."
|
1669 |
+
|
1670 |
+
#: includes/i18n.php:488
|
1671 |
+
msgid "Auto installation only works for opted-in users."
|
1672 |
+
msgstr "Auto installation only works for opted-in users."
|
1673 |
+
|
1674 |
+
#: includes/i18n.php:489
|
1675 |
+
msgid "Premium version already active."
|
1676 |
+
msgstr "Premium version already active."
|
1677 |
+
|
1678 |
+
#: includes/i18n.php:490
|
1679 |
+
msgid "Premium add-on version already installed."
|
1680 |
+
msgstr "Premium add-on version already installed."
|
1681 |
+
|
1682 |
+
#: includes/i18n.php:491
|
1683 |
+
msgid "You do not have a valid license to access the premium version."
|
1684 |
+
msgstr "You do not have a valid license to access the premium version."
|
1685 |
+
|
1686 |
+
#: includes/i18n.php:492
|
1687 |
+
msgid "Plugin is a \"Serviceware\" which means it does not have a premium code version."
|
1688 |
+
msgstr "Plugin is a \"Serviceware\" which means it does not have a premium code version."
|
1689 |
+
|
1690 |
+
#: includes/i18n.php:496
|
1691 |
+
msgid "Secure HTTPS %s page, running from an external domain"
|
1692 |
+
msgstr "Secure HTTPS %s page, running from an external domain"
|
1693 |
+
|
1694 |
+
#: includes/i18n.php:497
|
1695 |
+
msgid "PCI compliant"
|
1696 |
+
msgstr "PCI compliant"
|
1697 |
+
|
1698 |
+
#: includes/i18n.php:498
|
1699 |
+
msgid "View paid features"
|
1700 |
+
msgstr "View paid features"
|
1701 |
+
|
1702 |
+
#: includes/i18n.php:512
|
1703 |
+
msgctxt "Plugin installer section title"
|
1704 |
+
msgid "Description"
|
1705 |
+
msgstr "תיאור"
|
1706 |
+
|
1707 |
+
#: includes/i18n.php:513
|
1708 |
+
msgctxt "Plugin installer section title"
|
1709 |
+
msgid "Installation"
|
1710 |
+
msgstr "התקנה"
|
1711 |
+
|
1712 |
+
#: includes/i18n.php:514
|
1713 |
+
msgctxt "Plugin installer section title"
|
1714 |
+
msgid "FAQ"
|
1715 |
+
msgstr "שאלות נפוצות"
|
1716 |
+
|
1717 |
+
#: includes/i18n.php:515
|
1718 |
+
msgctxt "Plugin installer section title"
|
1719 |
+
msgid "Changelog"
|
1720 |
+
msgstr "לוג שינויים"
|
1721 |
+
|
1722 |
+
#: includes/i18n.php:516
|
1723 |
+
msgctxt "Plugin installer section title"
|
1724 |
+
msgid "Reviews"
|
1725 |
+
msgstr "ביקורות"
|
1726 |
+
|
1727 |
+
#: includes/i18n.php:517
|
1728 |
+
msgctxt "Plugin installer section title"
|
1729 |
+
msgid "Other Notes"
|
1730 |
+
msgstr "היערות נוספות"
|
1731 |
+
|
1732 |
+
#: includes/i18n.php:519
|
1733 |
+
msgid "%s star"
|
1734 |
+
msgstr "כוכב %s"
|
1735 |
+
|
1736 |
+
#: includes/i18n.php:521
|
1737 |
+
msgid "%s stars"
|
1738 |
+
msgstr "%s כוכבים"
|
1739 |
+
|
1740 |
+
#: includes/i18n.php:523
|
1741 |
+
msgid "%s rating"
|
1742 |
+
msgstr "דרוג %s"
|
1743 |
+
|
1744 |
+
#: includes/i18n.php:525
|
1745 |
+
msgid "%s ratings"
|
1746 |
+
msgstr "%s דרוגים"
|
1747 |
+
|
1748 |
+
#: includes/i18n.php:527
|
1749 |
+
msgid "%s time"
|
1750 |
+
msgstr "פעם %s"
|
1751 |
+
|
1752 |
+
#: includes/i18n.php:529
|
1753 |
+
msgid "%s times"
|
1754 |
+
msgstr "%s פעמים"
|
1755 |
+
|
1756 |
+
#: includes/i18n.php:531
|
1757 |
+
msgid "Click to see reviews that provided a rating of %s"
|
1758 |
+
msgstr "Click to see reviews that provided a rating of %s"
|
1759 |
+
|
1760 |
+
#: includes/i18n.php:532
|
1761 |
+
msgid "Last Updated"
|
1762 |
+
msgstr "עודכן לאחרונה"
|
1763 |
+
|
1764 |
+
#: includes/i18n.php:533
|
1765 |
+
msgid "Requires WordPress Version:"
|
1766 |
+
msgstr "דורש וורדפרס גרסה:"
|
1767 |
+
|
1768 |
+
#: includes/i18n.php:534
|
1769 |
+
msgctxt "as the plugin author"
|
1770 |
+
msgid "Author:"
|
1771 |
+
msgstr "מחבר:"
|
1772 |
+
|
1773 |
+
#: includes/i18n.php:535
|
1774 |
+
msgid "Compatible up to:"
|
1775 |
+
msgstr "Compatible up to:"
|
1776 |
+
|
1777 |
+
#: includes/i18n.php:536
|
1778 |
+
msgid "Downloaded:"
|
1779 |
+
msgstr "הורדות:"
|
1780 |
+
|
1781 |
+
#: includes/i18n.php:537
|
1782 |
+
msgid "WordPress.org Plugin Page"
|
1783 |
+
msgstr "WordPress.org Plugin Page"
|
1784 |
+
|
1785 |
+
#: includes/i18n.php:538
|
1786 |
+
msgid "Plugin Homepage"
|
1787 |
+
msgstr "עמוד התוסף"
|
1788 |
+
|
1789 |
+
#: includes/i18n.php:539
|
1790 |
+
msgid "Donate to this plugin"
|
1791 |
+
msgstr "Donate to this plugin"
|
1792 |
+
|
1793 |
+
#: includes/i18n.php:540
|
1794 |
+
msgid "Average Rating"
|
1795 |
+
msgstr "דירוג ממוצע"
|
1796 |
+
|
1797 |
+
#: includes/i18n.php:541
|
1798 |
+
msgid "based on %s"
|
1799 |
+
msgstr "מבוסס על %s"
|
1800 |
+
|
1801 |
+
#: includes/i18n.php:542
|
1802 |
+
msgid "Warning:"
|
1803 |
+
msgstr "אזהרה:"
|
1804 |
+
|
1805 |
+
#: includes/i18n.php:543
|
1806 |
+
msgid "Contributors"
|
1807 |
+
msgstr "תורמים"
|
1808 |
+
|
1809 |
+
#: includes/i18n.php:544
|
1810 |
+
msgid "Plugin Install"
|
1811 |
+
msgstr "התקנת תוסף"
|
1812 |
+
|
1813 |
+
#: includes/i18n.php:545
|
1814 |
+
msgid "This plugin has not been tested with your current version of WordPress."
|
1815 |
+
msgstr "This plugin has not been tested with your current version of WordPress."
|
1816 |
+
|
1817 |
+
#: includes/i18n.php:546
|
1818 |
+
msgid "This plugin has not been marked as compatible with your version of WordPress."
|
1819 |
+
msgstr "This plugin has not been marked as compatible with your version of WordPress."
|
1820 |
+
|
1821 |
+
#: includes/i18n.php:547
|
1822 |
+
msgid "Newer Version (%s) Installed"
|
1823 |
+
msgstr "גרסה חדשה (%s) הותקנה"
|
1824 |
+
|
1825 |
+
#: includes/i18n.php:548
|
1826 |
+
msgid "Latest Version Installed"
|
1827 |
+
msgstr "הגרסה האחרונה הותקנה"
|
freemius/languages/freemius-it_IT.mo
CHANGED
Binary file
|
freemius/languages/freemius-it_IT.po
CHANGED
@@ -1,1793 +1,1829 @@
|
|
1 |
-
# Copyright (C) 2017 freemius
|
2 |
-
# This file is distributed under the same license as the freemius package.
|
3 |
-
# Translators:
|
4 |
-
# Pelly Benassi <plasmax@gmail.com>, 2016
|
5 |
-
# Daniele Scasciafratte Mte90 <mte90net@gmail.com>, 2015-2017
|
6 |
-
# Pelly Benassi <plasmax@gmail.com>, 2016-2017
|
7 |
-
# Vova Feldman <vova@freemius.com>, 2015-2016
|
8 |
-
msgid ""
|
9 |
-
msgstr ""
|
10 |
-
"Project-Id-Version: WordPress SDK\n"
|
11 |
-
"Report-Msgid-Bugs-To: https://github.com/Freemius/wordpress-sdk/issues\n"
|
12 |
-
"POT-Creation-Date: \n"
|
13 |
-
"PO-Revision-Date: 2017-05-12 17:32+0000\n"
|
14 |
-
"Last-Translator: Vova Feldman <vova@freemius.com>\n"
|
15 |
-
"Language: it_IT\n"
|
16 |
-
"Language-Team: Italian (Italy) (http://www.transifex.com/freemius/wordpress-sdk/language/it_IT/)\n"
|
17 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
18 |
-
"Content-Transfer-Encoding: 8bit\n"
|
19 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
20 |
-
"MIME-Version: 1.0\n"
|
21 |
-
"X-Poedit-Basepath: ..\n"
|
22 |
-
"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"
|
23 |
-
"X-Poedit-SearchPath-0: .\n"
|
24 |
-
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
25 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
26 |
-
|
27 |
-
#: includes/i18n.php:37
|
28 |
-
msgid "Account"
|
29 |
-
msgstr "Account"
|
30 |
-
|
31 |
-
#: includes/i18n.php:38
|
32 |
-
msgid "Add On"
|
33 |
-
msgstr "Add-on"
|
34 |
-
|
35 |
-
#: includes/i18n.php:39
|
36 |
-
msgid "Contact Us"
|
37 |
-
msgstr "Contattaci"
|
38 |
-
|
39 |
-
#: includes/i18n.php:40
|
40 |
-
msgid "Contact Support"
|
41 |
-
msgstr "Contatta il supporto"
|
42 |
-
|
43 |
-
#: includes/i18n.php:41
|
44 |
-
msgid "Change Ownership"
|
45 |
-
msgstr "Cambia Proprietario"
|
46 |
-
|
47 |
-
#: includes/i18n.php:42
|
48 |
-
msgid "Support"
|
49 |
-
msgstr "Supporto"
|
50 |
-
|
51 |
-
#: includes/i18n.php:43
|
52 |
-
msgid "Support Forum"
|
53 |
-
msgstr "Forum di supporto"
|
54 |
-
|
55 |
-
#: includes/i18n.php:44
|
56 |
-
msgid "Add Ons"
|
57 |
-
msgstr "Add-on"
|
58 |
-
|
59 |
-
#: includes/i18n.php:45
|
60 |
-
msgctxt "verb"
|
61 |
-
msgid "Upgrade"
|
62 |
-
msgstr "Aggiornamento"
|
63 |
-
|
64 |
-
#: includes/i18n.php:46
|
65 |
-
msgid "Awesome"
|
66 |
-
msgstr "Fantastico"
|
67 |
-
|
68 |
-
#: includes/i18n.php:47
|
69 |
-
msgctxt "noun"
|
70 |
-
msgid "Pricing"
|
71 |
-
msgstr "Prezzi"
|
72 |
-
|
73 |
-
#: includes/i18n.php:48
|
74 |
-
msgctxt "noun"
|
75 |
-
msgid "Price"
|
76 |
-
msgstr "Prezzo"
|
77 |
-
|
78 |
-
#: includes/i18n.php:49
|
79 |
-
msgid "Unlimited Updates"
|
80 |
-
msgstr "Aggiornamenti Illimitati"
|
81 |
-
|
82 |
-
#: includes/i18n.php:50
|
83 |
-
msgctxt "verb"
|
84 |
-
msgid "Downgrade"
|
85 |
-
msgstr "Downgrade"
|
86 |
-
|
87 |
-
#: includes/i18n.php:51
|
88 |
-
msgctxt "verb"
|
89 |
-
msgid "Cancel Subscription"
|
90 |
-
msgstr "Cancel Subscription"
|
91 |
-
|
92 |
-
#: includes/i18n.php:52
|
93 |
-
msgid "Cancel Trial"
|
94 |
-
msgstr "Annulla prova gratuita"
|
95 |
-
|
96 |
-
#: includes/i18n.php:53
|
97 |
-
msgid "Free Trial"
|
98 |
-
msgstr "Prova gratuita"
|
99 |
-
|
100 |
-
#: includes/i18n.php:54
|
101 |
-
msgid "Start my free %s"
|
102 |
-
msgstr "Inizia la mia %s"
|
103 |
-
|
104 |
-
#: includes/i18n.php:55
|
105 |
-
msgid "No commitment for %s - cancel anytime"
|
106 |
-
msgstr "Nessun impegno con %s - cancella quando vuoi"
|
107 |
-
|
108 |
-
#: includes/i18n.php:56
|
109 |
-
msgid "After your free %s, pay as little as %s"
|
110 |
-
msgstr "Dopo il tuo %s gratuito, paghi solamente %s"
|
111 |
-
|
112 |
-
#: includes/i18n.php:57
|
113 |
-
msgid "Details"
|
114 |
-
msgstr "Dettagli"
|
115 |
-
|
116 |
-
#: includes/i18n.php:58
|
117 |
-
msgid "Account Details"
|
118 |
-
msgstr "Dettagli dell'account"
|
119 |
-
|
120 |
-
#: includes/i18n.php:59
|
121 |
-
msgctxt "verb"
|
122 |
-
msgid "Delete"
|
123 |
-
msgstr "Elimina"
|
124 |
-
|
125 |
-
#: includes/i18n.php:60
|
126 |
-
msgctxt "verb"
|
127 |
-
msgid "Show"
|
128 |
-
msgstr "Mostra"
|
129 |
-
|
130 |
-
#: includes/i18n.php:61
|
131 |
-
msgctxt "verb"
|
132 |
-
msgid "Hide"
|
133 |
-
msgstr "Nascondi"
|
134 |
-
|
135 |
-
#: includes/i18n.php:62
|
136 |
-
msgctxt "verb"
|
137 |
-
msgid "Edit"
|
138 |
-
msgstr "Modifica"
|
139 |
-
|
140 |
-
#: includes/i18n.php:63
|
141 |
-
msgctxt "verb"
|
142 |
-
msgid "Update"
|
143 |
-
msgstr "Aggiorna"
|
144 |
-
|
145 |
-
#: includes/i18n.php:64
|
146 |
-
msgid "Date"
|
147 |
-
msgstr "Data"
|
148 |
-
|
149 |
-
#: includes/i18n.php:65
|
150 |
-
msgid "Amount"
|
151 |
-
msgstr "Importo"
|
152 |
-
|
153 |
-
#: includes/i18n.php:66
|
154 |
-
msgid "Invoice"
|
155 |
-
msgstr "Fattura"
|
156 |
-
|
157 |
-
#: includes/i18n.php:67
|
158 |
-
msgid "Billing"
|
159 |
-
msgstr "Fatturazione"
|
160 |
-
|
161 |
-
#: includes/i18n.php:68
|
162 |
-
msgid "Payments"
|
163 |
-
msgstr "Pagamenti"
|
164 |
-
|
165 |
-
#: includes/i18n.php:69
|
166 |
-
msgid "Delete Account"
|
167 |
-
msgstr "Elimina Account"
|
168 |
-
|
169 |
-
#: includes/i18n.php:70
|
170 |
-
msgctxt "as close a window"
|
171 |
-
msgid "Dismiss"
|
172 |
-
msgstr "Chiudi"
|
173 |
-
|
174 |
-
#: includes/i18n.php:71
|
175 |
-
msgctxt "as product pricing plan"
|
176 |
-
msgid "Plan"
|
177 |
-
msgstr "Piano"
|
178 |
-
|
179 |
-
#: includes/i18n.php:72
|
180 |
-
msgid "Change Plan"
|
181 |
-
msgstr "Cambia piano"
|
182 |
-
|
183 |
-
#: includes/i18n.php:73
|
184 |
-
msgctxt "as download professional version"
|
185 |
-
msgid "Download %s Version"
|
186 |
-
msgstr "Scarica la versione %s"
|
187 |
-
|
188 |
-
#: includes/i18n.php:74
|
189 |
-
msgctxt "as download professional version now"
|
190 |
-
msgid "Download %s version now"
|
191 |
-
msgstr "Scarica la versione %s ora"
|
192 |
-
|
193 |
-
#: includes/i18n.php:75
|
194 |
-
msgctxt "as download latest version"
|
195 |
-
msgid "Download Latest"
|
196 |
-
msgstr "Scarica l'ultima versione"
|
197 |
-
|
198 |
-
#: includes/i18n.php:76
|
199 |
-
msgctxt "E.g. you have a professional license."
|
200 |
-
msgid "You have a %s license."
|
201 |
-
msgstr "Hai la licenza %s."
|
202 |
-
|
203 |
-
#: includes/i18n.php:77
|
204 |
-
msgid "New"
|
205 |
-
msgstr "Nuovo"
|
206 |
-
|
207 |
-
#: includes/i18n.php:78
|
208 |
-
msgid "Free"
|
209 |
-
msgstr "Gratuito"
|
210 |
-
|
211 |
-
#: includes/i18n.php:79
|
212 |
-
msgctxt "as trial plan"
|
213 |
-
msgid "Trial"
|
214 |
-
msgstr "Prova gratuita"
|
215 |
-
|
216 |
-
#: includes/i18n.php:80
|
217 |
-
msgctxt "as starting a trial plan"
|
218 |
-
msgid "Start Trial"
|
219 |
-
msgstr "Inizia il periodo di prova gratuito"
|
220 |
-
|
221 |
-
#: includes/i18n.php:81
|
222 |
-
msgctxt "verb"
|
223 |
-
msgid "Purchase"
|
224 |
-
msgstr "Acquisto"
|
225 |
-
|
226 |
-
#: includes/i18n.php:82
|
227 |
-
msgid "Purchase License"
|
228 |
-
msgstr "Acquista licenza"
|
229 |
-
|
230 |
-
#: includes/i18n.php:83
|
231 |
-
msgctxt "verb"
|
232 |
-
msgid "Buy"
|
233 |
-
msgstr "Compra"
|
234 |
-
|
235 |
-
#: includes/i18n.php:84
|
236 |
-
msgid "Buy License"
|
237 |
-
msgstr "Compra licenza"
|
238 |
-
|
239 |
-
#: includes/i18n.php:85
|
240 |
-
msgid "Single Site License"
|
241 |
-
msgstr "Licenza per sito singolo"
|
242 |
-
|
243 |
-
#: includes/i18n.php:86
|
244 |
-
msgid "Unlimited Licenses"
|
245 |
-
msgstr "Licenze illimitate"
|
246 |
-
|
247 |
-
#: includes/i18n.php:87
|
248 |
-
msgid "Up to %s Sites"
|
249 |
-
msgstr "Fino a %s siti"
|
250 |
-
|
251 |
-
#: includes/i18n.php:88
|
252 |
-
msgid "%sRenew your license now%s to access version %s features and support."
|
253 |
-
msgstr "%sRinnova la tua licenza ora%s per accedere a funzionalità e supporto della versione %s."
|
254 |
-
|
255 |
-
#: includes/i18n.php:89
|
256 |
-
msgid "Enter the email address you've used for the upgrade below and we will resend you the license key."
|
257 |
-
msgstr "Inserisci qui sotto l'indirizzo email che hai usato per registrare l'aggiornamento e ti invieremo di nuovo la chiave di licenza."
|
258 |
-
|
259 |
-
#: includes/i18n.php:90
|
260 |
-
msgctxt "e.g. Professional Plan"
|
261 |
-
msgid "%s Plan"
|
262 |
-
msgstr "Piano %s"
|
263 |
-
|
264 |
-
#: includes/i18n.php:91
|
265 |
-
msgid "You are just one step away - %s"
|
266 |
-
msgstr "Sei a un passo dalla fine - %s"
|
267 |
-
|
268 |
-
#: includes/i18n.php:92
|
269 |
-
msgctxt "%s - plugin name. As complete \"Jetpack\" activation now"
|
270 |
-
msgid "Complete \"%s\" Activation Now"
|
271 |
-
msgstr "Completa l'attivazione di \"%s\" ora"
|
272 |
-
|
273 |
-
#: includes/i18n.php:94
|
274 |
-
msgid "We made a few tweaks to the plugin, %s"
|
275 |
-
msgstr "Abbiamo apportato alcune modifiche al plugin, %s"
|
276 |
-
|
277 |
-
#: includes/i18n.php:95
|
278 |
-
msgid "Opt-in to make \"%s\" Better!"
|
279 |
-
msgstr "Contribuisci a rendere \"%s\" migliore!"
|
280 |
-
|
281 |
-
#: includes/i18n.php:96
|
282 |
-
msgid "Error"
|
283 |
-
msgstr "Errore"
|
284 |
-
|
285 |
-
#: includes/i18n.php:97
|
286 |
-
msgid "Freemius SDK couldn't find the plugin's main file. Please contact sdk@freemius.com with the current error."
|
287 |
-
msgstr "L'SDK di Freemius non è riuscito a trovare il file principale del plugin. Per favore contatta sdk@freemius.com riportando l'errore."
|
288 |
-
|
289 |
-
#: includes/i18n.php:100
|
290 |
-
msgctxt "as expiration date"
|
291 |
-
msgid "Expiration"
|
292 |
-
msgstr "Scadenza"
|
293 |
-
|
294 |
-
#: includes/i18n.php:101
|
295 |
-
msgctxt "as software license"
|
296 |
-
msgid "License"
|
297 |
-
msgstr "Licenza"
|
298 |
-
|
299 |
-
#: includes/i18n.php:102
|
300 |
-
msgid "not verified"
|
301 |
-
msgstr "non verificato"
|
302 |
-
|
303 |
-
#: includes/i18n.php:103
|
304 |
-
msgid "Verify Email"
|
305 |
-
msgstr "Verifica email"
|
306 |
-
|
307 |
-
#: includes/i18n.php:104
|
308 |
-
msgctxt "e.g. expires in 2 months"
|
309 |
-
msgid "Expires in %s"
|
310 |
-
msgstr "Scade in %s"
|
311 |
-
|
312 |
-
#: includes/i18n.php:105
|
313 |
-
msgctxt "e.g. auto renews in 2 months"
|
314 |
-
msgid "Auto renews in %s"
|
315 |
-
msgstr "Rinnovo automatico in %s"
|
316 |
-
|
317 |
-
#: includes/i18n.php:106
|
318 |
-
msgid "No expiration"
|
319 |
-
msgstr "Nessuna scadenza"
|
320 |
-
|
321 |
-
#: includes/i18n.php:107
|
322 |
-
msgid "Expired"
|
323 |
-
msgstr "Scaduto"
|
324 |
-
|
325 |
-
#: includes/i18n.php:108
|
326 |
-
msgid "Cancelled"
|
327 |
-
msgstr "Annullato"
|
328 |
-
|
329 |
-
#: includes/i18n.php:109
|
330 |
-
msgctxt "e.g. In 2 hours"
|
331 |
-
msgid "In %s"
|
332 |
-
msgstr "In %s"
|
333 |
-
|
334 |
-
#: includes/i18n.php:110
|
335 |
-
msgctxt "e.g. 2 min ago"
|
336 |
-
msgid "%s ago"
|
337 |
-
msgstr "%s fa"
|
338 |
-
|
339 |
-
#: includes/i18n.php:112
|
340 |
-
msgid "%s or higher"
|
341 |
-
msgstr "%s o superiore"
|
342 |
-
|
343 |
-
#: includes/i18n.php:113
|
344 |
-
msgctxt "as plugin version"
|
345 |
-
msgid "Version"
|
346 |
-
msgstr "Versione"
|
347 |
-
|
348 |
-
#: includes/i18n.php:114
|
349 |
-
msgid "Name"
|
350 |
-
msgstr "Nome"
|
351 |
-
|
352 |
-
#: includes/i18n.php:115
|
353 |
-
msgid "Email"
|
354 |
-
msgstr "Email"
|
355 |
-
|
356 |
-
#: includes/i18n.php:116
|
357 |
-
msgid "Email address"
|
358 |
-
msgstr "Indirizzo email"
|
359 |
-
|
360 |
-
#: includes/i18n.php:117
|
361 |
-
msgid "Verified"
|
362 |
-
msgstr "Verificato"
|
363 |
-
|
364 |
-
#: includes/i18n.php:118
|
365 |
-
msgid "Module"
|
366 |
-
msgstr "Modulo"
|
367 |
-
|
368 |
-
#: includes/i18n.php:119
|
369 |
-
msgid "Module Type"
|
370 |
-
msgstr "Tipo di modulo"
|
371 |
-
|
372 |
-
#: includes/i18n.php:120
|
373 |
-
msgid "Plugin"
|
374 |
-
msgstr "Plugin"
|
375 |
-
|
376 |
-
#: includes/i18n.php:121
|
377 |
-
msgid "Plugins"
|
378 |
-
msgstr "Plugin"
|
379 |
-
|
380 |
-
#: includes/i18n.php:122
|
381 |
-
msgid "Theme"
|
382 |
-
msgstr "Tema"
|
383 |
-
|
384 |
-
#: includes/i18n.php:123
|
385 |
-
msgid "Themes"
|
386 |
-
msgstr "Temi"
|
387 |
-
|
388 |
-
#: includes/i18n.php:124
|
389 |
-
msgctxt "as file/folder path"
|
390 |
-
msgid "Path"
|
391 |
-
msgstr "Percorso"
|
392 |
-
|
393 |
-
#: includes/i18n.php:125
|
394 |
-
msgid "Title"
|
395 |
-
msgstr "Titolo"
|
396 |
-
|
397 |
-
#: includes/i18n.php:126
|
398 |
-
msgid "Free version"
|
399 |
-
msgstr "Versione gratuita"
|
400 |
-
|
401 |
-
#: includes/i18n.php:127
|
402 |
-
msgid "Premium version"
|
403 |
-
msgstr "Versione premium"
|
404 |
-
|
405 |
-
#: includes/i18n.php:128
|
406 |
-
msgctxt "as WP plugin slug"
|
407 |
-
msgid "Slug"
|
408 |
-
msgstr "Slug"
|
409 |
-
|
410 |
-
#: includes/i18n.php:129
|
411 |
-
msgid "ID"
|
412 |
-
msgstr "ID"
|
413 |
-
|
414 |
-
#: includes/i18n.php:130
|
415 |
-
msgid "Users"
|
416 |
-
msgstr "Utenti"
|
417 |
-
|
418 |
-
#: includes/i18n.php:131
|
419 |
-
msgid "Plugin Installs"
|
420 |
-
msgstr "Installazioni Plugin"
|
421 |
-
|
422 |
-
#: includes/i18n.php:132
|
423 |
-
msgid "%s Installs"
|
424 |
-
msgstr "%s Installazioni"
|
425 |
-
|
426 |
-
#: includes/i18n.php:133
|
427 |
-
msgctxt "like websites"
|
428 |
-
msgid "Sites"
|
429 |
-
msgstr "Siti"
|
430 |
-
|
431 |
-
#: includes/i18n.php:134
|
432 |
-
msgid "User ID"
|
433 |
-
msgstr "ID utente"
|
434 |
-
|
435 |
-
#: includes/i18n.php:135
|
436 |
-
msgid "Site ID"
|
437 |
-
msgstr "ID del sito"
|
438 |
-
|
439 |
-
#: includes/i18n.php:136
|
440 |
-
msgid "Public Key"
|
441 |
-
msgstr "Chiave pubblica"
|
442 |
-
|
443 |
-
#: includes/i18n.php:137
|
444 |
-
msgid "Secret Key"
|
445 |
-
msgstr "Chiave segreta"
|
446 |
-
|
447 |
-
#: includes/i18n.php:138
|
448 |
-
msgctxt "as secret encryption key missing"
|
449 |
-
msgid "No Secret"
|
450 |
-
msgstr "Nessuna chiave"
|
451 |
-
|
452 |
-
#: includes/i18n.php:139
|
453 |
-
msgid "No ID"
|
454 |
-
msgstr "Nessun ID"
|
455 |
-
|
456 |
-
#: includes/i18n.php:140
|
457 |
-
msgctxt "as synchronize license"
|
458 |
-
msgid "Sync License"
|
459 |
-
msgstr "Sincronizza la licenza"
|
460 |
-
|
461 |
-
#: includes/i18n.php:141
|
462 |
-
msgctxt "as synchronize"
|
463 |
-
msgid "Sync"
|
464 |
-
msgstr "Sincronizza"
|
465 |
-
|
466 |
-
#: includes/i18n.php:142
|
467 |
-
msgid "Activate License"
|
468 |
-
msgstr "Attiva licenza"
|
469 |
-
|
470 |
-
#: includes/i18n.php:143
|
471 |
-
msgid "Activate Free Version"
|
472 |
-
msgstr "Attiva versione gratuita"
|
473 |
-
|
474 |
-
#: includes/i18n.php:144
|
475 |
-
msgid "Please enter the license key that you received in the email right after the purchase:"
|
476 |
-
msgstr "Per favore inserisci la chiave di licenza che hai ricevuto via mail subito dopo l'acquisto:"
|
477 |
-
|
478 |
-
#: includes/i18n.php:145
|
479 |
-
msgid "Activating license..."
|
480 |
-
msgstr "Sto attivando la licenza..."
|
481 |
-
|
482 |
-
#: includes/i18n.php:146
|
483 |
-
msgid "Change License"
|
484 |
-
msgstr "Cambia licenza"
|
485 |
-
|
486 |
-
#: includes/i18n.php:147
|
487 |
-
msgid "Update License"
|
488 |
-
msgstr "Aggiorna licenza"
|
489 |
-
|
490 |
-
#: includes/i18n.php:148
|
491 |
-
msgid "Deactivate License"
|
492 |
-
msgstr "Disattiva licenza"
|
493 |
-
|
494 |
-
#: includes/i18n.php:149
|
495 |
-
msgid "Activate"
|
496 |
-
msgstr "Attiva"
|
497 |
-
|
498 |
-
#: includes/i18n.php:150
|
499 |
-
msgid "Deactivate"
|
500 |
-
msgstr "Disattiva"
|
501 |
-
|
502 |
-
#: includes/i18n.php:151
|
503 |
-
msgid "Skip & Deactivate"
|
504 |
-
msgstr "Salta e disattiva"
|
505 |
-
|
506 |
-
#: includes/i18n.php:152
|
507 |
-
msgid "Skip & %s"
|
508 |
-
msgstr "Salta & %s"
|
509 |
-
|
510 |
-
#: includes/i18n.php:153
|
511 |
-
msgid "No - just deactivate"
|
512 |
-
msgstr "No - disattiva e basta"
|
513 |
-
|
514 |
-
#: includes/i18n.php:154
|
515 |
-
msgid "Yes - do your thing"
|
516 |
-
msgstr "Sì - fai pure"
|
517 |
-
|
518 |
-
#: includes/i18n.php:155
|
519 |
-
msgctxt "active mode"
|
520 |
-
msgid "Active"
|
521 |
-
msgstr "Attiva"
|
522 |
-
|
523 |
-
#: includes/i18n.php:156
|
524 |
-
msgctxt "is active mode?"
|
525 |
-
msgid "Is Active"
|
526 |
-
msgstr "è attiva"
|
527 |
-
|
528 |
-
#: includes/i18n.php:157
|
529 |
-
msgid "Install Now"
|
530 |
-
msgstr "Installa ora"
|
531 |
-
|
532 |
-
#: includes/i18n.php:158
|
533 |
-
msgid "Install Update Now"
|
534 |
-
msgstr "Installa l'aggiornamento ora"
|
535 |
-
|
536 |
-
#: includes/i18n.php:159
|
537 |
-
msgid "More information about %s"
|
538 |
-
msgstr "Ulteriori informazioni su %s"
|
539 |
-
|
540 |
-
#: includes/i18n.php:160
|
541 |
-
msgid "Localhost"
|
542 |
-
msgstr "Localhost"
|
543 |
-
|
544 |
-
#: includes/i18n.php:161
|
545 |
-
msgctxt "as activate Professional plan"
|
546 |
-
msgid "Activate %s Plan"
|
547 |
-
msgstr "Attivare il piano %s"
|
548 |
-
|
549 |
-
#: includes/i18n.php:162
|
550 |
-
msgctxt "as 5 licenses left"
|
551 |
-
msgid "%s left"
|
552 |
-
msgstr "%s rimanenti"
|
553 |
-
|
554 |
-
#: includes/i18n.php:163
|
555 |
-
msgid "Last license"
|
556 |
-
msgstr "Ultima licenza"
|
557 |
-
|
558 |
-
#: includes/i18n.php:164
|
559 |
-
msgid "What is your %s?"
|
560 |
-
msgstr "Qual è il tuo %s?"
|
561 |
-
|
562 |
-
#: includes/i18n.php:165
|
563 |
-
msgid "Activate this add-on"
|
564 |
-
msgstr "Attivare questo addon"
|
565 |
-
|
566 |
-
#: includes/i18n.php:166
|
567 |
-
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?"
|
568 |
-
msgstr "La disattivazione della licenza bloccherà tutte le funzionalità premium, ma vi permetterà di attivare la licenza su un altro sito. Sei sicuro di voler procedere?"
|
569 |
-
|
570 |
-
#: includes/i18n.php:167
|
571 |
-
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?"
|
572 |
-
msgstr "L'eliminazione dell'account disattiva automaticamente la tua licenza del piano %s quindi è possibile utilizzarlo su altri siti. Se si desidera anche terminare i pagamenti ricorrenti, fare clic sul pulsante \"Annulla\" ed effettuare il \"Downgrade\" del tuo account. Sei sicuro di voler continuare con l'eliminazione?"
|
573 |
-
|
574 |
-
#: includes/i18n.php:168
|
575 |
-
msgid "Deletion is not temporary. Only delete if you no longer want to use this plugin anymore. Are you sure you would like to continue with the deletion?"
|
576 |
-
msgstr "L'eliminazione non è temporanea. Cancella solo se non si desidera più utilizzare questo plugin. Sei sicuro di voler continuare con l'eliminazione?"
|
577 |
-
|
578 |
-
#: includes/i18n.php:169
|
579 |
-
msgid "Downgrading your plan will immediately stop all future recurring payments and your %s plan license will expire in %s."
|
580 |
-
msgstr "Effettuare il downgrade del piano interromperà immediatamente tutti i futuri pagamenti ricorrenti e la licenza del piano %s scadrà in %s."
|
581 |
-
|
582 |
-
#: includes/i18n.php:170
|
583 |
-
msgid "Cancelling the trial will immediately block access to all premium features. Are you sure?"
|
584 |
-
msgstr "Cancellando il periodo di prova gratuito bloccherai immediatamente l'accesso a tutte le funzionalità premium. Vuoi continuare?"
|
585 |
-
|
586 |
-
#: includes/i18n.php:171
|
587 |
-
msgid "You can still enjoy all %s features but you will not have access to plugin updates and support."
|
588 |
-
msgstr "Puoi ancora sfruttare tutte le funzionalità di %s, ma non avrai accesso al supporto ed agli aggiornamenti del plugin."
|
589 |
-
|
590 |
-
#: includes/i18n.php:172
|
591 |
-
msgid "Once your license expires you can still use the Free version but you will NOT have access to the %s features."
|
592 |
-
msgstr "Quando la tua licenza scadrà, potrai comunque continuare a usare la versione gratuita, ma NON avrai accesso alle funzionalità %s."
|
593 |
-
|
594 |
-
#: includes/i18n.php:173
|
595 |
-
msgid "Are you sure you want to proceed?"
|
596 |
-
msgstr "Sei sicuro di voler procedere?"
|
597 |
-
|
598 |
-
#: includes/i18n.php:176
|
599 |
-
msgid "Add Ons for %s"
|
600 |
-
msgstr "Add-on per %s"
|
601 |
-
|
602 |
-
#: includes/i18n.php:177
|
603 |
-
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."
|
604 |
-
msgstr "Non siamo riusciti a caricare la lista degli add-on. Si tratta probabilmente di un problema nel nostro sistema, per favore riprova tra qualche minuto."
|
605 |
-
|
606 |
-
#: includes/i18n.php:179
|
607 |
-
msgid "Anonymous feedback"
|
608 |
-
msgstr "Feedback anonimo"
|
609 |
-
|
610 |
-
#: includes/i18n.php:180
|
611 |
-
msgid "Quick feedback"
|
612 |
-
msgstr "Feedback veloce"
|
613 |
-
|
614 |
-
#: includes/i18n.php:181
|
615 |
-
msgid "If you have a moment, please let us know why you are deactivating"
|
616 |
-
msgstr "Se hai un momento, potresti dirci perché lo hai disattivato?"
|
617 |
-
|
618 |
-
#: includes/i18n.php:182
|
619 |
-
msgid "Yes - Deactivate"
|
620 |
-
msgstr "Si - Disattiva"
|
621 |
-
|
622 |
-
#: includes/i18n.php:183
|
623 |
-
msgid "Submit & Deactivate"
|
624 |
-
msgstr "Invia & Disattiva"
|
625 |
-
|
626 |
-
#: includes/i18n.php:184
|
627 |
-
msgid "Cancel"
|
628 |
-
msgstr "Annulla"
|
629 |
-
|
630 |
-
#: includes/i18n.php:185
|
631 |
-
msgid "I no longer need the plugin"
|
632 |
-
msgstr "Non ho piú bisogno di questo plugin"
|
633 |
-
|
634 |
-
#: includes/i18n.php:186
|
635 |
-
msgid "I found a better plugin"
|
636 |
-
msgstr "Ho trovato un plugin migliore"
|
637 |
-
|
638 |
-
#: includes/i18n.php:187
|
639 |
-
msgid "I only needed the plugin for a short period"
|
640 |
-
msgstr "Avevo bisogno del plugin solo per un breve periodo"
|
641 |
-
|
642 |
-
#: includes/i18n.php:188
|
643 |
-
msgid "The plugin broke my site"
|
644 |
-
msgstr "Il plugin ha causato problemi al mio sito"
|
645 |
-
|
646 |
-
#: includes/i18n.php:189
|
647 |
-
msgid "The plugin suddenly stopped working"
|
648 |
-
msgstr "Il plugin ha smesso di funzionare"
|
649 |
-
|
650 |
-
#: includes/i18n.php:190
|
651 |
-
msgid "I can't pay for it anymore"
|
652 |
-
msgstr "Non posso piú pagarlo"
|
653 |
-
|
654 |
-
#: includes/i18n.php:191
|
655 |
-
msgid "It's a temporary deactivation. I'm just debugging an issue."
|
656 |
-
msgstr "È una disattivazione temporanea. Sto solo cercando di risolvere un problema."
|
657 |
-
|
658 |
-
#: includes/i18n.php:192
|
659 |
-
msgctxt ""
|
660 |
-
msgid "Other"
|
661 |
-
msgstr "Altro"
|
662 |
-
|
663 |
-
#: includes/i18n.php:194
|
664 |
-
msgid "Kindly tell us the reason so we can improve."
|
665 |
-
msgstr "Spiegandoci il motivo ci aiuterai a migliorare."
|
666 |
-
|
667 |
-
#: includes/i18n.php:195
|
668 |
-
msgid "What's the plugin's name?"
|
669 |
-
msgstr "Qual è il nome del plugin?"
|
670 |
-
|
671 |
-
#: includes/i18n.php:196
|
672 |
-
msgid "What price would you feel comfortable paying?"
|
673 |
-
msgstr "Che prezzo ritieni opportuno pagare?"
|
674 |
-
|
675 |
-
#: includes/i18n.php:197
|
676 |
-
msgid "I couldn't understand how to make it work"
|
677 |
-
msgstr "Non capisco come farlo funzionare"
|
678 |
-
|
679 |
-
#: includes/i18n.php:198
|
680 |
-
msgid "The plugin is great, but I need specific feature that you don't support"
|
681 |
-
msgstr "Il plugin é ottimo ma ho bisogno di una funzionalitá specifica che non é supportata"
|
682 |
-
|
683 |
-
#: includes/i18n.php:199
|
684 |
-
msgid "The plugin is not working"
|
685 |
-
msgstr "Il plugin non funziona"
|
686 |
-
|
687 |
-
#: includes/i18n.php:200
|
688 |
-
msgid "It's not what I was looking for"
|
689 |
-
msgstr "Non é quello che stavo cercando"
|
690 |
-
|
691 |
-
#: includes/i18n.php:201
|
692 |
-
msgid "The plugin didn't work as expected"
|
693 |
-
msgstr "Il plugin non funziona come mi aspettavo"
|
694 |
-
|
695 |
-
#: includes/i18n.php:202
|
696 |
-
msgid "What feature?"
|
697 |
-
msgstr "Quale funzionalitá?"
|
698 |
-
|
699 |
-
#: includes/i18n.php:203
|
700 |
-
msgid "Kindly share what didn't work so we can fix it for future users..."
|
701 |
-
msgstr "Condividi cosa non ha funzionato in modo da migliorare il prodotto per gli utenti futuri..."
|
702 |
-
|
703 |
-
#: includes/i18n.php:204
|
704 |
-
msgid "What you've been looking for?"
|
705 |
-
msgstr "Che cosa stai cercando?"
|
706 |
-
|
707 |
-
#: includes/i18n.php:205
|
708 |
-
msgid "What did you expect?"
|
709 |
-
msgstr "Che cosa ti aspettavi?"
|
710 |
-
|
711 |
-
#: includes/i18n.php:206
|
712 |
-
msgid "The plugin didn't work"
|
713 |
-
msgstr "Il plugin non funziona"
|
714 |
-
|
715 |
-
#: includes/i18n.php:207
|
716 |
-
msgid "I don't like to share my information with you"
|
717 |
-
msgstr "Non voglio condividere i miei dati con te"
|
718 |
-
|
719 |
-
#: includes/i18n.php:208
|
720 |
-
msgid "You might have missed it, but you don't have to share any data and can just %s the opt-in."
|
721 |
-
msgstr "Potresti non averci fatto caso, ma non sei obbligato a condividere i tuoi dati e puoi semplicemente %s la tua partecipazione."
|
722 |
-
|
723 |
-
#: includes/i18n.php:212
|
724 |
-
msgctxt "greeting"
|
725 |
-
msgid "Hey %s,"
|
726 |
-
msgstr "Hey %s,"
|
727 |
-
|
728 |
-
#: includes/i18n.php:213
|
729 |
-
msgctxt "a greeting. E.g. Thanks John!"
|
730 |
-
msgid "Thanks %s!"
|
731 |
-
msgstr "Grazie %s!"
|
732 |
-
|
733 |
-
#: includes/i18n.php:214
|
734 |
-
msgid "Never miss an important update - opt-in to our security and feature updates notifications, and non-sensitive diagnostic tracking with %4$s."
|
735 |
-
msgstr "Non perdere nessun aggiornamento importante - iscriviti per ricevere notifiche su aggiornamenti relativi alla sicurezza e nuove versioni, oltre al tracciamento di diagnostica non sensibile con %4$s."
|
736 |
-
|
737 |
-
#: includes/i18n.php:215
|
738 |
-
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."
|
739 |
-
msgstr "Aiutaci a migliorare %1$s! Se ti iscrivi, alcuni dati riguardanti il tuo utilizzo di %1$s verranno inviati a %4$s. Se salti questo passaggio, non c'è problema! %1$s funzionerà ugualmente."
|
740 |
-
|
741 |
-
#: includes/i18n.php:216
|
742 |
-
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."
|
743 |
-
msgstr "Dovresti ricevere un'email di attivazione di %s all'indirizzo %s. Assicurati di fare clic sul pulsante di attivazione nell'email per %s."
|
744 |
-
|
745 |
-
#: includes/i18n.php:217
|
746 |
-
msgid "complete the install"
|
747 |
-
msgstr "completa l'installazione"
|
748 |
-
|
749 |
-
#: includes/i18n.php:218
|
750 |
-
msgid "start the trial"
|
751 |
-
msgstr "Inizia il periodo di prova gratuito"
|
752 |
-
|
753 |
-
#: includes/i18n.php:219
|
754 |
-
msgid "Thanks for purchasing %s! To get started, please enter your license key:"
|
755 |
-
msgstr "Grazie per aver acquistato %s! Per iniziare, per favore inserisci la tua chiave di licenza:"
|
756 |
-
|
757 |
-
#: includes/i18n.php:220
|
758 |
-
msgid "The plugin will be periodically sending data to %s to check for plugin updates and verify the validity of your license."
|
759 |
-
msgstr "Il plugin invierà dati periodicamente a %s per controllare l'esistenza di aggiornamenti e verificare la validità della tua licenza."
|
760 |
-
|
761 |
-
#: includes/i18n.php:221
|
762 |
-
msgid "What permissions are being granted?"
|
763 |
-
msgstr "Quali autorizzazioni vengono concesse?"
|
764 |
-
|
765 |
-
#: includes/i18n.php:222
|
766 |
-
msgid "Your Profile Overview"
|
767 |
-
msgstr "Panoramica del tuo profilo"
|
768 |
-
|
769 |
-
#: includes/i18n.php:223
|
770 |
-
msgid "Name and email address"
|
771 |
-
msgstr "Nome ed indirizzo email"
|
772 |
-
|
773 |
-
#: includes/i18n.php:224
|
774 |
-
msgid "Your Site Overview"
|
775 |
-
msgstr "Panoramica del tuo sito"
|
776 |
-
|
777 |
-
#: includes/i18n.php:225
|
778 |
-
msgid "Site URL, WP version, PHP info, plugins & themes"
|
779 |
-
msgstr "URL del sito, versione di WP, informazioni PHP, plugin e temi"
|
780 |
-
|
781 |
-
#: includes/i18n.php:226
|
782 |
-
msgid "Current Plugin Events"
|
783 |
-
msgstr "Eventi correnti del plugin"
|
784 |
-
|
785 |
-
#: includes/i18n.php:227
|
786 |
-
msgid "Activation, deactivation and uninstall"
|
787 |
-
msgstr "Attiva, disattivazione e disinstallazione"
|
788 |
-
|
789 |
-
#: includes/i18n.php:228
|
790 |
-
msgid "Plugins & Themes"
|
791 |
-
msgstr "Plugin e temi"
|
792 |
-
|
793 |
-
#: includes/i18n.php:229
|
794 |
-
msgid "Titles, versions and state."
|
795 |
-
msgstr "Titoli, versioni e stato."
|
796 |
-
|
797 |
-
#: includes/i18n.php:230
|
798 |
-
msgid "Admin Notices"
|
799 |
-
msgstr "Avvisi amministratore"
|
800 |
-
|
801 |
-
#: includes/i18n.php:231
|
802 |
-
msgid "Newsletter"
|
803 |
-
msgstr "Newsletter"
|
804 |
-
|
805 |
-
#: includes/i18n.php:232
|
806 |
-
msgid "Updates, announcements, marketing, no spam"
|
807 |
-
msgstr "Aggiornamenti, annunci, marketing, no spam"
|
808 |
-
|
809 |
-
#: includes/i18n.php:233
|
810 |
-
msgid "Privacy Policy"
|
811 |
-
msgstr "Politica sulla privacy"
|
812 |
-
|
813 |
-
#: includes/i18n.php:234
|
814 |
-
msgid "Terms of Service"
|
815 |
-
msgstr "Termini del Servizio"
|
816 |
-
|
817 |
-
#: includes/i18n.php:235
|
818 |
-
msgctxt "as activating plugin"
|
819 |
-
msgid "Activating"
|
820 |
-
msgstr "Attivazione"
|
821 |
-
|
822 |
-
#: includes/i18n.php:236
|
823 |
-
msgctxt "as in the process of sending an email"
|
824 |
-
msgid "Sending email"
|
825 |
-
msgstr "Invio email"
|
826 |
-
|
827 |
-
#: includes/i18n.php:237
|
828 |
-
msgctxt "button label"
|
829 |
-
msgid "Allow & Continue"
|
830 |
-
msgstr "Consenti & Continua"
|
831 |
-
|
832 |
-
#: includes/i18n.php:238
|
833 |
-
msgctxt "button label"
|
834 |
-
msgid "Agree & Activate License"
|
835 |
-
msgstr "Accetta e attiva la licenza"
|
836 |
-
|
837 |
-
#: includes/i18n.php:239
|
838 |
-
msgctxt "verb"
|
839 |
-
msgid "Skip"
|
840 |
-
msgstr "Salta"
|
841 |
-
|
842 |
-
#: includes/i18n.php:240
|
843 |
-
msgid "Click here to use the plugin anonymously"
|
844 |
-
msgstr "Fai clic qui per usare il plugin anonimamente"
|
845 |
-
|
846 |
-
#: includes/i18n.php:241
|
847 |
-
msgid "Re-send activation email"
|
848 |
-
msgstr "Invia nuovamente l'email di attivazione"
|
849 |
-
|
850 |
-
#: includes/i18n.php:242
|
851 |
-
msgid "License key"
|
852 |
-
msgstr "Chiave di licenza"
|
853 |
-
|
854 |
-
#: includes/i18n.php:243
|
855 |
-
msgid "Send License Key"
|
856 |
-
msgstr "Invia chiave di licenza"
|
857 |
-
|
858 |
-
#: includes/i18n.php:244
|
859 |
-
msgid "Sending license key"
|
860 |
-
msgstr "Invio chiave di licenza"
|
861 |
-
|
862 |
-
#: includes/i18n.php:245
|
863 |
-
msgid "Have a license key?"
|
864 |
-
msgstr "Hai una chiave di licenza?"
|
865 |
-
|
866 |
-
#: includes/i18n.php:246
|
867 |
-
msgid "Don't have a license key?"
|
868 |
-
msgstr "Non hai una chiave di licenza?"
|
869 |
-
|
870 |
-
#: includes/i18n.php:247
|
871 |
-
msgid "Can't find your license key?"
|
872 |
-
msgstr "Non trovi la tua chiave di licenza?"
|
873 |
-
|
874 |
-
#: includes/i18n.php:248
|
875 |
-
msgid "We couldn't find your email address in the system, are you sure it's the right address?"
|
876 |
-
msgstr "Non siamo riusciti a trovare il tuo indirizzo email nel sistema, sei sicuro che sia l'indirizzo giusto?"
|
877 |
-
|
878 |
-
#: includes/i18n.php:249
|
879 |
-
msgid "We can't see any active licenses associated with that email address, are you sure it's the right address?"
|
880 |
-
msgstr "Non siamo riusciti a trovare alcuna licenza attiva associata al tuo indirizzo email, sei sicuro che sia l'indirizzo giusto?"
|
881 |
-
|
882 |
-
#: includes/i18n.php:250
|
883 |
-
msgid "Opt In"
|
884 |
-
msgstr "Iscriviti"
|
885 |
-
|
886 |
-
#: includes/i18n.php:251
|
887 |
-
msgid "Opt Out"
|
888 |
-
msgstr "Cancella iscrizione"
|
889 |
-
|
890 |
-
#: includes/i18n.php:252
|
891 |
-
msgid "On second thought - I want to continue helping"
|
892 |
-
msgstr "Ci ho ripensato, voglio continuare a fornire il mio aiuto"
|
893 |
-
|
894 |
-
#: includes/i18n.php:253
|
895 |
-
msgid "Opting out..."
|
896 |
-
msgstr "Cancellamento dell'iscrizione..."
|
897 |
-
|
898 |
-
#: includes/i18n.php:254
|
899 |
-
msgid "Opting in..."
|
900 |
-
msgstr "Iscrizione in corso..."
|
901 |
-
|
902 |
-
#: includes/i18n.php:255
|
903 |
-
msgid "We appreciate your help in making the %s better by letting us track some usage data."
|
904 |
-
msgstr "Ti ringraziamo per averci concesso di tracciare alcuni dati di utilizzo al fine di migliorare %s"
|
905 |
-
|
906 |
-
#: includes/i18n.php:256
|
907 |
-
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."
|
908 |
-
msgstr "Tracciamo l'utilizzo esclusivamente per rendere %s migliore, creando una migliore esperienza utente e dando priorità a nuove funzionalità, oltre a molte altre buone cose. Saremmo veramente felici di vederti cambiare idea e lasciarci continuare con il tracciamento."
|
909 |
-
|
910 |
-
#: includes/i18n.php:257
|
911 |
-
msgid "By clicking \"Opt Out\", we will no longer be sending any data from %s to %s."
|
912 |
-
msgstr "Cliccando su \"Cancella iscrizione\", non invieremo più nessuna informazione da %s a %s."
|
913 |
-
|
914 |
-
#: includes/i18n.php:261
|
915 |
-
msgid "Screenshots"
|
916 |
-
msgstr "Screenshots"
|
917 |
-
|
918 |
-
#: includes/i18n.php:262
|
919 |
-
msgid "Click to view full-size screenshot %d"
|
920 |
-
msgstr "Fare clic per visualizzare lo screenshot in grandi dimensioni %d"
|
921 |
-
|
922 |
-
#: includes/i18n.php:266
|
923 |
-
msgid "Freemius Debug"
|
924 |
-
msgstr "Debug Freemius"
|
925 |
-
|
926 |
-
#: includes/i18n.php:267
|
927 |
-
msgctxt "as turned on"
|
928 |
-
msgid "On"
|
929 |
-
msgstr "Attivo"
|
930 |
-
|
931 |
-
#: includes/i18n.php:268
|
932 |
-
msgctxt "as turned off"
|
933 |
-
msgid "Off"
|
934 |
-
msgstr "Non attivo"
|
935 |
-
|
936 |
-
#: includes/i18n.php:269
|
937 |
-
msgctxt "as code debugging"
|
938 |
-
msgid "Debugging"
|
939 |
-
msgstr "Debugging"
|
940 |
-
|
941 |
-
#: includes/i18n.php:270
|
942 |
-
msgid "Freemius State"
|
943 |
-
msgstr "Stato di Freemius"
|
944 |
-
|
945 |
-
#: includes/i18n.php:271
|
946 |
-
msgctxt "as connection was successful"
|
947 |
-
msgid "Connected"
|
948 |
-
msgstr "Connesso"
|
949 |
-
|
950 |
-
#: includes/i18n.php:272
|
951 |
-
msgctxt "as connection blocked"
|
952 |
-
msgid "Blocked"
|
953 |
-
msgstr "Bloccato"
|
954 |
-
|
955 |
-
#: includes/i18n.php:273
|
956 |
-
msgctxt "as application program interface"
|
957 |
-
msgid "API"
|
958 |
-
msgstr "API"
|
959 |
-
|
960 |
-
#: includes/i18n.php:274
|
961 |
-
msgctxt "as software development kit versions"
|
962 |
-
msgid "SDK"
|
963 |
-
msgstr "SDK"
|
964 |
-
|
965 |
-
#: includes/i18n.php:275
|
966 |
-
msgctxt "as software development kit versions"
|
967 |
-
msgid "SDK Versions"
|
968 |
-
msgstr "Versioni SDK"
|
969 |
-
|
970 |
-
#: includes/i18n.php:276
|
971 |
-
msgctxt "as plugin folder path"
|
972 |
-
msgid "Plugin Path"
|
973 |
-
msgstr "Percorso del plugin"
|
974 |
-
|
975 |
-
#: includes/i18n.php:277
|
976 |
-
msgctxt "as sdk path"
|
977 |
-
msgid "SDK Path"
|
978 |
-
msgstr "Percorso SDK"
|
979 |
-
|
980 |
-
#: includes/i18n.php:278
|
981 |
-
msgid "Add Ons of Plugin %s"
|
982 |
-
msgstr "Add-on del Plugin %s"
|
983 |
-
|
984 |
-
#: includes/i18n.php:279
|
985 |
-
msgid "Are you sure you want to delete all Freemius data?"
|
986 |
-
msgstr "Sei sicuro di voler eliminare tutti i dati di Freemius?"
|
987 |
-
|
988 |
-
#: includes/i18n.php:280
|
989 |
-
msgid "Actions"
|
990 |
-
msgstr "Azioni"
|
991 |
-
|
992 |
-
#: includes/i18n.php:281
|
993 |
-
msgid "Delete All Accounts"
|
994 |
-
msgstr "Eliminare tutti gli account"
|
995 |
-
|
996 |
-
#: includes/i18n.php:282
|
997 |
-
msgid "Start Fresh"
|
998 |
-
msgstr "Inizia da capo"
|
999 |
-
|
1000 |
-
#: includes/i18n.php:283
|
1001 |
-
msgid "Clear API Cache"
|
1002 |
-
msgstr "Elimina cache API"
|
1003 |
-
|
1004 |
-
#: includes/i18n.php:284
|
1005 |
-
msgid "Sync Data From Server"
|
1006 |
-
msgstr "Sincronizza i dati dal server"
|
1007 |
-
|
1008 |
-
#: includes/i18n.php:285
|
1009 |
-
msgid "Scheduled Crons"
|
1010 |
-
msgstr "Azioni programmate"
|
1011 |
-
|
1012 |
-
#: includes/i18n.php:286
|
1013 |
-
msgid "Cron Type"
|
1014 |
-
msgstr "Tipo di Cron"
|
1015 |
-
|
1016 |
-
#: includes/i18n.php:287
|
1017 |
-
msgid "Plugins & Themes Sync"
|
1018 |
-
msgstr "Sincronizzazione plugin e temi"
|
1019 |
-
|
1020 |
-
#: includes/i18n.php:288
|
1021 |
-
msgid "Licenses"
|
1022 |
-
msgstr "Licenze"
|
1023 |
-
|
1024 |
-
#: includes/i18n.php:289
|
1025 |
-
msgid "Debug Log"
|
1026 |
-
msgstr "Debug Log"
|
1027 |
-
|
1028 |
-
#: includes/i18n.php:290
|
1029 |
-
msgid "All"
|
1030 |
-
msgstr "Tutto"
|
1031 |
-
|
1032 |
-
#: includes/i18n.php:291
|
1033 |
-
msgid "File"
|
1034 |
-
msgstr "File"
|
1035 |
-
|
1036 |
-
#: includes/i18n.php:292
|
1037 |
-
msgid "Function"
|
1038 |
-
msgstr "Funzione"
|
1039 |
-
|
1040 |
-
#: includes/i18n.php:293
|
1041 |
-
msgid "Process ID"
|
1042 |
-
msgstr "ID processo"
|
1043 |
-
|
1044 |
-
#: includes/i18n.php:294
|
1045 |
-
msgid "Logger"
|
1046 |
-
msgstr "Logger"
|
1047 |
-
|
1048 |
-
#: includes/i18n.php:295
|
1049 |
-
msgid "Message"
|
1050 |
-
msgstr "Messaggio"
|
1051 |
-
|
1052 |
-
#: includes/i18n.php:296
|
1053 |
-
msgid "Download"
|
1054 |
-
msgstr "Download"
|
1055 |
-
|
1056 |
-
#: includes/i18n.php:297
|
1057 |
-
msgid "Filter"
|
1058 |
-
msgstr "Filtro"
|
1059 |
-
|
1060 |
-
#: includes/i18n.php:298
|
1061 |
-
msgid "Type"
|
1062 |
-
msgstr "Tipo"
|
1063 |
-
|
1064 |
-
#: includes/i18n.php:299
|
1065 |
-
msgid "All Types"
|
1066 |
-
msgstr "Tutti i tipi"
|
1067 |
-
|
1068 |
-
#: includes/i18n.php:300
|
1069 |
-
msgid "All Requests"
|
1070 |
-
msgstr "Tutte le richieste"
|
1071 |
-
|
1072 |
-
#: includes/i18n.php:304
|
1073 |
-
msgctxt "as congratulations"
|
1074 |
-
msgid "Congrats"
|
1075 |
-
msgstr "Congratulazioni"
|
1076 |
-
|
1077 |
-
#: includes/i18n.php:305
|
1078 |
-
msgctxt "exclamation"
|
1079 |
-
msgid "Oops"
|
1080 |
-
msgstr "Ops"
|
1081 |
-
|
1082 |
-
#: includes/i18n.php:306
|
1083 |
-
msgctxt "interjection expressing joy or exuberance"
|
1084 |
-
msgid "Yee-haw"
|
1085 |
-
msgstr "Evvai"
|
1086 |
-
|
1087 |
-
#: includes/i18n.php:307
|
1088 |
-
msgctxt ""
|
1089 |
-
msgid "W00t"
|
1090 |
-
msgstr "Forte"
|
1091 |
-
|
1092 |
-
#: includes/i18n.php:309
|
1093 |
-
msgctxt "a positive response"
|
1094 |
-
msgid "Right on"
|
1095 |
-
msgstr "Sì"
|
1096 |
-
|
1097 |
-
#: includes/i18n.php:310
|
1098 |
-
msgctxt ""
|
1099 |
-
msgid "Hmm"
|
1100 |
-
msgstr "Uhm"
|
1101 |
-
|
1102 |
-
#: includes/i18n.php:312
|
1103 |
-
msgid "O.K"
|
1104 |
-
msgstr "OK"
|
1105 |
-
|
1106 |
-
#: includes/i18n.php:313
|
1107 |
-
msgctxt "exclamation"
|
1108 |
-
msgid "Hey"
|
1109 |
-
msgstr "Hey"
|
1110 |
-
|
1111 |
-
#: includes/i18n.php:314
|
1112 |
-
msgctxt "advance notice of something that will need attention."
|
1113 |
-
msgid "Heads up"
|
1114 |
-
msgstr "Attenzione"
|
1115 |
-
|
1116 |
-
#: includes/i18n.php:319
|
1117 |
-
msgid "Seems like you got the latest release."
|
1118 |
-
msgstr "Sembra che tu abbia la versione più recente."
|
1119 |
-
|
1120 |
-
#: includes/i18n.php:320
|
1121 |
-
msgid "You are all good!"
|
1122 |
-
msgstr "Sei fantastico!"
|
1123 |
-
|
1124 |
-
#: includes/i18n.php:321
|
1125 |
-
msgid "Sorry, we could not complete the email update. Another user with the same email is already registered."
|
1126 |
-
msgstr "Siamo spiacenti, non siamo riusciti a completare l'aggiornamento via email. Un altro utente con lo stesso indirizzo email è già registrato."
|
1127 |
-
|
1128 |
-
#: includes/i18n.php:322
|
1129 |
-
msgid "If you would like to give up the ownership of the plugin's account to %s click the Change Ownership button."
|
1130 |
-
msgstr "Se vuoi cedere la proprietá dell'account del plugin a %s clicca su Cambia Proprietà."
|
1131 |
-
|
1132 |
-
#: includes/i18n.php:323
|
1133 |
-
msgid "Your email was successfully updated. You should receive an email with confirmation instructions in few moments."
|
1134 |
-
msgstr "Il tuo indirizzo email è stato aggiornato correttamente. Riceverai un'email con le istruzioni di conferma in pochi istanti."
|
1135 |
-
|
1136 |
-
#: includes/i18n.php:324
|
1137 |
-
msgid "Your name was successfully updated."
|
1138 |
-
msgstr "Il tuo nome è stato aggiornato correttamente."
|
1139 |
-
|
1140 |
-
#: includes/i18n.php:325
|
1141 |
-
msgid "You have successfully updated your %s."
|
1142 |
-
msgstr "Hai aggiornato con successo il tuo %s."
|
1143 |
-
|
1144 |
-
#: includes/i18n.php:326
|
1145 |
-
msgid "Please provide your full name."
|
1146 |
-
msgstr "Per favore inserisci il tuo nome completo."
|
1147 |
-
|
1148 |
-
#: includes/i18n.php:327
|
1149 |
-
msgid "Verification mail was just sent to %s. If you can't find it after 5 min, please check your spam box."
|
1150 |
-
msgstr "L'email di verifica è stata inviata a %s. Se dopo 5 minuti non è ancora arrivata, per favore controlla nella tua casella di posta indesiderata."
|
1151 |
-
|
1152 |
-
#: includes/i18n.php:328
|
1153 |
-
msgid "Just letting you know that the add-ons information of %s is being pulled from an external server."
|
1154 |
-
msgstr "Le informazioni sugli add-on di %s vengono scaricate da un server esterno."
|
1155 |
-
|
1156 |
-
#: includes/i18n.php:329
|
1157 |
-
msgid "No credit card required"
|
1158 |
-
msgstr "Nessuna carta di credito richiesta"
|
1159 |
-
|
1160 |
-
#: includes/i18n.php:330
|
1161 |
-
msgid "Premium plugin version was successfully activated."
|
1162 |
-
msgstr "La versione Premium del plugin è stata attivata correttamente."
|
1163 |
-
|
1164 |
-
#: includes/i18n.php:331
|
1165 |
-
msgid "The upgrade of %s was successfully completed."
|
1166 |
-
msgstr "L'aggiornamento di %s è stato completato con successo."
|
1167 |
-
|
1168 |
-
#: includes/i18n.php:332
|
1169 |
-
msgid "Your account was successfully activated with the %s plan."
|
1170 |
-
msgstr "Il tuo account è stato attivato correttamente con il piano %s."
|
1171 |
-
|
1172 |
-
#: includes/i18n.php:333
|
1173 |
-
msgid "Download the latest %s version now"
|
1174 |
-
msgstr "Scarica l'ultima versione di %s"
|
1175 |
-
|
1176 |
-
#: includes/i18n.php:334
|
1177 |
-
msgid "Please follow these steps to complete the upgrade"
|
1178 |
-
msgstr "Segui i passi seguenti per completare l'aggiornamento"
|
1179 |
-
|
1180 |
-
#: includes/i18n.php:335
|
1181 |
-
msgid "Download the latest %s version"
|
1182 |
-
msgstr "Scarica l'ultima versione di %s"
|
1183 |
-
|
1184 |
-
#: includes/i18n.php:336
|
1185 |
-
msgid "Download the latest version"
|
1186 |
-
msgstr "Scarica l'ultima versione"
|
1187 |
-
|
1188 |
-
#: includes/i18n.php:337
|
1189 |
-
msgid "Deactivate the free version"
|
1190 |
-
msgstr "Disattiva la versione gratuita"
|
1191 |
-
|
1192 |
-
#: includes/i18n.php:338
|
1193 |
-
msgid "Upload and activate the downloaded version"
|
1194 |
-
msgstr "Carica e attiva la versione scaricata"
|
1195 |
-
|
1196 |
-
#: includes/i18n.php:339
|
1197 |
-
msgid "How to upload and activate?"
|
1198 |
-
msgstr "Come faccio a caricare ed attivare?"
|
1199 |
-
|
1200 |
-
#: includes/i18n.php:340
|
1201 |
-
msgctxt "%s - product name, e.g. Facebook add-on was successfully..."
|
1202 |
-
msgid "%s Add-on was successfully purchased."
|
1203 |
-
msgstr "L' add-on %s è stato acquistato con successo."
|
1204 |
-
|
1205 |
-
#: includes/i18n.php:342
|
1206 |
-
msgid "Your %s Add-on plan was successfully upgraded."
|
1207 |
-
msgstr "Il piano del tuo add-on %s è stato aggiornato con successo."
|
1208 |
-
|
1209 |
-
#: includes/i18n.php:343
|
1210 |
-
msgid "Your email has been successfully verified - you are AWESOME!"
|
1211 |
-
msgstr "Il tuo indirizzo email è stato verificato con successo - SEI UN GRANDE!"
|
1212 |
-
|
1213 |
-
#: includes/i18n.php:344
|
1214 |
-
msgid "Your plan was successfully upgraded."
|
1215 |
-
msgstr "Il piano è stato aggiornato con successo."
|
1216 |
-
|
1217 |
-
#: includes/i18n.php:345
|
1218 |
-
msgid "Your plan was successfully changed to %s."
|
1219 |
-
msgstr "Il piano è stato cambiato con successo a %s."
|
1220 |
-
|
1221 |
-
#: includes/i18n.php:346
|
1222 |
-
msgid "Your license has expired. You can still continue using the free plugin forever."
|
1223 |
-
msgstr "La licenza è scaduta. È comunque possibile continuare ad utilizzare il plugin gratuito per sempre."
|
1224 |
-
|
1225 |
-
#: includes/i18n.php:347
|
1226 |
-
msgid "Your license has been cancelled. If you think it's a mistake, please contact support."
|
1227 |
-
msgstr "La tua licenza è stata cancellata. Se credi sia un errore, per favore contatta il supporto."
|
1228 |
-
|
1229 |
-
#: includes/i18n.php:348
|
1230 |
-
msgid "Your trial has been successfully started."
|
1231 |
-
msgstr "La versione di prova è stata avviata correttamente."
|
1232 |
-
|
1233 |
-
#: includes/i18n.php:349
|
1234 |
-
msgid "Your license was successfully activated."
|
1235 |
-
msgstr "La tua licenza è stata attivata correttamente."
|
1236 |
-
|
1237 |
-
#: includes/i18n.php:350
|
1238 |
-
msgid "It looks like your site currently doesn't have an active license."
|
1239 |
-
msgstr "Sembra che il tuo sito non disponga di alcuna licenza attiva."
|
1240 |
-
|
1241 |
-
#: includes/i18n.php:351
|
1242 |
-
msgid "Your license was successfully deactivated, you are back to the %s plan."
|
1243 |
-
msgstr "La tua licenza é stata disattivata con successo, sei tornato al piano %s."
|
1244 |
-
|
1245 |
-
#: includes/i18n.php:352
|
1246 |
-
msgid "It looks like the license deactivation failed."
|
1247 |
-
msgstr "Sembra che la disattivazione della licenza non sia riuscita."
|
1248 |
-
|
1249 |
-
#: includes/i18n.php:353
|
1250 |
-
msgid "It looks like the license could not be activated."
|
1251 |
-
msgstr "Sembra che la licenza non possa essere attivata."
|
1252 |
-
|
1253 |
-
#: includes/i18n.php:354
|
1254 |
-
msgid "Error received from the server:"
|
1255 |
-
msgstr "Errore ricevuto dal server:"
|
1256 |
-
|
1257 |
-
#: includes/i18n.php:355
|
1258 |
-
msgid "Your trial has expired. You can still continue using all our free features."
|
1259 |
-
msgstr "La versione di prova è scaduta. Si può comunque continuare a utilizzare tutte le nostre funzioni gratuite."
|
1260 |
-
|
1261 |
-
#: includes/i18n.php:356
|
1262 |
-
msgid "Your plan was successfully downgraded. Your %s plan license will expire in %s."
|
1263 |
-
msgstr "Il tuo piano è stato declassato con successo. La licenza del piano %s scadrà in %s."
|
1264 |
-
|
1265 |
-
#: includes/i18n.php:357
|
1266 |
-
msgid "Seems like we are having some temporary issue with your plan downgrade. Please try again in few minutes."
|
1267 |
-
msgstr "Stiamo avendo qualche problema temporaneo con il downgrade del piano. Riprova tra qualche minuto."
|
1268 |
-
|
1269 |
-
#: includes/i18n.php:358
|
1270 |
-
msgid "It looks like you are not in trial mode anymore so there's nothing to cancel :)"
|
1271 |
-
msgstr "Sembra che tu non stia più usando la prova gratuita, quindi non c'è niente che tu debba annullare :)"
|
1272 |
-
|
1273 |
-
#: includes/i18n.php:359
|
1274 |
-
msgid "Your %s free trial was successfully cancelled."
|
1275 |
-
msgstr "Il tuo periodo di prova gratuito %s è stato annullato con successo."
|
1276 |
-
|
1277 |
-
#: includes/i18n.php:360
|
1278 |
-
msgctxt "%s - numeric version number"
|
1279 |
-
msgid "Version %s was released."
|
1280 |
-
msgstr "La versione %s é stata rilasciata."
|
1281 |
-
|
1282 |
-
#: includes/i18n.php:361
|
1283 |
-
msgid "Please download %s."
|
1284 |
-
msgstr "Scarica %s."
|
1285 |
-
|
1286 |
-
#: includes/i18n.php:362
|
1287 |
-
msgctxt "%s - plan name, as the latest professional version here"
|
1288 |
-
msgid "the latest %s version here"
|
1289 |
-
msgstr "l'ultima versione %s é quì"
|
1290 |
-
|
1291 |
-
#: includes/i18n.php:364
|
1292 |
-
msgid "How do you like %s so far? Test all our %s premium features with a %d-day free trial."
|
1293 |
-
msgstr "Come sta andando con %s? Prova tutte le funzionalità premium di %s con una prova gratuita di %d giorni."
|
1294 |
-
|
1295 |
-
#: includes/i18n.php:365
|
1296 |
-
msgctxt "call to action"
|
1297 |
-
msgid "Start free trial"
|
1298 |
-
msgstr "Inizia il periodo di prova gratuito"
|
1299 |
-
|
1300 |
-
#: includes/i18n.php:366
|
1301 |
-
msgid "Starting trial"
|
1302 |
-
msgstr "Inizio del periodo di prova gratuito"
|
1303 |
-
|
1304 |
-
#: includes/i18n.php:367
|
1305 |
-
msgid "Please wait"
|
1306 |
-
msgstr "Attendere"
|
1307 |
-
|
1308 |
-
#: includes/i18n.php:368
|
1309 |
-
msgid "Seems like we are having some temporary issue with your trial cancellation. Please try again in few minutes."
|
1310 |
-
msgstr "Stiamo avendo qualche problema temporaneo con l'annullamento del periodo di prova. Riprova tra qualche minuto."
|
1311 |
-
|
1312 |
-
#: includes/i18n.php:369
|
1313 |
-
msgid "You already utilized a trial before."
|
1314 |
-
msgstr "Hai già utilizzato una prova gratuita in passato."
|
1315 |
-
|
1316 |
-
#: includes/i18n.php:370
|
1317 |
-
msgid "You are already running the plugin in a trial mode."
|
1318 |
-
msgstr "Stai già usando il plugin in modalità di prova gratuita."
|
1319 |
-
|
1320 |
-
#: includes/i18n.php:371
|
1321 |
-
msgid "Plan %s do not exist, therefore, can't start a trial."
|
1322 |
-
msgstr "Il piano %s non esiste, per questo motivo non è possibile iniziare il periodo di prova."
|
1323 |
-
|
1324 |
-
#: includes/i18n.php:372
|
1325 |
-
msgid "Plan %s does not support a trial period."
|
1326 |
-
msgstr "Il piano %s non supporta il periodo di prova."
|
1327 |
-
|
1328 |
-
#: includes/i18n.php:373
|
1329 |
-
msgid "None of the plugin's plans supports a trial period."
|
1330 |
-
msgstr "Non esiste alcun piano del plugin che offra il periodo di prova."
|
1331 |
-
|
1332 |
-
#: includes/i18n.php:374
|
1333 |
-
msgid "Unexpected API error. Please contact the plugin's author with the following error."
|
1334 |
-
msgstr "Errore inaspettato dell'API. Per favore contatta l'autore del plugin riportando il seguente errore."
|
1335 |
-
|
1336 |
-
#: includes/i18n.php:375
|
1337 |
-
msgid "No commitment for %s days - cancel anytime!"
|
1338 |
-
msgstr "Nessun impegno per %s giorni - puoi annullare in qualsiasi momento!"
|
1339 |
-
|
1340 |
-
#: includes/i18n.php:376
|
1341 |
-
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."
|
1342 |
-
msgstr "La licenza è scaduta. È comunque possibile continuare a utilizzare tutte le funzionalità di %s, ma sarà necessario rinnovare la licenza per continuare a ricevere gli aggiornamenti ed il supporto."
|
1343 |
-
|
1344 |
-
#: includes/i18n.php:377
|
1345 |
-
msgid "Couldn't activate %s."
|
1346 |
-
msgstr "Non é stato possibile attivare %s."
|
1347 |
-
|
1348 |
-
#: includes/i18n.php:378
|
1349 |
-
msgid "Please contact us with the following message:"
|
1350 |
-
msgstr "Contattaci con il seguente messaggio:"
|
1351 |
-
|
1352 |
-
#: includes/i18n.php:379
|
1353 |
-
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."
|
1354 |
-
msgstr "Sembra che tu sia ancora usando il piano %s. Se hai effettuato un upgrade o cambiato il piano, è probabile che ci sia un problema nei nostri sistemi."
|
1355 |
-
|
1356 |
-
#: includes/i18n.php:380
|
1357 |
-
msgid "Please contact us here"
|
1358 |
-
msgstr "Contattaci qui"
|
1359 |
-
|
1360 |
-
#: includes/i18n.php:381
|
1361 |
-
msgid "I have upgraded my account but when I try to Sync the License, the plan remains %s."
|
1362 |
-
msgstr "Ho aggiornato il mio account, ma quando cerco di sincronizzare la licenza, il piano rimane %s."
|
1363 |
-
|
1364 |
-
#: includes/i18n.php:384
|
1365 |
-
msgid "From unknown reason, the API connectivity test failed."
|
1366 |
-
msgstr "Il test di connettività dell'API ha fallito per motivi sconosciuti."
|
1367 |
-
|
1368 |
-
#: includes/i18n.php:385
|
1369 |
-
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?"
|
1370 |
-
msgstr "Si tratta probabilmente di un problema nei nostri sistemi. Per esserne sicuri, potresti darci il permesso di effettuare un ulteriore test della connettività? "
|
1371 |
-
|
1372 |
-
#: includes/i18n.php:386
|
1373 |
-
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."
|
1374 |
-
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."
|
1375 |
-
|
1376 |
-
#: includes/i18n.php:387
|
1377 |
-
msgid "Disabled method(s):"
|
1378 |
-
msgstr "Disabled method(s):"
|
1379 |
-
|
1380 |
-
#: includes/i18n.php:388
|
1381 |
-
msgid "From unknown reason, CloudFlare, the firewall we use, blocks the connection."
|
1382 |
-
msgstr "Per un motivo sconosciuto, CloudFlare, il firewall che utilizziamo, blocca la connessione."
|
1383 |
-
|
1384 |
-
#: includes/i18n.php:389
|
1385 |
-
msgctxt "as pluginX requires an access to our API"
|
1386 |
-
msgid "%s requires an access to our API."
|
1387 |
-
msgstr "%s richiede un accesso alla nostra API."
|
1388 |
-
|
1389 |
-
#: includes/i18n.php:391
|
1390 |
-
msgid "It looks like your server is using Squid ACL (access control lists), which blocks the connection."
|
1391 |
-
msgstr "Sembra che il tuo server stia usando Squid ACL (lista per il controllo degli accessi) il quale blocca la connessione."
|
1392 |
-
|
1393 |
-
#: includes/i18n.php:392
|
1394 |
-
msgid "I don't know what is Squid or ACL, help me!"
|
1395 |
-
msgstr "Non ho idea di cosa sia Squid o ACL, aiutami!"
|
1396 |
-
|
1397 |
-
#: includes/i18n.php393, includes/i18n.php:397
|
1398 |
-
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."
|
1399 |
-
msgstr "Contatteremo il tuo hosting e risolveremo il problema. Riceverai un' email a %s non appena ci saranno aggiornamenti."
|
1400 |
-
|
1401 |
-
#: includes/i18n.php:394
|
1402 |
-
msgid "I'm a system administrator"
|
1403 |
-
msgstr "Sono un sistemista"
|
1404 |
-
|
1405 |
-
#: includes/i18n.php:395
|
1406 |
-
msgid "Great, please whitelist the following domains: %s. Once you are done, deactivate the plugin and activate it again."
|
1407 |
-
msgstr "Perfetto, ora per favore aggiungi alla whitelist i seguenti domini: %s. Quando hai fatto, disattiva il plugin e riattivalo di nuovo."
|
1408 |
-
|
1409 |
-
#: includes/i18n.php:396
|
1410 |
-
msgid "I don't know what is cURL or how to install it, help me!"
|
1411 |
-
msgstr "Non ho idea di cosa sia cURL o come installarlo, aiutami!"
|
1412 |
-
|
1413 |
-
#: includes/i18n.php:398
|
1414 |
-
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 plugin and reactivate it back again."
|
1415 |
-
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 plugin and reactivate it back again."
|
1416 |
-
|
1417 |
-
#: includes/i18n.php:399
|
1418 |
-
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."
|
1419 |
-
msgstr "Siamo sicuri che sia un nostro problema e siamo più che felici di risolverlo per te al più presto. Per poter procedere abbiamo bisogno del tuo consenso."
|
1420 |
-
|
1421 |
-
#: includes/i18n.php:400
|
1422 |
-
msgid "Sorry for the inconvenience and we are here to help if you give us a chance."
|
1423 |
-
msgstr "Siamo spiacenti per l'inconveniente e siamo qui per aiutarti con il tuo permesso."
|
1424 |
-
|
1425 |
-
#: includes/i18n.php:401
|
1426 |
-
msgid "Yes - I'm giving you a chance to fix it"
|
1427 |
-
msgstr "Sì - sto dandovi la possibilità di risolvere il problema"
|
1428 |
-
|
1429 |
-
#: includes/i18n.php:402
|
1430 |
-
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."
|
1431 |
-
msgstr "Faremo del nostro meglio per mettere il server in whitelist e risolvere il problema il prima possibile. Avrai un aggiornamento dello stato tramite email all'indirizzo %s."
|
1432 |
-
|
1433 |
-
#: includes/i18n.php:403
|
1434 |
-
msgid "Let's try your previous version"
|
1435 |
-
msgstr "Proviamo con la versione precedente"
|
1436 |
-
|
1437 |
-
#: includes/i18n.php:404
|
1438 |
-
msgid "Uninstall this version and install the previous one."
|
1439 |
-
msgstr "Disinstalla questa versione e installa quella precedente."
|
1440 |
-
|
1441 |
-
#: includes/i18n.php:405
|
1442 |
-
msgid "That's exhausting, please deactivate"
|
1443 |
-
msgstr "È estenuante, disattivalo"
|
1444 |
-
|
1445 |
-
#: includes/i18n.php:406
|
1446 |
-
msgid "We feel your frustration and sincerely apologize for the inconvenience. Hope to see you again in the future."
|
1447 |
-
msgstr "Capiamo la tua frustrazione e ci scusiamo per l'inconveniente. Speriamo di rivederti nuovamente in futuro."
|
1448 |
-
|
1449 |
-
#: includes/i18n.php:407
|
1450 |
-
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."
|
1451 |
-
msgstr "Grazie per averci dato la possibilità di risolvere il problema! È stato appena inviato un messaggio al nostro staff tecnico. Ti risponderemo non appena avremo un aggiornamento riguardante %s. Grazie per la tua pazienza."
|
1452 |
-
|
1453 |
-
#: includes/i18n.php:408
|
1454 |
-
msgctxt "%1s - plugin title, %2s - API domain"
|
1455 |
-
msgid "Your server is blocking the access to Freemius' API, which is crucial for %1s synchronization. Please contact your host to whitelist %2s"
|
1456 |
-
msgstr "Il tuo server sta bloccando l'accesso all'API di Freemius. L'accesso è cruciale per quanto riguarda la la sincronizzazione di %1s. Per favore contatta il tuo host per aggiungere %2s alla whitelist."
|
1457 |
-
|
1458 |
-
#: includes/i18n.php:410
|
1459 |
-
msgid "It seems like one of the authentication parameters is wrong. Update your Public Key, Secret Key & User ID, and try again."
|
1460 |
-
msgstr "Sembra che uno dei parametri di autenticazione sia sbagliato. Aggiorna la tua chiave pubblica, Secret Key & User ID e riprova."
|
1461 |
-
|
1462 |
-
#: includes/i18n.php:413
|
1463 |
-
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."
|
1464 |
-
msgstr "Verifica di aver ricevuto l'email da %s per confermare il cambiamento del proprietario. Per ragioni di sicurezza devi confermare il cambiamento entro 15 minuti. Se non trovi l'email controlla nella posta indesiderata."
|
1465 |
-
|
1466 |
-
#: includes/i18n.php:414
|
1467 |
-
msgid "Thanks for confirming the ownership change. An email was just sent to %s for final approval."
|
1468 |
-
msgstr "Grazie per aver confermato il cambiamento del proprietario. Un' email è stata appena inviata a %s per la conferma finale."
|
1469 |
-
|
1470 |
-
#: includes/i18n.php:415
|
1471 |
-
msgid "%s is the new owner of the account."
|
1472 |
-
msgstr "%s è il nuovo proprietario dell'account."
|
1473 |
-
|
1474 |
-
#: includes/i18n.php:417
|
1475 |
-
msgctxt "addonX cannot run without pluginY"
|
1476 |
-
msgid "%s cannot run without %s."
|
1477 |
-
msgstr "%s non può funzionare senza %s."
|
1478 |
-
|
1479 |
-
#: includes/i18n.php:419
|
1480 |
-
msgctxt "addonX cannot run..."
|
1481 |
-
msgid "%s cannot run without the plugin."
|
1482 |
-
msgstr "%s non può funzionare senza il plugin."
|
1483 |
-
|
1484 |
-
#: includes/i18n.php:420
|
1485 |
-
msgctxt "pluginX activation was successfully..."
|
1486 |
-
msgid "%s activation was successfully completed."
|
1487 |
-
msgstr "%s è stato attivato con successo."
|
1488 |
-
|
1489 |
-
#: includes/i18n.php:422
|
1490 |
-
msgctxt "Plugin installer section title"
|
1491 |
-
msgid "Features & Pricing"
|
1492 |
-
msgstr "Caratteristiche & prezzi"
|
1493 |
-
|
1494 |
-
#: includes/i18n.php:423
|
1495 |
-
msgid "Add-on must be deployed to WordPress.org or Freemius."
|
1496 |
-
msgstr "L'add-on dev'essere distribuito da WordPress.org o Freemius."
|
1497 |
-
|
1498 |
-
#: includes/i18n.php:424
|
1499 |
-
msgid "Paid add-on must be deployed to Freemius."
|
1500 |
-
msgstr "Gli add-on a pagamento devono essere distribuiti da Freemius."
|
1501 |
-
|
1502 |
-
#: includes/i18n.php:428
|
1503 |
-
msgid "%s is a premium only add-on. You have to purchase a license first before activating the plugin."
|
1504 |
-
msgstr "%s è un add-on premium. Devi comprare una licenza prima di poter attivare il plugin."
|
1505 |
-
|
1506 |
-
#: includes/i18n.php:429
|
1507 |
-
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."
|
1508 |
-
msgstr "Il periodo di prova gratuito %s è stato annullato con successo. Siccome l'add-on è premium, è stato disattivato automaticamente. Se vorrai usarlo in futuro, dovrai comprare una licenza."
|
1509 |
-
|
1510 |
-
#: includes/i18n.php:434
|
1511 |
-
msgctxt "as every month"
|
1512 |
-
msgid "Monthly"
|
1513 |
-
msgstr "Mensilmente"
|
1514 |
-
|
1515 |
-
#: includes/i18n.php:435
|
1516 |
-
msgctxt "as monthly period"
|
1517 |
-
msgid "mo"
|
1518 |
-
msgstr "mese"
|
1519 |
-
|
1520 |
-
#: includes/i18n.php:436
|
1521 |
-
msgctxt "as once a year"
|
1522 |
-
msgid "Annual"
|
1523 |
-
msgstr "Annuale"
|
1524 |
-
|
1525 |
-
#: includes/i18n.php:437
|
1526 |
-
msgctxt "as once a year"
|
1527 |
-
msgid "Annually"
|
1528 |
-
msgstr "Annualmente"
|
1529 |
-
|
1530 |
-
#: includes/i18n.php:438
|
1531 |
-
msgctxt "as once a year"
|
1532 |
-
msgid "Once"
|
1533 |
-
msgstr "Una volta"
|
1534 |
-
|
1535 |
-
#: includes/i18n.php:439
|
1536 |
-
msgctxt "as annual period"
|
1537 |
-
msgid "year"
|
1538 |
-
msgstr "anno"
|
1539 |
-
|
1540 |
-
#: includes/i18n.php:440
|
1541 |
-
msgid "Lifetime"
|
1542 |
-
msgstr "Tutta la vita"
|
1543 |
-
|
1544 |
-
#: includes/i18n.php:441
|
1545 |
-
msgctxt "e.g. the best product"
|
1546 |
-
msgid "Best"
|
1547 |
-
msgstr "Migliore"
|
1548 |
-
|
1549 |
-
#: includes/i18n.php:442
|
1550 |
-
msgctxt "e.g. billed monthly"
|
1551 |
-
msgid "Billed %s"
|
1552 |
-
msgstr "Fatturato %s"
|
1553 |
-
|
1554 |
-
#: includes/i18n.php:443
|
1555 |
-
msgctxt "as a discount of $5 or 10%"
|
1556 |
-
msgid "Save %s"
|
1557 |
-
msgstr "Risparmia %s"
|
1558 |
-
|
1559 |
-
#: includes/i18n.php:445
|
1560 |
-
msgid "View details"
|
1561 |
-
msgstr "Visualizza dettagli"
|
1562 |
-
|
1563 |
-
#: includes/i18n.php:449
|
1564 |
-
msgctxt "button label"
|
1565 |
-
msgid "Approve & Start Trial"
|
1566 |
-
msgstr "Approva e inizia il periodo di prova gratuito"
|
1567 |
-
|
1568 |
-
#: includes/i18n.php:451
|
1569 |
-
msgid "You are 1-click away from starting your %1$s-day free trial of the %2$s plan."
|
1570 |
-
msgstr "Sei a un clic di distanza dall'iniziare il tuo periodo di prova gratuito di %1$s giorni per il piano %2$s."
|
1571 |
-
|
1572 |
-
#: includes/i18n.php:453
|
1573 |
-
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 plugin to periodically send data to %s to check for version updates and to validate your trial."
|
1574 |
-
msgstr "Per seguire le linee guida di WordPress, prima di iniziare il periodo di prova ti chiediamo di iscriverti con il tuo utente e i dati non sensibili inerenti al tuo sito, così da permettere periodicamente al plugin di inviare dati a %s per poter controllare la presenza di nuove versioni e convalidare il tuo periodo di prova gratuito."
|
1575 |
-
|
1576 |
-
#: includes/i18n.php:459
|
1577 |
-
msgid "Business name"
|
1578 |
-
msgstr "Nome della compagnia"
|
1579 |
-
|
1580 |
-
#: includes/i18n.php:460
|
1581 |
-
msgid "Tax / VAT ID"
|
1582 |
-
msgstr "Numero Partita Iva o VAT"
|
1583 |
-
|
1584 |
-
#: includes/i18n.php:461
|
1585 |
-
msgid "Address Line %d"
|
1586 |
-
msgstr "Riga indirizzo %d"
|
1587 |
-
|
1588 |
-
#: includes/i18n.php:462
|
1589 |
-
msgid "Country"
|
1590 |
-
msgstr "Nazione"
|
1591 |
-
|
1592 |
-
#: includes/i18n.php:463
|
1593 |
-
msgid "Select Country"
|
1594 |
-
msgstr "Seleziona Nazione"
|
1595 |
-
|
1596 |
-
#: includes/i18n.php:464
|
1597 |
-
msgid "City"
|
1598 |
-
msgstr "Città"
|
1599 |
-
|
1600 |
-
#: includes/i18n.php:465
|
1601 |
-
msgid "Town"
|
1602 |
-
msgstr "Cittadina"
|
1603 |
-
|
1604 |
-
#: includes/i18n.php:466
|
1605 |
-
msgid "State"
|
1606 |
-
msgstr "Stato"
|
1607 |
-
|
1608 |
-
#: includes/i18n.php:467
|
1609 |
-
msgid "Province"
|
1610 |
-
msgstr "Provincia"
|
1611 |
-
|
1612 |
-
#: includes/i18n.php:468
|
1613 |
-
msgid "ZIP / Postal Code"
|
1614 |
-
msgstr "CAP"
|
1615 |
-
|
1616 |
-
#: includes/i18n.php:473
|
1617 |
-
msgid "Installing plugin: %s"
|
1618 |
-
msgstr "Installing plugin: %s"
|
1619 |
-
|
1620 |
-
#: includes/i18n.php:474
|
1621 |
-
msgid "Automatic Installation"
|
1622 |
-
msgstr "Automatic Installation"
|
1623 |
-
|
1624 |
-
#: includes/i18n.php:476
|
1625 |
-
msgid "%s sec"
|
1626 |
-
msgstr "%s sec"
|
1627 |
-
|
1628 |
-
#: includes/i18n.php:477
|
1629 |
-
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."
|
1630 |
-
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."
|
1631 |
-
|
1632 |
-
#: includes/i18n.php:478
|
1633 |
-
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."
|
1634 |
-
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."
|
1635 |
-
|
1636 |
-
#: includes/i18n.php:479
|
1637 |
-
msgid "Cancel Installation"
|
1638 |
-
msgstr "Cancel Installation"
|
1639 |
-
|
1640 |
-
#: includes/i18n.php:480
|
1641 |
-
msgid "The remote plugin package does not contain a folder with the desired slug and renaming did not work."
|
1642 |
-
msgstr "The remote plugin package does not contain a folder with the desired slug and renaming did not work."
|
1643 |
-
|
1644 |
-
#: includes/i18n.php:481
|
1645 |
-
msgid "Invalid module ID."
|
1646 |
-
msgstr "Invalid module ID."
|
1647 |
-
|
1648 |
-
#: includes/i18n.php:482
|
1649 |
-
msgid "Auto installation only works for opted-in users."
|
1650 |
-
msgstr "Auto installation only works for opted-in users."
|
1651 |
-
|
1652 |
-
#: includes/i18n.php:483
|
1653 |
-
msgid "Premium version already active."
|
1654 |
-
msgstr "Premium version already active."
|
1655 |
-
|
1656 |
-
#: includes/i18n.php:484
|
1657 |
-
msgid "Premium add-on version already installed."
|
1658 |
-
msgstr "Premium add-on version already installed."
|
1659 |
-
|
1660 |
-
#: includes/i18n.php:485
|
1661 |
-
msgid "You do not have a valid license to access the premium version."
|
1662 |
-
msgstr "You do not have a valid license to access the premium version."
|
1663 |
-
|
1664 |
-
#: includes/i18n.php:486
|
1665 |
-
msgid "Plugin is a \"Serviceware\" which means it does not have a premium code version."
|
1666 |
-
msgstr "Plugin is a \"Serviceware\" which means it does not have a premium code version."
|
1667 |
-
|
1668 |
-
#: includes/i18n.php:501
|
1669 |
-
msgctxt "Plugin installer section title"
|
1670 |
-
msgid "Description"
|
1671 |
-
msgstr "D
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|