Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $months = array (
- 1 => 'Jan',
- 2 => 'Feb',
- 3 => 'Mar',
- 4 => 'Apr',
- 5 => 'May',
- 6 => 'Jun',
- 7 => 'July',
- 8 => 'Aug',
- 9 => 'Sep',
- 10 => 'Oct',
- 11 => 'Nov',
- 12 => 'Dec',
- );
- $time = current_time('timestamp');
- $today_day = date('j', $time);
- $today_month = date('M', $time);
- $today_year = date('Y', $time);
- // meta box ===> Events
- $earth_meta_boxes[] = array(
- 'id' => 'event_options',
- 'title' => __('Event Options','earth'),
- 'pages' => array('events'),
- 'fields' => array(
- array(
- 'name' => __('Start Date','earth'),
- 'desc' => __('Enter the start date for the event.','earth'),
- 'id' => $prefix . 'event_start_date',
- 'type' => 'date',
- 'std' => array(
- 'month' => $today_month,
- 'day' => $today_day,
- 'year' => $today_year,
- ),
- 'options' => array (
- 'month' => $months
- ),
- ),
- array(
- 'name' => __('End Date','earth'),
- 'desc' => __('Enter the end date for the event.','earth'),
- 'id' => $prefix . 'event_end_date',
- 'type' => 'date',
- 'std' => array(
- 'month' => 'Select Month',
- 'day' => '',
- 'year' => '',
- ),
- 'options' => array (
- 'month' => $months
- ),
- ),
Advertisement
Add Comment
Please, Sign In to add comment