Jake Vanderwerf
9 days ago ed57c386db34d8693ca75311972d0929ebe5f488
inc/registrar/Fields.php
@@ -50,9 +50,56 @@
   public function addPostFields():void
   {
      $statuses = [
//             'all' => [
//                'icon' => 'infinity',
//                'label' => 'Everything',
//             ],
         'publish' => [
            'icon' => 'eye',
            'label' => 'Live',
         ],
         'draft' => [
            'icon' => 'eye-closed',
            'label' => 'Hidden',
         ],
         'trash' => [
            'label' => 'Scrapped',
            'icon' => 'trash',
         ],
//       'delete' => [
//          'label'  => 'Permanently Delete',
//          'icon'   => 'trash'
//       ]
      ];
      if ($this->registrar->hasFeature('is_calendar')) {
         $statuses = [
            'future' => [
               'icon'   => '',
               'label'  => 'Upcoming',
            ],
            'past'   => [
               'icon'   => '',
               'label'  => 'Past',
            ],
            'repeat' => [
               'icon'   => '',
               'label'  => 'Repeating',
            ],
            'draft' => [
               'icon' => 'eye-closed',
               'label' => 'Hidden',
            ],
            'trash' => [
               'label' => 'Scrapped',
               'icon' => 'trash',
            ],
         ];
      }
      $fields = [
         'post_thumbnail'  => [
            'type'   => 'upload',
            'subtype'   => 'image',
            'multiple'=> false,
            'label'  => 'Main Image',
         ],
@@ -79,28 +126,7 @@
            'type'      => 'radio',
            'label'     => 'Status',
            'default'   => 'draft',
            'options'   => [
               'all' => [
                  'icon' => 'infinity',
                  'label' => 'Everything',
               ],
               'publish' => [
                  'icon' => 'eye',
                  'label' => 'Live',
               ],
               'draft' => [
                  'icon' => 'eye-closed',
                  'label' => 'Hidden',
               ],
               'trash' => [
                  'label' => 'Scrapped',
                  'icon' => 'trash',
               ],
               'delete' => [
                  'label'  => 'Permanently Delete',
                  'icon'   => 'trash'
               ]
            ]
            'options'   => $statuses
         ]
      ];