The rules of mourning only applies to the immediate family and the house in which the person died. The period of mourning ranges from 3 to 40 days depending on caste, community, lineage or inclination of the mourners. During this period there are no rituals performed at home other than those concerning the deceased person. At the end of the mourning period a purification ceremony is done and the family are free from isolation.
As orthodox Brahmins are obliged to perform regular periodic śrāddhas (memorial rituals) that are performed over the period of one year. Śrāddha is performed on the 30th, 45th, 60th, 75th, 90th, 120th, 175th, 190th , 210th , 240th , 270th, 300th, and 330th days. The 1st year anniversary ceremonies last for 4 days and several Brahmins are fed and much donations and gifts distributed in the name of the deceased. The original prescription was to perform the final farewell ceremony to the deceased at the anniversary – this is known as the sapiṇḍi-karaṇa ritual.
So while these ceremonies were going on in their homes. bhramins would avoid celebrating marriages and happy occasions but would still attend temple services and festivals. These ceremonies are now only performed by orthodox Brahmins – the majority of Brahmins have given them up and they have the Sapiṇḍikaraṇa ritual done on the 12th day – thus cutting it short.
For non-Brahmins there is no rule about not attending a temple or abstaining from performing puja for a year.