Version Description
Download this release
Release Info
Developer | GreenTreeLabs |
Plugin | Image Photo Gallery Final Tiles Grid |
Version | 3.4.14 |
Comparing to | |
See all releases |
Code changes from version 3.4.12 to 3.4.14
- FinalTilesGalleryLite.php +10 -8
- admin/add-gallery.php +4 -5
- admin/css/style.css +4 -0
- admin/include/edit-gallery.php +11 -1
- admin/overview.php +15 -3
- freemius/assets/css/admin/account.css +1 -1
- freemius/assets/css/admin/add-ons.css +2 -2
- freemius/assets/css/admin/common.css +1 -1
- freemius/assets/css/admin/connect.css +1 -1
- freemius/assets/css/admin/dialog-boxes.css +1 -1
- freemius/config.php +3 -3
- freemius/includes/class-freemius.php +1844 -355
- freemius/includes/class-fs-api.php +77 -38
- freemius/includes/class-fs-plugin-updater.php +164 -36
- freemius/includes/class-fs-storage.php +2 -0
- freemius/includes/entities/class-fs-payment.php +58 -0
- freemius/includes/entities/class-fs-plugin-license.php +22 -1
- freemius/includes/entities/class-fs-plugin-tag.php +12 -2
- freemius/includes/entities/class-fs-plugin.php +12 -0
- freemius/includes/entities/class-fs-site.php +4 -1
- freemius/includes/entities/class-fs-user.php +17 -0
- freemius/includes/fs-core-functions.php +35 -6
- freemius/includes/fs-plugin-info-dialog.php +557 -90
- freemius/includes/i18n.php +2 -2
- freemius/includes/managers/class-fs-admin-menu-manager.php +25 -14
- freemius/includes/managers/class-fs-option-manager.php +10 -3
- freemius/languages/freemius-da_DK.mo +0 -0
- freemius/languages/freemius-da_DK.po +924 -1189
- freemius/languages/freemius-en.mo +0 -0
- freemius/languages/freemius-en.po +860 -1449
- freemius/languages/freemius-es_ES.mo +0 -0
- freemius/languages/freemius-es_ES.po +951 -1456
- freemius/languages/freemius-fr_FR.mo +0 -0
- freemius/languages/freemius-fr_FR.po +957 -1490
- freemius/languages/freemius-he_IL.mo +0 -0
- freemius/languages/freemius-he_IL.po +944 -1405
- freemius/languages/freemius-hu_HU.mo +0 -0
- freemius/languages/freemius-hu_HU.po +416 -701
FinalTilesGalleryLite.php
CHANGED
@@ -5,16 +5,18 @@
|
|
5 |
* Plugin URI: https://www.final-tiles-gallery.com/wordpress
|
6 |
* Description: Wordpress Plugin for creating responsive image galleries. By: GreenTreeLabs
|
7 |
* Author: Green Tree Labs
|
8 |
-
* Version: 3.4.
|
9 |
* Author URI: https://www.greentreelabs.net
|
10 |
* Text Domain: final-tiles-grid-gallery-lite
|
11 |
* Domain Path: /languages
|
12 |
*
|
13 |
*
|
14 |
*/
|
15 |
-
define( "FTGVERSION", "3.4.
|
16 |
/*
|
17 |
Changelog:
|
|
|
|
|
18 |
3.4.12
|
19 |
Fixed image drag and drop
|
20 |
Fixed edit video
|
@@ -465,12 +467,12 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
465 |
'hoverIconRotation' => 'F',
|
466 |
'hoverRotation' => 0,
|
467 |
'hoverZoom' => 100,
|
468 |
-
'imageSizeFactor' =>
|
469 |
'imageSizeFactorCustom' => '',
|
470 |
-
'imageSizeFactorPhoneLandscape' =>
|
471 |
-
'imageSizeFactorPhonePortrait' =>
|
472 |
-
'imageSizeFactorTabletLandscape' =>
|
473 |
-
'imageSizeFactorTabletPortrait' =>
|
474 |
'imagesOrder' => 'user',
|
475 |
'layout' => 'final',
|
476 |
'lazyLoad' => false,
|
@@ -492,7 +494,7 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
492 |
'margin' => 10,
|
493 |
'max_posts' => 0,
|
494 |
'minTileWidth' => '250',
|
495 |
-
'mobileLightbox' => '
|
496 |
'post_types' => '',
|
497 |
'post_taxonomies' => '',
|
498 |
'recentPostsCaption' => 'title',
|
5 |
* Plugin URI: https://www.final-tiles-gallery.com/wordpress
|
6 |
* Description: Wordpress Plugin for creating responsive image galleries. By: GreenTreeLabs
|
7 |
* Author: Green Tree Labs
|
8 |
+
* Version: 3.4.13
|
9 |
* Author URI: https://www.greentreelabs.net
|
10 |
* Text Domain: final-tiles-grid-gallery-lite
|
11 |
* Domain Path: /languages
|
12 |
*
|
13 |
*
|
14 |
*/
|
15 |
+
define( "FTGVERSION", "3.4.13" );
|
16 |
/*
|
17 |
Changelog:
|
18 |
+
3.4.13
|
19 |
+
Updated Freemius SDK
|
20 |
3.4.12
|
21 |
Fixed image drag and drop
|
22 |
Fixed edit video
|
467 |
'hoverIconRotation' => 'F',
|
468 |
'hoverRotation' => 0,
|
469 |
'hoverZoom' => 100,
|
470 |
+
'imageSizeFactor' => 30,
|
471 |
'imageSizeFactorCustom' => '',
|
472 |
+
'imageSizeFactorPhoneLandscape' => 30,
|
473 |
+
'imageSizeFactorPhonePortrait' => 20,
|
474 |
+
'imageSizeFactorTabletLandscape' => 30,
|
475 |
+
'imageSizeFactorTabletPortrait' => 20,
|
476 |
'imagesOrder' => 'user',
|
477 |
'layout' => 'final',
|
478 |
'lazyLoad' => false,
|
494 |
'margin' => 10,
|
495 |
'max_posts' => 0,
|
496 |
'minTileWidth' => '250',
|
497 |
+
'mobileLightbox' => 'lightbox2',
|
498 |
'post_types' => '',
|
499 |
'post_taxonomies' => '',
|
500 |
'recentPostsCaption' => 'title',
|
admin/add-gallery.php
CHANGED
@@ -174,7 +174,7 @@ _e( 'Choose the layout', 'final-tiles-grid-gallery-lite' );
|
|
174 |
</select>
|
175 |
</div>
|
176 |
<div class="field">
|
177 |
-
|
178 |
_e( 'Choose a default image size', 'final-tiles-grid-gallery-lite' );
|
179 |
?></h5>
|
180 |
<select class="browser-default def_imgsize" name="def_imgsize">
|
@@ -183,7 +183,8 @@ foreach ( $this->list_thumbnail_sizes() as $size => $atts ) {
|
|
183 |
print '<option value="' . $size . '">' . $size . " (" . implode( 'x', $atts ) . ")</option>";
|
184 |
}
|
185 |
?>
|
186 |
-
</select
|
|
|
187 |
</div>
|
188 |
<div class="field select-images">
|
189 |
<a class="button add-images">
|
@@ -258,8 +259,6 @@ _e( 'Close', 'final-tiles-grid-gallery-lite' );
|
|
258 |
<script>
|
259 |
jQuery(function (){
|
260 |
var $ = jQuery;
|
261 |
-
|
262 |
-
|
263 |
-
$()
|
264 |
});
|
265 |
</script>
|
174 |
</select>
|
175 |
</div>
|
176 |
<div class="field">
|
177 |
+
<!--<h5><?php
|
178 |
_e( 'Choose a default image size', 'final-tiles-grid-gallery-lite' );
|
179 |
?></h5>
|
180 |
<select class="browser-default def_imgsize" name="def_imgsize">
|
183 |
print '<option value="' . $size . '">' . $size . " (" . implode( 'x', $atts ) . ")</option>";
|
184 |
}
|
185 |
?>
|
186 |
+
</select>-->
|
187 |
+
<input type="hidden" name="def_imgsize" id="def_imgsize" value="large">
|
188 |
</div>
|
189 |
<div class="field select-images">
|
190 |
<a class="button add-images">
|
259 |
<script>
|
260 |
jQuery(function (){
|
261 |
var $ = jQuery;
|
262 |
+
//$(".def_imgsize").val("large");
|
|
|
|
|
263 |
});
|
264 |
</script>
|
admin/css/style.css
CHANGED
@@ -1088,4 +1088,8 @@ padding: 10px;
|
|
1088 |
}
|
1089 |
.field-row:hover .field-help {
|
1090 |
opacity: .8;
|
|
|
|
|
|
|
|
|
1091 |
}
|
1088 |
}
|
1089 |
.field-row:hover .field-help {
|
1090 |
opacity: .8;
|
1091 |
+
}
|
1092 |
+
.no-thank-you {
|
1093 |
+
float: right;
|
1094 |
+
margin-top: 7px;
|
1095 |
}
|
admin/include/edit-gallery.php
CHANGED
@@ -140,7 +140,7 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
140 |
<select class="current-image-size browser-default">
|
141 |
<?php
|
142 |
foreach ( $this->list_thumbnail_sizes() as $size => $atts ) {
|
143 |
-
print '<option ' . (( $size == '
|
144 |
}
|
145 |
?>
|
146 |
</select>
|
@@ -973,6 +973,16 @@ _e( 'FAQ', 'final-tiles-grid-gallery-lite' );
|
|
973 |
<ul class="collapsible gallery-actions">
|
974 |
<li>
|
975 |
<div class="collapsible-header"><?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
976 |
_e( 'How to add a link to a picture?', 'final-tiles-grid-gallery-lite' );
|
977 |
?> <svg class="components-panel__arrow" width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false"><g><path fill="none" d="M0,0h24v24H0V0z"></path></g><g><path d="M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"></path></g></svg></div>
|
978 |
<div class="collapsible-body">
|
140 |
<select class="current-image-size browser-default">
|
141 |
<?php
|
142 |
foreach ( $this->list_thumbnail_sizes() as $size => $atts ) {
|
143 |
+
print '<option ' . (( $size == 'large' ? 'selected' : '' )) . ' value="' . $size . '">' . $size . " (" . implode( 'x', $atts ) . ")</option>";
|
144 |
}
|
145 |
?>
|
146 |
</select>
|
973 |
<ul class="collapsible gallery-actions">
|
974 |
<li>
|
975 |
<div class="collapsible-header"><?php
|
976 |
+
_e( 'How can I change the grid on mobile?', 'final-tiles-grid-gallery-lite' );
|
977 |
+
?> <svg class="components-panel__arrow" width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false"><g><path fill="none" d="M0,0h24v24H0V0z"></path></g><g><path d="M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"></path></g></svg></div>
|
978 |
+
<div class="collapsible-body">
|
979 |
+
<p><?php
|
980 |
+
_e( 'You can customize the aspect of your galleries for any device. Find the options "Image size factor" into the "Advanced" section. Set a lower value to make images smaller and a higher value to make images larger.' );
|
981 |
+
?></p>
|
982 |
+
</div>
|
983 |
+
</li>
|
984 |
+
<li>
|
985 |
+
<div class="collapsible-header"><?php
|
986 |
_e( 'How to add a link to a picture?', 'final-tiles-grid-gallery-lite' );
|
987 |
?> <svg class="components-panel__arrow" width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false"><g><path fill="none" d="M0,0h24v24H0V0z"></path></g><g><path d="M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"></path></g></svg></div>
|
988 |
<div class="collapsible-body">
|
admin/overview.php
CHANGED
@@ -101,7 +101,7 @@
|
|
101 |
</table>
|
102 |
</div>
|
103 |
<div class="col s3">
|
104 |
-
<?php if (
|
105 |
<ul class="collapsible gallery-actions">
|
106 |
<li class="active">
|
107 |
<div class="collapsible-header"><?php _e('Upgrade', 'final-tiles-grid-gallery-lite') ?>: <?php _e('unlock features', 'final-tiles-grid-gallery-lite') ?></div>
|
@@ -121,6 +121,19 @@
|
|
121 |
</div>
|
122 |
</li>
|
123 |
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
<?php endif ?>
|
125 |
<ul class="collapsible gallery-actions">
|
126 |
<li class="active">
|
@@ -131,8 +144,7 @@
|
|
131 |
<a href="?page=ftg-add-gallery" class="button components-button is-primary"><?php _e('Add gallery', 'final-tiles-grid-gallery-lite')?></a>
|
132 |
</div>
|
133 |
</li>
|
134 |
-
</ul>
|
135 |
-
|
136 |
</div>
|
137 |
|
138 |
</div>
|
101 |
</table>
|
102 |
</div>
|
103 |
<div class="col s3">
|
104 |
+
<?php if (ftg_fs()->is_not_paying() ) : ?>
|
105 |
<ul class="collapsible gallery-actions">
|
106 |
<li class="active">
|
107 |
<div class="collapsible-header"><?php _e('Upgrade', 'final-tiles-grid-gallery-lite') ?>: <?php _e('unlock features', 'final-tiles-grid-gallery-lite') ?></div>
|
121 |
</div>
|
122 |
</li>
|
123 |
</ul>
|
124 |
+
<?php endif ?>
|
125 |
+
<?php if (ftg_fs()->is_paying() && false) : ?>
|
126 |
+
<ul class="collapsible gallery-actions">
|
127 |
+
<li class="active">
|
128 |
+
<div class="collapsible-header">
|
129 |
+
<?php _e('Redeem your coupon', 'final-tiles-grid-gallery-lite')?>
|
130 |
+
</div>
|
131 |
+
<div class="collapsible-body">
|
132 |
+
<a href="?page=ftg-add-gallery" class="button components-button is-primary"><?php _e('Add gallery', 'final-tiles-grid-gallery-lite')?></a>
|
133 |
+
<a href="#" class="no-thank-you"><?php _e('No, thank you', 'final-tiles-grid-gallery-lite') ?></a>
|
134 |
+
</div>
|
135 |
+
</li>
|
136 |
+
</ul>
|
137 |
<?php endif ?>
|
138 |
<ul class="collapsible gallery-actions">
|
139 |
<li class="active">
|
144 |
<a href="?page=ftg-add-gallery" class="button components-button is-primary"><?php _e('Add gallery', 'final-tiles-grid-gallery-lite')?></a>
|
145 |
</div>
|
146 |
</li>
|
147 |
+
</ul>
|
|
|
148 |
</div>
|
149 |
|
150 |
</div>
|
freemius/assets/css/admin/account.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#fs_account .postbox,#fs_account .widefat{max-width:700px}#fs_account h3{font-size:1.3em;padding:12px 15px;margin:0 0 12px 0;line-height:1.4;border-bottom:1px solid #F1F1F1}#fs_account h3 .dashicons{width:26px;height:26px;font-size:1.3em}#fs_account i.dashicons{font-size:1.2em;height:1.2em;width:1.2em}#fs_account .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_sites .fs-scrollable-table .fs-table-body{max-height:200px;overflow:auto;border:1px solid #e5e5e5}#fs_sites .fs-scrollable-table .fs-table-body>table.widefat{border:none !important}#fs_sites .fs-scrollable-table .fs-main-column{width:100%}#fs_sites .fs-scrollable-table .fs-site-details td:first-of-type{text-align:right;color:grey;width:1px}#fs_sites .fs-scrollable-table .fs-site-details td:last-of-type{text-align:right}#fs_sites .fs-scrollable-table .fs-install-details table tr td{width:1px;white-space:nowrap}#fs_sites .fs-scrollable-table .fs-install-details table tr td:last-of-type{width:auto}#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 |
+
label.fs-tag,span.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,span.fs-tag.fs-warn{background:#ffba00}label.fs-tag.fs-info,span.fs-tag.fs-info{background:#00a0d2}label.fs-tag.fs-success,span.fs-tag.fs-success{background:#46b450}label.fs-tag.fs-error,span.fs-tag.fs-error{background:#dc3232}#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 .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}.fs-field-beta_program label{margin-left:7px}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_sites .fs-scrollable-table .fs-table-body{max-height:200px;overflow:auto;border:1px solid #e5e5e5}#fs_sites .fs-scrollable-table .fs-table-body>table.widefat{border:none !important}#fs_sites .fs-scrollable-table .fs-main-column{width:100%}#fs_sites .fs-scrollable-table .fs-site-details td:first-of-type{text-align:right;color:grey;width:1px}#fs_sites .fs-scrollable-table .fs-site-details td:last-of-type{text-align:right}#fs_sites .fs-scrollable-table .fs-install-details table tr td{width:1px;white-space:nowrap}#fs_sites .fs-scrollable-table .fs-install-details table tr td:last-of-type{width:auto}#fs_addons h3{border:none;margin-bottom:0;padding:4px 5px}#fs_addons td{vertical-align:middle}#fs_addons thead{white-space:nowrap}#fs_addons td:first-child,#fs_addons th:first-child{text-align:left;font-weight:bold}#fs_addons td:last-child,#fs_addons th:last-child{text-align:right}#fs_addons th{font-weight:bold}#fs_billing_address{width:100%}#fs_billing_address tr td{width:50%;padding:5px}#fs_billing_address tr:first-of-type td{padding-top:0}#fs_billing_address span{font-weight:bold}#fs_billing_address input,#fs_billing_address select{display:block;width:100%;margin-top:5px}#fs_billing_address input::-moz-placeholder,#fs_billing_address select::-moz-placeholder{color:transparent;opacity:1}#fs_billing_address input:-ms-input-placeholder,#fs_billing_address select:-ms-input-placeholder{color:transparent}#fs_billing_address input::-webkit-input-placeholder,#fs_billing_address select::-webkit-input-placeholder{color:transparent}#fs_billing_address input.fs-read-mode,#fs_billing_address select.fs-read-mode{border-color:transparent;color:#777;border-bottom:1px dashed #ccc;padding-left:0;background:none}#fs_billing_address.fs-read-mode td span{display:none}#fs_billing_address.fs-read-mode input,#fs_billing_address.fs-read-mode select{border-color:transparent;color:#777;border-bottom:1px dashed #ccc;padding-left:0;background:none}#fs_billing_address.fs-read-mode input::-moz-placeholder,#fs_billing_address.fs-read-mode select::-moz-placeholder{color:#ccc;opacity:1}#fs_billing_address.fs-read-mode input:-ms-input-placeholder,#fs_billing_address.fs-read-mode select:-ms-input-placeholder{color:#ccc}#fs_billing_address.fs-read-mode input::-webkit-input-placeholder,#fs_billing_address.fs-read-mode select::-webkit-input-placeholder{color:#ccc}#fs_billing_address button{display:block;width:100%}
|
freemius/assets/css/admin/add-ons.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
#fs_addons .fs-cards-list{list-style:none}#fs_addons .fs-cards-list .fs-card{float:left;height:152px;width:310px;padding:0;margin:0 0 30px 30px;font-size:14px;list-style:none;border:1px solid #ddd;cursor:pointer;position:relative}#fs_addons .fs-cards-list .fs-card .fs-overlay{position:absolute;left:0;right:0;bottom:0;top:0;z-index:9}#fs_addons .fs-cards-list .fs-card .fs-inner{background-color:#fff;overflow:hidden;height:100%;position:relative}#fs_addons .fs-cards-list .fs-card .fs-inner
|
2 |
-
#TB_window,#TB_window iframe{width:
|
1 |
+
.fs-badge{position:absolute;top:10px;right:0;background:#71ae00;color:white;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)}#fs_addons .fs-cards-list{list-style:none}#fs_addons .fs-cards-list .fs-card{float:left;height:152px;width:310px;padding:0;margin:0 0 30px 30px;font-size:14px;list-style:none;border:1px solid #ddd;cursor:pointer;position:relative}#fs_addons .fs-cards-list .fs-card .fs-overlay{position:absolute;left:0;right:0;bottom:0;top:0;z-index:9}#fs_addons .fs-cards-list .fs-card .fs-inner{background-color:#fff;overflow:hidden;height:100%;position:relative}#fs_addons .fs-cards-list .fs-card .fs-inner>ul{-moz-transition:all,0.15s;-o-transition:all,0.15s;-ms-transition:all,0.15s;-webkit-transition:all,0.15s;transition:all,0.15s;left:0;right:0;top:0;position:absolute}#fs_addons .fs-cards-list .fs-card .fs-inner>ul>li{list-style:none;line-height:18px;padding:0 15px;width:100%;display:block;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-card-banner{padding:0;margin:0;line-height:0;display:block;height:100px;background-repeat:repeat-x;background-size:100% 100%;-moz-transition:all,0.15s;-o-transition:all,0.15s;-ms-transition:all,0.15s;-webkit-transition:all,0.15s;transition:all,0.15s}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-card-banner .fs-badge.fs-installed-addon-badge{font-size:1.02em;line-height:1.3em}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-title{margin:10px 0 0 0;height:18px;overflow:hidden;color:#000;white-space:nowrap;text-overflow:ellipsis;font-weight:bold}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-offer{font-size:0.9em}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-description{background-color:#f9f9f9;padding:10px 15px 100px 15px;border-top:1px solid #eee;margin:0 0 10px 0;color:#777}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-tag{position:absolute;top:10px;right:0px;background:greenyellow;display:block;padding:2px 10px;-moz-box-shadow:1px 1px 1px rgba(0,0,0,0.3);-webkit-box-shadow:1px 1px 1px rgba(0,0,0,0.3);box-shadow:1px 1px 1px rgba(0,0,0,0.3);text-transform:uppercase;font-size:0.9em;font-weight:bold}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-cta .button,#fs_addons .fs-cards-list .fs-card .fs-inner .fs-cta .button-group{position:absolute;top:112px;right:10px}@media screen and (min-width: 960px){#fs_addons .fs-cards-list .fs-card:hover .fs-overlay{border:2px solid #29abe1;margin-left:-1px;margin-top:-1px}#fs_addons .fs-cards-list .fs-card:hover .fs-inner ul{top:-100px}#fs_addons .fs-cards-list .fs-card:hover .fs-inner .fs-title,#fs_addons .fs-cards-list .fs-card:hover .fs-inner .fs-offer{color:#29abe1}}
|
2 |
+
#TB_window,#TB_window iframe{width:821px !important}#plugin-information .fyi{width:266px !important}#plugin-information #section-holder{margin-right:299px}#plugin-information #section-description h2,#plugin-information #section-description h3,#plugin-information #section-description p,#plugin-information #section-description b,#plugin-information #section-description i,#plugin-information #section-description blockquote,#plugin-information #section-description li,#plugin-information #section-description ul,#plugin-information #section-description ol{clear:none}#plugin-information #section-description .fs-selling-points{padding-bottom:10px;border-bottom:1px solid #ddd}#plugin-information #section-description .fs-selling-points ul{margin:0}#plugin-information #section-description .fs-selling-points ul li{padding:0;list-style:none outside none}#plugin-information #section-description .fs-selling-points ul li i.dashicons{color:#71ae00;font-size:3em;vertical-align:middle;line-height:30px;float:left;margin:0 0 0 -15px}#plugin-information #section-description .fs-selling-points ul li h3{margin:1em 30px !important}#plugin-information #section-description .fs-screenshots:after{content:"";display:table;clear:both}#plugin-information #section-description .fs-screenshots ul{list-style:none;margin:0}#plugin-information #section-description .fs-screenshots ul li{width:225px;height:225px;float:left;margin-bottom:20px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}#plugin-information #section-description .fs-screenshots ul li a{display:block;width:100%;height:100%;border:1px solid;-moz-box-shadow:1px 1px 1px rgba(0,0,0,0.2);-webkit-box-shadow:1px 1px 1px rgba(0,0,0,0.2);box-shadow:1px 1px 1px rgba(0,0,0,0.2);background-size:cover}#plugin-information #section-description .fs-screenshots ul li.odd{margin-right:20px}#plugin-information .plugin-information-pricing{margin:-16px;border-bottom:1px solid #ddd}#plugin-information .plugin-information-pricing .fs-plan h3{margin-top:0;padding:20px;font-size:16px}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper{border-bottom:1px solid #ddd}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper .nav-tab{cursor:pointer;position:relative;padding:0 10px;font-size:0.9em}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper .nav-tab label{text-transform:uppercase;color:green;background:greenyellow;position:absolute;left:-1px;right:-1px;bottom:100%;border:1px solid darkgreen;padding:2px;text-align:center;font-size:0.9em;line-height:1em}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper .nav-tab.nav-tab-active{cursor:default;background:#fffeec;border-bottom-color:#fffeec}#plugin-information .plugin-information-pricing .fs-plan.fs-single-cycle h3{background:#fffeec;margin:0;padding-bottom:0;color:#0073aa}#plugin-information .plugin-information-pricing .fs-plan.fs-single-cycle .nav-tab-wrapper,#plugin-information .plugin-information-pricing .fs-plan.fs-single-cycle .fs-billing-frequency{display:none}#plugin-information .plugin-information-pricing .fs-plan .fs-pricing-body{background:#fffeec;padding:20px}#plugin-information .plugin-information-pricing .fs-plan .button{width:100%;text-align:center;font-weight:bold;text-transform:uppercase;font-size:1.1em}#plugin-information .plugin-information-pricing .fs-plan label{white-space:nowrap}#plugin-information .plugin-information-pricing .fs-plan var{font-style:normal}#plugin-information .plugin-information-pricing .fs-plan .fs-billing-frequency,#plugin-information .plugin-information-pricing .fs-plan .fs-annual-discount{text-align:center;display:block;font-weight:bold;margin-bottom:10px;text-transform:uppercase;background:#F3F3F3;padding:2px;border:1px solid #ccc}#plugin-information .plugin-information-pricing .fs-plan .fs-annual-discount{text-transform:none;color:green;background:greenyellow}#plugin-information .plugin-information-pricing .fs-plan ul.fs-trial-terms{font-size:0.9em}#plugin-information .plugin-information-pricing .fs-plan ul.fs-trial-terms i{float:left;margin:0 0 0 -15px}#plugin-information .plugin-information-pricing .fs-plan ul.fs-trial-terms li{margin:10px 0 0 0}#plugin-information #section-features .fs-features{margin:-20px -26px}#plugin-information #section-features table{width:100%;border-spacing:0;border-collapse:separate}#plugin-information #section-features table thead th{padding:10px 0}#plugin-information #section-features table thead .fs-price{color:#71ae00;font-weight:normal;display:block;text-align:center}#plugin-information #section-features table tbody td{border-top:1px solid #ccc;padding:10px 0;text-align:center;width:100px;color:#71ae00}#plugin-information #section-features table tbody td:first-child{text-align:left;width:auto;color:inherit;padding-left:26px}#plugin-information #section-features table tbody tr.fs-odd td{background:#fefefe}#plugin-information #section-features .dashicons-yes{width:30px;height:30px;font-size:30px}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-dropdown .button-group .button,#plugin-information .fs-dropdown .button-group .button{position:relative;width:auto;top:0;right:0}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-dropdown .button-group .button:focus,#plugin-information .fs-dropdown .button-group .button:focus{z-index:10}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-dropdown .button-group .fs-dropdown-arrow,#plugin-information .fs-dropdown .button-group .fs-dropdown-arrow{border-top:6px solid white;border-right:4px solid transparent;border-left:4px solid transparent;top:12px;position:relative}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-dropdown.active:not(.up) .button:not(.fs-dropdown-arrow-button),#plugin-information .fs-dropdown.active:not(.up) .button:not(.fs-dropdown-arrow-button){border-bottom-left-radius:0}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-dropdown.active:not(.up) .fs-dropdown-arrow-button,#plugin-information .fs-dropdown.active:not(.up) .fs-dropdown-arrow-button{border-bottom-right-radius:0}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-dropdown.active.up .button:not(.fs-dropdown-arrow-button),#plugin-information .fs-dropdown.active.up .button:not(.fs-dropdown-arrow-button){border-top-left-radius:0}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-dropdown.active.up .fs-dropdown-arrow-button,#plugin-information .fs-dropdown.active.up .fs-dropdown-arrow-button{border-top-right-radius:0}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-dropdown .fs-dropdown-list,#plugin-information .fs-dropdown .fs-dropdown-list{position:absolute;right:-1px;top:100%;margin-left:auto;padding:3px 0;border:1px solid #bfbfbf;background-color:#fff;z-index:1;width:230px;text-align:left;-moz-box-shadow:0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12);-webkit-box-shadow:0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12);box-shadow:0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-dropdown .fs-dropdown-list li,#plugin-information .fs-dropdown .fs-dropdown-list li{margin:0}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-dropdown .fs-dropdown-list li a,#plugin-information .fs-dropdown .fs-dropdown-list li a{display:block;padding:5px 10px;text-decoration:none;text-shadow:none}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-dropdown .fs-dropdown-list li:hover,#plugin-information .fs-dropdown .fs-dropdown-list li:hover{background-color:#0074a3;color:#fff}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-dropdown .fs-dropdown-list li:hover a,#plugin-information .fs-dropdown .fs-dropdown-list li:hover a{color:#fff}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-dropdown:not(.up) .fs-dropdown-list,#plugin-information .fs-dropdown:not(.up) .fs-dropdown-list{-moz-border-radius:3px 0 3px 3px;-webkit-border-radius:3px 0 3px 3px;border-radius:3px 0 3px 3px}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-dropdown.up .fs-dropdown-list,#plugin-information .fs-dropdown.up .fs-dropdown-list{-moz-border-radius:3px 3px 0 3px;-webkit-border-radius:3px 3px 0 3px;border-radius:3px 3px 0 3px}#plugin-information .fs-dropdown .button-group{width:100%}#plugin-information .fs-dropdown .button-group .button{float:none;font-size:14px;font-weight:normal;text-transform:none}#plugin-information .fs-dropdown .fs-dropdown-list{margin-top:1px}#plugin-information .fs-dropdown.up .fs-dropdown-list{top:auto;bottom:100%;margin-bottom:2px}#plugin-information.wp-core-ui .fs-pricing-body .fs-dropdown .button-group{text-align:center;display:table}#plugin-information.wp-core-ui .fs-pricing-body .fs-dropdown .button-group .button{display:table-cell}#plugin-information.wp-core-ui .fs-pricing-body .fs-dropdown .button-group .button:not(.fs-dropdown-arrow-button){left:1px;width:100%}#plugin-information-footer>.button,#plugin-information-footer .fs-dropdown{position:relative;top:3px}#plugin-information-footer>.button.left,#plugin-information-footer .fs-dropdown.left{float:left}#plugin-information-footer>.right,#plugin-information-footer .fs-dropdown{float:right}@media screen and (max-width: 961px){#fs_addons .fs-cards-list .fs-card{height:265px}}
|
freemius/assets/css/admin/common.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
.
|
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}.plugins p.fs-upgrade-notice{border:0;background-color:#d54e21;padding:10px;color:#f9f9f9;margin-top:10px}
|
1 |
+
.fs-badge{position:absolute;top:10px;right:0;background:#71ae00;color:white;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)}.theme-browser .theme .fs-premium-theme-badge-container{position:absolute;right:0;top:0}.theme-browser .theme .fs-premium-theme-badge-container .fs-badge{position:relative;top:0;margin-top:10px;text-align:center}.theme-browser .theme .fs-premium-theme-badge-container .fs-badge.fs-premium-theme-badge{font-size:1.1em}.theme-browser .theme .fs-premium-theme-badge-container .fs-badge.fs-beta-theme-badge{background:#00a0d2}#fs_frame{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}.plugins p.fs-upgrade-notice{border:0;background-color:#d54e21;padding:10px;color:#f9f9f9;margin-top:10px}
|
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.require-license-key
|
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.require-license-key .fs-sites-list-container td{cursor:pointer}#fs_connect #delegate_to_site_admins{margin-right:15px;float:right;height:26px;vertical-align:middle;line-height:37px;font-weight:bold;border-bottom:1px dashed;text-decoration:none}#fs_connect #delegate_to_site_admins.rtl{margin-left:15px;margin-right:0}#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}.fs-multisite-options-container{margin-top:10px;border:1px solid #ccc;padding:5px}.fs-multisite-options-container a{text-decoration:none}.fs-multisite-options-container a:focus{box-shadow:none}.fs-multisite-options-container a.selected{font-weight:bold}.fs-multisite-options-container.fs-apply-on-all-sites{border:0 none;padding:0}.fs-multisite-options-container.fs-apply-on-all-sites .fs-all-sites-options{border-spacing:0}.fs-multisite-options-container.fs-apply-on-all-sites .fs-all-sites-options td:not(:first-child){display:none}.fs-multisite-options-container .fs-sites-list-container{display:none;overflow:auto}.fs-multisite-options-container .fs-sites-list-container table td{border-top:1px solid #ccc;padding:4px 2px}.fs-tooltip-trigger{position:relative}.fs-tooltip-trigger:not(a){cursor:help}.fs-tooltip-trigger .fs-tooltip{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:rgba(0,0,0,0.8);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-tooltip-trigger .fs-tooltip{text-align:right}.fs-tooltip-trigger .fs-tooltip::after{content:' ';display:block;width:0;height:0;border-style:solid;border-width:5px 5px 0 5px;border-color:rgba(0,0,0,0.8) transparent transparent transparent;position:absolute;top:100%;left:21px}.rtl .fs-tooltip-trigger .fs-tooltip::after{right:21px;left:auto}.fs-tooltip-trigger:hover .fs-tooltip{visibility:visible;opacity:1}#fs_marketing_optin{display:none;margin-top:10px;border:1px solid #ccc;padding:10px;line-height:1.5em}#fs_marketing_optin .fs-message{display:block;margin-bottom:5px;font-size:1.05em;font-weight:600}#fs_marketing_optin.error{border:1px solid #d3135a;background:#fee}#fs_marketing_optin.error .fs-message{color:#d3135a}#fs_marketing_optin .fs-input-container{margin-top:5px}#fs_marketing_optin .fs-input-container label{margin-top:5px;display:block}#fs_marketing_optin .fs-input-container label input{float:left;margin:1px 0 0 0}#fs_marketing_optin .fs-input-container label:first-child{display:block;margin-bottom:2px}#fs_marketing_optin .fs-input-label{display:block;margin-left:20px}#fs_marketing_optin .fs-input-label .underlined{text-decoration:underline}.rtl #fs_marketing_optin .fs-input-container label input{float:right}.rtl #fs_marketing_optin .fs-input-label{margin-left:0;margin-right:20px}.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-header .fs-close .dashicons,.fs-modal .fs-modal-header .fs-close:hover .dashicons{text-decoration:none}.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-subscription-cancellation .fs-price-increase-warning{color:red;font-weight:bold;padding:0 25px;margin-bottom:0}.fs-modal.fs-modal-subscription-cancellation ul.subscription-actions label input{float:left;top:5px;position:relative}.rtl .fs-modal.fs-modal-subscription-cancellation ul.subscription-actions label input{float:right}.fs-modal.fs-modal-subscription-cancellation ul.subscription-actions label span{display:block;margin-left:24px}.rtl .fs-modal.fs-modal-subscription-cancellation ul.subscription-actions label span{margin-left:0;margin-right:24px}.fs-modal.fs-modal-license-activation .fs-modal-body input.
|
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}.button-primary.warn{box-shadow:0 1px 0 #d2593c;text-shadow:0 -1px 1px #d2593c,1px 0 1px #d2593c,0 1px 1px #d2593c,-1px 0 1px #d2593c;background:#f56a48;border-color:#ec6544 #d2593c #d2593c}.button-primary.warn:hover{background:#fd6d4a;border-color:#d2593c}.button-primary.warn:focus{box-shadow:0 1px 0 #dd6041,0 0 2px 1px #e4a796}.button-primary.warn:active{background:#dd6041;border-color:#d2593c;box-shadow:inset 0 2px 0 #d2593c}.button-primary.warn.disabled{color:#f5b3a1 !important;background:#e76444 !important;border-color:#d85e40 !important;text-shadow:0 -1px 0 rgba(0,0,0,0.1) !important}
|
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-header .fs-close .dashicons,.fs-modal .fs-modal-header .fs-close:hover .dashicons{text-decoration:none}.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-subscription-cancellation .fs-price-increase-warning{color:red;font-weight:bold;padding:0 25px;margin-bottom:0}.fs-modal.fs-modal-subscription-cancellation ul.subscription-actions label input{float:left;top:5px;position:relative}.rtl .fs-modal.fs-modal-subscription-cancellation ul.subscription-actions label input{float:right}.fs-modal.fs-modal-subscription-cancellation ul.subscription-actions label span{display:block;margin-left:24px}.rtl .fs-modal.fs-modal-subscription-cancellation ul.subscription-actions label span{margin-left:0;margin-right:24px}.fs-modal.fs-modal-license-activation .fs-modal-body input.fs-license-key{width:100%}.fs-license-options-container table,.fs-license-options-container table select,.fs-license-options-container table .fs-available-license-key{width:100%}.fs-license-options-container table td:first-child{width:1%}.fs-license-options-container table .fs-other-license-key-container label{position:relative;top:6px;float:left;margin-right:5px}.fs-license-options-container table .fs-other-license-key-container div{overflow:hidden;width:auto;height:30px;display:block;top:2px;position:relative}.fs-license-options-container table .fs-other-license-key-container div input{margin:0}.fs-sites-list-container td{cursor:pointer}.fs-multisite-options-container{margin-top:10px;border:1px solid #ccc;padding:5px}.fs-multisite-options-container a{text-decoration:none}.fs-multisite-options-container a:focus{box-shadow:none}.fs-multisite-options-container a.selected{font-weight:bold}.fs-multisite-options-container.fs-apply-on-all-sites{border:0 none;padding:0}.fs-multisite-options-container.fs-apply-on-all-sites .fs-all-sites-options{border-spacing:0}.fs-multisite-options-container.fs-apply-on-all-sites .fs-all-sites-options td:not(:first-child){display:none}.fs-multisite-options-container .fs-sites-list-container{display:none;overflow:auto}.fs-multisite-options-container .fs-sites-list-container table td{border-top:1px solid #ccc;padding:4px 2px}.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}.button-primary.warn{box-shadow:0 1px 0 #d2593c;text-shadow:0 -1px 1px #d2593c,1px 0 1px #d2593c,0 1px 1px #d2593c,-1px 0 1px #d2593c;background:#f56a48;border-color:#ec6544 #d2593c #d2593c}.button-primary.warn:hover{background:#fd6d4a;border-color:#d2593c}.button-primary.warn:focus{box-shadow:0 1px 0 #dd6041,0 0 2px 1px #e4a796}.button-primary.warn:active{background:#dd6041;border-color:#d2593c;box-shadow:inset 0 2px 0 #d2593c}.button-primary.warn.disabled{color:#f5b3a1 !important;background:#e76444 !important;border-color:#d85e40 !important;text-shadow:0 -1px 0 rgba(0,0,0,0.1) !important}
|
freemius/config.php
CHANGED
@@ -204,7 +204,7 @@
|
|
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' );
|
@@ -351,8 +351,8 @@
|
|
351 |
*/
|
352 |
if ( ! defined( 'WP_FS__IS_NETWORK_ADMIN' ) ) {
|
353 |
define( 'WP_FS__IS_NETWORK_ADMIN',
|
354 |
-
|
355 |
-
(
|
356 |
( ( defined( 'DOING_AJAX' ) && DOING_AJAX &&
|
357 |
( isset( $_REQUEST['_fs_network_admin'] ) /*||
|
358 |
( ! empty( $_REQUEST['action'] ) && 'delete-plugin' === $_REQUEST['action'] )*/ )
|
204 |
#--------------------------------------------------------------------------------
|
205 |
|
206 |
if ( ! defined( 'WP_FS__API_ADDRESS_LOCALHOST' ) ) {
|
207 |
+
define( 'WP_FS__API_ADDRESS_LOCALHOST', 'http://api.freemius-local.com:8080' );
|
208 |
}
|
209 |
if ( ! defined( 'WP_FS__API_SANDBOX_ADDRESS_LOCALHOST' ) ) {
|
210 |
define( 'WP_FS__API_SANDBOX_ADDRESS_LOCALHOST', 'http://sandbox-api.freemius:8080' );
|
351 |
*/
|
352 |
if ( ! defined( 'WP_FS__IS_NETWORK_ADMIN' ) ) {
|
353 |
define( 'WP_FS__IS_NETWORK_ADMIN',
|
354 |
+
is_multisite() &&
|
355 |
+
( is_network_admin() ||
|
356 |
( ( defined( 'DOING_AJAX' ) && DOING_AJAX &&
|
357 |
( isset( $_REQUEST['_fs_network_admin'] ) /*||
|
358 |
( ! empty( $_REQUEST['action'] ) && 'delete-plugin' === $_REQUEST['action'] )*/ )
|
freemius/includes/class-freemius.php
CHANGED
@@ -399,9 +399,11 @@
|
|
399 |
$this->_is_multisite_integrated &&
|
400 |
// Themes are always network activated, but the ACTUAL activation is per site.
|
401 |
$this->is_plugin() &&
|
402 |
-
(
|
403 |
-
|
404 |
-
|
|
|
|
|
405 |
);
|
406 |
|
407 |
$this->_storage->set_network_active(
|
@@ -409,6 +411,17 @@
|
|
409 |
$this->is_delegated_connection()
|
410 |
);
|
411 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
412 |
#region Migration
|
413 |
|
414 |
if ( is_multisite() ) {
|
@@ -493,6 +506,188 @@
|
|
493 |
$this->_version_updates_handler();
|
494 |
}
|
495 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
496 |
/**
|
497 |
* Checks whether this module has a settings menu.
|
498 |
*
|
@@ -1275,9 +1470,7 @@
|
|
1275 |
add_filter( 'site_transient_update_plugins', array( 'Freemius', '_remove_fs_updates_from_plugin_install_page' ), 10, 2 );
|
1276 |
} else if ( self::is_plugins_page() || self::is_updates_page() ) {
|
1277 |
/**
|
1278 |
-
* On the "Plugins" and "Updates" admin pages, if there are premium or non–org-compliant
|
1279 |
-
* plugins, modify their details dialog URLs (add a Freemius-specific param) so that the SDK can
|
1280 |
-
* determine if the plugin information dialog should show information from Freemius.
|
1281 |
*
|
1282 |
* @author Leo Fajardo (@leorw)
|
1283 |
* @since 2.2.3
|
@@ -1408,6 +1601,7 @@
|
|
1408 |
|
1409 |
add_action( 'admin_init', array( &$this, '_add_license_activation' ) );
|
1410 |
add_action( 'admin_init', array( &$this, '_add_premium_version_upgrade_selection' ) );
|
|
|
1411 |
|
1412 |
$this->add_ajax_action( 'update_billing', array( &$this, '_update_billing_ajax_action' ) );
|
1413 |
$this->add_ajax_action( 'start_trial', array( &$this, '_start_trial_ajax_action' ) );
|
@@ -1467,7 +1661,7 @@
|
|
1467 |
static function _remove_fs_updates_from_plugin_install_page( $updates, $transient = null ) {
|
1468 |
if ( is_object( $updates ) && isset( $updates->response ) ) {
|
1469 |
foreach ( $updates->response as $file => $plugin ) {
|
1470 |
-
if ( false !== strpos( $plugin->package, 'api.freemius' ) ) {
|
1471 |
unset( $updates->response[ $file ] );
|
1472 |
}
|
1473 |
}
|
@@ -1530,6 +1724,122 @@
|
|
1530 |
<?php
|
1531 |
}
|
1532 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1533 |
/**
|
1534 |
* Keeping the uninstall hook registered for free or premium plugin version may result to a fatal error that
|
1535 |
* could happen when a user tries to uninstall either version while one of them is still active. Uninstalling a
|
@@ -1655,7 +1965,7 @@
|
|
1655 |
// Try to load the cached value of the file path.
|
1656 |
if ( isset( $this->_storage->plugin_main_file ) ) {
|
1657 |
$plugin_main_file = $this->_storage->plugin_main_file;
|
1658 |
-
if (
|
1659 |
$absolute_path = $this->get_absolute_path( $plugin_main_file->path );
|
1660 |
if ( file_exists( $absolute_path ) ) {
|
1661 |
return $absolute_path;
|
@@ -1676,7 +1986,7 @@
|
|
1676 |
if ( ! $is_init ) {
|
1677 |
// Fetch prev path cache.
|
1678 |
if ( isset( $this->_storage->plugin_main_file ) &&
|
1679 |
-
|
1680 |
) {
|
1681 |
$absolute_path = $this->get_absolute_path( $this->_storage->plugin_main_file->prev_path );
|
1682 |
if ( file_exists( $absolute_path ) ) {
|
@@ -1780,7 +2090,7 @@
|
|
1780 |
$store_option = true;
|
1781 |
}
|
1782 |
|
1783 |
-
if (
|
1784 |
/**
|
1785 |
* This verification is for cases when suddenly the same module
|
1786 |
* is installed but with a different folder name.
|
@@ -1844,6 +2154,7 @@
|
|
1844 |
$caller_map = array();
|
1845 |
$module_type = WP_FS__MODULE_TYPE_PLUGIN;
|
1846 |
$themes_dir = fs_normalize_path( get_theme_root( get_stylesheet() ) );
|
|
|
1847 |
|
1848 |
for ( $i = 1, $bt = debug_backtrace(), $len = count( $bt ); $i < $len; $i ++ ) {
|
1849 |
if ( empty( $bt[ $i ]['file'] ) ) {
|
@@ -1869,12 +2180,46 @@
|
|
1869 |
'activate_plugin'
|
1870 |
) )
|
1871 |
) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1872 |
// Ignore call stack hooks and files inclusion.
|
1873 |
continue;
|
1874 |
}
|
1875 |
|
1876 |
$caller_file_path = fs_normalize_path( $bt[ $i ]['file'] );
|
1877 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1878 |
if ( 'functions.php' === basename( $caller_file_path ) ) {
|
1879 |
/**
|
1880 |
* 1. Assumes that theme's starting execution file is functions.php.
|
@@ -1934,50 +2279,84 @@
|
|
1934 |
*
|
1935 |
* @author Vova Feldman (@svovaf)
|
1936 |
* @author Leo Fajardo (@leorw)
|
|
|
1937 |
* @since 1.1.2
|
1938 |
*/
|
1939 |
function _add_deactivation_feedback_dialog_box() {
|
1940 |
-
|
1941 |
-
|
1942 |
-
|
1943 |
-
* 3. Short-term (short-term)
|
1944 |
-
*/
|
1945 |
-
$is_long_term_user = true;
|
1946 |
-
|
1947 |
-
// Check if the site is at least 2 days old.
|
1948 |
-
$time_installed = $this->_storage->install_timestamp;
|
1949 |
|
1950 |
-
|
1951 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1952 |
|
1953 |
-
|
1954 |
-
$date_diff_days = floor( $date_diff / ( 60 * 60 * 24 ) );
|
1955 |
|
1956 |
-
if (
|
1957 |
-
$
|
|
|
|
|
|
|
|
|
1958 |
}
|
1959 |
|
1960 |
-
$
|
1961 |
|
1962 |
-
if ( $
|
1963 |
-
|
1964 |
-
|
1965 |
-
|
1966 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1967 |
} else {
|
1968 |
-
$
|
|
|
|
|
|
|
|
|
1969 |
}
|
1970 |
-
}
|
1971 |
|
1972 |
-
|
1973 |
|
1974 |
-
|
1975 |
-
|
1976 |
-
|
1977 |
-
|
1978 |
-
|
|
|
1979 |
|
1980 |
/**
|
|
|
|
|
1981 |
* @todo Deactivation form core functions should be loaded only once! Otherwise, when there are multiple Freemius powered plugins the same code is loaded multiple times. The only thing that should be loaded differently is the various deactivation reasons object based on the state of the plugin.
|
1982 |
*/
|
1983 |
fs_require_template( 'forms/deactivation/form.php', $vars );
|
@@ -2484,12 +2863,14 @@
|
|
2484 |
function is_site_activation_mode( $and_on = true ) {
|
2485 |
return (
|
2486 |
( $this->is_on() || ! $and_on ) &&
|
2487 |
-
( $this->is_premium() && true === $this->_storage->require_license_activation ) ||
|
2488 |
(
|
2489 |
-
(
|
2490 |
-
|
2491 |
-
|
2492 |
-
|
|
|
|
|
|
|
2493 |
)
|
2494 |
);
|
2495 |
}
|
@@ -2621,17 +3002,47 @@
|
|
2621 |
$active_basenames = get_option( 'active_plugins' );
|
2622 |
}
|
2623 |
|
|
|
|
|
|
|
|
|
2624 |
if ( is_multisite() ) {
|
2625 |
$network_active_basenames = get_site_option( 'active_sitewide_plugins' );
|
2626 |
|
2627 |
if ( is_array( $network_active_basenames ) && ! empty( $network_active_basenames ) ) {
|
2628 |
-
$active_basenames = array_merge( $active_basenames, $network_active_basenames );
|
2629 |
}
|
2630 |
}
|
2631 |
|
2632 |
return $active_basenames;
|
2633 |
}
|
2634 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2635 |
/**
|
2636 |
* Get collection of all active plugins. Including network activated plugins.
|
2637 |
*
|
@@ -2879,6 +3290,18 @@
|
|
2879 |
add_action( 'admin_footer', array( 'Freemius', '_enrich_ajax_url' ) );
|
2880 |
add_action( 'admin_footer', array( 'Freemius', '_open_support_forum_in_new_page' ) );
|
2881 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2882 |
|
2883 |
self::$_statics_loaded = true;
|
2884 |
}
|
@@ -3475,7 +3898,10 @@
|
|
3475 |
$key = fs_strip_url_protocol( get_site_url( $blog_id ) );
|
3476 |
|
3477 |
$secure_auth = SECURE_AUTH_KEY;
|
3478 |
-
if ( empty( $secure_auth ) ||
|
|
|
|
|
|
|
3479 |
// Protect against default auth key.
|
3480 |
$secure_auth = md5( microtime() );
|
3481 |
}
|
@@ -4372,9 +4798,31 @@
|
|
4372 |
|
4373 |
return;
|
4374 |
} else {
|
4375 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4376 |
// If parent plugin activated, automatically install add-on for the user.
|
4377 |
-
$this->_activate_addon_account(
|
|
|
|
|
|
|
|
|
|
|
4378 |
} else if ( ! $this->_parent->is_registered() && $this->is_registered() ) {
|
4379 |
// If add-on activated and parent not, automatically install parent for the user.
|
4380 |
$this->activate_parent_account( $this->_parent );
|
@@ -4480,14 +4928,18 @@
|
|
4480 |
private function should_use_freemius_updater_and_dialog() {
|
4481 |
return (
|
4482 |
/**
|
4483 |
-
*
|
4484 |
-
*
|
4485 |
-
*
|
4486 |
-
* .org
|
|
|
4487 |
*/
|
4488 |
-
(
|
4489 |
-
|
4490 |
-
|
|
|
|
|
|
|
4491 |
);
|
4492 |
}
|
4493 |
|
@@ -4943,6 +5395,7 @@
|
|
4943 |
'premium_suffix' => $premium_suffix,
|
4944 |
'is_live' => $this->get_bool_option( $plugin_info, 'is_live', true ),
|
4945 |
'affiliate_moderation' => $this->get_option( $plugin_info, 'has_affiliation' ),
|
|
|
4946 |
) );
|
4947 |
|
4948 |
if ( $plugin->is_updated() ) {
|
@@ -4952,6 +5405,21 @@
|
|
4952 |
// Set the secret key after storing the plugin, we don't want to store the key in the storage.
|
4953 |
$this->_plugin->secret_key = $secret_key;
|
4954 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4955 |
if ( ! isset( $plugin_info['menu'] ) ) {
|
4956 |
$plugin_info['menu'] = array();
|
4957 |
|
@@ -6066,7 +6534,7 @@
|
|
6066 |
}
|
6067 |
|
6068 |
if ( is_multisite() ) {
|
6069 |
-
$this->switch_to_blog( $current_blog_id );
|
6070 |
|
6071 |
$this->do_action( "after_{$name}_cron_multisite" );
|
6072 |
}
|
@@ -6146,6 +6614,8 @@
|
|
6146 |
*/
|
6147 |
function _sync_cron_method( array $blog_ids, $current_blog_id = null ) {
|
6148 |
if ( $this->is_registered() ) {
|
|
|
|
|
6149 |
if ( $this->has_paid_plan() ) {
|
6150 |
// Initiate background plan sync.
|
6151 |
$this->_sync_license( true, false, $current_blog_id );
|
@@ -6486,10 +6956,10 @@
|
|
6486 |
* @author Leo Fajardo (@leorw)
|
6487 |
* @since 1.2.2
|
6488 |
*/
|
6489 |
-
if ( $this->is_theme()
|
6490 |
-
|
6491 |
-
|
6492 |
-
|
6493 |
) {
|
6494 |
if ( $this->is_only_premium() ) {
|
6495 |
$this->activate_previous_theme();
|
@@ -6804,7 +7274,7 @@
|
|
6804 |
foreach ( $plans_ids_to_keep as $plan_id ) {
|
6805 |
$plan = self::_get_plan_by_id( $plan_id );
|
6806 |
if ( is_object( $plan ) ) {
|
6807 |
-
$plans_to_keep[] = $plan;
|
6808 |
}
|
6809 |
}
|
6810 |
}
|
@@ -6973,44 +7443,48 @@
|
|
6973 |
// Clear API cache on activation.
|
6974 |
FS_Api::clear_cache();
|
6975 |
|
6976 |
-
$is_premium_version_activation =
|
|
|
|
|
6977 |
|
6978 |
$this->_logger->info( 'Activating ' . ( $is_premium_version_activation ? 'premium' : 'free' ) . ' plugin version.' );
|
6979 |
|
6980 |
-
|
6981 |
-
|
6982 |
-
|
6983 |
-
|
6984 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6985 |
|
6986 |
-
if ( ! $this->_is_network_active ) {
|
6987 |
/**
|
6988 |
-
*
|
6989 |
-
* _is_network_active will be set to false even if it's a network level
|
6990 |
-
* activation. So we need to fix that by looking at the is_network_admin() value.
|
6991 |
*
|
6992 |
-
*
|
|
|
|
|
|
|
|
|
6993 |
*/
|
6994 |
-
$
|
6995 |
-
$
|
6996 |
-
|
6997 |
-
$this->is_plugin() &&
|
6998 |
-
fs_is_network_admin()
|
6999 |
-
);
|
7000 |
-
}
|
7001 |
-
|
7002 |
-
/**
|
7003 |
-
* If the other module version is activate, deactivate it.
|
7004 |
-
*
|
7005 |
-
* is_plugin_active() checks if the plugin active on the site or the network level
|
7006 |
-
* and deactivate_plugins() deactivates the plugin whether its activated on the site
|
7007 |
-
* or network level.
|
7008 |
-
*
|
7009 |
-
* @author Leo Fajardo (@leorw)
|
7010 |
-
* @since 1.2.2
|
7011 |
-
*/
|
7012 |
-
if ( is_plugin_active( $other_version_basename ) ) {
|
7013 |
-
deactivate_plugins( $other_version_basename );
|
7014 |
}
|
7015 |
|
7016 |
if ( $this->is_registered() ) {
|
@@ -7060,14 +7534,41 @@
|
|
7060 |
}
|
7061 |
}
|
7062 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7063 |
if (
|
7064 |
$is_premium_version_activation &&
|
7065 |
(
|
7066 |
( ! $this->is_registered() && $this->is_anonymous() ) ||
|
7067 |
(
|
7068 |
$this->is_registered() &&
|
7069 |
-
! $
|
7070 |
-
! $this->has_features_enabled_license()
|
7071 |
)
|
7072 |
)
|
7073 |
) {
|
@@ -7109,6 +7610,194 @@
|
|
7109 |
$this->_storage->was_plugin_loaded = true;
|
7110 |
}
|
7111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7112 |
/**
|
7113 |
* Delete account.
|
7114 |
*
|
@@ -7166,6 +7855,7 @@
|
|
7166 |
|
7167 |
// Clear all storage data.
|
7168 |
$this->_storage->clear_all( true, array(
|
|
|
7169 |
'connectivity_test',
|
7170 |
'is_on',
|
7171 |
), false );
|
@@ -7521,7 +8211,7 @@
|
|
7521 |
get_current_blog_id() == $network_or_blog_id ||
|
7522 |
( true === $network_or_blog_id && fs_is_network_admin() )
|
7523 |
) {
|
7524 |
-
|
7525 |
}
|
7526 |
}
|
7527 |
|
@@ -7985,16 +8675,18 @@
|
|
7985 |
* @author Vova Feldman (@svovaf)
|
7986 |
* @since 1.1.2
|
7987 |
*
|
7988 |
-
* @param string[]
|
7989 |
-
* @param bool $include_plugins
|
7990 |
-
* @param bool $include_themes
|
|
|
7991 |
*
|
7992 |
* @return array
|
7993 |
*/
|
7994 |
private function get_install_data_for_api(
|
7995 |
array $override,
|
7996 |
$include_plugins = true,
|
7997 |
-
$include_themes = true
|
|
|
7998 |
) {
|
7999 |
if ( ! defined( 'WP_FS__TRACK_PLUGINS' ) || false !== WP_FS__TRACK_PLUGINS ) {
|
8000 |
/**
|
@@ -8022,13 +8714,18 @@
|
|
8022 |
|
8023 |
$versions = $this->get_versions();
|
8024 |
|
8025 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8026 |
'version' => $this->get_plugin_version(),
|
8027 |
'is_premium' => $this->is_premium(),
|
8028 |
-
'language' => get_bloginfo( 'language' ),
|
8029 |
-
'charset' => get_bloginfo( 'charset' ),
|
8030 |
-
'title' => get_bloginfo( 'name' ),
|
8031 |
-
'url' => get_site_url(),
|
8032 |
// Special params.
|
8033 |
'is_active' => true,
|
8034 |
'is_disconnected' => $this->is_tracking_prohibited(),
|
@@ -8796,6 +9493,18 @@
|
|
8796 |
return $this->_plugin->id;
|
8797 |
}
|
8798 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8799 |
/**
|
8800 |
* @author Vova Feldman (@svovaf)
|
8801 |
* @since 1.2.1.5
|
@@ -9539,6 +10248,176 @@
|
|
9539 |
return false;
|
9540 |
}
|
9541 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9542 |
/**
|
9543 |
* @author Vova Feldman (@svovaf)
|
9544 |
* @since 2.0.0
|
@@ -10017,7 +10896,7 @@
|
|
10017 |
* @return number[]
|
10018 |
*/
|
10019 |
private function get_plans_ids_associated_with_installs() {
|
10020 |
-
if ( !
|
10021 |
if ( ! is_object( $this->_site ) ||
|
10022 |
! FS_Plugin_Plan::is_valid_id( $this->_site->plan_id )
|
10023 |
) {
|
@@ -10152,24 +11031,11 @@
|
|
10152 |
$all_licenses = $this->get_user_licenses( $this->_user->id );
|
10153 |
}
|
10154 |
|
10155 |
-
$foreign_licenses =
|
10156 |
-
'ids' => array(),
|
10157 |
-
'license_keys' => array()
|
10158 |
-
);
|
10159 |
|
10160 |
$all_licenses_map = array();
|
10161 |
foreach ( $all_licenses as $license ) {
|
10162 |
$all_licenses_map[ $license->id ] = true;
|
10163 |
-
if ( $license->user_id == $this->_user->id || $license->id == $site_license_id ) {
|
10164 |
-
continue;
|
10165 |
-
}
|
10166 |
-
|
10167 |
-
$foreign_licenses['ids'][] = $license->id;
|
10168 |
-
$foreign_licenses['license_keys'][] = $license->secret_key;
|
10169 |
-
}
|
10170 |
-
|
10171 |
-
if ( empty( $foreign_licenses['ids'] ) ) {
|
10172 |
-
$foreign_licenses = array();
|
10173 |
}
|
10174 |
|
10175 |
$licenses = $this->_fetch_licenses( false, $site_license_id, $foreign_licenses, $blog_id );
|
@@ -10901,7 +11767,7 @@
|
|
10901 |
return true;
|
10902 |
}
|
10903 |
|
10904 |
-
return ( 1 === count( $this->_plans ) );
|
10905 |
}
|
10906 |
|
10907 |
/**
|
@@ -11025,11 +11891,13 @@
|
|
11025 |
* @since 2.2.1
|
11026 |
*
|
11027 |
* @param bool $is_license_deactivation
|
|
|
|
|
11028 |
*/
|
11029 |
-
function
|
11030 |
if ( fs_is_network_admin() ) {
|
11031 |
// Subscription cancellation dialog box is currently not supported for multisite networks.
|
11032 |
-
return;
|
11033 |
}
|
11034 |
|
11035 |
$license = $this->_get_license();
|
@@ -11044,7 +11912,7 @@
|
|
11044 |
$license->is_lifetime() ||
|
11045 |
( ! $license->is_single_site() && $license->activated > 1 )
|
11046 |
) {
|
11047 |
-
return;
|
11048 |
}
|
11049 |
|
11050 |
/**
|
@@ -11052,17 +11920,15 @@
|
|
11052 |
*/
|
11053 |
$subscription = $this->_get_subscription( $license->id );
|
11054 |
if ( ! is_object( $subscription ) || ! $subscription->is_active() ) {
|
11055 |
-
return;
|
11056 |
}
|
11057 |
|
11058 |
-
|
11059 |
'id' => $this->_module_id,
|
11060 |
'license' => $license,
|
11061 |
'has_trial' => $this->is_paid_trial(),
|
11062 |
'is_license_deactivation' => $is_license_deactivation,
|
11063 |
);
|
11064 |
-
|
11065 |
-
fs_require_template( 'forms/subscription-cancellation.php', $vars );
|
11066 |
}
|
11067 |
|
11068 |
/**
|
@@ -11127,10 +11993,17 @@
|
|
11127 |
|
11128 |
// Add license activation link and AJAX request handler.
|
11129 |
if ( self::is_plugins_page() ) {
|
11130 |
-
|
11131 |
-
|
11132 |
-
|
11133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11134 |
}
|
11135 |
|
11136 |
// Add license activation AJAX callback.
|
@@ -11161,34 +12034,173 @@
|
|
11161 |
|
11162 |
/**
|
11163 |
* @author Leo Fajardo (@leorw)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11164 |
*
|
|
|
11165 |
* @since 1.1.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11166 |
* @since 2.0.0 When a super-admin that hasn't connected before is network activating a license and excluding some of the sites for the license activation, go over the unselected sites in the network and if a site is not connected, skipped, nor delegated, if it's a freemium product then just skip the connection for the site, if it's a premium only product, delegate the connection and license activation to the site admin (Vova Feldman @svovaf).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11167 |
*/
|
11168 |
-
function
|
|
|
|
|
|
|
|
|
|
|
|
|
11169 |
$this->_logger->entrance();
|
11170 |
-
|
11171 |
-
$this->check_ajax_referer( 'activate_license' );
|
11172 |
|
11173 |
-
$license_key = trim(
|
11174 |
|
11175 |
-
if (
|
11176 |
-
|
|
|
11177 |
}
|
11178 |
|
11179 |
-
$
|
11180 |
-
$fs = ( $plugin_id == $this->_module_id ) ?
|
11181 |
$this :
|
11182 |
$this->get_addon_instance( $plugin_id );
|
11183 |
|
11184 |
$error = false;
|
11185 |
$next_page = false;
|
11186 |
|
11187 |
-
$sites = fs_is_network_admin() ?
|
11188 |
-
fs_request_get( 'sites', array(), 'post' ) :
|
11189 |
-
array();
|
11190 |
-
|
11191 |
-
$blog_id = fs_request_get( 'blog_id' );
|
11192 |
$has_valid_blog_id = is_numeric( $blog_id );
|
11193 |
|
11194 |
if ( $fs->is_registered() ) {
|
@@ -11278,7 +12290,7 @@
|
|
11278 |
false,
|
11279 |
false,
|
11280 |
false,
|
11281 |
-
|
11282 |
$sites
|
11283 |
);
|
11284 |
|
@@ -11332,7 +12344,7 @@
|
|
11332 |
}
|
11333 |
|
11334 |
if ( ! empty( $pending_sites ) ) {
|
11335 |
-
if ( $this->is_freemium() ) {
|
11336 |
$this->skip_connection( $pending_sites );
|
11337 |
} else {
|
11338 |
$this->delegate_connection( $pending_sites );
|
@@ -11351,14 +12363,24 @@
|
|
11351 |
);
|
11352 |
|
11353 |
if ( false !== $error ) {
|
11354 |
-
$result['error'] = $error;
|
11355 |
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11356 |
$result['next_page'] = $next_page;
|
11357 |
}
|
11358 |
|
11359 |
-
|
11360 |
-
|
11361 |
-
exit;
|
11362 |
}
|
11363 |
|
11364 |
/**
|
@@ -11393,8 +12415,12 @@
|
|
11393 |
$total_sites_to_delegate = count( $sites_by_action['delegate'] );
|
11394 |
|
11395 |
$next_page = '';
|
|
|
|
|
|
|
11396 |
if ( $total_sites === $total_sites_to_delegate &&
|
11397 |
-
|
|
|
11398 |
) {
|
11399 |
$this->delegate_connection();
|
11400 |
} else {
|
@@ -11406,7 +12432,19 @@
|
|
11406 |
$this->skip_connection( $sites_by_action['skip'] );
|
11407 |
}
|
11408 |
|
11409 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11410 |
if ( ! $fs->is_registered() || ! $this->_is_network_active ) {
|
11411 |
$next_page = $fs->opt_in(
|
11412 |
false,
|
@@ -11993,11 +13031,11 @@
|
|
11993 |
$params['trial'] = 'true';
|
11994 |
}
|
11995 |
|
11996 |
-
|
11997 |
-
|
11998 |
-
|
11999 |
|
12000 |
-
return $this->
|
12001 |
}
|
12002 |
|
12003 |
/**
|
@@ -12006,16 +13044,18 @@
|
|
12006 |
* @author Vova Feldman (@svovaf)
|
12007 |
* @since 1.0.6
|
12008 |
*
|
12009 |
-
* @param string
|
12010 |
-
* @param bool
|
12011 |
-
* @param array
|
|
|
12012 |
*
|
12013 |
* @return string
|
12014 |
*/
|
12015 |
function checkout_url(
|
12016 |
$billing_cycle = WP_FS__PERIOD_ANNUALLY,
|
12017 |
$is_trial = false,
|
12018 |
-
$extra = array()
|
|
|
12019 |
) {
|
12020 |
$this->_logger->entrance();
|
12021 |
|
@@ -12033,7 +13073,7 @@
|
|
12033 |
*/
|
12034 |
$params = array_merge( $params, $extra );
|
12035 |
|
12036 |
-
return $this->_get_admin_page_url( 'pricing', $params );
|
12037 |
}
|
12038 |
|
12039 |
/**
|
@@ -12042,10 +13082,11 @@
|
|
12042 |
* @author Vova Feldman (@svovaf)
|
12043 |
* @since 1.1.7
|
12044 |
*
|
12045 |
-
* @param number
|
12046 |
-
* @param number
|
12047 |
-
* @param string
|
12048 |
-
* @param bool
|
|
|
12049 |
*
|
12050 |
* @return string
|
12051 |
*/
|
@@ -12053,12 +13094,13 @@
|
|
12053 |
$addon_id,
|
12054 |
$pricing_id,
|
12055 |
$billing_cycle = WP_FS__PERIOD_ANNUALLY,
|
12056 |
-
$is_trial = false
|
|
|
12057 |
) {
|
12058 |
return $this->checkout_url( $billing_cycle, $is_trial, array(
|
12059 |
'plugin_id' => $addon_id,
|
12060 |
'pricing_id' => $pricing_id,
|
12061 |
-
) );
|
12062 |
}
|
12063 |
|
12064 |
#endregion
|
@@ -12598,6 +13640,10 @@
|
|
12598 |
* @return array Active & public sites collection.
|
12599 |
*/
|
12600 |
static function get_sites() {
|
|
|
|
|
|
|
|
|
12601 |
/**
|
12602 |
* For consistency with get_blog_list() which only return active public sites.
|
12603 |
*
|
@@ -12769,7 +13815,7 @@
|
|
12769 |
* 'blog_id' => string The associated blog ID.
|
12770 |
* }
|
12771 |
*/
|
12772 |
-
|
12773 |
$sites = self::get_sites();
|
12774 |
|
12775 |
foreach ( $sites as $site ) {
|
@@ -13445,6 +14491,18 @@
|
|
13445 |
) );
|
13446 |
}
|
13447 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13448 |
/* Logger
|
13449 |
------------------------------------------------------------------------------------------------------------------*/
|
13450 |
/**
|
@@ -13670,8 +14728,9 @@
|
|
13670 |
$this->get_install_by_blog_id();
|
13671 |
|
13672 |
if ( fs_is_network_admin() &&
|
13673 |
-
|
13674 |
-
|
|
|
13675 |
) {
|
13676 |
$first_install = $this->find_first_install();
|
13677 |
|
@@ -13850,6 +14909,47 @@
|
|
13850 |
return $versions;
|
13851 |
}
|
13852 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13853 |
/**
|
13854 |
* @author Vova Feldman (@svovaf)
|
13855 |
* @since 1.1.7.4
|
@@ -13895,18 +14995,7 @@
|
|
13895 |
|
13896 |
if ( true === $network_level_or_blog_id ) {
|
13897 |
if ( ! isset( $override_with['sites'] ) ) {
|
13898 |
-
$params['sites'] =
|
13899 |
-
|
13900 |
-
$sites = self::get_sites();
|
13901 |
-
|
13902 |
-
foreach ( $sites as $site ) {
|
13903 |
-
$blog_id = self::get_site_blog_id( $site );
|
13904 |
-
if ( ! $this->is_site_delegated_connection( $blog_id ) &&
|
13905 |
-
! $this->is_installed_on_site( $blog_id )
|
13906 |
-
) {
|
13907 |
-
$params['sites'][] = $this->get_site_info( $site );
|
13908 |
-
}
|
13909 |
-
}
|
13910 |
}
|
13911 |
} else {
|
13912 |
$site = is_numeric( $network_level_or_blog_id ) ?
|
@@ -14266,71 +15355,10 @@
|
|
14266 |
// If Freemius was OFF before, turn it on.
|
14267 |
$this->turn_on();
|
14268 |
|
14269 |
-
|
14270 |
-
$
|
14271 |
-
|
14272 |
-
|
14273 |
-
} else {
|
14274 |
-
$this->_store_user();
|
14275 |
-
|
14276 |
-
// Map site addresses to their blog IDs.
|
14277 |
-
$address_to_blog_map = $this->get_address_to_blog_map();
|
14278 |
-
|
14279 |
-
$first_blog_id = null;
|
14280 |
-
$blog_2_install_map = array();
|
14281 |
-
foreach ( $installs as $install ) {
|
14282 |
-
$address = trailingslashit( fs_strip_url_protocol( $install->url ) );
|
14283 |
-
$blog_id = $address_to_blog_map[ $address ];
|
14284 |
-
|
14285 |
-
$this->_store_site( true, $blog_id, $install );
|
14286 |
-
|
14287 |
-
if ( is_null( $first_blog_id ) ) {
|
14288 |
-
$first_blog_id = $blog_id;
|
14289 |
-
}
|
14290 |
-
|
14291 |
-
$blog_2_install_map[ $blog_id ] = $install;
|
14292 |
-
}
|
14293 |
-
|
14294 |
-
if ( ! FS_User::is_valid_id( $this->_storage->network_user_id ) ||
|
14295 |
-
! is_object( self::_get_user_by_id( $this->_storage->network_user_id ) )
|
14296 |
-
) {
|
14297 |
-
// Store network user.
|
14298 |
-
$this->_storage->network_user_id = $this->_user->id;
|
14299 |
-
}
|
14300 |
-
|
14301 |
-
if ( ! FS_Site::is_valid_id( $this->_storage->network_install_blog_id ) ) {
|
14302 |
-
$this->_storage->network_install_blog_id = $first_blog_id;
|
14303 |
-
}
|
14304 |
-
|
14305 |
-
if ( count( $installs ) === count( $address_to_blog_map ) ) {
|
14306 |
-
// Super-admin opted-in for all sites in the network.
|
14307 |
-
$this->_storage->is_network_connected = true;
|
14308 |
-
}
|
14309 |
-
|
14310 |
-
$this->_store_licenses( false );
|
14311 |
-
|
14312 |
-
self::$_accounts->store();
|
14313 |
-
|
14314 |
-
// Don't sync the installs data on network upgrade
|
14315 |
-
if ( ! $this->network_upgrade_mode_completed() ) {
|
14316 |
-
$this->send_installs_update();
|
14317 |
-
}
|
14318 |
-
|
14319 |
-
// Switch install context back to the first install.
|
14320 |
-
$this->_site = $first_install;
|
14321 |
-
|
14322 |
-
$current_blog = get_current_blog_id();
|
14323 |
-
|
14324 |
-
foreach ( $blog_2_install_map as $blog_id => $install ) {
|
14325 |
-
$this->switch_to_blog( $blog_id );
|
14326 |
-
|
14327 |
-
$this->do_action( 'after_account_connection', $user, $install );
|
14328 |
-
}
|
14329 |
-
|
14330 |
-
$this->switch_to_blog( $current_blog );
|
14331 |
-
|
14332 |
-
$this->do_action( 'after_network_account_connection', $user, $blog_2_install_map );
|
14333 |
-
}
|
14334 |
|
14335 |
if ( is_numeric( $first_install->license_id ) ) {
|
14336 |
$this->_license = $this->_get_license_by_id( $first_install->license_id );
|
@@ -14975,27 +16003,63 @@
|
|
14975 |
* @author Vova Feldman (@svovaf)
|
14976 |
* @since 1.0.6
|
14977 |
*
|
14978 |
-
* @param Freemius
|
|
|
14979 |
*/
|
14980 |
-
private function _activate_addon_account( Freemius $parent_fs ) {
|
14981 |
if ( $this->is_registered() ) {
|
14982 |
// Already activated.
|
14983 |
return;
|
14984 |
}
|
14985 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14986 |
// Activate add-on with parent plugin credentials.
|
14987 |
-
$
|
14988 |
"/addons/{$this->_plugin->id}/installs.json",
|
14989 |
'post',
|
14990 |
-
$
|
14991 |
-
'uid' => $this->get_anonymous_id(),
|
14992 |
-
), false, false )
|
14993 |
);
|
14994 |
|
14995 |
-
if (
|
|
|
|
|
|
|
|
|
14996 |
$this->_admin_notices->add(
|
14997 |
sprintf( $this->get_text_inline( 'Couldn\'t activate %s.', 'could-not-activate-x' ), $this->get_plugin_name() ) . ' ' .
|
14998 |
-
$this->get_text_inline( 'Please contact us with the following message:', 'contact-us-with-error-message' ) . ' ' . '<b>' . $
|
14999 |
$this->get_text_x_inline( 'Oops', 'exclamation', 'oops' ) . '...',
|
15000 |
'error'
|
15001 |
);
|
@@ -15003,27 +16067,131 @@
|
|
15003 |
return;
|
15004 |
}
|
15005 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15006 |
// Get user information based on parent's plugin.
|
15007 |
$user = $parent_fs->get_user();
|
15008 |
|
15009 |
// First of all, set site and user info - otherwise we won't
|
15010 |
// be able to invoke API calls.
|
15011 |
-
$this->_site =
|
15012 |
$this->_user = $user;
|
15013 |
|
15014 |
// Sync add-on plans.
|
15015 |
$this->_sync_plans();
|
15016 |
|
15017 |
-
|
15018 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|