Created
December 29, 2017 16:44
-
-
Save salehahmadbabu/8f76ca06b5a88265236bfc03ac0b9336 to your computer and use it in GitHub Desktop.
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 here.', | |
), | |
array( | |
'id' => 'link_text', | |
'type' => 'text', | |
'title' => 'Link Text', | |
'default' => 'Visit Website', | |
'desc' => 'Type work link text here.', | |
), | |
array( | |
'id' => 'link', | |
'type' => 'text', | |
'title' => 'Link', | |
'desc' => 'Type work link here.', | |
), | |
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' => 'Information 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