diff --git a/phpcs.xml b/phpcs.xml index 2398be0..2c8ea97 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -13,12 +13,7 @@ - - - - - - + diff --git a/views/widget-form.php b/views/widget-form.php index cc19bcf..c178a31 100644 --- a/views/widget-form.php +++ b/views/widget-form.php @@ -42,49 +42,25 @@ defined( 'ABSPATH' ) || exit; @@ -101,9 +77,14 @@ defined( 'ABSPATH' ) || exit; - /> + get_field_id( 'highlight' ) ) . '" + name="' . esc_attr( $this->get_field_name( 'highlight' ) ) . '" + type="checkbox" + value="1" + ' . ( ( '1' === $highlight ) ? ' checked' : '' ) . '/>'; + ?> + @@ -118,9 +99,15 @@ defined( 'ABSPATH' ) || exit; - /> + get_field_id( 'ajax' ) ) . '" + name="' . esc_attr( $this->get_field_name( 'ajax' ) ) . '" + type="checkbox" + value="1" + ' . ( ( '1' === $ajax ) ? ' checked' : '' ) . '/>'; + + ?>