I always thought that if you attend a shower, bring a gift. If you attend the wedding, bring a gift. If you don't attend a function, no gift is required. When I go to both a shower and wedding, I might do two smaller gifts than what I give if I just go to a wedding. That seems to be the norm in my area anyway.