Separated primary nav into php trait, added add_view_vars fn to controller