function _jc_mb_event_list_settings() { rbm_do_field_text('events_count', 'Number of Events to Show', false, array('input_atts' => array('pattern' => '[0-9]*', 'title' => 'Enter a number'))); }
function _mb_properties() { rbm_do_field_text('first_name', 'First Name', false, array('wrapper_class' => 'rbm-col-4', 'validation' => array('required' => 'true'))); rbm_do_field_text('last_name', 'Last Name', false, array('wrapper_class' => 'rbm-col-4', 'validation' => array('required' => 'true'))); rbm_do_field_text('email', 'Email', false, array('wrapper_class' => 'rbm-col-4', 'validation' => array('required' => 'true'))); rbm_do_field_text('phone', 'Phone', false, array('wrapper_class' => 'rbm-col-4', 'validation' => array('required' => 'true'))); echo '<div class="clearfix"></div>'; rbm_do_field_textarea('bio', 'Bio', false, array('validation' => array('required' => 'true'))); }
function _mb_cta() { rbm_do_field_text('cta_text'); }
function _mb_type() { rbm_do_field_text('type', false, false, array('description' => 'Examples: Associates Degree, Certificate, etc.')); }
function _mb_properties() { rbm_do_field_text('employer', 'Employer', false, array('validation' => array('required' => 'true'))); rbm_do_field_text('location', 'Location', false, array('wrapper_class' => 'rbm-col-3', 'validation' => array('required' => 'true'))); rbm_do_field_text('link', 'Link (External)', false, array('wrapper_class' => 'rbm-col-3', 'validation' => array('type' => 'url', 'required' => 'true'))); rbm_do_field_datepicker('apply_by_date', 'Apply By Date', false, array('wrapper_class' => 'rbm-col-3', 'input_class' => 'widefat', 'validation' => array('required' => 'true'))); echo '<div class="clearfix"></div>'; }
function _mb_appearance() { rbm_do_field_colorpicker('archive_color', 'Grid Color'); rbm_do_field_image('archive_image', 'Grid Image', false, array('description' => 'It is recommended you create a custom image for this, but if this is left blank the Featured Image will be used instead')); rbm_do_field_text('archive_icon', 'Grid Icon', false, array('description' => 'Use an icon from here <a href="http://fortawesome.github.io/Font-Awesome/icons/">http://fortawesome.github.io/Font-Awesome/icons/</a>')); }
function _mb_restaurant_link() { rbm_do_field_text('restaurant_link', false, false, array('sanitization' => 'esc_url_raw')); }
function _mb_sponsor_link() { rbm_do_field_text('sponsor_link', false, false, array('sanitization' => 'esc_url_raw')); }
function _mb_properties() { rbm_do_field_textarea('address', 'Address', false, array('wrapper_class' => 'rbm-col-2', 'validation' => array('required' => 'true'))); rbm_do_field_text('phone', 'Phone', false, array('wrapper_class' => 'rbm-col-2')); echo '<div class="clearfix"></div>'; }
function _after_title_meta_boxes() { rbm_do_field_text('sub_title', 'Sub Title'); }
/** * Provides an easy to use link. * * @since 1.1.0 * * @param $name * @param bool $label * @param array $args */ function rbm_helper_field_link($name, $label = false, $args = array()) { echo '<fieldset class="rbm-fieldset rbm-field-button">'; echo "<legend>{$label} Button</legend>"; $pages = get_posts(wp_parse_args(array('post_type' => 'page', 'numberposts' => -1), $args)); $select_options = array(); if (!empty($pages)) { /** @var WP_Post $post */ foreach ($pages as $page) { $select_options[$page->ID] = $page->post_title; } } rbm_do_field_text("{$name}_text", 'Button Text'); rbm_do_field_select("{$name}_post_link", 'Post Link', false, array('options' => $select_options, 'input_class' => 'rbm-select2')); rbm_do_field_text("{$name}_external_link", 'Link (external)', false, array('description' => 'Overrides the Post Link', 'sanitization' => 'esc_url_raw')); rbm_do_field_checkbox("{$name}_new_tab", false, false, array('check_label' => 'Open in New Tab')); echo '</fieldset>'; }
function _mb_user_interaction() { rbm_do_field_select('user_interaction', 'Method', false, array('default' => 'default', 'options' => array('none' => 'None', 'close_button' => 'Close Button', 'call_to_action' => 'Call To Action'))); rbm_do_field_text('button_text', 'Button Text', false, array('description' => 'Defaults to "Close" or "Learn More" based on Method type.')); rbm_do_field_text('button_link', 'Button Link', false, array('description' => 'Only applies to Call To Action method.')); rbm_do_field_checkbox('button_new_tab', false, false, array('check_label' => 'Open in New Tab')); }
function _mb_properties() { rbm_do_field_text('course_code', 'Course Code', false, array('wrapper_class' => 'rbm-col-2', 'input_atts' => array('required' => ''))); rbm_do_field_number('credits', 'Credits', false, array('input_atts' => array('data-parsley-type' => 'number', 'style' => 'width: 3em;'), 'wrapper_class' => 'rbm-col-2')); rbm_do_field_select('type', 'Type', false, array('options' => array('general_education' => 'General Education', 'related_requirement' => 'Related Requirement', 'core_requirement' => 'Core Requirement', 'additional_requirement' => 'Additional Requirement'), 'wrapper_class' => 'rbm-col-2')); $error_code = $this->prerequisites_error_code ? "</span><span class=\"error\">{$this->prerequisites_error_code}</span>" : ''; echo '<div id="jcaca-prerequisites-anchor"></div>'; rbm_do_field_text('prerequisites', 'Prerequisites', false, array('wrapper_class' => 'jcaca-prerequisites rbm-col-2', 'description' => 'Start entering a course code (EG: COM, ACC, 101, 102, etc.) to view a list of existing courses.' . $error_code)); echo '<div class="clearfix"></div>'; rbm_do_field_text('notes', 'Notes'); }