From b8d371999d1a2614750c8c39e453fd8b2c692f6c Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Thu, 14 Jun 2018 19:29:10 +0200 Subject: [PATCH] Code style correction for widget backend --- phpcs.xml | 7 +--- views/widget-form.php | 83 ++++++++++++++++++------------------------- 2 files changed, 36 insertions(+), 54 deletions(-) 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' : '' ) . '/>'; + + ?>