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/LookupAuspiciousDaysForm.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' => 'lookupAuspiciousDays',
    2324                        'title'        => __( 'Auspicious Days', 'roxyapi' ),
    2425                        'submit_label' => __( 'Get reading', 'roxyapi' ),
    25                         'fold_optional' => true,
     26                        'locations'    => array(  ),
    2627                        'sections'     => array(
    2728
    … …  
    3031                                array(
    3132                                        'name' => 'activity',
    32                                         'label' => __( 'Activity', 'roxyapi' ),
     33                                        'label' => $labels['fields']['activity'] ?? 'Activity',
    3334                                        'required' => true,
    34                                         'help' => __( 'Activity to choose a date for', 'roxyapi' ),
    3535                                        'type' => 'enum',
    3636                                        'enum' => array( 'wedding', 'travel', 'moving-house', 'opening-business', 'signing-contracts', 'construction', 'groundbreaking', 'burial', 'medical-treatment', 'praying' ),
     37                                        'enum_labels' => array( $labels['enums']['activity.wedding'] ?? 'Wedding', $labels['enums']['activity.travel'] ?? 'Travel', $labels['enums']['activity.moving-house'] ?? 'Moving house', $labels['enums']['activity.opening-business'] ?? 'Opening business', $labels['enums']['activity.signing-contracts'] ?? 'Signing contracts', $labels['enums']['activity.construction'] ?? 'Construction', $labels['enums']['activity.groundbreaking'] ?? 'Groundbreaking', $labels['enums']['activity.burial'] ?? 'Burial', $labels['enums']['activity.medical-treatment'] ?? 'Medical treatment', $labels['enums']['activity.praying'] ?? 'Praying' ),
     38                                        'fold' => false,
    3739                                ),
    3840                                array(
    3941                                        'name' => 'startDate',
    40                                         'label' => __( 'Start date', 'roxyapi' ),
     42                                        'label' => $labels['fields']['startDate'] ?? 'Start date',
    4143                                        'required' => true,
    42                                         'help' => __( 'First date of the range to search, inclusive.', 'roxyapi' ),
    4344                                        'type' => 'date',
     45                                        'fold' => false,
    4446                                ),
    4547                                array(
    4648                                        'name' => 'endDate',
    47                                         'label' => __( 'End date', 'roxyapi' ),
     49                                        'label' => $labels['fields']['endDate'] ?? 'End date',
    4850                                        'required' => true,
    49                                         'help' => __( 'Last date of the range to search, inclusive', 'roxyapi' ),
    5051                                        'type' => 'date',
     52                                        'fold' => false,
    5153                                ),
    5254                                array(
    5355                                        'name' => 'avoidAnimal',
    54                                         'label' => __( 'Avoid animal', 'roxyapi' ),
     56                                        'label' => $labels['fields']['avoidAnimal'] ?? 'Avoid clashes with',
    5557                                        'required' => false,
    56                                         'help' => __( 'Zodiac animal to protect', 'roxyapi' ),
    5758                                        'type' => 'enum',
    5859                                        'enum' => array( 'rat', 'ox', 'tiger', 'rabbit', 'dragon', 'snake', 'horse', 'goat', 'monkey', 'rooster', 'dog', 'pig' ),
     60                                        'enum_labels' => array( $labels['enums']['avoidAnimal.rat'] ?? 'Rat', $labels['enums']['avoidAnimal.ox'] ?? 'Ox', $labels['enums']['avoidAnimal.tiger'] ?? 'Tiger', $labels['enums']['avoidAnimal.rabbit'] ?? 'Rabbit', $labels['enums']['avoidAnimal.dragon'] ?? 'Dragon', $labels['enums']['avoidAnimal.snake'] ?? 'Snake', $labels['enums']['avoidAnimal.horse'] ?? 'Horse', $labels['enums']['avoidAnimal.goat'] ?? 'Goat', $labels['enums']['avoidAnimal.monkey'] ?? 'Monkey', $labels['enums']['avoidAnimal.rooster'] ?? 'Rooster', $labels['enums']['avoidAnimal.dog'] ?? 'Dog', $labels['enums']['avoidAnimal.pig'] ?? 'Pig' ),
     61                                        'fold' => true,
    5962                                ),
    6063                        ),
Note: See TracChangeset for help on using the changeset viewer.