The effects of horizontal singular straight line in a generalized nonlinear Klein–Gordon model equation