(b) Subject to the agreement of the official with custody over an inmate, the court may conduct hearings at the correctional facility in which an inmate is confined. To the extent practicable, the court shall allow counsel to participate by telephone, video conference or other communications technology in any hearing held at the facility.
(c) No court may compel the commissioner of the division of corrections or warden of any correctional facility operated by the division of corrections or the executive director of the West Virginia regional jail and correctional facility authority or any administrator of any facility operated by the West Virginia regional jail and correctional facility authority to transport to court any inmate having a maximum security classification if the warden or administrator of the facility tenders to the court an affidavit attesting to the custody level of the inmate and stating that, in the warden's or administrator's opinion, the inmate possesses a substantial risk of escape if transported. If a warden or administrator files an affidavit, then the warden or administrator shall, upon demand of the court, provide suitable room to conduct any trial or hearings at which an inmate's presence is required. The warden or administrator shall allow the court, counsel and all court personnel access to the correctional facility to conduct the proceedings the court considers necessary.