AP_Askform_Widget::form( array $instance )
Description #
Form.
Parameters #
- $instancearray (Required) Instacne.
Source #
File: widgets/ask-form.php
public function form( $instance ) { if ( isset( $instance['title'] ) ) { $title = $instance['title']; } else { $title = __( 'Ask questions', 'anspress-question-answer' ); } ?> <p> <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"> <?php _e( 'Title:', 'anspress-question-answer' ); ?> </label> <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>"> </p> <?php }
Expand full source code Collapse full source code View on GitHub: widgets/ask-form.php:67
Add your comment