__( 'Just a simple widget that displays comments at sidebar.', 'vh' ), ) ); } // Creating widget front-end // This is where the action happens public function widget( $args, $instance ) { global $post, $wpdb, $wp_query; $thePostID = $wp_query->post->ID; // before and after widget arguments are defined by themes echo $args['before_widget']; if ( get_theme_mod('blogpost_sidebar_comments', false) == true || DEMO_COMMENTS ) { ?>