Created
March 1, 2018 10:10
-
-
Save Rayhanuc/7d31f64d068709bd7f10ab5f258ad80a to your computer and use it in GitHub Desktop.
Homework submitting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly. | |
// =============================================================================================== | |
// ----------------------------------------------------------------------------------------------- | |
// METABOX OPTIONS | |
// ----------------------------------------------------------------------------------------------- | |
// =============================================================================================== | |
$options = array(); | |
// ----------------------------------------- | |
// Post Metabox Options - | |
// ----------------------------------------- | |
$options[] = array( | |
'id' => 'neuron_work_meta', | |
'title' => 'Work Options', | |
'post_type' => 'work', | |
'context' => 'normal', | |
'priority' => 'default', | |
'sections' => array( | |
array( | |
'name' => 'work_meta_section_1', | |
'fields' => array( | |
array( | |
'id' => 'sub_title', | |
'type' => 'text', | |
'title' => 'Sub title', | |
'desc' => 'Type work sub title/category', | |
), | |
array( | |
'id' => 'link_text', | |
'type' => 'text', | |
'title' => 'Link text', | |
'default' => 'Visit Website', | |
'desc' => 'Type your link text here', | |
), | |
array( | |
'id' => 'link', | |
'type' => 'text', | |
'title' => 'Link', | |
'desc' => 'Type your link here', | |
), | |
//group field | |
array( | |
'id' => 'informations', | |
'type' => 'group', | |
'title' => 'Work Informations', | |
'button_title' => 'Add New', | |
'accordion_title' => 'Add New Information', | |
'fields' => array( | |
array( | |
'id' => 'title', | |
'type' => 'text', | |
'title' => 'informaiton title', | |
), | |
array( | |
'id' => 'value', | |
'type' => 'text', | |
'title' => 'Information Value', | |
) | |
), | |
), | |
), | |
), | |
), | |
); | |
CSFramework_Metabox::instance( $options ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment