'#171717', 'link_color' => '#333' ); return apply_filters( 'triton_lite_default_theme_options', $default_theme_options ); } /** * Returns the options array for Triton Lite. */ function triton_lite_get_theme_options() { return get_option( 'triton_lite_theme_options', triton_lite_get_default_theme_options() ); } /** * Creates the Theme Options page for Triton Lite. */ function triton_lite_theme_options_render_page() { $options = triton_lite_get_theme_options(); $default_options = triton_lite_get_default_theme_options(); ?>


#171717' ); ?>

'reset' ) ); ?>

$value ) { if ( isset( $defaults[ $field ] ) ) $output[ $field ] = $defaults[ $field ] ; else unset( $output[ $field ] ); } } return apply_filters( 'triton_lite_theme_options_validate', $output, $input, $defaults ); } /** * Add a style block to Triton Lite for the current link color. */ function triton_lite_print_color_styles() { $options = triton_lite_get_theme_options(); $accent_color = $options[ 'accent_color' ]; $link_color = $options[ 'link_color' ]; $default_options = triton_lite_get_default_theme_options(); // Don't do anything if both the current Link Color and Accent Color are set to their defaults. if ( $default_options[ 'link_color' ] == $link_color && $default_options[ 'accent_color' ] == $accent_color ) return; ?>