diff --git a/inc/theme-options.php b/inc/theme-options.php index 9b24629..ec49ac7 100644 --- a/inc/theme-options.php +++ b/inc/theme-options.php @@ -53,13 +53,6 @@ public function theme_options_page_init() { // 'theme-options-admin' // page // ); - add_settings_section( - 'theme_options_setting_section_ga', // id - esc_html__( 'Google Analytics', 'okfnwp' ), // title - array( $this, 'theme_options_section_ga' ), // callback - 'theme-options-admin' // page - ); - add_settings_section( 'theme_options_setting_section_social', // id esc_html__( 'Social Media', 'okfnwp' ), // title @@ -97,14 +90,6 @@ public function theme_options_page_init() { // 'theme_options_setting_section_mailing' // section // ); - add_settings_field( - 'okfnwp_ga_id', // id - esc_html__( 'Google Analytics Tracking ID', 'okfnwp' ), // title - array( $this, 'okfnwp_ga_id_callback' ), // callback - 'theme-options-admin', // page - 'theme_options_setting_section_ga' // section - ); - add_settings_field( 'okfnwp_twitter_id', // id esc_html__( 'Twitter Handle', 'okfnwp' ), // title @@ -199,10 +184,6 @@ public function theme_options_sanitize( $input ) { // $sanitary_values['okfnwp_mailinglist_id'] = sanitize_text_field($input['okfnwp_mailinglist_id']); // } - if ( isset( $input['okfnwp_ga_id'] ) ) { - $sanitary_values['okfnwp_ga_id'] = sanitize_text_field( $input['okfnwp_ga_id'] ); - } - if ( isset( $input['okfnwp_twitter_id'] ) ) { $sanitary_values['okfnwp_twitter_id'] = sanitize_text_field( $input['okfnwp_twitter_id'] ); } @@ -246,10 +227,6 @@ public function theme_options_sanitize( $input ) { // // } - public function theme_options_section_ga() { - - } - public function theme_options_section_social() { } @@ -294,19 +271,6 @@ public function theme_options_section_cta() {} // _e('
For the list at http://lists.okfn.org/mailman/subscribe/XYZ, this should be XYZ
'); // } -public function okfnwp_ga_id_callback() { - if (isset($this->theme_options['okfnwp_ga_id'])): - $current_val = $this->theme_options['okfnwp_ga_id']; - else: - $current_val = ''; - endif; - - printf( '', isset( $current_val ) ? esc_attr( $current_val ) : '' ); - ?> - - theme_options['okfnwp_twitter_id'])): $current_val = $this->theme_options['okfnwp_twitter_id'];