function _jc_mb_landing_grid()
{
    rbm_do_field_select('columns', 'Columns', false, array('options' => array(1 => '1', 2 => '2', 3 => '3', 4 => '4'), 'input_class' => ''));
    $pages = get_posts(array('post_type' => 'page', 'numberposts' => -1));
    $options = array(0 => '- Select a Page -');
    if ($pages) {
        foreach ($pages as $page) {
            $options[$page->ID] = get_the_title($page);
        }
    }
    rbm_do_field_repeater('landing_grid', 'Grid Items', array('title' => array('type' => 'text', 'label' => 'Title'), 'text' => array('type' => 'text', 'label' => 'Text'), 'color' => array('type' => 'colorpicker', 'label' => 'Color'), 'image' => array('type' => 'image', 'label' => 'Background Image'), 'link' => array('type' => 'select', 'label' => 'Page Link', 'args' => array('options' => $options, 'input_class' => 'rbm-select2'))));
}
Ejemplo n.º 2
0
function _jc_mb_home_personas()
{
    $pages = get_posts(array('post_type' => 'page', 'numberposts' => -1));
    rbm_do_field_repeater('personas', false, array('header' => array('type' => 'text', 'label' => 'Header'), 'sub_head' => array('type' => 'text', 'label' => 'Sub-Header'), 'description' => array('type' => 'textarea', 'label' => 'Description'), 'links' => array('type' => 'select', 'label' => 'Link(s)', 'args' => array('options' => wp_list_pluck($pages, 'post_title', 'ID'), 'multiple' => true, 'input_class' => 'rbm-select2')), 'image' => array('type' => 'image', 'label' => 'Image')));
}
 function _mb_content()
 {
     rbm_do_field_repeater('sections', false, array('title' => array('type' => 'text', 'label' => 'Title'), 'content' => array('type' => 'wysiwyg', 'label' => 'Content'), 'color' => array('type' => 'colorpicker', 'label' => 'Color')));
 }
 function _mb_courses()
 {
     $courses = jcaca_get_courses_list();
     rbm_do_field_repeater('semesters', 'Semesters', array('season' => array('type' => 'select', 'label' => 'Season', 'args' => array('options' => array('fall' => 'Fall', 'winter' => 'Winter', 'spring' => 'Spring'))), 'courses' => array('type' => 'select', 'label' => 'Courses', 'args' => array('options' => $courses ? $courses : array(), 'multiple' => true, 'input_class' => 'rbm-select2', 'no_options' => 'No courses available'))));
 }
 function _mb_images()
 {
     rbm_do_field_repeater('images', false, array('image' => array('type' => 'image')));
 }
function _jc_mb_content_grid()
{
    $pages = get_posts(array('post_type' => 'page', 'numberposts' => -1));
    rbm_do_field_repeater('content_grid', 'Grid Items', array('text' => array('type' => 'text', 'label' => 'Text'), 'icon' => array('type' => 'text', 'label' => 'Icon', 'args' => array('description' => 'You may find a list of available icons at <a href="http://fortawesome.github.io/Font-Awesome/icons/" target="_blank">http://fortawesome.github.io/Font-Awesome/icons/</a>')), 'color' => array('type' => 'colorpicker', 'label' => 'Color'), 'image' => array('type' => 'image', 'label' => 'Background Image'), 'link' => array('type' => 'select', 'label' => 'Page Link', 'args' => array('input_class' => 'rbm-select2', 'options' => wp_list_pluck($pages, 'post_title', 'ID')))));
}