| | |
| | | 'label' => 'Make Multi-Day Event', |
| | | 'default' => false, |
| | | ], |
| | | 'date_end' => [ |
| | | 'type' => 'date', |
| | | 'label' => 'Date End', |
| | | 'condition' => [ |
| | | 'field' => 'make_multiple', |
| | | 'operator' => '==', |
| | | 'value' => 1 |
| | | ] |
| | | ], |
| | | // 'date_end' => [ |
| | | // 'type' => 'date', |
| | | // 'label' => 'Date End', |
| | | // 'condition' => [ |
| | | // 'field' => 'make_multiple', |
| | | // 'operator' => '==', |
| | | // 'value' => 1 |
| | | // ] |
| | | // ], |
| | | 'past' => [ |
| | | 'type' => 'true_false', |
| | | 'label' => 'Past Event', |
| | |
| | | 'type' => 'repeater', |
| | | 'label' => 'Daily Schedule', |
| | | 'description' => 'Set specific times for multi-day events', |
| | | 'add_label' => 'Add Day', |
| | | 'condition' => [ |
| | | 'field' => 'make_multiple', |
| | | 'operator' => '==', |
| | |
| | | if ($post->post_type === $this->postType) { |
| | | $get = ['year', 'month','day']; |
| | | $values = Meta::forPost($post->ID)->getAll($get); |
| | | |
| | | foreach ($values as $key => $value) { |
| | | if (!empty($value)) { |
| | | if (!empty($value) && $value !== 0) { |
| | | $url = str_replace("%e$key%", $value, $url); |
| | | } else { |
| | | $url = str_replace("/%e$key%", '', $url); |