Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
vijetaR committed Jul 23, 2024
1 parent 1d3c1c8 commit 4be7b15
Show file tree
Hide file tree
Showing 15 changed files with 84 additions and 84 deletions.
16 changes: 8 additions & 8 deletions modules/flip-box/flip-box-bb-2-2-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down Expand Up @@ -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' ),
Expand Down
16 changes: 8 additions & 8 deletions modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down Expand Up @@ -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' ),
Expand Down
8 changes: 4 additions & 4 deletions modules/info-list/info-list-bb-2-2-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down
2 changes: 1 addition & 1 deletion modules/info-list/info-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<a href="' . $item->list_item_url . '" target="' . $target . '" ' . UABB_Helper::get_link_rel( $target, $nofollow, 0 ) . '>';
Expand Down
16 changes: 8 additions & 8 deletions modules/info-table/info-table-bb-2-2-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down Expand Up @@ -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' ),
Expand Down
16 changes: 8 additions & 8 deletions modules/info-table/info-table-bb-less-than-2-2-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down Expand Up @@ -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' ),
Expand Down
4 changes: 2 additions & 2 deletions modules/ribbon/includes/frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
$ribbon_tag = in_array( $settings->text_tag_selection, $allowed_tags ) ? $settings->text_tag_selection : 'h3';
?>
<div class="uabb-ribbon-wrap">
<<?php echo esc_attr( $ribbon_tag ) ; ?> class="uabb-ribbon">
<<?php echo esc_attr( $ribbon_tag ); ?> class="uabb-ribbon">
<span class="uabb-left-ribb flips"><i class="<?php echo $settings->left_icon; ?>"></i></span>
<span class="uabb-ribbon-text">
<?php
Expand All @@ -30,5 +30,5 @@
<div class="uabb-ribbon-stitches-bottom"></div> <?php } ?>
</span>
<span class="uabb-right-ribb flips"><i class="<?php echo $settings->right_icon; ?>"></i></span>
</<?php echo esc_attr( $ribbon_tag ) ; ?>>
</<?php echo esc_attr( $ribbon_tag ); ?>>
</div>
8 changes: 4 additions & 4 deletions modules/ribbon/ribbon-bb-2-2-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down
8 changes: 4 additions & 4 deletions modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down
2 changes: 1 addition & 1 deletion modules/slide-box/includes/frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
$front_title_tag = in_array( $settings->front_title_tag_selection, $allowed_tags ) ? $settings->front_title_tag_selection : 'h3';
?>
<?php if ( '' != $settings->title_front ) { ?>
--><<?php echo esc_attr( $front_title_tag ) ; ?> class="uabb-slide-face-text-title"><?php echo $settings->title_front; ?></<?php echo esc_attr( $front_title_tag ); ?>><!-- Inline Block Space Fix
--><<?php echo esc_attr( $front_title_tag ); ?> class="uabb-slide-face-text-title"><?php echo $settings->title_front; ?></<?php echo esc_attr( $front_title_tag ); ?>><!-- Inline Block Space Fix
<?php } ?>
<?php if ( 'none' != $settings->image_type && 'right-title' == $pos ) : ?>
--><div class="uabb-slide-front-right-title-img">
Expand Down
16 changes: 8 additions & 8 deletions modules/slide-box/slide-box-bb-2-2-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down Expand Up @@ -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' ),
Expand Down
16 changes: 8 additions & 8 deletions modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down Expand Up @@ -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' ),
Expand Down
16 changes: 8 additions & 8 deletions modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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' ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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' ),
Expand Down

0 comments on commit 4be7b15

Please sign in to comment.