= 1 && $picky_settings_tab_n <= 6 ) || 12 === $picky_settings_tab_n ) { $picky_shell_layout_class = ' picky-settings-shell--option-tabs'; } else { $picky_shell_layout_class = ' picky-settings-shell--app-tabs'; } ?>
true, 'class' => true, 'style' => true, 'data-tab' => true, 'role' => true, ) ); $allowed_html['p'] = array_merge( isset( $allowed_html['p'] ) ? $allowed_html['p'] : array(), array( 'class' => true, 'style' => true, ) ); $allowed_html['span'] = array_merge( isset( $allowed_html['span'] ) ? $allowed_html['span'] : array(), array( 'class' => true, 'style' => true, 'role' => true, 'aria-hidden' => true, ) ); $allowed_html['h2'] = array( 'class' => true, 'id' => true, ); $allowed_html['h3'] = array( 'class' => true, ); $allowed_html['h4'] = array( 'class' => true, ); $allowed_html['ul'] = array( 'class' => true, 'id' => true, 'role' => true, 'aria-label' => true, ); $allowed_html['ol'] = array( 'class' => true, ); $allowed_html['li'] = array( 'class' => true, ); $allowed_html['section'] = array( 'class' => true, ); $allowed_html['article'] = array( 'class' => true, ); $allowed_html['img'] = array( 'class' => true, 'src' => true, 'alt' => true, 'width' => true, 'height' => true, 'decoding' => true, 'loading' => true, ); $allowed_html['label'] = array( 'for' => true, 'class' => true, ); $allowed_html['fieldset'] = array( 'class' => true, ); $allowed_html['input'] = array( 'type' => true, 'id' => true, 'name' => true, 'value' => true, 'class' => true, 'min' => true, 'max' => true, 'step' => true, 'checked' => true, 'selected' => true, 'accept' => true, 'placeholder' => true, 'multiple' => true, ); $allowed_html['textarea'] = array( 'id' => true, 'name' => true, 'class' => true, 'rows' => true, 'cols' => true, 'style' => true, 'placeholder' => true, ); $allowed_html['select'] = array( 'id' => true, 'name' => true, 'class' => true, 'multiple' => true, 'style' => true, ); $allowed_html['option'] = array( 'value' => true, 'selected' => true, 'disabled' => true, ); $allowed_html['details'] = array( 'class' => true, 'id' => true, 'open' => true, ); $allowed_html['summary'] = array( 'class' => true, 'aria-label' => true, ); $allowed_html['iframe'] = array( 'src' => true, 'class' => true, 'title' => true, 'loading'=> true, 'style' => true, ); $allowed_html['table'] = array( 'class' => true, 'role' => true, ); $allowed_html['tbody'] = array( 'class' => true ); $allowed_html['thead'] = array( 'class' => true ); $allowed_html['tr'] = array( 'class' => true ); $allowed_html['th'] = array( 'scope' => true, 'class' => true, ); $allowed_html['td'] = array( 'class' => true ); $allowed_html['strong'] = array( 'class' => true ); $allowed_html['code'] = array( 'class' => true ); $allowed_html['a'] = array_merge( isset( $allowed_html['a'] ) ? $allowed_html['a'] : array(), array( 'href' => true, 'class' => true, 'id' => true, 'title' => true, 'data-tab' => true, 'role' => true, ) ); $allowed_html['button'] = array( 'type' => true, 'class' => true, 'title' => true, 'aria-expanded' => true, 'aria-hidden' => true, 'hidden' => true, 'data-title-expanded' => true, 'data-title-collapsed'=> true, ); $allowed_html['aside'] = array( 'class' => true, 'aria-label' => true, ); $has_markers = strpos( $fields, '' ) !== false && strpos( $fields, '' ) !== false; if ( $has_markers ) { $before_after = explode( '', $fields, 2 ); $before_form = $before_after[0]; $rest = isset( $before_after[1] ) ? $before_after[1] : ''; $mid_after = explode( '', $rest, 2 ); $inside_form = $mid_after[0]; $after_form = isset( $mid_after[1] ) ? $mid_after[1] : ''; /* * Before/after markers: nav + app panels + builder. Escaped via Admin helper * (wp_kses + restore of trusted data:image preset thumbs). */ // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- picky_escape_admin_shell_html() runs wp_kses; data:image URIs restored after. echo $this->picky_escape_admin_shell_html( $before_form ); ob_start(); settings_fields( $settings_group ); $settings_fields_out = ob_get_clean(); echo '
'; echo wp_kses( $settings_fields_out, array( 'input' => array( 'type' => true, 'id' => true, 'name' => true, 'value' => true, 'autocomplete' => true, ), ) ); echo wp_kses( $inside_form, $allowed_html ); echo '
'; submit_button( $submit_text ); echo '
'; echo '
'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- picky_escape_admin_shell_html() runs wp_kses; data:image URIs restored after. echo $this->picky_escape_admin_shell_html( $after_form ); } else { ?>