'about-section', 'description' => esc_html__( 'Suitable for About Us page.', 'foodhunt' ) ); $control_ops = array( 'width' => 200, 'height' =>250 ); parent::__construct( false, $name = esc_html__( 'TG: Featured Single Page', 'foodhunt' ), $widget_ops, $control_ops); } function form( $instance ) { $defaults['title'] = ''; $defaults['text'] = ''; $defaults['page_id'] = ''; $defaults['button_text'] = ''; $defaults['button_url'] = ''; $defaults['button_icon'] = ''; $instance = wp_parse_args( (array) $instance, $defaults ); $title = esc_attr( $instance['title'] ); $text = esc_textarea( $instance['text'] ); $page_id = absint( $instance['page_id'] ); $button_text = esc_attr( $instance['button_text'] ); $button_url = esc_url( $instance['button_url'] ); $button_icon = esc_attr( $instance['button_icon'] ); ?>
' ','name' => $this->get_field_name( 'page_id' ), 'selected' => $page_id ) ); ?>
Refer here', 'foodhunt' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( $url ) ); echo $link; ?>
' . esc_html( get_the_excerpt() ) . '