'; print_r( self::$data ); echo ''; exit(); // Update option. if ( is_admin() ) { update_option( BATHEMOS_SETTINGS, self::$data ); } } ///////////////////////////////////////////////////////// //// Provide data. //////////////////////////////////////////////////////////// ////////////////////////////////////////////////// /** * Returns specific theme option. * * Returns all options as an array if no specific option was stated. * * @since 1.0.0 * * @param string $content Content to filter. * @param string $data_id Data to find. * * @return misc */ static function get_data( $content = null, $data_id = null ) { $data_id = apply_filters( 'bathemos_core_input', $data_id ); if ( ( $data_id ) && ( isset( self::$data[ $data_id ] ) ) ) { $content = self::$data[ $data_id ]; } elseif ( ! $data_id ) { $content = self::$data; } return $content; } //////////////////////////////////////////////////////////// //// End of our class. //////////////////////////////////////////////////////////// }