Replaced DISPLAY_SIDEBAR with HIDE_SIDEBAR and modified template logic accordingly.