AP_Search_Widget::widget( array $args, array $instance )
Description #
Output widget
Parameters #
- $argsarray (Required) Widget arguments.
- $instancearray (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'] ); }
Expand full source code Collapse full source code View on GitHub: widgets/search.php:45
Add your comment