\n"; } // Register the theme settings add_action('admin_init', 'register_and_build_fields'); function register_and_build_fields() { // Register variable to store and validate our custom settings register_setting('plugin_options', 'plugin_options', 'validate_setting'); // Create group of alike items on options page add_settings_section('main_section', 'Main Settings', 'section_cb', __FILE__); // Create logo setting to turn on or off custom logo image add_settings_field('logo_setting', 'Use own logo image (if N, will default to site name and description):', 'logo_setting', __FILE__, 'main_section'); // Create logo file upload setting $options = get_option('plugin_options'); $logo = $options['logo']; if ($logo) { $logoTxt = "Current: $logo"; } else { $logoTxt = "Current: none"; } add_settings_field('logo', "Logo ($logoTxt):", 'logo_upload_setting', __FILE__, 'main_section'); } // The styleguide page uses a iframe to show an example page that lists all the different style elements defined in the stylesheet. function build_styleguide_page() { ?>
The following pages demos how various HTML elements are styled with this theme. It also shows some additional CSS classes that are available.
Take control of your theme, by overriding the default settings with your own specific preferences.