$visibility Field toggles. * @var array $labels Field labels. * @var array $forwp_field_presentation Label modes. * @var bool $show_geo_consent_button When true, visitor must tap to allow geolocation. * @var bool $show_location_search Location search form for visitors. * @var string $forwp_weather_search_field_id Unique id for the search input label. * @var string $forwp_weather_status_id Unique id for status text (aria-describedby). * @var string $forwp_weather_error_id Unique id for the error container. * @var string $forwp_instance_key Block instance key (matches data-forwp-instance). * @var bool $forwp_weather_output_json_ld When true, emit JSON-LD stub (filled after REST fetch). */ defined( 'ABSPATH' ) || exit; use ForWP\Weather\Field_Presentation; if ( empty( $forwp_field_presentation ) || ! is_array( $forwp_field_presentation ) ) { $forwp_field_presentation = Field_Presentation::resolve( array() ); } ?>

... ... ... * With lover for old school developer's habits... */ ?> $forwp_weather_label_text ) : ?> Field_Presentation::MODE_TEXT, 'icon' => 'map-pin', ); $forwp_weather_label_mode = isset( $forwp_weather_presentation_row['mode'] ) ? sanitize_key( (string) $forwp_weather_presentation_row['mode'] ) : Field_Presentation::MODE_TEXT; $forwp_weather_label_custom = Field_Presentation::has_custom_label( $forwp_weather_presentation_row ); ?>
—
must contain a space after the tag name (e.g.