Fix incorrect class inheritance for news & events plugin