Plugin Directory


Ignore:
Timestamp:
10/15/2026 07:29:29 PM (4 days ago)
Author:
roxyapi
Message:

Update to version 1.21.0 from GitHub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roxyapi/trunk/src/Generated/Forms/GetChoghadiyaForm.php

    r3747703 r3749195  
    1919
    2020        public static function spec(): array {
     21                $labels = \RoxyAPI\Generated\FormLabels::for_language( \RoxyAPI\Support\Language::from_locale( determine_locale() ) );
    2122                return array(
    2223                        'operation_id' => 'getChoghadiya',
    2324                        'title'        => __( 'Choghadiya', 'roxyapi' ),
    2425                        'submit_label' => __( 'Get reading', 'roxyapi' ),
    25                         'fold_optional' => true,
     26                        'locations'    => array( array( 'anchor' => 'latitude', 'section' => '', 'id' => '', 'fields' => array( 'latitude' => 'latitude', 'longitude' => 'longitude', 'timezone' => 'timezone' ) ) ),
    2627                        'sections'     => array(
    2728
    … …  
    3031                                array(
    3132                                        'name' => 'date',
    32                                         'label' => __( 'Date', 'roxyapi' ),
     33                                        'label' => $labels['fields']['date'] ?? 'Date',
    3334                                        'required' => true,
    34                                         'help' => __( 'Date in YYYY-MM-DD format', 'roxyapi' ),
    3535                                        'type' => 'date',
     36                                        'fold' => false,
    3637                                ),
    3738                                array(
    3839                                        'name' => 'latitude',
    39                                         'label' => __( 'Latitude', 'roxyapi' ),
     40                                        'label' => $labels['fields']['latitude'] ?? 'Latitude',
    4041                                        'required' => true,
    41                                         'help' => __( 'Observer latitude in decimal degrees', 'roxyapi' ),
    4242                                        'type' => 'number',
    4343                                        'min' => -90,
    4444                                        'max' => 90,
    4545                                        'step' => 'any',
     46                                        'fold' => false,
    4647                                ),
    4748                                array(
    4849                                        'name' => 'longitude',
    49                                         'label' => __( 'Longitude', 'roxyapi' ),
     50                                        'label' => $labels['fields']['longitude'] ?? 'Longitude',
    5051                                        'required' => true,
    51                                         'help' => __( 'Observer longitude in decimal degrees', 'roxyapi' ),
    5252                                        'type' => 'number',
    5353                                        'min' => -180,
    5454                                        'max' => 180,
    5555                                        'step' => 'any',
     56                                        'fold' => false,
    5657                                ),
    5758                                array(
    5859                                        'name' => 'timezone',
    59                                         'label' => __( 'Timezone', 'roxyapi' ),
     60                                        'label' => $labels['fields']['timezone'] ?? 'Timezone',
    6061                                        'required' => false,
    6162                                        'help' => __( 'Select the timezone of the location.', 'roxyapi' ),
    6263                                        'type' => 'timezone',
     64                                        'min' => -14,
     65                                        'max' => 14,
     66                                        'default' => 5.5,
     67                                        'fold' => false,
    6368                                ),
    6469                        ),
Note: See TracChangeset for help on using the changeset viewer.