'aazeen_service_widget aazeen_widgtes', 'description' => __( 'You can add use this widgte in any section or page', 'aazeen-extension' ), 'customize_selective_refresh' => true, ); parent::__construct( 'aazeen_servicetwo_widget', __( 'Aazeen - Service(style 2)', 'aazeen-extension' ), $widget_ops ); $this->alt_option_name = 'aazeen_servicetwo_widget'; add_action('wp_enqueue_scripts', array(&$this, 'aazeen_service2_style')); include "default.php"; $this->defaults = $defaults_servicetwo_widget; } function widget($args, $instance) { $button1_color = isset( $instance['button1_color'] ) ? $instance['button1_color'] : '#1abc9c'; $button_style = isset( $instance['button_style'] ) ? $instance['button_style'] : 'btn-round'; $content_color = isset( $instance['content_color'] ) ? $instance['content_color'] : '#fff'; $title_color = isset( $instance['title_color'] ) ? $instance['title_color'] : '#fff'; $gred_color1 = isset( $instance['gred_color1'] ) ? $instance['gred_color1'] : ''; $gred_color2 = isset( $instance['gred_color2'] ) ? $instance['gred_color2'] : ''; $gred_color3 = isset( $instance['gred_color3'] ) ? $instance['gred_color3'] : ''; if ( 225 > ariColor::newColor( $button1_color )->luminance ) { // Our background color is dark, so we need to create a light text color. $button1_color_bg = '#fff'; } else { // Our background color is light, so we need to create a dark text color $button1_color_bg = '#000' ; } $button1_color_bg = esc_attr( $button1_color_bg ); extract($args); $instance = wp_parse_args((array) $instance, $this->defaults); echo $before_widget; ?> id; echo ""; } ?>
style="background-image: url(); " data-equalizer-watch>
style="background-image: url(); " data-equalizer-watch>
style="background-image: url(); " data-equalizer-watch>
defaults); ?>

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; } $button1_color= '#1abc9c'; $content_color='#fff'; $title_color='#fff'; if ( ! empty( $instance['button1_color'] ) ) { $button1_color = esc_attr($instance['button1_color']); } if ( ! empty( $instance['content_color'] ) ) { $content_color = esc_attr($instance['content_color']); } if ( ! empty( $instance['title_color'] ) ) { $title_color = esc_attr($instance['title_color']); } $id= $this->id; $inline_css=''; /*content Color for text */ $inline_css .= "#".$id." .feature__content p { color: $content_color; }" ; $inline_css .= "#".$id." .service2__content h3.feature__title { color: $title_color; }" ; /*----------- button one -----------*/ $inline_css .= " #".$id." .service2 .btn.btn-primary { background-color: $button1_color ; border-color:$button1_color; box-shadow:0 2px 2px 0 " . Kirki_Color::get_rgba($button1_color, .14) . ",0 3px 1px -2px " . Kirki_Color::get_rgba($button1_color, .2) . ",0 1px 5px 0 " . Kirki_Color::get_rgba($button1_color, .12) . "; }" ; if ( 225 > ariColor::newColor( $button1_color )->luminance ) { // Our background color is dark, so we need to create a light text color. $button1_color_bg = '#fff'; } else { // Our background color is light, so we need to create a dark text color $button1_color_bg = '#000' ; } $button1_color_bg = esc_attr( $button1_color_bg ); /* Color calculation for text */ $inline_css .= "#".$id." .service2 .btn.btn-primary { color: $button1_color_bg; }" ; wp_add_inline_style( 'aazeen-style', $inline_css ); } } } } // register aazeen_ex dual category posts widget function aazeen_ex_servicetwo_widget() { register_widget( 'aazeen_servicetwo_widget' ); } add_action( 'widgets_init', 'aazeen_ex_servicetwo_widget' );