AP_Search_Widget::widget( array $args, array $instance )

Description #

Output widget

Parameters #

  • $args
    array (Required) Widget arguments.
  • $instance
    array (Required) Widget instance.

Source #

File: widgets/search.php

	public function widget( $args, $instance ) {
		$title = ! empty( $instance['title'] ) ? $instance['title'] : '';

		/**
		 * This filter is documented in widgets/question_stats.php
		 */
		$title = apply_filters( 'widget_title', $title );

		echo wp_kses_post( $args['before_widget'] );

		if ( ! empty( $title ) ) {
			echo wp_kses_post( $args['before_title'] . $title . $args['after_title'] );
		}

		ap_get_template_part( 'search-form' );

		echo wp_kses_post( $args['after_widget'] );
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment