'textlogo', 'logo_path' => '', 'google_id' => 'riteshsanap', 'twitter_id' => 'riteshsanap', 'facebook_id' => 'riteshsanap', 'feedburner_id' => 'best2know', 'subscribe' => 'Yes', 'showad468x60' => 'Yes', 'ad468x60' => '', 'footerwidget' => 'Yes', 'track' => 'No', 'pfoot' => 'Yes', 'pfoot_code' => '', 'track_code' => '' // <-- no comma after the last option ); // push the defaults to the options database, // if options don't yet exist there. add_option($settings, $defaults, '', 'yes'); /* /////////////////////////////////////////////// This section hooks the proper functions to the proper actions in WordPress \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */ // this function registers our settings in the db add_action('admin_init', 'register_theme_settings'); function register_theme_settings() { global $settings; register_setting($settings, $settings); } // this function adds the settings page to the Appearance tab add_action('admin_menu', 'add_theme_options_menu'); function add_theme_options_menu() { add_submenu_page('themes.php', __('Btemplatr Theme Options', 'best2know'), __('Btemplatr Theme Options', 'best2know'), 8, 'theme-options', 'theme_settings_admin'); } function theme_settings_admin() { ?>
'.__('Theme Options', 'best2know').' '.__('Reset to defaults', 'best2know').'
'.__('Theme Options', 'best2know').' '.__('Saved', 'best2know').'