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/CalculatePersonalYearForm.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' => 'calculatePersonalYear',
    2324                        'title'        => __( 'Personal Year', 'roxyapi' ),
    2425                        'submit_label' => __( 'Get reading', 'roxyapi' ),
    25                         'fold_optional' => true,
     26                        'locations'    => array(  ),
    2627                        'sections'     => array(
    2728
    … …  
    3031                                array(
    3132                                        'name' => 'month',
    32                                         'label' => __( 'Month', 'roxyapi' ),
     33                                        'label' => $labels['fields']['month'] ?? 'Month',
    3334                                        'required' => true,
    34                                         'help' => __( 'Birth month (1-12)', 'roxyapi' ),
    3535                                        'type' => 'integer',
    3636                                        'min' => 1,
    3737                                        'max' => 12,
     38                                        'fold' => false,
    3839                                ),
    3940                                array(
    4041                                        'name' => 'day',
    41                                         'label' => __( 'Day', 'roxyapi' ),
     42                                        'label' => $labels['fields']['day'] ?? 'Day',
    4243                                        'required' => true,
    43                                         'help' => __( 'Birth day (1-31)', 'roxyapi' ),
    4444                                        'type' => 'integer',
    4545                                        'min' => 1,
    4646                                        'max' => 31,
     47                                        'fold' => false,
    4748                                ),
    4849                                array(
    4950                                        'name' => 'year',
    50                                         'label' => __( 'Year', 'roxyapi' ),
     51                                        'label' => $labels['fields']['year'] ?? 'Year',
    5152                                        'required' => false,
    52                                         'help' => __( 'Year to forecast', 'roxyapi' ),
    5353                                        'type' => 'integer',
    5454                                        'min' => 100,
    5555                                        'max' => 2100,
     56                                        'fold' => true,
    5657                                ),
    5758                        ),
Note: See TracChangeset for help on using the changeset viewer.