Created
September 22, 2017 10:51
-
-
Save rubel306/d0865e817b3a750ca54a2460409713b4 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/ category', | |
), | |
array( | |
'id' => 'link_text', | |
'type' => 'text', | |
'title' => 'Link Text', | |
'default' => 'Visit Website', | |
), | |
array( | |
'id' => 'link', | |
'type' => 'text', | |
'title' => 'Link', | |
), | |
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