public/wordpress/wp-content/plugins/front-end-only-users/Functions/EWD_FEUP_Widgets.php
/**
	 * Outputs the options form on admin
	 *
	 * @param array $instance The widget options
	 */
Outputs the options form on admin
@param array $instance The widget options
Outputs the options form on admin @param array $instance The widget options
public function form( $instance ) {
		$title = ! empty( $instance['title'] ) ? $instance['title'] : __( 'Form Heading', 'EWD_FEUP' );
		$login_redirect_page = ! empty( $instance['login_redirect_page'] ) ? $instance['login_redirect_page'] : __( 'Login Redirect Page', 'EWD_FEUP' );
		$logout_redirect_page = ! empty( $instance['logout_redirect_page'] ) ? $instance['logout_redirect_page'] : __( 'Logout Redirect Page', 'EWD_FEUP' );
		?>
		<p>
		<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Form Heading:', 'EWD_FEUP' ); ?></label> 
		<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">
		</p>
		<p>
		<label for="<?php echo $this->get_field_id( 'login_redirect_page' ); ?>"><?php _e( 'Login Redirect Page:', 'EWD_FEUP' ); ?></label> 
		<input class="widefat" id="<?php echo $this->get_field_id( 'login_redirect_page' ); ?>" name="<?php echo $this->get_field_name( 'login_redirect_page' ); ?>" type="text" value="<?php echo esc_attr( $login_redirect_page ); ?>">
		</p>
		<p>
		<label for="<?php echo $this->get_field_id( 'logout_redirect_page' ); ?>"><?php _e( 'Logout Redirect Page:', 'EWD_FEUP' ); ?></label> 
		<input class="widefat" id="<?php echo $this->get_field_id( 'logout_redirect_page' ); ?>" name="<?php echo $this->get_field_name( 'logout_redirect_page' ); ?>" type="text" value="<?php echo esc_attr( $logout_redirect_page ); ?>">
		</p>
		<?php 
	}
public function form ( $ instance ) { $ title = ! empty ( $ instance [ 'title' ] ) ? $ instance [ 'title' ] : __ ( 'Form Heading' , 'EWD_FEUP' ) ; $ login_redirect_page = ! empty ( $ instance [ 'login_redirect_page' ] ) ? $ instance [ 'login_redirect_page' ] : __ ( 'Login Redirect Page' , 'EWD_FEUP' ) ; $ logout_redirect_page = ! empty ( $ instance [ 'logout_redirect_page' ] ) ? $ instance [ 'logout_redirect_page' ] : __ ( 'Logout Redirect Page' , 'EWD_FEUP' ) ; ?> <p>
		<label for=" <?php echo $ this -> get_field_id ( 'title' ) ; ?> "> <?php _e ( 'Form Heading:' , 'EWD_FEUP' ) ; ?> </label> 
		<input class="widefat" id=" <?php echo $ this -> get_field_id ( 'title' ) ; ?> " name=" <?php echo $ this -> get_field_name ( 'title' ) ; ?> " type="text" value=" <?php echo esc_attr ( $ title ) ; ?> ">
		</p>
		<p>
		<label for=" <?php echo $ this -> get_field_id ( 'login_redirect_page' ) ; ?> "> <?php _e ( 'Login Redirect Page:' , 'EWD_FEUP' ) ; ?> </label> 
		<input class="widefat" id=" <?php echo $ this -> get_field_id ( 'login_redirect_page' ) ; ?> " name=" <?php echo $ this -> get_field_name ( 'login_redirect_page' ) ; ?> " type="text" value=" <?php echo esc_attr ( $ login_redirect_page ) ; ?> ">
		</p>
		<p>
		<label for=" <?php echo $ this -> get_field_id ( 'logout_redirect_page' ) ; ?> "> <?php _e ( 'Logout Redirect Page:' , 'EWD_FEUP' ) ; ?> </label> 
		<input class="widefat" id=" <?php echo $ this -> get_field_id ( 'logout_redirect_page' ) ; ?> " name=" <?php echo $ this -> get_field_name ( 'logout_redirect_page' ) ; ?> " type="text" value=" <?php echo esc_attr ( $ logout_redirect_page ) ; ?> ">
		</p>
		 <?php }
Outputs the options form on admin
 @param array $instance The widget options
Outputs the options form on admin @param array $instance The widget options