';
}
echo '';
endwhile;
endif;
# Restore original query
wp_reset_query();
echo $after_widget;
}
/**
* Update a particular instance.
*
* This function should check that $new_instance is set correctly.
* The newly calculated value of $instance should be returned.
* If "false" is returned, the instance won't be saved/updated.
*
* @since 1.0.0
*/
function update( $new_instance, $old_instance ) {
$new_instance['title'] = strip_tags( $new_instance['title'] );
$new_instance['more_text'] = strip_tags( $new_instance['more_text'] );
return $new_instance;
}
/**
* Echo the settings update form.
*
* @since 1.0.0
*/
function form( $instance ) {
# Merge with defaults
$instance = wp_parse_args( (array) $instance, $this->defaults );
?>