Skip to content

Commit

Permalink
Merge pull request #702 from dhanendran/fix/501-remove-registration
Browse files Browse the repository at this point in the history
Hiding registration notice when it's registered
  • Loading branch information
jeffpaul authored Jan 27, 2021
2 parents b6e10ee + c2f0ff5 commit f517788
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions includes/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,12 @@ function license_key_callback() {
<input name="dt_settings[license_key]" type="text" placeholder="<?php esc_html_e( 'Registration Key', 'distributor' ); ?>" value="<?php echo esc_attr( $license_key ); ?>" id="dt_settings_license_key">
</div>

<p class="description">
<?php echo wp_kses_post( __( 'Registration is 100% free and provides update notifications and upgrades inside the dashboard. <a href="https://distributorplugin.com/#cta">Register for your key</a>.', 'distributor' ) ); ?>
</p>
<?php if ( true !== $settings['valid_license'] ) : ?>
<p class="description">
<?php echo wp_kses_post( __( 'Registration is 100% free and provides update notifications and upgrades inside the dashboard. <a href="https://distributorplugin.com/#cta">Register for your key</a>.', 'distributor' ) ); ?>
</p>
<?php
endif;
}

/**
Expand Down Expand Up @@ -363,9 +365,11 @@ function network_settings_screen() {
<input name="dt_settings[email]" type="email" placeholder="<?php esc_html_e( 'Email', 'distributor' ); ?>" value="<?php echo esc_attr( $email ); ?>"> <input name="dt_settings[license_key]" type="text" placeholder="<?php esc_html_e( 'Registration Key', 'distributor' ); ?>" value="<?php echo esc_attr( $license_key ); ?>">
</div>

<p class="description">
<?php echo wp_kses_post( __( 'Registration is 100% free and provides update notifications and upgrades inside the dashboard. <a href="https://distributorplugin.com/#cta">Register for your key</a>.', 'distributor' ) ); ?>
</p>
<?php if ( true !== $settings['valid_license'] ) : ?>
<p class="description">
<?php echo wp_kses_post( __( 'Registration is 100% free and provides update notifications and upgrades inside the dashboard. <a href="https://distributorplugin.com/#cta">Register for your key</a>.', 'distributor' ) ); ?>
</p>
<?php endif; ?>
</td>
</tr>
</tbody>
Expand Down

0 comments on commit f517788

Please sign in to comment.