Update lw_posts_widget.php

Function for creating widget markup should not be inside class that extends WP_Widget.