true ], 'objects' ); if ( FPCA_GSC_ENABLED ) { $gsc = new GSC_Connector(); $gsc_connected = $gsc->is_connected(); $gsc_configured = $gsc->is_configured(); $gsc_property = $gsc->get_property(); $gsc_properties = $gsc->get_properties_list(); $gsc_mock = FPCA_GSC_MOCK; } ?>

array_merge( array_values( array_filter( $fields, fn( $f ) => ! $f['skipped'] ) ), array_values( array_filter( $fields, fn( $f ) => $f['skipped'] ) ) ); // Recursive closure for rendering a field node. $render_field = null; $render_field = function( array $field ) use ( &$render_field, $partition_fields ) { $li_class = $field['skipped'] ? 'fpca-field fpca-field--skipped' : 'fpca-field'; echo '
  • '; echo '
    '; echo '' . esc_html( $field['name'] ) . ''; echo '' . esc_html( $field['type'] ) . ''; echo '
    '; if ( ! $field['skipped'] && ! empty( $field['children'] ) ) { if ( 'flexible_content' === $field['type'] ) { echo '
      '; foreach ( $field['children'] as $layout ) { echo '
    • '; echo '
      '; echo '' . esc_html( $layout['layout_name'] ) . ''; echo '' . esc_html__( 'layout', 'freshplugins-content-audit' ) . ''; echo '
      '; if ( ! empty( $layout['fields'] ) ) { echo '
        '; foreach ( $partition_fields( $layout['fields'] ) as $lf ) { $render_field( $lf ); } echo '
      '; } echo '
    • '; } echo '
    '; } else { echo '
      '; foreach ( $partition_fields( $field['children'] ) as $child ) { $render_field( $child ); } echo '
    '; } } echo '
  • '; }; ?>