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 ) {
		/**
		 * This filter is documented in widgets/question_stats.php
		 */
		$title = apply_filters( 'widget_title', $instance['title'] );

		echo $args['before_widget']; // xss okay.

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

		ap_get_template_part( 'search-form' );

		echo $args['after_widget']; // xss okay.
	}

Leave a Reply

Your email address will not be published. Required fields are marked *

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

Add your comment