array( 'value' => 'yes', 'label' => __( 'Yes', 'imbalance2' ), ), 'no' => array( 'value' => 'no', 'label' => __( 'No', 'imbalance2' ) ) ); return apply_filters( 'imbalance2_sticky_options', $sticky_options ); } // Returns an array of sticky options registered for Imbalance 2. function imbalance2_fluid_options() { $fluid_options = array( 'yes' => array( 'value' => 'yes', 'label' => __( 'Yes', 'imbalance2' ), ), 'no' => array( 'value' => 'no', 'label' => __( 'No', 'imbalance2' ) ) ); return apply_filters( 'imbalance2_fluid_options', $fluid_options ); } // Returns the default options for Imbalance 2. function imbalance2_get_default_theme_options() { $default_theme_options = array( 'color' => '#f05133', 'sticky' => 'no', 'fluid' => 'no' ); return apply_filters( 'imbalance2_default_theme_options', $default_theme_options ); } // Returns the options array for Imbalance 2. function imbalance2_get_theme_options() { return get_option( 'imbalance2_theme_options', imbalance2_get_default_theme_options() ); } // Create the options page function theme_options_do_page() { if ( ! isset( $_REQUEST['settings-updated'] ) ) $_REQUEST['settings-updated'] = false; ?>