From 4be7b15f67e716f97e2263ed50a6ae0daefbe069 Mon Sep 17 00:00:00 2001 From: Vijeta Raikar <110518282+vijetaR@users.noreply.github.com> Date: Tue, 23 Jul 2024 15:36:58 +0530 Subject: [PATCH] phpcs --- .../flip-box/flip-box-bb-2-2-compatibility.php | 16 ++++++++-------- .../flip-box-bb-less-than-2-2-compatibility.php | 16 ++++++++-------- .../info-list/info-list-bb-2-2-compatibility.php | 8 ++++---- .../info-list-bb-less-than-2-2-compatibility.php | 8 ++++---- modules/info-list/info-list.php | 2 +- .../info-table-bb-2-2-compatibility.php | 16 ++++++++-------- ...info-table-bb-less-than-2-2-compatibility.php | 16 ++++++++-------- modules/ribbon/includes/frontend.php | 4 ++-- modules/ribbon/ribbon-bb-2-2-compatibility.php | 8 ++++---- .../ribbon-bb-less-than-2-2-compatibility.php | 8 ++++---- modules/slide-box/includes/frontend.php | 2 +- .../slide-box/slide-box-bb-2-2-compatibility.php | 16 ++++++++-------- .../slide-box-bb-less-than-2-2-compatibility.php | 16 ++++++++-------- .../uabb-heading-bb-2-2-compatibility.php | 16 ++++++++-------- ...bb-heading-bb-less-than-2-2-compatibility.php | 16 ++++++++-------- 15 files changed, 84 insertions(+), 84 deletions(-) diff --git a/modules/flip-box/flip-box-bb-2-2-compatibility.php b/modules/flip-box/flip-box-bb-2-2-compatibility.php index 5d03758..efbc48b 100644 --- a/modules/flip-box/flip-box-bb-2-2-compatibility.php +++ b/modules/flip-box/flip-box-bb-2-2-compatibility.php @@ -575,11 +575,11 @@ 'title' => __( 'Front Title', 'uabb' ), 'fields' => array( 'front_title_typography_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Title Tag', 'uabb' ), - 'default' => 'h2', + 'type' => 'select', + 'label' => __( 'Title Tag', 'uabb' ), + 'default' => 'h2', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h2' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), @@ -670,11 +670,11 @@ 'title' => __( 'Back Title', 'uabb' ), 'fields' => array( 'back_title_typography_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Title Tag', 'uabb' ), - 'default' => 'h2', + 'type' => 'select', + 'label' => __( 'Title Tag', 'uabb' ), + 'default' => 'h2', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h2' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), diff --git a/modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php b/modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php index bb2acae..c02e925 100644 --- a/modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php +++ b/modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php @@ -653,11 +653,11 @@ 'title' => __( 'Front Title', 'uabb' ), 'fields' => array( 'front_title_typography_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Title Tag', 'uabb' ), - 'default' => 'h2', + 'type' => 'select', + 'label' => __( 'Title Tag', 'uabb' ), + 'default' => 'h2', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h2' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), @@ -816,11 +816,11 @@ 'title' => __( 'Back Title', 'uabb' ), 'fields' => array( 'back_title_typography_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Title Tag', 'uabb' ), - 'default' => 'h2', + 'type' => 'select', + 'label' => __( 'Title Tag', 'uabb' ), + 'default' => 'h2', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h2' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), diff --git a/modules/info-list/info-list-bb-2-2-compatibility.php b/modules/info-list/info-list-bb-2-2-compatibility.php index 2d4562d..c7d6897 100644 --- a/modules/info-list/info-list-bb-2-2-compatibility.php +++ b/modules/info-list/info-list-bb-2-2-compatibility.php @@ -243,11 +243,11 @@ 'title' => __( 'Title', 'uabb' ), 'fields' => array( 'heading_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Select Tag', 'uabb' ), - 'default' => 'h3', + 'type' => 'select', + 'label' => __( 'Select Tag', 'uabb' ), + 'default' => 'h3', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h3' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), diff --git a/modules/info-list/info-list-bb-less-than-2-2-compatibility.php b/modules/info-list/info-list-bb-less-than-2-2-compatibility.php index 960a6bb..dcacf6d 100644 --- a/modules/info-list/info-list-bb-less-than-2-2-compatibility.php +++ b/modules/info-list/info-list-bb-less-than-2-2-compatibility.php @@ -230,11 +230,11 @@ 'title' => __( 'Title', 'uabb' ), 'fields' => array( 'heading_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Select Tag', 'uabb' ), - 'default' => 'h3', + 'type' => 'select', + 'label' => __( 'Select Tag', 'uabb' ), + 'default' => 'h3', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h3' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), diff --git a/modules/info-list/info-list.php b/modules/info-list/info-list.php index 6a0e3a0..4e4d5f4 100644 --- a/modules/info-list/info-list.php +++ b/modules/info-list/info-list.php @@ -167,7 +167,7 @@ public function render_each_item( $item, $list_item_counter ) { // Define a whitelist of allowed tags. $allowed_tags = array( 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'p', 'span' ); $infolist_tag = in_array( $this->settings->heading_tag_selection, $allowed_tags ) ? $this->settings->heading_tag_selection : 'h3'; - echo '<' . esc_attr( $infolist_tag ) . ' class="uabb-info-list-title">'; + echo '<' . esc_attr( $infolist_tag ) . ' class="uabb-info-list-title">'; if ( ! empty( $item->list_item_link ) && 'list-title' === $item->list_item_link && ! empty( $item->list_item_url ) ) { echo ''; diff --git a/modules/info-table/info-table-bb-2-2-compatibility.php b/modules/info-table/info-table-bb-2-2-compatibility.php index e223ffc..cf2b7c5 100644 --- a/modules/info-table/info-table-bb-2-2-compatibility.php +++ b/modules/info-table/info-table-bb-2-2-compatibility.php @@ -733,11 +733,11 @@ 'title' => __( 'Heading', 'uabb' ), 'fields' => array( 'heading_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Select Tag', 'uabb' ), - 'default' => 'h3', + 'type' => 'select', + 'label' => __( 'Select Tag', 'uabb' ), + 'default' => 'h3', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h3' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), @@ -772,11 +772,11 @@ 'title' => __( 'Sub Heading', 'uabb' ), 'fields' => array( 'sub_heading_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Select Tag', 'uabb' ), - 'default' => 'h5', + 'type' => 'select', + 'label' => __( 'Select Tag', 'uabb' ), + 'default' => 'h5', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h5' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), diff --git a/modules/info-table/info-table-bb-less-than-2-2-compatibility.php b/modules/info-table/info-table-bb-less-than-2-2-compatibility.php index 78c454a..c871960 100644 --- a/modules/info-table/info-table-bb-less-than-2-2-compatibility.php +++ b/modules/info-table/info-table-bb-less-than-2-2-compatibility.php @@ -718,11 +718,11 @@ 'title' => __( 'Heading', 'uabb' ), 'fields' => array( 'heading_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Select Tag', 'uabb' ), - 'default' => 'h3', + 'type' => 'select', + 'label' => __( 'Select Tag', 'uabb' ), + 'default' => 'h3', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h3' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), @@ -794,11 +794,11 @@ 'title' => __( 'Sub Heading', 'uabb' ), 'fields' => array( 'sub_heading_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Select Tag', 'uabb' ), - 'default' => 'h5', + 'type' => 'select', + 'label' => __( 'Select Tag', 'uabb' ), + 'default' => 'h5', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h5' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), diff --git a/modules/ribbon/includes/frontend.php b/modules/ribbon/includes/frontend.php index 244c82a..07bbe1c 100644 --- a/modules/ribbon/includes/frontend.php +++ b/modules/ribbon/includes/frontend.php @@ -16,7 +16,7 @@ $ribbon_tag = in_array( $settings->text_tag_selection, $allowed_tags ) ? $settings->text_tag_selection : 'h3'; ?>
- < class="uabb-ribbon"> + < class="uabb-ribbon">
- > + > diff --git a/modules/ribbon/ribbon-bb-2-2-compatibility.php b/modules/ribbon/ribbon-bb-2-2-compatibility.php index 50a40e2..6438247 100644 --- a/modules/ribbon/ribbon-bb-2-2-compatibility.php +++ b/modules/ribbon/ribbon-bb-2-2-compatibility.php @@ -179,11 +179,11 @@ 'title' => __( 'Ribbon Text', 'uabb' ), 'fields' => array( 'text_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Tag', 'uabb' ), - 'default' => 'h3', + 'type' => 'select', + 'label' => __( 'Tag', 'uabb' ), + 'default' => 'h3', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h3' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), diff --git a/modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php b/modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php index d674471..053d9be 100644 --- a/modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php +++ b/modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php @@ -174,11 +174,11 @@ 'title' => __( 'Ribbon Text', 'uabb' ), 'fields' => array( 'text_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Tag', 'uabb' ), - 'default' => 'h3', + 'type' => 'select', + 'label' => __( 'Tag', 'uabb' ), + 'default' => 'h3', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h3' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), diff --git a/modules/slide-box/includes/frontend.php b/modules/slide-box/includes/frontend.php index c1cfc69..108084e 100644 --- a/modules/slide-box/includes/frontend.php +++ b/modules/slide-box/includes/frontend.php @@ -43,7 +43,7 @@ $front_title_tag = in_array( $settings->front_title_tag_selection, $allowed_tags ) ? $settings->front_title_tag_selection : 'h3'; ?> title_front ) { ?> - -->< class="uabb-slide-face-text-title">title_front; ?>>< class="uabb-slide-face-text-title">title_front; ?>>
diff --git a/modules/slide-box/slide-box-bb-2-2-compatibility.php b/modules/slide-box/slide-box-bb-2-2-compatibility.php index 181bac1..ba1a8c5 100644 --- a/modules/slide-box/slide-box-bb-2-2-compatibility.php +++ b/modules/slide-box/slide-box-bb-2-2-compatibility.php @@ -674,11 +674,11 @@ 'title' => __( 'Front Title', 'uabb' ), 'fields' => array( 'front_title_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Tag', 'uabb' ), - 'default' => 'h3', + 'type' => 'select', + 'label' => __( 'Tag', 'uabb' ), + 'default' => 'h3', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h3' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), @@ -782,11 +782,11 @@ 'title' => __( 'Back Title', 'uabb' ), 'fields' => array( 'back_title_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Tag', 'uabb' ), - 'default' => 'h3', + 'type' => 'select', + 'label' => __( 'Tag', 'uabb' ), + 'default' => 'h3', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h3' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), diff --git a/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php b/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php index ad845d8..8a8eccb 100644 --- a/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php +++ b/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php @@ -699,11 +699,11 @@ 'title' => __( 'Front Title', 'uabb' ), 'fields' => array( 'front_title_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Tag', 'uabb' ), - 'default' => 'h3', + 'type' => 'select', + 'label' => __( 'Tag', 'uabb' ), + 'default' => 'h3', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h3' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), @@ -871,11 +871,11 @@ 'title' => __( 'Back Title', 'uabb' ), 'fields' => array( 'back_title_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Tag', 'uabb' ), - 'default' => 'h3', + 'type' => 'select', + 'label' => __( 'Tag', 'uabb' ), + 'default' => 'h3', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h3' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), diff --git a/modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php b/modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php index 4497718..f4c9f3e 100644 --- a/modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php +++ b/modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php @@ -312,11 +312,11 @@ 'title' => __( 'Heading', 'uabb' ), 'fields' => array( 'tag' => array( - 'type' => 'select', - 'label' => __( 'HTML Tag', 'uabb' ), - 'default' => 'h3', + 'type' => 'select', + 'label' => __( 'HTML Tag', 'uabb' ), + 'default' => 'h3', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h3' ), - 'options' => array( + 'options' => array( 'h1' => 'h1', 'h2' => 'h2', 'h3' => 'h3', @@ -465,11 +465,11 @@ 'title' => __( 'Separator Text Typography', 'uabb' ), 'fields' => array( 'separator_text_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Text Tag', 'uabb' ), - 'default' => 'h3', + 'type' => 'select', + 'label' => __( 'Text Tag', 'uabb' ), + 'default' => 'h3', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h3' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ), diff --git a/modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php b/modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php index 05eccec..dbe0cbf 100644 --- a/modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php +++ b/modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php @@ -322,11 +322,11 @@ 'title' => __( 'Heading', 'uabb' ), 'fields' => array( 'tag' => array( - 'type' => 'select', - 'label' => __( 'HTML Tag', 'uabb' ), - 'default' => 'h3', + 'type' => 'select', + 'label' => __( 'HTML Tag', 'uabb' ), + 'default' => 'h3', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h3' ), - 'options' => array( + 'options' => array( 'h1' => 'h1', 'h2' => 'h2', 'h3' => 'h3', @@ -547,11 +547,11 @@ 'title' => __( 'Separator Text Typography', 'uabb' ), 'fields' => array( 'separator_text_tag_selection' => array( - 'type' => 'select', - 'label' => __( 'Text Tag', 'uabb' ), - 'default' => 'h3', + 'type' => 'select', + 'label' => __( 'Text Tag', 'uabb' ), + 'default' => 'h3', 'sanitize' => array( 'FLBuilderUtils::esc_tags', 'h3' ), - 'options' => array( + 'options' => array( 'h1' => __( 'H1', 'uabb' ), 'h2' => __( 'H2', 'uabb' ), 'h3' => __( 'H3', 'uabb' ),