wp/wp-content/themes/IN-MOTION-package-u1/option-tree/includes/ot-ui-theme-options.php
changeset 0 d970ebf37754
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wp/wp-content/themes/IN-MOTION-package-u1/option-tree/includes/ot-ui-theme-options.php	Wed Nov 06 03:21:17 2013 +0000
@@ -0,0 +1,56 @@
+<?php if ( ! defined( 'OT_VERSION') ) exit( 'No direct script access allowed' );
+/**
+ * Builds the Theme Option UI.
+ *
+ * @uses      ot_register_settings()
+ *
+ * @package   OptionTree
+ * @author    Derek Herman <derek@valendesigns.com>
+ * @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'      => apply_filters( 'ot_theme_options_page_title', __( 'Theme Options', 'option-tree' ) ),
+            'menu_title'      => apply_filters( 'ot_theme_options_menu_title', __( 'Theme Options', 'option-tree' ) ),
+            'capability'      => apply_filters( 'ot_theme_options_capability', 'edit_theme_options' ),
+            'menu_slug'       => 'ot-theme-options',
+            'icon_url'        => apply_filters( 'ot_theme_options_icon_url', null ),
+            'position'        => apply_filters( 'ot_theme_options_position', null ),
+            'updated_message' => apply_filters( 'ot_theme_options_updated_message', __( 'Theme Options updated.', 'option-tree' ) ),
+            'reset_message'   => apply_filters( 'ot_theme_options_reset_message', __( 'Theme Options reset.', 'option-tree' ) ),
+            'button_text'     => apply_filters( 'ot_theme_options_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 */
\ No newline at end of file