'high-contrast', 'value' => 'use-high-contrast', 'description' => 'Images will display in higher than normal contrast, to give them a old school feel.' ) ); // Add animation settings section add_settings_section( 'bs386_animation_options', 'Animation Options', 'bs386_animation_options_description', 'bs386-options' ); add_settings_field( 'fast-load', 'Fast Load', 'bs386_checkbox', 'bs386-options', 'bs386_animation_options', array( 'id' => 'fast-load', 'value' => 'true', 'description' => 'When checked, it disables all animation. The other settings in the section require Fast Load to be turned off to have effect.' ) ); add_settings_field( 'one-pass', 'One Pass', 'bs386_checkbox', 'bs386-options', 'bs386_animation_options' , array( 'id' => 'one-pass', 'value' => 'true', 'description' => 'When checked this will disable the second flyby cursor.' ) ); add_settings_field( 'speed-factor', 'Speed Factor', 'bs386_speed_factor_select', 'bs386-options', 'bs386_animation_options' ); } add_action( 'admin_init', 'bs386_admin_init' ); function bs386_image_options_description(){ } function bs386_animation_options_description(){ } function bs386_checkbox($args){ $settings = get_option('bs386_theme_options'); echo ""; echo "
".$args['description']."
" ; } function bs386_speed_factor_select(){ $settings = get_option('bs386_theme_options'); $speeds = array( 'fastest' => '1.5', 'fast' => '1.25', 'regular' => '1', 'slow' => '0.75', 'slowest' => '0.5' ); echo ""; } function bs386_options_page(){ ?>