(a) When allegations of abuse have been proved, the court shall enjoin the offending party from molesting or interfering with the other, or otherwise imposing any restraint on the personal liberty of the other or interfering with the custodial or visitation rights of the other. The order may permanently enjoin the offending party from entering the school, business or place of employment of the other for the purpose of molesting or harassing the other or from entering or being present in the immediate environs of the residence of the petitioner or from contacting the other, in person or by telephone, for the purpose of harassment or threats; or from harassing or verbally abusing the other. The relief afforded by the provisions of this subsection may be ordered whether or not there are grounds for relief under subsection (c) of this section and whether or not an order is entered pursuant to such subsection.
(b) Any order entered by the court to protect a party from abuse may grant any other relief authorized to be awarded by the provisions of article twenty-seven of this chapter, if the party seeking the relief has established the grounds for that relief as required by the provisions of said article. The relief afforded by the provisions of this subsection may be ordered whether or not there are grounds for relief under subsection (c) of this section and whether or not an order is entered pursuant to subsection (c) of this section.
(c) The court, in its discretion, may enter a protective order, as provided by the provisions of article twenty-seven of this chapter, as part of the final relief in a divorce action, either as a part of a order for final relief or in a separate written order. A protective order entered pursuant to the provisions of this subsection shall remain in effect for the period of time ordered by the court not to exceed one hundred eighty days: Provided, That the court may extend the protective order for whatever period the court deems necessary to protect the safety of the petitioner and others threatened or at risk, if the court determines:
(A) That a violation of a protective order entered during or extended by the divorce action has occurred; or
(B) Upon a motion for modification, that a violation of a provision of a final order entered pursuant to this section has occurred.