Skip to content

Commit

Permalink
Fixes for frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
n7studios committed Dec 6, 2024
1 parent ee2ba0d commit e33d721
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion admin/class-convertkit-admin-settings-restrict-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public function number_callback( $args ) {
esc_attr( $args['min'] ),
esc_attr( $args['max'] ),
esc_attr( $args['step'] ),
esc_html( $args['description'] ),
$args['description'], // phpcs:ignore WordPress.Security.EscapeOutput
array(
'widefat',
)
Expand Down
15 changes: 9 additions & 6 deletions views/frontend/restrict-content/tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@
// Output submit button, depending on whether Google reCAPTCHA is enabled.
if ( $this->restrict_content_settings->has_recaptcha_site_and_secret_keys() ) {
?>
<button class="wp-block-button__link wp-block-button__link g-recaptcha" data-sitekey="<?php echo esc_attr( $this->restrict_content_settings->get_recaptcha_site_key() ); ?>" data-callback="convertKitRestrictContentTagFormSubmit" data-action="convertkit_restrict_content_tag">
<?php echo esc_attr( $this->restrict_content_settings->get_by_key( 'subscribe_button_label' ) ); ?>
</button>
<input type="submit"
class="wp-block-button__link wp-block-button__link g-recaptcha"
data-sitekey="<?php echo esc_attr( $this->restrict_content_settings->get_recaptcha_site_key() ); ?>"
data-callback="convertKitRestrictContentTagFormSubmit"
data-action="convertkit_restrict_content_tag"
value="<?php echo esc_attr( $this->restrict_content_settings->get_by_key( 'subscribe_button_label' ) ); ?>" />
<?php
} else {
?>
<button class="wp-block-button__link wp-block-button__link">
<?php echo esc_attr( $this->restrict_content_settings->get_by_key( 'subscribe_button_label' ) ); ?>
</button>
<input type="submit"
class="wp-block-button__link wp-block-button__link"
value="<?php echo esc_attr( $this->restrict_content_settings->get_by_key( 'subscribe_button_label' ) ); ?>" />
<?php
}
?>
Expand Down

0 comments on commit e33d721

Please sign in to comment.