public function cmb_metaboxes(array $meta_boxes) { // Start with an underscore to hide fields from custom fields list $prefix = otm_cmb_prefix($this->cptslug); $meta_boxes[] = array('id' => $this->cptslug . '_metabox', 'title' => sprintf(__('%s Information', 'evans-mu'), $this->singular), 'object_types' => array($this->cptslug), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Content', 'evans-mu'), 'desc' => __('Enter any content that you would like to appear in the ' . $this->singular, 'evans-mu'), 'id' => $prefix . 'content', 'type' => 'text'), array('name' => __('Link URL', 'evans-mu'), 'desc' => __('Enter the URL from the page you want to link to.', 'evans-mu'), 'id' => $prefix . 'url', 'type' => 'text_url'), array('name' => __('Link Text', 'evans-mu'), 'desc' => __('Enter text for the link.', 'evans-mu'), 'id' => $prefix . 'url_text', 'type' => 'text', 'default' => __('Read More', 'evans-mu')), array('name' => __('Image', 'evans-mu'), 'id' => $prefix . 'image', 'type' => 'file', 'allow' => array('attachment')))); return $meta_boxes; }
public function cmb_metaboxes(array $meta_boxes) { // Start with an underscore to hide fields from custom fields list $prefix = otm_cmb_prefix($this->cptslug); $meta_boxes[] = array('id' => $this->cptslug . '_metabox', 'title' => sprintf(__('%s Information', 'evans-mu'), $this->singular), 'object_types' => array($this->cptslug), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Position/Title', 'evans-mu'), 'desc' => __('Enter the title for the ' . $this->cptslug, 'evans-mu'), 'id' => $prefix . 'position', 'type' => 'text'), array('name' => __('Phone #', 'evans-mu'), 'desc' => __('Enter the phone # for the ' . $this->cptslug, 'evans-mu'), 'id' => $prefix . 'phone', 'type' => 'text'), array('name' => __('Email', 'evans-mu'), 'desc' => __('Enter the email for the ' . $this->cptslug, 'evans-mu'), 'id' => $prefix . 'email', 'type' => 'text'), array('name' => __('Image', 'evans-mu'), 'id' => $prefix . 'image', 'type' => 'file', 'allow' => array('attachment')))); return $meta_boxes; }
public function cmb_metaboxes(array $meta_boxes) { // Start with an underscore to hide fields from custom fields list $prefix = otm_cmb_prefix($this->cptslug); $meta_boxes[] = array('id' => $this->cptslug . '_metabox', 'title' => sprintf(__('%s Information', 'evans-mu'), $this->singular), 'object_types' => array($this->cptslug), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Reviewer Name', 'evans-mu'), 'id' => $prefix . 'reviewer', 'type' => 'text'))); return $meta_boxes; }
public function cmb_metaboxes(array $meta_boxes) { // Start with an underscore to hide fields from custom fields list $prefix = otm_cmb_prefix($this->cptslug); $meta_boxes[] = array('id' => $this->cptslug . '_metabox', 'title' => sprintf(__('%s Information', 'evans-mu'), $this->singular), 'object_types' => array($this->cptslug), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Start Date/Time', 'evans-mu'), 'desc' => __('Enter a date for your ' . $this->cptslug, 'evans-mu'), 'id' => $prefix . 'date', 'type' => 'text_date_timestamp'), array('name' => __('Time', 'evans-mu'), 'desc' => __('Enter a time for your ' . $this->cptslug, 'evans-mu'), 'id' => $prefix . 'time', 'type' => 'text'), array('name' => __('Event Cost', 'evans-mu'), 'desc' => __('Enter the guest cost for your ' . $this->cptslug . ' (optional)', 'evans-mu'), 'id' => $prefix . 'cost', 'type' => 'text_money'), array('name' => __('Location', 'evans-mu'), 'desc' => __('Enter a location name or address for your ' . $this->cptslug, 'evans-mu'), 'id' => $prefix . 'location', 'type' => 'text'), array('name' => __('Image', 'evans-mu'), 'id' => $prefix . 'image', 'type' => 'file', 'allow' => array('attachment')))); return $meta_boxes; }
public function cmb_metaboxes(array $meta_boxes) { // Start with an underscore to hide fields from custom fields list $prefix = otm_cmb_prefix($this->cptslug); $meta_boxes[] = array('id' => $this->cptslug . '_metabox', 'title' => sprintf(__('%s Information', 'evans-mu'), $this->singular), 'object_types' => array($this->cptslug), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Active?', 'evans-mu'), 'desc' => __('Choose whether this ' . $this->cptslug . ' should be active or not', 'evans-mu'), 'id' => $prefix . 'active', 'type' => 'radio', 'options' => array('active' => __('Active', 'evans-mu'), 'inactive' => __('Inactive', 'evans-mu'))), array('name' => __('Start Date', 'evans-mu'), 'desc' => __('If you would like to schedule this ' . $this->cptslug . ', enter a start date.', 'evans-mu'), 'id' => $prefix . 'start_date', 'type' => 'text_datetime_timestamp', 'default' => time()), array('name' => __('End Date', 'evans-mu'), 'desc' => __('If you would like to schedule this ' . $this->cptslug . ', enter an end date.', 'evans-mu'), 'id' => $prefix . 'end_date', 'type' => 'text_datetime_timestamp'))); return $meta_boxes; }