* @copyright Copyright (c) 2012, Derek Herman */ /* get the settings array */ $get_settings = get_option( 'option_tree_settings' ); /* sections array */ $sections = isset( $get_settings['sections'] ) ? $get_settings['sections'] : array(); /* settings array */ $settings = isset( $get_settings['settings'] ) ? $get_settings['settings'] : array(); /* contexual_help array */ $contextual_help = isset( $get_settings['contextual_help'] ) ? $get_settings['contextual_help'] : array(); /* build the Theme Options */ if ( function_exists( 'ot_register_settings' ) ) { ot_register_settings( array( array( 'id' => 'option_tree', 'pages' => array( array( 'id' => 'ot_theme_options', 'parent_slug' => 'themes.php', 'page_title' => __( 'Theme Options', 'option-tree' ), 'menu_title' => __( 'Theme Options', 'option-tree' ), 'capability' => 'manage_options', 'menu_slug' => 'ot-theme-options', 'icon_url' => null, 'position' => null, 'updated_message' => __( 'Theme Options updated.', 'option-tree' ), 'reset_message' => __( 'Theme Options reset.', 'option-tree' ), 'button_text' => __( 'Save Changes', 'option-tree' ), 'screen_icon' => 'themes', 'contextual_help' => $contextual_help, 'sections' => $sections, 'settings' => $settings ) ) ) ) ); } /* End of file ot-ui-theme-options.php */ /* Location: ./option-tree/ot-ui-theme-options.php */