$title_n_description // widget description ) ); } function widget( $args, $instance ) { extract( $args ); /* User-selected settings. */ $title = apply_filters('widget_title', $instance['title'] ); $action_url = $instance['action_url']; $first_last_name = $instance['first_last_name']; $button_text = $instance['button_text']; /* Before widget (defined by themes). */ echo wp_kses( $before_widget, TL_ALLO_Static::html_allow() ); /* Title of widget (before and after defined by themes). */ if ( $title ) { echo wp_kses( $before_title, TL_ALLO_Static::html_allow()) . esc_html($title) . wp_kses( $after_title, TL_ALLO_Static::html_allow()); } // if this widget active load this script if ( is_active_widget( false, false, $this->id_base, true ) ) { wp_enqueue_script('ajaxchimp', TL_ALLO_TEMPLATE_DIR_URL .'/assets/js/ajaxchimp.js', array("jquery")); wp_enqueue_script('tl-allo-ajaxchimp-activation', TL_ALLO_TEMPLATE_DIR_URL .'/assets/js/ajaxchimp-activation.js', array("jquery")); } ?>
esc_html__('Newsletter','allo'), 'action_url' => esc_url('http://softhopper.us11.list-manage.com/subscribe/post?u=559ff170eee6949a359c40740&id=fbbd18e68b'), 'button_text' => 'Subscribe', ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>