Version Description
- [Enhancement] Better compatibility with external lazy loading scripts
Download this release
Release Info
Developer | GreenTreeLabs |
Plugin | Image Photo Gallery Final Tiles Grid |
Version | 3.3.46 |
Comparing to | |
See all releases |
Code changes from version 3.3.43 to 3.3.46
- FinalTilesGalleryLite.php +94 -111
- admin/include/edit-gallery.php +33 -9
- admin/include/fields.php +2 -2
- admin/scripts/final-tiles-gallery-admin.js +7 -3
- freemius/assets/css/admin/account.css +1 -1
- freemius/assets/css/admin/affiliation.css +1 -1
- freemius/assets/css/admin/connect.css +1 -1
- freemius/assets/css/admin/dialog-boxes.css +1 -1
- freemius/assets/css/admin/gdpr-optin-notice.css +1 -0
- freemius/assets/css/common.css +0 -1
- freemius/assets/img/final-tiles-grid-gallery-lite.jpg +0 -0
- freemius/assets/img/final-tiles-grid-gallery-lite.png +0 -0
- freemius/assets/scss/_colors.scss +3 -0
- freemius/assets/scss/admin/_gdpr-consent.scss +81 -0
- freemius/assets/scss/admin/_license-activation.scss +40 -0
- freemius/assets/scss/admin/_modal-common.scss +8 -0
- freemius/assets/scss/admin/_multisite-options.scss +40 -0
- freemius/assets/scss/admin/_tooltip.scss +66 -0
- freemius/assets/scss/admin/account.scss +51 -5
- freemius/assets/scss/admin/connect.scss +28 -0
- freemius/assets/scss/admin/dialog-boxes.scss +1 -0
- freemius/assets/scss/admin/gdpr-optin-notice.scss +17 -0
- freemius/composer.json +1 -1
- freemius/config.php +382 -325
- freemius/includes/class-freemius-abstract.php +1 -1
- freemius/includes/class-freemius.php +19865 -5268
FinalTilesGalleryLite.php
CHANGED
@@ -5,15 +5,34 @@
|
|
5 |
* Plugin URI: https://www.final-tiles-gallery.com
|
6 |
* Description: Wordpress Plugin for creating responsive image galleries. By: GreenTreeLabs
|
7 |
* Author: Green Tree Labs
|
8 |
-
* Version: 3.3.
|
9 |
* Author URI: https://www.greentreelabs.net
|
10 |
*
|
11 |
* @fs_premium_only /lightbox-pro/
|
12 |
*
|
13 |
*/
|
14 |
-
define( "FTGVERSION", "3.3.
|
15 |
/*
|
16 |
Changelog:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
3.3.37
|
18 |
PhotoBlocks banners
|
19 |
3.3.36
|
@@ -346,6 +365,7 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
346 |
'captionOpacity' => 80,
|
347 |
'captionPosition' => 'inside',
|
348 |
'captionVerticalAlignment' => 'middle',
|
|
|
349 |
'columns' => 4,
|
350 |
'columnsPhoneLandscape' => 3,
|
351 |
'columnsPhonePortrait' => 2,
|
@@ -381,6 +401,8 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
381 |
'lazyLoad' => false,
|
382 |
'lightbox' => 'lightbox2',
|
383 |
'lightboxImageSize' => 'large',
|
|
|
|
|
384 |
'loadedDuration' => 500,
|
385 |
'loadedEasing' => 'ease-out',
|
386 |
'loadedHSlide' => 0,
|
@@ -427,7 +449,6 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
427 |
$this->setupFields();
|
428 |
$this->define_db_tables();
|
429 |
$this->FinalTilesdb = $this->create_db_conn();
|
430 |
-
register_activation_hook( __FILE__, array( $this, 'activation' ) );
|
431 |
add_filter( 'widget_text', 'do_shortcode' );
|
432 |
add_action( 'plugins_loaded', array( $this, 'create_textdomain' ) );
|
433 |
add_action( 'wp_enqueue_scripts', array( $this, 'add_gallery_scripts' ) );
|
@@ -461,12 +482,10 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
461 |
);
|
462 |
add_action( 'wp_ajax_load_chunk', array( $this, 'load_chunk' ) );
|
463 |
add_action( 'wp_ajax_nopriv_load_chunk', array( $this, 'load_chunk' ) );
|
464 |
-
add_action( 'admin_notices', array( $this, 'photoblocks_notice' ) );
|
465 |
|
466 |
if ( ftg_fs()->is_not_paying() ) {
|
467 |
add_action( 'admin_notices', array( $this, 'review' ) );
|
468 |
add_action( 'wp_ajax_ftg_dismiss_review', array( $this, 'dismiss_review' ) );
|
469 |
-
add_action( 'wp_ajax_ftg_dismiss_photoblocks', array( $this, 'dismiss_photoblocks' ) );
|
470 |
add_filter(
|
471 |
'admin_footer_text',
|
472 |
array( $this, 'admin_footer' ),
|
@@ -478,68 +497,6 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
478 |
$this->resetFields();
|
479 |
}
|
480 |
|
481 |
-
public function photoblocks_notice()
|
482 |
-
{
|
483 |
-
// Verify that we can do a check for reviews.
|
484 |
-
$review = get_option( 'ftg_photoblocks' );
|
485 |
-
$time = time();
|
486 |
-
$load = false;
|
487 |
-
$there_was_review = false;
|
488 |
-
|
489 |
-
if ( !$review ) {
|
490 |
-
$review = array(
|
491 |
-
'time' => $time,
|
492 |
-
'dismissed' => false,
|
493 |
-
);
|
494 |
-
$load = true;
|
495 |
-
$there_was_review = false;
|
496 |
-
} else {
|
497 |
-
// Check if it has been dismissed or not.
|
498 |
-
if ( isset( $review['dismissed'] ) && !$review['dismissed'] && (isset( $review['time'] ) && $review['time'] + DAY_IN_SECONDS <= $time) ) {
|
499 |
-
$load = true;
|
500 |
-
}
|
501 |
-
}
|
502 |
-
|
503 |
-
// If we cannot load, return early.
|
504 |
-
if ( !$load ) {
|
505 |
-
return;
|
506 |
-
}
|
507 |
-
// We have a candidate! Output a review message.
|
508 |
-
?>
|
509 |
-
<div class="notice notice-info is-dismissible ftg-photoblocks-notice">
|
510 |
-
<p><?php
|
511 |
-
_e( 'We released a new gallery plugin, have a look at <strong><a href="https://wordpress.org/plugins/photoblocks-grid-gallery/">PhotoBlocks Grid Gallery</a></strong>!', 'final-tiles-gallery-lite' );
|
512 |
-
?></p>
|
513 |
-
<p>
|
514 |
-
<a style="margin-right:10px;" href="https://wordpress.org/plugins/photoblocks-grid-gallery/" class="ftg-dismiss-photoblocks-notice ftg-photoblocks-out" target="_blank" rel="noopener"><?php
|
515 |
-
_e( 'Ok', 'final-tiles-gallery-lite' );
|
516 |
-
?></a>
|
517 |
-
<a style="margin-right:10px;" href="#" class="ftg-dismiss-photoblocks-notice" rel="noopener"><?php
|
518 |
-
_e( 'Maybe later', 'final-tiles-gallery' );
|
519 |
-
?></a>
|
520 |
-
<a href="#" class="ftg-dismiss-photoblocks-notice" rel="noopener"><?php
|
521 |
-
_e( 'I already did', 'final-tiles-gallery' );
|
522 |
-
?></a>
|
523 |
-
</p>
|
524 |
-
</div>
|
525 |
-
<script type="text/javascript">
|
526 |
-
jQuery(document).ready( function($) {
|
527 |
-
$(document).on('click', '.ftg-dismiss-photoblocks-notice, .ftg-photoblocks-notice button', function( event ) {
|
528 |
-
if ( ! $(this).hasClass('ftg-photoblocks-out') ) {
|
529 |
-
event.preventDefault();
|
530 |
-
}
|
531 |
-
|
532 |
-
$.post( ajaxurl, {
|
533 |
-
action: 'ftg_dismiss_photoblocks'
|
534 |
-
});
|
535 |
-
|
536 |
-
$('.ftg-photoblocks-notice').remove();
|
537 |
-
});
|
538 |
-
});
|
539 |
-
</script>
|
540 |
-
<?php
|
541 |
-
}
|
542 |
-
|
543 |
public function review()
|
544 |
{
|
545 |
// Verify that we can do a check for reviews.
|
@@ -651,18 +608,6 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
651 |
die;
|
652 |
}
|
653 |
|
654 |
-
public function dismiss_photoblocks()
|
655 |
-
{
|
656 |
-
$review = get_option( 'ftg_photoblocks' );
|
657 |
-
if ( !$review ) {
|
658 |
-
$review = array();
|
659 |
-
}
|
660 |
-
$review['time'] = time();
|
661 |
-
$review['dismissed'] = true;
|
662 |
-
update_option( 'ftg_photoblocks', $review );
|
663 |
-
die;
|
664 |
-
}
|
665 |
-
|
666 |
public function admin_footer( $text )
|
667 |
{
|
668 |
global $current_screen ;
|
@@ -716,16 +661,16 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
716 |
return $links;
|
717 |
}
|
718 |
|
719 |
-
public function create_db_tables()
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
|
725 |
-
|
726 |
-
|
727 |
-
}
|
728 |
|
|
|
729 |
//Define textdomain
|
730 |
public function create_textdomain()
|
731 |
{
|
@@ -748,7 +693,7 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
748 |
}
|
749 |
|
750 |
//Define DB tables
|
751 |
-
public function define_db_tables()
|
752 |
{
|
753 |
global $wpdb ;
|
754 |
$wpdb->FinalTilesGalleries = $wpdb->prefix . 'FinalTiles_gallery';
|
@@ -904,18 +849,19 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
904 |
if ( function_exists( 'wp_enqueue_media' ) ) {
|
905 |
wp_enqueue_media();
|
906 |
}
|
907 |
-
|
908 |
-
|
909 |
-
if ( !$installed_ver ) {
|
910 |
-
update_option( "FinalTiles_gallery_db_version", $ftg_db_version );
|
911 |
-
}
|
912 |
-
$this->FinalTilesdb->updateConfiguration();
|
913 |
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
}
|
918 |
|
|
|
|
|
|
|
|
|
|
|
|
|
919 |
function ftg_get_image_sizes()
|
920 |
{
|
921 |
global $_wp_additional_image_sizes ;
|
@@ -1001,18 +947,20 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
1001 |
'ftg-tutorial',
|
1002 |
array( $this, 'tutorial' )
|
1003 |
);
|
1004 |
-
$photoblocks = add_submenu_page(
|
1005 |
-
'ftg-lite-gallery-admin',
|
1006 |
-
__( 'FinalTiles Gallery >> PhotoBlocks', 'FinalTiles-gallery' ),
|
1007 |
-
__( 'PhotoBlocks', 'FinalTiles-gallery' ),
|
1008 |
-
'edit_posts',
|
1009 |
-
'ftg-photoblocks',
|
1010 |
-
array( $this, 'photoblocks' )
|
1011 |
-
);
|
1012 |
add_action( 'load-' . $tutorial, array( $this, 'gallery_admin_init' ) );
|
1013 |
add_action( 'load-' . $overview, array( $this, 'gallery_admin_init' ) );
|
1014 |
add_action( 'load-' . $add_gallery, array( $this, 'gallery_admin_init' ) );
|
1015 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1016 |
}
|
1017 |
|
1018 |
//Create Admin Pages
|
@@ -1057,6 +1005,11 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
1057 |
include "admin/photoblocks.php";
|
1058 |
}
|
1059 |
|
|
|
|
|
|
|
|
|
|
|
1060 |
private function getWooCategories()
|
1061 |
{
|
1062 |
|
@@ -1474,6 +1427,8 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
1474 |
'slug' => $slug,
|
1475 |
'description' => $galleryDescription,
|
1476 |
'lightbox' => $lightbox,
|
|
|
|
|
1477 |
'mobileLightbox' => $mobileLightbox,
|
1478 |
'lightboxImageSize' => $_POST['ftg_lightboxImageSize'],
|
1479 |
'blank' => $blank,
|
@@ -1538,6 +1493,7 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
1538 |
'imageSizeFactorPhoneLandscape' => intval( $_POST['ftg_imageSizeFactorPhoneLandscape'] ),
|
1539 |
'imageSizeFactorPhonePortrait' => intval( $_POST['ftg_imageSizeFactorPhonePortrait'] ),
|
1540 |
'imageSizeFactorCustom' => $_POST['ftg_imageSizeFactorCustom'],
|
|
|
1541 |
'columns' => intval( $_POST['ftg_columns'] ),
|
1542 |
'columnsTabletLandscape' => intval( $_POST['ftg_columnsTabletLandscape'] ),
|
1543 |
'columnsTabletPortrait' => intval( $_POST['ftg_columnsTabletPortrait'] ),
|
@@ -1783,10 +1739,37 @@ if ( class_exists( "FinalTiles_Gallery" ) ) {
|
|
1783 |
$ob_FinalTiles_Gallery = new FinalTiles_Gallery();
|
1784 |
}
|
1785 |
|
1786 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1787 |
{
|
1788 |
-
|
1789 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1790 |
}
|
1791 |
|
1792 |
-
|
5 |
* Plugin URI: https://www.final-tiles-gallery.com
|
6 |
* Description: Wordpress Plugin for creating responsive image galleries. By: GreenTreeLabs
|
7 |
* Author: Green Tree Labs
|
8 |
+
* Version: 3.3.46
|
9 |
* Author URI: https://www.greentreelabs.net
|
10 |
*
|
11 |
* @fs_premium_only /lightbox-pro/
|
12 |
*
|
13 |
*/
|
14 |
+
define( "FTGVERSION", "3.3.46" );
|
15 |
/*
|
16 |
Changelog:
|
17 |
+
3.3.46
|
18 |
+
Better compatibility with external lazy loading scripts
|
19 |
+
3.3.45
|
20 |
+
Fixed lazy loading
|
21 |
+
3.3.44
|
22 |
+
WooCommerce Fix
|
23 |
+
3.3.43
|
24 |
+
Admin UI tweaks
|
25 |
+
3.3.42
|
26 |
+
Fix: lightbox params
|
27 |
+
3.3.41
|
28 |
+
New feature: lightbox params
|
29 |
+
3.3.40
|
30 |
+
Improved performances
|
31 |
+
3.3.39
|
32 |
+
Updated LightGallery
|
33 |
+
3.3.38
|
34 |
+
Fixed Fatal error "Cannot redeclare ftg_admin_script()"
|
35 |
+
Use custom taxonomy as filters in post galleries
|
36 |
3.3.37
|
37 |
PhotoBlocks banners
|
38 |
3.3.36
|
365 |
'captionOpacity' => 80,
|
366 |
'captionPosition' => 'inside',
|
367 |
'captionVerticalAlignment' => 'middle',
|
368 |
+
'categoriesAsFilters' => 'F',
|
369 |
'columns' => 4,
|
370 |
'columnsPhoneLandscape' => 3,
|
371 |
'columnsPhonePortrait' => 2,
|
401 |
'lazyLoad' => false,
|
402 |
'lightbox' => 'lightbox2',
|
403 |
'lightboxImageSize' => 'large',
|
404 |
+
'lightboxOptions' => '',
|
405 |
+
'lightboxOptionsMobile' => '',
|
406 |
'loadedDuration' => 500,
|
407 |
'loadedEasing' => 'ease-out',
|
408 |
'loadedHSlide' => 0,
|
449 |
$this->setupFields();
|
450 |
$this->define_db_tables();
|
451 |
$this->FinalTilesdb = $this->create_db_conn();
|
|
|
452 |
add_filter( 'widget_text', 'do_shortcode' );
|
453 |
add_action( 'plugins_loaded', array( $this, 'create_textdomain' ) );
|
454 |
add_action( 'wp_enqueue_scripts', array( $this, 'add_gallery_scripts' ) );
|
482 |
);
|
483 |
add_action( 'wp_ajax_load_chunk', array( $this, 'load_chunk' ) );
|
484 |
add_action( 'wp_ajax_nopriv_load_chunk', array( $this, 'load_chunk' ) );
|
|
|
485 |
|
486 |
if ( ftg_fs()->is_not_paying() ) {
|
487 |
add_action( 'admin_notices', array( $this, 'review' ) );
|
488 |
add_action( 'wp_ajax_ftg_dismiss_review', array( $this, 'dismiss_review' ) );
|
|
|
489 |
add_filter(
|
490 |
'admin_footer_text',
|
491 |
array( $this, 'admin_footer' ),
|
497 |
$this->resetFields();
|
498 |
}
|
499 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
500 |
public function review()
|
501 |
{
|
502 |
// Verify that we can do a check for reviews.
|
608 |
die;
|
609 |
}
|
610 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
611 |
public function admin_footer( $text )
|
612 |
{
|
613 |
global $current_screen ;
|
661 |
return $links;
|
662 |
}
|
663 |
|
664 |
+
/*public function create_db_tables()
|
665 |
+
{
|
666 |
+
include_once 'lib/install-db.php';
|
667 |
+
install_db();
|
668 |
+
}
|
669 |
|
670 |
+
public function activation()
|
671 |
+
{
|
|
|
672 |
|
673 |
+
}*/
|
674 |
//Define textdomain
|
675 |
public function create_textdomain()
|
676 |
{
|
693 |
}
|
694 |
|
695 |
//Define DB tables
|
696 |
+
public static function define_db_tables()
|
697 |
{
|
698 |
global $wpdb ;
|
699 |
$wpdb->FinalTilesGalleries = $wpdb->prefix . 'FinalTiles_gallery';
|
849 |
if ( function_exists( 'wp_enqueue_media' ) ) {
|
850 |
wp_enqueue_media();
|
851 |
}
|
852 |
+
/*$ftg_db_version = '5.0';
|
853 |
+
$installed_ver = get_option("FinalTiles_gallery_db_version");
|
|
|
|
|
|
|
|
|
854 |
|
855 |
+
if (!$installed_ver) {
|
856 |
+
update_option("FinalTiles_gallery_db_version", $ftg_db_version);
|
857 |
+
}
|
|
|
858 |
|
859 |
+
$this->FinalTilesdb->updateConfiguration();
|
860 |
+
|
861 |
+
if ($installed_ver != $ftg_db_version) {
|
862 |
+
$this->create_db_tables();
|
863 |
+
update_option("FinalTiles_gallery_db_version", $ftg_db_version);
|
864 |
+
}*/
|
865 |
function ftg_get_image_sizes()
|
866 |
{
|
867 |
global $_wp_additional_image_sizes ;
|
947 |
'ftg-tutorial',
|
948 |
array( $this, 'tutorial' )
|
949 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
950 |
add_action( 'load-' . $tutorial, array( $this, 'gallery_admin_init' ) );
|
951 |
add_action( 'load-' . $overview, array( $this, 'gallery_admin_init' ) );
|
952 |
add_action( 'load-' . $add_gallery, array( $this, 'gallery_admin_init' ) );
|
953 |
+
/*if(! class_exists("PhotoBlocks"))
|
954 |
+
{
|
955 |
+
$photoblocks = add_submenu_page('ftg-lite-gallery-admin', __('FinalTiles Gallery >> PhotoBlocks', 'FinalTiles-gallery'), __('PhotoBlocks', 'FinalTiles-gallery'), 'edit_posts', 'ftg-photoblocks', array($this, 'photoblocks'));
|
956 |
+
add_action('load-' . $photoblocks, array($this, 'gallery_admin_init'));
|
957 |
+
}
|
958 |
+
|
959 |
+
if(! class_exists("EverlightBox"))
|
960 |
+
{
|
961 |
+
$everlightbox = add_submenu_page('ftg-lite-gallery-admin', __('FinalTiles Gallery >> EverlightBox', 'FinalTiles-gallery'), __('EverlightBox', 'FinalTiles-gallery'), 'edit_posts', 'ftg-everlightbox', array($this, 'everlightbox'));
|
962 |
+
add_action('load-' . $everlightbox, array($this, 'gallery_admin_init'));
|
963 |
+
}*/
|
964 |
}
|
965 |
|
966 |
//Create Admin Pages
|
1005 |
include "admin/photoblocks.php";
|
1006 |
}
|
1007 |
|
1008 |
+
public function everlightbox()
|
1009 |
+
{
|
1010 |
+
include "admin/everlightbox.php";
|
1011 |
+
}
|
1012 |
+
|
1013 |
private function getWooCategories()
|
1014 |
{
|
1015 |
|
1427 |
'slug' => $slug,
|
1428 |
'description' => $galleryDescription,
|
1429 |
'lightbox' => $lightbox,
|
1430 |
+
'lightboxOptions' => $_POST['ftg_lightboxOptions'],
|
1431 |
+
'lightboxOptionsMobile' => $_POST['lightboxOptionsMobile'],
|
1432 |
'mobileLightbox' => $mobileLightbox,
|
1433 |
'lightboxImageSize' => $_POST['ftg_lightboxImageSize'],
|
1434 |
'blank' => $blank,
|
1493 |
'imageSizeFactorPhoneLandscape' => intval( $_POST['ftg_imageSizeFactorPhoneLandscape'] ),
|
1494 |
'imageSizeFactorPhonePortrait' => intval( $_POST['ftg_imageSizeFactorPhonePortrait'] ),
|
1495 |
'imageSizeFactorCustom' => $_POST['ftg_imageSizeFactorCustom'],
|
1496 |
+
'taxonomyAsFilter' => $_POST['ftg_taxonomyAsFilter'],
|
1497 |
'columns' => intval( $_POST['ftg_columns'] ),
|
1498 |
'columnsTabletLandscape' => intval( $_POST['ftg_columnsTabletLandscape'] ),
|
1499 |
'columnsTabletPortrait' => intval( $_POST['ftg_columnsTabletPortrait'] ),
|
1739 |
$ob_FinalTiles_Gallery = new FinalTiles_Gallery();
|
1740 |
}
|
1741 |
|
1742 |
+
|
1743 |
+
if ( !function_exists( "ftg_admin_script" ) ) {
|
1744 |
+
function ftg_admin_script()
|
1745 |
+
{
|
1746 |
+
wp_register_script( 'admin-generic-ftg', plugins_url( 'admin/scripts/admin.js', __FILE__ ), array( 'jquery' ) );
|
1747 |
+
wp_enqueue_script( 'admin-generic-ftg' );
|
1748 |
+
}
|
1749 |
+
|
1750 |
+
add_action( 'admin_enqueue_scripts', 'ftg_admin_script' );
|
1751 |
+
}
|
1752 |
+
|
1753 |
+
function activate_finaltilesgallery()
|
1754 |
{
|
1755 |
+
global $wpdb ;
|
1756 |
+
include_once 'lib/install-db.php';
|
1757 |
+
FinalTiles_Gallery::define_db_tables();
|
1758 |
+
if ( !$installed_ver ) {
|
1759 |
+
update_option( "FinalTiles_gallery_db_version", $ftg_db_version );
|
1760 |
+
}
|
1761 |
+
FinalTilesdb::updateConfiguration();
|
1762 |
+
|
1763 |
+
if ( is_multisite() ) {
|
1764 |
+
foreach ( $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs}" ) as $blog_id ) {
|
1765 |
+
switch_to_blog( $blog_id );
|
1766 |
+
install_db();
|
1767 |
+
restore_current_blog();
|
1768 |
+
}
|
1769 |
+
} else {
|
1770 |
+
install_db();
|
1771 |
+
}
|
1772 |
+
|
1773 |
}
|
1774 |
|
1775 |
+
register_activation_hook( __FILE__, 'activate_finaltilesgallery' );
|
admin/include/edit-gallery.php
CHANGED
@@ -42,7 +42,7 @@ if ( !function_exists( 'ftg_p' ) ) {
|
|
42 |
}
|
43 |
|
44 |
|
45 |
-
if ( $gallery == NULL ) {
|
46 |
print "";
|
47 |
} else {
|
48 |
if ( $gallery->{$field} == $value ) {
|
@@ -54,7 +54,7 @@ if ( !function_exists( 'ftg_p' ) ) {
|
|
54 |
|
55 |
function ftg_checkFieldDisabled( $options )
|
56 |
{
|
57 |
-
if ( count( $options ) == 3 && $options[2] == "disabled" ) {
|
58 |
return "disabled";
|
59 |
}
|
60 |
return "";
|
@@ -74,7 +74,7 @@ if ( !function_exists( 'ftg_p' ) ) {
|
|
74 |
|
75 |
function ftg_printFieldPro( $options )
|
76 |
{
|
77 |
-
if ( count( $options ) == 3 && $options[2] == "disabled" ) {
|
78 |
return " (upgrade to unlock)";
|
79 |
}
|
80 |
return "";
|
@@ -289,7 +289,7 @@ foreach ( $ftg_fields as $section => $s ) {
|
|
289 |
} else {
|
290 |
?>
|
291 |
<div class="card-panel yellow lighten-3">
|
292 |
-
EverlightBox not installed. <a target="_blank"
|
293 |
</div>
|
294 |
<?php
|
295 |
}
|
@@ -676,6 +676,33 @@ ftg_sel( $gallery, "taxonomyOperator", "AND" );
|
|
676 |
?> value="AND">AND: all posts matching all the selected taxonomies</option>
|
677 |
</select>
|
678 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
679 |
<div class="row checkboxes">
|
680 |
<strong class="label"><?php
|
681 |
_e( 'Post type:', 'final-tiles-gallery' );
|
@@ -848,16 +875,13 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
848 |
</div>
|
849 |
|
850 |
<div class="row checkboxes">
|
851 |
-
<strong class="label"
|
852 |
-
print_r( $t );
|
853 |
-
?></strong>
|
854 |
<span>
|
855 |
<?php
|
856 |
$idx = 0;
|
857 |
?>
|
858 |
<?php
|
859 |
foreach ( $woo_categories as $c ) {
|
860 |
-
print_r( $c );
|
861 |
?>
|
862 |
<input id="woo-cat-<?php
|
863 |
_e( $idx );
|
@@ -1180,7 +1204,7 @@ ftg_p( $gallery, "wp_field_caption" );
|
|
1180 |
}
|
1181 |
});
|
1182 |
|
1183 |
-
<?php
|
1184 |
?>
|
1185 |
|
1186 |
})(jQuery);
|
42 |
}
|
43 |
|
44 |
|
45 |
+
if ( $gallery == NULL || !isset( $gallery->{$field} ) ) {
|
46 |
print "";
|
47 |
} else {
|
48 |
if ( $gallery->{$field} == $value ) {
|
54 |
|
55 |
function ftg_checkFieldDisabled( $options )
|
56 |
{
|
57 |
+
if ( is_array( $options ) && count( $options ) == 3 && $options[2] == "disabled" ) {
|
58 |
return "disabled";
|
59 |
}
|
60 |
return "";
|
74 |
|
75 |
function ftg_printFieldPro( $options )
|
76 |
{
|
77 |
+
if ( is_array( $options ) && count( $options ) == 3 && $options[2] == "disabled" ) {
|
78 |
return " (upgrade to unlock)";
|
79 |
}
|
80 |
return "";
|
289 |
} else {
|
290 |
?>
|
291 |
<div class="card-panel yellow lighten-3">
|
292 |
+
EverlightBox not installed. <a target="_blank" class="open-checkout" href="https://checkout.freemius.com/mode/dialog/plugin/1981/plan/2954/">Purchase</a>
|
293 |
</div>
|
294 |
<?php
|
295 |
}
|
676 |
?> value="AND">AND: all posts matching all the selected taxonomies</option>
|
677 |
</select>
|
678 |
</div>
|
679 |
+
<div class="row">
|
680 |
+
<label>Taxonomy as filter</label>
|
681 |
+
<select name="ftg_taxonomyAsFilter" class="browser-default js-ajax-loading-control">
|
682 |
+
<option></option>
|
683 |
+
<?php
|
684 |
+
foreach ( get_taxonomies( array(), "objects" ) as $taxonomy => $t ) {
|
685 |
+
?>
|
686 |
+
<?php
|
687 |
+
|
688 |
+
if ( $t->publicly_queryable ) {
|
689 |
+
?>
|
690 |
+
<option <?php
|
691 |
+
ftg_sel( $gallery, "taxonomyAsFilter", $t->label );
|
692 |
+
?> value="<?php
|
693 |
+
_e( $t->label );
|
694 |
+
?>"><?php
|
695 |
+
_e( $t->label );
|
696 |
+
?></option>
|
697 |
+
<?php
|
698 |
+
}
|
699 |
+
|
700 |
+
?>
|
701 |
+
<?php
|
702 |
+
}
|
703 |
+
?>
|
704 |
+
</select>
|
705 |
+
</div>
|
706 |
<div class="row checkboxes">
|
707 |
<strong class="label"><?php
|
708 |
_e( 'Post type:', 'final-tiles-gallery' );
|
875 |
</div>
|
876 |
|
877 |
<div class="row checkboxes">
|
878 |
+
<strong class="label"></strong>
|
|
|
|
|
879 |
<span>
|
880 |
<?php
|
881 |
$idx = 0;
|
882 |
?>
|
883 |
<?php
|
884 |
foreach ( $woo_categories as $c ) {
|
|
|
885 |
?>
|
886 |
<input id="woo-cat-<?php
|
887 |
_e( $idx );
|
1204 |
}
|
1205 |
});
|
1206 |
|
1207 |
+
<?php
|
1208 |
?>
|
1209 |
|
1210 |
})(jQuery);
|
admin/include/fields.php
CHANGED
@@ -398,7 +398,7 @@ $this->addField( "General", "compressHTML", array(
|
|
398 |
"excludeFrom" => array(),
|
399 |
) );
|
400 |
$this->addField( "Links & Lightbox", "lightbox", array(
|
401 |
-
"name" => "
|
402 |
"type" => "select",
|
403 |
"description" => "Define here what happens when user click on the images. Lightboxes with video support: EverlightBox, LightGallery, Magnific popup, Colorbox (require embed URL)); PrettyPhoto, FancyBox (require embed URL)",
|
404 |
"values" => array(
|
@@ -418,7 +418,7 @@ $this->addField( "Links & Lightbox", "lightbox", array(
|
|
418 |
"excludeFrom" => array(),
|
419 |
) );
|
420 |
$this->addField( "Links & Lightbox", "mobileLightbox", array(
|
421 |
-
"name" => "
|
422 |
"type" => "select",
|
423 |
"description" => "Define here what happens when user click on the images. Lightboxes with video support: EverlightBox, LightGallery, Magnific popup, Colorbox (require embed URL)); PrettyPhoto, FancyBox (require embed URL)",
|
424 |
"values" => array(
|
398 |
"excludeFrom" => array(),
|
399 |
) );
|
400 |
$this->addField( "Links & Lightbox", "lightbox", array(
|
401 |
+
"name" => "Links & Lightbox",
|
402 |
"type" => "select",
|
403 |
"description" => "Define here what happens when user click on the images. Lightboxes with video support: EverlightBox, LightGallery, Magnific popup, Colorbox (require embed URL)); PrettyPhoto, FancyBox (require embed URL)",
|
404 |
"values" => array(
|
418 |
"excludeFrom" => array(),
|
419 |
) );
|
420 |
$this->addField( "Links & Lightbox", "mobileLightbox", array(
|
421 |
+
"name" => "Links & Lightbox (mobile)",
|
422 |
"type" => "select",
|
423 |
"description" => "Define here what happens when user click on the images. Lightboxes with video support: EverlightBox, LightGallery, Magnific popup, Colorbox (require embed URL)); PrettyPhoto, FancyBox (require embed URL)",
|
424 |
"values" => array(
|
admin/scripts/final-tiles-gallery-admin.js
CHANGED
@@ -985,8 +985,14 @@ var FTG = function($) {
|
|
985 |
scrollTop: $("#" + target).offset().top - 28
|
986 |
}, 1000);
|
987 |
}, 500);
|
|
|
988 |
|
989 |
-
|
|
|
|
|
|
|
|
|
|
|
990 |
});
|
991 |
},
|
992 |
init: function() {
|
@@ -1183,7 +1189,5 @@ jQuery(function() {
|
|
1183 |
});
|
1184 |
FTG.init();
|
1185 |
FTGWizard.init();
|
1186 |
-
|
1187 |
-
|
1188 |
|
1189 |
});
|
985 |
scrollTop: $("#" + target).offset().top - 28
|
986 |
}, 1000);
|
987 |
}, 500);
|
988 |
+
});
|
989 |
|
990 |
+
$(".open-checkout").click(function (e) {
|
991 |
+
e.preventDefault();
|
992 |
+
var url = $(this).attr("href");
|
993 |
+
|
994 |
+
var strWindowFeatures = "menubar=no,location=no,resizable=yes,scrollbars=yes,status=yes,width=650";
|
995 |
+
window.open(url, "EverlightBox", strWindowFeatures);
|
996 |
});
|
997 |
},
|
998 |
init: function() {
|
1189 |
});
|
1190 |
FTG.init();
|
1191 |
FTGWizard.init();
|
|
|
|
|
1192 |
|
1193 |
});
|
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 .
|
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%}
|
freemius/assets/css/admin/affiliation.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@charset "UTF-8";#fs_affiliation_content_wrapper #messages{margin-top:25px}#fs_affiliation_content_wrapper h3{font-size:24px;padding:0;margin-left:0}#fs_affiliation_content_wrapper ul li{box-sizing:border-box;list-style-type:none}#fs_affiliation_content_wrapper ul li:before{content:'✓';margin-right:10px;font-weight:bold}#fs_affiliation_content_wrapper p:not(.description),#fs_affiliation_content_wrapper li,#fs_affiliation_content_wrapper label{font-size:16px !important;line-height:26px !important}#fs_affiliation_content_wrapper .button{margin-top:20px;margin-bottom:7px;line-height:35px;height:40px;font-size:16px}#fs_affiliation_content_wrapper .button#cancel_button{margin-right:5px}#fs_affiliation_content_wrapper form .input-container{margin-bottom:15px}#fs_affiliation_content_wrapper form .input-container .input-label{font-weight:bold;display:block;width:100%}#fs_affiliation_content_wrapper form .input-container.input-container-text label,#fs_affiliation_content_wrapper form .input-container.input-container-text input,#fs_affiliation_content_wrapper form .input-container.input-container-text textarea{display:block}#fs_affiliation_content_wrapper form .input-container #add_domain,#fs_affiliation_content_wrapper form .input-container .remove-domain{text-decoration:none;display:inline-block;margin-top:3px}#fs_affiliation_content_wrapper form .input-container #add_domain:focus,#fs_affiliation_content_wrapper form .input-container .remove-domain:focus{box-shadow:none}#fs_affiliation_content_wrapper form .input-container #add_domain.disabled,#fs_affiliation_content_wrapper form .input-container .remove-domain.disabled{color:#aaa;cursor:default}#fs_affiliation_content_wrapper form #extra_domains_container .description{margin-top:0;position:relative;top:-4px}#fs_affiliation_content_wrapper form #extra_domains_container .extra-domain-input-container{margin-bottom:15px}#fs_affiliation_content_wrapper form #extra_domains_container .extra-domain-input-container .domain{display:inline-block;margin-right:5px}#fs_affiliation_content_wrapper form #extra_domains_container .extra-domain-input-container .domain:last-of-type{margin-bottom:0}
|
1 |
+
@charset "UTF-8";#fs_affiliation_content_wrapper #messages{margin-top:25px}#fs_affiliation_content_wrapper h3{font-size:24px;padding:0;margin-left:0}#fs_affiliation_content_wrapper ul li{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;list-style-type:none}#fs_affiliation_content_wrapper ul li:before{content:'✓';margin-right:10px;font-weight:bold}#fs_affiliation_content_wrapper p:not(.description),#fs_affiliation_content_wrapper li,#fs_affiliation_content_wrapper label{font-size:16px !important;line-height:26px !important}#fs_affiliation_content_wrapper .button{margin-top:20px;margin-bottom:7px;line-height:35px;height:40px;font-size:16px}#fs_affiliation_content_wrapper .button#cancel_button{margin-right:5px}#fs_affiliation_content_wrapper form .input-container{margin-bottom:15px}#fs_affiliation_content_wrapper form .input-container .input-label{font-weight:bold;display:block;width:100%}#fs_affiliation_content_wrapper form .input-container.input-container-text label,#fs_affiliation_content_wrapper form .input-container.input-container-text input,#fs_affiliation_content_wrapper form .input-container.input-container-text textarea{display:block}#fs_affiliation_content_wrapper form .input-container #add_domain,#fs_affiliation_content_wrapper form .input-container .remove-domain{text-decoration:none;display:inline-block;margin-top:3px}#fs_affiliation_content_wrapper form .input-container #add_domain:focus,#fs_affiliation_content_wrapper form .input-container .remove-domain:focus{box-shadow:none}#fs_affiliation_content_wrapper form .input-container #add_domain.disabled,#fs_affiliation_content_wrapper form .input-container .remove-domain.disabled{color:#aaa;cursor:default}#fs_affiliation_content_wrapper form #extra_domains_container .description{margin-top:0;position:relative;top:-4px}#fs_affiliation_content_wrapper form #extra_domains_container .extra-domain-input-container{margin-bottom:15px}#fs_affiliation_content_wrapper form #extra_domains_container .extra-domain-input-container .domain{display:inline-block;margin-right:5px}#fs_affiliation_content_wrapper form #extra_domains_container .extra-domain-input-container .domain:last-of-type{margin-bottom:0}
|
freemius/assets/css/admin/connect.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#fs_connect{width:480px;-moz-box-shadow:0px 1px 2px rgba(0,0,0,0.3);-webkit-box-shadow:0px 1px 2px rgba(0,0,0,0.3);box-shadow:0px 1px 2px rgba(0,0,0,0.3);margin:20px 0}@media screen and (max-width: 479px){#fs_connect{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;width:auto;margin:0 0 0 -10px}}#fs_connect .fs-content{background:#fff;padding:15px 20px}#fs_connect .fs-content .fs-error{background:snow;color:#d3135a;border:1px solid #d3135a;-moz-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);text-align:center;padding:5px;margin-bottom:10px}#fs_connect .fs-content p{margin:0;padding:0;font-size:1.2em}#fs_connect .fs-license-key-container{position:relative;width:280px;margin:10px auto 0 auto}#fs_connect .fs-license-key-container input{width:100%}#fs_connect .fs-license-key-container .dashicons{position:absolute;top:5px;right:5px}#fs_connect .fs-actions{padding:10px 20px;background:#C0C7CA}#fs_connect .fs-actions .button{padding:0 10px 1px;line-height:35px;height:37px;font-size:16px;margin-bottom:0}#fs_connect .fs-actions .button .dashicons{font-size:37px;margin-left:-8px;margin-right:12px}#fs_connect .fs-actions .button.button-primary{padding-right:15px;padding-left:15px}#fs_connect .fs-actions .button.button-primary:after{content:' \279C'}#fs_connect .fs-actions .button.button-primary.fs-loading:after{content:''}#fs_connect .fs-actions .button.button-secondary{float:right}#fs_connect.fs-anonymous-disabled .fs-actions .button.button-primary{width:100%}#fs_connect .fs-permissions{padding:10px 20px;background:#FEFEFE;-moz-transition:background 0.5s ease;-o-transition:background 0.5s ease;-ms-transition:background 0.5s ease;-webkit-transition:background 0.5s ease;transition:background 0.5s ease}#fs_connect .fs-permissions .fs-license-sync-disclaimer{text-align:center;margin-top:0}#fs_connect .fs-permissions .fs-trigger{font-size:0.9em;text-decoration:none;text-align:center;display:block}#fs_connect .fs-permissions ul{height:0;overflow:hidden;margin:0}#fs_connect .fs-permissions ul li{margin-bottom:12px}#fs_connect .fs-permissions ul li:last-child{margin-bottom:0}#fs_connect .fs-permissions ul li i.dashicons{float:left;font-size:40px;width:40px;height:40px}#fs_connect .fs-permissions ul li div{margin-left:55px}#fs_connect .fs-permissions ul li div span{font-weight:bold;text-transform:uppercase;color:#23282d}#fs_connect .fs-permissions ul li div p{margin:2px 0 0 0}#fs_connect .fs-permissions.fs-open{background:#fff}#fs_connect .fs-permissions.fs-open ul{height:auto;margin:20px 20px 10px 20px}@media screen and (max-width: 479px){#fs_connect .fs-permissions{background:#fff}#fs_connect .fs-permissions .fs-trigger{display:none}#fs_connect .fs-permissions ul{height:auto;margin:20px}}#fs_connect .fs-freemium-licensing{padding:8px;background:#777;color:#fff}#fs_connect .fs-freemium-licensing p{text-align:center;display:block;margin:0;padding:0}#fs_connect .fs-freemium-licensing a{color:#C2EEFF;text-decoration:underline}#fs_connect .fs-visual{padding:12px;line-height:0;background:#fafafa;height:80px;position:relative}#fs_connect .fs-visual .fs-site-icon{position:absolute;left:20px;top:10px}#fs_connect .fs-visual .fs-connect-logo{position:absolute;right:20px;top:10px}#fs_connect .fs-visual .fs-plugin-icon{position:absolute;top:10px;left:50%;margin-left:-40px}#fs_connect .fs-visual .fs-plugin-icon,#fs_connect .fs-visual .fs-site-icon,#fs_connect .fs-visual img,#fs_connect .fs-visual object{width:80px;height:80px}#fs_connect .fs-visual .dashicons-wordpress{font-size:64px;background:#01749a;color:#fff;width:64px;height:64px;padding:8px}#fs_connect .fs-visual .dashicons-plus{position:absolute;top:50%;font-size:30px;margin-top:-10px;color:#bbb}#fs_connect .fs-visual .dashicons-plus.fs-first{left:28%}#fs_connect .fs-visual .dashicons-plus.fs-second{left:65%}#fs_connect .fs-visual .fs-plugin-icon,#fs_connect .fs-visual .fs-connect-logo,#fs_connect .fs-visual .fs-site-icon{border:1px solid #ccc;padding:1px;background:#fff}#fs_connect .fs-terms{text-align:center;font-size:0.85em;padding:5px;background:rgba(0,0,0,0.05)}#fs_connect .fs-terms,#fs_connect .fs-terms a{color:#999}#fs_connect .fs-terms a{text-decoration:none}.rtl #fs_connect .fs-actions{padding:10px 20px;background:#C0C7CA}.rtl #fs_connect .fs-actions .button .dashicons{font-size:37px;margin-left:-8px;margin-right:12px}.rtl #fs_connect .fs-actions .button.button-primary:after{content:' \000bb'}.rtl #fs_connect .fs-actions .button.button-primary.fs-loading:after{content:''}.rtl #fs_connect .fs-actions .button.button-secondary{float:left}.rtl #fs_connect .fs-permissions ul li div{margin-right:55px;margin-left:0}.rtl #fs_connect .fs-permissions ul li i.dashicons{float:right}.rtl #fs_connect .fs-visual .fs-site-icon{right:20px;left:auto}.rtl #fs_connect .fs-visual .fs-connect-logo{right:auto;left:20px}#fs_theme_connect_wrapper{position:fixed;top:0;height:100%;width:100%;z-index:99990;background:rgba(0,0,0,0.75);text-align:center;overflow-y:auto}#fs_theme_connect_wrapper:before{content:"";display:inline-block;vertical-align:middle;height:100%}#fs_theme_connect_wrapper>button.close{color:white;cursor:pointer;height:40px;width:40px;position:absolute;right:0;border:0;background-color:transparent;top:32px}#fs_theme_connect_wrapper #fs_connect{top:0;text-align:left;display:inline-block;vertical-align:middle;margin-top:52px;margin-bottom:20px}#fs_theme_connect_wrapper #fs_connect .fs-terms{background:rgba(140,140,140,0.64)}#fs_theme_connect_wrapper #fs_connect .fs-terms,#fs_theme_connect_wrapper #fs_connect .fs-terms a{color:#c5c5c5}.wp-pointer-content #fs_connect{margin:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.fs-opt-in-pointer .wp-pointer-content{padding:0}.fs-opt-in-pointer.wp-pointer-top .wp-pointer-arrow{border-bottom-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-top .wp-pointer-arrow-inner{border-bottom-color:#fafafa}.fs-opt-in-pointer.wp-pointer-bottom .wp-pointer-arrow{border-top-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-bottom .wp-pointer-arrow-inner{border-top-color:#fafafa}.fs-opt-in-pointer.wp-pointer-left .wp-pointer-arrow{border-right-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-left .wp-pointer-arrow-inner{border-right-color:#fafafa}.fs-opt-in-pointer.wp-pointer-right .wp-pointer-arrow{border-left-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-right .wp-pointer-arrow-inner{border-left-color:#fafafa}
|
1 |
+
#fs_connect{width:480px;-moz-box-shadow:0px 1px 2px rgba(0,0,0,0.3);-webkit-box-shadow:0px 1px 2px rgba(0,0,0,0.3);box-shadow:0px 1px 2px rgba(0,0,0,0.3);margin:20px 0}@media screen and (max-width: 479px){#fs_connect{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;width:auto;margin:0 0 0 -10px}}#fs_connect .fs-content{background:#fff;padding:15px 20px}#fs_connect .fs-content .fs-error{background:snow;color:#d3135a;border:1px solid #d3135a;-moz-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);text-align:center;padding:5px;margin-bottom:10px}#fs_connect .fs-content p{margin:0;padding:0;font-size:1.2em}#fs_connect .fs-license-key-container{position:relative;width:280px;margin:10px auto 0 auto}#fs_connect .fs-license-key-container input{width:100%}#fs_connect .fs-license-key-container .dashicons{position:absolute;top:5px;right:5px}#fs_connect.require-license-key #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}#multisite_options_container{margin-top:10px;border:1px solid #ccc;padding:5px}#multisite_options_container a{text-decoration:none}#multisite_options_container a:focus{box-shadow:none}#multisite_options_container a.selected{font-weight:bold}#multisite_options_container.apply-on-all-sites{border:0 none;padding:0}#multisite_options_container.apply-on-all-sites #all_sites_options{border-spacing:0}#multisite_options_container.apply-on-all-sites #all_sites_options td:not(:first-child){display:none}#multisite_options_container #sites_list_container{display:none;overflow:auto}#multisite_options_container #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-body{border-bottom:0}.fs-modal .fs-modal-body p{font-size:14px}.fs-modal .fs-modal-body h2{font-size:20px;line-height:1.5em}.fs-modal .fs-modal-body>div{margin-top:10px}.fs-modal .fs-modal-body>div h2{font-weight:bold;font-size:20px;margin-top:0}.fs-modal .fs-modal-footer{border-top:#eeeeee solid 1px;text-align:right}.fs-modal .fs-modal-footer>.button{margin:0 7px}.fs-modal .fs-modal-footer>.button:first-child{margin:0}.fs-modal .fs-modal-panel>.notice.inline{margin:0;display:none}.fs-modal .fs-modal-panel:not(.active){display:none}.rtl .fs-modal .fs-modal-header .fs-close{right:auto;left:20px}body.has-fs-modal{overflow:hidden}.fs-modal.fs-modal-deactivation-feedback .reason-input,.fs-modal.fs-modal-deactivation-feedback .internal-message{margin:3px 0 3px 22px}.fs-modal.fs-modal-deactivation-feedback .reason-input input,.fs-modal.fs-modal-deactivation-feedback .reason-input textarea,.fs-modal.fs-modal-deactivation-feedback .internal-message input,.fs-modal.fs-modal-deactivation-feedback .internal-message textarea{width:100%}.fs-modal.fs-modal-deactivation-feedback li.reason.has-internal-message .internal-message{border:1px solid #ccc;padding:7px;display:none}@media (max-width: 650px){.fs-modal.fs-modal-deactivation-feedback li.reason li.reason{margin-bottom:10px}.fs-modal.fs-modal-deactivation-feedback li.reason li.reason .reason-input,.fs-modal.fs-modal-deactivation-feedback li.reason li.reason .internal-message{margin-left:29px}.fs-modal.fs-modal-deactivation-feedback li.reason li.reason label{display:table}.fs-modal.fs-modal-deactivation-feedback li.reason li.reason label>span{display:table-cell;font-size:1.3em}}.fs-modal.fs-modal-deactivation-feedback .anonymous-feedback-label{float:left}.fs-modal.fs-modal-deactivation-feedback .fs-modal-panel{margin-top:0 !important}.fs-modal.fs-modal-deactivation-feedback .fs-modal-panel h3{margin-top:0;line-height:1.5em}#the-list .deactivate>.fs-slug{display:none}.fs-modal.fs-modal-license-activation .fs-modal-body input.license_key{width:100%}.fs-modal.fs-modal-license-key-resend .email-address-container{overflow:hidden;padding-right:2px}.fs-modal.fs-modal-license-key-resend.fs-freemium input.email-address{width:300px}.fs-modal.fs-modal-license-key-resend.fs-freemium label{display:block;margin-bottom:10px}.fs-modal.fs-modal-license-key-resend.fs-premium input.email-address{width:100%}.fs-modal.fs-modal-license-key-resend.fs-premium .button-container{float:right;margin-left:7px}@media (max-width: 650px){.fs-modal.fs-modal-license-key-resend.fs-premium .button-container{margin-top:2px}}
|
2 |
.rtl .fs-modal.fs-modal-license-key-resend .fs-modal-body .input-container>.email-address-container{padding-left:2px;padding-right:0}.rtl .fs-modal.fs-modal-license-key-resend .fs-modal-body .button-container{float:left;margin-right:7px;margin-left:0}a.show-license-resend-modal{margin-top:4px;display:inline-block}.fs-ajax-loader{position:relative;width:170px;height:20px;margin:auto}.fs-ajax-loader .fs-ajax-loader-bar{position:absolute;top:0;background-color:#0074a3;width:20px;height:20px;-webkit-animation-name:bounce_ajaxLoader;-moz-animation-name:bounce_ajaxLoader;-ms-animation-name:bounce_ajaxLoader;-o-animation-name:bounce_ajaxLoader;animation-name:bounce_ajaxLoader;-webkit-animation-duration:1.5s;-moz-animation-duration:1.5s;-ms-animation-duration:1.5s;-o-animation-duration:1.5s;animation-duration:1.5s;animation-iteration-count:infinite;-o-animation-iteration-count:infinite;-ms-animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;-moz-animation-iteration-count:infinite;-webkit-animation-direction:normal;-moz-animation-direction:normal;-ms-animation-direction:normal;-o-animation-direction:normal;animation-direction:normal;-moz-transform:0.3;-o-transform:0.3;-ms-transform:0.3;-webkit-transform:0.3;transform:0.3}.fs-ajax-loader .fs-ajax-loader-bar-1{left:0px;animation-delay:0.6s;-o-animation-delay:0.6s;-ms-animation-delay:0.6s;-webkit-animation-delay:0.6s;-moz-animation-delay:0.6s}.fs-ajax-loader .fs-ajax-loader-bar-2{left:19px;animation-delay:0.75s;-o-animation-delay:0.75s;-ms-animation-delay:0.75s;-webkit-animation-delay:0.75s;-moz-animation-delay:0.75s}.fs-ajax-loader .fs-ajax-loader-bar-3{left:38px;animation-delay:0.9s;-o-animation-delay:0.9s;-ms-animation-delay:0.9s;-webkit-animation-delay:0.9s;-moz-animation-delay:0.9s}.fs-ajax-loader .fs-ajax-loader-bar-4{left:57px;animation-delay:1.05s;-o-animation-delay:1.05s;-ms-animation-delay:1.05s;-webkit-animation-delay:1.05s;-moz-animation-delay:1.05s}.fs-ajax-loader .fs-ajax-loader-bar-5{left:76px;animation-delay:1.2s;-o-animation-delay:1.2s;-ms-animation-delay:1.2s;-webkit-animation-delay:1.2s;-moz-animation-delay:1.2s}.fs-ajax-loader .fs-ajax-loader-bar-6{left:95px;animation-delay:1.35s;-o-animation-delay:1.35s;-ms-animation-delay:1.35s;-webkit-animation-delay:1.35s;-moz-animation-delay:1.35s}.fs-ajax-loader .fs-ajax-loader-bar-7{left:114px;animation-delay:1.5s;-o-animation-delay:1.5s;-ms-animation-delay:1.5s;-webkit-animation-delay:1.5s;-moz-animation-delay:1.5s}.fs-ajax-loader .fs-ajax-loader-bar-8{left:133px;animation-delay:1.65s;-o-animation-delay:1.65s;-ms-animation-delay:1.65s;-webkit-animation-delay:1.65s;-moz-animation-delay:1.65s}@-moz-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@-ms-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@-o-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@-webkit-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}.fs-modal-auto-install #request-filesystem-credentials-form h2,.fs-modal-auto-install #request-filesystem-credentials-form .request-filesystem-credentials-action-buttons{display:none}.fs-modal-auto-install #request-filesystem-credentials-form input[type=password],.fs-modal-auto-install #request-filesystem-credentials-form input[type=email],.fs-modal-auto-install #request-filesystem-credentials-form input[type=text]{-webkit-appearance:none;padding:10px 10px 5px 10px;width:300px;max-width:100%}.fs-modal-auto-install #request-filesystem-credentials-form>div,.fs-modal-auto-install #request-filesystem-credentials-form label,.fs-modal-auto-install #request-filesystem-credentials-form fieldset{width:300px;max-width:100%;margin:0 auto;display:block}
|
1 |
+
.fs-modal{position:fixed;overflow:auto;height:100%;width:100%;top:0;z-index:100000;display:none;background:rgba(0,0,0,0.6)}.fs-modal .fs-modal-dialog{background:transparent;position:absolute;left:50%;margin-left:-298px;padding-bottom:30px;top:-100%;z-index:100001;width:596px}@media (max-width: 650px){.fs-modal .fs-modal-dialog{margin-left:-50%;box-sizing:border-box;padding-left:10px;padding-right:10px;width:100%}.fs-modal .fs-modal-dialog .fs-modal-panel>h3>strong{font-size:1.3em}}.fs-modal.active{display:block}.fs-modal.active:before{display:block}.fs-modal.active .fs-modal-dialog{top:10%}.fs-modal.fs-success .fs-modal-header{border-bottom-color:#46b450}.fs-modal.fs-success .fs-modal-body{background-color:#f7fff7}.fs-modal.fs-warn .fs-modal-header{border-bottom-color:#ffb900}.fs-modal.fs-warn .fs-modal-body{background-color:#fff8e5}.fs-modal.fs-error .fs-modal-header{border-bottom-color:#dc3232}.fs-modal.fs-error .fs-modal-body{background-color:#ffeaea}.fs-modal .fs-modal-body,.fs-modal .fs-modal-footer{border:0;background:#fefefe;padding:20px}.fs-modal .fs-modal-header{border-bottom:#eeeeee solid 1px;background:#fbfbfb;padding:15px 20px;position:relative;margin-bottom:-10px}.fs-modal .fs-modal-header h4{margin:0;padding:0;text-transform:uppercase;font-size:1.2em;font-weight:bold;color:#cacaca;text-shadow:1px 1px 1px #fff;letter-spacing:0.6px;-webkit-font-smoothing:antialiased}.fs-modal .fs-modal-header .fs-close{position:absolute;right:10px;top:12px;cursor:pointer;color:#bbb;-moz-border-radius:20px;-webkit-border-radius:20px;border-radius:20px;padding:3px;-moz-transition:all 0.2s ease-in-out;-o-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.fs-modal .fs-modal-header .fs-close:hover{color:#fff;background:#aaa}.fs-modal .fs-modal-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-license-activation .fs-modal-body input.license_key{width:100%}#license_options_container table,#license_options_container table select,#license_options_container table #available_license_key{width:100%}#license_options_container table td:first-child{width:1%}#license_options_container table #other_license_key_container label{position:relative;top:6px;float:left;margin-right:5px}#license_options_container table #other_license_key_container div{overflow:hidden;width:auto;height:30px;display:block;top:2px;position:relative}#license_options_container table #other_license_key_container div input{margin:0}#sites_list_container td{cursor:pointer}#multisite_options_container{margin-top:10px;border:1px solid #ccc;padding:5px}#multisite_options_container a{text-decoration:none}#multisite_options_container a:focus{box-shadow:none}#multisite_options_container a.selected{font-weight:bold}#multisite_options_container.apply-on-all-sites{border:0 none;padding:0}#multisite_options_container.apply-on-all-sites #all_sites_options{border-spacing:0}#multisite_options_container.apply-on-all-sites #all_sites_options td:not(:first-child){display:none}#multisite_options_container #sites_list_container{display:none;overflow:auto}#multisite_options_container #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}
|
freemius/assets/css/admin/gdpr-optin-notice.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.fs-notice[data-id^="gdpr_optin_actions"] .underlined{text-decoration:underline}.fs-notice[data-id^="gdpr_optin_actions"] ul .button,.fs-notice[data-id^="gdpr_optin_actions"] ul .action-description{vertical-align:middle}.fs-notice[data-id^="gdpr_optin_actions"] ul .action-description{display:inline-block;margin-left:3px}
|
freemius/assets/css/common.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.fs-notice.success{color:green;font-weight:700}
|
|
freemius/assets/img/final-tiles-grid-gallery-lite.jpg
DELETED
Binary file
|
freemius/assets/img/final-tiles-grid-gallery-lite.png
ADDED
Binary file
|
freemius/assets/scss/_colors.scss
CHANGED
@@ -63,3 +63,6 @@ $linkedin_color: #4875b4;
|
|
63 |
$youtube_color: #ff3333;
|
64 |
$gplus_color: #c63d2d;
|
65 |
|
|
|
|
|
|
63 |
$youtube_color: #ff3333;
|
64 |
$gplus_color: #c63d2d;
|
65 |
|
66 |
+
// Tooltip
|
67 |
+
$tooltip-color: #fff;
|
68 |
+
$tooltip-bkg-color: rgba(0,0,0,0.8);
|
freemius/assets/scss/admin/_gdpr-consent.scss
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#fs_marketing_optin
|
2 |
+
{
|
3 |
+
display: none;
|
4 |
+
margin-top: 10px;
|
5 |
+
border: 1px solid #ccc;
|
6 |
+
padding: 10px;
|
7 |
+
line-height: 1.5em;
|
8 |
+
|
9 |
+
.fs-message
|
10 |
+
{
|
11 |
+
display: block;
|
12 |
+
margin-bottom: 5px;
|
13 |
+
font-size: 1.05em;
|
14 |
+
font-weight: 600;
|
15 |
+
}
|
16 |
+
|
17 |
+
&.error
|
18 |
+
{
|
19 |
+
border: 1px solid $fs-logo-magenta-color;
|
20 |
+
background: #fee;
|
21 |
+
|
22 |
+
.fs-message
|
23 |
+
{
|
24 |
+
color: $fs-logo-magenta-color;
|
25 |
+
}
|
26 |
+
}
|
27 |
+
|
28 |
+
.fs-input-container
|
29 |
+
{
|
30 |
+
margin-top: 5px;
|
31 |
+
|
32 |
+
label
|
33 |
+
{
|
34 |
+
margin-top: 5px;
|
35 |
+
display: block;
|
36 |
+
|
37 |
+
input
|
38 |
+
{
|
39 |
+
float: left;
|
40 |
+
margin: 1px 0 0 0;
|
41 |
+
}
|
42 |
+
|
43 |
+
&:first-child
|
44 |
+
{
|
45 |
+
display: block;
|
46 |
+
margin-bottom: 2px;
|
47 |
+
}
|
48 |
+
}
|
49 |
+
}
|
50 |
+
|
51 |
+
.fs-input-label
|
52 |
+
{
|
53 |
+
display: block;
|
54 |
+
margin-left: 20px;
|
55 |
+
|
56 |
+
.underlined
|
57 |
+
{
|
58 |
+
text-decoration: underline;
|
59 |
+
}
|
60 |
+
}
|
61 |
+
}
|
62 |
+
|
63 |
+
.rtl
|
64 |
+
{
|
65 |
+
#fs_marketing_optin
|
66 |
+
{
|
67 |
+
.fs-input-container
|
68 |
+
{
|
69 |
+
label input
|
70 |
+
{
|
71 |
+
float: right;
|
72 |
+
}
|
73 |
+
}
|
74 |
+
|
75 |
+
.fs-input-label
|
76 |
+
{
|
77 |
+
margin-left: 0;
|
78 |
+
margin-right: 20px;
|
79 |
+
}
|
80 |
+
}
|
81 |
+
}
|
freemius/assets/scss/admin/_license-activation.scss
CHANGED
@@ -4,4 +4,44 @@
|
|
4 |
width: 100%;
|
5 |
}
|
6 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
}
|
4 |
width: 100%;
|
5 |
}
|
6 |
}
|
7 |
+
}
|
8 |
+
|
9 |
+
#license_options_container {
|
10 |
+
table {
|
11 |
+
&, select, #available_license_key {
|
12 |
+
width: 100%;
|
13 |
+
}
|
14 |
+
|
15 |
+
td:first-child {
|
16 |
+
width: 1%;
|
17 |
+
}
|
18 |
+
|
19 |
+
#other_license_key_container {
|
20 |
+
label {
|
21 |
+
position: relative;
|
22 |
+
top: 6px;
|
23 |
+
float: left;
|
24 |
+
margin-right: 5px;
|
25 |
+
}
|
26 |
+
|
27 |
+
div {
|
28 |
+
overflow: hidden;
|
29 |
+
width: auto;
|
30 |
+
height: 30px;
|
31 |
+
display: block;
|
32 |
+
top: 2px;
|
33 |
+
position: relative;
|
34 |
+
|
35 |
+
input {
|
36 |
+
margin: 0;
|
37 |
+
}
|
38 |
+
}
|
39 |
+
}
|
40 |
+
}
|
41 |
+
}
|
42 |
+
|
43 |
+
#sites_list_container {
|
44 |
+
td {
|
45 |
+
cursor: pointer;
|
46 |
+
}
|
47 |
}
|
freemius/assets/scss/admin/_modal-common.scss
CHANGED
@@ -118,6 +118,14 @@
|
|
118 |
color: #fff;
|
119 |
background: #aaa;
|
120 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
}
|
122 |
}
|
123 |
|
118 |
color: #fff;
|
119 |
background: #aaa;
|
120 |
}
|
121 |
+
|
122 |
+
&, &:hover
|
123 |
+
{
|
124 |
+
.dashicons
|
125 |
+
{
|
126 |
+
text-decoration: none;
|
127 |
+
}
|
128 |
+
}
|
129 |
}
|
130 |
}
|
131 |
|
freemius/assets/scss/admin/_multisite-options.scss
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#multisite_options_container {
|
2 |
+
margin-top: 10px;
|
3 |
+
border: 1px solid #ccc;
|
4 |
+
padding: 5px;
|
5 |
+
|
6 |
+
a {
|
7 |
+
text-decoration: none;
|
8 |
+
|
9 |
+
&:focus {
|
10 |
+
box-shadow: none;
|
11 |
+
}
|
12 |
+
|
13 |
+
&.selected {
|
14 |
+
font-weight: bold;
|
15 |
+
}
|
16 |
+
}
|
17 |
+
|
18 |
+
&.apply-on-all-sites {
|
19 |
+
border: 0 none;
|
20 |
+
padding: 0;
|
21 |
+
|
22 |
+
#all_sites_options {
|
23 |
+
border-spacing: 0;
|
24 |
+
|
25 |
+
td:not(:first-child) {
|
26 |
+
display: none;
|
27 |
+
}
|
28 |
+
}
|
29 |
+
}
|
30 |
+
|
31 |
+
#sites_list_container {
|
32 |
+
display: none;
|
33 |
+
overflow: auto;
|
34 |
+
|
35 |
+
table td {
|
36 |
+
border-top: 1px solid #ccc;
|
37 |
+
padding: 4px 2px;
|
38 |
+
}
|
39 |
+
}
|
40 |
+
}
|
freemius/assets/scss/admin/_tooltip.scss
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.fs-tooltip-trigger
|
2 |
+
{
|
3 |
+
&:not(a)
|
4 |
+
{
|
5 |
+
cursor: help;
|
6 |
+
}
|
7 |
+
|
8 |
+
position: relative;
|
9 |
+
|
10 |
+
.fs-tooltip
|
11 |
+
{
|
12 |
+
opacity: 0;
|
13 |
+
visibility: hidden;
|
14 |
+
@include transition(opacity 0.3s ease-in-out);
|
15 |
+
position: absolute;
|
16 |
+
background: $tooltip-bkg-color;
|
17 |
+
color: $tooltip-color;
|
18 |
+
font-family: 'arial', serif;
|
19 |
+
font-size: 12px;
|
20 |
+
padding: 10px;
|
21 |
+
z-index: 999999;
|
22 |
+
bottom: 100%;
|
23 |
+
margin-bottom: 5px;
|
24 |
+
left: 0;
|
25 |
+
right: 0;
|
26 |
+
@include border-radius(5px);
|
27 |
+
@include box-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
|
28 |
+
line-height: 1.3em;
|
29 |
+
font-weight: bold;
|
30 |
+
text-align: left;
|
31 |
+
|
32 |
+
.rtl &
|
33 |
+
{
|
34 |
+
text-align: right;
|
35 |
+
}
|
36 |
+
|
37 |
+
&::after
|
38 |
+
{
|
39 |
+
content: ' ';
|
40 |
+
display: block;
|
41 |
+
width: 0;
|
42 |
+
height: 0;
|
43 |
+
border-style: solid;
|
44 |
+
border-width: 5px 5px 0 5px;
|
45 |
+
border-color: $tooltip-bkg-color transparent transparent transparent;
|
46 |
+
position: absolute;
|
47 |
+
top: 100%;
|
48 |
+
left: 21px;
|
49 |
+
|
50 |
+
.rtl &
|
51 |
+
{
|
52 |
+
right: 21px;
|
53 |
+
left: auto;
|
54 |
+
}
|
55 |
+
}
|
56 |
+
}
|
57 |
+
|
58 |
+
&:hover
|
59 |
+
{
|
60 |
+
.fs-tooltip
|
61 |
+
{
|
62 |
+
visibility: visible;
|
63 |
+
opacity: 1;
|
64 |
+
}
|
65 |
+
}
|
66 |
+
}
|
freemius/assets/scss/admin/account.scss
CHANGED
@@ -30,12 +30,9 @@
|
|
30 |
width: 1.2em;
|
31 |
}
|
32 |
|
33 |
-
.
|
34 |
{
|
35 |
-
|
36 |
-
{
|
37 |
-
vertical-align: middle;
|
38 |
-
}
|
39 |
}
|
40 |
|
41 |
.fs-header-actions
|
@@ -160,6 +157,55 @@ label.fs-tag
|
|
160 |
}
|
161 |
}
|
162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
#fs_addons
|
164 |
{
|
165 |
h3
|
30 |
width: 1.2em;
|
31 |
}
|
32 |
|
33 |
+
.dashicons
|
34 |
{
|
35 |
+
vertical-align: middle;
|
|
|
|
|
|
|
36 |
}
|
37 |
|
38 |
.fs-header-actions
|
157 |
}
|
158 |
}
|
159 |
|
160 |
+
#fs_sites
|
161 |
+
{
|
162 |
+
.fs-scrollable-table
|
163 |
+
{
|
164 |
+
.fs-table-body {
|
165 |
+
max-height: 200px;
|
166 |
+
overflow: auto;
|
167 |
+
border: 1px solid #e5e5e5;
|
168 |
+
|
169 |
+
& > table.widefat {
|
170 |
+
border: none !important;
|
171 |
+
}
|
172 |
+
}
|
173 |
+
|
174 |
+
.fs-main-column {
|
175 |
+
width: 100%;
|
176 |
+
}
|
177 |
+
|
178 |
+
.fs-site-details
|
179 |
+
{
|
180 |
+
td:first-of-type
|
181 |
+
{
|
182 |
+
text-align: right;
|
183 |
+
color: grey;
|
184 |
+
width: 1px;
|
185 |
+
}
|
186 |
+
|
187 |
+
td:last-of-type
|
188 |
+
{
|
189 |
+
text-align: right;
|
190 |
+
}
|
191 |
+
}
|
192 |
+
|
193 |
+
.fs-install-details table
|
194 |
+
{
|
195 |
+
tr td
|
196 |
+
{
|
197 |
+
width: 1px;
|
198 |
+
white-space: nowrap;
|
199 |
+
|
200 |
+
&:last-of-type
|
201 |
+
{
|
202 |
+
width: auto;
|
203 |
+
}
|
204 |
+
}
|
205 |
+
}
|
206 |
+
}
|
207 |
+
}
|
208 |
+
|
209 |
#fs_addons
|
210 |
{
|
211 |
h3
|
freemius/assets/scss/admin/connect.scss
CHANGED
@@ -53,6 +53,30 @@ $form_width: 480px;
|
|
53 |
}
|
54 |
}
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
.fs-actions
|
57 |
{
|
58 |
padding: 10px 20px;
|
@@ -326,6 +350,10 @@ $form_width: 480px;
|
|
326 |
}
|
327 |
}
|
328 |
|
|
|
|
|
|
|
|
|
329 |
.rtl
|
330 |
{
|
331 |
#fs_connect
|
53 |
}
|
54 |
}
|
55 |
|
56 |
+
&.require-license-key {
|
57 |
+
#sites_list_container {
|
58 |
+
td {
|
59 |
+
cursor: pointer;
|
60 |
+
}
|
61 |
+
}
|
62 |
+
}
|
63 |
+
|
64 |
+
#delegate_to_site_admins {
|
65 |
+
margin-right: 15px;
|
66 |
+
float: right;
|
67 |
+
height: 26px;
|
68 |
+
vertical-align: middle;
|
69 |
+
line-height: 37px;
|
70 |
+
font-weight: bold;
|
71 |
+
border-bottom: 1px dashed;
|
72 |
+
text-decoration: none;
|
73 |
+
|
74 |
+
&.rtl {
|
75 |
+
margin-left: 15px;
|
76 |
+
margin-right: 0;
|
77 |
+
}
|
78 |
+
}
|
79 |
+
|
80 |
.fs-actions
|
81 |
{
|
82 |
padding: 10px 20px;
|
350 |
}
|
351 |
}
|
352 |
|
353 |
+
@import "multisite-options";
|
354 |
+
@import "tooltip";
|
355 |
+
@import "gdpr-consent";
|
356 |
+
|
357 |
.rtl
|
358 |
{
|
359 |
#fs_connect
|
freemius/assets/scss/admin/dialog-boxes.scss
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
@import "modal-common";
|
3 |
@import "deactivation-feedback";
|
4 |
@import "license-activation";
|
|
|
5 |
@import "license-key-resend";
|
6 |
@import "ajax-loader";
|
7 |
@import "auto-install";
|
2 |
@import "modal-common";
|
3 |
@import "deactivation-feedback";
|
4 |
@import "license-activation";
|
5 |
+
@import "multisite-options";
|
6 |
@import "license-key-resend";
|
7 |
@import "ajax-loader";
|
8 |
@import "auto-install";
|
freemius/assets/scss/admin/gdpr-optin-notice.scss
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.fs-notice[data-id^="gdpr_optin_actions"]
|
2 |
+
{
|
3 |
+
.underlined {
|
4 |
+
text-decoration: underline;
|
5 |
+
}
|
6 |
+
|
7 |
+
ul {
|
8 |
+
.button, .action-description {
|
9 |
+
vertical-align: middle;
|
10 |
+
}
|
11 |
+
|
12 |
+
.action-description {
|
13 |
+
display: inline-block;
|
14 |
+
margin-left: 3px;
|
15 |
+
}
|
16 |
+
}
|
17 |
+
}
|
freemius/composer.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
"description": "Freemius WordPress SDK",
|
4 |
"keywords": ["freemius", "wordpress", "plugin", "sdk"],
|
5 |
"homepage": "https://freemius.com",
|
6 |
-
"license": "GPL-3.0",
|
7 |
"require": {
|
8 |
"php": ">=5.2"
|
9 |
}
|
3 |
"description": "Freemius WordPress SDK",
|
4 |
"keywords": ["freemius", "wordpress", "plugin", "sdk"],
|
5 |
"homepage": "https://freemius.com",
|
6 |
+
"license": "GPL-3.0-only",
|
7 |
"require": {
|
8 |
"php": ">=5.2"
|
9 |
}
|
freemius/config.php
CHANGED
@@ -1,331 +1,388 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
|
75 |
// define( 'WP_FS__LOCALHOST_IP', WP_FS__VVV_DEFAULT_PUBLIC_IP );
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
|
144 |
#--------------------------------------------------------------------------------
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
if ( ! defined( 'FS_CHECKOUT__ADDRESS_PRODUCTION' ) ) {
|
230 |
-
define( 'FS_CHECKOUT__ADDRESS_PRODUCTION', 'https://checkout.freemius.com' );
|
231 |
-
}
|
232 |
-
|
233 |
-
if ( ! defined( 'FS_CHECKOUT__ADDRESS_LOCALHOST' ) ) {
|
234 |
-
define( 'FS_CHECKOUT__ADDRESS_LOCALHOST', 'http://checkout.freemius-local.com:8080' );
|
235 |
-
}
|
236 |
-
|
237 |
-
if ( ! defined( 'FS_CHECKOUT__ADDRESS' ) ) {
|
238 |
-
define( 'FS_CHECKOUT__ADDRESS', ( WP_FS__IS_PRODUCTION_MODE ? FS_CHECKOUT__ADDRESS_PRODUCTION : FS_CHECKOUT__ADDRESS_LOCALHOST ) );
|
239 |
-
}
|
240 |
-
|
241 |
-
#endregion
|
242 |
-
|
243 |
-
define( 'WP_FS___OPTION_PREFIX', 'fs' . ( WP_FS__IS_PRODUCTION_MODE ? '' : '_dbg' ) . '_' );
|
244 |
-
|
245 |
-
if ( ! defined( 'WP_FS__ACCOUNTS_OPTION_NAME' ) ) {
|
246 |
-
define( 'WP_FS__ACCOUNTS_OPTION_NAME', WP_FS___OPTION_PREFIX . 'accounts' );
|
247 |
-
}
|
248 |
-
if ( ! defined( 'WP_FS__API_CACHE_OPTION_NAME' ) ) {
|
249 |
-
define( 'WP_FS__API_CACHE_OPTION_NAME', WP_FS___OPTION_PREFIX . 'api_cache' );
|
250 |
-
}
|
251 |
-
define( 'WP_FS__OPTIONS_OPTION_NAME', WP_FS___OPTION_PREFIX . 'options' );
|
252 |
-
|
253 |
-
/**
|
254 |
-
* Module types
|
255 |
-
*
|
256 |
-
* @since 1.2.2
|
257 |
-
*/
|
258 |
-
define( 'WP_FS__MODULE_TYPE_PLUGIN', 'plugin' );
|
259 |
-
define( 'WP_FS__MODULE_TYPE_THEME', 'theme' );
|
260 |
-
|
261 |
-
/**
|
262 |
-
* Billing Frequencies
|
263 |
-
*/
|
264 |
-
define( 'WP_FS__PERIOD_ANNUALLY', 'annual' );
|
265 |
-
define( 'WP_FS__PERIOD_MONTHLY', 'monthly' );
|
266 |
-
define( 'WP_FS__PERIOD_LIFETIME', 'lifetime' );
|
267 |
-
|
268 |
-
/**
|
269 |
-
* Plans
|
270 |
-
*/
|
271 |
-
define( 'WP_FS__PLAN_DEFAULT_PAID', false );
|
272 |
-
define( 'WP_FS__PLAN_FREE', 'free' );
|
273 |
-
define( 'WP_FS__PLAN_TRIAL', 'trial' );
|
274 |
-
|
275 |
-
/**
|
276 |
-
* Times in seconds
|
277 |
-
*/
|
278 |
-
if ( ! defined( 'WP_FS__TIME_5_MIN_IN_SEC' ) ) {
|
279 |
-
define( 'WP_FS__TIME_5_MIN_IN_SEC', 300 );
|
280 |
-
}
|
281 |
-
if ( ! defined( 'WP_FS__TIME_10_MIN_IN_SEC' ) ) {
|
282 |
-
define( 'WP_FS__TIME_10_MIN_IN_SEC', 600 );
|
283 |
-
}
|
284 |
// define( 'WP_FS__TIME_15_MIN_IN_SEC', 900 );
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @package Freemius
|
4 |
+
* @copyright Copyright (c) 2015, Freemius, Inc.
|
5 |
+
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
|
6 |
+
* @since 1.0.4
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
+
exit;
|
11 |
+
}
|
12 |
+
|
13 |
+
if ( ! defined( 'WP_FS__SLUG' ) ) {
|
14 |
+
define( 'WP_FS__SLUG', 'freemius' );
|
15 |
+
}
|
16 |
+
if ( ! defined( 'WP_FS__DEV_MODE' ) ) {
|
17 |
+
define( 'WP_FS__DEV_MODE', false );
|
18 |
+
}
|
19 |
+
|
20 |
+
#--------------------------------------------------------------------------------
|
21 |
+
#region API Connectivity Issues Simulation
|
22 |
+
#--------------------------------------------------------------------------------
|
23 |
+
|
24 |
+
if ( ! defined( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY' ) ) {
|
25 |
+
define( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY', false );
|
26 |
+
}
|
27 |
+
if ( ! defined( 'WP_FS__SIMULATE_NO_CURL' ) ) {
|
28 |
+
define( 'WP_FS__SIMULATE_NO_CURL', false );
|
29 |
+
}
|
30 |
+
if ( ! defined( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE' ) ) {
|
31 |
+
define( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE', false );
|
32 |
+
}
|
33 |
+
if ( ! defined( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL' ) ) {
|
34 |
+
define( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL', false );
|
35 |
+
}
|
36 |
+
if ( WP_FS__SIMULATE_NO_CURL ) {
|
37 |
+
define( 'FS_SDK__SIMULATE_NO_CURL', true );
|
38 |
+
}
|
39 |
+
if ( WP_FS__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE ) {
|
40 |
+
define( 'FS_SDK__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE', true );
|
41 |
+
}
|
42 |
+
if ( WP_FS__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL ) {
|
43 |
+
define( 'FS_SDK__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL', true );
|
44 |
+
}
|
45 |
+
|
46 |
+
#endregion
|
47 |
+
|
48 |
+
if ( ! defined( 'WP_FS__SIMULATE_FREEMIUS_OFF' ) ) {
|
49 |
+
define( 'WP_FS__SIMULATE_FREEMIUS_OFF', false );
|
50 |
+
}
|
51 |
+
|
52 |
+
if ( ! defined( 'WP_FS__PING_API_ON_IP_OR_HOST_CHANGES' ) ) {
|
53 |
+
/**
|
54 |
+
* @since 1.1.7.3
|
55 |
+
* @author Vova Feldman (@svovaf)
|
56 |
+
*
|
57 |
+
* I'm not sure if shared servers periodically change IP, or the subdomain of the
|
58 |
+
* admin dashboard. Also, I've seen sites that have strange loop of switching
|
59 |
+
* between domains on a daily basis. Therefore, to eliminate the risk of
|
60 |
+
* multiple unwanted connectivity test pings, temporary ignore domain or
|
61 |
+
* server IP changes.
|
62 |
+
*/
|
63 |
+
define( 'WP_FS__PING_API_ON_IP_OR_HOST_CHANGES', false );
|
64 |
+
}
|
65 |
+
|
66 |
+
/**
|
67 |
+
* If your dev environment supports custom public network IP setup
|
68 |
+
* like VVV, please update WP_FS__LOCALHOST_IP with your public IP
|
69 |
+
* and uncomment it during dev.
|
70 |
+
*/
|
71 |
+
if ( ! defined( 'WP_FS__LOCALHOST_IP' ) ) {
|
72 |
+
// VVV default public network IP.
|
73 |
+
define( 'WP_FS__VVV_DEFAULT_PUBLIC_IP', '192.168.50.4' );
|
74 |
|
75 |
// define( 'WP_FS__LOCALHOST_IP', WP_FS__VVV_DEFAULT_PUBLIC_IP );
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* If true and running with secret key, the opt-in process
|
80 |
+
* will skip the email activation process which is invoked
|
81 |
+
* when the email of the context user already exist in Freemius
|
82 |
+
* database (as a security precaution, to prevent sharing user
|
83 |
+
* secret with unauthorized entity).
|
84 |
+
*
|
85 |
+
* IMPORTANT:
|
86 |
+
* AS A SECURITY PRECAUTION, WE VALIDATE THE TIMESTAMP OF THE OPT-IN REQUEST.
|
87 |
+
* THEREFORE, MAKE SURE THAT WHEN USING THIS PARAMETER,YOUR TESTING ENVIRONMENT'S
|
88 |
+
* CLOCK IS SYNCED.
|
89 |
+
*/
|
90 |
+
if ( ! defined( 'WP_FS__SKIP_EMAIL_ACTIVATION' ) ) {
|
91 |
+
define( 'WP_FS__SKIP_EMAIL_ACTIVATION', false );
|
92 |
+
}
|
93 |
+
|
94 |
+
|
95 |
+
#--------------------------------------------------------------------------------
|
96 |
+
#region Directories
|
97 |
+
#--------------------------------------------------------------------------------
|
98 |
+
|
99 |
+
if ( ! defined( 'WP_FS__DIR' ) ) {
|
100 |
+
define( 'WP_FS__DIR', dirname( __FILE__ ) );
|
101 |
+
}
|
102 |
+
if ( ! defined( 'WP_FS__DIR_INCLUDES' ) ) {
|
103 |
+
define( 'WP_FS__DIR_INCLUDES', WP_FS__DIR . '/includes' );
|
104 |
+
}
|
105 |
+
if ( ! defined( 'WP_FS__DIR_TEMPLATES' ) ) {
|
106 |
+
define( 'WP_FS__DIR_TEMPLATES', WP_FS__DIR . '/templates' );
|
107 |
+
}
|
108 |
+
if ( ! defined( 'WP_FS__DIR_ASSETS' ) ) {
|
109 |
+
define( 'WP_FS__DIR_ASSETS', WP_FS__DIR . '/assets' );
|
110 |
+
}
|
111 |
+
if ( ! defined( 'WP_FS__DIR_CSS' ) ) {
|
112 |
+
define( 'WP_FS__DIR_CSS', WP_FS__DIR_ASSETS . '/css' );
|
113 |
+
}
|
114 |
+
if ( ! defined( 'WP_FS__DIR_JS' ) ) {
|
115 |
+
define( 'WP_FS__DIR_JS', WP_FS__DIR_ASSETS . '/js' );
|
116 |
+
}
|
117 |
+
if ( ! defined( 'WP_FS__DIR_IMG' ) ) {
|
118 |
+
define( 'WP_FS__DIR_IMG', WP_FS__DIR_ASSETS . '/img' );
|
119 |
+
}
|
120 |
+
if ( ! defined( 'WP_FS__DIR_SDK' ) ) {
|
121 |
+
define( 'WP_FS__DIR_SDK', WP_FS__DIR_INCLUDES . '/sdk' );
|
122 |
+
}
|
123 |
+
|
124 |
+
#endregion
|
125 |
+
|
126 |
+
/**
|
127 |
+
* Domain / URL / Address
|
128 |
+
*/
|
129 |
+
define( 'WP_FS__ROOT_DOMAIN_PRODUCTION', 'freemius.com' );
|
130 |
+
define( 'WP_FS__DOMAIN_PRODUCTION', 'wp.freemius.com' );
|
131 |
+
define( 'WP_FS__ADDRESS_PRODUCTION', 'https://' . WP_FS__DOMAIN_PRODUCTION );
|
132 |
+
|
133 |
+
if ( ! defined( 'WP_FS__DOMAIN_LOCALHOST' ) ) {
|
134 |
+
define( 'WP_FS__DOMAIN_LOCALHOST', 'wp.freemius' );
|
135 |
+
}
|
136 |
+
if ( ! defined( 'WP_FS__ADDRESS_LOCALHOST' ) ) {
|
137 |
+
define( 'WP_FS__ADDRESS_LOCALHOST', 'http://' . WP_FS__DOMAIN_LOCALHOST . ':8080' );
|
138 |
+
}
|
139 |
+
|
140 |
+
if ( ! defined( 'WP_FS__TESTING_DOMAIN' ) ) {
|
141 |
+
define( 'WP_FS__TESTING_DOMAIN', 'fswp' );
|
142 |
+
}
|
143 |
+
|
144 |
+
#--------------------------------------------------------------------------------
|
145 |
+
#region HTTP
|
146 |
+
#--------------------------------------------------------------------------------
|
147 |
+
|
148 |
+
if ( ! defined( 'WP_FS__IS_HTTP_REQUEST' ) ) {
|
149 |
+
define( 'WP_FS__IS_HTTP_REQUEST', isset( $_SERVER['HTTP_HOST'] ) );
|
150 |
+
}
|
151 |
+
|
152 |
+
if ( ! defined( 'WP_FS__IS_HTTPS' ) ) {
|
153 |
+
define( 'WP_FS__IS_HTTPS', ( WP_FS__IS_HTTP_REQUEST &&
|
154 |
+
// Checks if CloudFlare's HTTPS (Flexible SSL support).
|
155 |
+
isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) &&
|
156 |
+
'https' === strtolower( $_SERVER['HTTP_X_FORWARDED_PROTO'] )
|
157 |
+
) ||
|
158 |
+
// Check if HTTPS request.
|
159 |
+
( isset( $_SERVER['HTTPS'] ) && 'on' == $_SERVER['HTTPS'] ) ||
|
160 |
+
( isset( $_SERVER['SERVER_PORT'] ) && 443 == $_SERVER['SERVER_PORT'] )
|
161 |
+
);
|
162 |
+
}
|
163 |
+
|
164 |
+
if ( ! defined( 'WP_FS__IS_POST_REQUEST' ) ) {
|
165 |
+
define( 'WP_FS__IS_POST_REQUEST', ( WP_FS__IS_HTTP_REQUEST &&
|
166 |
+
strtoupper( $_SERVER['REQUEST_METHOD'] ) == 'POST' ) );
|
167 |
+
}
|
168 |
+
|
169 |
+
if ( ! defined( 'WP_FS__REMOTE_ADDR' ) ) {
|
170 |
+
define( 'WP_FS__REMOTE_ADDR', fs_get_ip() );
|
171 |
+
}
|
172 |
+
|
173 |
+
if ( ! defined( 'WP_FS__IS_LOCALHOST' ) ) {
|
174 |
+
if ( defined( 'WP_FS__LOCALHOST_IP' ) ) {
|
175 |
+
define( 'WP_FS__IS_LOCALHOST', ( WP_FS__LOCALHOST_IP === WP_FS__REMOTE_ADDR ) );
|
176 |
+
} else {
|
177 |
+
define( 'WP_FS__IS_LOCALHOST', WP_FS__IS_HTTP_REQUEST &&
|
178 |
+
is_string( WP_FS__REMOTE_ADDR ) &&
|
179 |
+
( substr( WP_FS__REMOTE_ADDR, 0, 4 ) === '127.' ||
|
180 |
+
WP_FS__REMOTE_ADDR === '::1' )
|
181 |
+
);
|
182 |
+
}
|
183 |
+
}
|
184 |
+
|
185 |
+
if ( ! defined( 'WP_FS__IS_LOCALHOST_FOR_SERVER' ) ) {
|
186 |
+
define( 'WP_FS__IS_LOCALHOST_FOR_SERVER', ( ! WP_FS__IS_HTTP_REQUEST ||
|
187 |
+
false !== strpos( $_SERVER['HTTP_HOST'], 'localhost' ) ) );
|
188 |
+
}
|
189 |
+
|
190 |
+
#endregion
|
191 |
+
|
192 |
+
if ( ! defined( 'WP_FS__IS_PRODUCTION_MODE' ) ) {
|
193 |
+
// By default, run with Freemius production servers.
|
194 |
+
define( 'WP_FS__IS_PRODUCTION_MODE', true );
|
195 |
+
}
|
196 |
+
|
197 |
+
if ( ! defined( 'WP_FS__ADDRESS' ) ) {
|
198 |
+
define( 'WP_FS__ADDRESS', ( WP_FS__IS_PRODUCTION_MODE ? WP_FS__ADDRESS_PRODUCTION : WP_FS__ADDRESS_LOCALHOST ) );
|
199 |
+
}
|
200 |
+
|
201 |
|
202 |
#--------------------------------------------------------------------------------
|
203 |
+
#region API
|
204 |
+
#--------------------------------------------------------------------------------
|
205 |
+
|
206 |
+
if ( ! defined( 'WP_FS__API_ADDRESS_LOCALHOST' ) ) {
|
207 |
+
define( 'WP_FS__API_ADDRESS_LOCALHOST', 'http://api.freemius:8080' );
|
208 |
+
}
|
209 |
+
if ( ! defined( 'WP_FS__API_SANDBOX_ADDRESS_LOCALHOST' ) ) {
|
210 |
+
define( 'WP_FS__API_SANDBOX_ADDRESS_LOCALHOST', 'http://sandbox-api.freemius:8080' );
|
211 |
+
}
|
212 |
+
|
213 |
+
// Set API address for local testing.
|
214 |
+
if ( ! WP_FS__IS_PRODUCTION_MODE ) {
|
215 |
+
if ( ! defined( 'FS_API__ADDRESS' ) ) {
|
216 |
+
define( 'FS_API__ADDRESS', WP_FS__API_ADDRESS_LOCALHOST );
|
217 |
+
}
|
218 |
+
if ( ! defined( 'FS_API__SANDBOX_ADDRESS' ) ) {
|
219 |
+
define( 'FS_API__SANDBOX_ADDRESS', WP_FS__API_SANDBOX_ADDRESS_LOCALHOST );
|
220 |
+
}
|
221 |
+
}
|
222 |
+
|
223 |
+
#endregion
|
224 |
+
|
225 |
+
#--------------------------------------------------------------------------------
|
226 |
+
#region Checkout
|
227 |
+
#--------------------------------------------------------------------------------
|
228 |
+
|
229 |
+
if ( ! defined( 'FS_CHECKOUT__ADDRESS_PRODUCTION' ) ) {
|
230 |
+
define( 'FS_CHECKOUT__ADDRESS_PRODUCTION', 'https://checkout.freemius.com' );
|
231 |
+
}
|
232 |
+
|
233 |
+
if ( ! defined( 'FS_CHECKOUT__ADDRESS_LOCALHOST' ) ) {
|
234 |
+
define( 'FS_CHECKOUT__ADDRESS_LOCALHOST', 'http://checkout.freemius-local.com:8080' );
|
235 |
+
}
|
236 |
+
|
237 |
+
if ( ! defined( 'FS_CHECKOUT__ADDRESS' ) ) {
|
238 |
+
define( 'FS_CHECKOUT__ADDRESS', ( WP_FS__IS_PRODUCTION_MODE ? FS_CHECKOUT__ADDRESS_PRODUCTION : FS_CHECKOUT__ADDRESS_LOCALHOST ) );
|
239 |
+
}
|
240 |
+
|
241 |
+
#endregion
|
242 |
+
|
243 |
+
define( 'WP_FS___OPTION_PREFIX', 'fs' . ( WP_FS__IS_PRODUCTION_MODE ? '' : '_dbg' ) . '_' );
|
244 |
+
|
245 |
+
if ( ! defined( 'WP_FS__ACCOUNTS_OPTION_NAME' ) ) {
|
246 |
+
define( 'WP_FS__ACCOUNTS_OPTION_NAME', WP_FS___OPTION_PREFIX . 'accounts' );
|
247 |
+
}
|
248 |
+
if ( ! defined( 'WP_FS__API_CACHE_OPTION_NAME' ) ) {
|
249 |
+
define( 'WP_FS__API_CACHE_OPTION_NAME', WP_FS___OPTION_PREFIX . 'api_cache' );
|
250 |
+
}
|
251 |
+
if ( ! defined( 'WP_FS__GDPR_OPTION_NAME' ) ) {
|
252 |
+
define( 'WP_FS__GDPR_OPTION_NAME', WP_FS___OPTION_PREFIX . 'gdpr' );
|
253 |
+
}
|
254 |
+
define( 'WP_FS__OPTIONS_OPTION_NAME', WP_FS___OPTION_PREFIX . 'options' );
|
255 |
+
|
256 |
+
/**
|
257 |
+
* Module types
|
258 |
+
*
|
259 |
+
* @since 1.2.2
|
260 |
+
*/
|
261 |
+
define( 'WP_FS__MODULE_TYPE_PLUGIN', 'plugin' );
|
262 |
+
define( 'WP_FS__MODULE_TYPE_THEME', 'theme' );
|
263 |
+
|
264 |
+
/**
|
265 |
+
* Billing Frequencies
|
266 |
+
*/
|
267 |
+
define( 'WP_FS__PERIOD_ANNUALLY', 'annual' );
|
268 |
+
define( 'WP_FS__PERIOD_MONTHLY', 'monthly' );
|
269 |
+
define( 'WP_FS__PERIOD_LIFETIME', 'lifetime' );
|
270 |
+
|
271 |
+
/**
|
272 |
+
* Plans
|
273 |
+
*/
|
274 |
+
define( 'WP_FS__PLAN_DEFAULT_PAID', false );
|
275 |
+
define( 'WP_FS__PLAN_FREE', 'free' );
|
276 |
+
define( 'WP_FS__PLAN_TRIAL', 'trial' );
|
277 |
+
|
278 |
+
/**
|
279 |
+
* Times in seconds
|
280 |
+
*/
|
281 |
+
if ( ! defined( 'WP_FS__TIME_5_MIN_IN_SEC' ) ) {
|
282 |
+
define( 'WP_FS__TIME_5_MIN_IN_SEC', 300 );
|
283 |
+
}
|
284 |
+
if ( ! defined( 'WP_FS__TIME_10_MIN_IN_SEC' ) ) {
|
285 |
+
define( 'WP_FS__TIME_10_MIN_IN_SEC', 600 );
|
286 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
// define( 'WP_FS__TIME_15_MIN_IN_SEC', 900 );
|
288 |
+
if ( ! defined( 'WP_FS__TIME_12_HOURS_IN_SEC' ) ) {
|
289 |
+
define( 'WP_FS__TIME_12_HOURS_IN_SEC', 43200 );
|
290 |
+
}
|
291 |
+
if ( ! defined( 'WP_FS__TIME_24_HOURS_IN_SEC' ) ) {
|
292 |
+
define( 'WP_FS__TIME_24_HOURS_IN_SEC', WP_FS__TIME_12_HOURS_IN_SEC * 2 );
|
293 |
+
}
|
294 |
+
if ( ! defined( 'WP_FS__TIME_WEEK_IN_SEC' ) ) {
|
295 |
+
define( 'WP_FS__TIME_WEEK_IN_SEC', 7 * WP_FS__TIME_24_HOURS_IN_SEC );
|
296 |
+
}
|
297 |
+
|
298 |
+
#--------------------------------------------------------------------------------
|
299 |
+
#region Debugging
|
300 |
+
#--------------------------------------------------------------------------------
|
301 |
+
|
302 |
+
if ( ! defined( 'WP_FS__DEBUG_SDK' ) ) {
|
303 |
+
$debug_mode = get_option( 'fs_debug_mode', null );
|
304 |
+
|
305 |
+
if ( $debug_mode === null ) {
|
306 |
+
$debug_mode = false;
|
307 |
+
add_option( 'fs_debug_mode', $debug_mode );
|
308 |
+
}
|
309 |
+
|
310 |
+
define( 'WP_FS__DEBUG_SDK', is_numeric( $debug_mode ) ? ( 0 < $debug_mode ) : WP_FS__DEV_MODE );
|
311 |
+
}
|
312 |
+
|
313 |
+
if ( ! defined( 'WP_FS__ECHO_DEBUG_SDK' ) ) {
|
314 |
+
define( 'WP_FS__ECHO_DEBUG_SDK', WP_FS__DEV_MODE && ! empty( $_GET['fs_dbg_echo'] ) );
|
315 |
+
}
|
316 |
+
if ( ! defined( 'WP_FS__LOG_DATETIME_FORMAT' ) ) {
|
317 |
+
define( 'WP_FS__LOG_DATETIME_FORMAT', 'Y-m-d H:i:s' );
|
318 |
+
}
|
319 |
+
if ( ! defined( 'FS_API__LOGGER_ON' ) ) {
|
320 |
+
define( 'FS_API__LOGGER_ON', WP_FS__DEBUG_SDK );
|
321 |
+
}
|
322 |
+
|
323 |
+
if ( WP_FS__ECHO_DEBUG_SDK ) {
|
324 |
+
error_reporting( E_ALL );
|
325 |
+
}
|
326 |
+
|
327 |
+
#endregion
|
328 |
+
|
329 |
+
if ( ! defined( 'WP_FS__SCRIPT_START_TIME' ) ) {
|
330 |
+
define( 'WP_FS__SCRIPT_START_TIME', time() );
|
331 |
+
}
|
332 |
+
if ( ! defined( 'WP_FS__DEFAULT_PRIORITY' ) ) {
|
333 |
+
define( 'WP_FS__DEFAULT_PRIORITY', 10 );
|
334 |
+
}
|
335 |
+
if ( ! defined( 'WP_FS__LOWEST_PRIORITY' ) ) {
|
336 |
+
define( 'WP_FS__LOWEST_PRIORITY', 999999999 );
|
337 |
+
}
|
338 |
+
|
339 |
+
#--------------------------------------------------------------------------------
|
340 |
+
#region Multisite Network
|
341 |
+
#--------------------------------------------------------------------------------
|
342 |
+
|
343 |
+
/**
|
344 |
+
* Do not use this define directly, it will have the wrong value
|
345 |
+
* during plugin uninstall/deletion when the inclusion of the plugin
|
346 |
+
* is triggered due to registration with register_uninstall_hook().
|
347 |
+
*
|
348 |
+
* Instead, use fs_is_network_admin().
|
349 |
+
*
|
350 |
+
* @author Vova Feldman (@svovaf)
|
351 |
+
*/
|
352 |
+
if ( ! defined( 'WP_FS__IS_NETWORK_ADMIN' ) ) {
|
353 |
+
define( 'WP_FS__IS_NETWORK_ADMIN',
|
354 |
+
is_network_admin() ||
|
355 |
+
( is_multisite() &&
|
356 |
+
( ( defined( 'DOING_AJAX' ) && DOING_AJAX &&
|
357 |
+
( isset( $_REQUEST['_fs_network_admin'] ) /*||
|
358 |
+
( ! empty( $_REQUEST['action'] ) && 'delete-plugin' === $_REQUEST['action'] )*/ )
|
359 |
+
) ||
|
360 |
+
// Plugin uninstall.
|
361 |
+
defined( 'WP_UNINSTALL_PLUGIN' ) )
|
362 |
+
)
|
363 |
+
);
|
364 |
+
}
|
365 |
+
|
366 |
+
/**
|
367 |
+
* Do not use this define directly, it will have the wrong value
|
368 |
+
* during plugin uninstall/deletion when the inclusion of the plugin
|
369 |
+
* is triggered due to registration with register_uninstall_hook().
|
370 |
+
*
|
371 |
+
* Instead, use fs_is_blog_admin().
|
372 |
+
*
|
373 |
+
* @author Vova Feldman (@svovaf)
|
374 |
+
*/
|
375 |
+
if ( ! defined( 'WP_FS__IS_BLOG_ADMIN' ) ) {
|
376 |
+
define( 'WP_FS__IS_BLOG_ADMIN', is_blog_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $_REQUEST['_fs_blog_admin'] ) ) );
|
377 |
+
}
|
378 |
+
|
379 |
+
if ( ! defined( 'WP_FS__SHOW_NETWORK_EVEN_WHEN_DELEGATED' ) ) {
|
380 |
+
// Set to true to show network level settings even if delegated to site admins.
|
381 |
+
define( 'WP_FS__SHOW_NETWORK_EVEN_WHEN_DELEGATED', false );
|
382 |
+
}
|
383 |
+
|
384 |
+
#endregion
|
385 |
+
|
386 |
+
if ( ! defined( 'WP_FS__DEMO_MODE' ) ) {
|
387 |
+
define( 'WP_FS__DEMO_MODE', false );
|
388 |
+
}
|
freemius/includes/class-freemius-abstract.php
CHANGED
@@ -359,7 +359,7 @@
|
|
359 |
#----------------------------------------------------------------------------------
|
360 |
|
361 |
/**
|
362 |
-
* Check if
|
363 |
*
|
364 |
* @since 1.0.4
|
365 |
*
|
359 |
#----------------------------------------------------------------------------------
|
360 |
|
361 |
/**
|
362 |
+
* Check if the user is on the free plan of the product.
|
363 |
*
|
364 |
* @since 1.0.4
|
365 |
*
|
freemius/includes/class-freemius.php
CHANGED
@@ -1,14323 +1,20822 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
/**
|
15 |
-
* SDK Version
|
16 |
-
*
|
17 |
-
|