Example #1
0
function nimbus_call_sidebar_meta_box()
{
    $key = 'nimbus_sidebar_meta_box';
    global $meta_box_options;
    global $post;
    $fields = $meta_box_options[$key]['fields'];
    nimbus_output_metabox_style($meta_box_options['nimbus_sidebar_meta_box']['id'], $meta_box_options['nimbus_sidebar_meta_box']['context']);
    nimbus_metabox_nonce();
    nimbus_draw_fields($fields, $post->ID);
}
Example #2
0
function nimbus_call_featured_img_meta_box()
{
    wp_register_script('jscolor', get_template_directory_uri() . '/nimbus/assets/js/jscolor/jscolor.js', array('jquery'), '1.0');
    wp_enqueue_script('jscolor');
    $key = 'nimbus_featured_img_meta_box';
    global $meta_box_options;
    global $post;
    $fields = $meta_box_options[$key]['fields'];
    nimbus_output_metabox_style($meta_box_options['nimbus_featured_img_meta_box']['id'], $meta_box_options['nimbus_featured_img_meta_box']['context']);
    nimbus_metabox_nonce();
    nimbus_draw_fields($fields, $post->ID);
}