added styles for news CPT
removed deprecated php functions