true, ) ); $this->alt_option_name = 'aazeen_contact_widget'; add_action('wp_enqueue_scripts', array(&$this, 'aazeen_ex_contact_style')); } /** * Display Widget * * @param $args * @param $instance */ function widget($args, $instance) { extract($args); $bg_color = isset( $instance['bg_color'] ) ? $instance['bg_color'] : '#BCBDD4'; $tex_color = isset( $instance['tex_color'] ) ? $instance['tex_color'] : '#0a0a0a'; $icon_color = isset( $instance['icon_color'] ) ? $instance['icon_color'] : '#747474'; $contactbody_color = isset( $instance['contactbody_color'] ) ? $instance['contactbody_color'] : '#fff'; $contactbody_textcolor = isset( $instance['contactbody_textcolor'] ) ? $instance['contactbody_textcolor'] : '#0a0a0a'; $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 ); echo $before_widget; ?> id; ?> id.'">';?>



'#fff', 'tex_color' => '#0a0a0a', 'icon_color' => '#747474', 'contactbody_color'=>'#fff', 'contactbody_textcolor'=>'#0a0a0a' ); $instance = wp_parse_args( (array) $instance, $defaults ); $fixed_bg = isset( $instance['fixed_bg'] ) ? (bool) $instance['fixed_bg'] : false; ?>












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

option_name ); if ( empty( $settings ) ) { return; } foreach ( $settings as $instance_id => $instance ) { $id = $this->id_base . '-' . $instance_id; if ( ! is_active_widget( false, $id, $this->id_base ) ) { continue; } $contactbody_color = esc_html($instance['contactbody_color']); $contactbody_textcolor=esc_html($instance['contactbody_textcolor']); $tex_color=esc_html($instance['tex_color']); $id= $this->id; $inline_css=''; /* Color calculation for text */ $inline_css .= " #".$id." .card.card-contact { background-color: $contactbody_color ; }" ; $inline_css .= " #".$id." .card.card-contact, #".$id." .card.card-contact label { color: $contactbody_textcolor ; }" ; $inline_css .= " #".$id." .contact-body h1, #".$id." .contact-body h1 small, #".$id." .contact-body h5, #".$id." .contact-body p { color: $tex_color ; }" ; wp_add_inline_style( 'aazeen-style', $inline_css ); } } } }