Skip to content

Commit

Permalink
Merge pull request #235 from Freemius/develop
Browse files Browse the repository at this point in the history
GDPR Compliance + Premium Theme Update Fix
  • Loading branch information
vovafeldman authored May 25, 2018
2 parents 7059f9e + 9bf49a7 commit 937d96a
Show file tree
Hide file tree
Showing 50 changed files with 12,708 additions and 4,829 deletions.
2 changes: 1 addition & 1 deletion assets/css/admin/connect.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/css/admin/gdpr-optin-notice.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

81 changes: 81 additions & 0 deletions assets/scss/admin/_gdpr-consent.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#fs_marketing_optin
{
display: none;
margin-top: 10px;
border: 1px solid #ccc;
padding: 10px;
line-height: 1.5em;

.fs-message
{
display: block;
margin-bottom: 5px;
font-size: 1.05em;
font-weight: 600;
}

&.error
{
border: 1px solid $fs-logo-magenta-color;
background: #fee;

.fs-message
{
color: $fs-logo-magenta-color;
}
}

.fs-input-container
{
margin-top: 5px;

label
{
margin-top: 5px;
display: block;

input
{
float: left;
margin: 1px 0 0 0;
}

&:first-child
{
display: block;
margin-bottom: 2px;
}
}
}

.fs-input-label
{
display: block;
margin-left: 20px;

.underlined
{
text-decoration: underline;
}
}
}

.rtl
{
#fs_marketing_optin
{
.fs-input-container
{
label input
{
float: right;
}
}

.fs-input-label
{
margin-left: 0;
margin-right: 20px;
}
}
}
1 change: 1 addition & 0 deletions assets/scss/admin/connect.scss
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ $form_width: 480px;

@import "multisite-options";
@import "tooltip";
@import "gdpr-consent";

.rtl
{
Expand Down
17 changes: 17 additions & 0 deletions assets/scss/admin/gdpr-optin-notice.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.fs-notice[data-id^="gdpr_optin_actions"]
{
.underlined {
text-decoration: underline;
}

ul {
.button, .action-description {
vertical-align: middle;
}

.action-description {
display: inline-block;
margin-left: 3px;
}
}
}
14 changes: 12 additions & 2 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@
if ( ! defined( 'WP_FS__API_CACHE_OPTION_NAME' ) ) {
define( 'WP_FS__API_CACHE_OPTION_NAME', WP_FS___OPTION_PREFIX . 'api_cache' );
}
if ( ! defined( 'WP_FS__GDPR_OPTION_NAME' ) ) {
define( 'WP_FS__GDPR_OPTION_NAME', WP_FS___OPTION_PREFIX . 'gdpr' );
}
define( 'WP_FS__OPTIONS_OPTION_NAME', WP_FS___OPTION_PREFIX . 'options' );

/**
Expand Down Expand Up @@ -282,8 +285,11 @@
define( 'WP_FS__TIME_10_MIN_IN_SEC', 600 );
}
// define( 'WP_FS__TIME_15_MIN_IN_SEC', 900 );
if ( ! defined( 'WP_FS__TIME_12_HOURS_IN_SEC' ) ) {
define( 'WP_FS__TIME_12_HOURS_IN_SEC', 43200 );
}
if ( ! defined( 'WP_FS__TIME_24_HOURS_IN_SEC' ) ) {
define( 'WP_FS__TIME_24_HOURS_IN_SEC', 86400 );
define( 'WP_FS__TIME_24_HOURS_IN_SEC', WP_FS__TIME_12_HOURS_IN_SEC * 2 );
}
if ( ! defined( 'WP_FS__TIME_WEEK_IN_SEC' ) ) {
define( 'WP_FS__TIME_WEEK_IN_SEC', 7 * WP_FS__TIME_24_HOURS_IN_SEC );
Expand Down Expand Up @@ -375,4 +381,8 @@
define( 'WP_FS__SHOW_NETWORK_EVEN_WHEN_DELEGATED', false );
}

#endregion
#endregion

if ( ! defined( 'WP_FS__DEMO_MODE' ) ) {
define( 'WP_FS__DEMO_MODE', false );
}
2 changes: 1 addition & 1 deletion includes/class-freemius-abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ abstract function is_trial_utilized();
#----------------------------------------------------------------------------------

/**
* Check if plugin using the free plan.
* Check if the user is on the free plan of the product.
*
* @since 1.0.4
*
Expand Down
Loading

0 comments on commit 937d96a

Please sign in to comment.