| 1 |
<?php |
| 2 |
|
| 3 |
return array( |
| 4 |
// Start Date |
| 5 |
array( |
| 6 |
'name' => 'start_date', |
| 7 |
'title' => __('Event Starts On', 'themify-event-post'), |
| 8 |
'description' => __('Enter event start date and time.', 'themify-event-post'), |
| 9 |
'type' => 'date', |
| 10 |
'meta' => array( |
| 11 |
'required' => true, |
| 12 |
'default' => '', |
| 13 |
'pick' => __('Pick Date', 'themify-event-post'), |
| 14 |
'close' => __('Done', 'themify-event-post'), |
| 15 |
'clear' => __('Clear Date', 'themify-event-post'), |
| 16 |
'date_format' => '', |
| 17 |
'time_format' => 'HH:mm', |
| 18 |
'timeseparator' => ' ' |
| 19 |
), |
| 20 |
'force_save' => true, |
| 21 |
), |
| 22 |
// To be announced |
| 23 |
array( |
| 24 |
'name' => 'to_be_announced', |
| 25 |
'title' => '', |
| 26 |
'after' => __('To be announced', 'themify-event-post'), |
| 27 |
'type' => 'checkbox', |
| 28 |
'meta' => array(), |
| 29 |
), |
| 30 |
array( |
| 31 |
'name' => 'end_date', |
| 32 |
'title' => __('Event Ends On', 'themify-event-post'), |
| 33 |
'description' => __('Enter event end date and time.', 'themify-event-post'), |
| 34 |
'type' => 'date', |
| 35 |
'meta' => array( |
| 36 |
'required' => true, |
| 37 |
'default' => '', |
| 38 |
'pick' => __('Pick Date', 'themify-event-post'), |
| 39 |
'close' => __('Done', 'themify-event-post'), |
| 40 |
'clear' => __('Clear Date', 'themify-event-post'), |
| 41 |
'date_format' => '', |
| 42 |
'time_format' => 'HH:mm', |
| 43 |
'timeseparator' => ' ' |
| 44 |
), |
| 45 |
'force_save' => true, |
| 46 |
), |
| 47 |
// Repeat date |
| 48 |
array( |
| 49 |
'title' => __('Repeat', 'themify-event-post'), |
| 50 |
'description' => '', |
| 51 |
'type' => 'multi', |
| 52 |
'meta' => array( |
| 53 |
'fields' => array( |
| 54 |
array( |
| 55 |
'name' => 'repeat', |
| 56 |
'label' => '', |
| 57 |
'type' => 'dropdown', |
| 58 |
'meta' =>array( |
| 59 |
array( |
| 60 |
'value' => '', |
| 61 |
'selected' => true, |
| 62 |
'name' => __('None', 'themify-event-post') |
| 63 |
), |
| 64 |
array( |
| 65 |
'value' => 'day', |
| 66 |
'name' => __('Daily', 'themify-event-post') |
| 67 |
), |
| 68 |
array( |
| 69 |
'value' => 'week', |
| 70 |
'name' => __('Weekly', 'themify-event-post') |
| 71 |
), |
| 72 |
array( |
| 73 |
'value' => 'year', |
| 74 |
'name' => __('Yearly', 'themify-event-post') |
| 75 |
) |
| 76 |
), |
| 77 |
'default' => '' |
| 78 |
), |
| 79 |
array( |
| 80 |
'name' => 'repeat_x', |
| 81 |
'label' => '', |
| 82 |
'description' => '', |
| 83 |
'type' => 'textbox', |
| 84 |
'meta' => array('size' => 'small'), |
| 85 |
'before' => sprintf('<span style="margin:0 5px 0 15px;">%s</span>',__('Every', 'themify-event-post')), |
| 86 |
'after' => sprintf('<span style="margin-left:5px;">%s</span>',__('week', 'themify-event-post')), |
| 87 |
), |
| 88 |
), |
| 89 |
'description' => '', |
| 90 |
'before' => '', |
| 91 |
'after' => '', |
| 92 |
'separator' => '' |
| 93 |
) |
| 94 |
), |
| 95 |
// Hide end event date in the loop |
| 96 |
array( |
| 97 |
'name' => 'event_end_date_hide', |
| 98 |
'title' => __('Hide End Date', 'themify-event-post'), |
| 99 |
'after' => __('Hide event end date on single view.', 'themify-event-post'), |
| 100 |
'type' => 'checkbox', |
| 101 |
'meta' => array(), |
| 102 |
), |
| 103 |
// Event Status |
| 104 |
array( |
| 105 |
'name' => 'event_status', |
| 106 |
'title' => __('Event Status', 'themify-event-post'), |
| 107 |
'description' => '', |
| 108 |
'type' => 'dropdown', |
| 109 |
'meta' => array( |
| 110 |
array( 'name' => __('Scheduled', 'themify-event-post'), 'value' => 'Scheduled', 'selected' => true ), |
| 111 |
array( 'name' => __('Rescheduled', 'themify-event-post'), 'value' => 'Rescheduled'), |
| 112 |
array( 'name' => __('Cancelled', 'themify-event-post'), 'value' => 'Cancelled') |
| 113 |
), |
| 114 |
'default' => '' |
| 115 |
), |
| 116 |
// Location |
| 117 |
array( |
| 118 |
'name' => 'location', |
| 119 |
'title' => __('Location', 'themify-event-post'), |
| 120 |
'description' => __('Enter city or venue name.', 'themify-event-post'), |
| 121 |
'type' => 'textbox', |
| 122 |
'meta' => array(), |
| 123 |
), |
| 124 |
// Map Address |
| 125 |
array( |
| 126 |
'name' => 'map_address', |
| 127 |
'title' => __('Map Address', 'themify-event-post'), |
| 128 |
'description' => __('Enter full address for Google Map.', 'themify-event-post'), |
| 129 |
'type' => 'textarea', |
| 130 |
'meta' => array(), |
| 131 |
), |
| 132 |
// Organizer |
| 133 |
array( |
| 134 |
'name' => 'organizer', |
| 135 |
'title' => __('Organizer is', 'themify-event-post'), |
| 136 |
'description' => '', |
| 137 |
'type' => 'dropdown', |
| 138 |
'meta' => array( |
| 139 |
array( 'name' => __('Person', 'themify-event-post'), 'value' => 'Person', 'selected' => true), |
| 140 |
array( 'name' => __('Organization', 'themify-event-post'), 'value' => 'Organization') |
| 141 |
), |
| 142 |
'default' => '' |
| 143 |
), |
| 144 |
array( |
| 145 |
'name' => 'organizer_name', |
| 146 |
'title' => __('Organizer Name', 'themify-event-post'), |
| 147 |
'description' => __('Organizer name.', 'themify-event-post'), |
| 148 |
'type' => 'textbox', |
| 149 |
'meta' => array(), |
| 150 |
), |
| 151 |
array( |
| 152 |
'name' => 'organizer_url', |
| 153 |
'title' => __('Organizer Link', 'themify-event-post'), |
| 154 |
'description' => __('Organizer link.', 'themify-event-post'), |
| 155 |
'type' => 'textbox', |
| 156 |
'meta' => array(), |
| 157 |
), |
| 158 |
// Performer |
| 159 |
array( |
| 160 |
'name' => 'event_performer', |
| 161 |
'title' => __('Performer is', 'themify-event-post'), |
| 162 |
'description' => '', |
| 163 |
'type' => 'dropdown', |
| 164 |
'meta' => array( |
| 165 |
array( 'name' => '', 'value' => '', 'selected' => true ), |
| 166 |
array( 'name' => __('Person', 'themify-event-post'), 'value' => 'Person' ), |
| 167 |
array( 'name' => __('Organization', 'themify-event-post'), 'value' => 'Organization') |
| 168 |
), |
| 169 |
'default' => '' |
| 170 |
), |
| 171 |
array( |
| 172 |
'name' => 'performer_name', |
| 173 |
'title' => __('Performer Name', 'themify-event-post'), |
| 174 |
'description' => __('Performer name.', 'themify-event-post'), |
| 175 |
'type' => 'textbox', |
| 176 |
'meta' => array(), |
| 177 |
), |
| 178 |
// Event Attendance. |
| 179 |
array( |
| 180 |
'name' => 'event_attendance', |
| 181 |
'title' => __('Event Attendance Type', 'themify-event-post'), |
| 182 |
'description' => '', |
| 183 |
'type' => 'dropdown', |
| 184 |
'meta' => array( |
| 185 |
array( 'name' => '', 'value' => '', 'selected' => true ), |
| 186 |
array( 'name' => __('Online', 'themify-event-post'), 'value' => 'Online'), |
| 187 |
array( 'name' => __('Offline', 'themify-event-post'), 'value' => 'Offline'), |
| 188 |
array( 'name' => __('Mixed', 'themify-event-post'), 'value' => 'Mixed' ) |
| 189 |
), |
| 190 |
'default' => '', |
| 191 |
), |
| 192 |
// Buy Tickets |
| 193 |
array( |
| 194 |
'title' => __('Buy Ticket', 'themify-event-post'), |
| 195 |
'description' => '', |
| 196 |
'type' => 'multi', |
| 197 |
'meta' => array( |
| 198 |
'fields' => array( |
| 199 |
array( |
| 200 |
'name' => 'buy_tickets_label', |
| 201 |
'label' => '', |
| 202 |
'before' => sprintf( '<span style="margin:0 5px 0 15px;">%s</span>', __('Text:', 'themify-event-post') ), |
| 203 |
'type' => 'textbox', |
| 204 |
'meta' => array('size' => 'medium'), |
| 205 |
), |
| 206 |
array( |
| 207 |
'before' => sprintf( '<span style="margin:0 5px 0 15px;">%s</span>', __('Link:', 'themify-event-post') ), |
| 208 |
'name' => 'buy_tickets', |
| 209 |
'title' => __('Buy Ticket Link', 'themify-event-post'), |
| 210 |
'type' => 'textbox', |
| 211 |
'meta' => array( 'size' => 'medium' ), |
| 212 |
'class' => 'themify-event-ticket-link' |
| 213 |
), |
| 214 |
), |
| 215 |
) |
| 216 |
), |
| 217 |
// Ticket Price |
| 218 |
array( |
| 219 |
'title' => __('Ticket Price', 'themify-event-post'), |
| 220 |
'description' => '', |
| 221 |
'type' => 'multi', |
| 222 |
'meta' => array( |
| 223 |
'fields' => array( |
| 224 |
array( |
| 225 |
'name' => 'buy_tickets_price', |
| 226 |
'label' => '', |
| 227 |
'type' => 'textbox', |
| 228 |
'default' => '', |
| 229 |
'meta' => array('size' => 'small'), |
| 230 |
'before' => sprintf( '<span style="margin:0 5px 0 15px;">%s</span>', __('Amount:', 'themify-event-post') ), |
| 231 |
), |
| 232 |
array( |
| 233 |
'name' => 'buy_tickets_currency', |
| 234 |
'type' => 'textbox', |
| 235 |
'meta' => array( 'size' => 'small' ), |
| 236 |
'before' => sprintf( '<span style="margin:0 5px 0 15px;">%s</span>', __('Currency Code:', 'themify-event-post') ), |
| 237 |
'after' => sprintf( '<small style="margin:0 5px 0 15px;">%s</small>', __('For Example: USD', 'themify-event-post') ), |
| 238 |
), |
| 239 |
), |
| 240 |
), |
| 241 |
'class' => 'themify-event-ticket' |
| 242 |
), |
| 243 |
// Ticket purchase start and end date |
| 244 |
array( |
| 245 |
'name' => 'ticket_purchase_start_date', |
| 246 |
'title' => __('Ticket Purchase Starts On', 'themify-event-post'), |
| 247 |
'description' => __('Enter ticket purchase start date and time.', 'themify-event-post'), |
| 248 |
'type' => 'date', |
| 249 |
'meta' => array( |
| 250 |
'default' => '', |
| 251 |
'pick' => __('Pick Date', 'themify-event-post'), |
| 252 |
'close' => __('Done', 'themify-event-post'), |
| 253 |
'clear' => __('Clear Date', 'themify-event-post'), |
| 254 |
'date_format' => '', |
| 255 |
'time_format' => 'HH:mm', |
| 256 |
'timeseparator' => ' ' |
| 257 |
), |
| 258 |
'class' => 'themify-event-ticket' |
| 259 |
), |
| 260 |
array( |
| 261 |
'name' => 'ticket_purchase_end_date', |
| 262 |
'title' => __('Ticket Purchase Ends On', 'themify-event-post'), |
| 263 |
'description' => __('Enter ticket purchase end date and time.', 'themify-event-post'), |
| 264 |
'type' => 'date', |
| 265 |
'meta' => array( |
| 266 |
'default' => '', |
| 267 |
'pick' => __('Pick Date', 'themify-event-post'), |
| 268 |
'close' => __('Done', 'themify-event-post'), |
| 269 |
'clear' => __('Clear Date', 'themify-event-post'), |
| 270 |
'date_format' => '', |
| 271 |
'time_format' => 'HH:mm', |
| 272 |
'timeseparator' => ' ' |
| 273 |
), |
| 274 |
'class' => 'themify-event-ticket' |
| 275 |
), |
| 276 |
// Ticket Availability. |
| 277 |
array( |
| 278 |
'name' => 'ticket_availability', |
| 279 |
'title' => __('Ticket Availability', 'themify-event-post'), |
| 280 |
'description' => '', |
| 281 |
'type' => 'dropdown', |
| 282 |
'meta' => array( |
| 283 |
array( 'name' => __('In stock', 'themify-event-post'), 'value' => 'In stock', 'selected' => true ), |
| 284 |
array( 'name' => __('Out of stock', 'themify-event-post'), 'value' => 'Out of stock'), |
| 285 |
array( 'name' => __('Pre-order', 'themify-event-post'), 'value' => 'Pre-order' ) |
| 286 |
), |
| 287 |
'default' => '', |
| 288 |
'class' => 'themify-event-ticket' |
| 289 |
) |
| 290 |
); |