'4', 'bordercolor' => '#ccc', 'headingcolor' => '#7db9e8', 'backgroundcolor' => '#f9f9f9', 'fontcolor' => '#000', ); return apply_filters( 'ait_settings_options', $defaults ); } function initialize_settings_options() { if( false == get_option( 'ait_settings' ) ) { add_option( 'ait_settings', apply_filters( 'ait_settings_options', ait_settings_options() ) ); } add_settings_section( 'ait_settings_section', __( 'General Options', 'ait' ), 'settings_options_callback', 'ait_settings' ); add_settings_field( 'searchresult', __( 'Search Result Limit', 'ait' ), 'searchresult_callback', 'ait_settings', 'ait_settings_section', array( __( 'Select Max Search Result Limit You Wish to Display', 'ait' ), ) ); add_settings_field( 'bordercolor', __( 'Border Color', 'ait' ), 'bordercolor_callback', 'ait_settings', 'ait_settings_section', array( __( 'Border Color', 'ait' ), ) ); add_settings_field( 'headingcolor', __( 'Heading Color', 'ait' ), 'headingcolor_callback', 'ait_settings', 'ait_settings_section', array( __( 'Heading Color', 'ait' ), ) ); add_settings_field( 'backgroundcolor', __( 'Background Color', 'ait' ), 'backgroundcolor_callback', 'ait_settings', 'ait_settings_section', array( __( 'Background Color', 'ait' ), ) ); add_settings_field( 'fontcolor', __( 'Font Color', 'ait' ), 'fontcolor_callback', 'ait_settings', 'ait_settings_section', array( __( 'Font Color', 'ait' ), ) ); register_setting( 'ait_settings', 'ait_settings' ); } add_action( 'admin_init', 'initialize_settings_options' ); // Section Callback function settings_options_callback() { echo '

' . __( 'This Settings are for Adzan and Iqamah Time Widget', 'ait' ) . '

'; } // Search Result Callback function searchresult_callback() { $options = get_option( 'ait_settings' ); $html = ''; echo $html; } // Border Color Callback function bordercolor_callback($args) { $options = get_option( 'ait_settings' ); echo ''; } // Border Color Callback function headingcolor_callback($args) { $options = get_option( 'ait_settings' ); echo ''; } // Border Color Callback function backgroundcolor_callback($args) { $options = get_option( 'ait_settings' ); echo ''; } // Border Color Callback function fontcolor_callback($args) { $options = get_option( 'ait_settings' ); echo ''; } function color_picker( $hook_suffix ) { // first check that $hook_suffix is appropriate for your admin page wp_enqueue_style( 'wp-color-picker' ); wp_enqueue_script( 'wp-color-picker' ); } add_action( 'admin_enqueue_scripts', 'color_picker' ); ?>