'aazeen_contact_widget aazeen_widgtes', 'description' => __( 'You can add use this widgte in any section or page', 'aazeen-extension' ), 'customize_selective_refresh' => true, ); parent::__construct( 'aazeen_contact_widget', __( 'Aazeen - Contact widget', 'aazeen-extension' ), $widget_ops ); $this->alt_option_name = 'aazeen_contact_widget'; include "default.php"; $this->defaults = $defaults_contact_widget; } /** * Display Widget * * @param $args * @param $instance */ function widget($args, $instance) { $bg_color = isset( $instance['bg_color'] ) ? $instance['bg_color'] : 'gradient_12'; $tex_color = isset( $instance['tex_color'] ) ? $instance['tex_color'] : '#fff'; $icon_color = isset( $instance['icon_color'] ) ? $instance['icon_color'] : '#fff'; $contactbody_color = isset( $instance['contactbody_color'] ) ? $instance['contactbody_color'] : '#fff'; $contactbody_headcolor = isset( $instance['contactbody_headcolor'] ) ? $instance['contactbody_headcolor'] : '#21c2f8'; $content_bgimage = isset( $instance['content_bgimage'] ) ? $instance['content_bgimage'] : ''; $fixed_bg = isset( $instance['fixed_bg'] ) ? $instance['fixed_bg'] : false; $widget_text = ! empty( $instance['form_sort'] ) ? $instance['form_sort'] : ''; $text = apply_filters( 'widget_text', $widget_text, $instance, $this ); extract($args); $instance = wp_parse_args((array) $instance, $this->defaults); echo $before_widget; ?> id; /*=============================================>>>>> = Color calculation = ===============================================>>>>>*/ if ( 225 > ariColor::newColor( $contactbody_headcolor )->luminance ) { // Our background color is dark, so we need to create a light text color. $head_text_color = Kirki_Color::adjust_brightness( $contactbody_headcolor, 225 ); } else { // Our background color is light, so we need to create a dark text color $head_text_color = Kirki_Color::adjust_brightness( $contactbody_headcolor, -225 ); } $head_text_color = esc_attr( $head_text_color ); if ( 225 > ariColor::newColor( $contactbody_color )->luminance ) { // Our background color is dark, so we need to create a light text color. $body_text_color = Kirki_Color::adjust_brightness( $contactbody_color, 225 ); } else { // Our background color is light, so we need to create a dark text color $body_text_color = Kirki_Color::adjust_brightness( $contactbody_color, -225 ); } $body_text_color = esc_attr( $body_text_color ); /* Color calculation for text */ //Stylesheet-loaded in Customizer Only. echo "" ; ?> id.'">';?>



defaults); $fixed_bg = isset( $instance['fixed_bg'] ) ? (bool) $instance['fixed_bg'] : false; ?>











id="get_field_id( 'fixed_bg' ); ?>" name="get_field_name( 'fixed_bg' ); ?>" />