Created
February 22, 2018 14:17
-
-
Save Galibri/9c1da6024caf656b5e4d1c4a075c50a9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$options[] = array( | |
'name' => 'header_options', | |
'title' => 'Header options', | |
'icon' => 'fa fa-plus-circle', | |
'sections' => array( | |
array( | |
'name' => 'logo_options', | |
'title' => 'Logo', | |
'icon' => 'fa fa-check', | |
'fields' => array( | |
array( | |
'id' => 'logo_text', | |
'type' => 'text', | |
'title' => 'Logo Text', | |
), | |
), | |
), | |
array( | |
'name' => 'header_right_btn', | |
'title' => 'Right Button', | |
'icon' => 'fa fa-check', | |
'fields' => array( | |
array( | |
'id' => 'header_1_links', | |
'type' => 'group', | |
'title' => 'Header 1 Links', | |
'button_title' => 'Add New', | |
'accordion_title' => 'Add New Links', | |
'fields' => array( | |
array( | |
'id' => 'text', | |
'type' => 'text', | |
'title' => 'Link text', | |
), | |
array( | |
'id' => 'link_type', | |
'type' => 'select', | |
'title' => 'Button link type', | |
'options' => array( | |
'1' => 'Wordpress Page', | |
'2' => 'External link', | |
), | |
'default' => '1', | |
), | |
array( | |
'id' => 'link_type_page', | |
'type' => 'select', | |
'title' => 'Select a page', | |
'options' => 'page', | |
'dependency' => array( 'link_type', '==', '1' ), | |
), | |
array( | |
'id' => 'link', | |
'type' => 'text', | |
'title' => 'Button link', | |
'dependency' => array( 'link_type', '==', '2' ), | |
), | |
), | |
), | |
), | |
), | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment